]> git.sur5r.net Git - openldap/blob - configure
autoupdate + manual fixes
[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
2141
2142
2143
2144
2145           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2146
2147           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2148
2149           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2150
2151
2152 echo "$as_me:$LINENO: checking configure arguments" >&5
2153 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2154
2155
2156 top_builddir=`pwd`
2157
2158 ldap_subdir="/openldap"
2159
2160
2161 # Check whether --with-subdir or --without-subdir was given.
2162 if test "${with_subdir+set}" = set; then
2163   withval="$with_subdir"
2164   case "$withval" in
2165         no) ldap_subdir=""
2166                 ;;
2167         yes)
2168                 ;;
2169         /*|\\*)
2170                 ldap_subdir="$withval"
2171                 ;;
2172         *)
2173                 ldap_subdir="/$withval"
2174                 ;;
2175 esac
2176
2177 fi;
2178
2179 # OpenLDAP --enable-debug
2180         # Check whether --enable-debug or --disable-debug was given.
2181 if test "${enable_debug+set}" = set; then
2182   enableval="$enable_debug"
2183
2184         ol_arg=invalid
2185         for ol_val in auto yes no ; do
2186                 if test "$enableval" = "$ol_val" ; then
2187                         ol_arg="$ol_val"
2188                 fi
2189         done
2190         if test "$ol_arg" = "invalid" ; then
2191                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2192 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2193    { (exit 1); exit 1; }; }
2194         fi
2195         ol_enable_debug="$ol_arg"
2196
2197 else
2198         ol_enable_debug="yes"
2199 fi; # end --enable-debug
2200 # OpenLDAP --enable-dynamic
2201         # Check whether --enable-dynamic or --disable-dynamic was given.
2202 if test "${enable_dynamic+set}" = set; then
2203   enableval="$enable_dynamic"
2204
2205         ol_arg=invalid
2206         for ol_val in auto yes no ; do
2207                 if test "$enableval" = "$ol_val" ; then
2208                         ol_arg="$ol_val"
2209                 fi
2210         done
2211         if test "$ol_arg" = "invalid" ; then
2212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2213 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2214    { (exit 1); exit 1; }; }
2215         fi
2216         ol_enable_dynamic="$ol_arg"
2217
2218 else
2219         ol_enable_dynamic="no"
2220 fi; # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2222         # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224   enableval="$enable_syslog"
2225
2226         ol_arg=invalid
2227         for ol_val in auto yes no ; do
2228                 if test "$enableval" = "$ol_val" ; then
2229                         ol_arg="$ol_val"
2230                 fi
2231         done
2232         if test "$ol_arg" = "invalid" ; then
2233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235    { (exit 1); exit 1; }; }
2236         fi
2237         ol_enable_syslog="$ol_arg"
2238
2239 else
2240         ol_enable_syslog="auto"
2241 fi; # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2243         # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245   enableval="$enable_proctitle"
2246
2247         ol_arg=invalid
2248         for ol_val in auto yes no ; do
2249                 if test "$enableval" = "$ol_val" ; then
2250                         ol_arg="$ol_val"
2251                 fi
2252         done
2253         if test "$ol_arg" = "invalid" ; then
2254                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256    { (exit 1); exit 1; }; }
2257         fi
2258         ol_enable_proctitle="$ol_arg"
2259
2260 else
2261         ol_enable_proctitle="yes"
2262 fi; # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2266         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2267 if test "${enable_ipv6+set}" = set; then
2268   enableval="$enable_ipv6"
2269
2270         ol_arg=invalid
2271         for ol_val in auto yes no ; do
2272                 if test "$enableval" = "$ol_val" ; then
2273                         ol_arg="$ol_val"
2274                 fi
2275         done
2276         if test "$ol_arg" = "invalid" ; then
2277                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2278 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2279    { (exit 1); exit 1; }; }
2280         fi
2281         ol_enable_ipv6="$ol_arg"
2282
2283 else
2284         ol_enable_ipv6="auto"
2285 fi; # end --enable-ipv6
2286 # OpenLDAP --enable-local
2287         # Check whether --enable-local or --disable-local was given.
2288 if test "${enable_local+set}" = set; then
2289   enableval="$enable_local"
2290
2291         ol_arg=invalid
2292         for ol_val in auto yes no ; do
2293                 if test "$enableval" = "$ol_val" ; then
2294                         ol_arg="$ol_val"
2295                 fi
2296         done
2297         if test "$ol_arg" = "invalid" ; then
2298                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2299 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2300    { (exit 1); exit 1; }; }
2301         fi
2302         ol_enable_local="$ol_arg"
2303
2304 else
2305         ol_enable_local="auto"
2306 fi; # end --enable-local
2307
2308
2309 # OpenLDAP --with-cyrus_sasl
2310
2311 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2312 if test "${with_cyrus_sasl+set}" = set; then
2313   withval="$with_cyrus_sasl"
2314
2315         ol_arg=invalid
2316         for ol_val in auto yes no  ; do
2317                 if test "$withval" = "$ol_val" ; then
2318                         ol_arg="$ol_val"
2319                 fi
2320         done
2321         if test "$ol_arg" = "invalid" ; then
2322                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2323 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2324    { (exit 1); exit 1; }; }
2325         fi
2326         ol_with_cyrus_sasl="$ol_arg"
2327
2328 else
2329         ol_with_cyrus_sasl="auto"
2330 fi; # end --with-cyrus_sasl
2331
2332 # OpenLDAP --with-fetch
2333
2334 # Check whether --with-fetch or --without-fetch was given.
2335 if test "${with_fetch+set}" = set; then
2336   withval="$with_fetch"
2337
2338         ol_arg=invalid
2339         for ol_val in auto yes no  ; do
2340                 if test "$withval" = "$ol_val" ; then
2341                         ol_arg="$ol_val"
2342                 fi
2343         done
2344         if test "$ol_arg" = "invalid" ; then
2345                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2346 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2347    { (exit 1); exit 1; }; }
2348         fi
2349         ol_with_fetch="$ol_arg"
2350
2351 else
2352         ol_with_fetch="auto"
2353 fi; # end --with-fetch
2354
2355 ol_with_kerberos=${ol_with_kerberos-auto}
2356 # OpenLDAP --with-threads
2357
2358 # Check whether --with-threads or --without-threads was given.
2359 if test "${with_threads+set}" = set; then
2360   withval="$with_threads"
2361
2362         ol_arg=invalid
2363         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2364                 if test "$withval" = "$ol_val" ; then
2365                         ol_arg="$ol_val"
2366                 fi
2367         done
2368         if test "$ol_arg" = "invalid" ; then
2369                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2370 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2371    { (exit 1); exit 1; }; }
2372         fi
2373         ol_with_threads="$ol_arg"
2374
2375 else
2376         ol_with_threads="auto"
2377 fi; # end --with-threads
2378
2379 # OpenLDAP --with-tls
2380
2381 # Check whether --with-tls or --without-tls was given.
2382 if test "${with_tls+set}" = set; then
2383   withval="$with_tls"
2384
2385         ol_arg=invalid
2386         for ol_val in auto ssleay openssl yes no  ; do
2387                 if test "$withval" = "$ol_val" ; then
2388                         ol_arg="$ol_val"
2389                 fi
2390         done
2391         if test "$ol_arg" = "invalid" ; then
2392                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2393 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2394    { (exit 1); exit 1; }; }
2395         fi
2396         ol_with_tls="$ol_arg"
2397
2398 else
2399         ol_with_tls="auto"
2400 fi; # end --with-tls
2401
2402 # OpenLDAP --with-yielding_select
2403
2404 # Check whether --with-yielding_select or --without-yielding_select was given.
2405 if test "${with_yielding_select+set}" = set; then
2406   withval="$with_yielding_select"
2407
2408         ol_arg=invalid
2409         for ol_val in auto yes no manual  ; do
2410                 if test "$withval" = "$ol_val" ; then
2411                         ol_arg="$ol_val"
2412                 fi
2413         done
2414         if test "$ol_arg" = "invalid" ; then
2415                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2416 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2417    { (exit 1); exit 1; }; }
2418         fi
2419         ol_with_yielding_select="$ol_arg"
2420
2421 else
2422         ol_with_yielding_select="auto"
2423 fi; # end --with-yielding_select
2424
2425 # OpenLDAP --with-multiple_precision
2426
2427 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2428 if test "${with_multiple_precision+set}" = set; then
2429   withval="$with_multiple_precision"
2430
2431         ol_arg=invalid
2432         for ol_val in auto bignum gmp yes no  ; do
2433                 if test "$withval" = "$ol_val" ; then
2434                         ol_arg="$ol_val"
2435                 fi
2436         done
2437         if test "$ol_arg" = "invalid" ; then
2438                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2439 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2440    { (exit 1); exit 1; }; }
2441         fi
2442         ol_with_multiple_precision="$ol_arg"
2443
2444 else
2445         ol_with_multiple_precision="auto"
2446 fi; # end --with-multiple_precision
2447
2448
2449
2450
2451 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2452 if test "${with_xxslapdoptions+set}" = set; then
2453   withval="$with_xxslapdoptions"
2454
2455 fi;
2456 # OpenLDAP --enable-slapd
2457         # Check whether --enable-slapd or --disable-slapd was given.
2458 if test "${enable_slapd+set}" = set; then
2459   enableval="$enable_slapd"
2460
2461         ol_arg=invalid
2462         for ol_val in auto yes no ; do
2463                 if test "$enableval" = "$ol_val" ; then
2464                         ol_arg="$ol_val"
2465                 fi
2466         done
2467         if test "$ol_arg" = "invalid" ; then
2468                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2469 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2470    { (exit 1); exit 1; }; }
2471         fi
2472         ol_enable_slapd="$ol_arg"
2473
2474 else
2475         ol_enable_slapd="yes"
2476 fi; # end --enable-slapd
2477 # OpenLDAP --enable-aci
2478         # Check whether --enable-aci or --disable-aci was given.
2479 if test "${enable_aci+set}" = set; then
2480   enableval="$enable_aci"
2481
2482         ol_arg=invalid
2483         for ol_val in auto yes no ; do
2484                 if test "$enableval" = "$ol_val" ; then
2485                         ol_arg="$ol_val"
2486                 fi
2487         done
2488         if test "$ol_arg" = "invalid" ; then
2489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2490 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2491    { (exit 1); exit 1; }; }
2492         fi
2493         ol_enable_aci="$ol_arg"
2494
2495 else
2496         ol_enable_aci="no"
2497 fi; # end --enable-aci
2498 # OpenLDAP --enable-cleartext
2499         # Check whether --enable-cleartext or --disable-cleartext was given.
2500 if test "${enable_cleartext+set}" = set; then
2501   enableval="$enable_cleartext"
2502
2503         ol_arg=invalid
2504         for ol_val in auto yes no ; do
2505                 if test "$enableval" = "$ol_val" ; then
2506                         ol_arg="$ol_val"
2507                 fi
2508         done
2509         if test "$ol_arg" = "invalid" ; then
2510                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2511 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2512    { (exit 1); exit 1; }; }
2513         fi
2514         ol_enable_cleartext="$ol_arg"
2515
2516 else
2517         ol_enable_cleartext="yes"
2518 fi; # end --enable-cleartext
2519 # OpenLDAP --enable-crypt
2520         # Check whether --enable-crypt or --disable-crypt was given.
2521 if test "${enable_crypt+set}" = set; then
2522   enableval="$enable_crypt"
2523
2524         ol_arg=invalid
2525         for ol_val in auto yes no ; do
2526                 if test "$enableval" = "$ol_val" ; then
2527                         ol_arg="$ol_val"
2528                 fi
2529         done
2530         if test "$ol_arg" = "invalid" ; then
2531                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2532 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2533    { (exit 1); exit 1; }; }
2534         fi
2535         ol_enable_crypt="$ol_arg"
2536
2537 else
2538         ol_enable_crypt="no"
2539 fi; # end --enable-crypt
2540 # OpenLDAP --enable-lmpasswd
2541         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2542 if test "${enable_lmpasswd+set}" = set; then
2543   enableval="$enable_lmpasswd"
2544
2545         ol_arg=invalid
2546         for ol_val in auto yes no ; do
2547                 if test "$enableval" = "$ol_val" ; then
2548                         ol_arg="$ol_val"
2549                 fi
2550         done
2551         if test "$ol_arg" = "invalid" ; then
2552                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2553 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2554    { (exit 1); exit 1; }; }
2555         fi
2556         ol_enable_lmpasswd="$ol_arg"
2557
2558 else
2559         ol_enable_lmpasswd="no"
2560 fi; # end --enable-lmpasswd
2561 # OpenLDAP --enable-spasswd
2562         # Check whether --enable-spasswd or --disable-spasswd was given.
2563 if test "${enable_spasswd+set}" = set; then
2564   enableval="$enable_spasswd"
2565
2566         ol_arg=invalid
2567         for ol_val in auto yes no ; do
2568                 if test "$enableval" = "$ol_val" ; then
2569                         ol_arg="$ol_val"
2570                 fi
2571         done
2572         if test "$ol_arg" = "invalid" ; then
2573                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2574 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2575    { (exit 1); exit 1; }; }
2576         fi
2577         ol_enable_spasswd="$ol_arg"
2578
2579 else
2580         ol_enable_spasswd="no"
2581 fi; # end --enable-spasswd
2582 # OpenLDAP --enable-modules
2583         # Check whether --enable-modules or --disable-modules was given.
2584 if test "${enable_modules+set}" = set; then
2585   enableval="$enable_modules"
2586
2587         ol_arg=invalid
2588         for ol_val in auto yes no ; do
2589                 if test "$enableval" = "$ol_val" ; then
2590                         ol_arg="$ol_val"
2591                 fi
2592         done
2593         if test "$ol_arg" = "invalid" ; then
2594                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2595 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2596    { (exit 1); exit 1; }; }
2597         fi
2598         ol_enable_modules="$ol_arg"
2599
2600 else
2601         ol_enable_modules="no"
2602 fi; # end --enable-modules
2603 ol_enable_multimaster=${ol_enable_multimaster-no}
2604 # OpenLDAP --enable-rewrite
2605         # Check whether --enable-rewrite or --disable-rewrite was given.
2606 if test "${enable_rewrite+set}" = set; then
2607   enableval="$enable_rewrite"
2608
2609         ol_arg=invalid
2610         for ol_val in auto yes no ; do
2611                 if test "$enableval" = "$ol_val" ; then
2612                         ol_arg="$ol_val"
2613                 fi
2614         done
2615         if test "$ol_arg" = "invalid" ; then
2616                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2617 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2618    { (exit 1); exit 1; }; }
2619         fi
2620         ol_enable_rewrite="$ol_arg"
2621
2622 else
2623         ol_enable_rewrite="auto"
2624 fi; # end --enable-rewrite
2625 # OpenLDAP --enable-rlookups
2626         # Check whether --enable-rlookups or --disable-rlookups was given.
2627 if test "${enable_rlookups+set}" = set; then
2628   enableval="$enable_rlookups"
2629
2630         ol_arg=invalid
2631         for ol_val in auto yes no ; do
2632                 if test "$enableval" = "$ol_val" ; then
2633                         ol_arg="$ol_val"
2634                 fi
2635         done
2636         if test "$ol_arg" = "invalid" ; then
2637                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2638 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2639    { (exit 1); exit 1; }; }
2640         fi
2641         ol_enable_rlookups="$ol_arg"
2642
2643 else
2644         ol_enable_rlookups="no"
2645 fi; # end --enable-rlookups
2646 # OpenLDAP --enable-slapi
2647         # Check whether --enable-slapi or --disable-slapi was given.
2648 if test "${enable_slapi+set}" = set; then
2649   enableval="$enable_slapi"
2650
2651         ol_arg=invalid
2652         for ol_val in auto yes no ; do
2653                 if test "$enableval" = "$ol_val" ; then
2654                         ol_arg="$ol_val"
2655                 fi
2656         done
2657         if test "$ol_arg" = "invalid" ; then
2658                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2660    { (exit 1); exit 1; }; }
2661         fi
2662         ol_enable_slapi="$ol_arg"
2663
2664 else
2665         ol_enable_slapi="no"
2666 fi; # end --enable-slapi
2667 # OpenLDAP --enable-slp
2668         # Check whether --enable-slp or --disable-slp was given.
2669 if test "${enable_slp+set}" = set; then
2670   enableval="$enable_slp"
2671
2672         ol_arg=invalid
2673         for ol_val in auto yes no ; do
2674                 if test "$enableval" = "$ol_val" ; then
2675                         ol_arg="$ol_val"
2676                 fi
2677         done
2678         if test "$ol_arg" = "invalid" ; then
2679                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2681    { (exit 1); exit 1; }; }
2682         fi
2683         ol_enable_slp="$ol_arg"
2684
2685 else
2686         ol_enable_slp="no"
2687 fi; # end --enable-slp
2688 # OpenLDAP --enable-wrappers
2689         # Check whether --enable-wrappers or --disable-wrappers was given.
2690 if test "${enable_wrappers+set}" = set; then
2691   enableval="$enable_wrappers"
2692
2693         ol_arg=invalid
2694         for ol_val in auto yes no ; do
2695                 if test "$enableval" = "$ol_val" ; then
2696                         ol_arg="$ol_val"
2697                 fi
2698         done
2699         if test "$ol_arg" = "invalid" ; then
2700                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2701 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2702    { (exit 1); exit 1; }; }
2703         fi
2704         ol_enable_wrappers="$ol_arg"
2705
2706 else
2707         ol_enable_wrappers="no"
2708 fi; # end --enable-wrappers
2709
2710 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2711         passwd perl relay shell sql"
2712
2713
2714 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2715 if test "${with_xxslapbackends+set}" = set; then
2716   withval="$with_xxslapbackends"
2717
2718 fi;
2719
2720 # OpenLDAP --enable-backends
2721         # Check whether --enable-backends or --disable-backends was given.
2722 if test "${enable_backends+set}" = set; then
2723   enableval="$enable_backends"
2724
2725         ol_arg=invalid
2726         for ol_val in no yes mod ; do
2727                 if test "$enableval" = "$ol_val" ; then
2728                         ol_arg="$ol_val"
2729                 fi
2730         done
2731         if test "$ol_arg" = "invalid" ; then
2732                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2733 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2734    { (exit 1); exit 1; }; }
2735         fi
2736         ol_enable_backends="$ol_arg"
2737
2738 fi; # end --enable-backends
2739 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2740 # OpenLDAP --enable-bdb
2741         # Check whether --enable-bdb or --disable-bdb was given.
2742 if test "${enable_bdb+set}" = set; then
2743   enableval="$enable_bdb"
2744
2745         ol_arg=invalid
2746         for ol_val in no yes mod ; do
2747                 if test "$enableval" = "$ol_val" ; then
2748                         ol_arg="$ol_val"
2749                 fi
2750         done
2751         if test "$ol_arg" = "invalid" ; then
2752                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2753 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2754    { (exit 1); exit 1; }; }
2755         fi
2756         ol_enable_bdb="$ol_arg"
2757
2758 else
2759         ol_enable_bdb="${ol_dflt_backends-yes}"
2760 fi; # end --enable-bdb
2761 # OpenLDAP --enable-dnssrv
2762         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2763 if test "${enable_dnssrv+set}" = set; then
2764   enableval="$enable_dnssrv"
2765
2766         ol_arg=invalid
2767         for ol_val in no yes mod ; do
2768                 if test "$enableval" = "$ol_val" ; then
2769                         ol_arg="$ol_val"
2770                 fi
2771         done
2772         if test "$ol_arg" = "invalid" ; then
2773                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2774 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2775    { (exit 1); exit 1; }; }
2776         fi
2777         ol_enable_dnssrv="$ol_arg"
2778
2779 else
2780         ol_enable_dnssrv="${ol_dflt_backends-no}"
2781 fi; # end --enable-dnssrv
2782 # OpenLDAP --enable-hdb
2783         # Check whether --enable-hdb or --disable-hdb was given.
2784 if test "${enable_hdb+set}" = set; then
2785   enableval="$enable_hdb"
2786
2787         ol_arg=invalid
2788         for ol_val in no yes mod ; do
2789                 if test "$enableval" = "$ol_val" ; then
2790                         ol_arg="$ol_val"
2791                 fi
2792         done
2793         if test "$ol_arg" = "invalid" ; then
2794                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2795 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2796    { (exit 1); exit 1; }; }
2797         fi
2798         ol_enable_hdb="$ol_arg"
2799
2800 else
2801         ol_enable_hdb="${ol_dflt_backends-yes}"
2802 fi; # end --enable-hdb
2803 # OpenLDAP --enable-ldap
2804         # Check whether --enable-ldap or --disable-ldap was given.
2805 if test "${enable_ldap+set}" = set; then
2806   enableval="$enable_ldap"
2807
2808         ol_arg=invalid
2809         for ol_val in no yes mod ; do
2810                 if test "$enableval" = "$ol_val" ; then
2811                         ol_arg="$ol_val"
2812                 fi
2813         done
2814         if test "$ol_arg" = "invalid" ; then
2815                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2817    { (exit 1); exit 1; }; }
2818         fi
2819         ol_enable_ldap="$ol_arg"
2820
2821 else
2822         ol_enable_ldap="${ol_dflt_backends-no}"
2823 fi; # end --enable-ldap
2824 # OpenLDAP --enable-ldbm
2825         # Check whether --enable-ldbm or --disable-ldbm was given.
2826 if test "${enable_ldbm+set}" = set; then
2827   enableval="$enable_ldbm"
2828
2829         ol_arg=invalid
2830         for ol_val in no yes mod ; do
2831                 if test "$enableval" = "$ol_val" ; then
2832                         ol_arg="$ol_val"
2833                 fi
2834         done
2835         if test "$ol_arg" = "invalid" ; then
2836                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2838    { (exit 1); exit 1; }; }
2839         fi
2840         ol_enable_ldbm="$ol_arg"
2841
2842 else
2843         ol_enable_ldbm="${ol_dflt_backends-no}"
2844 fi; # end --enable-ldbm
2845 # OpenLDAP --with-ldbm_api
2846
2847 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2848 if test "${with_ldbm_api+set}" = set; then
2849   withval="$with_ldbm_api"
2850
2851         ol_arg=invalid
2852         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2853                 if test "$withval" = "$ol_val" ; then
2854                         ol_arg="$ol_val"
2855                 fi
2856         done
2857         if test "$ol_arg" = "invalid" ; then
2858                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2859 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2860    { (exit 1); exit 1; }; }
2861         fi
2862         ol_with_ldbm_api="$ol_arg"
2863
2864 else
2865         ol_with_ldbm_api="auto"
2866 fi; # end --with-ldbm_api
2867
2868 # OpenLDAP --with-ldbm_type
2869
2870 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2871 if test "${with_ldbm_type+set}" = set; then
2872   withval="$with_ldbm_type"
2873
2874         ol_arg=invalid
2875         for ol_val in auto btree hash ; do
2876                 if test "$withval" = "$ol_val" ; then
2877                         ol_arg="$ol_val"
2878                 fi
2879         done
2880         if test "$ol_arg" = "invalid" ; then
2881                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2882 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2883    { (exit 1); exit 1; }; }
2884         fi
2885         ol_with_ldbm_type="$ol_arg"
2886
2887 else
2888         ol_with_ldbm_type="auto"
2889 fi; # end --with-ldbm_type
2890
2891 # OpenLDAP --enable-meta
2892         # Check whether --enable-meta or --disable-meta was given.
2893 if test "${enable_meta+set}" = set; then
2894   enableval="$enable_meta"
2895
2896         ol_arg=invalid
2897         for ol_val in no yes mod ; do
2898                 if test "$enableval" = "$ol_val" ; then
2899                         ol_arg="$ol_val"
2900                 fi
2901         done
2902         if test "$ol_arg" = "invalid" ; then
2903                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2904 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2905    { (exit 1); exit 1; }; }
2906         fi
2907         ol_enable_meta="$ol_arg"
2908
2909 else
2910         ol_enable_meta="${ol_dflt_backends-no}"
2911 fi; # end --enable-meta
2912 # OpenLDAP --enable-monitor
2913         # Check whether --enable-monitor or --disable-monitor was given.
2914 if test "${enable_monitor+set}" = set; then
2915   enableval="$enable_monitor"
2916
2917         ol_arg=invalid
2918         for ol_val in no yes mod ; do
2919                 if test "$enableval" = "$ol_val" ; then
2920                         ol_arg="$ol_val"
2921                 fi
2922         done
2923         if test "$ol_arg" = "invalid" ; then
2924                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2925 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2926    { (exit 1); exit 1; }; }
2927         fi
2928         ol_enable_monitor="$ol_arg"
2929
2930 else
2931         ol_enable_monitor="${ol_dflt_backends-yes}"
2932 fi; # end --enable-monitor
2933 # OpenLDAP --enable-null
2934         # Check whether --enable-null or --disable-null was given.
2935 if test "${enable_null+set}" = set; then
2936   enableval="$enable_null"
2937
2938         ol_arg=invalid
2939         for ol_val in no yes mod ; do
2940                 if test "$enableval" = "$ol_val" ; then
2941                         ol_arg="$ol_val"
2942                 fi
2943         done
2944         if test "$ol_arg" = "invalid" ; then
2945                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2946 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2947    { (exit 1); exit 1; }; }
2948         fi
2949         ol_enable_null="$ol_arg"
2950
2951 else
2952         ol_enable_null="${ol_dflt_backends-no}"
2953 fi; # end --enable-null
2954 # OpenLDAP --enable-passwd
2955         # Check whether --enable-passwd or --disable-passwd was given.
2956 if test "${enable_passwd+set}" = set; then
2957   enableval="$enable_passwd"
2958
2959         ol_arg=invalid
2960         for ol_val in no yes mod ; do
2961                 if test "$enableval" = "$ol_val" ; then
2962                         ol_arg="$ol_val"
2963                 fi
2964         done
2965         if test "$ol_arg" = "invalid" ; then
2966                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2967 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2968    { (exit 1); exit 1; }; }
2969         fi
2970         ol_enable_passwd="$ol_arg"
2971
2972 else
2973         ol_enable_passwd="${ol_dflt_backends-no}"
2974 fi; # end --enable-passwd
2975 # OpenLDAP --enable-perl
2976         # Check whether --enable-perl or --disable-perl was given.
2977 if test "${enable_perl+set}" = set; then
2978   enableval="$enable_perl"
2979
2980         ol_arg=invalid
2981         for ol_val in no yes mod ; do
2982                 if test "$enableval" = "$ol_val" ; then
2983                         ol_arg="$ol_val"
2984                 fi
2985         done
2986         if test "$ol_arg" = "invalid" ; then
2987                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2988 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2989    { (exit 1); exit 1; }; }
2990         fi
2991         ol_enable_perl="$ol_arg"
2992
2993 else
2994         ol_enable_perl="${ol_dflt_backends-no}"
2995 fi; # end --enable-perl
2996 # OpenLDAP --enable-relay
2997         # Check whether --enable-relay or --disable-relay was given.
2998 if test "${enable_relay+set}" = set; then
2999   enableval="$enable_relay"
3000
3001         ol_arg=invalid
3002         for ol_val in no yes mod ; do
3003                 if test "$enableval" = "$ol_val" ; then
3004                         ol_arg="$ol_val"
3005                 fi
3006         done
3007         if test "$ol_arg" = "invalid" ; then
3008                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3009 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3010    { (exit 1); exit 1; }; }
3011         fi
3012         ol_enable_relay="$ol_arg"
3013
3014 else
3015         ol_enable_relay="${ol_dflt_backends-yes}"
3016 fi; # end --enable-relay
3017 # OpenLDAP --enable-shell
3018         # Check whether --enable-shell or --disable-shell was given.
3019 if test "${enable_shell+set}" = set; then
3020   enableval="$enable_shell"
3021
3022         ol_arg=invalid
3023         for ol_val in no yes mod ; do
3024                 if test "$enableval" = "$ol_val" ; then
3025                         ol_arg="$ol_val"
3026                 fi
3027         done
3028         if test "$ol_arg" = "invalid" ; then
3029                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3030 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3031    { (exit 1); exit 1; }; }
3032         fi
3033         ol_enable_shell="$ol_arg"
3034
3035 else
3036         ol_enable_shell="${ol_dflt_backends-no}"
3037 fi; # end --enable-shell
3038 # OpenLDAP --enable-sql
3039         # Check whether --enable-sql or --disable-sql was given.
3040 if test "${enable_sql+set}" = set; then
3041   enableval="$enable_sql"
3042
3043         ol_arg=invalid
3044         for ol_val in no yes mod ; do
3045                 if test "$enableval" = "$ol_val" ; then
3046                         ol_arg="$ol_val"
3047                 fi
3048         done
3049         if test "$ol_arg" = "invalid" ; then
3050                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3051 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3052    { (exit 1); exit 1; }; }
3053         fi
3054         ol_enable_sql="$ol_arg"
3055
3056 else
3057         ol_enable_sql="${ol_dflt_backends-no}"
3058 fi; # end --enable-sql
3059
3060 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3061         refint retcode rwm syncprov translucent unique"
3062
3063
3064 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3065 if test "${with_xxslapoverlays+set}" = set; then
3066   withval="$with_xxslapoverlays"
3067
3068 fi;
3069
3070 # OpenLDAP --enable-overlays
3071         # Check whether --enable-overlays or --disable-overlays was given.
3072 if test "${enable_overlays+set}" = set; then
3073   enableval="$enable_overlays"
3074
3075         ol_arg=invalid
3076         for ol_val in no yes mod ; do
3077                 if test "$enableval" = "$ol_val" ; then
3078                         ol_arg="$ol_val"
3079                 fi
3080         done
3081         if test "$ol_arg" = "invalid" ; then
3082                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3083 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3084    { (exit 1); exit 1; }; }
3085         fi
3086         ol_enable_overlays="$ol_arg"
3087
3088 fi; # end --enable-overlays
3089 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3090 # OpenLDAP --enable-accesslog
3091         # Check whether --enable-accesslog or --disable-accesslog was given.
3092 if test "${enable_accesslog+set}" = set; then
3093   enableval="$enable_accesslog"
3094
3095         ol_arg=invalid
3096         for ol_val in no yes mod ; do
3097                 if test "$enableval" = "$ol_val" ; then
3098                         ol_arg="$ol_val"
3099                 fi
3100         done
3101         if test "$ol_arg" = "invalid" ; then
3102                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3103 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3104    { (exit 1); exit 1; }; }
3105         fi
3106         ol_enable_accesslog="$ol_arg"
3107
3108 else
3109         ol_enable_accesslog="${ol_dflt_overlays-no}"
3110 fi; # end --enable-accesslog
3111
3112 # OpenLDAP --enable-denyop
3113         # Check whether --enable-denyop or --disable-denyop was given.
3114 if test "${enable_denyop+set}" = set; then
3115   enableval="$enable_denyop"
3116
3117         ol_arg=invalid
3118         for ol_val in no yes mod ; do
3119                 if test "$enableval" = "$ol_val" ; then
3120                         ol_arg="$ol_val"
3121                 fi
3122         done
3123         if test "$ol_arg" = "invalid" ; then
3124                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3125 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3126    { (exit 1); exit 1; }; }
3127         fi
3128         ol_enable_denyop="$ol_arg"
3129
3130 else
3131         ol_enable_denyop="${ol_dflt_overlays-no}"
3132 fi; # end --enable-denyop
3133
3134 # OpenLDAP --enable-dyngroup
3135         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3136 if test "${enable_dyngroup+set}" = set; then
3137   enableval="$enable_dyngroup"
3138
3139         ol_arg=invalid
3140         for ol_val in no yes mod ; do
3141                 if test "$enableval" = "$ol_val" ; then
3142                         ol_arg="$ol_val"
3143                 fi
3144         done
3145         if test "$ol_arg" = "invalid" ; then
3146                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3147 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3148    { (exit 1); exit 1; }; }
3149         fi
3150         ol_enable_dyngroup="$ol_arg"
3151
3152 else
3153         ol_enable_dyngroup="${ol_dflt_overlays-no}"
3154 fi; # end --enable-dyngroup
3155
3156 # OpenLDAP --enable-dynlist
3157         # Check whether --enable-dynlist or --disable-dynlist was given.
3158 if test "${enable_dynlist+set}" = set; then
3159   enableval="$enable_dynlist"
3160
3161         ol_arg=invalid
3162         for ol_val in no yes mod ; do
3163                 if test "$enableval" = "$ol_val" ; then
3164                         ol_arg="$ol_val"
3165                 fi
3166         done
3167         if test "$ol_arg" = "invalid" ; then
3168                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3169 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3170    { (exit 1); exit 1; }; }
3171         fi
3172         ol_enable_dynlist="$ol_arg"
3173
3174 else
3175         ol_enable_dynlist="${ol_dflt_overlays-no}"
3176 fi; # end --enable-dynlist
3177
3178 # OpenLDAP --enable-glue
3179         # Check whether --enable-glue or --disable-glue was given.
3180 if test "${enable_glue+set}" = set; then
3181   enableval="$enable_glue"
3182
3183         ol_arg=invalid
3184         for ol_val in no yes mod ; do
3185                 if test "$enableval" = "$ol_val" ; then
3186                         ol_arg="$ol_val"
3187                 fi
3188         done
3189         if test "$ol_arg" = "invalid" ; then
3190                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3191 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3192    { (exit 1); exit 1; }; }
3193         fi
3194         ol_enable_glue="$ol_arg"
3195
3196 else
3197         ol_enable_glue="${ol_dflt_overlays-yes}"
3198 fi; # end --enable-glue
3199
3200 # OpenLDAP --enable-lastmod
3201         # Check whether --enable-lastmod or --disable-lastmod was given.
3202 if test "${enable_lastmod+set}" = set; then
3203   enableval="$enable_lastmod"
3204
3205         ol_arg=invalid
3206         for ol_val in no yes mod ; do
3207                 if test "$enableval" = "$ol_val" ; then
3208                         ol_arg="$ol_val"
3209                 fi
3210         done
3211         if test "$ol_arg" = "invalid" ; then
3212                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3213 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3214    { (exit 1); exit 1; }; }
3215         fi
3216         ol_enable_lastmod="$ol_arg"
3217
3218 else
3219         ol_enable_lastmod="${ol_dflt_overlays-no}"
3220 fi; # end --enable-lastmod
3221
3222 # OpenLDAP --enable-ppolicy
3223         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3224 if test "${enable_ppolicy+set}" = set; then
3225   enableval="$enable_ppolicy"
3226
3227         ol_arg=invalid
3228         for ol_val in no yes mod ; do
3229                 if test "$enableval" = "$ol_val" ; then
3230                         ol_arg="$ol_val"
3231                 fi
3232         done
3233         if test "$ol_arg" = "invalid" ; then
3234                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3235 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3236    { (exit 1); exit 1; }; }
3237         fi
3238         ol_enable_ppolicy="$ol_arg"
3239
3240 else
3241         ol_enable_ppolicy="${ol_dflt_overlays-no}"
3242 fi; # end --enable-ppolicy
3243
3244 # OpenLDAP --enable-proxycache
3245         # Check whether --enable-proxycache or --disable-proxycache was given.
3246 if test "${enable_proxycache+set}" = set; then
3247   enableval="$enable_proxycache"
3248
3249         ol_arg=invalid
3250         for ol_val in no yes mod ; do
3251                 if test "$enableval" = "$ol_val" ; then
3252                         ol_arg="$ol_val"
3253                 fi
3254         done
3255         if test "$ol_arg" = "invalid" ; then
3256                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3257 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3258    { (exit 1); exit 1; }; }
3259         fi
3260         ol_enable_proxycache="$ol_arg"
3261
3262 else
3263         ol_enable_proxycache="${ol_dflt_overlays-no}"
3264 fi; # end --enable-proxycache
3265
3266 # OpenLDAP --enable-refint
3267         # Check whether --enable-refint or --disable-refint was given.
3268 if test "${enable_refint+set}" = set; then
3269   enableval="$enable_refint"
3270
3271         ol_arg=invalid
3272         for ol_val in no yes mod ; do
3273                 if test "$enableval" = "$ol_val" ; then
3274                         ol_arg="$ol_val"
3275                 fi
3276         done
3277         if test "$ol_arg" = "invalid" ; then
3278                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3279 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3280    { (exit 1); exit 1; }; }
3281         fi
3282         ol_enable_refint="$ol_arg"
3283
3284 else
3285         ol_enable_refint="${ol_dflt_overlays-no}"
3286 fi; # end --enable-refint
3287
3288 # OpenLDAP --enable-retcode
3289         # Check whether --enable-retcode or --disable-retcode was given.
3290 if test "${enable_retcode+set}" = set; then
3291   enableval="$enable_retcode"
3292
3293         ol_arg=invalid
3294         for ol_val in no yes mod ; do
3295                 if test "$enableval" = "$ol_val" ; then
3296                         ol_arg="$ol_val"
3297                 fi
3298         done
3299         if test "$ol_arg" = "invalid" ; then
3300                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3301 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3302    { (exit 1); exit 1; }; }
3303         fi
3304         ol_enable_retcode="$ol_arg"
3305
3306 else
3307         ol_enable_retcode="${ol_dflt_overlays-no}"
3308 fi; # end --enable-retcode
3309
3310 # OpenLDAP --enable-rwm
3311         # Check whether --enable-rwm or --disable-rwm was given.
3312 if test "${enable_rwm+set}" = set; then
3313   enableval="$enable_rwm"
3314
3315         ol_arg=invalid
3316         for ol_val in no yes mod ; do
3317                 if test "$enableval" = "$ol_val" ; then
3318                         ol_arg="$ol_val"
3319                 fi
3320         done
3321         if test "$ol_arg" = "invalid" ; then
3322                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3323 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3324    { (exit 1); exit 1; }; }
3325         fi
3326         ol_enable_rwm="$ol_arg"
3327
3328 else
3329         ol_enable_rwm="${ol_dflt_overlays-no}"
3330 fi; # end --enable-rwm
3331
3332 # OpenLDAP --enable-syncprov
3333         # Check whether --enable-syncprov or --disable-syncprov was given.
3334 if test "${enable_syncprov+set}" = set; then
3335   enableval="$enable_syncprov"
3336
3337         ol_arg=invalid
3338         for ol_val in no yes mod ; do
3339                 if test "$enableval" = "$ol_val" ; then
3340                         ol_arg="$ol_val"
3341                 fi
3342         done
3343         if test "$ol_arg" = "invalid" ; then
3344                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3346    { (exit 1); exit 1; }; }
3347         fi
3348         ol_enable_syncprov="$ol_arg"
3349
3350 else
3351         ol_enable_syncprov="${ol_dflt_overlays-yes}"
3352 fi; # end --enable-syncprov
3353
3354 # OpenLDAP --enable-translucent
3355         # Check whether --enable-translucent or --disable-translucent was given.
3356 if test "${enable_translucent+set}" = set; then
3357   enableval="$enable_translucent"
3358
3359         ol_arg=invalid
3360         for ol_val in no yes mod ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_translucent="$ol_arg"
3371
3372 else
3373         ol_enable_translucent="${ol_dflt_overlays-no}"
3374 fi; # end --enable-translucent
3375
3376 # OpenLDAP --enable-unique
3377         # Check whether --enable-unique or --disable-unique was given.
3378 if test "${enable_unique+set}" = set; then
3379   enableval="$enable_unique"
3380
3381         ol_arg=invalid
3382         for ol_val in no yes mod ; do
3383                 if test "$enableval" = "$ol_val" ; then
3384                         ol_arg="$ol_val"
3385                 fi
3386         done
3387         if test "$ol_arg" = "invalid" ; then
3388                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3389 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3390    { (exit 1); exit 1; }; }
3391         fi
3392         ol_enable_unique="$ol_arg"
3393
3394 else
3395         ol_enable_unique="${ol_dflt_overlays-no}"
3396 fi; # end --enable-unique
3397
3398
3399
3400
3401 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3402 if test "${with_xxslurpdoptions+set}" = set; then
3403   withval="$with_xxslurpdoptions"
3404
3405 fi;
3406 # OpenLDAP --enable-slurpd
3407         # Check whether --enable-slurpd or --disable-slurpd was given.
3408 if test "${enable_slurpd+set}" = set; then
3409   enableval="$enable_slurpd"
3410
3411         ol_arg=invalid
3412         for ol_val in auto yes no ; do
3413                 if test "$enableval" = "$ol_val" ; then
3414                         ol_arg="$ol_val"
3415                 fi
3416         done
3417         if test "$ol_arg" = "invalid" ; then
3418                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3419 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3420    { (exit 1); exit 1; }; }
3421         fi
3422         ol_enable_slurpd="$ol_arg"
3423
3424 else
3425         ol_enable_slurpd="auto"
3426 fi; # end --enable-slurpd
3427
3428
3429 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3430 if test "${with_xxliboptions+set}" = set; then
3431   withval="$with_xxliboptions"
3432
3433 fi;
3434 # Check whether --enable-static or --disable-static was given.
3435 if test "${enable_static+set}" = set; then
3436   enableval="$enable_static"
3437   p=${PACKAGE-default}
3438     case $enableval in
3439     yes) enable_static=yes ;;
3440     no) enable_static=no ;;
3441     *)
3442      enable_static=no
3443       # Look at the argument we got.  We use all the common list separators.
3444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3445       for pkg in $enableval; do
3446         IFS="$lt_save_ifs"
3447         if test "X$pkg" = "X$p"; then
3448           enable_static=yes
3449         fi
3450       done
3451       IFS="$lt_save_ifs"
3452       ;;
3453     esac
3454 else
3455   enable_static=yes
3456 fi;
3457
3458 # Check whether --enable-shared or --disable-shared was given.
3459 if test "${enable_shared+set}" = set; then
3460   enableval="$enable_shared"
3461   p=${PACKAGE-default}
3462     case $enableval in
3463     yes) enable_shared=yes ;;
3464     no) enable_shared=no ;;
3465     *)
3466       enable_shared=no
3467       # Look at the argument we got.  We use all the common list separators.
3468       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3469       for pkg in $enableval; do
3470         IFS="$lt_save_ifs"
3471         if test "X$pkg" = "X$p"; then
3472           enable_shared=yes
3473         fi
3474       done
3475       IFS="$lt_save_ifs"
3476       ;;
3477     esac
3478 else
3479   enable_shared=yes
3480 fi;
3481
3482
3483
3484 # validate options
3485 if test $ol_enable_slapd = no ; then
3486                 if test $ol_enable_slapi = yes ; then
3487                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3488 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3489         fi
3490         case "$ol_enable_backends" in yes | mod)
3491                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3492 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3493         esac
3494         for i in $Backends; do
3495                 eval "ol_tmp=\$ol_enable_$i"
3496                 if test $ol_tmp != no ; then
3497                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3498 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3499                         eval "ol_enable_$i=no"
3500                 fi
3501         done
3502         if test $ol_enable_modules = yes ; then
3503                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3504 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3505         fi
3506         if test $ol_enable_multimaster = yes ; then
3507                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3508 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3509         fi
3510         if test $ol_enable_wrappers = yes ; then
3511                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3512 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3513         fi
3514         if test $ol_enable_rlookups = yes ; then
3515                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3516 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3517         fi
3518         if test $ol_enable_aci = yes ; then
3519                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3520 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3521         fi
3522         if test $ol_with_ldbm_api != auto ; then
3523                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3524 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3525         fi
3526         if test $ol_with_ldbm_type != auto ; then
3527                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3528 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3529         fi
3530         if test $ol_enable_slurpd = yes ; then
3531                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3532 echo "$as_me: error: slurpd requires slapd" >&2;}
3533    { (exit 1); exit 1; }; }
3534         fi
3535         if test $ol_enable_rewrite = yes ; then
3536                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3538         fi
3539                 case "$ol_enable_overlays" in yes | mod)
3540                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3541 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3542         esac
3543         for i in $Overlays; do
3544                 eval "ol_tmp=\$ol_enable_$i"
3545                 if test $ol_tmp != no ; then
3546                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3547 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3548                         eval "ol_enable_$i=no"
3549                 fi
3550         done
3551
3552         # force settings to no
3553         ol_enable_slapi=no
3554
3555         ol_enable_backends=
3556         ol_enable_overlays=
3557         ol_enable_modules=no
3558         ol_enable_multimaster=no
3559         ol_enable_rlookups=no
3560         ol_enable_aci=no
3561         ol_enable_wrappers=no
3562
3563         ol_with_ldbm_api=no
3564         ol_with_ldbm_type=no
3565
3566         ol_enable_slurpd=no
3567
3568         ol_enable_rewrite=no
3569
3570 elif test $ol_enable_ldbm = no ; then
3571
3572         if test $ol_with_ldbm_api != auto ; then
3573                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3574 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3575         fi
3576
3577         if test $ol_with_ldbm_type != auto ; then
3578                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3579 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3580         fi
3581
3582         if test $ol_enable_modules != yes -a \
3583                 $ol_enable_bdb = no -a \
3584                 $ol_enable_dnssrv = no -a \
3585                 $ol_enable_hdb = no -a \
3586                 $ol_enable_ldap = no -a \
3587                 $ol_enable_meta = no -a \
3588                 $ol_enable_monitor = no -a \
3589                 $ol_enable_null = no -a \
3590                 $ol_enable_passwd = no -a \
3591                 $ol_enable_perl = no -a \
3592                 $ol_enable_relay = no -a \
3593                 $ol_enable_shell = no -a \
3594                 $ol_enable_sql = no ; then
3595
3596                 if test $ol_enable_slapd = yes ; then
3597                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3598 echo "$as_me: error: slapd requires a backend" >&2;}
3599    { (exit 1); exit 1; }; }
3600                 else
3601                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3602 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3603                         ol_enable_slapd=no
3604                 fi
3605         fi
3606
3607         ol_with_ldbm_api=no
3608         ol_with_ldbm_type=no
3609
3610         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3611                 ol_with_ldbm_api=berkeley
3612         fi
3613
3614 else
3615                 if test $ol_with_ldbm_api = gdbm -a \
3616                 $ol_with_ldbm_type = btree ; then
3617                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3618 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3619    { (exit 1); exit 1; }; }
3620         fi
3621         if test $ol_with_ldbm_api = mdbm -a \
3622                 $ol_with_ldbm_type = btree ; then
3623                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3624 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3625    { (exit 1); exit 1; }; }
3626         fi
3627         if test $ol_with_ldbm_api = ndbm -a \
3628                 $ol_with_ldbm_type = btree ; then
3629                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3630 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3631    { (exit 1); exit 1; }; }
3632         fi
3633
3634         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3635                 if test $ol_with_ldbm_api = auto ; then
3636                         ol_with_ldbm_api=berkeley
3637                 elif test $ol_with_ldbm_api != berkeley ; then
3638                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3639 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3640    { (exit 1); exit 1; }; }
3641                 fi
3642         fi
3643 fi
3644
3645 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3646         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3647 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3648    { (exit 1); exit 1; }; }
3649 fi
3650
3651 if test $ol_enable_slurpd = yes ; then
3652                 if test $ol_with_threads = no ; then
3653                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3654 echo "$as_me: error: slurpd requires threads" >&2;}
3655    { (exit 1); exit 1; }; }
3656         fi
3657 fi
3658
3659 if test $ol_enable_lmpasswd = yes ; then
3660         if test $ol_with_tls = no ; then
3661                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3662 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3663    { (exit 1); exit 1; }; }
3664         fi
3665 fi
3666
3667 if test $ol_enable_kbind = yes ; then
3668         if test $ol_with_kerberos = no ; then
3669                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3670 echo "$as_me: error: options require --with-kerberos" >&2;}
3671    { (exit 1); exit 1; }; }
3672         elif test $ol_with_kerberos = auto ; then
3673                 ol_with_kerberos=yes
3674         fi
3675
3676 elif test $ol_enable_kbind = no ; then
3677         if test $ol_with_kerberos = auto ; then
3678                 ol_with_kerberos=no
3679         elif test $ol_with_kerberos != no ; then
3680                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3681 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3682                 ol_with_kerberos=no
3683         fi
3684 fi
3685
3686 if test $ol_enable_spasswd = yes ; then
3687         if test $ol_with_cyrus_sasl = no ; then
3688                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3689 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3690    { (exit 1); exit 1; }; }
3691         fi
3692         ol_with_cyrus_sasl=yes
3693 fi
3694
3695 echo "$as_me:$LINENO: result: done" >&5
3696 echo "${ECHO_T}done" >&6
3697
3698 LDAP_LIBS=
3699 LDBM_LIBS=
3700 LTHREAD_LIBS=
3701 LUTIL_LIBS=
3702
3703 SLAPD_LIBS=
3704 SLURPD_LIBS=
3705
3706 BUILD_SLAPD=no
3707 BUILD_SLURPD=no
3708
3709 BUILD_THREAD=no
3710
3711 BUILD_SLAPI=no
3712 SLAPD_SLAPI_DEPEND=
3713
3714 BUILD_BDB=no
3715 BUILD_DNSSRV=no
3716 BUILD_HDB=no
3717 BUILD_LDAP=no
3718 BUILD_LDBM=no
3719 BUILD_META=no
3720 BUILD_MONITOR=no
3721 BUILD_NULL=no
3722 BUILD_PASSWD=no
3723 BUILD_PERL=no
3724 BUILD_RELAY=no
3725 BUILD_SHELL=no
3726 BUILD_SQL=no
3727
3728 BUILD_ACCESSLOG=no
3729 BUILD_DENYOP=no
3730 BUILD_DYNGROUP=no
3731 BUILD_DYNLIST=no
3732 BUILD_GLUE=no
3733 BUILD_LASTMOD=no
3734 BUILD_PPOLICY=no
3735 BUILD_PROXYCACHE=no
3736 BUILD_REFINT=no
3737 BUILD_RETCODE=no
3738 BUILD_RWM=no
3739 BUILD_SYNCPROV=no
3740 BUILD_TRANSLUCENT=no
3741 BUILD_UNIQUE=no
3742
3743 SLAPD_STATIC_OVERLAYS=
3744 SLAPD_DYNAMIC_OVERLAYS=
3745
3746 SLAPD_MODULES_LDFLAGS=
3747 SLAPD_MODULES_CPPFLAGS=
3748
3749 SLAPD_STATIC_BACKENDS=back-ldif
3750 SLAPD_DYNAMIC_BACKENDS=
3751
3752 SLAPD_PERL_LDFLAGS=
3753 MOD_PERL_LDFLAGS=
3754 PERL_CPPFLAGS=
3755
3756 SLAPD_SQL_LDFLAGS=
3757 SLAPD_SQL_LIBS=
3758 SLAPD_SQL_INCLUDES=
3759
3760 KRB4_LIBS=
3761 KRB5_LIBS=
3762 SASL_LIBS=
3763 TLS_LIBS=
3764 MODULES_LIBS=
3765 SLAPI_LIBS=
3766 LIBSLAPI=
3767 LIBSLAPITOOLS=
3768 AUTH_LIBS=
3769
3770 SLAPD_SLP_LIBS=
3771 SLAPD_GMP_LIBS=
3772
3773
3774
3775 cat >>confdefs.h <<\_ACEOF
3776 #define HAVE_MKVERSION 1
3777 _ACEOF
3778
3779
3780
3781
3782 ol_aix_threads=no
3783 case "$target" in
3784 *-*-aix*)       if test -z "$CC" ; then
3785                 case "$ol_with_threads" in
3786                 auto | yes |  posix) ol_aix_threads=yes ;;
3787                 esac
3788         fi
3789 ;;
3790 esac
3791
3792 if test $ol_aix_threads = yes ; then
3793         if test -z "${CC}" ; then
3794                 for ac_prog in cc_r xlc_r cc
3795 do
3796   # Extract the first word of "$ac_prog", so it can be a program name with args.
3797 set dummy $ac_prog; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_CC+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   if test -n "$CC"; then
3804   ac_cv_prog_CC="$CC" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811   for ac_exec_ext in '' $ac_executable_extensions; do
3812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813     ac_cv_prog_CC="$ac_prog"
3814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3815     break 2
3816   fi
3817 done
3818 done
3819
3820 fi
3821 fi
3822 CC=$ac_cv_prog_CC
3823 if test -n "$CC"; then
3824   echo "$as_me:$LINENO: result: $CC" >&5
3825 echo "${ECHO_T}$CC" >&6
3826 else
3827   echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3829 fi
3830
3831   test -n "$CC" && break
3832 done
3833
3834
3835                 if test "$CC" = cc ; then
3836                                                 if test $ol_with_threads != auto ; then
3837                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3838 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3839    { (exit 1); exit 1; }; }
3840                         else
3841                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3842 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3843                         fi
3844                         ol_with_threads=no
3845                 fi
3846         fi
3847
3848         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3849                 ol_with_threads=posix
3850                 ol_cv_pthread_create=yes
3851         fi
3852 fi
3853
3854 if test -z "${CC}"; then
3855         for ac_prog in cc gcc
3856 do
3857   # Extract the first word of "$ac_prog", so it can be a program name with args.
3858 set dummy $ac_prog; ac_word=$2
3859 echo "$as_me:$LINENO: checking for $ac_word" >&5
3860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861 if test "${ac_cv_prog_CC+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   if test -n "$CC"; then
3865   ac_cv_prog_CC="$CC" # Let the user override the test.
3866 else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3869 do
3870   IFS=$as_save_IFS
3871   test -z "$as_dir" && as_dir=.
3872   for ac_exec_ext in '' $ac_executable_extensions; do
3873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874     ac_cv_prog_CC="$ac_prog"
3875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876     break 2
3877   fi
3878 done
3879 done
3880
3881 fi
3882 fi
3883 CC=$ac_cv_prog_CC
3884 if test -n "$CC"; then
3885   echo "$as_me:$LINENO: result: $CC" >&5
3886 echo "${ECHO_T}$CC" >&6
3887 else
3888   echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6
3890 fi
3891
3892   test -n "$CC" && break
3893 done
3894 test -n "$CC" || CC="missing"
3895
3896
3897         if test "${CC}" = "missing" ; then
3898                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3899 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3900    { (exit 1); exit 1; }; }
3901         fi
3902 fi
3903
3904 if test -z "${AR}"; then
3905         for ac_prog in ar gar
3906 do
3907   # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   if test -n "$AR"; then
3915   ac_cv_prog_AR="$AR" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924     ac_cv_prog_AR="$ac_prog"
3925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926     break 2
3927   fi
3928 done
3929 done
3930
3931 fi
3932 fi
3933 AR=$ac_cv_prog_AR
3934 if test -n "$AR"; then
3935   echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3937 else
3938   echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942   test -n "$AR" && break
3943 done
3944 test -n "$AR" || AR="missing"
3945
3946
3947         if test "${AR}" = "missing" ; then
3948                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3949 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3950    { (exit 1); exit 1; }; }
3951         fi
3952 fi
3953
3954
3955
3956
3957
3958 # Check whether --enable-fast-install or --disable-fast-install was given.
3959 if test "${enable_fast_install+set}" = set; then
3960   enableval="$enable_fast_install"
3961   p=${PACKAGE-default}
3962     case $enableval in
3963     yes) enable_fast_install=yes ;;
3964     no) enable_fast_install=no ;;
3965     *)
3966       enable_fast_install=no
3967       # Look at the argument we got.  We use all the common list separators.
3968       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3969       for pkg in $enableval; do
3970         IFS="$lt_save_ifs"
3971         if test "X$pkg" = "X$p"; then
3972           enable_fast_install=yes
3973         fi
3974       done
3975       IFS="$lt_save_ifs"
3976       ;;
3977     esac
3978 else
3979   enable_fast_install=yes
3980 fi;
3981
3982 DEPDIR="${am__leading_dot}deps"
3983
3984           ac_config_commands="$ac_config_commands depfiles"
3985
3986
3987 am_make=${MAKE-make}
3988 cat > confinc << 'END'
3989 am__doit:
3990         @echo done
3991 .PHONY: am__doit
3992 END
3993 # If we don't find an include directive, just comment out the code.
3994 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3995 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3996 am__include="#"
3997 am__quote=
3998 _am_result=none
3999 # First try GNU make style include.
4000 echo "include confinc" > confmf
4001 # We grep out `Entering directory' and `Leaving directory'
4002 # messages which can occur if `w' ends up in MAKEFLAGS.
4003 # In particular we don't look at `^make:' because GNU make might
4004 # be invoked under some other name (usually "gmake"), in which
4005 # case it prints its new name instead of `make'.
4006 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4007    am__include=include
4008    am__quote=
4009    _am_result=GNU
4010 fi
4011 # Now try BSD make style include.
4012 if test "$am__include" = "#"; then
4013    echo '.include "confinc"' > confmf
4014    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4015       am__include=.include
4016       am__quote="\""
4017       _am_result=BSD
4018    fi
4019 fi
4020
4021
4022 echo "$as_me:$LINENO: result: $_am_result" >&5
4023 echo "${ECHO_T}$_am_result" >&6
4024 rm -f confinc confmf
4025
4026 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4027 if test "${enable_dependency_tracking+set}" = set; then
4028   enableval="$enable_dependency_tracking"
4029
4030 fi;
4031 if test "x$enable_dependency_tracking" != xno; then
4032   am_depcomp="$ac_aux_dir/depcomp"
4033   AMDEPBACKSLASH='\'
4034 fi
4035
4036
4037 if test "x$enable_dependency_tracking" != xno; then
4038   AMDEP_TRUE=
4039   AMDEP_FALSE='#'
4040 else
4041   AMDEP_TRUE='#'
4042   AMDEP_FALSE=
4043 fi
4044
4045
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_tool_prefix"; then
4053   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_CC+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   if test -n "$CC"; then
4061   ac_cv_prog_CC="$CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068   for ac_exec_ext in '' $ac_executable_extensions; do
4069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075 done
4076
4077 fi
4078 fi
4079 CC=$ac_cv_prog_CC
4080 if test -n "$CC"; then
4081   echo "$as_me:$LINENO: result: $CC" >&5
4082 echo "${ECHO_T}$CC" >&6
4083 else
4084   echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4086 fi
4087
4088 fi
4089 if test -z "$ac_cv_prog_CC"; then
4090   ac_ct_CC=$CC
4091   # Extract the first word of "gcc", so it can be a program name with args.
4092 set dummy gcc; ac_word=$2
4093 echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   if test -n "$ac_ct_CC"; then
4099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104   IFS=$as_save_IFS
4105   test -z "$as_dir" && as_dir=.
4106   for ac_exec_ext in '' $ac_executable_extensions; do
4107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108     ac_cv_prog_ac_ct_CC="gcc"
4109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110     break 2
4111   fi
4112 done
4113 done
4114
4115 fi
4116 fi
4117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118 if test -n "$ac_ct_CC"; then
4119   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4120 echo "${ECHO_T}$ac_ct_CC" >&6
4121 else
4122   echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6
4124 fi
4125
4126   CC=$ac_ct_CC
4127 else
4128   CC="$ac_cv_prog_CC"
4129 fi
4130
4131 if test -z "$CC"; then
4132   if test -n "$ac_tool_prefix"; then
4133   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4134 set dummy ${ac_tool_prefix}cc; ac_word=$2
4135 echo "$as_me:$LINENO: checking for $ac_word" >&5
4136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137 if test "${ac_cv_prog_CC+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   if test -n "$CC"; then
4141   ac_cv_prog_CC="$CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4145 do
4146   IFS=$as_save_IFS
4147   test -z "$as_dir" && as_dir=.
4148   for ac_exec_ext in '' $ac_executable_extensions; do
4149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150     ac_cv_prog_CC="${ac_tool_prefix}cc"
4151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152     break 2
4153   fi
4154 done
4155 done
4156
4157 fi
4158 fi
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161   echo "$as_me:$LINENO: result: $CC" >&5
4162 echo "${ECHO_T}$CC" >&6
4163 else
4164   echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4166 fi
4167
4168 fi
4169 if test -z "$ac_cv_prog_CC"; then
4170   ac_ct_CC=$CC
4171   # Extract the first word of "cc", so it can be a program name with args.
4172 set dummy cc; ac_word=$2
4173 echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   if test -n "$ac_ct_CC"; then
4179   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   for ac_exec_ext in '' $ac_executable_extensions; do
4187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188     ac_cv_prog_ac_ct_CC="cc"
4189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193 done
4194
4195 fi
4196 fi
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4200 echo "${ECHO_T}$ac_ct_CC" >&6
4201 else
4202   echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6
4204 fi
4205
4206   CC=$ac_ct_CC
4207 else
4208   CC="$ac_cv_prog_CC"
4209 fi
4210
4211 fi
4212 if test -z "$CC"; then
4213   # Extract the first word of "cc", so it can be a program name with args.
4214 set dummy cc; ac_word=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_CC+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   if test -n "$CC"; then
4221   ac_cv_prog_CC="$CC" # Let the user override the test.
4222 else
4223   ac_prog_rejected=no
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4232        ac_prog_rejected=yes
4233        continue
4234      fi
4235     ac_cv_prog_CC="cc"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241
4242 if test $ac_prog_rejected = yes; then
4243   # We found a bogon in the path, so make sure we never use it.
4244   set dummy $ac_cv_prog_CC
4245   shift
4246   if test $# != 0; then
4247     # We chose a different compiler from the bogus one.
4248     # However, it has the same basename, so the bogon will be chosen
4249     # first if we set CC to just the basename; use the full file name.
4250     shift
4251     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4252   fi
4253 fi
4254 fi
4255 fi
4256 CC=$ac_cv_prog_CC
4257 if test -n "$CC"; then
4258   echo "$as_me:$LINENO: result: $CC" >&5
4259 echo "${ECHO_T}$CC" >&6
4260 else
4261   echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263 fi
4264
4265 fi
4266 if test -z "$CC"; then
4267   if test -n "$ac_tool_prefix"; then
4268   for ac_prog in cl
4269   do
4270     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_CC+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   if test -n "$CC"; then
4278   ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285   for ac_exec_ext in '' $ac_executable_extensions; do
4286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292 done
4293
4294 fi
4295 fi
4296 CC=$ac_cv_prog_CC
4297 if test -n "$CC"; then
4298   echo "$as_me:$LINENO: result: $CC" >&5
4299 echo "${ECHO_T}$CC" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305     test -n "$CC" && break
4306   done
4307 fi
4308 if test -z "$CC"; then
4309   ac_ct_CC=$CC
4310   for ac_prog in cl
4311 do
4312   # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   if test -n "$ac_ct_CC"; then
4320   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327   for ac_exec_ext in '' $ac_executable_extensions; do
4328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329     ac_cv_prog_ac_ct_CC="$ac_prog"
4330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331     break 2
4332   fi
4333 done
4334 done
4335
4336 fi
4337 fi
4338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4339 if test -n "$ac_ct_CC"; then
4340   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4341 echo "${ECHO_T}$ac_ct_CC" >&6
4342 else
4343   echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4345 fi
4346
4347   test -n "$ac_ct_CC" && break
4348 done
4349
4350   CC=$ac_ct_CC
4351 fi
4352
4353 fi
4354
4355
4356 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4357 See \`config.log' for more details." >&5
4358 echo "$as_me: error: no acceptable C compiler found in \$PATH
4359 See \`config.log' for more details." >&2;}
4360    { (exit 1); exit 1; }; }
4361
4362 # Provide some information about the compiler.
4363 echo "$as_me:$LINENO:" \
4364      "checking for C compiler version" >&5
4365 ac_compiler=`set X $ac_compile; echo $2`
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4367   (eval $ac_compiler --version </dev/null >&5) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4372   (eval $ac_compiler -v </dev/null >&5) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }
4376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4377   (eval $ac_compiler -V </dev/null >&5) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }
4381
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 ac_clean_files_save=$ac_clean_files
4398 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4399 # Try to create an executable without -o first, disregard a.out.
4400 # It will help us diagnose broken compilers, and finding out an intuition
4401 # of exeext.
4402 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4403 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4404 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4406   (eval $ac_link_default) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; then
4410   # Find the output, starting from the most likely.  This scheme is
4411 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4412 # resort.
4413
4414 # Be careful to initialize this variable, since it used to be cached.
4415 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4416 ac_cv_exeext=
4417 # b.out is created by i960 compilers.
4418 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4419 do
4420   test -f "$ac_file" || continue
4421   case $ac_file in
4422     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4423         ;;
4424     conftest.$ac_ext )
4425         # This is the source file.
4426         ;;
4427     [ab].out )
4428         # We found the default executable, but exeext='' is most
4429         # certainly right.
4430         break;;
4431     *.* )
4432         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4433         # FIXME: I believe we export ac_cv_exeext for Libtool,
4434         # but it would be cool to find out if it's true.  Does anybody
4435         # maintain Libtool? --akim.
4436         export ac_cv_exeext
4437         break;;
4438     * )
4439         break;;
4440   esac
4441 done
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4447 See \`config.log' for more details." >&5
4448 echo "$as_me: error: C compiler cannot create executables
4449 See \`config.log' for more details." >&2;}
4450    { (exit 77); exit 77; }; }
4451 fi
4452
4453 ac_exeext=$ac_cv_exeext
4454 echo "$as_me:$LINENO: result: $ac_file" >&5
4455 echo "${ECHO_T}$ac_file" >&6
4456
4457 # Check the compiler produces executables we can run.  If not, either
4458 # the compiler is broken, or we cross compile.
4459 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4462 # If not cross compiling, check that we can run a simple program.
4463 if test "$cross_compiling" != yes; then
4464   if { ac_try='./$ac_file'
4465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466   (eval $ac_try) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; }; then
4470     cross_compiling=no
4471   else
4472     if test "$cross_compiling" = maybe; then
4473         cross_compiling=yes
4474     else
4475         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4476 If you meant to cross compile, use \`--host'.
4477 See \`config.log' for more details." >&5
4478 echo "$as_me: error: cannot run C compiled programs.
4479 If you meant to cross compile, use \`--host'.
4480 See \`config.log' for more details." >&2;}
4481    { (exit 1); exit 1; }; }
4482     fi
4483   fi
4484 fi
4485 echo "$as_me:$LINENO: result: yes" >&5
4486 echo "${ECHO_T}yes" >&6
4487
4488 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4489 ac_clean_files=$ac_clean_files_save
4490 # Check the compiler produces executables we can run.  If not, either
4491 # the compiler is broken, or we cross compile.
4492 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4493 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4494 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4495 echo "${ECHO_T}$cross_compiling" >&6
4496
4497 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4498 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500   (eval $ac_link) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; then
4504   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4505 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4506 # work properly (i.e., refer to `conftest.exe'), while it won't with
4507 # `rm'.
4508 for ac_file in conftest.exe conftest conftest.*; do
4509   test -f "$ac_file" || continue
4510   case $ac_file in
4511     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4512     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513           export ac_cv_exeext
4514           break;;
4515     * ) break;;
4516   esac
4517 done
4518 else
4519   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4520 See \`config.log' for more details." >&5
4521 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4522 See \`config.log' for more details." >&2;}
4523    { (exit 1); exit 1; }; }
4524 fi
4525
4526 rm -f conftest$ac_cv_exeext
4527 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4528 echo "${ECHO_T}$ac_cv_exeext" >&6
4529
4530 rm -f conftest.$ac_ext
4531 EXEEXT=$ac_cv_exeext
4532 ac_exeext=$EXEEXT
4533 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4534 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4535 if test "${ac_cv_objext+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   cat >conftest.$ac_ext <<_ACEOF
4539 /* confdefs.h.  */
4540 _ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h.  */
4544
4545 int
4546 main ()
4547 {
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.o conftest.obj
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555   (eval $ac_compile) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; then
4559   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4560   case $ac_file in
4561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4562     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4563        break;;
4564   esac
4565 done
4566 else
4567   echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4573 See \`config.log' for more details." >&2;}
4574    { (exit 1); exit 1; }; }
4575 fi
4576
4577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4578 fi
4579 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4580 echo "${ECHO_T}$ac_cv_objext" >&6
4581 OBJEXT=$ac_cv_objext
4582 ac_objext=$OBJEXT
4583 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4584 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4585 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594
4595 int
4596 main ()
4597 {
4598 #ifndef __GNUC__
4599        choke me
4600 #endif
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608   (eval $ac_compile) 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } &&
4615          { ac_try='test -z "$ac_c_werror_flag"
4616                          || test ! -s conftest.err'
4617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618   (eval $ac_try) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; } &&
4622          { ac_try='test -s conftest.$ac_objext'
4623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624   (eval $ac_try) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; }; then
4628   ac_compiler_gnu=yes
4629 else
4630   echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4632
4633 ac_compiler_gnu=no
4634 fi
4635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4637
4638 fi
4639 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4640 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4641 GCC=`test $ac_compiler_gnu = yes && echo yes`
4642 ac_test_CFLAGS=${CFLAGS+set}
4643 ac_save_CFLAGS=$CFLAGS
4644 CFLAGS="-g"
4645 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4646 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4647 if test "${ac_cv_prog_cc_g+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656
4657 int
4658 main ()
4659 {
4660
4661   ;
4662   return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667   (eval $ac_compile) 2>conftest.er1
4668   ac_status=$?
4669   grep -v '^ *+' conftest.er1 >conftest.err
4670   rm -f conftest.er1
4671   cat conftest.err >&5
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } &&
4674          { ac_try='test -z "$ac_c_werror_flag"
4675                          || test ! -s conftest.err'
4676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677   (eval $ac_try) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; } &&
4681          { ac_try='test -s conftest.$ac_objext'
4682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683   (eval $ac_try) 2>&5
4684   ac_status=$?
4685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686   (exit $ac_status); }; }; then
4687   ac_cv_prog_cc_g=yes
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ac_cv_prog_cc_g=no
4693 fi
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4695 fi
4696 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4697 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4698 if test "$ac_test_CFLAGS" = set; then
4699   CFLAGS=$ac_save_CFLAGS
4700 elif test $ac_cv_prog_cc_g = yes; then
4701   if test "$GCC" = yes; then
4702     CFLAGS="-g -O2"
4703   else
4704     CFLAGS="-g"
4705   fi
4706 else
4707   if test "$GCC" = yes; then
4708     CFLAGS="-O2"
4709   else
4710     CFLAGS=
4711   fi
4712 fi
4713 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4714 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4715 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   ac_cv_prog_cc_stdc=no
4719 ac_save_CC=$CC
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726 #include <stdarg.h>
4727 #include <stdio.h>
4728 #include <sys/types.h>
4729 #include <sys/stat.h>
4730 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4731 struct buf { int x; };
4732 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4733 static char *e (p, i)
4734      char **p;
4735      int i;
4736 {
4737   return p[i];
4738 }
4739 static char *f (char * (*g) (char **, int), char **p, ...)
4740 {
4741   char *s;
4742   va_list v;
4743   va_start (v,p);
4744   s = g (p, va_arg (v,int));
4745   va_end (v);
4746   return s;
4747 }
4748
4749 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4750    function prototypes and stuff, but not '\xHH' hex character constants.
4751    These don't provoke an error unfortunately, instead are silently treated
4752    as 'x'.  The following induces an error, until -std1 is added to get
4753    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4754    array size at least.  It's necessary to write '\x00'==0 to get something
4755    that's true only with -std1.  */
4756 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4757
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4762 int argc;
4763 char **argv;
4764 int
4765 main ()
4766 {
4767 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 # Don't try gcc -ansi; that turns off useful extensions and
4773 # breaks some systems' header files.
4774 # AIX                   -qlanglvl=ansi
4775 # Ultrix and OSF/1      -std1
4776 # HP-UX 10.20 and later -Ae
4777 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4778 # SVR4                  -Xc -D__EXTENSIONS__
4779 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4780 do
4781   CC="$ac_save_CC $ac_arg"
4782   rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -z "$ac_c_werror_flag"
4792                          || test ! -s conftest.err'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; } &&
4798          { ac_try='test -s conftest.$ac_objext'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; }; then
4804   ac_cv_prog_cc_stdc=$ac_arg
4805 break
4806 else
4807   echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 fi
4811 rm -f conftest.err conftest.$ac_objext
4812 done
4813 rm -f conftest.$ac_ext conftest.$ac_objext
4814 CC=$ac_save_CC
4815
4816 fi
4817
4818 case "x$ac_cv_prog_cc_stdc" in
4819   x|xno)
4820     echo "$as_me:$LINENO: result: none needed" >&5
4821 echo "${ECHO_T}none needed" >&6 ;;
4822   *)
4823     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4824 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4825     CC="$CC $ac_cv_prog_cc_stdc" ;;
4826 esac
4827
4828 # Some people use a C++ compiler to compile C.  Since we use `exit',
4829 # in C++ we need to declare it.  In case someone uses the same compiler
4830 # for both compiling C and C++ we need to have the C++ compiler decide
4831 # the declaration of exit, since it's the most demanding environment.
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #ifndef __cplusplus
4834   choke me
4835 #endif
4836 _ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839   (eval $ac_compile) 2>conftest.er1
4840   ac_status=$?
4841   grep -v '^ *+' conftest.er1 >conftest.err
4842   rm -f conftest.er1
4843   cat conftest.err >&5
4844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845   (exit $ac_status); } &&
4846          { ac_try='test -z "$ac_c_werror_flag"
4847                          || test ! -s conftest.err'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; } &&
4853          { ac_try='test -s conftest.$ac_objext'
4854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855   (eval $ac_try) 2>&5
4856   ac_status=$?
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); }; }; then
4859   for ac_declaration in \
4860    '' \
4861    'extern "C" void std::exit (int) throw (); using std::exit;' \
4862    'extern "C" void std::exit (int); using std::exit;' \
4863    'extern "C" void exit (int) throw ();' \
4864    'extern "C" void exit (int);' \
4865    'void exit (int);'
4866 do
4867   cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873 $ac_declaration
4874 #include <stdlib.h>
4875 int
4876 main ()
4877 {
4878 exit (42);
4879   ;
4880   return 0;
4881 }
4882 _ACEOF
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885   (eval $ac_compile) 2>conftest.er1
4886   ac_status=$?
4887   grep -v '^ *+' conftest.er1 >conftest.err
4888   rm -f conftest.er1
4889   cat conftest.err >&5
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } &&
4892          { ac_try='test -z "$ac_c_werror_flag"
4893                          || test ! -s conftest.err'
4894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895   (eval $ac_try) 2>&5
4896   ac_status=$?
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); }; } &&
4899          { ac_try='test -s conftest.$ac_objext'
4900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901   (eval $ac_try) 2>&5
4902   ac_status=$?
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); }; }; then
4905   :
4906 else
4907   echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910 continue
4911 fi
4912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913   cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h.  */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h.  */
4919 $ac_declaration
4920 int
4921 main ()
4922 {
4923 exit (42);
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930   (eval $ac_compile) 2>conftest.er1
4931   ac_status=$?
4932   grep -v '^ *+' conftest.er1 >conftest.err
4933   rm -f conftest.er1
4934   cat conftest.err >&5
4935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936   (exit $ac_status); } &&
4937          { ac_try='test -z "$ac_c_werror_flag"
4938                          || test ! -s conftest.err'
4939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940   (eval $ac_try) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; } &&
4944          { ac_try='test -s conftest.$ac_objext'
4945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946   (eval $ac_try) 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); }; }; then
4950   break
4951 else
4952   echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4954
4955 fi
4956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4957 done
4958 rm -f conftest*
4959 if test -n "$ac_declaration"; then
4960   echo '#ifdef __cplusplus' >>confdefs.h
4961   echo $ac_declaration      >>confdefs.h
4962   echo '#endif'             >>confdefs.h
4963 fi
4964
4965 else
4966   echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 fi
4970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976
4977 depcc="$CC"   am_compiler_list=
4978
4979 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4980 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4981 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4985   # We make a subdir and do the tests there.  Otherwise we can end up
4986   # making bogus files that we don't know about and never remove.  For
4987   # instance it was reported that on HP-UX the gcc test will end up
4988   # making a dummy file named `D' -- because `-MD' means `put the output
4989   # in D'.
4990   mkdir conftest.dir
4991   # Copy depcomp to subdir because otherwise we won't find it if we're
4992   # using a relative directory.
4993   cp "$am_depcomp" conftest.dir
4994   cd conftest.dir
4995   # We will build objects and dependencies in a subdirectory because
4996   # it helps to detect inapplicable dependency modes.  For instance
4997   # both Tru64's cc and ICC support -MD to output dependencies as a
4998   # side effect of compilation, but ICC will put the dependencies in
4999   # the current directory while Tru64 will put them in the object
5000   # directory.
5001   mkdir sub
5002
5003   am_cv_CC_dependencies_compiler_type=none
5004   if test "$am_compiler_list" = ""; then
5005      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5006   fi
5007   for depmode in $am_compiler_list; do
5008     # Setup a source with many dependencies, because some compilers
5009     # like to wrap large dependency lists on column 80 (with \), and
5010     # we should not choose a depcomp mode which is confused by this.
5011     #
5012     # We need to recreate these files for each test, as the compiler may
5013     # overwrite some of them when testing with obscure command lines.
5014     # This happens at least with the AIX C compiler.
5015     : > sub/conftest.c
5016     for i in 1 2 3 4 5 6; do
5017       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5018       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5019       # Solaris 8's {/usr,}/bin/sh.
5020       touch sub/conftst$i.h
5021     done
5022     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5023
5024     case $depmode in
5025     nosideeffect)
5026       # after this tag, mechanisms are not by side-effect, so they'll
5027       # only be used when explicitly requested
5028       if test "x$enable_dependency_tracking" = xyes; then
5029         continue
5030       else
5031         break
5032       fi
5033       ;;
5034     none) break ;;
5035     esac
5036     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5037     # mode.  It turns out that the SunPro C++ compiler does not properly
5038     # handle `-M -o', and we need to detect this.
5039     if depmode=$depmode \
5040        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5041        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5043          >/dev/null 2>conftest.err &&
5044        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5045        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5046        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5047       # icc doesn't choke on unknown options, it will just issue warnings
5048       # or remarks (even with -Werror).  So we grep stderr for any message
5049       # that says an option was ignored or not supported.
5050       # When given -MP, icc 7.0 and 7.1 complain thusly:
5051       #   icc: Command line warning: ignoring option '-M'; no argument required
5052       # The diagnosis changed in icc 8.0:
5053       #   icc: Command line remark: option '-MP' not supported
5054       if (grep 'ignoring option' conftest.err ||
5055           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5056         am_cv_CC_dependencies_compiler_type=$depmode
5057         break
5058       fi
5059     fi
5060   done
5061
5062   cd ..
5063   rm -rf conftest.dir
5064 else
5065   am_cv_CC_dependencies_compiler_type=none
5066 fi
5067
5068 fi
5069 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5070 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5072
5073
5074
5075 if
5076   test "x$enable_dependency_tracking" != xno \
5077   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5078   am__fastdepCC_TRUE=
5079   am__fastdepCC_FALSE='#'
5080 else
5081   am__fastdepCC_TRUE='#'
5082   am__fastdepCC_FALSE=
5083 fi
5084
5085
5086 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5087 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5088 if test "${lt_cv_path_SED+set}" = set; then
5089   echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091   # Loop through the user's path and test for sed and gsed.
5092 # Then use that list of sed's as ones to test for truncation.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098   for lt_ac_prog in sed gsed; do
5099     for ac_exec_ext in '' $ac_executable_extensions; do
5100       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5101         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5102       fi
5103     done
5104   done
5105 done
5106 lt_ac_max=0
5107 lt_ac_count=0
5108 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5109 # along with /bin/sed that truncates output.
5110 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5111   test ! -f $lt_ac_sed && continue
5112   cat /dev/null > conftest.in
5113   lt_ac_count=0
5114   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5115   # Check for GNU sed and select it if it is found.
5116   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5117     lt_cv_path_SED=$lt_ac_sed
5118     break
5119   fi
5120   while true; do
5121     cat conftest.in conftest.in >conftest.tmp
5122     mv conftest.tmp conftest.in
5123     cp conftest.in conftest.nl
5124     echo >>conftest.nl
5125     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5126     cmp -s conftest.out conftest.nl || break
5127     # 10000 chars as input seems more than enough
5128     test $lt_ac_count -gt 10 && break
5129     lt_ac_count=`expr $lt_ac_count + 1`
5130     if test $lt_ac_count -gt $lt_ac_max; then
5131       lt_ac_max=$lt_ac_count
5132       lt_cv_path_SED=$lt_ac_sed
5133     fi
5134   done
5135 done
5136
5137 fi
5138
5139 SED=$lt_cv_path_SED
5140 echo "$as_me:$LINENO: result: $SED" >&5
5141 echo "${ECHO_T}$SED" >&6
5142
5143 echo "$as_me:$LINENO: checking for egrep" >&5
5144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5145 if test "${ac_cv_prog_egrep+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5149     then ac_cv_prog_egrep='grep -E'
5150     else ac_cv_prog_egrep='egrep'
5151     fi
5152 fi
5153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5155  EGREP=$ac_cv_prog_egrep
5156
5157
5158
5159 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5160 if test "${with_gnu_ld+set}" = set; then
5161   withval="$with_gnu_ld"
5162   test "$withval" = no || with_gnu_ld=yes
5163 else
5164   with_gnu_ld=no
5165 fi;
5166 ac_prog=ld
5167 if test "$GCC" = yes; then
5168   # Check if gcc -print-prog-name=ld gives a path.
5169   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5170 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5171   case $host in
5172   *-*-mingw*)
5173     # gcc leaves a trailing carriage return which upsets mingw
5174     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5175   *)
5176     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5177   esac
5178   case $ac_prog in
5179     # Accept absolute paths.
5180     [\\/]* | ?:[\\/]*)
5181       re_direlt='/[^/][^/]*/\.\./'
5182       # Canonicalize the pathname of ld
5183       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5184       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5185         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5186       done
5187       test -z "$LD" && LD="$ac_prog"
5188       ;;
5189   "")
5190     # If it fails, then pretend we aren't using GCC.
5191     ac_prog=ld
5192     ;;
5193   *)
5194     # If it is relative, then search for the first ld in PATH.
5195     with_gnu_ld=unknown
5196     ;;
5197   esac
5198 elif test "$with_gnu_ld" = yes; then
5199   echo "$as_me:$LINENO: checking for GNU ld" >&5
5200 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5201 else
5202   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5203 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5204 fi
5205 if test "${lt_cv_path_LD+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208   if test -z "$LD"; then
5209   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5210   for ac_dir in $PATH; do
5211     IFS="$lt_save_ifs"
5212     test -z "$ac_dir" && ac_dir=.
5213     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5214       lt_cv_path_LD="$ac_dir/$ac_prog"
5215       # Check to see if the program is GNU ld.  I'd rather use --version,
5216       # but apparently some GNU ld's only accept -v.
5217       # Break only if it was the GNU/non-GNU ld that we prefer.
5218       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5219       *GNU* | *'with BFD'*)
5220         test "$with_gnu_ld" != no && break
5221         ;;
5222       *)
5223         test "$with_gnu_ld" != yes && break
5224         ;;
5225       esac
5226     fi
5227   done
5228   IFS="$lt_save_ifs"
5229 else
5230   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5231 fi
5232 fi
5233
5234 LD="$lt_cv_path_LD"
5235 if test -n "$LD"; then
5236   echo "$as_me:$LINENO: result: $LD" >&5
5237 echo "${ECHO_T}$LD" >&6
5238 else
5239   echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6
5241 fi
5242 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5243 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5244    { (exit 1); exit 1; }; }
5245 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5246 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5247 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253   lt_cv_prog_gnu_ld=yes
5254   ;;
5255 *)
5256   lt_cv_prog_gnu_ld=no
5257   ;;
5258 esac
5259 fi
5260 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5261 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5263
5264
5265 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5266 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5267 if test "${lt_cv_ld_reload_flag+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   lt_cv_ld_reload_flag='-r'
5271 fi
5272 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5273 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5274 reload_flag=$lt_cv_ld_reload_flag
5275 case $reload_flag in
5276 "" | " "*) ;;
5277 *) reload_flag=" $reload_flag" ;;
5278 esac
5279 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280 case $host_os in
5281   darwin*)
5282     if test "$GCC" = yes; then
5283       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5284     else
5285       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5286     fi
5287     ;;
5288 esac
5289
5290 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5291 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5292 if test "${lt_cv_path_NM+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   if test -n "$NM"; then
5296   # Let the user override the test.
5297   lt_cv_path_NM="$NM"
5298 else
5299   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5300   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5301     IFS="$lt_save_ifs"
5302     test -z "$ac_dir" && ac_dir=.
5303     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5304     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5305       # Check to see if the nm accepts a BSD-compat flag.
5306       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5307       #   nm: unknown option "B" ignored
5308       # Tru64's nm complains that /dev/null is an invalid object file
5309       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5310       */dev/null* | *'Invalid file or object type'*)
5311         lt_cv_path_NM="$tmp_nm -B"
5312         break
5313         ;;
5314       *)
5315         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5316         */dev/null*)
5317           lt_cv_path_NM="$tmp_nm -p"
5318           break
5319           ;;
5320         *)
5321           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5322           continue # so that we can try to find one that supports BSD flags
5323           ;;
5324         esac
5325       esac
5326     fi
5327   done
5328   IFS="$lt_save_ifs"
5329   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5330 fi
5331 fi
5332 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5333 echo "${ECHO_T}$lt_cv_path_NM" >&6
5334 NM="$lt_cv_path_NM"
5335
5336 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5337 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5338 LN_S=$as_ln_s
5339 if test "$LN_S" = "ln -s"; then
5340   echo "$as_me:$LINENO: result: yes" >&5
5341 echo "${ECHO_T}yes" >&6
5342 else
5343   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5344 echo "${ECHO_T}no, using $LN_S" >&6
5345 fi
5346
5347 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5348 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5349 if test "${lt_cv_deplibs_check_method+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   lt_cv_file_magic_cmd='$MAGIC_CMD'
5353 lt_cv_file_magic_test_file=
5354 lt_cv_deplibs_check_method='unknown'
5355 # Need to set the preceding variable on all platforms that support
5356 # interlibrary dependencies.
5357 # 'none' -- dependencies not supported.
5358 # `unknown' -- same as none, but documents that we really don't know.
5359 # 'pass_all' -- all dependencies passed with no checks.
5360 # 'test_compile' -- check by making test program.
5361 # 'file_magic [[regex]]' -- check by looking for files in library path
5362 # which responds to the $file_magic_cmd with a given extended regex.
5363 # If you have `file' or equivalent on your system and you're not sure
5364 # whether `pass_all' will *always* work, you probably want this one.
5365
5366 case $host_os in
5367 aix4* | aix5*)
5368   lt_cv_deplibs_check_method=pass_all
5369   ;;
5370
5371 beos*)
5372   lt_cv_deplibs_check_method=pass_all
5373   ;;
5374
5375 bsdi[45]*)
5376   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5377   lt_cv_file_magic_cmd='/usr/bin/file -L'
5378   lt_cv_file_magic_test_file=/shlib/libc.so
5379   ;;
5380
5381 cygwin*)
5382   # func_win32_libid is a shell function defined in ltmain.sh
5383   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5384   lt_cv_file_magic_cmd='func_win32_libid'
5385   ;;
5386
5387 mingw* | pw32*)
5388   # Base MSYS/MinGW do not provide the 'file' command needed by
5389   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5390   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5391   lt_cv_file_magic_cmd='$OBJDUMP -f'
5392   ;;
5393
5394 darwin* | rhapsody*)
5395   lt_cv_deplibs_check_method=pass_all
5396   ;;
5397
5398 freebsd* | kfreebsd*-gnu | dragonfly*)
5399   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5400     case $host_cpu in
5401     i*86 )
5402       # Not sure whether the presence of OpenBSD here was a mistake.
5403       # Let's accept both of them until this is cleared up.
5404       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5405       lt_cv_file_magic_cmd=/usr/bin/file
5406       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5407       ;;
5408     esac
5409   else
5410     lt_cv_deplibs_check_method=pass_all
5411   fi
5412   ;;
5413
5414 gnu*)
5415   lt_cv_deplibs_check_method=pass_all
5416   ;;
5417
5418 hpux10.20* | hpux11*)
5419   lt_cv_file_magic_cmd=/usr/bin/file
5420   case "$host_cpu" in
5421   ia64*)
5422     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5423     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5424     ;;
5425   hppa*64*)
5426     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]'
5427     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5428     ;;
5429   *)
5430     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5431     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5432     ;;
5433   esac
5434   ;;
5435
5436 irix5* | irix6* | nonstopux*)
5437   case $LD in
5438   *-32|*"-32 ") libmagic=32-bit;;
5439   *-n32|*"-n32 ") libmagic=N32;;
5440   *-64|*"-64 ") libmagic=64-bit;;
5441   *) libmagic=never-match;;
5442   esac
5443   lt_cv_deplibs_check_method=pass_all
5444   ;;
5445
5446 # This must be Linux ELF.
5447 linux*)
5448   lt_cv_deplibs_check_method=pass_all
5449   ;;
5450
5451 netbsd*)
5452   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5454   else
5455     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5456   fi
5457   ;;
5458
5459 newos6*)
5460   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5461   lt_cv_file_magic_cmd=/usr/bin/file
5462   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5463   ;;
5464
5465 nto-qnx*)
5466   lt_cv_deplibs_check_method=unknown
5467   ;;
5468
5469 openbsd*)
5470   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5471     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5472   else
5473     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5474   fi
5475   ;;
5476
5477 osf3* | osf4* | osf5*)
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 sco3.2v5*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 solaris*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5490   case $host_vendor in
5491   motorola)
5492     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]'
5493     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5494     ;;
5495   ncr)
5496     lt_cv_deplibs_check_method=pass_all
5497     ;;
5498   sequent)
5499     lt_cv_file_magic_cmd='/bin/file'
5500     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5501     ;;
5502   sni)
5503     lt_cv_file_magic_cmd='/bin/file'
5504     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5505     lt_cv_file_magic_test_file=/lib/libc.so
5506     ;;
5507   siemens)
5508     lt_cv_deplibs_check_method=pass_all
5509     ;;
5510   esac
5511   ;;
5512
5513 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516 esac
5517
5518 fi
5519 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5520 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5521 file_magic_cmd=$lt_cv_file_magic_cmd
5522 deplibs_check_method=$lt_cv_deplibs_check_method
5523 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5524
5525
5526
5527
5528 # If no C compiler was specified, use CC.
5529 LTCC=${LTCC-"$CC"}
5530
5531 # Allow CC to be a program name with arguments.
5532 compiler=$CC
5533
5534
5535 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5536 if test "${enable_libtool_lock+set}" = set; then
5537   enableval="$enable_libtool_lock"
5538
5539 fi;
5540 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5541
5542 # Some flags need to be propagated to the compiler or linker for good
5543 # libtool support.
5544 case $host in
5545 ia64-*-hpux*)
5546   # Find out which ABI we are using.
5547   echo 'int i;' > conftest.$ac_ext
5548   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549   (eval $ac_compile) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; then
5553     case `/usr/bin/file conftest.$ac_objext` in
5554     *ELF-32*)
5555       HPUX_IA64_MODE="32"
5556       ;;
5557     *ELF-64*)
5558       HPUX_IA64_MODE="64"
5559       ;;
5560     esac
5561   fi
5562   rm -rf conftest*
5563   ;;
5564 *-*-irix6*)
5565   # Find out which ABI we are using.
5566   echo '#line 5566 "configure"' > conftest.$ac_ext
5567   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568   (eval $ac_compile) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; then
5572    if test "$lt_cv_prog_gnu_ld" = yes; then
5573     case `/usr/bin/file conftest.$ac_objext` in
5574     *32-bit*)
5575       LD="${LD-ld} -melf32bsmip"
5576       ;;
5577     *N32*)
5578       LD="${LD-ld} -melf32bmipn32"
5579       ;;
5580     *64-bit*)
5581       LD="${LD-ld} -melf64bmip"
5582       ;;
5583     esac
5584    else
5585     case `/usr/bin/file conftest.$ac_objext` in
5586     *32-bit*)
5587       LD="${LD-ld} -32"
5588       ;;
5589     *N32*)
5590       LD="${LD-ld} -n32"
5591       ;;
5592     *64-bit*)
5593       LD="${LD-ld} -64"
5594       ;;
5595     esac
5596    fi
5597   fi
5598   rm -rf conftest*
5599   ;;
5600
5601 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5602   # Find out which ABI we are using.
5603   echo 'int i;' > conftest.$ac_ext
5604   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605   (eval $ac_compile) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; then
5609     case "`/usr/bin/file conftest.o`" in
5610     *32-bit*)
5611       case $host in
5612         x86_64-*linux*)
5613           LD="${LD-ld} -m elf_i386"
5614           ;;
5615         ppc64-*linux*|powerpc64-*linux*)
5616           LD="${LD-ld} -m elf32ppclinux"
5617           ;;
5618         s390x-*linux*)
5619           LD="${LD-ld} -m elf_s390"
5620           ;;
5621         sparc64-*linux*)
5622           LD="${LD-ld} -m elf32_sparc"
5623           ;;
5624       esac
5625       ;;
5626     *64-bit*)
5627       case $host in
5628         x86_64-*linux*)
5629           LD="${LD-ld} -m elf_x86_64"
5630           ;;
5631         ppc*-*linux*|powerpc*-*linux*)
5632           LD="${LD-ld} -m elf64ppc"
5633           ;;
5634         s390*-*linux*)
5635           LD="${LD-ld} -m elf64_s390"
5636           ;;
5637         sparc*-*linux*)
5638           LD="${LD-ld} -m elf64_sparc"
5639           ;;
5640       esac
5641       ;;
5642     esac
5643   fi
5644   rm -rf conftest*
5645   ;;
5646
5647 *-*-sco3.2v5*)
5648   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5649   SAVE_CFLAGS="$CFLAGS"
5650   CFLAGS="$CFLAGS -belf"
5651   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5652 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5653 if test "${lt_cv_cc_needs_belf+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   ac_ext=c
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661
5662      cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668
5669 int
5670 main ()
5671 {
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext conftest$ac_exeext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5679   (eval $ac_link) 2>conftest.er1
5680   ac_status=$?
5681   grep -v '^ *+' conftest.er1 >conftest.err
5682   rm -f conftest.er1
5683   cat conftest.err >&5
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); } &&
5686          { ac_try='test -z "$ac_c_werror_flag"
5687                          || test ! -s conftest.err'
5688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689   (eval $ac_try) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; } &&
5693          { ac_try='test -s conftest$ac_exeext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   lt_cv_cc_needs_belf=yes
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 lt_cv_cc_needs_belf=no
5705 fi
5706 rm -f conftest.err conftest.$ac_objext \
5707       conftest$ac_exeext conftest.$ac_ext
5708      ac_ext=c
5709 ac_cpp='$CPP $CPPFLAGS'
5710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713
5714 fi
5715 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5716 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5717   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5718     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5719     CFLAGS="$SAVE_CFLAGS"
5720   fi
5721   ;;
5722 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5723   if test -n "$ac_tool_prefix"; then
5724   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   if test -n "$DLLTOOL"; then
5732   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739   for ac_exec_ext in '' $ac_executable_extensions; do
5740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746 done
5747
5748 fi
5749 fi
5750 DLLTOOL=$ac_cv_prog_DLLTOOL
5751 if test -n "$DLLTOOL"; then
5752   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5753 echo "${ECHO_T}$DLLTOOL" >&6
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758
5759 fi
5760 if test -z "$ac_cv_prog_DLLTOOL"; then
5761   ac_ct_DLLTOOL=$DLLTOOL
5762   # Extract the first word of "dlltool", so it can be a program name with args.
5763 set dummy dlltool; ac_word=$2
5764 echo "$as_me:$LINENO: checking for $ac_word" >&5
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   if test -n "$ac_ct_DLLTOOL"; then
5770   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_exec_ext in '' $ac_executable_extensions; do
5778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784 done
5785
5786   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5787 fi
5788 fi
5789 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5790 if test -n "$ac_ct_DLLTOOL"; then
5791   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5792 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5793 else
5794   echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5796 fi
5797
5798   DLLTOOL=$ac_ct_DLLTOOL
5799 else
5800   DLLTOOL="$ac_cv_prog_DLLTOOL"
5801 fi
5802
5803   if test -n "$ac_tool_prefix"; then
5804   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}as; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_AS+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   if test -n "$AS"; then
5812   ac_cv_prog_AS="$AS" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819   for ac_exec_ext in '' $ac_executable_extensions; do
5820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821     ac_cv_prog_AS="${ac_tool_prefix}as"
5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826 done
5827
5828 fi
5829 fi
5830 AS=$ac_cv_prog_AS
5831 if test -n "$AS"; then
5832   echo "$as_me:$LINENO: result: $AS" >&5
5833 echo "${ECHO_T}$AS" >&6
5834 else
5835   echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839 fi
5840 if test -z "$ac_cv_prog_AS"; then
5841   ac_ct_AS=$AS
5842   # Extract the first word of "as", so it can be a program name with args.
5843 set dummy as; ac_word=$2
5844 echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   if test -n "$ac_ct_AS"; then
5850   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857   for ac_exec_ext in '' $ac_executable_extensions; do
5858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859     ac_cv_prog_ac_ct_AS="as"
5860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864 done
5865
5866   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5867 fi
5868 fi
5869 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5870 if test -n "$ac_ct_AS"; then
5871   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5872 echo "${ECHO_T}$ac_ct_AS" >&6
5873 else
5874   echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6
5876 fi
5877
5878   AS=$ac_ct_AS
5879 else
5880   AS="$ac_cv_prog_AS"
5881 fi
5882
5883   if test -n "$ac_tool_prefix"; then
5884   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   if test -n "$OBJDUMP"; then
5892   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899   for ac_exec_ext in '' $ac_executable_extensions; do
5900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906 done
5907
5908 fi
5909 fi
5910 OBJDUMP=$ac_cv_prog_OBJDUMP
5911 if test -n "$OBJDUMP"; then
5912   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5913 echo "${ECHO_T}$OBJDUMP" >&6
5914 else
5915   echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5917 fi
5918
5919 fi
5920 if test -z "$ac_cv_prog_OBJDUMP"; then
5921   ac_ct_OBJDUMP=$OBJDUMP
5922   # Extract the first word of "objdump", so it can be a program name with args.
5923 set dummy objdump; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   if test -n "$ac_ct_OBJDUMP"; then
5930   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945
5946   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5947 fi
5948 fi
5949 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5950 if test -n "$ac_ct_OBJDUMP"; then
5951   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5952 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5953 else
5954   echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5956 fi
5957
5958   OBJDUMP=$ac_ct_OBJDUMP
5959 else
5960   OBJDUMP="$ac_cv_prog_OBJDUMP"
5961 fi
5962
5963   ;;
5964
5965 esac
5966
5967 need_locks="$enable_libtool_lock"
5968
5969
5970 ac_ext=c
5971 ac_cpp='$CPP $CPPFLAGS'
5972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5975 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5976 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5977 # On Suns, sometimes $CPP names a directory.
5978 if test -n "$CPP" && test -d "$CPP"; then
5979   CPP=
5980 fi
5981 if test -z "$CPP"; then
5982   if test "${ac_cv_prog_CPP+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985       # Double quotes because CPP needs to be expanded
5986     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5987     do
5988       ac_preproc_ok=false
5989 for ac_c_preproc_warn_flag in '' yes
5990 do
5991   # Use a header file that comes with gcc, so configuring glibc
5992   # with a fresh cross-compiler works.
5993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5994   # <limits.h> exists even on freestanding compilers.
5995   # On the NeXT, cc -E runs the code through the compiler's parser,
5996   # not just through cpp. "Syntax error" is here to catch this case.
5997   cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h.  */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h.  */
6003 #ifdef __STDC__
6004 # include <limits.h>
6005 #else
6006 # include <assert.h>
6007 #endif
6008                      Syntax error
6009 _ACEOF
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } >/dev/null; then
6018   if test -s conftest.err; then
6019     ac_cpp_err=$ac_c_preproc_warn_flag
6020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6021   else
6022     ac_cpp_err=
6023   fi
6024 else
6025   ac_cpp_err=yes
6026 fi
6027 if test -z "$ac_cpp_err"; then
6028   :
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033   # Broken: fails on valid input.
6034 continue
6035 fi
6036 rm -f conftest.err conftest.$ac_ext
6037
6038   # OK, works on sane cases.  Now check whether non-existent headers
6039   # can be detected and how.
6040   cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046 #include <ac_nonexistent.h>
6047 _ACEOF
6048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } >/dev/null; then
6056   if test -s conftest.err; then
6057     ac_cpp_err=$ac_c_preproc_warn_flag
6058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6059   else
6060     ac_cpp_err=
6061   fi
6062 else
6063   ac_cpp_err=yes
6064 fi
6065 if test -z "$ac_cpp_err"; then
6066   # Broken: success on invalid input.
6067 continue
6068 else
6069   echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6071
6072   # Passes both tests.
6073 ac_preproc_ok=:
6074 break
6075 fi
6076 rm -f conftest.err conftest.$ac_ext
6077
6078 done
6079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6080 rm -f conftest.err conftest.$ac_ext
6081 if $ac_preproc_ok; then
6082   break
6083 fi
6084
6085     done
6086     ac_cv_prog_CPP=$CPP
6087
6088 fi
6089   CPP=$ac_cv_prog_CPP
6090 else
6091   ac_cv_prog_CPP=$CPP
6092 fi
6093 echo "$as_me:$LINENO: result: $CPP" >&5
6094 echo "${ECHO_T}$CPP" >&6
6095 ac_preproc_ok=false
6096 for ac_c_preproc_warn_flag in '' yes
6097 do
6098   # Use a header file that comes with gcc, so configuring glibc
6099   # with a fresh cross-compiler works.
6100   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101   # <limits.h> exists even on freestanding compilers.
6102   # On the NeXT, cc -E runs the code through the compiler's parser,
6103   # not just through cpp. "Syntax error" is here to catch this case.
6104   cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h.  */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h.  */
6110 #ifdef __STDC__
6111 # include <limits.h>
6112 #else
6113 # include <assert.h>
6114 #endif
6115                      Syntax error
6116 _ACEOF
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6119   ac_status=$?
6120   grep -v '^ *+' conftest.er1 >conftest.err
6121   rm -f conftest.er1
6122   cat conftest.err >&5
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } >/dev/null; then
6125   if test -s conftest.err; then
6126     ac_cpp_err=$ac_c_preproc_warn_flag
6127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6128   else
6129     ac_cpp_err=
6130   fi
6131 else
6132   ac_cpp_err=yes
6133 fi
6134 if test -z "$ac_cpp_err"; then
6135   :
6136 else
6137   echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6139
6140   # Broken: fails on valid input.
6141 continue
6142 fi
6143 rm -f conftest.err conftest.$ac_ext
6144
6145   # OK, works on sane cases.  Now check whether non-existent headers
6146   # can be detected and how.
6147   cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #include <ac_nonexistent.h>
6154 _ACEOF
6155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } >/dev/null; then
6163   if test -s conftest.err; then
6164     ac_cpp_err=$ac_c_preproc_warn_flag
6165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6166   else
6167     ac_cpp_err=
6168   fi
6169 else
6170   ac_cpp_err=yes
6171 fi
6172 if test -z "$ac_cpp_err"; then
6173   # Broken: success on invalid input.
6174 continue
6175 else
6176   echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179   # Passes both tests.
6180 ac_preproc_ok=:
6181 break
6182 fi
6183 rm -f conftest.err conftest.$ac_ext
6184
6185 done
6186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6187 rm -f conftest.err conftest.$ac_ext
6188 if $ac_preproc_ok; then
6189   :
6190 else
6191   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6192 See \`config.log' for more details." >&5
6193 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6194 See \`config.log' for more details." >&2;}
6195    { (exit 1); exit 1; }; }
6196 fi
6197
6198 ac_ext=c
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203
6204
6205 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6207 if test "${ac_cv_header_stdc+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210   cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216 #include <stdlib.h>
6217 #include <stdarg.h>
6218 #include <string.h>
6219 #include <float.h>
6220
6221 int
6222 main ()
6223 {
6224
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231   (eval $ac_compile) 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } &&
6238          { ac_try='test -z "$ac_c_werror_flag"
6239                          || test ! -s conftest.err'
6240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241   (eval $ac_try) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; } &&
6245          { ac_try='test -s conftest.$ac_objext'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; }; then
6251   ac_cv_header_stdc=yes
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_cv_header_stdc=no
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259
6260 if test $ac_cv_header_stdc = yes; then
6261   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262   cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h.  */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h.  */
6268 #include <string.h>
6269
6270 _ACEOF
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272   $EGREP "memchr" >/dev/null 2>&1; then
6273   :
6274 else
6275   ac_cv_header_stdc=no
6276 fi
6277 rm -f conftest*
6278
6279 fi
6280
6281 if test $ac_cv_header_stdc = yes; then
6282   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6283   cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289 #include <stdlib.h>
6290
6291 _ACEOF
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293   $EGREP "free" >/dev/null 2>&1; then
6294   :
6295 else
6296   ac_cv_header_stdc=no
6297 fi
6298 rm -f conftest*
6299
6300 fi
6301
6302 if test $ac_cv_header_stdc = yes; then
6303   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6304   if test "$cross_compiling" = yes; then
6305   :
6306 else
6307   cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h.  */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h.  */
6313 #include <ctype.h>
6314 #if ((' ' & 0x0FF) == 0x020)
6315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6317 #else
6318 # define ISLOWER(c) \
6319                    (('a' <= (c) && (c) <= 'i') \
6320                      || ('j' <= (c) && (c) <= 'r') \
6321                      || ('s' <= (c) && (c) <= 'z'))
6322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6323 #endif
6324
6325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6326 int
6327 main ()
6328 {
6329   int i;
6330   for (i = 0; i < 256; i++)
6331     if (XOR (islower (i), ISLOWER (i))
6332         || toupper (i) != TOUPPER (i))
6333       exit(2);
6334   exit (0);
6335 }
6336 _ACEOF
6337 rm -f conftest$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339   (eval $ac_link) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348   :
6349 else
6350   echo "$as_me: program exited with status $ac_status" >&5
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 ( exit $ac_status )
6355 ac_cv_header_stdc=no
6356 fi
6357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6358 fi
6359 fi
6360 fi
6361 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6362 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6363 if test $ac_cv_header_stdc = yes; then
6364
6365 cat >>confdefs.h <<\_ACEOF
6366 #define STDC_HEADERS 1
6367 _ACEOF
6368
6369 fi
6370
6371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6382                   inttypes.h stdint.h unistd.h
6383 do
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396 $ac_includes_default
6397
6398 #include <$ac_header>
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402   (eval $ac_compile) 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -z "$ac_c_werror_flag"
6410                          || test ! -s conftest.err'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; } &&
6416          { ac_try='test -s conftest.$ac_objext'
6417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418   (eval $ac_try) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); }; }; then
6422   eval "$as_ac_Header=yes"
6423 else
6424   echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427 eval "$as_ac_Header=no"
6428 fi
6429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6430 fi
6431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434   cat >>confdefs.h <<_ACEOF
6435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436 _ACEOF
6437
6438 fi
6439
6440 done
6441
6442
6443
6444 for ac_header in dlfcn.h
6445 do
6446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448   echo "$as_me:$LINENO: checking for $ac_header" >&5
6449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 fi
6453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6455 else
6456   # Is the header compilable?
6457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6459 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465 $ac_includes_default
6466 #include <$ac_header>
6467 _ACEOF
6468 rm -f conftest.$ac_objext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6470   (eval $ac_compile) 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -z "$ac_c_werror_flag"
6478                          || test ! -s conftest.err'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; } &&
6484          { ac_try='test -s conftest.$ac_objext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_header_compiler=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 ac_header_compiler=no
6496 fi
6497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6499 echo "${ECHO_T}$ac_header_compiler" >&6
6500
6501 # Is the header present?
6502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h.  */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h.  */
6510 #include <$ac_header>
6511 _ACEOF
6512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6514   ac_status=$?
6515   grep -v '^ *+' conftest.er1 >conftest.err
6516   rm -f conftest.er1
6517   cat conftest.err >&5
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } >/dev/null; then
6520   if test -s conftest.err; then
6521     ac_cpp_err=$ac_c_preproc_warn_flag
6522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6523   else
6524     ac_cpp_err=
6525   fi
6526 else
6527   ac_cpp_err=yes
6528 fi
6529 if test -z "$ac_cpp_err"; then
6530   ac_header_preproc=yes
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535   ac_header_preproc=no
6536 fi
6537 rm -f conftest.err conftest.$ac_ext
6538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6539 echo "${ECHO_T}$ac_header_preproc" >&6
6540
6541 # So?  What about this header?
6542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6543   yes:no: )
6544     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6548     ac_header_preproc=yes
6549     ;;
6550   no:yes:* )
6551     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6553     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6554 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6555     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6557     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6558 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6559     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6561     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6563     (
6564       cat <<\_ASBOX
6565 ## ------------------------------------------ ##
6566 ## Report this to the AC_PACKAGE_NAME lists.  ##
6567 ## ------------------------------------------ ##
6568 _ASBOX
6569     ) |
6570       sed "s/^/$as_me: WARNING:     /" >&2
6571     ;;
6572 esac
6573 echo "$as_me:$LINENO: checking for $ac_header" >&5
6574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   eval "$as_ac_Header=\$ac_header_preproc"
6579 fi
6580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6582
6583 fi
6584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6585   cat >>confdefs.h <<_ACEOF
6586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6587 _ACEOF
6588
6589 fi
6590
6591 done
6592
6593 ac_ext=cc
6594 ac_cpp='$CXXCPP $CPPFLAGS'
6595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6598 if test -n "$ac_tool_prefix"; then
6599   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6600   do
6601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6603 echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6605 if test "${ac_cv_prog_CXX+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   if test -n "$CXX"; then
6609   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616   for ac_exec_ext in '' $ac_executable_extensions; do
6617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623 done
6624
6625 fi
6626 fi
6627 CXX=$ac_cv_prog_CXX
6628 if test -n "$CXX"; then
6629   echo "$as_me:$LINENO: result: $CXX" >&5
6630 echo "${ECHO_T}$CXX" >&6
6631 else
6632   echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6
6634 fi
6635
6636     test -n "$CXX" && break
6637   done
6638 fi
6639 if test -z "$CXX"; then
6640   ac_ct_CXX=$CXX
6641   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6642 do
6643   # Extract the first word of "$ac_prog", so it can be a program name with args.
6644 set dummy $ac_prog; ac_word=$2
6645 echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   if test -n "$ac_ct_CXX"; then
6651   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6655 do
6656   IFS=$as_save_IFS
6657   test -z "$as_dir" && as_dir=.
6658   for ac_exec_ext in '' $ac_executable_extensions; do
6659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660     ac_cv_prog_ac_ct_CXX="$ac_prog"
6661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665 done
6666
6667 fi
6668 fi
6669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6670 if test -n "$ac_ct_CXX"; then
6671   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6672 echo "${ECHO_T}$ac_ct_CXX" >&6
6673 else
6674   echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6
6676 fi
6677
6678   test -n "$ac_ct_CXX" && break
6679 done
6680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6681
6682   CXX=$ac_ct_CXX
6683 fi
6684
6685
6686 # Provide some information about the compiler.
6687 echo "$as_me:$LINENO:" \
6688      "checking for C++ compiler version" >&5
6689 ac_compiler=`set X $ac_compile; echo $2`
6690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6691   (eval $ac_compiler --version </dev/null >&5) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }
6695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6696   (eval $ac_compiler -v </dev/null >&5) 2>&5
6697   ac_status=$?
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); }
6700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6701   (eval $ac_compiler -V </dev/null >&5) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }
6705
6706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h.  */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h.  */
6717
6718 int
6719 main ()
6720 {
6721 #ifndef __GNUC__
6722        choke me
6723 #endif
6724
6725   ;
6726   return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731   (eval $ac_compile) 2>conftest.er1
6732   ac_status=$?
6733   grep -v '^ *+' conftest.er1 >conftest.err
6734   rm -f conftest.er1
6735   cat conftest.err >&5
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); } &&
6738          { ac_try='test -z "$ac_cxx_werror_flag"
6739                          || test ! -s conftest.err'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; } &&
6745          { ac_try='test -s conftest.$ac_objext'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; }; then
6751   ac_compiler_gnu=yes
6752 else
6753   echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 ac_compiler_gnu=no
6757 fi
6758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6760
6761 fi
6762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6764 GXX=`test $ac_compiler_gnu = yes && echo yes`
6765 ac_test_CXXFLAGS=${CXXFLAGS+set}
6766 ac_save_CXXFLAGS=$CXXFLAGS
6767 CXXFLAGS="-g"
6768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6770 if test "${ac_cv_prog_cxx_g+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773   cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h.  */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h.  */
6779
6780 int
6781 main ()
6782 {
6783
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790   (eval $ac_compile) 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -z "$ac_cxx_werror_flag"
6798                          || test ! -s conftest.err'
6799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800   (eval $ac_try) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }; } &&
6804          { ac_try='test -s conftest.$ac_objext'
6805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806   (eval $ac_try) 2>&5
6807   ac_status=$?
6808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809   (exit $ac_status); }; }; then
6810   ac_cv_prog_cxx_g=yes
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 ac_cv_prog_cxx_g=no
6816 fi
6817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 fi
6819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6821 if test "$ac_test_CXXFLAGS" = set; then
6822   CXXFLAGS=$ac_save_CXXFLAGS
6823 elif test $ac_cv_prog_cxx_g = yes; then
6824   if test "$GXX" = yes; then
6825     CXXFLAGS="-g -O2"
6826   else
6827     CXXFLAGS="-g"
6828   fi
6829 else
6830   if test "$GXX" = yes; then
6831     CXXFLAGS="-O2"
6832   else
6833     CXXFLAGS=
6834   fi
6835 fi
6836 for ac_declaration in \
6837    '' \
6838    'extern "C" void std::exit (int) throw (); using std::exit;' \
6839    'extern "C" void std::exit (int); using std::exit;' \
6840    'extern "C" void exit (int) throw ();' \
6841    'extern "C" void exit (int);' \
6842    'void exit (int);'
6843 do
6844   cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850 $ac_declaration
6851 #include <stdlib.h>
6852 int
6853 main ()
6854 {
6855 exit (42);
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862   (eval $ac_compile) 2>conftest.er1
6863   ac_status=$?
6864   grep -v '^ *+' conftest.er1 >conftest.err
6865   rm -f conftest.er1
6866   cat conftest.err >&5
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); } &&
6869          { ac_try='test -z "$ac_cxx_werror_flag"
6870                          || test ! -s conftest.err'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; } &&
6876          { ac_try='test -s conftest.$ac_objext'
6877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878   (eval $ac_try) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882   :
6883 else
6884   echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 continue
6888 fi
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890   cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896 $ac_declaration
6897 int
6898 main ()
6899 {
6900 exit (42);
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6907   (eval $ac_compile) 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } &&
6914          { ac_try='test -z "$ac_cxx_werror_flag"
6915                          || test ! -s conftest.err'
6916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917   (eval $ac_try) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); }; } &&
6921          { ac_try='test -s conftest.$ac_objext'
6922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923   (eval $ac_try) 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; }; then
6927   break
6928 else
6929   echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 fi
6933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6934 done
6935 rm -f conftest*
6936 if test -n "$ac_declaration"; then
6937   echo '#ifdef __cplusplus' >>confdefs.h
6938   echo $ac_declaration      >>confdefs.h
6939   echo '#endif'             >>confdefs.h
6940 fi
6941
6942 ac_ext=cc
6943 ac_cpp='$CXXCPP $CPPFLAGS'
6944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6947
6948 depcc="$CXX"  am_compiler_list=
6949
6950 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6952 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6956   # We make a subdir and do the tests there.  Otherwise we can end up
6957   # making bogus files that we don't know about and never remove.  For
6958   # instance it was reported that on HP-UX the gcc test will end up
6959   # making a dummy file named `D' -- because `-MD' means `put the output
6960   # in D'.
6961   mkdir conftest.dir
6962   # Copy depcomp to subdir because otherwise we won't find it if we're
6963   # using a relative directory.
6964   cp "$am_depcomp" conftest.dir
6965   cd conftest.dir
6966   # We will build objects and dependencies in a subdirectory because
6967   # it helps to detect inapplicable dependency modes.  For instance
6968   # both Tru64's cc and ICC support -MD to output dependencies as a
6969   # side effect of compilation, but ICC will put the dependencies in
6970   # the current directory while Tru64 will put them in the object
6971   # directory.
6972   mkdir sub
6973
6974   am_cv_CXX_dependencies_compiler_type=none
6975   if test "$am_compiler_list" = ""; then
6976      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6977   fi
6978   for depmode in $am_compiler_list; do
6979     # Setup a source with many dependencies, because some compilers
6980     # like to wrap large dependency lists on column 80 (with \), and
6981     # we should not choose a depcomp mode which is confused by this.
6982     #
6983     # We need to recreate these files for each test, as the compiler may
6984     # overwrite some of them when testing with obscure command lines.
6985     # This happens at least with the AIX C compiler.
6986     : > sub/conftest.c
6987     for i in 1 2 3 4 5 6; do
6988       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6989       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6990       # Solaris 8's {/usr,}/bin/sh.
6991       touch sub/conftst$i.h
6992     done
6993     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6994
6995     case $depmode in
6996     nosideeffect)
6997       # after this tag, mechanisms are not by side-effect, so they'll
6998       # only be used when explicitly requested
6999       if test "x$enable_dependency_tracking" = xyes; then
7000         continue
7001       else
7002         break
7003       fi
7004       ;;
7005     none) break ;;
7006     esac
7007     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7008     # mode.  It turns out that the SunPro C++ compiler does not properly
7009     # handle `-M -o', and we need to detect this.
7010     if depmode=$depmode \
7011        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7012        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7013        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7014          >/dev/null 2>conftest.err &&
7015        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7016        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7017        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7018       # icc doesn't choke on unknown options, it will just issue warnings
7019       # or remarks (even with -Werror).  So we grep stderr for any message
7020       # that says an option was ignored or not supported.
7021       # When given -MP, icc 7.0 and 7.1 complain thusly:
7022       #   icc: Command line warning: ignoring option '-M'; no argument required
7023       # The diagnosis changed in icc 8.0:
7024       #   icc: Command line remark: option '-MP' not supported
7025       if (grep 'ignoring option' conftest.err ||
7026           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7027         am_cv_CXX_dependencies_compiler_type=$depmode
7028         break
7029       fi
7030     fi
7031   done
7032
7033   cd ..
7034   rm -rf conftest.dir
7035 else
7036   am_cv_CXX_dependencies_compiler_type=none
7037 fi
7038
7039 fi
7040 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7041 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7042 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7043
7044
7045
7046 if
7047   test "x$enable_dependency_tracking" != xno \
7048   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7049   am__fastdepCXX_TRUE=
7050   am__fastdepCXX_FALSE='#'
7051 else
7052   am__fastdepCXX_TRUE='#'
7053   am__fastdepCXX_FALSE=
7054 fi
7055
7056
7057
7058
7059 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7060     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7061     (test "X$CXX" != "Xg++"))) ; then
7062   ac_ext=cc
7063 ac_cpp='$CXXCPP $CPPFLAGS'
7064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7067 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7068 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7069 if test -z "$CXXCPP"; then
7070   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7071   echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073       # Double quotes because CXXCPP needs to be expanded
7074     for CXXCPP in "$CXX -E" "/lib/cpp"
7075     do
7076       ac_preproc_ok=false
7077 for ac_cxx_preproc_warn_flag in '' yes
7078 do
7079   # Use a header file that comes with gcc, so configuring glibc
7080   # with a fresh cross-compiler works.
7081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082   # <limits.h> exists even on freestanding compilers.
7083   # On the NeXT, cc -E runs the code through the compiler's parser,
7084   # not just through cpp. "Syntax error" is here to catch this case.
7085   cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h.  */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h.  */
7091 #ifdef __STDC__
7092 # include <limits.h>
7093 #else
7094 # include <assert.h>
7095 #endif
7096                      Syntax error
7097 _ACEOF
7098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7100   ac_status=$?
7101   grep -v '^ *+' conftest.er1 >conftest.err
7102   rm -f conftest.er1
7103   cat conftest.err >&5
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); } >/dev/null; then
7106   if test -s conftest.err; then
7107     ac_cpp_err=$ac_cxx_preproc_warn_flag
7108     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7109   else
7110     ac_cpp_err=
7111   fi
7112 else
7113   ac_cpp_err=yes
7114 fi
7115 if test -z "$ac_cpp_err"; then
7116   :
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121   # Broken: fails on valid input.
7122 continue
7123 fi
7124 rm -f conftest.err conftest.$ac_ext
7125
7126   # OK, works on sane cases.  Now check whether non-existent headers
7127   # can be detected and how.
7128   cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h.  */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h.  */
7134 #include <ac_nonexistent.h>
7135 _ACEOF
7136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7138   ac_status=$?
7139   grep -v '^ *+' conftest.er1 >conftest.err
7140   rm -f conftest.er1
7141   cat conftest.err >&5
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } >/dev/null; then
7144   if test -s conftest.err; then
7145     ac_cpp_err=$ac_cxx_preproc_warn_flag
7146     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7147   else
7148     ac_cpp_err=
7149   fi
7150 else
7151   ac_cpp_err=yes
7152 fi
7153 if test -z "$ac_cpp_err"; then
7154   # Broken: success on invalid input.
7155 continue
7156 else
7157   echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160   # Passes both tests.
7161 ac_preproc_ok=:
7162 break
7163 fi
7164 rm -f conftest.err conftest.$ac_ext
7165
7166 done
7167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7168 rm -f conftest.err conftest.$ac_ext
7169 if $ac_preproc_ok; then
7170   break
7171 fi
7172
7173     done
7174     ac_cv_prog_CXXCPP=$CXXCPP
7175
7176 fi
7177   CXXCPP=$ac_cv_prog_CXXCPP
7178 else
7179   ac_cv_prog_CXXCPP=$CXXCPP
7180 fi
7181 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7182 echo "${ECHO_T}$CXXCPP" >&6
7183 ac_preproc_ok=false
7184 for ac_cxx_preproc_warn_flag in '' yes
7185 do
7186   # Use a header file that comes with gcc, so configuring glibc
7187   # with a fresh cross-compiler works.
7188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189   # <limits.h> exists even on freestanding compilers.
7190   # On the NeXT, cc -E runs the code through the compiler's parser,
7191   # not just through cpp. "Syntax error" is here to catch this case.
7192   cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h.  */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h.  */
7198 #ifdef __STDC__
7199 # include <limits.h>
7200 #else
7201 # include <assert.h>
7202 #endif
7203                      Syntax error
7204 _ACEOF
7205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7207   ac_status=$?
7208   grep -v '^ *+' conftest.er1 >conftest.err
7209   rm -f conftest.er1
7210   cat conftest.err >&5
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); } >/dev/null; then
7213   if test -s conftest.err; then
7214     ac_cpp_err=$ac_cxx_preproc_warn_flag
7215     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7216   else
7217     ac_cpp_err=
7218   fi
7219 else
7220   ac_cpp_err=yes
7221 fi
7222 if test -z "$ac_cpp_err"; then
7223   :
7224 else
7225   echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228   # Broken: fails on valid input.
7229 continue
7230 fi
7231 rm -f conftest.err conftest.$ac_ext
7232
7233   # OK, works on sane cases.  Now check whether non-existent headers
7234   # can be detected and how.
7235   cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <ac_nonexistent.h>
7242 _ACEOF
7243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } >/dev/null; then
7251   if test -s conftest.err; then
7252     ac_cpp_err=$ac_cxx_preproc_warn_flag
7253     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7254   else
7255     ac_cpp_err=
7256   fi
7257 else
7258   ac_cpp_err=yes
7259 fi
7260 if test -z "$ac_cpp_err"; then
7261   # Broken: success on invalid input.
7262 continue
7263 else
7264   echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7266
7267   # Passes both tests.
7268 ac_preproc_ok=:
7269 break
7270 fi
7271 rm -f conftest.err conftest.$ac_ext
7272
7273 done
7274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7275 rm -f conftest.err conftest.$ac_ext
7276 if $ac_preproc_ok; then
7277   :
7278 else
7279   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7280 See \`config.log' for more details." >&5
7281 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7282 See \`config.log' for more details." >&2;}
7283    { (exit 1); exit 1; }; }
7284 fi
7285
7286 ac_ext=cc
7287 ac_cpp='$CXXCPP $CPPFLAGS'
7288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7291
7292 fi
7293
7294
7295 ac_ext=f
7296 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7297 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7298 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7299 if test -n "$ac_tool_prefix"; then
7300   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7301   do
7302     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_prog_F77+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   if test -n "$F77"; then
7310   ac_cv_prog_F77="$F77" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325
7326 fi
7327 fi
7328 F77=$ac_cv_prog_F77
7329 if test -n "$F77"; then
7330   echo "$as_me:$LINENO: result: $F77" >&5
7331 echo "${ECHO_T}$F77" >&6
7332 else
7333   echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7335 fi
7336
7337     test -n "$F77" && break
7338   done
7339 fi
7340 if test -z "$F77"; then
7341   ac_ct_F77=$F77
7342   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7343 do
7344   # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7348 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   if test -n "$ac_ct_F77"; then
7352   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_exec_ext in '' $ac_executable_extensions; do
7360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361     ac_cv_prog_ac_ct_F77="$ac_prog"
7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366 done
7367
7368 fi
7369 fi
7370 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7371 if test -n "$ac_ct_F77"; then
7372   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7373 echo "${ECHO_T}$ac_ct_F77" >&6
7374 else
7375   echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7377 fi
7378
7379   test -n "$ac_ct_F77" && break
7380 done
7381
7382   F77=$ac_ct_F77
7383 fi
7384
7385
7386 # Provide some information about the compiler.
7387 echo "$as_me:7387:" \
7388      "checking for Fortran 77 compiler version" >&5
7389 ac_compiler=`set X $ac_compile; echo $2`
7390 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7391   (eval $ac_compiler --version </dev/null >&5) 2>&5
7392   ac_status=$?
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }
7395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7396   (eval $ac_compiler -v </dev/null >&5) 2>&5
7397   ac_status=$?
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); }
7400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7401   (eval $ac_compiler -V </dev/null >&5) 2>&5
7402   ac_status=$?
7403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); }
7405 rm -f a.out
7406
7407 # If we don't use `.F' as extension, the preprocessor is not run on the
7408 # input file.  (Note that this only needs to work for GNU compilers.)
7409 ac_save_ext=$ac_ext
7410 ac_ext=F
7411 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7412 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7413 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   cat >conftest.$ac_ext <<_ACEOF
7417       program main
7418 #ifndef __GNUC__
7419        choke me
7420 #endif
7421
7422       end
7423 _ACEOF
7424 rm -f conftest.$ac_objext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7426   (eval $ac_compile) 2>conftest.er1
7427   ac_status=$?
7428   grep -v '^ *+' conftest.er1 >conftest.err
7429   rm -f conftest.er1
7430   cat conftest.err >&5
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); } &&
7433          { ac_try='test -z "$ac_f77_werror_flag"
7434                          || test ! -s conftest.err'
7435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436   (eval $ac_try) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); }; } &&
7440          { ac_try='test -s conftest.$ac_objext'
7441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442   (eval $ac_try) 2>&5
7443   ac_status=$?
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); }; }; then
7446   ac_compiler_gnu=yes
7447 else
7448   echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451 ac_compiler_gnu=no
7452 fi
7453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7455
7456 fi
7457 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7458 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7459 ac_ext=$ac_save_ext
7460 ac_test_FFLAGS=${FFLAGS+set}
7461 ac_save_FFLAGS=$FFLAGS
7462 FFLAGS=
7463 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7464 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7465 if test "${ac_cv_prog_f77_g+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   FFLAGS=-g
7469 cat >conftest.$ac_ext <<_ACEOF
7470       program main
7471
7472       end
7473 _ACEOF
7474 rm -f conftest.$ac_objext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476   (eval $ac_compile) 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } &&
7483          { ac_try='test -z "$ac_f77_werror_flag"
7484                          || test ! -s conftest.err'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; } &&
7490          { ac_try='test -s conftest.$ac_objext'
7491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }; }; then
7496   ac_cv_prog_f77_g=yes
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7500
7501 ac_cv_prog_f77_g=no
7502 fi
7503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7504
7505 fi
7506 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7507 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7508 if test "$ac_test_FFLAGS" = set; then
7509   FFLAGS=$ac_save_FFLAGS
7510 elif test $ac_cv_prog_f77_g = yes; then
7511   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7512     FFLAGS="-g -O2"
7513   else
7514     FFLAGS="-g"
7515   fi
7516 else
7517   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7518     FFLAGS="-O2"
7519   else
7520     FFLAGS=
7521   fi
7522 fi
7523
7524 G77=`test $ac_compiler_gnu = yes && echo yes`
7525 ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530
7531
7532
7533 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7534
7535 # find the maximum length of command line arguments
7536 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7537 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541     i=0
7542   teststring="ABCD"
7543
7544   case $build_os in
7545   msdosdjgpp*)
7546     # On DJGPP, this test can blow up pretty badly due to problems in libc
7547     # (any single argument exceeding 2000 bytes causes a buffer overrun
7548     # during glob expansion).  Even if it were fixed, the result of this
7549     # check would be larger than it should be.
7550     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7551     ;;
7552
7553   gnu*)
7554     # Under GNU Hurd, this test is not required because there is
7555     # no limit to the length of command line arguments.
7556     # Libtool will interpret -1 as no limit whatsoever
7557     lt_cv_sys_max_cmd_len=-1;
7558     ;;
7559
7560   cygwin* | mingw*)
7561     # On Win9x/ME, this test blows up -- it succeeds, but takes
7562     # about 5 minutes as the teststring grows exponentially.
7563     # Worse, since 9x/ME are not pre-emptively multitasking,
7564     # you end up with a "frozen" computer, even though with patience
7565     # the test eventually succeeds (with a max line length of 256k).
7566     # Instead, let's just punt: use the minimum linelength reported by
7567     # all of the supported platforms: 8192 (on NT/2K/XP).
7568     lt_cv_sys_max_cmd_len=8192;
7569     ;;
7570
7571   amigaos*)
7572     # On AmigaOS with pdksh, this test takes hours, literally.
7573     # So we just punt and use a minimum line length of 8192.
7574     lt_cv_sys_max_cmd_len=8192;
7575     ;;
7576
7577   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7578     # This has been around since 386BSD, at least.  Likely further.
7579     if test -x /sbin/sysctl; then
7580       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7581     elif test -x /usr/sbin/sysctl; then
7582       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7583     else
7584       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7585     fi
7586     # And add a safety zone
7587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7589     ;;
7590   osf*)
7591     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7592     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7593     # nice to cause kernel panics so lets avoid the loop below.
7594     # First set a reasonable default.
7595     lt_cv_sys_max_cmd_len=16384
7596     #
7597     if test -x /sbin/sysconfig; then
7598       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7599         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7600       esac
7601     fi
7602     ;;
7603   *)
7604     # If test is not a shell built-in, we'll probably end up computing a
7605     # maximum length that is only half of the actual maximum length, but
7606     # we can't tell.
7607     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7608     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7609                = "XX$teststring") >/dev/null 2>&1 &&
7610             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7611             lt_cv_sys_max_cmd_len=$new_result &&
7612             test $i != 17 # 1/2 MB should be enough
7613     do
7614       i=`expr $i + 1`
7615       teststring=$teststring$teststring
7616     done
7617     teststring=
7618     # Add a significant safety factor because C++ compilers can tack on massive
7619     # amounts of additional arguments before passing them to the linker.
7620     # It appears as though 1/2 is a usable value.
7621     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7622     ;;
7623   esac
7624
7625 fi
7626
7627 if test -n $lt_cv_sys_max_cmd_len ; then
7628   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7629 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7630 else
7631   echo "$as_me:$LINENO: result: none" >&5
7632 echo "${ECHO_T}none" >&6
7633 fi
7634
7635
7636
7637
7638 # Check for command to grab the raw symbol name followed by C symbol from nm.
7639 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7640 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7641 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644
7645 # These are sane defaults that work on at least a few old systems.
7646 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7647
7648 # Character class describing NM global symbol codes.
7649 symcode='[BCDEGRST]'
7650
7651 # Regexp to match symbols that can be accessed directly from C.
7652 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7653
7654 # Transform an extracted symbol line into a proper C declaration
7655 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7656
7657 # Transform an extracted symbol line into symbol name and symbol address
7658 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'"
7659
7660 # Define system-specific variables.
7661 case $host_os in
7662 aix*)
7663   symcode='[BCDT]'
7664   ;;
7665 cygwin* | mingw* | pw32*)
7666   symcode='[ABCDGISTW]'
7667   ;;
7668 hpux*) # Its linker distinguishes data from code symbols
7669   if test "$host_cpu" = ia64; then
7670     symcode='[ABCDEGRST]'
7671   fi
7672   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7673   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'"
7674   ;;
7675 linux*)
7676   if test "$host_cpu" = ia64; then
7677     symcode='[ABCDGIRSTW]'
7678     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7679     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'"
7680   fi
7681   ;;
7682 irix* | nonstopux*)
7683   symcode='[BCDEGRST]'
7684   ;;
7685 osf*)
7686   symcode='[BCDEGQRST]'
7687   ;;
7688 solaris* | sysv5*)
7689   symcode='[BDRT]'
7690   ;;
7691 sysv4)
7692   symcode='[DFNSTU]'
7693   ;;
7694 esac
7695
7696 # Handle CRLF in mingw tool chain
7697 opt_cr=
7698 case $build_os in
7699 mingw*)
7700   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7701   ;;
7702 esac
7703
7704 # If we're using GNU nm, then use its standard symbol codes.
7705 case `$NM -V 2>&1` in
7706 *GNU* | *'with BFD'*)
7707   symcode='[ABCDGIRSTW]' ;;
7708 esac
7709
7710 # Try without a prefix undercore, then with it.
7711 for ac_symprfx in "" "_"; do
7712
7713   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7714   symxfrm="\\1 $ac_symprfx\\2 \\2"
7715
7716   # Write the raw and C identifiers.
7717   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7718
7719   # Check to see that the pipe works correctly.
7720   pipe_works=no
7721
7722   rm -f conftest*
7723   cat > conftest.$ac_ext <<EOF
7724 #ifdef __cplusplus
7725 extern "C" {
7726 #endif
7727 char nm_test_var;
7728 void nm_test_func(){}
7729 #ifdef __cplusplus
7730 }
7731 #endif
7732 int main(){nm_test_var='a';nm_test_func();return(0);}
7733 EOF
7734
7735   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736   (eval $ac_compile) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; then
7740     # Now try to grab the symbols.
7741     nlist=conftest.nm
7742     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7743   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } && test -s "$nlist"; then
7747       # Try sorting and uniquifying the output.
7748       if sort "$nlist" | uniq > "$nlist"T; then
7749         mv -f "$nlist"T "$nlist"
7750       else
7751         rm -f "$nlist"T
7752       fi
7753
7754       # Make sure that we snagged all the symbols we need.
7755       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7756         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7757           cat <<EOF > conftest.$ac_ext
7758 #ifdef __cplusplus
7759 extern "C" {
7760 #endif
7761
7762 EOF
7763           # Now generate the symbol file.
7764           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7765
7766           cat <<EOF >> conftest.$ac_ext
7767 #if defined (__STDC__) && __STDC__
7768 # define lt_ptr_t void *
7769 #else
7770 # define lt_ptr_t char *
7771 # define const
7772 #endif
7773
7774 /* The mapping between symbol names and symbols. */
7775 const struct {
7776   const char *name;
7777   lt_ptr_t address;
7778 }
7779 lt_preloaded_symbols[] =
7780 {
7781 EOF
7782           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7783           cat <<\EOF >> conftest.$ac_ext
7784   {0, (lt_ptr_t) 0}
7785 };
7786
7787 #ifdef __cplusplus
7788 }
7789 #endif
7790 EOF
7791           # Now try linking the two files.
7792           mv conftest.$ac_objext conftstm.$ac_objext
7793           lt_save_LIBS="$LIBS"
7794           lt_save_CFLAGS="$CFLAGS"
7795           LIBS="conftstm.$ac_objext"
7796           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7797           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798   (eval $ac_link) 2>&5
7799   ac_status=$?
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7802             pipe_works=yes
7803           fi
7804           LIBS="$lt_save_LIBS"
7805           CFLAGS="$lt_save_CFLAGS"
7806         else
7807           echo "cannot find nm_test_func in $nlist" >&5
7808         fi
7809       else
7810         echo "cannot find nm_test_var in $nlist" >&5
7811       fi
7812     else
7813       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7814     fi
7815   else
7816     echo "$progname: failed program was:" >&5
7817     cat conftest.$ac_ext >&5
7818   fi
7819   rm -f conftest* conftst*
7820
7821   # Do not use the global_symbol_pipe unless it works.
7822   if test "$pipe_works" = yes; then
7823     break
7824   else
7825     lt_cv_sys_global_symbol_pipe=
7826   fi
7827 done
7828
7829 fi
7830
7831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7832   lt_cv_sys_global_symbol_to_cdecl=
7833 fi
7834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7835   echo "$as_me:$LINENO: result: failed" >&5
7836 echo "${ECHO_T}failed" >&6
7837 else
7838   echo "$as_me:$LINENO: result: ok" >&5
7839 echo "${ECHO_T}ok" >&6
7840 fi
7841
7842 echo "$as_me:$LINENO: checking for objdir" >&5
7843 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7844 if test "${lt_cv_objdir+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   rm -f .libs 2>/dev/null
7848 mkdir .libs 2>/dev/null
7849 if test -d .libs; then
7850   lt_cv_objdir=.libs
7851 else
7852   # MS-DOS does not allow filenames that begin with a dot.
7853   lt_cv_objdir=_libs
7854 fi
7855 rmdir .libs 2>/dev/null
7856 fi
7857 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7858 echo "${ECHO_T}$lt_cv_objdir" >&6
7859 objdir=$lt_cv_objdir
7860
7861
7862
7863
7864
7865 case $host_os in
7866 aix3*)
7867   # AIX sometimes has problems with the GCC collect2 program.  For some
7868   # reason, if we set the COLLECT_NAMES environment variable, the problems
7869   # vanish in a puff of smoke.
7870   if test "X${COLLECT_NAMES+set}" != Xset; then
7871     COLLECT_NAMES=
7872     export COLLECT_NAMES
7873   fi
7874   ;;
7875 esac
7876
7877 # Sed substitution that helps us do robust quoting.  It backslashifies
7878 # metacharacters that are still active within double-quoted strings.
7879 Xsed='sed -e 1s/^X//'
7880 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7881
7882 # Same as above, but do not quote variable references.
7883 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7884
7885 # Sed substitution to delay expansion of an escaped shell variable in a
7886 # double_quote_subst'ed string.
7887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7888
7889 # Sed substitution to avoid accidental globbing in evaled expressions
7890 no_glob_subst='s/\*/\\\*/g'
7891
7892 # Constants:
7893 rm="rm -f"
7894
7895 # Global variables:
7896 default_ofile=libtool
7897 can_build_shared=yes
7898
7899 # All known linkers require a `.a' archive for static linking (except M$VC,
7900 # which needs '.lib').
7901 libext=a
7902 ltmain="$ac_aux_dir/ltmain.sh"
7903 ofile="$default_ofile"
7904 with_gnu_ld="$lt_cv_prog_gnu_ld"
7905
7906 if test -n "$ac_tool_prefix"; then
7907   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7908 set dummy ${ac_tool_prefix}ar; ac_word=$2
7909 echo "$as_me:$LINENO: checking for $ac_word" >&5
7910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7911 if test "${ac_cv_prog_AR+set}" = set; then
7912   echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914   if test -n "$AR"; then
7915   ac_cv_prog_AR="$AR" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920   IFS=$as_save_IFS
7921   test -z "$as_dir" && as_dir=.
7922   for ac_exec_ext in '' $ac_executable_extensions; do
7923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924     ac_cv_prog_AR="${ac_tool_prefix}ar"
7925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926     break 2
7927   fi
7928 done
7929 done
7930
7931 fi
7932 fi
7933 AR=$ac_cv_prog_AR
7934 if test -n "$AR"; then
7935   echo "$as_me:$LINENO: result: $AR" >&5
7936 echo "${ECHO_T}$AR" >&6
7937 else
7938   echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6
7940 fi
7941
7942 fi
7943 if test -z "$ac_cv_prog_AR"; then
7944   ac_ct_AR=$AR
7945   # Extract the first word of "ar", so it can be a program name with args.
7946 set dummy ar; ac_word=$2
7947 echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   if test -n "$ac_ct_AR"; then
7953   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960   for ac_exec_ext in '' $ac_executable_extensions; do
7961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962     ac_cv_prog_ac_ct_AR="ar"
7963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967 done
7968
7969   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7970 fi
7971 fi
7972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7973 if test -n "$ac_ct_AR"; then
7974   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7975 echo "${ECHO_T}$ac_ct_AR" >&6
7976 else
7977   echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7979 fi
7980
7981   AR=$ac_ct_AR
7982 else
7983   AR="$ac_cv_prog_AR"
7984 fi
7985
7986 if test -n "$ac_tool_prefix"; then
7987   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7989 echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7991 if test "${ac_cv_prog_RANLIB+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   if test -n "$RANLIB"; then
7995   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002   for ac_exec_ext in '' $ac_executable_extensions; do
8003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8006     break 2
8007   fi
8008 done
8009 done
8010
8011 fi
8012 fi
8013 RANLIB=$ac_cv_prog_RANLIB
8014 if test -n "$RANLIB"; then
8015   echo "$as_me:$LINENO: result: $RANLIB" >&5
8016 echo "${ECHO_T}$RANLIB" >&6
8017 else
8018   echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6
8020 fi
8021
8022 fi
8023 if test -z "$ac_cv_prog_RANLIB"; then
8024   ac_ct_RANLIB=$RANLIB
8025   # Extract the first word of "ranlib", so it can be a program name with args.
8026 set dummy ranlib; ac_word=$2
8027 echo "$as_me:$LINENO: checking for $ac_word" >&5
8028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   if test -n "$ac_ct_RANLIB"; then
8033   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038   IFS=$as_save_IFS
8039   test -z "$as_dir" && as_dir=.
8040   for ac_exec_ext in '' $ac_executable_extensions; do
8041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042     ac_cv_prog_ac_ct_RANLIB="ranlib"
8043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8044     break 2
8045   fi
8046 done
8047 done
8048
8049   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8050 fi
8051 fi
8052 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8053 if test -n "$ac_ct_RANLIB"; then
8054   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8056 else
8057   echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8059 fi
8060
8061   RANLIB=$ac_ct_RANLIB
8062 else
8063   RANLIB="$ac_cv_prog_RANLIB"
8064 fi
8065
8066 if test -n "$ac_tool_prefix"; then
8067   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}strip; ac_word=$2
8069 echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8071 if test "${ac_cv_prog_STRIP+set}" = set; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   if test -n "$STRIP"; then
8075   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080   IFS=$as_save_IFS
8081   test -z "$as_dir" && as_dir=.
8082   for ac_exec_ext in '' $ac_executable_extensions; do
8083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086     break 2
8087   fi
8088 done
8089 done
8090
8091 fi
8092 fi
8093 STRIP=$ac_cv_prog_STRIP
8094 if test -n "$STRIP"; then
8095   echo "$as_me:$LINENO: result: $STRIP" >&5
8096 echo "${ECHO_T}$STRIP" >&6
8097 else
8098   echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6
8100 fi
8101
8102 fi
8103 if test -z "$ac_cv_prog_STRIP"; then
8104   ac_ct_STRIP=$STRIP
8105   # Extract the first word of "strip", so it can be a program name with args.
8106 set dummy strip; ac_word=$2
8107 echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8109 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   if test -n "$ac_ct_STRIP"; then
8113   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118   IFS=$as_save_IFS
8119   test -z "$as_dir" && as_dir=.
8120   for ac_exec_ext in '' $ac_executable_extensions; do
8121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122     ac_cv_prog_ac_ct_STRIP="strip"
8123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124     break 2
8125   fi
8126 done
8127 done
8128
8129   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8130 fi
8131 fi
8132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8133 if test -n "$ac_ct_STRIP"; then
8134   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8135 echo "${ECHO_T}$ac_ct_STRIP" >&6
8136 else
8137   echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8139 fi
8140
8141   STRIP=$ac_ct_STRIP
8142 else
8143   STRIP="$ac_cv_prog_STRIP"
8144 fi
8145
8146
8147 old_CC="$CC"
8148 old_CFLAGS="$CFLAGS"
8149
8150 # Set sane defaults for various variables
8151 test -z "$AR" && AR=ar
8152 test -z "$AR_FLAGS" && AR_FLAGS=cru
8153 test -z "$AS" && AS=as
8154 test -z "$CC" && CC=cc
8155 test -z "$LTCC" && LTCC=$CC
8156 test -z "$DLLTOOL" && DLLTOOL=dlltool
8157 test -z "$LD" && LD=ld
8158 test -z "$LN_S" && LN_S="ln -s"
8159 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8160 test -z "$NM" && NM=nm
8161 test -z "$SED" && SED=sed
8162 test -z "$OBJDUMP" && OBJDUMP=objdump
8163 test -z "$RANLIB" && RANLIB=:
8164 test -z "$STRIP" && STRIP=:
8165 test -z "$ac_objext" && ac_objext=o
8166
8167 # Determine commands to create old-style static archives.
8168 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8169 old_postinstall_cmds='chmod 644 $oldlib'
8170 old_postuninstall_cmds=
8171
8172 if test -n "$RANLIB"; then
8173   case $host_os in
8174   openbsd*)
8175     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8176     ;;
8177   *)
8178     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8179     ;;
8180   esac
8181   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8182 fi
8183
8184 for cc_temp in $compiler""; do
8185   case $cc_temp in
8186     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8187     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8188     \-*) ;;
8189     *) break;;
8190   esac
8191 done
8192 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8193
8194
8195 # Only perform the check for file, if the check method requires it
8196 case $deplibs_check_method in
8197 file_magic*)
8198   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8199     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8200 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8201 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   case $MAGIC_CMD in
8205 [\\/*] |  ?:[\\/]*)
8206   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8207   ;;
8208 *)
8209   lt_save_MAGIC_CMD="$MAGIC_CMD"
8210   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8211   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8212   for ac_dir in $ac_dummy; do
8213     IFS="$lt_save_ifs"
8214     test -z "$ac_dir" && ac_dir=.
8215     if test -f $ac_dir/${ac_tool_prefix}file; then
8216       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8217       if test -n "$file_magic_test_file"; then
8218         case $deplibs_check_method in
8219         "file_magic "*)
8220           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8221           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8223             $EGREP "$file_magic_regex" > /dev/null; then
8224             :
8225           else
8226             cat <<EOF 1>&2
8227
8228 *** Warning: the command libtool uses to detect shared libraries,
8229 *** $file_magic_cmd, produces output that libtool cannot recognize.
8230 *** The result is that libtool may fail to recognize shared libraries
8231 *** as such.  This will affect the creation of libtool libraries that
8232 *** depend on shared libraries, but programs linked with such libtool
8233 *** libraries will work regardless of this problem.  Nevertheless, you
8234 *** may want to report the problem to your system manager and/or to
8235 *** bug-libtool@gnu.org
8236
8237 EOF
8238           fi ;;
8239         esac
8240       fi
8241       break
8242     fi
8243   done
8244   IFS="$lt_save_ifs"
8245   MAGIC_CMD="$lt_save_MAGIC_CMD"
8246   ;;
8247 esac
8248 fi
8249
8250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251 if test -n "$MAGIC_CMD"; then
8252   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8253 echo "${ECHO_T}$MAGIC_CMD" >&6
8254 else
8255   echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8257 fi
8258
8259 if test -z "$lt_cv_path_MAGIC_CMD"; then
8260   if test -n "$ac_tool_prefix"; then
8261     echo "$as_me:$LINENO: checking for file" >&5
8262 echo $ECHO_N "checking for file... $ECHO_C" >&6
8263 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   case $MAGIC_CMD in
8267 [\\/*] |  ?:[\\/]*)
8268   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8269   ;;
8270 *)
8271   lt_save_MAGIC_CMD="$MAGIC_CMD"
8272   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8273   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8274   for ac_dir in $ac_dummy; do
8275     IFS="$lt_save_ifs"
8276     test -z "$ac_dir" && ac_dir=.
8277     if test -f $ac_dir/file; then
8278       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8279       if test -n "$file_magic_test_file"; then
8280         case $deplibs_check_method in
8281         "file_magic "*)
8282           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8283           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8284           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8285             $EGREP "$file_magic_regex" > /dev/null; then
8286             :
8287           else
8288             cat <<EOF 1>&2
8289
8290 *** Warning: the command libtool uses to detect shared libraries,
8291 *** $file_magic_cmd, produces output that libtool cannot recognize.
8292 *** The result is that libtool may fail to recognize shared libraries
8293 *** as such.  This will affect the creation of libtool libraries that
8294 *** depend on shared libraries, but programs linked with such libtool
8295 *** libraries will work regardless of this problem.  Nevertheless, you
8296 *** may want to report the problem to your system manager and/or to
8297 *** bug-libtool@gnu.org
8298
8299 EOF
8300           fi ;;
8301         esac
8302       fi
8303       break
8304     fi
8305   done
8306   IFS="$lt_save_ifs"
8307   MAGIC_CMD="$lt_save_MAGIC_CMD"
8308   ;;
8309 esac
8310 fi
8311
8312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313 if test -n "$MAGIC_CMD"; then
8314   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8315 echo "${ECHO_T}$MAGIC_CMD" >&6
8316 else
8317   echo "$as_me:$LINENO: result: no" >&5
8318 echo "${ECHO_T}no" >&6
8319 fi
8320
8321   else
8322     MAGIC_CMD=:
8323   fi
8324 fi
8325
8326   fi
8327   ;;
8328 esac
8329
8330 enable_dlopen=yes
8331 enable_win32_dll=yes
8332
8333 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8334 if test "${enable_libtool_lock+set}" = set; then
8335   enableval="$enable_libtool_lock"
8336
8337 fi;
8338 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8339
8340
8341 # Check whether --with-pic or --without-pic was given.
8342 if test "${with_pic+set}" = set; then
8343   withval="$with_pic"
8344   pic_mode="$withval"
8345 else
8346   pic_mode=default
8347 fi;
8348 test -z "$pic_mode" && pic_mode=default
8349
8350 # Use C for the default configuration in the libtool script
8351 tagname=
8352 lt_save_CC="$CC"
8353 ac_ext=c
8354 ac_cpp='$CPP $CPPFLAGS'
8355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358
8359
8360 # Source file extension for C test sources.
8361 ac_ext=c
8362
8363 # Object file extension for compiled C test sources.
8364 objext=o
8365 objext=$objext
8366
8367 # Code to be used in simple compile tests
8368 lt_simple_compile_test_code="int some_variable = 0;\n"
8369
8370 # Code to be used in simple link tests
8371 lt_simple_link_test_code='int main(){return(0);}\n'
8372
8373
8374 # If no C compiler was specified, use CC.
8375 LTCC=${LTCC-"$CC"}
8376
8377 # Allow CC to be a program name with arguments.
8378 compiler=$CC
8379
8380
8381 # save warnings/boilerplate of simple test code
8382 ac_outfile=conftest.$ac_objext
8383 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8385 _lt_compiler_boilerplate=`cat conftest.err`
8386 $rm conftest*
8387
8388 ac_outfile=conftest.$ac_objext
8389 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8391 _lt_linker_boilerplate=`cat conftest.err`
8392 $rm conftest*
8393
8394
8395 #
8396 # Check for any special shared library compilation flags.
8397 #
8398 lt_prog_cc_shlib=
8399 if test "$GCC" = no; then
8400   case $host_os in
8401   sco3.2v5*)
8402     lt_prog_cc_shlib='-belf'
8403     ;;
8404   esac
8405 fi
8406 if test -n "$lt_prog_cc_shlib"; then
8407   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8408 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8409   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8410   else
8411     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8412 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8413     lt_cv_prog_cc_can_build_shared=no
8414   fi
8415 fi
8416
8417
8418 #
8419 # Check to make sure the static flag actually works.
8420 #
8421 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8422 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8423 if test "${lt_prog_compiler_static_works+set}" = set; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   lt_prog_compiler_static_works=no
8427    save_LDFLAGS="$LDFLAGS"
8428    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8429    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8430    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8431      # The compiler can only warn and ignore the option if not recognized
8432      # So say no if there are warnings
8433      if test -s conftest.err; then
8434        # Append any errors to the config.log.
8435        cat conftest.err 1>&5
8436        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8437        $SED '/^$/d' conftest.err >conftest.er2
8438        if diff conftest.exp conftest.er2 >/dev/null; then
8439          lt_prog_compiler_static_works=yes
8440        fi
8441      else
8442        lt_prog_compiler_static_works=yes
8443      fi
8444    fi
8445    $rm conftest*
8446    LDFLAGS="$save_LDFLAGS"
8447
8448 fi
8449 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8450 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8451
8452 if test x"$lt_prog_compiler_static_works" = xyes; then
8453     :
8454 else
8455     lt_prog_compiler_static=
8456 fi
8457
8458
8459
8460
8461 lt_prog_compiler_no_builtin_flag=
8462
8463 if test "$GCC" = yes; then
8464   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8465
8466
8467 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8469 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   lt_cv_prog_compiler_rtti_exceptions=no
8473   ac_outfile=conftest.$ac_objext
8474    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8475    lt_compiler_flag="-fno-rtti -fno-exceptions"
8476    # Insert the option either (1) after the last *FLAGS variable, or
8477    # (2) before a word containing "conftest.", or (3) at the end.
8478    # Note that $ac_compile itself does not contain backslashes and begins
8479    # with a dollar sign (not a hyphen), so the echo should work correctly.
8480    # The option is referenced via a variable to avoid confusing sed.
8481    lt_compile=`echo "$ac_compile" | $SED \
8482    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484    -e 's:$: $lt_compiler_flag:'`
8485    (eval echo "\"\$as_me:8485: $lt_compile\"" >&5)
8486    (eval "$lt_compile" 2>conftest.err)
8487    ac_status=$?
8488    cat conftest.err >&5
8489    echo "$as_me:8489: \$? = $ac_status" >&5
8490    if (exit $ac_status) && test -s "$ac_outfile"; then
8491      # The compiler can only warn and ignore the option if not recognized
8492      # So say no if there are warnings other than the usual output.
8493      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8494      $SED '/^$/d' conftest.err >conftest.er2
8495      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8496        lt_cv_prog_compiler_rtti_exceptions=yes
8497      fi
8498    fi
8499    $rm conftest*
8500
8501 fi
8502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8503 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8504
8505 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8506     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8507 else
8508     :
8509 fi
8510
8511 fi
8512
8513 lt_prog_compiler_wl=
8514 lt_prog_compiler_pic=
8515 lt_prog_compiler_static=
8516
8517 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8519
8520   if test "$GCC" = yes; then
8521     lt_prog_compiler_wl='-Wl,'
8522     lt_prog_compiler_static='-static'
8523
8524     case $host_os in
8525       aix*)
8526       # All AIX code is PIC.
8527       if test "$host_cpu" = ia64; then
8528         # AIX 5 now supports IA64 processor
8529         lt_prog_compiler_static='-Bstatic'
8530       fi
8531       ;;
8532
8533     amigaos*)
8534       # FIXME: we need at least 68020 code to build shared libraries, but
8535       # adding the `-m68020' flag to GCC prevents building anything better,
8536       # like `-m68040'.
8537       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8538       ;;
8539
8540     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8541       # PIC is the default for these OSes.
8542       ;;
8543
8544     mingw* | pw32* | os2*)
8545       # This hack is so that the source file can tell whether it is being
8546       # built for inclusion in a dll (and should export symbols for example).
8547       lt_prog_compiler_pic='-DDLL_EXPORT'
8548       ;;
8549
8550     darwin* | rhapsody*)
8551       # PIC is the default on this platform
8552       # Common symbols not allowed in MH_DYLIB files
8553       lt_prog_compiler_pic='-fno-common'
8554       ;;
8555
8556     msdosdjgpp*)
8557       # Just because we use GCC doesn't mean we suddenly get shared libraries
8558       # on systems that don't support them.
8559       lt_prog_compiler_can_build_shared=no
8560       enable_shared=no
8561       ;;
8562
8563     sysv4*MP*)
8564       if test -d /usr/nec; then
8565         lt_prog_compiler_pic=-Kconform_pic
8566       fi
8567       ;;
8568
8569     hpux*)
8570       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8571       # not for PA HP-UX.
8572       case "$host_cpu" in
8573       hppa*64*|ia64*)
8574         # +Z the default
8575         ;;
8576       *)
8577         lt_prog_compiler_pic='-fPIC'
8578         ;;
8579       esac
8580       ;;
8581
8582     *)
8583       lt_prog_compiler_pic='-fPIC'
8584       ;;
8585     esac
8586   else
8587     # PORTME Check for flag to pass linker flags through the system compiler.
8588     case $host_os in
8589     aix*)
8590       lt_prog_compiler_wl='-Wl,'
8591       if test "$host_cpu" = ia64; then
8592         # AIX 5 now supports IA64 processor
8593         lt_prog_compiler_static='-Bstatic'
8594       else
8595         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8596       fi
8597       ;;
8598       darwin*)
8599         # PIC is the default on this platform
8600         # Common symbols not allowed in MH_DYLIB files
8601        case $cc_basename in
8602          xlc*)
8603          lt_prog_compiler_pic='-qnocommon'
8604          lt_prog_compiler_wl='-Wl,'
8605          ;;
8606        esac
8607        ;;
8608
8609     mingw* | pw32* | os2*)
8610       # This hack is so that the source file can tell whether it is being
8611       # built for inclusion in a dll (and should export symbols for example).
8612       lt_prog_compiler_pic='-DDLL_EXPORT'
8613       ;;
8614
8615     hpux9* | hpux10* | hpux11*)
8616       lt_prog_compiler_wl='-Wl,'
8617       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8618       # not for PA HP-UX.
8619       case "$host_cpu" in
8620       hppa*64*|ia64*)
8621         # +Z the default
8622         ;;
8623       *)
8624         lt_prog_compiler_pic='+Z'
8625         ;;
8626       esac
8627       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8628       lt_prog_compiler_static='${wl}-a ${wl}archive'
8629       ;;
8630
8631     irix5* | irix6* | nonstopux*)
8632       lt_prog_compiler_wl='-Wl,'
8633       # PIC (with -KPIC) is the default.
8634       lt_prog_compiler_static='-non_shared'
8635       ;;
8636
8637     newsos6)
8638       lt_prog_compiler_pic='-KPIC'
8639       lt_prog_compiler_static='-Bstatic'
8640       ;;
8641
8642     linux*)
8643       case $cc_basename in
8644       icc* | ecc*)
8645         lt_prog_compiler_wl='-Wl,'
8646         lt_prog_compiler_pic='-KPIC'
8647         lt_prog_compiler_static='-static'
8648         ;;
8649       pgcc* | pgf77* | pgf90*)
8650         # Portland Group compilers (*not* the Pentium gcc compiler,
8651         # which looks to be a dead project)
8652         lt_prog_compiler_wl='-Wl,'
8653         lt_prog_compiler_pic='-fpic'
8654         lt_prog_compiler_static='-static'
8655         ;;
8656       ccc*)
8657         lt_prog_compiler_wl='-Wl,'
8658         # All Alpha code is PIC.
8659         lt_prog_compiler_static='-non_shared'
8660         ;;
8661       esac
8662       ;;
8663
8664     osf3* | osf4* | osf5*)
8665       lt_prog_compiler_wl='-Wl,'
8666       # All OSF/1 code is PIC.
8667       lt_prog_compiler_static='-non_shared'
8668       ;;
8669
8670     sco3.2v5*)
8671       lt_prog_compiler_pic='-Kpic'
8672       lt_prog_compiler_static='-dn'
8673       ;;
8674
8675     solaris*)
8676       lt_prog_compiler_pic='-KPIC'
8677       lt_prog_compiler_static='-Bstatic'
8678       case $cc_basename in
8679       f77* | f90* | f95*)
8680         lt_prog_compiler_wl='-Qoption ld ';;
8681       *)
8682         lt_prog_compiler_wl='-Wl,';;
8683       esac
8684       ;;
8685
8686     sunos4*)
8687       lt_prog_compiler_wl='-Qoption ld '
8688       lt_prog_compiler_pic='-PIC'
8689       lt_prog_compiler_static='-Bstatic'
8690       ;;
8691
8692     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8693       lt_prog_compiler_wl='-Wl,'
8694       lt_prog_compiler_pic='-KPIC'
8695       lt_prog_compiler_static='-Bstatic'
8696       ;;
8697
8698     sysv4*MP*)
8699       if test -d /usr/nec ;then
8700         lt_prog_compiler_pic='-Kconform_pic'
8701         lt_prog_compiler_static='-Bstatic'
8702       fi
8703       ;;
8704
8705     unicos*)
8706       lt_prog_compiler_wl='-Wl,'
8707       lt_prog_compiler_can_build_shared=no
8708       ;;
8709
8710     uts4*)
8711       lt_prog_compiler_pic='-pic'
8712       lt_prog_compiler_static='-Bstatic'
8713       ;;
8714
8715     *)
8716       lt_prog_compiler_can_build_shared=no
8717       ;;
8718     esac
8719   fi
8720
8721 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8722 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8723
8724 #
8725 # Check to make sure the PIC flag actually works.
8726 #
8727 if test -n "$lt_prog_compiler_pic"; then
8728
8729 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8731 if test "${lt_prog_compiler_pic_works+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   lt_prog_compiler_pic_works=no
8735   ac_outfile=conftest.$ac_objext
8736    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8737    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8738    # Insert the option either (1) after the last *FLAGS variable, or
8739    # (2) before a word containing "conftest.", or (3) at the end.
8740    # Note that $ac_compile itself does not contain backslashes and begins
8741    # with a dollar sign (not a hyphen), so the echo should work correctly.
8742    # The option is referenced via a variable to avoid confusing sed.
8743    lt_compile=`echo "$ac_compile" | $SED \
8744    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746    -e 's:$: $lt_compiler_flag:'`
8747    (eval echo "\"\$as_me:8747: $lt_compile\"" >&5)
8748    (eval "$lt_compile" 2>conftest.err)
8749    ac_status=$?
8750    cat conftest.err >&5
8751    echo "$as_me:8751: \$? = $ac_status" >&5
8752    if (exit $ac_status) && test -s "$ac_outfile"; then
8753      # The compiler can only warn and ignore the option if not recognized
8754      # So say no if there are warnings other than the usual output.
8755      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8756      $SED '/^$/d' conftest.err >conftest.er2
8757      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8758        lt_prog_compiler_pic_works=yes
8759      fi
8760    fi
8761    $rm conftest*
8762
8763 fi
8764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8765 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8766
8767 if test x"$lt_prog_compiler_pic_works" = xyes; then
8768     case $lt_prog_compiler_pic in
8769      "" | " "*) ;;
8770      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8771      esac
8772 else
8773     lt_prog_compiler_pic=
8774      lt_prog_compiler_can_build_shared=no
8775 fi
8776
8777 fi
8778 case "$host_os" in
8779   # For platforms which do not support PIC, -DPIC is meaningless:
8780   *djgpp*)
8781     lt_prog_compiler_pic=
8782     ;;
8783   *)
8784     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8785     ;;
8786 esac
8787
8788 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8790 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   lt_cv_prog_compiler_c_o=no
8794    $rm -r conftest 2>/dev/null
8795    mkdir conftest
8796    cd conftest
8797    mkdir out
8798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8799
8800    lt_compiler_flag="-o out/conftest2.$ac_objext"
8801    # Insert the option either (1) after the last *FLAGS variable, or
8802    # (2) before a word containing "conftest.", or (3) at the end.
8803    # Note that $ac_compile itself does not contain backslashes and begins
8804    # with a dollar sign (not a hyphen), so the echo should work correctly.
8805    lt_compile=`echo "$ac_compile" | $SED \
8806    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8808    -e 's:$: $lt_compiler_flag:'`
8809    (eval echo "\"\$as_me:8809: $lt_compile\"" >&5)
8810    (eval "$lt_compile" 2>out/conftest.err)
8811    ac_status=$?
8812    cat out/conftest.err >&5
8813    echo "$as_me:8813: \$? = $ac_status" >&5
8814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8815    then
8816      # The compiler can only warn and ignore the option if not recognized
8817      # So say no if there are warnings
8818      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8819      $SED '/^$/d' out/conftest.err >out/conftest.er2
8820      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8821        lt_cv_prog_compiler_c_o=yes
8822      fi
8823    fi
8824    chmod u+w .
8825    $rm conftest*
8826    # SGI C++ compiler will create directory out/ii_files/ for
8827    # template instantiation
8828    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8829    $rm out/* && rmdir out
8830    cd ..
8831    rmdir conftest
8832    $rm conftest*
8833
8834 fi
8835 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8837
8838
8839 hard_links="nottested"
8840 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8841   # do not overwrite the value of need_locks provided by the user
8842   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8843 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8844   hard_links=yes
8845   $rm conftest*
8846   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8847   touch conftest.a
8848   ln conftest.a conftest.b 2>&5 || hard_links=no
8849   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8850   echo "$as_me:$LINENO: result: $hard_links" >&5
8851 echo "${ECHO_T}$hard_links" >&6
8852   if test "$hard_links" = no; then
8853     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8854 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8855     need_locks=warn
8856   fi
8857 else
8858   need_locks=no
8859 fi
8860
8861 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8862 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8863
8864   runpath_var=
8865   allow_undefined_flag=
8866   enable_shared_with_static_runtimes=no
8867   archive_cmds=
8868   archive_expsym_cmds=
8869   old_archive_From_new_cmds=
8870   old_archive_from_expsyms_cmds=
8871   export_dynamic_flag_spec=
8872   whole_archive_flag_spec=
8873   thread_safe_flag_spec=
8874   hardcode_libdir_flag_spec=
8875   hardcode_libdir_flag_spec_ld=
8876   hardcode_libdir_separator=
8877   hardcode_direct=no
8878   hardcode_minus_L=no
8879   hardcode_shlibpath_var=unsupported
8880   link_all_deplibs=unknown
8881   hardcode_automatic=no
8882   module_cmds=
8883   module_expsym_cmds=
8884   always_export_symbols=no
8885   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8886   # include_expsyms should be a list of space-separated symbols to be *always*
8887   # included in the symbol list
8888   include_expsyms=
8889   # exclude_expsyms can be an extended regexp of symbols to exclude
8890   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892   # as well as any symbol that contains `d'.
8893   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8894   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895   # platforms (ab)use it in PIC code, but their linkers get confused if
8896   # the symbol is explicitly referenced.  Since portable code cannot
8897   # rely on this symbol name, it's probably fine to never include it in
8898   # preloaded symbol tables.
8899   extract_expsyms_cmds=
8900   # Just being paranoid about ensuring that cc_basename is set.
8901   for cc_temp in $compiler""; do
8902   case $cc_temp in
8903     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8904     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8905     \-*) ;;
8906     *) break;;
8907   esac
8908 done
8909 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8910
8911   case $host_os in
8912   cygwin* | mingw* | pw32*)
8913     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8914     # When not using gcc, we currently assume that we are using
8915     # Microsoft Visual C++.
8916     if test "$GCC" != yes; then
8917       with_gnu_ld=no
8918     fi
8919     ;;
8920   openbsd*)
8921     with_gnu_ld=no
8922     ;;
8923   esac
8924
8925   ld_shlibs=yes
8926   if test "$with_gnu_ld" = yes; then
8927     # If archive_cmds runs LD, not CC, wlarc should be empty
8928     wlarc='${wl}'
8929
8930     # Set some defaults for GNU ld with shared library support. These
8931     # are reset later if shared libraries are not supported. Putting them
8932     # here allows them to be overridden if necessary.
8933     runpath_var=LD_RUN_PATH
8934     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8935     export_dynamic_flag_spec='${wl}--export-dynamic'
8936     # ancient GNU ld didn't support --whole-archive et. al.
8937     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8938         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8939       else
8940         whole_archive_flag_spec=
8941     fi
8942     supports_anon_versioning=no
8943     case `$LD -v 2>/dev/null` in
8944       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8945       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8946       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8947       *\ 2.11.*) ;; # other 2.11 versions
8948       *) supports_anon_versioning=yes ;;
8949     esac
8950
8951     # See if GNU ld supports shared libraries.
8952     case $host_os in
8953     aix3* | aix4* | aix5*)
8954       # On AIX/PPC, the GNU linker is very broken
8955       if test "$host_cpu" != ia64; then
8956         ld_shlibs=no
8957         cat <<EOF 1>&2
8958
8959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8960 *** to be unable to reliably create shared libraries on AIX.
8961 *** Therefore, libtool is disabling shared libraries support.  If you
8962 *** really care for shared libraries, you may want to modify your PATH
8963 *** so that a non-GNU linker is found, and then restart.
8964
8965 EOF
8966       fi
8967       ;;
8968
8969     amigaos*)
8970       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)'
8971       hardcode_libdir_flag_spec='-L$libdir'
8972       hardcode_minus_L=yes
8973
8974       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8975       # that the semantics of dynamic libraries on AmigaOS, at least up
8976       # to version 4, is to share data among multiple programs linked
8977       # with the same dynamic library.  Since this doesn't match the
8978       # behavior of shared libraries on other platforms, we can't use
8979       # them.
8980       ld_shlibs=no
8981       ;;
8982
8983     beos*)
8984       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8985         allow_undefined_flag=unsupported
8986         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8987         # support --undefined.  This deserves some investigation.  FIXME
8988         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989       else
8990         ld_shlibs=no
8991       fi
8992       ;;
8993
8994     cygwin* | mingw* | pw32*)
8995       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8996       # as there is no search path for DLLs.
8997       hardcode_libdir_flag_spec='-L$libdir'
8998       allow_undefined_flag=unsupported
8999       always_export_symbols=no
9000       enable_shared_with_static_runtimes=yes
9001       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9002
9003       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9004         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9005         # If the export-symbols file already is a .def file (1st line
9006         # is EXPORTS), use it as is; otherwise, prepend...
9007         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9008           cp $export_symbols $output_objdir/$soname.def;
9009         else
9010           echo EXPORTS > $output_objdir/$soname.def;
9011           cat $export_symbols >> $output_objdir/$soname.def;
9012         fi~
9013         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9014       else
9015         ld_shlibs=no
9016       fi
9017       ;;
9018
9019     linux*)
9020       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9021         tmp_addflag=
9022         case $cc_basename,$host_cpu in
9023         pgcc*)                          # Portland Group C compiler
9024           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'
9025           tmp_addflag=' $pic_flag'
9026           ;;
9027         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
9028           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'
9029           tmp_addflag=' $pic_flag -Mnomain' ;;
9030         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9031           tmp_addflag=' -i_dynamic' ;;
9032         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9033           tmp_addflag=' -i_dynamic -nofor_main' ;;
9034         ifc* | ifort*)                  # Intel Fortran compiler
9035           tmp_addflag=' -nofor_main' ;;
9036         esac
9037         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038
9039         if test $supports_anon_versioning = yes; then
9040           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9041   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9042   $echo "local: *; };" >> $output_objdir/$libname.ver~
9043           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9044         fi
9045       else
9046         ld_shlibs=no
9047       fi
9048       ;;
9049
9050     netbsd*)
9051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9052         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9053         wlarc=
9054       else
9055         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057       fi
9058       ;;
9059
9060     solaris* | sysv5*)
9061       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9062         ld_shlibs=no
9063         cat <<EOF 1>&2
9064
9065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066 *** create shared libraries on Solaris systems.  Therefore, libtool
9067 *** is disabling shared libraries support.  We urge you to upgrade GNU
9068 *** binutils to release 2.9.1 or newer.  Another option is to modify
9069 *** your PATH or compiler configuration so that the native linker is
9070 *** used, and then restart.
9071
9072 EOF
9073       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076       else
9077         ld_shlibs=no
9078       fi
9079       ;;
9080
9081     sunos4*)
9082       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083       wlarc=
9084       hardcode_direct=yes
9085       hardcode_shlibpath_var=no
9086       ;;
9087
9088     *)
9089       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9090         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9092       else
9093         ld_shlibs=no
9094       fi
9095       ;;
9096     esac
9097
9098     if test "$ld_shlibs" = no; then
9099       runpath_var=
9100       hardcode_libdir_flag_spec=
9101       export_dynamic_flag_spec=
9102       whole_archive_flag_spec=
9103     fi
9104   else
9105     # PORTME fill in a description of your system's linker (not GNU ld)
9106     case $host_os in
9107     aix3*)
9108       allow_undefined_flag=unsupported
9109       always_export_symbols=yes
9110       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'
9111       # Note: this linker hardcodes the directories in LIBPATH if there
9112       # are no directories specified by -L.
9113       hardcode_minus_L=yes
9114       if test "$GCC" = yes && test -z "$link_static_flag"; then
9115         # Neither direct hardcoding nor static linking is supported with a
9116         # broken collect2.
9117         hardcode_direct=unsupported
9118       fi
9119       ;;
9120
9121     aix4* | aix5*)
9122       if test "$host_cpu" = ia64; then
9123         # On IA64, the linker does run time linking by default, so we don't
9124         # have to do anything special.
9125         aix_use_runtimelinking=no
9126         exp_sym_flag='-Bexport'
9127         no_entry_flag=""
9128       else
9129         # If we're using GNU nm, then we don't want the "-C" option.
9130         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9131         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9132           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'
9133         else
9134           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'
9135         fi
9136         aix_use_runtimelinking=no
9137
9138         # Test if we are trying to use run time linking or normal
9139         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9140         # need to do runtime linking.
9141         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9142           for ld_flag in $LDFLAGS; do
9143           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9144             aix_use_runtimelinking=yes
9145             break
9146           fi
9147           done
9148         esac
9149
9150         exp_sym_flag='-bexport'
9151         no_entry_flag='-bnoentry'
9152       fi
9153
9154       # When large executables or shared objects are built, AIX ld can
9155       # have problems creating the table of contents.  If linking a library
9156       # or program results in "error TOC overflow" add -mminimal-toc to
9157       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9158       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9159
9160       archive_cmds=''
9161       hardcode_direct=yes
9162       hardcode_libdir_separator=':'
9163       link_all_deplibs=yes
9164
9165       if test "$GCC" = yes; then
9166         case $host_os in aix4.[012]|aix4.[012].*)
9167         # We only want to do this on AIX 4.2 and lower, the check
9168         # below for broken collect2 doesn't work under 4.3+
9169           collect2name=`${CC} -print-prog-name=collect2`
9170           if test -f "$collect2name" && \
9171            strings "$collect2name" | grep resolve_lib_name >/dev/null
9172           then
9173           # We have reworked collect2
9174           hardcode_direct=yes
9175           else
9176           # We have old collect2
9177           hardcode_direct=unsupported
9178           # It fails to find uninstalled libraries when the uninstalled
9179           # path is not listed in the libpath.  Setting hardcode_minus_L
9180           # to unsupported forces relinking
9181           hardcode_minus_L=yes
9182           hardcode_libdir_flag_spec='-L$libdir'
9183           hardcode_libdir_separator=
9184           fi
9185         esac
9186         shared_flag='-shared'
9187         if test "$aix_use_runtimelinking" = yes; then
9188           shared_flag="$shared_flag "'${wl}-G'
9189         fi
9190       else
9191         # not using gcc
9192         if test "$host_cpu" = ia64; then
9193         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9194         # chokes on -Wl,-G. The following line is correct:
9195           shared_flag='-G'
9196         else
9197         if test "$aix_use_runtimelinking" = yes; then
9198             shared_flag='${wl}-G'
9199           else
9200             shared_flag='${wl}-bM:SRE'
9201         fi
9202         fi
9203       fi
9204
9205       # It seems that -bexpall does not export symbols beginning with
9206       # underscore (_), so it is better to generate a list of symbols to export.
9207       always_export_symbols=yes
9208       if test "$aix_use_runtimelinking" = yes; then
9209         # Warning - without using the other runtime loading flags (-brtl),
9210         # -berok will link without error, but may produce a broken library.
9211         allow_undefined_flag='-berok'
9212        # Determine the default libpath from the value encoded in an empty executable.
9213        cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h.  */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h.  */
9219
9220 int
9221 main ()
9222 {
9223
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230   (eval $ac_link) 2>conftest.er1
9231   ac_status=$?
9232   grep -v '^ *+' conftest.er1 >conftest.err
9233   rm -f conftest.er1
9234   cat conftest.err >&5
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } &&
9237          { ac_try='test -z "$ac_c_werror_flag"
9238                          || test ! -s conftest.err'
9239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240   (eval $ac_try) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; } &&
9244          { ac_try='test -s conftest$ac_exeext'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; }; then
9250
9251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9252 }'`
9253 # Check for a 64-bit object if we didn't find anything.
9254 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; }
9255 }'`; fi
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 fi
9261 rm -f conftest.err conftest.$ac_objext \
9262       conftest$ac_exeext conftest.$ac_ext
9263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9264
9265        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9266         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"
9267        else
9268         if test "$host_cpu" = ia64; then
9269           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9270           allow_undefined_flag="-z nodefs"
9271           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"
9272         else
9273          # Determine the default libpath from the value encoded in an empty executable.
9274          cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h.  */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h.  */
9280
9281 int
9282 main ()
9283 {
9284
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"
9299                          || test ! -s conftest.err'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311
9312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9313 }'`
9314 # Check for a 64-bit object if we didn't find anything.
9315 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; }
9316 }'`; fi
9317 else
9318   echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9320
9321 fi
9322 rm -f conftest.err conftest.$ac_objext \
9323       conftest$ac_exeext conftest.$ac_ext
9324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9325
9326          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9327           # Warning - without using the other run time loading flags,
9328           # -berok will link without error, but may produce a broken library.
9329           no_undefined_flag=' ${wl}-bernotok'
9330           allow_undefined_flag=' ${wl}-berok'
9331           # -bexpall does not export symbols beginning with underscore (_)
9332           always_export_symbols=yes
9333           # Exported symbols can be pulled into shared objects from archives
9334           whole_archive_flag_spec=' '
9335           archive_cmds_need_lc=yes
9336           # This is similar to how AIX traditionally builds it's shared libraries.
9337           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'
9338         fi
9339       fi
9340       ;;
9341
9342     amigaos*)
9343       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)'
9344       hardcode_libdir_flag_spec='-L$libdir'
9345       hardcode_minus_L=yes
9346       # see comment about different semantics on the GNU ld section
9347       ld_shlibs=no
9348       ;;
9349
9350     bsdi[45]*)
9351       export_dynamic_flag_spec=-rdynamic
9352       ;;
9353
9354     cygwin* | mingw* | pw32*)
9355       # When not using gcc, we currently assume that we are using
9356       # Microsoft Visual C++.
9357       # hardcode_libdir_flag_spec is actually meaningless, as there is
9358       # no search path for DLLs.
9359       hardcode_libdir_flag_spec=' '
9360       allow_undefined_flag=unsupported
9361       # Tell ltmain to make .lib files, not .a files.
9362       libext=lib
9363       # Tell ltmain to make .dll files, not .so files.
9364       shrext_cmds=".dll"
9365       # FIXME: Setting linknames here is a bad hack.
9366       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9367       # The linker will automatically build a .lib file if we build a DLL.
9368       old_archive_From_new_cmds='true'
9369       # FIXME: Should let the user specify the lib program.
9370       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9371       fix_srcfile_path='`cygpath -w "$srcfile"`'
9372       enable_shared_with_static_runtimes=yes
9373       ;;
9374
9375     darwin* | rhapsody*)
9376       case "$host_os" in
9377         rhapsody* | darwin1.[012])
9378          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9379          ;;
9380        *) # Darwin 1.3 on
9381          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9382            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9383          else
9384            case ${MACOSX_DEPLOYMENT_TARGET} in
9385              10.[012])
9386                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9387                ;;
9388              10.*)
9389                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9390                ;;
9391            esac
9392          fi
9393          ;;
9394       esac
9395       archive_cmds_need_lc=no
9396       hardcode_direct=no
9397       hardcode_automatic=yes
9398       hardcode_shlibpath_var=unsupported
9399       whole_archive_flag_spec=''
9400       link_all_deplibs=yes
9401     if test "$GCC" = yes ; then
9402         output_verbose_link_cmd='echo'
9403         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9404       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9405       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9406       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}'
9407       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}'
9408     else
9409       case $cc_basename in
9410         xlc*)
9411          output_verbose_link_cmd='echo'
9412          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9413          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9414           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9415          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}'
9416           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}'
9417           ;;
9418        *)
9419          ld_shlibs=no
9420           ;;
9421       esac
9422     fi
9423       ;;
9424
9425     dgux*)
9426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427       hardcode_libdir_flag_spec='-L$libdir'
9428       hardcode_shlibpath_var=no
9429       ;;
9430
9431     freebsd1*)
9432       ld_shlibs=no
9433       ;;
9434
9435     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9436     # support.  Future versions do this automatically, but an explicit c++rt0.o
9437     # does not break anything, and helps significantly (at the cost of a little
9438     # extra space).
9439     freebsd2.2*)
9440       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9441       hardcode_libdir_flag_spec='-R$libdir'
9442       hardcode_direct=yes
9443       hardcode_shlibpath_var=no
9444       ;;
9445
9446     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9447     freebsd2*)
9448       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9449       hardcode_direct=yes
9450       hardcode_minus_L=yes
9451       hardcode_shlibpath_var=no
9452       ;;
9453
9454     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9455     freebsd* | kfreebsd*-gnu | dragonfly*)
9456       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9457       hardcode_libdir_flag_spec='-R$libdir'
9458       hardcode_direct=yes
9459       hardcode_shlibpath_var=no
9460       ;;
9461
9462     hpux9*)
9463       if test "$GCC" = yes; then
9464         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'
9465       else
9466         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'
9467       fi
9468       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469       hardcode_libdir_separator=:
9470       hardcode_direct=yes
9471
9472       # hardcode_minus_L: Not really in the search PATH,
9473       # but as the default location of the library.
9474       hardcode_minus_L=yes
9475       export_dynamic_flag_spec='${wl}-E'
9476       ;;
9477
9478     hpux10* | hpux11*)
9479       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9480         case "$host_cpu" in
9481         hppa*64*|ia64*)
9482           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9483           ;;
9484         *)
9485           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9486           ;;
9487         esac
9488       else
9489         case "$host_cpu" in
9490         hppa*64*|ia64*)
9491           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9492           ;;
9493         *)
9494           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9495           ;;
9496         esac
9497       fi
9498       if test "$with_gnu_ld" = no; then
9499         case "$host_cpu" in
9500         hppa*64*)
9501           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502           hardcode_libdir_flag_spec_ld='+b $libdir'
9503           hardcode_libdir_separator=:
9504           hardcode_direct=no
9505           hardcode_shlibpath_var=no
9506           ;;
9507         ia64*)
9508           hardcode_libdir_flag_spec='-L$libdir'
9509           hardcode_direct=no
9510           hardcode_shlibpath_var=no
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         *)
9517           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518           hardcode_libdir_separator=:
9519           hardcode_direct=yes
9520           export_dynamic_flag_spec='${wl}-E'
9521
9522           # hardcode_minus_L: Not really in the search PATH,
9523           # but as the default location of the library.
9524           hardcode_minus_L=yes
9525           ;;
9526         esac
9527       fi
9528       ;;
9529
9530     irix5* | irix6* | nonstopux*)
9531       if test "$GCC" = yes; then
9532         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'
9533       else
9534         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'
9535         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9536       fi
9537       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538       hardcode_libdir_separator=:
9539       link_all_deplibs=yes
9540       ;;
9541
9542     netbsd*)
9543       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9544         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9545       else
9546         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9547       fi
9548       hardcode_libdir_flag_spec='-R$libdir'
9549       hardcode_direct=yes
9550       hardcode_shlibpath_var=no
9551       ;;
9552
9553     newsos6)
9554       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555       hardcode_direct=yes
9556       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557       hardcode_libdir_separator=:
9558       hardcode_shlibpath_var=no
9559       ;;
9560
9561     openbsd*)
9562       hardcode_direct=yes
9563       hardcode_shlibpath_var=no
9564       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9565         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9567         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568         export_dynamic_flag_spec='${wl}-E'
9569       else
9570        case $host_os in
9571          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9572            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573            hardcode_libdir_flag_spec='-R$libdir'
9574            ;;
9575          *)
9576            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9578            ;;
9579        esac
9580       fi
9581       ;;
9582
9583     os2*)
9584       hardcode_libdir_flag_spec='-L$libdir'
9585       hardcode_minus_L=yes
9586       allow_undefined_flag=unsupported
9587       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'
9588       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9589       ;;
9590
9591     osf3*)
9592       if test "$GCC" = yes; then
9593         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9594         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'
9595       else
9596         allow_undefined_flag=' -expect_unresolved \*'
9597         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'
9598       fi
9599       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9600       hardcode_libdir_separator=:
9601       ;;
9602
9603     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9604       if test "$GCC" = yes; then
9605         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9606         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'
9607         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608       else
9609         allow_undefined_flag=' -expect_unresolved \*'
9610         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'
9611         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9612         $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'
9613
9614         # Both c and cxx compiler support -rpath directly
9615         hardcode_libdir_flag_spec='-rpath $libdir'
9616       fi
9617       hardcode_libdir_separator=:
9618       ;;
9619
9620     sco3.2v5*)
9621       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622       hardcode_shlibpath_var=no
9623       export_dynamic_flag_spec='${wl}-Bexport'
9624       runpath_var=LD_RUN_PATH
9625       hardcode_runpath_var=yes
9626       ;;
9627
9628     solaris*)
9629       no_undefined_flag=' -z text'
9630       if test "$GCC" = yes; then
9631         wlarc='${wl}'
9632         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9634           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9635       else
9636         wlarc=''
9637         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9639         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9640       fi
9641       hardcode_libdir_flag_spec='-R$libdir'
9642       hardcode_shlibpath_var=no
9643       case $host_os in
9644       solaris2.[0-5] | solaris2.[0-5].*) ;;
9645       *)
9646         # The compiler driver will combine linker options so we
9647         # cannot just pass the convience library names through
9648         # without $wl, iff we do not link with $LD.
9649         # Luckily, gcc supports the same syntax we need for Sun Studio.
9650         # Supported since Solaris 2.6 (maybe 2.5.1?)
9651         case $wlarc in
9652         '')
9653           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9654         *)
9655           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' ;;
9656         esac ;;
9657       esac
9658       link_all_deplibs=yes
9659       ;;
9660
9661     sunos4*)
9662       if test "x$host_vendor" = xsequent; then
9663         # Use $CC to link under sequent, because it throws in some extra .o
9664         # files that make .init and .fini sections work.
9665         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9666       else
9667         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9668       fi
9669       hardcode_libdir_flag_spec='-L$libdir'
9670       hardcode_direct=yes
9671       hardcode_minus_L=yes
9672       hardcode_shlibpath_var=no
9673       ;;
9674
9675     sysv4)
9676       case $host_vendor in
9677         sni)
9678           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679           hardcode_direct=yes # is this really true???
9680         ;;
9681         siemens)
9682           ## LD is ld it makes a PLAMLIB
9683           ## CC just makes a GrossModule.
9684           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9685           reload_cmds='$CC -r -o $output$reload_objs'
9686           hardcode_direct=no
9687         ;;
9688         motorola)
9689           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9691         ;;
9692       esac
9693       runpath_var='LD_RUN_PATH'
9694       hardcode_shlibpath_var=no
9695       ;;
9696
9697     sysv4.3*)
9698       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699       hardcode_shlibpath_var=no
9700       export_dynamic_flag_spec='-Bexport'
9701       ;;
9702
9703     sysv4*MP*)
9704       if test -d /usr/nec; then
9705         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706         hardcode_shlibpath_var=no
9707         runpath_var=LD_RUN_PATH
9708         hardcode_runpath_var=yes
9709         ld_shlibs=yes
9710       fi
9711       ;;
9712
9713     sysv4.2uw2*)
9714       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9715       hardcode_direct=yes
9716       hardcode_minus_L=no
9717       hardcode_shlibpath_var=no
9718       hardcode_runpath_var=yes
9719       runpath_var=LD_RUN_PATH
9720       ;;
9721
9722    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9723       no_undefined_flag='${wl}-z ${wl}text'
9724       if test "$GCC" = yes; then
9725         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9726       else
9727         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9728       fi
9729       runpath_var='LD_RUN_PATH'
9730       hardcode_shlibpath_var=no
9731       ;;
9732
9733     sysv5*)
9734       no_undefined_flag=' -z text'
9735       # $CC -shared without GNU ld will not create a library from C++
9736       # object files and a static libstdc++, better avoid it by now
9737       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9739                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9740       hardcode_libdir_flag_spec=
9741       hardcode_shlibpath_var=no
9742       runpath_var='LD_RUN_PATH'
9743       ;;
9744
9745     uts4*)
9746       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747       hardcode_libdir_flag_spec='-L$libdir'
9748       hardcode_shlibpath_var=no
9749       ;;
9750
9751     *)
9752       ld_shlibs=no
9753       ;;
9754     esac
9755   fi
9756
9757 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9758 echo "${ECHO_T}$ld_shlibs" >&6
9759 test "$ld_shlibs" = no && can_build_shared=no
9760
9761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9762 if test "$GCC" = yes; then
9763   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9764 fi
9765
9766 #
9767 # Do we need to explicitly link libc?
9768 #
9769 case "x$archive_cmds_need_lc" in
9770 x|xyes)
9771   # Assume -lc should be added
9772   archive_cmds_need_lc=yes
9773
9774   if test "$enable_shared" = yes && test "$GCC" = yes; then
9775     case $archive_cmds in
9776     *'~'*)
9777       # FIXME: we may have to deal with multi-command sequences.
9778       ;;
9779     '$CC '*)
9780       # Test whether the compiler implicitly links with -lc since on some
9781       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9782       # to ld, don't add -lc before -lgcc.
9783       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9784 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9785       $rm conftest*
9786       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9787
9788       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789   (eval $ac_compile) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } 2>conftest.err; then
9793         soname=conftest
9794         lib=conftest
9795         libobjs=conftest.$ac_objext
9796         deplibs=
9797         wl=$lt_prog_compiler_wl
9798         compiler_flags=-v
9799         linker_flags=-v
9800         verstring=
9801         output_objdir=.
9802         libname=conftest
9803         lt_save_allow_undefined_flag=$allow_undefined_flag
9804         allow_undefined_flag=
9805         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9806   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }
9810         then
9811           archive_cmds_need_lc=no
9812         else
9813           archive_cmds_need_lc=yes
9814         fi
9815         allow_undefined_flag=$lt_save_allow_undefined_flag
9816       else
9817         cat conftest.err 1>&5
9818       fi
9819       $rm conftest*
9820       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9821 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9822       ;;
9823     esac
9824   fi
9825   ;;
9826 esac
9827
9828 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9829 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9830 library_names_spec=
9831 libname_spec='lib$name'
9832 soname_spec=
9833 shrext_cmds=".so"
9834 postinstall_cmds=
9835 postuninstall_cmds=
9836 finish_cmds=
9837 finish_eval=
9838 shlibpath_var=
9839 shlibpath_overrides_runpath=unknown
9840 version_type=none
9841 dynamic_linker="$host_os ld.so"
9842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9843 if test "$GCC" = yes; then
9844   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9845   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9846     # if the path contains ";" then we assume it to be the separator
9847     # otherwise default to the standard path separator (i.e. ":") - it is
9848     # assumed that no part of a normal pathname contains ";" but that should
9849     # okay in the real world where ";" in dirpaths is itself problematic.
9850     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9851   else
9852     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9853   fi
9854 else
9855   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9856 fi
9857 need_lib_prefix=unknown
9858 hardcode_into_libs=no
9859
9860 # when you set need_version to no, make sure it does not cause -set_version
9861 # flags to be left without arguments
9862 need_version=unknown
9863
9864 case $host_os in
9865 aix3*)
9866   version_type=linux
9867   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9868   shlibpath_var=LIBPATH
9869
9870   # AIX 3 has no versioning support, so we append a major version to the name.
9871   soname_spec='${libname}${release}${shared_ext}$major'
9872   ;;
9873
9874 aix4* | aix5*)
9875   version_type=linux
9876   need_lib_prefix=no
9877   need_version=no
9878   hardcode_into_libs=yes
9879   if test "$host_cpu" = ia64; then
9880     # AIX 5 supports IA64
9881     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9882     shlibpath_var=LD_LIBRARY_PATH
9883   else
9884     # With GCC up to 2.95.x, collect2 would create an import file
9885     # for dependence libraries.  The import file would start with
9886     # the line `#! .'.  This would cause the generated library to
9887     # depend on `.', always an invalid library.  This was fixed in
9888     # development snapshots of GCC prior to 3.0.
9889     case $host_os in
9890       aix4 | aix4.[01] | aix4.[01].*)
9891       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9892            echo ' yes '
9893            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9894         :
9895       else
9896         can_build_shared=no
9897       fi
9898       ;;
9899     esac
9900     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9901     # soname into executable. Probably we can add versioning support to
9902     # collect2, so additional links can be useful in future.
9903     if test "$aix_use_runtimelinking" = yes; then
9904       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9905       # instead of lib<name>.a to let people know that these are not
9906       # typical AIX shared libraries.
9907       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908     else
9909       # We preserve .a as extension for shared libraries through AIX4.2
9910       # and later when we are not doing run time linking.
9911       library_names_spec='${libname}${release}.a $libname.a'
9912       soname_spec='${libname}${release}${shared_ext}$major'
9913     fi
9914     shlibpath_var=LIBPATH
9915   fi
9916   ;;
9917
9918 amigaos*)
9919   library_names_spec='$libname.ixlibrary $libname.a'
9920   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9921   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'
9922   ;;
9923
9924 beos*)
9925   library_names_spec='${libname}${shared_ext}'
9926   dynamic_linker="$host_os ld.so"
9927   shlibpath_var=LIBRARY_PATH
9928   ;;
9929
9930 bsdi[45]*)
9931   version_type=linux
9932   need_version=no
9933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934   soname_spec='${libname}${release}${shared_ext}$major'
9935   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9936   shlibpath_var=LD_LIBRARY_PATH
9937   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9938   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9939   # the default ld.so.conf also contains /usr/contrib/lib and
9940   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9941   # libtool to hard-code these into programs
9942   ;;
9943
9944 cygwin* | mingw* | pw32*)
9945   version_type=windows
9946   shrext_cmds=".dll"
9947   need_version=no
9948   need_lib_prefix=no
9949
9950   case $GCC,$host_os in
9951   yes,cygwin* | yes,mingw* | yes,pw32*)
9952     library_names_spec='$libname.dll.a'
9953     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9954     postinstall_cmds='base_file=`basename \${file}`~
9955       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9956       dldir=$destdir/`dirname \$dlpath`~
9957       test -d \$dldir || mkdir -p \$dldir~
9958       $install_prog $dir/$dlname \$dldir/$dlname'
9959     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9960       dlpath=$dir/\$dldll~
9961        $rm \$dlpath'
9962     shlibpath_overrides_runpath=yes
9963
9964     case $host_os in
9965     cygwin*)
9966       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9967       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9968       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9969       ;;
9970     mingw*)
9971       # MinGW DLLs use traditional 'lib' prefix
9972       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9974       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9975         # It is most probably a Windows format PATH printed by
9976         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9977         # path with ; separators, and with drive letters. We can handle the
9978         # drive letters (cygwin fileutils understands them), so leave them,
9979         # especially as we might pass files found there to a mingw objdump,
9980         # which wouldn't understand a cygwinified path. Ahh.
9981         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9982       else
9983         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9984       fi
9985       ;;
9986     pw32*)
9987       # pw32 DLLs use 'pw' prefix rather than 'lib'
9988       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9989       ;;
9990     esac
9991     ;;
9992
9993   *)
9994     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9995     ;;
9996   esac
9997   dynamic_linker='Win32 ld.exe'
9998   # FIXME: first we should search . and the directory the executable is in
9999   shlibpath_var=PATH
10000   ;;
10001
10002 darwin* | rhapsody*)
10003   dynamic_linker="$host_os dyld"
10004   version_type=darwin
10005   need_lib_prefix=no
10006   need_version=no
10007   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10008   soname_spec='${libname}${release}${major}$shared_ext'
10009   shlibpath_overrides_runpath=yes
10010   shlibpath_var=DYLD_LIBRARY_PATH
10011   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10012   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10013   if test "$GCC" = yes; then
10014     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"`
10015   else
10016     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10017   fi
10018   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10019   ;;
10020
10021 dgux*)
10022   version_type=linux
10023   need_lib_prefix=no
10024   need_version=no
10025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026   soname_spec='${libname}${release}${shared_ext}$major'
10027   shlibpath_var=LD_LIBRARY_PATH
10028   ;;
10029
10030 freebsd1*)
10031   dynamic_linker=no
10032   ;;
10033
10034 kfreebsd*-gnu)
10035   version_type=linux
10036   need_lib_prefix=no
10037   need_version=no
10038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10039   soname_spec='${libname}${release}${shared_ext}$major'
10040   shlibpath_var=LD_LIBRARY_PATH
10041   shlibpath_overrides_runpath=no
10042   hardcode_into_libs=yes
10043   dynamic_linker='GNU ld.so'
10044   ;;
10045
10046 freebsd* | dragonfly*)
10047   # DragonFly does not have aout.  When/if they implement a new
10048   # versioning mechanism, adjust this.
10049   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10050   version_type=freebsd-$objformat
10051   case $version_type in
10052     freebsd-elf*)
10053       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10054       need_version=no
10055       need_lib_prefix=no
10056       ;;
10057     freebsd-*)
10058       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10059       need_version=yes
10060       ;;
10061   esac
10062   shlibpath_var=LD_LIBRARY_PATH
10063   case $host_os in
10064   freebsd2*)
10065     shlibpath_overrides_runpath=yes
10066     ;;
10067   freebsd3.[01]* | freebsdelf3.[01]*)
10068     shlibpath_overrides_runpath=yes
10069     hardcode_into_libs=yes
10070     ;;
10071   *) # from 3.2 on
10072     shlibpath_overrides_runpath=no
10073     hardcode_into_libs=yes
10074     ;;
10075   esac
10076   ;;
10077
10078 gnu*)
10079   version_type=linux
10080   need_lib_prefix=no
10081   need_version=no
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   shlibpath_var=LD_LIBRARY_PATH
10085   hardcode_into_libs=yes
10086   ;;
10087
10088 hpux9* | hpux10* | hpux11*)
10089   # Give a soname corresponding to the major version so that dld.sl refuses to
10090   # link against other versions.
10091   version_type=sunos
10092   need_lib_prefix=no
10093   need_version=no
10094   case "$host_cpu" in
10095   ia64*)
10096     shrext_cmds='.so'
10097     hardcode_into_libs=yes
10098     dynamic_linker="$host_os dld.so"
10099     shlibpath_var=LD_LIBRARY_PATH
10100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102     soname_spec='${libname}${release}${shared_ext}$major'
10103     if test "X$HPUX_IA64_MODE" = X32; then
10104       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10105     else
10106       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10107     fi
10108     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109     ;;
10110    hppa*64*)
10111      shrext_cmds='.sl'
10112      hardcode_into_libs=yes
10113      dynamic_linker="$host_os dld.sl"
10114      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10115      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120      ;;
10121    *)
10122     shrext_cmds='.sl'
10123     dynamic_linker="$host_os dld.sl"
10124     shlibpath_var=SHLIB_PATH
10125     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127     soname_spec='${libname}${release}${shared_ext}$major'
10128     ;;
10129   esac
10130   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10131   postinstall_cmds='chmod 555 $lib'
10132   ;;
10133
10134 irix5* | irix6* | nonstopux*)
10135   case $host_os in
10136     nonstopux*) version_type=nonstopux ;;
10137     *)
10138         if test "$lt_cv_prog_gnu_ld" = yes; then
10139                 version_type=linux
10140         else
10141                 version_type=irix
10142         fi ;;
10143   esac
10144   need_lib_prefix=no
10145   need_version=no
10146   soname_spec='${libname}${release}${shared_ext}$major'
10147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10148   case $host_os in
10149   irix5* | nonstopux*)
10150     libsuff= shlibsuff=
10151     ;;
10152   *)
10153     case $LD in # libtool.m4 will add one of these switches to LD
10154     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10155       libsuff= shlibsuff= libmagic=32-bit;;
10156     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10157       libsuff=32 shlibsuff=N32 libmagic=N32;;
10158     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10159       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10160     *) libsuff= shlibsuff= libmagic=never-match;;
10161     esac
10162     ;;
10163   esac
10164   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10165   shlibpath_overrides_runpath=no
10166   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10167   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10168   hardcode_into_libs=yes
10169   ;;
10170
10171 # No shared lib support for Linux oldld, aout, or coff.
10172 linux*oldld* | linux*aout* | linux*coff*)
10173   dynamic_linker=no
10174   ;;
10175
10176 # This must be Linux ELF.
10177 linux*)
10178   version_type=linux
10179   need_lib_prefix=no
10180   need_version=no
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182   soname_spec='${libname}${release}${shared_ext}$major'
10183   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10184   shlibpath_var=LD_LIBRARY_PATH
10185   shlibpath_overrides_runpath=no
10186   # This implies no fast_install, which is unacceptable.
10187   # Some rework will be needed to allow for fast_install
10188   # before this can be enabled.
10189   hardcode_into_libs=yes
10190
10191   # Append ld.so.conf contents to the search path
10192   if test -f /etc/ld.so.conf; then
10193     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' ' '`
10194     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10195   fi
10196
10197   # We used to test for /lib/ld.so.1 and disable shared libraries on
10198   # powerpc, because MkLinux only supported shared libraries with the
10199   # GNU dynamic linker.  Since this was broken with cross compilers,
10200   # most powerpc-linux boxes support dynamic linking these days and
10201   # people can always --disable-shared, the test was removed, and we
10202   # assume the GNU/Linux dynamic linker is in use.
10203   dynamic_linker='GNU/Linux ld.so'
10204   ;;
10205
10206 knetbsd*-gnu)
10207   version_type=linux
10208   need_lib_prefix=no
10209   need_version=no
10210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211   soname_spec='${libname}${release}${shared_ext}$major'
10212   shlibpath_var=LD_LIBRARY_PATH
10213   shlibpath_overrides_runpath=no
10214   hardcode_into_libs=yes
10215   dynamic_linker='GNU ld.so'
10216   ;;
10217
10218 netbsd*)
10219   version_type=sunos
10220   need_lib_prefix=no
10221   need_version=no
10222   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10225     dynamic_linker='NetBSD (a.out) ld.so'
10226   else
10227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10228     soname_spec='${libname}${release}${shared_ext}$major'
10229     dynamic_linker='NetBSD ld.elf_so'
10230   fi
10231   shlibpath_var=LD_LIBRARY_PATH
10232   shlibpath_overrides_runpath=yes
10233   hardcode_into_libs=yes
10234   ;;
10235
10236 newsos6)
10237   version_type=linux
10238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=yes
10241   ;;
10242
10243 nto-qnx*)
10244   version_type=linux
10245   need_lib_prefix=no
10246   need_version=no
10247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248   soname_spec='${libname}${release}${shared_ext}$major'
10249   shlibpath_var=LD_LIBRARY_PATH
10250   shlibpath_overrides_runpath=yes
10251   ;;
10252
10253 openbsd*)
10254   version_type=sunos
10255   need_lib_prefix=no
10256   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10257   case $host_os in
10258     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10259     *)                         need_version=no  ;;
10260   esac
10261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10262   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10263   shlibpath_var=LD_LIBRARY_PATH
10264   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10265     case $host_os in
10266       openbsd2.[89] | openbsd2.[89].*)
10267         shlibpath_overrides_runpath=no
10268         ;;
10269       *)
10270         shlibpath_overrides_runpath=yes
10271         ;;
10272       esac
10273   else
10274     shlibpath_overrides_runpath=yes
10275   fi
10276   ;;
10277
10278 os2*)
10279   libname_spec='$name'
10280   shrext_cmds=".dll"
10281   need_lib_prefix=no
10282   library_names_spec='$libname${shared_ext} $libname.a'
10283   dynamic_linker='OS/2 ld.exe'
10284   shlibpath_var=LIBPATH
10285   ;;
10286
10287 osf3* | osf4* | osf5*)
10288   version_type=osf
10289   need_lib_prefix=no
10290   need_version=no
10291   soname_spec='${libname}${release}${shared_ext}$major'
10292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293   shlibpath_var=LD_LIBRARY_PATH
10294   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10295   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10296   ;;
10297
10298 sco3.2v5*)
10299   version_type=osf
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   ;;
10304
10305 solaris*)
10306   version_type=linux
10307   need_lib_prefix=no
10308   need_version=no
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310   soname_spec='${libname}${release}${shared_ext}$major'
10311   shlibpath_var=LD_LIBRARY_PATH
10312   shlibpath_overrides_runpath=yes
10313   hardcode_into_libs=yes
10314   # ldd complains unless libraries are executable
10315   postinstall_cmds='chmod +x $lib'
10316   ;;
10317
10318 sunos4*)
10319   version_type=sunos
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10321   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   shlibpath_overrides_runpath=yes
10324   if test "$with_gnu_ld" = yes; then
10325     need_lib_prefix=no
10326   fi
10327   need_version=yes
10328   ;;
10329
10330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10331   version_type=linux
10332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333   soname_spec='${libname}${release}${shared_ext}$major'
10334   shlibpath_var=LD_LIBRARY_PATH
10335   case $host_vendor in
10336     sni)
10337       shlibpath_overrides_runpath=no
10338       need_lib_prefix=no
10339       export_dynamic_flag_spec='${wl}-Blargedynsym'
10340       runpath_var=LD_RUN_PATH
10341       ;;
10342     siemens)
10343       need_lib_prefix=no
10344       ;;
10345     motorola)
10346       need_lib_prefix=no
10347       need_version=no
10348       shlibpath_overrides_runpath=no
10349       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10350       ;;
10351   esac
10352   ;;
10353
10354 sysv4*MP*)
10355   if test -d /usr/nec ;then
10356     version_type=linux
10357     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10358     soname_spec='$libname${shared_ext}.$major'
10359     shlibpath_var=LD_LIBRARY_PATH
10360   fi
10361   ;;
10362
10363 uts4*)
10364   version_type=linux
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366   soname_spec='${libname}${release}${shared_ext}$major'
10367   shlibpath_var=LD_LIBRARY_PATH
10368   ;;
10369
10370 *)
10371   dynamic_linker=no
10372   ;;
10373 esac
10374 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10375 echo "${ECHO_T}$dynamic_linker" >&6
10376 test "$dynamic_linker" = no && can_build_shared=no
10377
10378 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10379 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10380 hardcode_action=
10381 if test -n "$hardcode_libdir_flag_spec" || \
10382    test -n "$runpath_var" || \
10383    test "X$hardcode_automatic" = "Xyes" ; then
10384
10385   # We can hardcode non-existant directories.
10386   if test "$hardcode_direct" != no &&
10387      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10388      # have to relink, otherwise we might link with an installed library
10389      # when we should be linking with a yet-to-be-installed one
10390      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10391      test "$hardcode_minus_L" != no; then
10392     # Linking always hardcodes the temporary library directory.
10393     hardcode_action=relink
10394   else
10395     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10396     hardcode_action=immediate
10397   fi
10398 else
10399   # We cannot hardcode anything, or else we can only hardcode existing
10400   # directories.
10401   hardcode_action=unsupported
10402 fi
10403 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10404 echo "${ECHO_T}$hardcode_action" >&6
10405
10406 if test "$hardcode_action" = relink; then
10407   # Fast installation is not supported
10408   enable_fast_install=no
10409 elif test "$shlibpath_overrides_runpath" = yes ||
10410      test "$enable_shared" = no; then
10411   # Fast installation is not necessary
10412   enable_fast_install=needless
10413 fi
10414
10415 striplib=
10416 old_striplib=
10417 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10418 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10419 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10420   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10421   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10422   echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6
10424 else
10425 # FIXME - insert some real tests, host_os isn't really good enough
10426   case $host_os in
10427    darwin*)
10428        if test -n "$STRIP" ; then
10429          striplib="$STRIP -x"
10430          echo "$as_me:$LINENO: result: yes" >&5
10431 echo "${ECHO_T}yes" >&6
10432        else
10433   echo "$as_me:$LINENO: result: no" >&5
10434 echo "${ECHO_T}no" >&6
10435 fi
10436        ;;
10437    *)
10438   echo "$as_me:$LINENO: result: no" >&5
10439 echo "${ECHO_T}no" >&6
10440     ;;
10441   esac
10442 fi
10443
10444 if test "x$enable_dlopen" != xyes; then
10445   enable_dlopen=unknown
10446   enable_dlopen_self=unknown
10447   enable_dlopen_self_static=unknown
10448 else
10449   lt_cv_dlopen=no
10450   lt_cv_dlopen_libs=
10451
10452   case $host_os in
10453   beos*)
10454     lt_cv_dlopen="load_add_on"
10455     lt_cv_dlopen_libs=
10456     lt_cv_dlopen_self=yes
10457     ;;
10458
10459   mingw* | pw32*)
10460     lt_cv_dlopen="LoadLibrary"
10461     lt_cv_dlopen_libs=
10462    ;;
10463
10464   cygwin*)
10465     lt_cv_dlopen="dlopen"
10466     lt_cv_dlopen_libs=
10467    ;;
10468
10469   darwin*)
10470   # if libdl is installed we need to link against it
10471     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10472 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   ac_check_lib_save_LIBS=$LIBS
10477 LIBS="-ldl  $LIBS"
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484
10485 /* Override any gcc2 internal prototype to avoid an error.  */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 /* We use char because int might match the return type of a gcc2
10490    builtin and then its argument prototype would still apply.  */
10491 char dlopen ();
10492 int
10493 main ()
10494 {
10495 dlopen ();
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502   (eval $ac_link) 2>conftest.er1
10503   ac_status=$?
10504   grep -v '^ *+' conftest.er1 >conftest.err
10505   rm -f conftest.er1
10506   cat conftest.err >&5
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -z "$ac_c_werror_flag"
10510                          || test ! -s conftest.err'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; } &&
10516          { ac_try='test -s conftest$ac_exeext'
10517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518   (eval $ac_try) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; }; then
10522   ac_cv_lib_dl_dlopen=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_cv_lib_dl_dlopen=no
10528 fi
10529 rm -f conftest.err conftest.$ac_objext \
10530       conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10532 fi
10533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10535 if test $ac_cv_lib_dl_dlopen = yes; then
10536   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10537 else
10538
10539     lt_cv_dlopen="dyld"
10540     lt_cv_dlopen_libs=
10541     lt_cv_dlopen_self=yes
10542
10543 fi
10544
10545    ;;
10546
10547   *)
10548     echo "$as_me:$LINENO: checking for shl_load" >&5
10549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10550 if test "${ac_cv_func_shl_load+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10561 #define shl_load innocuous_shl_load
10562
10563 /* System header to define __stub macros and hopefully few prototypes,
10564     which can conflict with char shl_load (); below.
10565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10566     <limits.h> exists even on freestanding compilers.  */
10567
10568 #ifdef __STDC__
10569 # include <limits.h>
10570 #else
10571 # include <assert.h>
10572 #endif
10573
10574 #undef shl_load
10575
10576 /* Override any gcc2 internal prototype to avoid an error.  */
10577 #ifdef __cplusplus
10578 extern "C"
10579 {
10580 #endif
10581 /* We use char because int might match the return type of a gcc2
10582    builtin and then its argument prototype would still apply.  */
10583 char shl_load ();
10584 /* The GNU C library defines this for functions which it implements
10585     to always fail with ENOSYS.  Some functions are actually named
10586     something starting with __ and the normal name is an alias.  */
10587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10588 choke me
10589 #else
10590 char (*f) () = shl_load;
10591 #endif
10592 #ifdef __cplusplus
10593 }
10594 #endif
10595
10596 int
10597 main ()
10598 {
10599 return f != shl_load;
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606   (eval $ac_link) 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } &&
10613          { ac_try='test -z "$ac_c_werror_flag"
10614                          || test ! -s conftest.err'
10615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616   (eval $ac_try) 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; } &&
10620          { ac_try='test -s conftest$ac_exeext'
10621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622   (eval $ac_try) 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; }; then
10626   ac_cv_func_shl_load=yes
10627 else
10628   echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 ac_cv_func_shl_load=no
10632 fi
10633 rm -f conftest.err conftest.$ac_objext \
10634       conftest$ac_exeext conftest.$ac_ext
10635 fi
10636 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10638 if test $ac_cv_func_shl_load = yes; then
10639   lt_cv_dlopen="shl_load"
10640 else
10641   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldld  $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654
10655 /* Override any gcc2 internal prototype to avoid an error.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 /* We use char because int might match the return type of a gcc2
10660    builtin and then its argument prototype would still apply.  */
10661 char shl_load ();
10662 int
10663 main ()
10664 {
10665 shl_load ();
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672   (eval $ac_link) 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } &&
10679          { ac_try='test -z "$ac_c_werror_flag"
10680                          || test ! -s conftest.err'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; } &&
10686          { ac_try='test -s conftest$ac_exeext'
10687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688   (eval $ac_try) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; }; then
10692   ac_cv_lib_dld_shl_load=yes
10693 else
10694   echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_cv_lib_dld_shl_load=no
10698 fi
10699 rm -f conftest.err conftest.$ac_objext \
10700       conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10702 fi
10703 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10705 if test $ac_cv_lib_dld_shl_load = yes; then
10706   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10707 else
10708   echo "$as_me:$LINENO: checking for dlopen" >&5
10709 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10710 if test "${ac_cv_func_dlopen+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h.  */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h.  */
10719 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10721 #define dlopen innocuous_dlopen
10722
10723 /* System header to define __stub macros and hopefully few prototypes,
10724     which can conflict with char dlopen (); below.
10725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10726     <limits.h> exists even on freestanding compilers.  */
10727
10728 #ifdef __STDC__
10729 # include <limits.h>
10730 #else
10731 # include <assert.h>
10732 #endif
10733
10734 #undef dlopen
10735
10736 /* Override any gcc2 internal prototype to avoid an error.  */
10737 #ifdef __cplusplus
10738 extern "C"
10739 {
10740 #endif
10741 /* We use char because int might match the return type of a gcc2
10742    builtin and then its argument prototype would still apply.  */
10743 char dlopen ();
10744 /* The GNU C library defines this for functions which it implements
10745     to always fail with ENOSYS.  Some functions are actually named
10746     something starting with __ and the normal name is an alias.  */
10747 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10748 choke me
10749 #else
10750 char (*f) () = dlopen;
10751 #endif
10752 #ifdef __cplusplus
10753 }
10754 #endif
10755
10756 int
10757 main ()
10758 {
10759 return f != dlopen;
10760   ;
10761   return 0;
10762 }
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766   (eval $ac_link) 2>conftest.er1
10767   ac_status=$?
10768   grep -v '^ *+' conftest.er1 >conftest.err
10769   rm -f conftest.er1
10770   cat conftest.err >&5
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); } &&
10773          { ac_try='test -z "$ac_c_werror_flag"
10774                          || test ! -s conftest.err'
10775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776   (eval $ac_try) 2>&5
10777   ac_status=$?
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); }; } &&
10780          { ac_try='test -s conftest$ac_exeext'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786   ac_cv_func_dlopen=yes
10787 else
10788   echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 ac_cv_func_dlopen=no
10792 fi
10793 rm -f conftest.err conftest.$ac_objext \
10794       conftest$ac_exeext conftest.$ac_ext
10795 fi
10796 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10797 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10798 if test $ac_cv_func_dlopen = yes; then
10799   lt_cv_dlopen="dlopen"
10800 else
10801   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10802 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10804   echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806   ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-ldl  $LIBS"
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814
10815 /* Override any gcc2 internal prototype to avoid an error.  */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 /* We use char because int might match the return type of a gcc2
10820    builtin and then its argument prototype would still apply.  */
10821 char dlopen ();
10822 int
10823 main ()
10824 {
10825 dlopen ();
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832   (eval $ac_link) 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } &&
10839          { ac_try='test -z "$ac_c_werror_flag"
10840                          || test ! -s conftest.err'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; } &&
10846          { ac_try='test -s conftest$ac_exeext'
10847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848   (eval $ac_try) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; }; then
10852   ac_cv_lib_dl_dlopen=yes
10853 else
10854   echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 ac_cv_lib_dl_dlopen=no
10858 fi
10859 rm -f conftest.err conftest.$ac_objext \
10860       conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10862 fi
10863 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10865 if test $ac_cv_lib_dl_dlopen = yes; then
10866   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10867 else
10868   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873   ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld  $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881
10882 /* Override any gcc2 internal prototype to avoid an error.  */
10883 #ifdef __cplusplus
10884 extern "C"
10885 #endif
10886 /* We use char because int might match the return type of a gcc2
10887    builtin and then its argument prototype would still apply.  */
10888 char dlopen ();
10889 int
10890 main ()
10891 {
10892 dlopen ();
10893   ;
10894   return 0;
10895 }
10896 _ACEOF
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899   (eval $ac_link) 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -z "$ac_c_werror_flag"
10907                          || test ! -s conftest.err'
10908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909   (eval $ac_try) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; } &&
10913          { ac_try='test -s conftest$ac_exeext'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_cv_lib_svld_dlopen=yes
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_lib_svld_dlopen=no
10925 fi
10926 rm -f conftest.err conftest.$ac_objext \
10927       conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10929 fi
10930 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10931 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10932 if test $ac_cv_lib_svld_dlopen = yes; then
10933   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10934 else
10935   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10936 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10937 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   ac_check_lib_save_LIBS=$LIBS
10941 LIBS="-ldld  $LIBS"
10942 cat >conftest.$ac_ext <<_ACEOF
10943 /* confdefs.h.  */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h.  */
10948
10949 /* Override any gcc2 internal prototype to avoid an error.  */
10950 #ifdef __cplusplus
10951 extern "C"
10952 #endif
10953 /* We use char because int might match the return type of a gcc2
10954    builtin and then its argument prototype would still apply.  */
10955 char dld_link ();
10956 int
10957 main ()
10958 {
10959 dld_link ();
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 rm -f conftest.$ac_objext conftest$ac_exeext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966   (eval $ac_link) 2>conftest.er1
10967   ac_status=$?
10968   grep -v '^ *+' conftest.er1 >conftest.err
10969   rm -f conftest.er1
10970   cat conftest.err >&5
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); } &&
10973          { ac_try='test -z "$ac_c_werror_flag"
10974                          || test ! -s conftest.err'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; } &&
10980          { ac_try='test -s conftest$ac_exeext'
10981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982   (eval $ac_try) 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; }; then
10986   ac_cv_lib_dld_dld_link=yes
10987 else
10988   echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 ac_cv_lib_dld_dld_link=no
10992 fi
10993 rm -f conftest.err conftest.$ac_objext \
10994       conftest$ac_exeext conftest.$ac_ext
10995 LIBS=$ac_check_lib_save_LIBS
10996 fi
10997 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10999 if test $ac_cv_lib_dld_dld_link = yes; then
11000   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11001 fi
11002
11003
11004 fi
11005
11006
11007 fi
11008
11009
11010 fi
11011
11012
11013 fi
11014
11015
11016 fi
11017
11018     ;;
11019   esac
11020
11021   if test "x$lt_cv_dlopen" != xno; then
11022     enable_dlopen=yes
11023   else
11024     enable_dlopen=no
11025   fi
11026
11027   case $lt_cv_dlopen in
11028   dlopen)
11029     save_CPPFLAGS="$CPPFLAGS"
11030     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11031
11032     save_LDFLAGS="$LDFLAGS"
11033     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11034
11035     save_LIBS="$LIBS"
11036     LIBS="$lt_cv_dlopen_libs $LIBS"
11037
11038     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11039 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11040 if test "${lt_cv_dlopen_self+set}" = set; then
11041   echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043           if test "$cross_compiling" = yes; then :
11044   lt_cv_dlopen_self=cross
11045 else
11046   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11047   lt_status=$lt_dlunknown
11048   cat > conftest.$ac_ext <<EOF
11049 #line 11049 "configure"
11050 #include "confdefs.h"
11051
11052 #if HAVE_DLFCN_H
11053 #include <dlfcn.h>
11054 #endif
11055
11056 #include <stdio.h>
11057
11058 #ifdef RTLD_GLOBAL
11059 #  define LT_DLGLOBAL           RTLD_GLOBAL
11060 #else
11061 #  ifdef DL_GLOBAL
11062 #    define LT_DLGLOBAL         DL_GLOBAL
11063 #  else
11064 #    define LT_DLGLOBAL         0
11065 #  endif
11066 #endif
11067
11068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11069    find out it does not work in some platform. */
11070 #ifndef LT_DLLAZY_OR_NOW
11071 #  ifdef RTLD_LAZY
11072 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11073 #  else
11074 #    ifdef DL_LAZY
11075 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11076 #    else
11077 #      ifdef RTLD_NOW
11078 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11079 #      else
11080 #        ifdef DL_NOW
11081 #          define LT_DLLAZY_OR_NOW      DL_NOW
11082 #        else
11083 #          define LT_DLLAZY_OR_NOW      0
11084 #        endif
11085 #      endif
11086 #    endif
11087 #  endif
11088 #endif
11089
11090 #ifdef __cplusplus
11091 extern "C" void exit (int);
11092 #endif
11093
11094 void fnord() { int i=42;}
11095 int main ()
11096 {
11097   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11098   int status = $lt_dlunknown;
11099
11100   if (self)
11101     {
11102       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11103       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11104       /* dlclose (self); */
11105     }
11106
11107     exit (status);
11108 }
11109 EOF
11110   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111   (eval $ac_link) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11115     (./conftest; exit; ) 2>/dev/null
11116     lt_status=$?
11117     case x$lt_status in
11118       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11119       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11120       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11121     esac
11122   else :
11123     # compilation failed
11124     lt_cv_dlopen_self=no
11125   fi
11126 fi
11127 rm -fr conftest*
11128
11129
11130 fi
11131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11132 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11133
11134     if test "x$lt_cv_dlopen_self" = xyes; then
11135       LDFLAGS="$LDFLAGS $link_static_flag"
11136       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11137 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11138 if test "${lt_cv_dlopen_self_static+set}" = set; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141           if test "$cross_compiling" = yes; then :
11142   lt_cv_dlopen_self_static=cross
11143 else
11144   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11145   lt_status=$lt_dlunknown
11146   cat > conftest.$ac_ext <<EOF
11147 #line 11147 "configure"
11148 #include "confdefs.h"
11149
11150 #if HAVE_DLFCN_H
11151 #include <dlfcn.h>
11152 #endif
11153
11154 #include <stdio.h>
11155
11156 #ifdef RTLD_GLOBAL
11157 #  define LT_DLGLOBAL           RTLD_GLOBAL
11158 #else
11159 #  ifdef DL_GLOBAL
11160 #    define LT_DLGLOBAL         DL_GLOBAL
11161 #  else
11162 #    define LT_DLGLOBAL         0
11163 #  endif
11164 #endif
11165
11166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11167    find out it does not work in some platform. */
11168 #ifndef LT_DLLAZY_OR_NOW
11169 #  ifdef RTLD_LAZY
11170 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11171 #  else
11172 #    ifdef DL_LAZY
11173 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11174 #    else
11175 #      ifdef RTLD_NOW
11176 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11177 #      else
11178 #        ifdef DL_NOW
11179 #          define LT_DLLAZY_OR_NOW      DL_NOW
11180 #        else
11181 #          define LT_DLLAZY_OR_NOW      0
11182 #        endif
11183 #      endif
11184 #    endif
11185 #  endif
11186 #endif
11187
11188 #ifdef __cplusplus
11189 extern "C" void exit (int);
11190 #endif
11191
11192 void fnord() { int i=42;}
11193 int main ()
11194 {
11195   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11196   int status = $lt_dlunknown;
11197
11198   if (self)
11199     {
11200       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11201       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11202       /* dlclose (self); */
11203     }
11204
11205     exit (status);
11206 }
11207 EOF
11208   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209   (eval $ac_link) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11213     (./conftest; exit; ) 2>/dev/null
11214     lt_status=$?
11215     case x$lt_status in
11216       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11217       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11218       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11219     esac
11220   else :
11221     # compilation failed
11222     lt_cv_dlopen_self_static=no
11223   fi
11224 fi
11225 rm -fr conftest*
11226
11227
11228 fi
11229 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11230 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11231     fi
11232
11233     CPPFLAGS="$save_CPPFLAGS"
11234     LDFLAGS="$save_LDFLAGS"
11235     LIBS="$save_LIBS"
11236     ;;
11237   esac
11238
11239   case $lt_cv_dlopen_self in
11240   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11241   *) enable_dlopen_self=unknown ;;
11242   esac
11243
11244   case $lt_cv_dlopen_self_static in
11245   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11246   *) enable_dlopen_self_static=unknown ;;
11247   esac
11248 fi
11249
11250
11251 # Report which librarie types wil actually be built
11252 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11253 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11254 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11255 echo "${ECHO_T}$can_build_shared" >&6
11256
11257 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11258 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11259 test "$can_build_shared" = "no" && enable_shared=no
11260
11261 # On AIX, shared libraries and static libraries use the same namespace, and
11262 # are all built from PIC.
11263 case "$host_os" in
11264 aix3*)
11265   test "$enable_shared" = yes && enable_static=no
11266   if test -n "$RANLIB"; then
11267     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11268     postinstall_cmds='$RANLIB $lib'
11269   fi
11270   ;;
11271
11272 aix4* | aix5*)
11273   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11274     test "$enable_shared" = yes && enable_static=no
11275   fi
11276     ;;
11277 esac
11278 echo "$as_me:$LINENO: result: $enable_shared" >&5
11279 echo "${ECHO_T}$enable_shared" >&6
11280
11281 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11282 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11283 # Make sure either enable_shared or enable_static is yes.
11284 test "$enable_shared" = yes || enable_static=yes
11285 echo "$as_me:$LINENO: result: $enable_static" >&5
11286 echo "${ECHO_T}$enable_static" >&6
11287
11288 # The else clause should only fire when bootstrapping the
11289 # libtool distribution, otherwise you forgot to ship ltmain.sh
11290 # with your package, and you will get complaints that there are
11291 # no rules to generate ltmain.sh.
11292 if test -f "$ltmain"; then
11293   # See if we are running on zsh, and set the options which allow our commands through
11294   # without removal of \ escapes.
11295   if test -n "${ZSH_VERSION+set}" ; then
11296     setopt NO_GLOB_SUBST
11297   fi
11298   # Now quote all the things that may contain metacharacters while being
11299   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11300   # variables and quote the copies for generation of the libtool script.
11301   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11302     SED SHELL STRIP \
11303     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11304     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11305     deplibs_check_method reload_flag reload_cmds need_locks \
11306     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11307     lt_cv_sys_global_symbol_to_c_name_address \
11308     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11309     old_postinstall_cmds old_postuninstall_cmds \
11310     compiler \
11311     CC \
11312     LD \
11313     lt_prog_compiler_wl \
11314     lt_prog_compiler_pic \
11315     lt_prog_compiler_static \
11316     lt_prog_compiler_no_builtin_flag \
11317     export_dynamic_flag_spec \
11318     thread_safe_flag_spec \
11319     whole_archive_flag_spec \
11320     enable_shared_with_static_runtimes \
11321     old_archive_cmds \
11322     old_archive_from_new_cmds \
11323     predep_objects \
11324     postdep_objects \
11325     predeps \
11326     postdeps \
11327     compiler_lib_search_path \
11328     archive_cmds \
11329     archive_expsym_cmds \
11330     postinstall_cmds \
11331     postuninstall_cmds \
11332     old_archive_from_expsyms_cmds \
11333     allow_undefined_flag \
11334     no_undefined_flag \
11335     export_symbols_cmds \
11336     hardcode_libdir_flag_spec \
11337     hardcode_libdir_flag_spec_ld \
11338     hardcode_libdir_separator \
11339     hardcode_automatic \
11340     module_cmds \
11341     module_expsym_cmds \
11342     lt_cv_prog_compiler_c_o \
11343     exclude_expsyms \
11344     include_expsyms; do
11345
11346     case $var in
11347     old_archive_cmds | \
11348     old_archive_from_new_cmds | \
11349     archive_cmds | \
11350     archive_expsym_cmds | \
11351     module_cmds | \
11352     module_expsym_cmds | \
11353     old_archive_from_expsyms_cmds | \
11354     export_symbols_cmds | \
11355     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11356     postinstall_cmds | postuninstall_cmds | \
11357     old_postinstall_cmds | old_postuninstall_cmds | \
11358     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11359       # Double-quote double-evaled strings.
11360       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11361       ;;
11362     *)
11363       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11364       ;;
11365     esac
11366   done
11367
11368   case $lt_echo in
11369   *'\$0 --fallback-echo"')
11370     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11371     ;;
11372   esac
11373
11374 cfgfile="${ofile}T"
11375   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11376   $rm -f "$cfgfile"
11377   { echo "$as_me:$LINENO: creating $ofile" >&5
11378 echo "$as_me: creating $ofile" >&6;}
11379
11380   cat <<__EOF__ >> "$cfgfile"
11381 #! $SHELL
11382
11383 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11384 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11385 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11386 #
11387 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11388 # Free Software Foundation, Inc.
11389 #
11390 # This file is part of GNU Libtool:
11391 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11392 #
11393 # This program is free software; you can redistribute it and/or modify
11394 # it under the terms of the GNU General Public License as published by
11395 # the Free Software Foundation; either version 2 of the License, or
11396 # (at your option) any later version.
11397 #
11398 # This program is distributed in the hope that it will be useful, but
11399 # WITHOUT ANY WARRANTY; without even the implied warranty of
11400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11401 # General Public License for more details.
11402 #
11403 # You should have received a copy of the GNU General Public License
11404 # along with this program; if not, write to the Free Software
11405 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11406 #
11407 # As a special exception to the GNU General Public License, if you
11408 # distribute this file as part of a program that contains a
11409 # configuration script generated by Autoconf, you may include it under
11410 # the same distribution terms that you use for the rest of that program.
11411
11412 # A sed program that does not truncate output.
11413 SED=$lt_SED
11414
11415 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11416 Xsed="$SED -e 1s/^X//"
11417
11418 # The HP-UX ksh and POSIX shell print the target directory to stdout
11419 # if CDPATH is set.
11420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11421
11422 # The names of the tagged configurations supported by this script.
11423 available_tags=
11424
11425 # ### BEGIN LIBTOOL CONFIG
11426
11427 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11428
11429 # Shell to use when invoking shell scripts.
11430 SHELL=$lt_SHELL
11431
11432 # Whether or not to build shared libraries.
11433 build_libtool_libs=$enable_shared
11434
11435 # Whether or not to build static libraries.
11436 build_old_libs=$enable_static
11437
11438 # Whether or not to add -lc for building shared libraries.
11439 build_libtool_need_lc=$archive_cmds_need_lc
11440
11441 # Whether or not to disallow shared libs when runtime libs are static
11442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11443
11444 # Whether or not to optimize for fast installation.
11445 fast_install=$enable_fast_install
11446
11447 # The host system.
11448 host_alias=$host_alias
11449 host=$host
11450 host_os=$host_os
11451
11452 # The build system.
11453 build_alias=$build_alias
11454 build=$build
11455 build_os=$build_os
11456
11457 # An echo program that does not interpret backslashes.
11458 echo=$lt_echo
11459
11460 # The archiver.
11461 AR=$lt_AR
11462 AR_FLAGS=$lt_AR_FLAGS
11463
11464 # A C compiler.
11465 LTCC=$lt_LTCC
11466
11467 # A language-specific compiler.
11468 CC=$lt_compiler
11469
11470 # Is the compiler the GNU C compiler?
11471 with_gcc=$GCC
11472
11473 # An ERE matcher.
11474 EGREP=$lt_EGREP
11475
11476 # The linker used to build libraries.
11477 LD=$lt_LD
11478
11479 # Whether we need hard or soft links.
11480 LN_S=$lt_LN_S
11481
11482 # A BSD-compatible nm program.
11483 NM=$lt_NM
11484
11485 # A symbol stripping program
11486 STRIP=$lt_STRIP
11487
11488 # Used to examine libraries when file_magic_cmd begins "file"
11489 MAGIC_CMD=$MAGIC_CMD
11490
11491 # Used on cygwin: DLL creation program.
11492 DLLTOOL="$DLLTOOL"
11493
11494 # Used on cygwin: object dumper.
11495 OBJDUMP="$OBJDUMP"
11496
11497 # Used on cygwin: assembler.
11498 AS="$AS"
11499
11500 # The name of the directory that contains temporary libtool files.
11501 objdir=$objdir
11502
11503 # How to create reloadable object files.
11504 reload_flag=$lt_reload_flag
11505 reload_cmds=$lt_reload_cmds
11506
11507 # How to pass a linker flag through the compiler.
11508 wl=$lt_lt_prog_compiler_wl
11509
11510 # Object file suffix (normally "o").
11511 objext="$ac_objext"
11512
11513 # Old archive suffix (normally "a").
11514 libext="$libext"
11515
11516 # Shared library suffix (normally ".so").
11517 shrext_cmds='$shrext_cmds'
11518
11519 # Executable file suffix (normally "").
11520 exeext="$exeext"
11521
11522 # Additional compiler flags for building library objects.
11523 pic_flag=$lt_lt_prog_compiler_pic
11524 pic_mode=$pic_mode
11525
11526 # What is the maximum length of a command?
11527 max_cmd_len=$lt_cv_sys_max_cmd_len
11528
11529 # Does compiler simultaneously support -c and -o options?
11530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11531
11532 # Must we lock files when doing compilation?
11533 need_locks=$lt_need_locks
11534
11535 # Do we need the lib prefix for modules?
11536 need_lib_prefix=$need_lib_prefix
11537
11538 # Do we need a version for libraries?
11539 need_version=$need_version
11540
11541 # Whether dlopen is supported.
11542 dlopen_support=$enable_dlopen
11543
11544 # Whether dlopen of programs is supported.
11545 dlopen_self=$enable_dlopen_self
11546
11547 # Whether dlopen of statically linked programs is supported.
11548 dlopen_self_static=$enable_dlopen_self_static
11549
11550 # Compiler flag to prevent dynamic linking.
11551 link_static_flag=$lt_lt_prog_compiler_static
11552
11553 # Compiler flag to turn off builtin functions.
11554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11555
11556 # Compiler flag to allow reflexive dlopens.
11557 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11558
11559 # Compiler flag to generate shared objects directly from archives.
11560 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11561
11562 # Compiler flag to generate thread-safe objects.
11563 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11564
11565 # Library versioning type.
11566 version_type=$version_type
11567
11568 # Format of library name prefix.
11569 libname_spec=$lt_libname_spec
11570
11571 # List of archive names.  First name is the real one, the rest are links.
11572 # The last name is the one that the linker finds with -lNAME.
11573 library_names_spec=$lt_library_names_spec
11574
11575 # The coded name of the library, if different from the real name.
11576 soname_spec=$lt_soname_spec
11577
11578 # Commands used to build and install an old-style archive.
11579 RANLIB=$lt_RANLIB
11580 old_archive_cmds=$lt_old_archive_cmds
11581 old_postinstall_cmds=$lt_old_postinstall_cmds
11582 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11583
11584 # Create an old-style archive from a shared archive.
11585 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11586
11587 # Create a temporary old-style archive to link instead of a shared archive.
11588 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11589
11590 # Commands used to build and install a shared archive.
11591 archive_cmds=$lt_archive_cmds
11592 archive_expsym_cmds=$lt_archive_expsym_cmds
11593 postinstall_cmds=$lt_postinstall_cmds
11594 postuninstall_cmds=$lt_postuninstall_cmds
11595
11596 # Commands used to build a loadable module (assumed same as above if empty)
11597 module_cmds=$lt_module_cmds
11598 module_expsym_cmds=$lt_module_expsym_cmds
11599
11600 # Commands to strip libraries.
11601 old_striplib=$lt_old_striplib
11602 striplib=$lt_striplib
11603
11604 # Dependencies to place before the objects being linked to create a
11605 # shared library.
11606 predep_objects=$lt_predep_objects
11607
11608 # Dependencies to place after the objects being linked to create a
11609 # shared library.
11610 postdep_objects=$lt_postdep_objects
11611
11612 # Dependencies to place before the objects being linked to create a
11613 # shared library.
11614 predeps=$lt_predeps
11615
11616 # Dependencies to place after the objects being linked to create a
11617 # shared library.
11618 postdeps=$lt_postdeps
11619
11620 # The library search path used internally by the compiler when linking
11621 # a shared library.
11622 compiler_lib_search_path=$lt_compiler_lib_search_path
11623
11624 # Method to check whether dependent libraries are shared objects.
11625 deplibs_check_method=$lt_deplibs_check_method
11626
11627 # Command to use when deplibs_check_method == file_magic.
11628 file_magic_cmd=$lt_file_magic_cmd
11629
11630 # Flag that allows shared libraries with undefined symbols to be built.
11631 allow_undefined_flag=$lt_allow_undefined_flag
11632
11633 # Flag that forces no undefined symbols.
11634 no_undefined_flag=$lt_no_undefined_flag
11635
11636 # Commands used to finish a libtool library installation in a directory.
11637 finish_cmds=$lt_finish_cmds
11638
11639 # Same as above, but a single script fragment to be evaled but not shown.
11640 finish_eval=$lt_finish_eval
11641
11642 # Take the output of nm and produce a listing of raw symbols and C names.
11643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11644
11645 # Transform the output of nm in a proper C declaration
11646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11647
11648 # Transform the output of nm in a C name address pair
11649 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11650
11651 # This is the shared library runtime path variable.
11652 runpath_var=$runpath_var
11653
11654 # This is the shared library path variable.
11655 shlibpath_var=$shlibpath_var
11656
11657 # Is shlibpath searched before the hard-coded library search path?
11658 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11659
11660 # How to hardcode a shared library path into an executable.
11661 hardcode_action=$hardcode_action
11662
11663 # Whether we should hardcode library paths into libraries.
11664 hardcode_into_libs=$hardcode_into_libs
11665
11666 # Flag to hardcode \$libdir into a binary during linking.
11667 # This must work even if \$libdir does not exist.
11668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11669
11670 # If ld is used when linking, flag to hardcode \$libdir into
11671 # a binary during linking. This must work even if \$libdir does
11672 # not exist.
11673 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11674
11675 # Whether we need a single -rpath flag with a separated argument.
11676 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11677
11678 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11679 # resulting binary.
11680 hardcode_direct=$hardcode_direct
11681
11682 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11683 # resulting binary.
11684 hardcode_minus_L=$hardcode_minus_L
11685
11686 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11687 # the resulting binary.
11688 hardcode_shlibpath_var=$hardcode_shlibpath_var
11689
11690 # Set to yes if building a shared library automatically hardcodes DIR into the library
11691 # and all subsequent libraries and executables linked against it.
11692 hardcode_automatic=$hardcode_automatic
11693
11694 # Variables whose values should be saved in libtool wrapper scripts and
11695 # restored at relink time.
11696 variables_saved_for_relink="$variables_saved_for_relink"
11697
11698 # Whether libtool must link a program against all its dependency libraries.
11699 link_all_deplibs=$link_all_deplibs
11700
11701 # Compile-time system search path for libraries
11702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11703
11704 # Run-time system search path for libraries
11705 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11706
11707 # Fix the shell variable \$srcfile for the compiler.
11708 fix_srcfile_path="$fix_srcfile_path"
11709
11710 # Set to yes if exported symbols are required.
11711 always_export_symbols=$always_export_symbols
11712
11713 # The commands to list exported symbols.
11714 export_symbols_cmds=$lt_export_symbols_cmds
11715
11716 # The commands to extract the exported symbol list from a shared archive.
11717 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11718
11719 # Symbols that should not be listed in the preloaded symbols.
11720 exclude_expsyms=$lt_exclude_expsyms
11721
11722 # Symbols that must always be exported.
11723 include_expsyms=$lt_include_expsyms
11724
11725 # ### END LIBTOOL CONFIG
11726
11727 __EOF__
11728
11729
11730   case $host_os in
11731   aix3*)
11732     cat <<\EOF >> "$cfgfile"
11733
11734 # AIX sometimes has problems with the GCC collect2 program.  For some
11735 # reason, if we set the COLLECT_NAMES environment variable, the problems
11736 # vanish in a puff of smoke.
11737 if test "X${COLLECT_NAMES+set}" != Xset; then
11738   COLLECT_NAMES=
11739   export COLLECT_NAMES
11740 fi
11741 EOF
11742     ;;
11743   esac
11744
11745   # We use sed instead of cat because bash on DJGPP gets confused if
11746   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11747   # text mode, it properly converts lines to CR/LF.  This bash problem
11748   # is reportedly fixed, but why not run on old versions too?
11749   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11750
11751   mv -f "$cfgfile" "$ofile" || \
11752     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11753   chmod +x "$ofile"
11754
11755 else
11756   # If there is no Makefile yet, we rely on a make rule to execute
11757   # `config.status --recheck' to rerun these tests and create the
11758   # libtool script then.
11759   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11760   if test -f "$ltmain_in"; then
11761     test -f Makefile && make "$ltmain"
11762   fi
11763 fi
11764
11765
11766 ac_ext=c
11767 ac_cpp='$CPP $CPPFLAGS'
11768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11771
11772 CC="$lt_save_CC"
11773
11774
11775 # Check whether --with-tags or --without-tags was given.
11776 if test "${with_tags+set}" = set; then
11777   withval="$with_tags"
11778   tagnames="$withval"
11779 fi;
11780
11781 if test -f "$ltmain" && test -n "$tagnames"; then
11782   if test ! -f "${ofile}"; then
11783     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11784 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11785   fi
11786
11787   if test -z "$LTCC"; then
11788     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11789     if test -z "$LTCC"; then
11790       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11791 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11792     else
11793       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11794 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11795     fi
11796   fi
11797
11798   # Extract list of available tagged configurations in $ofile.
11799   # Note that this assumes the entire list is on one line.
11800   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11801
11802   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11803   for tagname in $tagnames; do
11804     IFS="$lt_save_ifs"
11805     # Check whether tagname contains only valid characters
11806     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11807     "") ;;
11808     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11809 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11810    { (exit 1); exit 1; }; }
11811         ;;
11812     esac
11813
11814     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11815     then
11816       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11817 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11818    { (exit 1); exit 1; }; }
11819     fi
11820
11821     # Update the list of available tags.
11822     if test -n "$tagname"; then
11823       echo appending configuration tag \"$tagname\" to $ofile
11824
11825       case $tagname in
11826       CXX)
11827         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11828             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11829             (test "X$CXX" != "Xg++"))) ; then
11830           ac_ext=cc
11831 ac_cpp='$CXXCPP $CPPFLAGS'
11832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11835
11836
11837
11838
11839 archive_cmds_need_lc_CXX=no
11840 allow_undefined_flag_CXX=
11841 always_export_symbols_CXX=no
11842 archive_expsym_cmds_CXX=
11843 export_dynamic_flag_spec_CXX=
11844 hardcode_direct_CXX=no
11845 hardcode_libdir_flag_spec_CXX=
11846 hardcode_libdir_flag_spec_ld_CXX=
11847 hardcode_libdir_separator_CXX=
11848 hardcode_minus_L_CXX=no
11849 hardcode_automatic_CXX=no
11850 module_cmds_CXX=
11851 module_expsym_cmds_CXX=
11852 link_all_deplibs_CXX=unknown
11853 old_archive_cmds_CXX=$old_archive_cmds
11854 no_undefined_flag_CXX=
11855 whole_archive_flag_spec_CXX=
11856 enable_shared_with_static_runtimes_CXX=no
11857
11858 # Dependencies to place before and after the object being linked:
11859 predep_objects_CXX=
11860 postdep_objects_CXX=
11861 predeps_CXX=
11862 postdeps_CXX=
11863 compiler_lib_search_path_CXX=
11864
11865 # Source file extension for C++ test sources.
11866 ac_ext=cc
11867
11868 # Object file extension for compiled C++ test sources.
11869 objext=o
11870 objext_CXX=$objext
11871
11872 # Code to be used in simple compile tests
11873 lt_simple_compile_test_code="int some_variable = 0;\n"
11874
11875 # Code to be used in simple link tests
11876 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11877
11878 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11879
11880 # If no C compiler was specified, use CC.
11881 LTCC=${LTCC-"$CC"}
11882
11883 # Allow CC to be a program name with arguments.
11884 compiler=$CC
11885
11886
11887 # save warnings/boilerplate of simple test code
11888 ac_outfile=conftest.$ac_objext
11889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11891 _lt_compiler_boilerplate=`cat conftest.err`
11892 $rm conftest*
11893
11894 ac_outfile=conftest.$ac_objext
11895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11897 _lt_linker_boilerplate=`cat conftest.err`
11898 $rm conftest*
11899
11900
11901 # Allow CC to be a program name with arguments.
11902 lt_save_CC=$CC
11903 lt_save_LD=$LD
11904 lt_save_GCC=$GCC
11905 GCC=$GXX
11906 lt_save_with_gnu_ld=$with_gnu_ld
11907 lt_save_path_LD=$lt_cv_path_LD
11908 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11909   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11910 else
11911   unset lt_cv_prog_gnu_ld
11912 fi
11913 if test -n "${lt_cv_path_LDCXX+set}"; then
11914   lt_cv_path_LD=$lt_cv_path_LDCXX
11915 else
11916   unset lt_cv_path_LD
11917 fi
11918 test -z "${LDCXX+set}" || LD=$LDCXX
11919 CC=${CXX-"c++"}
11920 compiler=$CC
11921 compiler_CXX=$CC
11922 for cc_temp in $compiler""; do
11923   case $cc_temp in
11924     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11925     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11926     \-*) ;;
11927     *) break;;
11928   esac
11929 done
11930 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11931
11932
11933 # We don't want -fno-exception wen compiling C++ code, so set the
11934 # no_builtin_flag separately
11935 if test "$GXX" = yes; then
11936   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11937 else
11938   lt_prog_compiler_no_builtin_flag_CXX=
11939 fi
11940
11941 if test "$GXX" = yes; then
11942   # Set up default GNU C++ configuration
11943
11944
11945 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11946 if test "${with_gnu_ld+set}" = set; then
11947   withval="$with_gnu_ld"
11948   test "$withval" = no || with_gnu_ld=yes
11949 else
11950   with_gnu_ld=no
11951 fi;
11952 ac_prog=ld
11953 if test "$GCC" = yes; then
11954   # Check if gcc -print-prog-name=ld gives a path.
11955   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11956 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11957   case $host in
11958   *-*-mingw*)
11959     # gcc leaves a trailing carriage return which upsets mingw
11960     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11961   *)
11962     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11963   esac
11964   case $ac_prog in
11965     # Accept absolute paths.
11966     [\\/]* | ?:[\\/]*)
11967       re_direlt='/[^/][^/]*/\.\./'
11968       # Canonicalize the pathname of ld
11969       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11970       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11971         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11972       done
11973       test -z "$LD" && LD="$ac_prog"
11974       ;;
11975   "")
11976     # If it fails, then pretend we aren't using GCC.
11977     ac_prog=ld
11978     ;;
11979   *)
11980     # If it is relative, then search for the first ld in PATH.
11981     with_gnu_ld=unknown
11982     ;;
11983   esac
11984 elif test "$with_gnu_ld" = yes; then
11985   echo "$as_me:$LINENO: checking for GNU ld" >&5
11986 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11987 else
11988   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11989 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11990 fi
11991 if test "${lt_cv_path_LD+set}" = set; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994   if test -z "$LD"; then
11995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11996   for ac_dir in $PATH; do
11997     IFS="$lt_save_ifs"
11998     test -z "$ac_dir" && ac_dir=.
11999     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12000       lt_cv_path_LD="$ac_dir/$ac_prog"
12001       # Check to see if the program is GNU ld.  I'd rather use --version,
12002       # but apparently some GNU ld's only accept -v.
12003       # Break only if it was the GNU/non-GNU ld that we prefer.
12004       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12005       *GNU* | *'with BFD'*)
12006         test "$with_gnu_ld" != no && break
12007         ;;
12008       *)
12009         test "$with_gnu_ld" != yes && break
12010         ;;
12011       esac
12012     fi
12013   done
12014   IFS="$lt_save_ifs"
12015 else
12016   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12017 fi
12018 fi
12019
12020 LD="$lt_cv_path_LD"
12021 if test -n "$LD"; then
12022   echo "$as_me:$LINENO: result: $LD" >&5
12023 echo "${ECHO_T}$LD" >&6
12024 else
12025   echo "$as_me:$LINENO: result: no" >&5
12026 echo "${ECHO_T}no" >&6
12027 fi
12028 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12029 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12030    { (exit 1); exit 1; }; }
12031 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12032 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12033 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12037 case `$LD -v 2>&1 </dev/null` in
12038 *GNU* | *'with BFD'*)
12039   lt_cv_prog_gnu_ld=yes
12040   ;;
12041 *)
12042   lt_cv_prog_gnu_ld=no
12043   ;;
12044 esac
12045 fi
12046 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12047 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12048 with_gnu_ld=$lt_cv_prog_gnu_ld
12049
12050
12051
12052   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12053   # archiving commands below assume that GNU ld is being used.
12054   if test "$with_gnu_ld" = yes; then
12055     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12056     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'
12057
12058     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12059     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12060
12061     # If archive_cmds runs LD, not CC, wlarc should be empty
12062     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12063     #     investigate it a little bit more. (MM)
12064     wlarc='${wl}'
12065
12066     # ancient GNU ld didn't support --whole-archive et. al.
12067     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12068         grep 'no-whole-archive' > /dev/null; then
12069       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12070     else
12071       whole_archive_flag_spec_CXX=
12072     fi
12073   else
12074     with_gnu_ld=no
12075     wlarc=
12076
12077     # A generic and very simple default shared library creation
12078     # command for GNU C++ for the case where it uses the native
12079     # linker, instead of GNU ld.  If possible, this setting should
12080     # overridden to take advantage of the native linker features on
12081     # the platform it is being used on.
12082     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12083   fi
12084
12085   # Commands to make compiler produce verbose output that lists
12086   # what "hidden" libraries, object files and flags are used when
12087   # linking a shared library.
12088   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12089
12090 else
12091   GXX=no
12092   with_gnu_ld=no
12093   wlarc=
12094 fi
12095
12096 # PORTME: fill in a description of your system's C++ link characteristics
12097 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12098 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12099 ld_shlibs_CXX=yes
12100 case $host_os in
12101   aix3*)
12102     # FIXME: insert proper C++ library support
12103     ld_shlibs_CXX=no
12104     ;;
12105   aix4* | aix5*)
12106     if test "$host_cpu" = ia64; then
12107       # On IA64, the linker does run time linking by default, so we don't
12108       # have to do anything special.
12109       aix_use_runtimelinking=no
12110       exp_sym_flag='-Bexport'
12111       no_entry_flag=""
12112     else
12113       aix_use_runtimelinking=no
12114
12115       # Test if we are trying to use run time linking or normal
12116       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12117       # need to do runtime linking.
12118       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12119         for ld_flag in $LDFLAGS; do
12120           case $ld_flag in
12121           *-brtl*)
12122             aix_use_runtimelinking=yes
12123             break
12124             ;;
12125           esac
12126         done
12127       esac
12128
12129       exp_sym_flag='-bexport'
12130       no_entry_flag='-bnoentry'
12131     fi
12132
12133     # When large executables or shared objects are built, AIX ld can
12134     # have problems creating the table of contents.  If linking a library
12135     # or program results in "error TOC overflow" add -mminimal-toc to
12136     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12137     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12138
12139     archive_cmds_CXX=''
12140     hardcode_direct_CXX=yes
12141     hardcode_libdir_separator_CXX=':'
12142     link_all_deplibs_CXX=yes
12143
12144     if test "$GXX" = yes; then
12145       case $host_os in aix4.[012]|aix4.[012].*)
12146       # We only want to do this on AIX 4.2 and lower, the check
12147       # below for broken collect2 doesn't work under 4.3+
12148         collect2name=`${CC} -print-prog-name=collect2`
12149         if test -f "$collect2name" && \
12150            strings "$collect2name" | grep resolve_lib_name >/dev/null
12151         then
12152           # We have reworked collect2
12153           hardcode_direct_CXX=yes
12154         else
12155           # We have old collect2
12156           hardcode_direct_CXX=unsupported
12157           # It fails to find uninstalled libraries when the uninstalled
12158           # path is not listed in the libpath.  Setting hardcode_minus_L
12159           # to unsupported forces relinking
12160           hardcode_minus_L_CXX=yes
12161           hardcode_libdir_flag_spec_CXX='-L$libdir'
12162           hardcode_libdir_separator_CXX=
12163         fi
12164       esac
12165       shared_flag='-shared'
12166       if test "$aix_use_runtimelinking" = yes; then
12167         shared_flag="$shared_flag "'${wl}-G'
12168       fi
12169     else
12170       # not using gcc
12171       if test "$host_cpu" = ia64; then
12172         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12173         # chokes on -Wl,-G. The following line is correct:
12174         shared_flag='-G'
12175       else
12176         if test "$aix_use_runtimelinking" = yes; then
12177           shared_flag='${wl}-G'
12178         else
12179           shared_flag='${wl}-bM:SRE'
12180         fi
12181       fi
12182     fi
12183
12184     # It seems that -bexpall does not export symbols beginning with
12185     # underscore (_), so it is better to generate a list of symbols to export.
12186     always_export_symbols_CXX=yes
12187     if test "$aix_use_runtimelinking" = yes; then
12188       # Warning - without using the other runtime loading flags (-brtl),
12189       # -berok will link without error, but may produce a broken library.
12190       allow_undefined_flag_CXX='-berok'
12191       # Determine the default libpath from the value encoded in an empty executable.
12192       cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198
12199 int
12200 main ()
12201 {
12202
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209   (eval $ac_link) 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -z "$ac_cxx_werror_flag"
12217                          || test ! -s conftest.err'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest$ac_exeext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229
12230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12231 }'`
12232 # Check for a 64-bit object if we didn't find anything.
12233 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; }
12234 }'`; fi
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 fi
12240 rm -f conftest.err conftest.$ac_objext \
12241       conftest$ac_exeext conftest.$ac_ext
12242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12243
12244       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12245
12246       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"
12247      else
12248       if test "$host_cpu" = ia64; then
12249         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12250         allow_undefined_flag_CXX="-z nodefs"
12251         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"
12252       else
12253         # Determine the default libpath from the value encoded in an empty executable.
12254         cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260
12261 int
12262 main ()
12263 {
12264
12265   ;
12266   return 0;
12267 }
12268 _ACEOF
12269 rm -f conftest.$ac_objext conftest$ac_exeext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271   (eval $ac_link) 2>conftest.er1
12272   ac_status=$?
12273   grep -v '^ *+' conftest.er1 >conftest.err
12274   rm -f conftest.er1
12275   cat conftest.err >&5
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -z "$ac_cxx_werror_flag"
12279                          || test ! -s conftest.err'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; } &&
12285          { ac_try='test -s conftest$ac_exeext'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; }; then
12291
12292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12293 }'`
12294 # Check for a 64-bit object if we didn't find anything.
12295 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; }
12296 }'`; fi
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 fi
12302 rm -f conftest.err conftest.$ac_objext \
12303       conftest$ac_exeext conftest.$ac_ext
12304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12305
12306         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12307         # Warning - without using the other run time loading flags,
12308         # -berok will link without error, but may produce a broken library.
12309         no_undefined_flag_CXX=' ${wl}-bernotok'
12310         allow_undefined_flag_CXX=' ${wl}-berok'
12311         # -bexpall does not export symbols beginning with underscore (_)
12312         always_export_symbols_CXX=yes
12313         # Exported symbols can be pulled into shared objects from archives
12314         whole_archive_flag_spec_CXX=' '
12315         archive_cmds_need_lc_CXX=yes
12316         # This is similar to how AIX traditionally builds it's shared libraries.
12317         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'
12318       fi
12319     fi
12320     ;;
12321   chorus*)
12322     case $cc_basename in
12323       *)
12324         # FIXME: insert proper C++ library support
12325         ld_shlibs_CXX=no
12326         ;;
12327     esac
12328     ;;
12329
12330
12331   cygwin* | mingw* | pw32*)
12332     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12333     # as there is no search path for DLLs.
12334     hardcode_libdir_flag_spec_CXX='-L$libdir'
12335     allow_undefined_flag_CXX=unsupported
12336     always_export_symbols_CXX=no
12337     enable_shared_with_static_runtimes_CXX=yes
12338
12339     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12340       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'
12341       # If the export-symbols file already is a .def file (1st line
12342       # is EXPORTS), use it as is; otherwise, prepend...
12343       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12344         cp $export_symbols $output_objdir/$soname.def;
12345       else
12346         echo EXPORTS > $output_objdir/$soname.def;
12347         cat $export_symbols >> $output_objdir/$soname.def;
12348       fi~
12349       $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'
12350     else
12351       ld_shlibs_CXX=no
12352     fi
12353   ;;
12354       darwin* | rhapsody*)
12355         case "$host_os" in
12356         rhapsody* | darwin1.[012])
12357          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12358          ;;
12359        *) # Darwin 1.3 on
12360          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12361            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12362          else
12363            case ${MACOSX_DEPLOYMENT_TARGET} in
12364              10.[012])
12365                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12366                ;;
12367              10.*)
12368                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12369                ;;
12370            esac
12371          fi
12372          ;;
12373         esac
12374       archive_cmds_need_lc_CXX=no
12375       hardcode_direct_CXX=no
12376       hardcode_automatic_CXX=yes
12377       hardcode_shlibpath_var_CXX=unsupported
12378       whole_archive_flag_spec_CXX=''
12379       link_all_deplibs_CXX=yes
12380
12381     if test "$GXX" = yes ; then
12382       lt_int_apple_cc_single_mod=no
12383       output_verbose_link_cmd='echo'
12384       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12385        lt_int_apple_cc_single_mod=yes
12386       fi
12387       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12388        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12389       else
12390           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'
12391         fi
12392         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12393         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12394           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12395             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}'
12396           else
12397             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}'
12398           fi
12399             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}'
12400       else
12401       case $cc_basename in
12402         xlc*)
12403          output_verbose_link_cmd='echo'
12404           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'
12405           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12406           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12407           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}'
12408           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}'
12409           ;;
12410        *)
12411          ld_shlibs_CXX=no
12412           ;;
12413       esac
12414       fi
12415         ;;
12416
12417   dgux*)
12418     case $cc_basename in
12419       ec++*)
12420         # FIXME: insert proper C++ library support
12421         ld_shlibs_CXX=no
12422         ;;
12423       ghcx*)
12424         # Green Hills C++ Compiler
12425         # FIXME: insert proper C++ library support
12426         ld_shlibs_CXX=no
12427         ;;
12428       *)
12429         # FIXME: insert proper C++ library support
12430         ld_shlibs_CXX=no
12431         ;;
12432     esac
12433     ;;
12434   freebsd[12]*)
12435     # C++ shared libraries reported to be fairly broken before switch to ELF
12436     ld_shlibs_CXX=no
12437     ;;
12438   freebsd-elf*)
12439     archive_cmds_need_lc_CXX=no
12440     ;;
12441   freebsd* | kfreebsd*-gnu | dragonfly*)
12442     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12443     # conventions
12444     ld_shlibs_CXX=yes
12445     ;;
12446   gnu*)
12447     ;;
12448   hpux9*)
12449     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12450     hardcode_libdir_separator_CXX=:
12451     export_dynamic_flag_spec_CXX='${wl}-E'
12452     hardcode_direct_CXX=yes
12453     hardcode_minus_L_CXX=yes # Not in the search PATH,
12454                                 # but as the default
12455                                 # location of the library.
12456
12457     case $cc_basename in
12458     CC*)
12459       # FIXME: insert proper C++ library support
12460       ld_shlibs_CXX=no
12461       ;;
12462     aCC*)
12463       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'
12464       # Commands to make compiler produce verbose output that lists
12465       # what "hidden" libraries, object files and flags are used when
12466       # linking a shared library.
12467       #
12468       # There doesn't appear to be a way to prevent this compiler from
12469       # explicitly linking system object files so we need to strip them
12470       # from the output so that they don't get included in the library
12471       # dependencies.
12472       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'
12473       ;;
12474     *)
12475       if test "$GXX" = yes; then
12476         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'
12477       else
12478         # FIXME: insert proper C++ library support
12479         ld_shlibs_CXX=no
12480       fi
12481       ;;
12482     esac
12483     ;;
12484   hpux10*|hpux11*)
12485     if test $with_gnu_ld = no; then
12486       case "$host_cpu" in
12487       hppa*64*)
12488         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12489         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12490         hardcode_libdir_separator_CXX=:
12491         ;;
12492       ia64*)
12493         hardcode_libdir_flag_spec_CXX='-L$libdir'
12494         ;;
12495       *)
12496         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12497         hardcode_libdir_separator_CXX=:
12498         export_dynamic_flag_spec_CXX='${wl}-E'
12499         ;;
12500       esac
12501     fi
12502     case "$host_cpu" in
12503     hppa*64*)
12504       hardcode_direct_CXX=no
12505       hardcode_shlibpath_var_CXX=no
12506       ;;
12507     ia64*)
12508       hardcode_direct_CXX=no
12509       hardcode_shlibpath_var_CXX=no
12510       hardcode_minus_L_CXX=yes # Not in the search PATH,
12511                                               # but as the default
12512                                               # location of the library.
12513       ;;
12514     *)
12515       hardcode_direct_CXX=yes
12516       hardcode_minus_L_CXX=yes # Not in the search PATH,
12517                                               # but as the default
12518                                               # location of the library.
12519       ;;
12520     esac
12521
12522     case $cc_basename in
12523       CC*)
12524         # FIXME: insert proper C++ library support
12525         ld_shlibs_CXX=no
12526         ;;
12527       aCC*)
12528         case "$host_cpu" in
12529         hppa*64*|ia64*)
12530           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12531           ;;
12532         *)
12533           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12534           ;;
12535         esac
12536         # Commands to make compiler produce verbose output that lists
12537         # what "hidden" libraries, object files and flags are used when
12538         # linking a shared library.
12539         #
12540         # There doesn't appear to be a way to prevent this compiler from
12541         # explicitly linking system object files so we need to strip them
12542         # from the output so that they don't get included in the library
12543         # dependencies.
12544         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'
12545         ;;
12546       *)
12547         if test "$GXX" = yes; then
12548           if test $with_gnu_ld = no; then
12549             case "$host_cpu" in
12550             ia64*|hppa*64*)
12551               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12552               ;;
12553             *)
12554               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'
12555               ;;
12556             esac
12557           fi
12558         else
12559           # FIXME: insert proper C++ library support
12560           ld_shlibs_CXX=no
12561         fi
12562         ;;
12563     esac
12564     ;;
12565   irix5* | irix6*)
12566     case $cc_basename in
12567       CC*)
12568         # SGI C++
12569         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'
12570
12571         # Archives containing C++ object files must be created using
12572         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12573         # necessary to make sure instantiated templates are included
12574         # in the archive.
12575         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12576         ;;
12577       *)
12578         if test "$GXX" = yes; then
12579           if test "$with_gnu_ld" = no; then
12580             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'
12581           else
12582             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'
12583           fi
12584         fi
12585         link_all_deplibs_CXX=yes
12586         ;;
12587     esac
12588     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12589     hardcode_libdir_separator_CXX=:
12590     ;;
12591   linux*)
12592     case $cc_basename in
12593       KCC*)
12594         # Kuck and Associates, Inc. (KAI) C++ Compiler
12595
12596         # KCC will only create a shared library if the output file
12597         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12598         # to its proper name (with version) after linking.
12599         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'
12600         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'
12601         # Commands to make compiler produce verbose output that lists
12602         # what "hidden" libraries, object files and flags are used when
12603         # linking a shared library.
12604         #
12605         # There doesn't appear to be a way to prevent this compiler from
12606         # explicitly linking system object files so we need to strip them
12607         # from the output so that they don't get included in the library
12608         # dependencies.
12609         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'
12610
12611         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12612         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12613
12614         # Archives containing C++ object files must be created using
12615         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12616         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12617         ;;
12618       icpc*)
12619         # Intel C++
12620         with_gnu_ld=yes
12621         # version 8.0 and above of icpc choke on multiply defined symbols
12622         # if we add $predep_objects and $postdep_objects, however 7.1 and
12623         # earlier do not add the objects themselves.
12624         case `$CC -V 2>&1` in
12625         *"Version 7."*)
12626           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12627           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'
12628           ;;
12629         *)  # Version 8.0 or newer
12630           tmp_idyn=
12631           case $host_cpu in
12632             ia64*) tmp_idyn=' -i_dynamic';;
12633           esac
12634           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12635           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'
12636           ;;
12637         esac
12638         archive_cmds_need_lc_CXX=no
12639         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12640         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12641         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12642         ;;
12643       pgCC*)
12644         # Portland Group C++ compiler
12645         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12646         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'
12647
12648         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12649         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12650         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'
12651         ;;
12652       cxx*)
12653         # Compaq C++
12654         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655         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'
12656
12657         runpath_var=LD_RUN_PATH
12658         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12659         hardcode_libdir_separator_CXX=:
12660
12661         # Commands to make compiler produce verbose output that lists
12662         # what "hidden" libraries, object files and flags are used when
12663         # linking a shared library.
12664         #
12665         # There doesn't appear to be a way to prevent this compiler from
12666         # explicitly linking system object files so we need to strip them
12667         # from the output so that they don't get included in the library
12668         # dependencies.
12669         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'
12670         ;;
12671     esac
12672     ;;
12673   lynxos*)
12674     # FIXME: insert proper C++ library support
12675     ld_shlibs_CXX=no
12676     ;;
12677   m88k*)
12678     # FIXME: insert proper C++ library support
12679     ld_shlibs_CXX=no
12680     ;;
12681   mvs*)
12682     case $cc_basename in
12683       cxx*)
12684         # FIXME: insert proper C++ library support
12685         ld_shlibs_CXX=no
12686         ;;
12687       *)
12688         # FIXME: insert proper C++ library support
12689         ld_shlibs_CXX=no
12690         ;;
12691     esac
12692     ;;
12693   netbsd*)
12694     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12695       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12696       wlarc=
12697       hardcode_libdir_flag_spec_CXX='-R$libdir'
12698       hardcode_direct_CXX=yes
12699       hardcode_shlibpath_var_CXX=no
12700     fi
12701     # Workaround some broken pre-1.5 toolchains
12702     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12703     ;;
12704   openbsd2*)
12705     # C++ shared libraries are fairly broken
12706     ld_shlibs_CXX=no
12707     ;;
12708   openbsd*)
12709     hardcode_direct_CXX=yes
12710     hardcode_shlibpath_var_CXX=no
12711     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12712     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12713     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12714       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12715       export_dynamic_flag_spec_CXX='${wl}-E'
12716       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12717     fi
12718     output_verbose_link_cmd='echo'
12719     ;;
12720   osf3*)
12721     case $cc_basename in
12722       KCC*)
12723         # Kuck and Associates, Inc. (KAI) C++ Compiler
12724
12725         # KCC will only create a shared library if the output file
12726         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12727         # to its proper name (with version) after linking.
12728         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'
12729
12730         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12731         hardcode_libdir_separator_CXX=:
12732
12733         # Archives containing C++ object files must be created using
12734         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12735         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12736
12737         ;;
12738       RCC*)
12739         # Rational C++ 2.4.1
12740         # FIXME: insert proper C++ library support
12741         ld_shlibs_CXX=no
12742         ;;
12743       cxx*)
12744         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12745         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'
12746
12747         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748         hardcode_libdir_separator_CXX=:
12749
12750         # Commands to make compiler produce verbose output that lists
12751         # what "hidden" libraries, object files and flags are used when
12752         # linking a shared library.
12753         #
12754         # There doesn't appear to be a way to prevent this compiler from
12755         # explicitly linking system object files so we need to strip them
12756         # from the output so that they don't get included in the library
12757         # dependencies.
12758         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'
12759         ;;
12760       *)
12761         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12762           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12763           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'
12764
12765           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12766           hardcode_libdir_separator_CXX=:
12767
12768           # Commands to make compiler produce verbose output that lists
12769           # what "hidden" libraries, object files and flags are used when
12770           # linking a shared library.
12771           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12772
12773         else
12774           # FIXME: insert proper C++ library support
12775           ld_shlibs_CXX=no
12776         fi
12777         ;;
12778     esac
12779     ;;
12780   osf4* | osf5*)
12781     case $cc_basename in
12782       KCC*)
12783         # Kuck and Associates, Inc. (KAI) C++ Compiler
12784
12785         # KCC will only create a shared library if the output file
12786         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12787         # to its proper name (with version) after linking.
12788         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'
12789
12790         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12791         hardcode_libdir_separator_CXX=:
12792
12793         # Archives containing C++ object files must be created using
12794         # the KAI C++ compiler.
12795         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12796         ;;
12797       RCC*)
12798         # Rational C++ 2.4.1
12799         # FIXME: insert proper C++ library support
12800         ld_shlibs_CXX=no
12801         ;;
12802       cxx*)
12803         allow_undefined_flag_CXX=' -expect_unresolved \*'
12804         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'
12805         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12806           echo "-hidden">> $lib.exp~
12807           $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~
12808           $rm $lib.exp'
12809
12810         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12811         hardcode_libdir_separator_CXX=:
12812
12813         # Commands to make compiler produce verbose output that lists
12814         # what "hidden" libraries, object files and flags are used when
12815         # linking a shared library.
12816         #
12817         # There doesn't appear to be a way to prevent this compiler from
12818         # explicitly linking system object files so we need to strip them
12819         # from the output so that they don't get included in the library
12820         # dependencies.
12821         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'
12822         ;;
12823       *)
12824         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12825           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12826          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'
12827
12828           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12829           hardcode_libdir_separator_CXX=:
12830
12831           # Commands to make compiler produce verbose output that lists
12832           # what "hidden" libraries, object files and flags are used when
12833           # linking a shared library.
12834           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12835
12836         else
12837           # FIXME: insert proper C++ library support
12838           ld_shlibs_CXX=no
12839         fi
12840         ;;
12841     esac
12842     ;;
12843   psos*)
12844     # FIXME: insert proper C++ library support
12845     ld_shlibs_CXX=no
12846     ;;
12847   sco*)
12848     archive_cmds_need_lc_CXX=no
12849     case $cc_basename in
12850       CC*)
12851         # FIXME: insert proper C++ library support
12852         ld_shlibs_CXX=no
12853         ;;
12854       *)
12855         # FIXME: insert proper C++ library support
12856         ld_shlibs_CXX=no
12857         ;;
12858     esac
12859     ;;
12860   sunos4*)
12861     case $cc_basename in
12862       CC*)
12863         # Sun C++ 4.x
12864         # FIXME: insert proper C++ library support
12865         ld_shlibs_CXX=no
12866         ;;
12867       lcc*)
12868         # Lucid
12869         # FIXME: insert proper C++ library support
12870         ld_shlibs_CXX=no
12871         ;;
12872       *)
12873         # FIXME: insert proper C++ library support
12874         ld_shlibs_CXX=no
12875         ;;
12876     esac
12877     ;;
12878   solaris*)
12879     case $cc_basename in
12880       CC*)
12881         # Sun C++ 4.2, 5.x and Centerline C++
12882         no_undefined_flag_CXX=' -zdefs'
12883         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12884         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12885         $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'
12886
12887         hardcode_libdir_flag_spec_CXX='-R$libdir'
12888         hardcode_shlibpath_var_CXX=no
12889         case $host_os in
12890           solaris2.[0-5] | solaris2.[0-5].*) ;;
12891           *)
12892             # The C++ compiler is used as linker so we must use $wl
12893             # flag to pass the commands to the underlying system
12894             # linker. We must also pass each convience library through
12895             # to the system linker between allextract/defaultextract.
12896             # The C++ compiler will combine linker options so we
12897             # cannot just pass the convience library names through
12898             # without $wl.
12899             # Supported since Solaris 2.6 (maybe 2.5.1?)
12900             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'
12901             ;;
12902         esac
12903         link_all_deplibs_CXX=yes
12904
12905         # Commands to make compiler produce verbose output that lists
12906         # what "hidden" libraries, object files and flags are used when
12907         # linking a shared library.
12908         #
12909         # There doesn't appear to be a way to prevent this compiler from
12910         # explicitly linking system object files so we need to strip them
12911         # from the output so that they don't get included in the library
12912         # dependencies.
12913         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'
12914
12915         # Archives containing C++ object files must be created using
12916         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12917         # necessary to make sure instantiated templates are included
12918         # in the archive.
12919         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12920         ;;
12921       gcx*)
12922         # Green Hills C++ Compiler
12923         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12924
12925         # The C++ compiler must be used to create the archive.
12926         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12927         ;;
12928       *)
12929         # GNU C++ compiler with Solaris linker
12930         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12931           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12932           if $CC --version | grep -v '^2\.7' > /dev/null; then
12933             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12934             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12935                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12936
12937             # Commands to make compiler produce verbose output that lists
12938             # what "hidden" libraries, object files and flags are used when
12939             # linking a shared library.
12940             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12941           else
12942             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12943             # platform.
12944             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12945             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12946                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12947
12948             # Commands to make compiler produce verbose output that lists
12949             # what "hidden" libraries, object files and flags are used when
12950             # linking a shared library.
12951             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12952           fi
12953
12954           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12955         fi
12956         ;;
12957     esac
12958     ;;
12959   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12960     archive_cmds_need_lc_CXX=no
12961     ;;
12962   tandem*)
12963     case $cc_basename in
12964       NCC*)
12965         # NonStop-UX NCC 3.20
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     ;;
12975   vxworks*)
12976     # FIXME: insert proper C++ library support
12977     ld_shlibs_CXX=no
12978     ;;
12979   *)
12980     # FIXME: insert proper C++ library support
12981     ld_shlibs_CXX=no
12982     ;;
12983 esac
12984 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12985 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12986 test "$ld_shlibs_CXX" = no && can_build_shared=no
12987
12988 GCC_CXX="$GXX"
12989 LD_CXX="$LD"
12990
12991
12992 cat > conftest.$ac_ext <<EOF
12993 class Foo
12994 {
12995 public:
12996   Foo (void) { a = 0; }
12997 private:
12998   int a;
12999 };
13000 EOF
13001
13002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13003   (eval $ac_compile) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; then
13007   # Parse the compiler output and extract the necessary
13008   # objects, libraries and library flags.
13009
13010   # Sentinel used to keep track of whether or not we are before
13011   # the conftest object file.
13012   pre_test_object_deps_done=no
13013
13014   # The `*' in the case matches for architectures that use `case' in
13015   # $output_verbose_cmd can trigger glob expansion during the loop
13016   # eval without this substitution.
13017   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13018
13019   for p in `eval $output_verbose_link_cmd`; do
13020     case $p in
13021
13022     -L* | -R* | -l*)
13023        # Some compilers place space between "-{L,R}" and the path.
13024        # Remove the space.
13025        if test $p = "-L" \
13026           || test $p = "-R"; then
13027          prev=$p
13028          continue
13029        else
13030          prev=
13031        fi
13032
13033        if test "$pre_test_object_deps_done" = no; then
13034          case $p in
13035          -L* | -R*)
13036            # Internal compiler library paths should come after those
13037            # provided the user.  The postdeps already come after the
13038            # user supplied libs so there is no need to process them.
13039            if test -z "$compiler_lib_search_path_CXX"; then
13040              compiler_lib_search_path_CXX="${prev}${p}"
13041            else
13042              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13043            fi
13044            ;;
13045          # The "-l" case would never come before the object being
13046          # linked, so don't bother handling this case.
13047          esac
13048        else
13049          if test -z "$postdeps_CXX"; then
13050            postdeps_CXX="${prev}${p}"
13051          else
13052            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13053          fi
13054        fi
13055        ;;
13056
13057     *.$objext)
13058        # This assumes that the test object file only shows up
13059        # once in the compiler output.
13060        if test "$p" = "conftest.$objext"; then
13061          pre_test_object_deps_done=yes
13062          continue
13063        fi
13064
13065        if test "$pre_test_object_deps_done" = no; then
13066          if test -z "$predep_objects_CXX"; then
13067            predep_objects_CXX="$p"
13068          else
13069            predep_objects_CXX="$predep_objects_CXX $p"
13070          fi
13071        else
13072          if test -z "$postdep_objects_CXX"; then
13073            postdep_objects_CXX="$p"
13074          else
13075            postdep_objects_CXX="$postdep_objects_CXX $p"
13076          fi
13077        fi
13078        ;;
13079
13080     *) ;; # Ignore the rest.
13081
13082     esac
13083   done
13084
13085   # Clean up.
13086   rm -f a.out a.exe
13087 else
13088   echo "libtool.m4: error: problem compiling CXX test program"
13089 fi
13090
13091 $rm -f confest.$objext
13092
13093 case " $postdeps_CXX " in
13094 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13095 esac
13096
13097 lt_prog_compiler_wl_CXX=
13098 lt_prog_compiler_pic_CXX=
13099 lt_prog_compiler_static_CXX=
13100
13101 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13102 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13103
13104   # C++ specific cases for pic, static, wl, etc.
13105   if test "$GXX" = yes; then
13106     lt_prog_compiler_wl_CXX='-Wl,'
13107     lt_prog_compiler_static_CXX='-static'
13108
13109     case $host_os in
13110     aix*)
13111       # All AIX code is PIC.
13112       if test "$host_cpu" = ia64; then
13113         # AIX 5 now supports IA64 processor
13114         lt_prog_compiler_static_CXX='-Bstatic'
13115       fi
13116       ;;
13117     amigaos*)
13118       # FIXME: we need at least 68020 code to build shared libraries, but
13119       # adding the `-m68020' flag to GCC prevents building anything better,
13120       # like `-m68040'.
13121       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13122       ;;
13123     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13124       # PIC is the default for these OSes.
13125       ;;
13126     mingw* | os2* | pw32*)
13127       # This hack is so that the source file can tell whether it is being
13128       # built for inclusion in a dll (and should export symbols for example).
13129       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13130       ;;
13131     darwin* | rhapsody*)
13132       # PIC is the default on this platform
13133       # Common symbols not allowed in MH_DYLIB files
13134       lt_prog_compiler_pic_CXX='-fno-common'
13135       ;;
13136     *djgpp*)
13137       # DJGPP does not support shared libraries at all
13138       lt_prog_compiler_pic_CXX=
13139       ;;
13140     sysv4*MP*)
13141       if test -d /usr/nec; then
13142         lt_prog_compiler_pic_CXX=-Kconform_pic
13143       fi
13144       ;;
13145     hpux*)
13146       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147       # not for PA HP-UX.
13148       case "$host_cpu" in
13149       hppa*64*|ia64*)
13150         ;;
13151       *)
13152         lt_prog_compiler_pic_CXX='-fPIC'
13153         ;;
13154       esac
13155       ;;
13156     *)
13157       lt_prog_compiler_pic_CXX='-fPIC'
13158       ;;
13159     esac
13160   else
13161     case $host_os in
13162       aix4* | aix5*)
13163         # All AIX code is PIC.
13164         if test "$host_cpu" = ia64; then
13165           # AIX 5 now supports IA64 processor
13166           lt_prog_compiler_static_CXX='-Bstatic'
13167         else
13168           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13169         fi
13170         ;;
13171       chorus*)
13172         case $cc_basename in
13173         cxch68*)
13174           # Green Hills C++ Compiler
13175           # _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"
13176           ;;
13177         esac
13178         ;;
13179        darwin*)
13180          # PIC is the default on this platform
13181          # Common symbols not allowed in MH_DYLIB files
13182          case $cc_basename in
13183            xlc*)
13184            lt_prog_compiler_pic_CXX='-qnocommon'
13185            lt_prog_compiler_wl_CXX='-Wl,'
13186            ;;
13187          esac
13188        ;;
13189       dgux*)
13190         case $cc_basename in
13191           ec++*)
13192             lt_prog_compiler_pic_CXX='-KPIC'
13193             ;;
13194           ghcx*)
13195             # Green Hills C++ Compiler
13196             lt_prog_compiler_pic_CXX='-pic'
13197             ;;
13198           *)
13199             ;;
13200         esac
13201         ;;
13202       freebsd* | kfreebsd*-gnu | dragonfly*)
13203         # FreeBSD uses GNU C++
13204         ;;
13205       hpux9* | hpux10* | hpux11*)
13206         case $cc_basename in
13207           CC*)
13208             lt_prog_compiler_wl_CXX='-Wl,'
13209             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13210             if test "$host_cpu" != ia64; then
13211               lt_prog_compiler_pic_CXX='+Z'
13212             fi
13213             ;;
13214           aCC*)
13215             lt_prog_compiler_wl_CXX='-Wl,'
13216             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13217             case "$host_cpu" in
13218             hppa*64*|ia64*)
13219               # +Z the default
13220               ;;
13221             *)
13222               lt_prog_compiler_pic_CXX='+Z'
13223               ;;
13224             esac
13225             ;;
13226           *)
13227             ;;
13228         esac
13229         ;;
13230       irix5* | irix6* | nonstopux*)
13231         case $cc_basename in
13232           CC*)
13233             lt_prog_compiler_wl_CXX='-Wl,'
13234             lt_prog_compiler_static_CXX='-non_shared'
13235             # CC pic flag -KPIC is the default.
13236             ;;
13237           *)
13238             ;;
13239         esac
13240         ;;
13241       linux*)
13242         case $cc_basename in
13243           KCC*)
13244             # KAI C++ Compiler
13245             lt_prog_compiler_wl_CXX='--backend -Wl,'
13246             lt_prog_compiler_pic_CXX='-fPIC'
13247             ;;
13248           icpc* | ecpc*)
13249             # Intel C++
13250             lt_prog_compiler_wl_CXX='-Wl,'
13251             lt_prog_compiler_pic_CXX='-KPIC'
13252             lt_prog_compiler_static_CXX='-static'
13253             ;;
13254           pgCC*)
13255             # Portland Group C++ compiler.
13256             lt_prog_compiler_wl_CXX='-Wl,'
13257             lt_prog_compiler_pic_CXX='-fpic'
13258             lt_prog_compiler_static_CXX='-static'
13259             ;;
13260           cxx*)
13261             # Compaq C++
13262             # Make sure the PIC flag is empty.  It appears that all Alpha
13263             # Linux and Compaq Tru64 Unix objects are PIC.
13264             lt_prog_compiler_pic_CXX=
13265             lt_prog_compiler_static_CXX='-non_shared'
13266             ;;
13267           *)
13268             ;;
13269         esac
13270         ;;
13271       lynxos*)
13272         ;;
13273       m88k*)
13274         ;;
13275       mvs*)
13276         case $cc_basename in
13277           cxx*)
13278             lt_prog_compiler_pic_CXX='-W c,exportall'
13279             ;;
13280           *)
13281             ;;
13282         esac
13283         ;;
13284       netbsd*)
13285         ;;
13286       osf3* | osf4* | osf5*)
13287         case $cc_basename in
13288           KCC*)
13289             lt_prog_compiler_wl_CXX='--backend -Wl,'
13290             ;;
13291           RCC*)
13292             # Rational C++ 2.4.1
13293             lt_prog_compiler_pic_CXX='-pic'
13294             ;;
13295           cxx*)
13296             # Digital/Compaq C++
13297             lt_prog_compiler_wl_CXX='-Wl,'
13298             # Make sure the PIC flag is empty.  It appears that all Alpha
13299             # Linux and Compaq Tru64 Unix objects are PIC.
13300             lt_prog_compiler_pic_CXX=
13301             lt_prog_compiler_static_CXX='-non_shared'
13302             ;;
13303           *)
13304             ;;
13305         esac
13306         ;;
13307       psos*)
13308         ;;
13309       sco*)
13310         case $cc_basename in
13311           CC*)
13312             lt_prog_compiler_pic_CXX='-fPIC'
13313             ;;
13314           *)
13315             ;;
13316         esac
13317         ;;
13318       solaris*)
13319         case $cc_basename in
13320           CC*)
13321             # Sun C++ 4.2, 5.x and Centerline C++
13322             lt_prog_compiler_pic_CXX='-KPIC'
13323             lt_prog_compiler_static_CXX='-Bstatic'
13324             lt_prog_compiler_wl_CXX='-Qoption ld '
13325             ;;
13326           gcx*)
13327             # Green Hills C++ Compiler
13328             lt_prog_compiler_pic_CXX='-PIC'
13329             ;;
13330           *)
13331             ;;
13332         esac
13333         ;;
13334       sunos4*)
13335         case $cc_basename in
13336           CC*)
13337             # Sun C++ 4.x
13338             lt_prog_compiler_pic_CXX='-pic'
13339             lt_prog_compiler_static_CXX='-Bstatic'
13340             ;;
13341           lcc*)
13342             # Lucid
13343             lt_prog_compiler_pic_CXX='-pic'
13344             ;;
13345           *)
13346             ;;
13347         esac
13348         ;;
13349       tandem*)
13350         case $cc_basename in
13351           NCC*)
13352             # NonStop-UX NCC 3.20
13353             lt_prog_compiler_pic_CXX='-KPIC'
13354             ;;
13355           *)
13356             ;;
13357         esac
13358         ;;
13359       unixware*)
13360         ;;
13361       vxworks*)
13362         ;;
13363       *)
13364         lt_prog_compiler_can_build_shared_CXX=no
13365         ;;
13366     esac
13367   fi
13368
13369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13370 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13371
13372 #
13373 # Check to make sure the PIC flag actually works.
13374 #
13375 if test -n "$lt_prog_compiler_pic_CXX"; then
13376
13377 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13379 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13380   echo $ECHO_N "(cached) $ECHO_C" >&6
13381 else
13382   lt_prog_compiler_pic_works_CXX=no
13383   ac_outfile=conftest.$ac_objext
13384    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13385    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13386    # Insert the option either (1) after the last *FLAGS variable, or
13387    # (2) before a word containing "conftest.", or (3) at the end.
13388    # Note that $ac_compile itself does not contain backslashes and begins
13389    # with a dollar sign (not a hyphen), so the echo should work correctly.
13390    # The option is referenced via a variable to avoid confusing sed.
13391    lt_compile=`echo "$ac_compile" | $SED \
13392    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13393    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13394    -e 's:$: $lt_compiler_flag:'`
13395    (eval echo "\"\$as_me:13395: $lt_compile\"" >&5)
13396    (eval "$lt_compile" 2>conftest.err)
13397    ac_status=$?
13398    cat conftest.err >&5
13399    echo "$as_me:13399: \$? = $ac_status" >&5
13400    if (exit $ac_status) && test -s "$ac_outfile"; then
13401      # The compiler can only warn and ignore the option if not recognized
13402      # So say no if there are warnings other than the usual output.
13403      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13404      $SED '/^$/d' conftest.err >conftest.er2
13405      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13406        lt_prog_compiler_pic_works_CXX=yes
13407      fi
13408    fi
13409    $rm conftest*
13410
13411 fi
13412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13413 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13414
13415 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13416     case $lt_prog_compiler_pic_CXX in
13417      "" | " "*) ;;
13418      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13419      esac
13420 else
13421     lt_prog_compiler_pic_CXX=
13422      lt_prog_compiler_can_build_shared_CXX=no
13423 fi
13424
13425 fi
13426 case "$host_os" in
13427   # For platforms which do not support PIC, -DPIC is meaningless:
13428   *djgpp*)
13429     lt_prog_compiler_pic_CXX=
13430     ;;
13431   *)
13432     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13433     ;;
13434 esac
13435
13436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13438 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   lt_cv_prog_compiler_c_o_CXX=no
13442    $rm -r conftest 2>/dev/null
13443    mkdir conftest
13444    cd conftest
13445    mkdir out
13446    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13447
13448    lt_compiler_flag="-o out/conftest2.$ac_objext"
13449    # Insert the option either (1) after the last *FLAGS variable, or
13450    # (2) before a word containing "conftest.", or (3) at the end.
13451    # Note that $ac_compile itself does not contain backslashes and begins
13452    # with a dollar sign (not a hyphen), so the echo should work correctly.
13453    lt_compile=`echo "$ac_compile" | $SED \
13454    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456    -e 's:$: $lt_compiler_flag:'`
13457    (eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
13458    (eval "$lt_compile" 2>out/conftest.err)
13459    ac_status=$?
13460    cat out/conftest.err >&5
13461    echo "$as_me:13461: \$? = $ac_status" >&5
13462    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13463    then
13464      # The compiler can only warn and ignore the option if not recognized
13465      # So say no if there are warnings
13466      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13467      $SED '/^$/d' out/conftest.err >out/conftest.er2
13468      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13469        lt_cv_prog_compiler_c_o_CXX=yes
13470      fi
13471    fi
13472    chmod u+w .
13473    $rm conftest*
13474    # SGI C++ compiler will create directory out/ii_files/ for
13475    # template instantiation
13476    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13477    $rm out/* && rmdir out
13478    cd ..
13479    rmdir conftest
13480    $rm conftest*
13481
13482 fi
13483 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13484 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13485
13486
13487 hard_links="nottested"
13488 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13489   # do not overwrite the value of need_locks provided by the user
13490   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13491 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13492   hard_links=yes
13493   $rm conftest*
13494   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13495   touch conftest.a
13496   ln conftest.a conftest.b 2>&5 || hard_links=no
13497   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13498   echo "$as_me:$LINENO: result: $hard_links" >&5
13499 echo "${ECHO_T}$hard_links" >&6
13500   if test "$hard_links" = no; then
13501     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13502 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13503     need_locks=warn
13504   fi
13505 else
13506   need_locks=no
13507 fi
13508
13509 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13510 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13511
13512   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13513   case $host_os in
13514   aix4* | aix5*)
13515     # If we're using GNU nm, then we don't want the "-C" option.
13516     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13517     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13518       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'
13519     else
13520       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'
13521     fi
13522     ;;
13523   pw32*)
13524     export_symbols_cmds_CXX="$ltdll_cmds"
13525   ;;
13526   cygwin* | mingw*)
13527     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'
13528   ;;
13529   *)
13530     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13531   ;;
13532   esac
13533
13534 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13535 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13536 test "$ld_shlibs_CXX" = no && can_build_shared=no
13537
13538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13539 if test "$GCC" = yes; then
13540   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13541 fi
13542
13543 #
13544 # Do we need to explicitly link libc?
13545 #
13546 case "x$archive_cmds_need_lc_CXX" in
13547 x|xyes)
13548   # Assume -lc should be added
13549   archive_cmds_need_lc_CXX=yes
13550
13551   if test "$enable_shared" = yes && test "$GCC" = yes; then
13552     case $archive_cmds_CXX in
13553     *'~'*)
13554       # FIXME: we may have to deal with multi-command sequences.
13555       ;;
13556     '$CC '*)
13557       # Test whether the compiler implicitly links with -lc since on some
13558       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13559       # to ld, don't add -lc before -lgcc.
13560       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13561 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13562       $rm conftest*
13563       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13564
13565       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13566   (eval $ac_compile) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } 2>conftest.err; then
13570         soname=conftest
13571         lib=conftest
13572         libobjs=conftest.$ac_objext
13573         deplibs=
13574         wl=$lt_prog_compiler_wl_CXX
13575         compiler_flags=-v
13576         linker_flags=-v
13577         verstring=
13578         output_objdir=.
13579         libname=conftest
13580         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13581         allow_undefined_flag_CXX=
13582         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13583   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }
13587         then
13588           archive_cmds_need_lc_CXX=no
13589         else
13590           archive_cmds_need_lc_CXX=yes
13591         fi
13592         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13593       else
13594         cat conftest.err 1>&5
13595       fi
13596       $rm conftest*
13597       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13598 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13599       ;;
13600     esac
13601   fi
13602   ;;
13603 esac
13604
13605 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13606 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13607 library_names_spec=
13608 libname_spec='lib$name'
13609 soname_spec=
13610 shrext_cmds=".so"
13611 postinstall_cmds=
13612 postuninstall_cmds=
13613 finish_cmds=
13614 finish_eval=
13615 shlibpath_var=
13616 shlibpath_overrides_runpath=unknown
13617 version_type=none
13618 dynamic_linker="$host_os ld.so"
13619 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13620 if test "$GCC" = yes; then
13621   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13622   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13623     # if the path contains ";" then we assume it to be the separator
13624     # otherwise default to the standard path separator (i.e. ":") - it is
13625     # assumed that no part of a normal pathname contains ";" but that should
13626     # okay in the real world where ";" in dirpaths is itself problematic.
13627     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13628   else
13629     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13630   fi
13631 else
13632   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13633 fi
13634 need_lib_prefix=unknown
13635 hardcode_into_libs=no
13636
13637 # when you set need_version to no, make sure it does not cause -set_version
13638 # flags to be left without arguments
13639 need_version=unknown
13640
13641 case $host_os in
13642 aix3*)
13643   version_type=linux
13644   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13645   shlibpath_var=LIBPATH
13646
13647   # AIX 3 has no versioning support, so we append a major version to the name.
13648   soname_spec='${libname}${release}${shared_ext}$major'
13649   ;;
13650
13651 aix4* | aix5*)
13652   version_type=linux
13653   need_lib_prefix=no
13654   need_version=no
13655   hardcode_into_libs=yes
13656   if test "$host_cpu" = ia64; then
13657     # AIX 5 supports IA64
13658     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13659     shlibpath_var=LD_LIBRARY_PATH
13660   else
13661     # With GCC up to 2.95.x, collect2 would create an import file
13662     # for dependence libraries.  The import file would start with
13663     # the line `#! .'.  This would cause the generated library to
13664     # depend on `.', always an invalid library.  This was fixed in
13665     # development snapshots of GCC prior to 3.0.
13666     case $host_os in
13667       aix4 | aix4.[01] | aix4.[01].*)
13668       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13669            echo ' yes '
13670            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13671         :
13672       else
13673         can_build_shared=no
13674       fi
13675       ;;
13676     esac
13677     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13678     # soname into executable. Probably we can add versioning support to
13679     # collect2, so additional links can be useful in future.
13680     if test "$aix_use_runtimelinking" = yes; then
13681       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13682       # instead of lib<name>.a to let people know that these are not
13683       # typical AIX shared libraries.
13684       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685     else
13686       # We preserve .a as extension for shared libraries through AIX4.2
13687       # and later when we are not doing run time linking.
13688       library_names_spec='${libname}${release}.a $libname.a'
13689       soname_spec='${libname}${release}${shared_ext}$major'
13690     fi
13691     shlibpath_var=LIBPATH
13692   fi
13693   ;;
13694
13695 amigaos*)
13696   library_names_spec='$libname.ixlibrary $libname.a'
13697   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13698   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'
13699   ;;
13700
13701 beos*)
13702   library_names_spec='${libname}${shared_ext}'
13703   dynamic_linker="$host_os ld.so"
13704   shlibpath_var=LIBRARY_PATH
13705   ;;
13706
13707 bsdi[45]*)
13708   version_type=linux
13709   need_version=no
13710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711   soname_spec='${libname}${release}${shared_ext}$major'
13712   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13713   shlibpath_var=LD_LIBRARY_PATH
13714   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13715   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13716   # the default ld.so.conf also contains /usr/contrib/lib and
13717   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13718   # libtool to hard-code these into programs
13719   ;;
13720
13721 cygwin* | mingw* | pw32*)
13722   version_type=windows
13723   shrext_cmds=".dll"
13724   need_version=no
13725   need_lib_prefix=no
13726
13727   case $GCC,$host_os in
13728   yes,cygwin* | yes,mingw* | yes,pw32*)
13729     library_names_spec='$libname.dll.a'
13730     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13731     postinstall_cmds='base_file=`basename \${file}`~
13732       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13733       dldir=$destdir/`dirname \$dlpath`~
13734       test -d \$dldir || mkdir -p \$dldir~
13735       $install_prog $dir/$dlname \$dldir/$dlname'
13736     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13737       dlpath=$dir/\$dldll~
13738        $rm \$dlpath'
13739     shlibpath_overrides_runpath=yes
13740
13741     case $host_os in
13742     cygwin*)
13743       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13744       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13745       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13746       ;;
13747     mingw*)
13748       # MinGW DLLs use traditional 'lib' prefix
13749       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13750       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13751       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13752         # It is most probably a Windows format PATH printed by
13753         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13754         # path with ; separators, and with drive letters. We can handle the
13755         # drive letters (cygwin fileutils understands them), so leave them,
13756         # especially as we might pass files found there to a mingw objdump,
13757         # which wouldn't understand a cygwinified path. Ahh.
13758         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13759       else
13760         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13761       fi
13762       ;;
13763     pw32*)
13764       # pw32 DLLs use 'pw' prefix rather than 'lib'
13765       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13766       ;;
13767     esac
13768     ;;
13769
13770   *)
13771     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13772     ;;
13773   esac
13774   dynamic_linker='Win32 ld.exe'
13775   # FIXME: first we should search . and the directory the executable is in
13776   shlibpath_var=PATH
13777   ;;
13778
13779 darwin* | rhapsody*)
13780   dynamic_linker="$host_os dyld"
13781   version_type=darwin
13782   need_lib_prefix=no
13783   need_version=no
13784   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13785   soname_spec='${libname}${release}${major}$shared_ext'
13786   shlibpath_overrides_runpath=yes
13787   shlibpath_var=DYLD_LIBRARY_PATH
13788   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13789   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13790   if test "$GCC" = yes; then
13791     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"`
13792   else
13793     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13794   fi
13795   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13796   ;;
13797
13798 dgux*)
13799   version_type=linux
13800   need_lib_prefix=no
13801   need_version=no
13802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13803   soname_spec='${libname}${release}${shared_ext}$major'
13804   shlibpath_var=LD_LIBRARY_PATH
13805   ;;
13806
13807 freebsd1*)
13808   dynamic_linker=no
13809   ;;
13810
13811 kfreebsd*-gnu)
13812   version_type=linux
13813   need_lib_prefix=no
13814   need_version=no
13815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13816   soname_spec='${libname}${release}${shared_ext}$major'
13817   shlibpath_var=LD_LIBRARY_PATH
13818   shlibpath_overrides_runpath=no
13819   hardcode_into_libs=yes
13820   dynamic_linker='GNU ld.so'
13821   ;;
13822
13823 freebsd* | dragonfly*)
13824   # DragonFly does not have aout.  When/if they implement a new
13825   # versioning mechanism, adjust this.
13826   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13827   version_type=freebsd-$objformat
13828   case $version_type in
13829     freebsd-elf*)
13830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13831       need_version=no
13832       need_lib_prefix=no
13833       ;;
13834     freebsd-*)
13835       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13836       need_version=yes
13837       ;;
13838   esac
13839   shlibpath_var=LD_LIBRARY_PATH
13840   case $host_os in
13841   freebsd2*)
13842     shlibpath_overrides_runpath=yes
13843     ;;
13844   freebsd3.[01]* | freebsdelf3.[01]*)
13845     shlibpath_overrides_runpath=yes
13846     hardcode_into_libs=yes
13847     ;;
13848   *) # from 3.2 on
13849     shlibpath_overrides_runpath=no
13850     hardcode_into_libs=yes
13851     ;;
13852   esac
13853   ;;
13854
13855 gnu*)
13856   version_type=linux
13857   need_lib_prefix=no
13858   need_version=no
13859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13860   soname_spec='${libname}${release}${shared_ext}$major'
13861   shlibpath_var=LD_LIBRARY_PATH
13862   hardcode_into_libs=yes
13863   ;;
13864
13865 hpux9* | hpux10* | hpux11*)
13866   # Give a soname corresponding to the major version so that dld.sl refuses to
13867   # link against other versions.
13868   version_type=sunos
13869   need_lib_prefix=no
13870   need_version=no
13871   case "$host_cpu" in
13872   ia64*)
13873     shrext_cmds='.so'
13874     hardcode_into_libs=yes
13875     dynamic_linker="$host_os dld.so"
13876     shlibpath_var=LD_LIBRARY_PATH
13877     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13878     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13879     soname_spec='${libname}${release}${shared_ext}$major'
13880     if test "X$HPUX_IA64_MODE" = X32; then
13881       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13882     else
13883       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13884     fi
13885     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13886     ;;
13887    hppa*64*)
13888      shrext_cmds='.sl'
13889      hardcode_into_libs=yes
13890      dynamic_linker="$host_os dld.sl"
13891      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13892      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13896      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13897      ;;
13898    *)
13899     shrext_cmds='.sl'
13900     dynamic_linker="$host_os dld.sl"
13901     shlibpath_var=SHLIB_PATH
13902     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13904     soname_spec='${libname}${release}${shared_ext}$major'
13905     ;;
13906   esac
13907   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13908   postinstall_cmds='chmod 555 $lib'
13909   ;;
13910
13911 irix5* | irix6* | nonstopux*)
13912   case $host_os in
13913     nonstopux*) version_type=nonstopux ;;
13914     *)
13915         if test "$lt_cv_prog_gnu_ld" = yes; then
13916                 version_type=linux
13917         else
13918                 version_type=irix
13919         fi ;;
13920   esac
13921   need_lib_prefix=no
13922   need_version=no
13923   soname_spec='${libname}${release}${shared_ext}$major'
13924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13925   case $host_os in
13926   irix5* | nonstopux*)
13927     libsuff= shlibsuff=
13928     ;;
13929   *)
13930     case $LD in # libtool.m4 will add one of these switches to LD
13931     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13932       libsuff= shlibsuff= libmagic=32-bit;;
13933     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13934       libsuff=32 shlibsuff=N32 libmagic=N32;;
13935     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13936       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13937     *) libsuff= shlibsuff= libmagic=never-match;;
13938     esac
13939     ;;
13940   esac
13941   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13942   shlibpath_overrides_runpath=no
13943   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13944   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13945   hardcode_into_libs=yes
13946   ;;
13947
13948 # No shared lib support for Linux oldld, aout, or coff.
13949 linux*oldld* | linux*aout* | linux*coff*)
13950   dynamic_linker=no
13951   ;;
13952
13953 # This must be Linux ELF.
13954 linux*)
13955   version_type=linux
13956   need_lib_prefix=no
13957   need_version=no
13958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959   soname_spec='${libname}${release}${shared_ext}$major'
13960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13961   shlibpath_var=LD_LIBRARY_PATH
13962   shlibpath_overrides_runpath=no
13963   # This implies no fast_install, which is unacceptable.
13964   # Some rework will be needed to allow for fast_install
13965   # before this can be enabled.
13966   hardcode_into_libs=yes
13967
13968   # Append ld.so.conf contents to the search path
13969   if test -f /etc/ld.so.conf; then
13970     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' ' '`
13971     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13972   fi
13973
13974   # We used to test for /lib/ld.so.1 and disable shared libraries on
13975   # powerpc, because MkLinux only supported shared libraries with the
13976   # GNU dynamic linker.  Since this was broken with cross compilers,
13977   # most powerpc-linux boxes support dynamic linking these days and
13978   # people can always --disable-shared, the test was removed, and we
13979   # assume the GNU/Linux dynamic linker is in use.
13980   dynamic_linker='GNU/Linux ld.so'
13981   ;;
13982
13983 knetbsd*-gnu)
13984   version_type=linux
13985   need_lib_prefix=no
13986   need_version=no
13987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13988   soname_spec='${libname}${release}${shared_ext}$major'
13989   shlibpath_var=LD_LIBRARY_PATH
13990   shlibpath_overrides_runpath=no
13991   hardcode_into_libs=yes
13992   dynamic_linker='GNU ld.so'
13993   ;;
13994
13995 netbsd*)
13996   version_type=sunos
13997   need_lib_prefix=no
13998   need_version=no
13999   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14001     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14002     dynamic_linker='NetBSD (a.out) ld.so'
14003   else
14004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14005     soname_spec='${libname}${release}${shared_ext}$major'
14006     dynamic_linker='NetBSD ld.elf_so'
14007   fi
14008   shlibpath_var=LD_LIBRARY_PATH
14009   shlibpath_overrides_runpath=yes
14010   hardcode_into_libs=yes
14011   ;;
14012
14013 newsos6)
14014   version_type=linux
14015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016   shlibpath_var=LD_LIBRARY_PATH
14017   shlibpath_overrides_runpath=yes
14018   ;;
14019
14020 nto-qnx*)
14021   version_type=linux
14022   need_lib_prefix=no
14023   need_version=no
14024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025   soname_spec='${libname}${release}${shared_ext}$major'
14026   shlibpath_var=LD_LIBRARY_PATH
14027   shlibpath_overrides_runpath=yes
14028   ;;
14029
14030 openbsd*)
14031   version_type=sunos
14032   need_lib_prefix=no
14033   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14034   case $host_os in
14035     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14036     *)                         need_version=no  ;;
14037   esac
14038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14039   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14040   shlibpath_var=LD_LIBRARY_PATH
14041   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14042     case $host_os in
14043       openbsd2.[89] | openbsd2.[89].*)
14044         shlibpath_overrides_runpath=no
14045         ;;
14046       *)
14047         shlibpath_overrides_runpath=yes
14048         ;;
14049       esac
14050   else
14051     shlibpath_overrides_runpath=yes
14052   fi
14053   ;;
14054
14055 os2*)
14056   libname_spec='$name'
14057   shrext_cmds=".dll"
14058   need_lib_prefix=no
14059   library_names_spec='$libname${shared_ext} $libname.a'
14060   dynamic_linker='OS/2 ld.exe'
14061   shlibpath_var=LIBPATH
14062   ;;
14063
14064 osf3* | osf4* | osf5*)
14065   version_type=osf
14066   need_lib_prefix=no
14067   need_version=no
14068   soname_spec='${libname}${release}${shared_ext}$major'
14069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070   shlibpath_var=LD_LIBRARY_PATH
14071   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14072   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14073   ;;
14074
14075 sco3.2v5*)
14076   version_type=osf
14077   soname_spec='${libname}${release}${shared_ext}$major'
14078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079   shlibpath_var=LD_LIBRARY_PATH
14080   ;;
14081
14082 solaris*)
14083   version_type=linux
14084   need_lib_prefix=no
14085   need_version=no
14086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087   soname_spec='${libname}${release}${shared_ext}$major'
14088   shlibpath_var=LD_LIBRARY_PATH
14089   shlibpath_overrides_runpath=yes
14090   hardcode_into_libs=yes
14091   # ldd complains unless libraries are executable
14092   postinstall_cmds='chmod +x $lib'
14093   ;;
14094
14095 sunos4*)
14096   version_type=sunos
14097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14098   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14099   shlibpath_var=LD_LIBRARY_PATH
14100   shlibpath_overrides_runpath=yes
14101   if test "$with_gnu_ld" = yes; then
14102     need_lib_prefix=no
14103   fi
14104   need_version=yes
14105   ;;
14106
14107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14108   version_type=linux
14109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110   soname_spec='${libname}${release}${shared_ext}$major'
14111   shlibpath_var=LD_LIBRARY_PATH
14112   case $host_vendor in
14113     sni)
14114       shlibpath_overrides_runpath=no
14115       need_lib_prefix=no
14116       export_dynamic_flag_spec='${wl}-Blargedynsym'
14117       runpath_var=LD_RUN_PATH
14118       ;;
14119     siemens)
14120       need_lib_prefix=no
14121       ;;
14122     motorola)
14123       need_lib_prefix=no
14124       need_version=no
14125       shlibpath_overrides_runpath=no
14126       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14127       ;;
14128   esac
14129   ;;
14130
14131 sysv4*MP*)
14132   if test -d /usr/nec ;then
14133     version_type=linux
14134     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14135     soname_spec='$libname${shared_ext}.$major'
14136     shlibpath_var=LD_LIBRARY_PATH
14137   fi
14138   ;;
14139
14140 uts4*)
14141   version_type=linux
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143   soname_spec='${libname}${release}${shared_ext}$major'
14144   shlibpath_var=LD_LIBRARY_PATH
14145   ;;
14146
14147 *)
14148   dynamic_linker=no
14149   ;;
14150 esac
14151 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14152 echo "${ECHO_T}$dynamic_linker" >&6
14153 test "$dynamic_linker" = no && can_build_shared=no
14154
14155 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14156 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14157 hardcode_action_CXX=
14158 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14159    test -n "$runpath_var_CXX" || \
14160    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14161
14162   # We can hardcode non-existant directories.
14163   if test "$hardcode_direct_CXX" != no &&
14164      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14165      # have to relink, otherwise we might link with an installed library
14166      # when we should be linking with a yet-to-be-installed one
14167      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14168      test "$hardcode_minus_L_CXX" != no; then
14169     # Linking always hardcodes the temporary library directory.
14170     hardcode_action_CXX=relink
14171   else
14172     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14173     hardcode_action_CXX=immediate
14174   fi
14175 else
14176   # We cannot hardcode anything, or else we can only hardcode existing
14177   # directories.
14178   hardcode_action_CXX=unsupported
14179 fi
14180 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14181 echo "${ECHO_T}$hardcode_action_CXX" >&6
14182
14183 if test "$hardcode_action_CXX" = relink; then
14184   # Fast installation is not supported
14185   enable_fast_install=no
14186 elif test "$shlibpath_overrides_runpath" = yes ||
14187      test "$enable_shared" = no; then
14188   # Fast installation is not necessary
14189   enable_fast_install=needless
14190 fi
14191
14192 striplib=
14193 old_striplib=
14194 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14195 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14196 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14197   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14198   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14199   echo "$as_me:$LINENO: result: yes" >&5
14200 echo "${ECHO_T}yes" >&6
14201 else
14202 # FIXME - insert some real tests, host_os isn't really good enough
14203   case $host_os in
14204    darwin*)
14205        if test -n "$STRIP" ; then
14206          striplib="$STRIP -x"
14207          echo "$as_me:$LINENO: result: yes" >&5
14208 echo "${ECHO_T}yes" >&6
14209        else
14210   echo "$as_me:$LINENO: result: no" >&5
14211 echo "${ECHO_T}no" >&6
14212 fi
14213        ;;
14214    *)
14215   echo "$as_me:$LINENO: result: no" >&5
14216 echo "${ECHO_T}no" >&6
14217     ;;
14218   esac
14219 fi
14220
14221 if test "x$enable_dlopen" != xyes; then
14222   enable_dlopen=unknown
14223   enable_dlopen_self=unknown
14224   enable_dlopen_self_static=unknown
14225 else
14226   lt_cv_dlopen=no
14227   lt_cv_dlopen_libs=
14228
14229   case $host_os in
14230   beos*)
14231     lt_cv_dlopen="load_add_on"
14232     lt_cv_dlopen_libs=
14233     lt_cv_dlopen_self=yes
14234     ;;
14235
14236   mingw* | pw32*)
14237     lt_cv_dlopen="LoadLibrary"
14238     lt_cv_dlopen_libs=
14239    ;;
14240
14241   cygwin*)
14242     lt_cv_dlopen="dlopen"
14243     lt_cv_dlopen_libs=
14244    ;;
14245
14246   darwin*)
14247   # if libdl is installed we need to link against it
14248     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14251   echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253   ac_check_lib_save_LIBS=$LIBS
14254 LIBS="-ldl  $LIBS"
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h.  */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h.  */
14261
14262 /* Override any gcc2 internal prototype to avoid an error.  */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 /* We use char because int might match the return type of a gcc2
14267    builtin and then its argument prototype would still apply.  */
14268 char dlopen ();
14269 int
14270 main ()
14271 {
14272 dlopen ();
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext conftest$ac_exeext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14279   (eval $ac_link) 2>conftest.er1
14280   ac_status=$?
14281   grep -v '^ *+' conftest.er1 >conftest.err
14282   rm -f conftest.er1
14283   cat conftest.err >&5
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } &&
14286          { ac_try='test -z "$ac_cxx_werror_flag"
14287                          || test ! -s conftest.err'
14288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289   (eval $ac_try) 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; } &&
14293          { ac_try='test -s conftest$ac_exeext'
14294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295   (eval $ac_try) 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; }; then
14299   ac_cv_lib_dl_dlopen=yes
14300 else
14301   echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14303
14304 ac_cv_lib_dl_dlopen=no
14305 fi
14306 rm -f conftest.err conftest.$ac_objext \
14307       conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14309 fi
14310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14312 if test $ac_cv_lib_dl_dlopen = yes; then
14313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14314 else
14315
14316     lt_cv_dlopen="dyld"
14317     lt_cv_dlopen_libs=
14318     lt_cv_dlopen_self=yes
14319
14320 fi
14321
14322    ;;
14323
14324   *)
14325     echo "$as_me:$LINENO: checking for shl_load" >&5
14326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14327 if test "${ac_cv_func_shl_load+set}" = set; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14338 #define shl_load innocuous_shl_load
14339
14340 /* System header to define __stub macros and hopefully few prototypes,
14341     which can conflict with char shl_load (); below.
14342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343     <limits.h> exists even on freestanding compilers.  */
14344
14345 #ifdef __STDC__
14346 # include <limits.h>
14347 #else
14348 # include <assert.h>
14349 #endif
14350
14351 #undef shl_load
14352
14353 /* Override any gcc2 internal prototype to avoid an error.  */
14354 #ifdef __cplusplus
14355 extern "C"
14356 {
14357 #endif
14358 /* We use char because int might match the return type of a gcc2
14359    builtin and then its argument prototype would still apply.  */
14360 char shl_load ();
14361 /* The GNU C library defines this for functions which it implements
14362     to always fail with ENOSYS.  Some functions are actually named
14363     something starting with __ and the normal name is an alias.  */
14364 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14365 choke me
14366 #else
14367 char (*f) () = shl_load;
14368 #endif
14369 #ifdef __cplusplus
14370 }
14371 #endif
14372
14373 int
14374 main ()
14375 {
14376 return f != shl_load;
14377   ;
14378   return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest.$ac_objext conftest$ac_exeext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383   (eval $ac_link) 2>conftest.er1
14384   ac_status=$?
14385   grep -v '^ *+' conftest.er1 >conftest.err
14386   rm -f conftest.er1
14387   cat conftest.err >&5
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); } &&
14390          { ac_try='test -z "$ac_cxx_werror_flag"
14391                          || test ! -s conftest.err'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; } &&
14397          { ac_try='test -s conftest$ac_exeext'
14398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399   (eval $ac_try) 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; }; then
14403   ac_cv_func_shl_load=yes
14404 else
14405   echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408 ac_cv_func_shl_load=no
14409 fi
14410 rm -f conftest.err conftest.$ac_objext \
14411       conftest$ac_exeext conftest.$ac_ext
14412 fi
14413 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14415 if test $ac_cv_func_shl_load = yes; then
14416   lt_cv_dlopen="shl_load"
14417 else
14418   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14419 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14420 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423   ac_check_lib_save_LIBS=$LIBS
14424 LIBS="-ldld  $LIBS"
14425 cat >conftest.$ac_ext <<_ACEOF
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431
14432 /* Override any gcc2 internal prototype to avoid an error.  */
14433 #ifdef __cplusplus
14434 extern "C"
14435 #endif
14436 /* We use char because int might match the return type of a gcc2
14437    builtin and then its argument prototype would still apply.  */
14438 char shl_load ();
14439 int
14440 main ()
14441 {
14442 shl_load ();
14443   ;
14444   return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449   (eval $ac_link) 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } &&
14456          { ac_try='test -z "$ac_cxx_werror_flag"
14457                          || test ! -s conftest.err'
14458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459   (eval $ac_try) 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); }; } &&
14463          { ac_try='test -s conftest$ac_exeext'
14464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465   (eval $ac_try) 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); }; }; then
14469   ac_cv_lib_dld_shl_load=yes
14470 else
14471   echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 ac_cv_lib_dld_shl_load=no
14475 fi
14476 rm -f conftest.err conftest.$ac_objext \
14477       conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14479 fi
14480 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14481 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14482 if test $ac_cv_lib_dld_shl_load = yes; then
14483   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14484 else
14485   echo "$as_me:$LINENO: checking for dlopen" >&5
14486 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14487 if test "${ac_cv_func_dlopen+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h.  */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h.  */
14496 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14498 #define dlopen innocuous_dlopen
14499
14500 /* System header to define __stub macros and hopefully few prototypes,
14501     which can conflict with char dlopen (); below.
14502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503     <limits.h> exists even on freestanding compilers.  */
14504
14505 #ifdef __STDC__
14506 # include <limits.h>
14507 #else
14508 # include <assert.h>
14509 #endif
14510
14511 #undef dlopen
14512
14513 /* Override any gcc2 internal prototype to avoid an error.  */
14514 #ifdef __cplusplus
14515 extern "C"
14516 {
14517 #endif
14518 /* We use char because int might match the return type of a gcc2
14519    builtin and then its argument prototype would still apply.  */
14520 char dlopen ();
14521 /* The GNU C library defines this for functions which it implements
14522     to always fail with ENOSYS.  Some functions are actually named
14523     something starting with __ and the normal name is an alias.  */
14524 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14525 choke me
14526 #else
14527 char (*f) () = dlopen;
14528 #endif
14529 #ifdef __cplusplus
14530 }
14531 #endif
14532
14533 int
14534 main ()
14535 {
14536 return f != dlopen;
14537   ;
14538   return 0;
14539 }
14540 _ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543   (eval $ac_link) 2>conftest.er1
14544   ac_status=$?
14545   grep -v '^ *+' conftest.er1 >conftest.err
14546   rm -f conftest.er1
14547   cat conftest.err >&5
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); } &&
14550          { ac_try='test -z "$ac_cxx_werror_flag"
14551                          || test ! -s conftest.err'
14552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553   (eval $ac_try) 2>&5
14554   ac_status=$?
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); }; } &&
14557          { ac_try='test -s conftest$ac_exeext'
14558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559   (eval $ac_try) 2>&5
14560   ac_status=$?
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); }; }; then
14563   ac_cv_func_dlopen=yes
14564 else
14565   echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 ac_cv_func_dlopen=no
14569 fi
14570 rm -f conftest.err conftest.$ac_objext \
14571       conftest$ac_exeext conftest.$ac_ext
14572 fi
14573 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14574 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14575 if test $ac_cv_func_dlopen = yes; then
14576   lt_cv_dlopen="dlopen"
14577 else
14578   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14579 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14580 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14581   echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583   ac_check_lib_save_LIBS=$LIBS
14584 LIBS="-ldl  $LIBS"
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h.  */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h.  */
14591
14592 /* Override any gcc2 internal prototype to avoid an error.  */
14593 #ifdef __cplusplus
14594 extern "C"
14595 #endif
14596 /* We use char because int might match the return type of a gcc2
14597    builtin and then its argument prototype would still apply.  */
14598 char dlopen ();
14599 int
14600 main ()
14601 {
14602 dlopen ();
14603   ;
14604   return 0;
14605 }
14606 _ACEOF
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14609   (eval $ac_link) 2>conftest.er1
14610   ac_status=$?
14611   grep -v '^ *+' conftest.er1 >conftest.err
14612   rm -f conftest.er1
14613   cat conftest.err >&5
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); } &&
14616          { ac_try='test -z "$ac_cxx_werror_flag"
14617                          || test ! -s conftest.err'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; } &&
14623          { ac_try='test -s conftest$ac_exeext'
14624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625   (eval $ac_try) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; }; then
14629   ac_cv_lib_dl_dlopen=yes
14630 else
14631   echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634 ac_cv_lib_dl_dlopen=no
14635 fi
14636 rm -f conftest.err conftest.$ac_objext \
14637       conftest$ac_exeext conftest.$ac_ext
14638 LIBS=$ac_check_lib_save_LIBS
14639 fi
14640 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14642 if test $ac_cv_lib_dl_dlopen = yes; then
14643   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14644 else
14645   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14646 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14647 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14648   echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650   ac_check_lib_save_LIBS=$LIBS
14651 LIBS="-lsvld  $LIBS"
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h.  */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h.  */
14658
14659 /* Override any gcc2 internal prototype to avoid an error.  */
14660 #ifdef __cplusplus
14661 extern "C"
14662 #endif
14663 /* We use char because int might match the return type of a gcc2
14664    builtin and then its argument prototype would still apply.  */
14665 char dlopen ();
14666 int
14667 main ()
14668 {
14669 dlopen ();
14670   ;
14671   return 0;
14672 }
14673 _ACEOF
14674 rm -f conftest.$ac_objext conftest$ac_exeext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676   (eval $ac_link) 2>conftest.er1
14677   ac_status=$?
14678   grep -v '^ *+' conftest.er1 >conftest.err
14679   rm -f conftest.er1
14680   cat conftest.err >&5
14681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682   (exit $ac_status); } &&
14683          { ac_try='test -z "$ac_cxx_werror_flag"
14684                          || test ! -s conftest.err'
14685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686   (eval $ac_try) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); }; } &&
14690          { ac_try='test -s conftest$ac_exeext'
14691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692   (eval $ac_try) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; }; then
14696   ac_cv_lib_svld_dlopen=yes
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701 ac_cv_lib_svld_dlopen=no
14702 fi
14703 rm -f conftest.err conftest.$ac_objext \
14704       conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14706 fi
14707 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14708 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14709 if test $ac_cv_lib_svld_dlopen = yes; then
14710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14711 else
14712   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14713 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14714 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   ac_check_lib_save_LIBS=$LIBS
14718 LIBS="-ldld  $LIBS"
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725
14726 /* Override any gcc2 internal prototype to avoid an error.  */
14727 #ifdef __cplusplus
14728 extern "C"
14729 #endif
14730 /* We use char because int might match the return type of a gcc2
14731    builtin and then its argument prototype would still apply.  */
14732 char dld_link ();
14733 int
14734 main ()
14735 {
14736 dld_link ();
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 rm -f conftest.$ac_objext conftest$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743   (eval $ac_link) 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } &&
14750          { ac_try='test -z "$ac_cxx_werror_flag"
14751                          || test ! -s conftest.err'
14752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753   (eval $ac_try) 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; } &&
14757          { ac_try='test -s conftest$ac_exeext'
14758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759   (eval $ac_try) 2>&5
14760   ac_status=$?
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); }; }; then
14763   ac_cv_lib_dld_dld_link=yes
14764 else
14765   echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 ac_cv_lib_dld_dld_link=no
14769 fi
14770 rm -f conftest.err conftest.$ac_objext \
14771       conftest$ac_exeext conftest.$ac_ext
14772 LIBS=$ac_check_lib_save_LIBS
14773 fi
14774 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14775 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14776 if test $ac_cv_lib_dld_dld_link = yes; then
14777   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14778 fi
14779
14780
14781 fi
14782
14783
14784 fi
14785
14786
14787 fi
14788
14789
14790 fi
14791
14792
14793 fi
14794
14795     ;;
14796   esac
14797
14798   if test "x$lt_cv_dlopen" != xno; then
14799     enable_dlopen=yes
14800   else
14801     enable_dlopen=no
14802   fi
14803
14804   case $lt_cv_dlopen in
14805   dlopen)
14806     save_CPPFLAGS="$CPPFLAGS"
14807     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14808
14809     save_LDFLAGS="$LDFLAGS"
14810     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14811
14812     save_LIBS="$LIBS"
14813     LIBS="$lt_cv_dlopen_libs $LIBS"
14814
14815     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14816 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14817 if test "${lt_cv_dlopen_self+set}" = set; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820           if test "$cross_compiling" = yes; then :
14821   lt_cv_dlopen_self=cross
14822 else
14823   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14824   lt_status=$lt_dlunknown
14825   cat > conftest.$ac_ext <<EOF
14826 #line 14826 "configure"
14827 #include "confdefs.h"
14828
14829 #if HAVE_DLFCN_H
14830 #include <dlfcn.h>
14831 #endif
14832
14833 #include <stdio.h>
14834
14835 #ifdef RTLD_GLOBAL
14836 #  define LT_DLGLOBAL           RTLD_GLOBAL
14837 #else
14838 #  ifdef DL_GLOBAL
14839 #    define LT_DLGLOBAL         DL_GLOBAL
14840 #  else
14841 #    define LT_DLGLOBAL         0
14842 #  endif
14843 #endif
14844
14845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14846    find out it does not work in some platform. */
14847 #ifndef LT_DLLAZY_OR_NOW
14848 #  ifdef RTLD_LAZY
14849 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14850 #  else
14851 #    ifdef DL_LAZY
14852 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14853 #    else
14854 #      ifdef RTLD_NOW
14855 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14856 #      else
14857 #        ifdef DL_NOW
14858 #          define LT_DLLAZY_OR_NOW      DL_NOW
14859 #        else
14860 #          define LT_DLLAZY_OR_NOW      0
14861 #        endif
14862 #      endif
14863 #    endif
14864 #  endif
14865 #endif
14866
14867 #ifdef __cplusplus
14868 extern "C" void exit (int);
14869 #endif
14870
14871 void fnord() { int i=42;}
14872 int main ()
14873 {
14874   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14875   int status = $lt_dlunknown;
14876
14877   if (self)
14878     {
14879       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14880       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14881       /* dlclose (self); */
14882     }
14883
14884     exit (status);
14885 }
14886 EOF
14887   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888   (eval $ac_link) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14892     (./conftest; exit; ) 2>/dev/null
14893     lt_status=$?
14894     case x$lt_status in
14895       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14896       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14897       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14898     esac
14899   else :
14900     # compilation failed
14901     lt_cv_dlopen_self=no
14902   fi
14903 fi
14904 rm -fr conftest*
14905
14906
14907 fi
14908 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14909 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14910
14911     if test "x$lt_cv_dlopen_self" = xyes; then
14912       LDFLAGS="$LDFLAGS $link_static_flag"
14913       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14914 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14915 if test "${lt_cv_dlopen_self_static+set}" = set; then
14916   echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918           if test "$cross_compiling" = yes; then :
14919   lt_cv_dlopen_self_static=cross
14920 else
14921   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14922   lt_status=$lt_dlunknown
14923   cat > conftest.$ac_ext <<EOF
14924 #line 14924 "configure"
14925 #include "confdefs.h"
14926
14927 #if HAVE_DLFCN_H
14928 #include <dlfcn.h>
14929 #endif
14930
14931 #include <stdio.h>
14932
14933 #ifdef RTLD_GLOBAL
14934 #  define LT_DLGLOBAL           RTLD_GLOBAL
14935 #else
14936 #  ifdef DL_GLOBAL
14937 #    define LT_DLGLOBAL         DL_GLOBAL
14938 #  else
14939 #    define LT_DLGLOBAL         0
14940 #  endif
14941 #endif
14942
14943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14944    find out it does not work in some platform. */
14945 #ifndef LT_DLLAZY_OR_NOW
14946 #  ifdef RTLD_LAZY
14947 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14948 #  else
14949 #    ifdef DL_LAZY
14950 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14951 #    else
14952 #      ifdef RTLD_NOW
14953 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14954 #      else
14955 #        ifdef DL_NOW
14956 #          define LT_DLLAZY_OR_NOW      DL_NOW
14957 #        else
14958 #          define LT_DLLAZY_OR_NOW      0
14959 #        endif
14960 #      endif
14961 #    endif
14962 #  endif
14963 #endif
14964
14965 #ifdef __cplusplus
14966 extern "C" void exit (int);
14967 #endif
14968
14969 void fnord() { int i=42;}
14970 int main ()
14971 {
14972   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14973   int status = $lt_dlunknown;
14974
14975   if (self)
14976     {
14977       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14978       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14979       /* dlclose (self); */
14980     }
14981
14982     exit (status);
14983 }
14984 EOF
14985   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986   (eval $ac_link) 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14990     (./conftest; exit; ) 2>/dev/null
14991     lt_status=$?
14992     case x$lt_status in
14993       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14994       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14995       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14996     esac
14997   else :
14998     # compilation failed
14999     lt_cv_dlopen_self_static=no
15000   fi
15001 fi
15002 rm -fr conftest*
15003
15004
15005 fi
15006 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15007 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15008     fi
15009
15010     CPPFLAGS="$save_CPPFLAGS"
15011     LDFLAGS="$save_LDFLAGS"
15012     LIBS="$save_LIBS"
15013     ;;
15014   esac
15015
15016   case $lt_cv_dlopen_self in
15017   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15018   *) enable_dlopen_self=unknown ;;
15019   esac
15020
15021   case $lt_cv_dlopen_self_static in
15022   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15023   *) enable_dlopen_self_static=unknown ;;
15024   esac
15025 fi
15026
15027
15028 # The else clause should only fire when bootstrapping the
15029 # libtool distribution, otherwise you forgot to ship ltmain.sh
15030 # with your package, and you will get complaints that there are
15031 # no rules to generate ltmain.sh.
15032 if test -f "$ltmain"; then
15033   # See if we are running on zsh, and set the options which allow our commands through
15034   # without removal of \ escapes.
15035   if test -n "${ZSH_VERSION+set}" ; then
15036     setopt NO_GLOB_SUBST
15037   fi
15038   # Now quote all the things that may contain metacharacters while being
15039   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15040   # variables and quote the copies for generation of the libtool script.
15041   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15042     SED SHELL STRIP \
15043     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15044     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15045     deplibs_check_method reload_flag reload_cmds need_locks \
15046     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15047     lt_cv_sys_global_symbol_to_c_name_address \
15048     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15049     old_postinstall_cmds old_postuninstall_cmds \
15050     compiler_CXX \
15051     CC_CXX \
15052     LD_CXX \
15053     lt_prog_compiler_wl_CXX \
15054     lt_prog_compiler_pic_CXX \
15055     lt_prog_compiler_static_CXX \
15056     lt_prog_compiler_no_builtin_flag_CXX \
15057     export_dynamic_flag_spec_CXX \
15058     thread_safe_flag_spec_CXX \
15059     whole_archive_flag_spec_CXX \
15060     enable_shared_with_static_runtimes_CXX \
15061     old_archive_cmds_CXX \
15062     old_archive_from_new_cmds_CXX \
15063     predep_objects_CXX \
15064     postdep_objects_CXX \
15065     predeps_CXX \
15066     postdeps_CXX \
15067     compiler_lib_search_path_CXX \
15068     archive_cmds_CXX \
15069     archive_expsym_cmds_CXX \
15070     postinstall_cmds_CXX \
15071     postuninstall_cmds_CXX \
15072     old_archive_from_expsyms_cmds_CXX \
15073     allow_undefined_flag_CXX \
15074     no_undefined_flag_CXX \
15075     export_symbols_cmds_CXX \
15076     hardcode_libdir_flag_spec_CXX \
15077     hardcode_libdir_flag_spec_ld_CXX \
15078     hardcode_libdir_separator_CXX \
15079     hardcode_automatic_CXX \
15080     module_cmds_CXX \
15081     module_expsym_cmds_CXX \
15082     lt_cv_prog_compiler_c_o_CXX \
15083     exclude_expsyms_CXX \
15084     include_expsyms_CXX; do
15085
15086     case $var in
15087     old_archive_cmds_CXX | \
15088     old_archive_from_new_cmds_CXX | \
15089     archive_cmds_CXX | \
15090     archive_expsym_cmds_CXX | \
15091     module_cmds_CXX | \
15092     module_expsym_cmds_CXX | \
15093     old_archive_from_expsyms_cmds_CXX | \
15094     export_symbols_cmds_CXX | \
15095     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15096     postinstall_cmds | postuninstall_cmds | \
15097     old_postinstall_cmds | old_postuninstall_cmds | \
15098     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15099       # Double-quote double-evaled strings.
15100       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15101       ;;
15102     *)
15103       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15104       ;;
15105     esac
15106   done
15107
15108   case $lt_echo in
15109   *'\$0 --fallback-echo"')
15110     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15111     ;;
15112   esac
15113
15114 cfgfile="$ofile"
15115
15116   cat <<__EOF__ >> "$cfgfile"
15117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15118
15119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15120
15121 # Shell to use when invoking shell scripts.
15122 SHELL=$lt_SHELL
15123
15124 # Whether or not to build shared libraries.
15125 build_libtool_libs=$enable_shared
15126
15127 # Whether or not to build static libraries.
15128 build_old_libs=$enable_static
15129
15130 # Whether or not to add -lc for building shared libraries.
15131 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15132
15133 # Whether or not to disallow shared libs when runtime libs are static
15134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15135
15136 # Whether or not to optimize for fast installation.
15137 fast_install=$enable_fast_install
15138
15139 # The host system.
15140 host_alias=$host_alias
15141 host=$host
15142 host_os=$host_os
15143
15144 # The build system.
15145 build_alias=$build_alias
15146 build=$build
15147 build_os=$build_os
15148
15149 # An echo program that does not interpret backslashes.
15150 echo=$lt_echo
15151
15152 # The archiver.
15153 AR=$lt_AR
15154 AR_FLAGS=$lt_AR_FLAGS
15155
15156 # A C compiler.
15157 LTCC=$lt_LTCC
15158
15159 # A language-specific compiler.
15160 CC=$lt_compiler_CXX
15161
15162 # Is the compiler the GNU C compiler?
15163 with_gcc=$GCC_CXX
15164
15165 # An ERE matcher.
15166 EGREP=$lt_EGREP
15167
15168 # The linker used to build libraries.
15169 LD=$lt_LD_CXX
15170
15171 # Whether we need hard or soft links.
15172 LN_S=$lt_LN_S
15173
15174 # A BSD-compatible nm program.
15175 NM=$lt_NM
15176
15177 # A symbol stripping program
15178 STRIP=$lt_STRIP
15179
15180 # Used to examine libraries when file_magic_cmd begins "file"
15181 MAGIC_CMD=$MAGIC_CMD
15182
15183 # Used on cygwin: DLL creation program.
15184 DLLTOOL="$DLLTOOL"
15185
15186 # Used on cygwin: object dumper.
15187 OBJDUMP="$OBJDUMP"
15188
15189 # Used on cygwin: assembler.
15190 AS="$AS"
15191
15192 # The name of the directory that contains temporary libtool files.
15193 objdir=$objdir
15194
15195 # How to create reloadable object files.
15196 reload_flag=$lt_reload_flag
15197 reload_cmds=$lt_reload_cmds
15198
15199 # How to pass a linker flag through the compiler.
15200 wl=$lt_lt_prog_compiler_wl_CXX
15201
15202 # Object file suffix (normally "o").
15203 objext="$ac_objext"
15204
15205 # Old archive suffix (normally "a").
15206 libext="$libext"
15207
15208 # Shared library suffix (normally ".so").
15209 shrext_cmds='$shrext_cmds'
15210
15211 # Executable file suffix (normally "").
15212 exeext="$exeext"
15213
15214 # Additional compiler flags for building library objects.
15215 pic_flag=$lt_lt_prog_compiler_pic_CXX
15216 pic_mode=$pic_mode
15217
15218 # What is the maximum length of a command?
15219 max_cmd_len=$lt_cv_sys_max_cmd_len
15220
15221 # Does compiler simultaneously support -c and -o options?
15222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15223
15224 # Must we lock files when doing compilation?
15225 need_locks=$lt_need_locks
15226
15227 # Do we need the lib prefix for modules?
15228 need_lib_prefix=$need_lib_prefix
15229
15230 # Do we need a version for libraries?
15231 need_version=$need_version
15232
15233 # Whether dlopen is supported.
15234 dlopen_support=$enable_dlopen
15235
15236 # Whether dlopen of programs is supported.
15237 dlopen_self=$enable_dlopen_self
15238
15239 # Whether dlopen of statically linked programs is supported.
15240 dlopen_self_static=$enable_dlopen_self_static
15241
15242 # Compiler flag to prevent dynamic linking.
15243 link_static_flag=$lt_lt_prog_compiler_static_CXX
15244
15245 # Compiler flag to turn off builtin functions.
15246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15247
15248 # Compiler flag to allow reflexive dlopens.
15249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15250
15251 # Compiler flag to generate shared objects directly from archives.
15252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15253
15254 # Compiler flag to generate thread-safe objects.
15255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15256
15257 # Library versioning type.
15258 version_type=$version_type
15259
15260 # Format of library name prefix.
15261 libname_spec=$lt_libname_spec
15262
15263 # List of archive names.  First name is the real one, the rest are links.
15264 # The last name is the one that the linker finds with -lNAME.
15265 library_names_spec=$lt_library_names_spec
15266
15267 # The coded name of the library, if different from the real name.
15268 soname_spec=$lt_soname_spec
15269
15270 # Commands used to build and install an old-style archive.
15271 RANLIB=$lt_RANLIB
15272 old_archive_cmds=$lt_old_archive_cmds_CXX
15273 old_postinstall_cmds=$lt_old_postinstall_cmds
15274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15275
15276 # Create an old-style archive from a shared archive.
15277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15278
15279 # Create a temporary old-style archive to link instead of a shared archive.
15280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15281
15282 # Commands used to build and install a shared archive.
15283 archive_cmds=$lt_archive_cmds_CXX
15284 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15285 postinstall_cmds=$lt_postinstall_cmds
15286 postuninstall_cmds=$lt_postuninstall_cmds
15287
15288 # Commands used to build a loadable module (assumed same as above if empty)
15289 module_cmds=$lt_module_cmds_CXX
15290 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15291
15292 # Commands to strip libraries.
15293 old_striplib=$lt_old_striplib
15294 striplib=$lt_striplib
15295
15296 # Dependencies to place before the objects being linked to create a
15297 # shared library.
15298 predep_objects=$lt_predep_objects_CXX
15299
15300 # Dependencies to place after the objects being linked to create a
15301 # shared library.
15302 postdep_objects=$lt_postdep_objects_CXX
15303
15304 # Dependencies to place before the objects being linked to create a
15305 # shared library.
15306 predeps=$lt_predeps_CXX
15307
15308 # Dependencies to place after the objects being linked to create a
15309 # shared library.
15310 postdeps=$lt_postdeps_CXX
15311
15312 # The library search path used internally by the compiler when linking
15313 # a shared library.
15314 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15315
15316 # Method to check whether dependent libraries are shared objects.
15317 deplibs_check_method=$lt_deplibs_check_method
15318
15319 # Command to use when deplibs_check_method == file_magic.
15320 file_magic_cmd=$lt_file_magic_cmd
15321
15322 # Flag that allows shared libraries with undefined symbols to be built.
15323 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15324
15325 # Flag that forces no undefined symbols.
15326 no_undefined_flag=$lt_no_undefined_flag_CXX
15327
15328 # Commands used to finish a libtool library installation in a directory.
15329 finish_cmds=$lt_finish_cmds
15330
15331 # Same as above, but a single script fragment to be evaled but not shown.
15332 finish_eval=$lt_finish_eval
15333
15334 # Take the output of nm and produce a listing of raw symbols and C names.
15335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15336
15337 # Transform the output of nm in a proper C declaration
15338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15339
15340 # Transform the output of nm in a C name address pair
15341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15342
15343 # This is the shared library runtime path variable.
15344 runpath_var=$runpath_var
15345
15346 # This is the shared library path variable.
15347 shlibpath_var=$shlibpath_var
15348
15349 # Is shlibpath searched before the hard-coded library search path?
15350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15351
15352 # How to hardcode a shared library path into an executable.
15353 hardcode_action=$hardcode_action_CXX
15354
15355 # Whether we should hardcode library paths into libraries.
15356 hardcode_into_libs=$hardcode_into_libs
15357
15358 # Flag to hardcode \$libdir into a binary during linking.
15359 # This must work even if \$libdir does not exist.
15360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15361
15362 # If ld is used when linking, flag to hardcode \$libdir into
15363 # a binary during linking. This must work even if \$libdir does
15364 # not exist.
15365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15366
15367 # Whether we need a single -rpath flag with a separated argument.
15368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15369
15370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15371 # resulting binary.
15372 hardcode_direct=$hardcode_direct_CXX
15373
15374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15375 # resulting binary.
15376 hardcode_minus_L=$hardcode_minus_L_CXX
15377
15378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15379 # the resulting binary.
15380 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15381
15382 # Set to yes if building a shared library automatically hardcodes DIR into the library
15383 # and all subsequent libraries and executables linked against it.
15384 hardcode_automatic=$hardcode_automatic_CXX
15385
15386 # Variables whose values should be saved in libtool wrapper scripts and
15387 # restored at relink time.
15388 variables_saved_for_relink="$variables_saved_for_relink"
15389
15390 # Whether libtool must link a program against all its dependency libraries.
15391 link_all_deplibs=$link_all_deplibs_CXX
15392
15393 # Compile-time system search path for libraries
15394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15395
15396 # Run-time system search path for libraries
15397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15398
15399 # Fix the shell variable \$srcfile for the compiler.
15400 fix_srcfile_path="$fix_srcfile_path_CXX"
15401
15402 # Set to yes if exported symbols are required.
15403 always_export_symbols=$always_export_symbols_CXX
15404
15405 # The commands to list exported symbols.
15406 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15407
15408 # The commands to extract the exported symbol list from a shared archive.
15409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15410
15411 # Symbols that should not be listed in the preloaded symbols.
15412 exclude_expsyms=$lt_exclude_expsyms_CXX
15413
15414 # Symbols that must always be exported.
15415 include_expsyms=$lt_include_expsyms_CXX
15416
15417 # ### END LIBTOOL TAG CONFIG: $tagname
15418
15419 __EOF__
15420
15421
15422 else
15423   # If there is no Makefile yet, we rely on a make rule to execute
15424   # `config.status --recheck' to rerun these tests and create the
15425   # libtool script then.
15426   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15427   if test -f "$ltmain_in"; then
15428     test -f Makefile && make "$ltmain"
15429   fi
15430 fi
15431
15432
15433 ac_ext=c
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15438
15439 CC=$lt_save_CC
15440 LDCXX=$LD
15441 LD=$lt_save_LD
15442 GCC=$lt_save_GCC
15443 with_gnu_ldcxx=$with_gnu_ld
15444 with_gnu_ld=$lt_save_with_gnu_ld
15445 lt_cv_path_LDCXX=$lt_cv_path_LD
15446 lt_cv_path_LD=$lt_save_path_LD
15447 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15448 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15449
15450         else
15451           tagname=""
15452         fi
15453         ;;
15454
15455       F77)
15456         if test -n "$F77" && test "X$F77" != "Xno"; then
15457
15458 ac_ext=f
15459 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15460 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15462
15463
15464 archive_cmds_need_lc_F77=no
15465 allow_undefined_flag_F77=
15466 always_export_symbols_F77=no
15467 archive_expsym_cmds_F77=
15468 export_dynamic_flag_spec_F77=
15469 hardcode_direct_F77=no
15470 hardcode_libdir_flag_spec_F77=
15471 hardcode_libdir_flag_spec_ld_F77=
15472 hardcode_libdir_separator_F77=
15473 hardcode_minus_L_F77=no
15474 hardcode_automatic_F77=no
15475 module_cmds_F77=
15476 module_expsym_cmds_F77=
15477 link_all_deplibs_F77=unknown
15478 old_archive_cmds_F77=$old_archive_cmds
15479 no_undefined_flag_F77=
15480 whole_archive_flag_spec_F77=
15481 enable_shared_with_static_runtimes_F77=no
15482
15483 # Source file extension for f77 test sources.
15484 ac_ext=f
15485
15486 # Object file extension for compiled f77 test sources.
15487 objext=o
15488 objext_F77=$objext
15489
15490 # Code to be used in simple compile tests
15491 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15492
15493 # Code to be used in simple link tests
15494 lt_simple_link_test_code="      program t\n      end\n"
15495
15496 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15497
15498 # If no C compiler was specified, use CC.
15499 LTCC=${LTCC-"$CC"}
15500
15501 # Allow CC to be a program name with arguments.
15502 compiler=$CC
15503
15504
15505 # save warnings/boilerplate of simple test code
15506 ac_outfile=conftest.$ac_objext
15507 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15509 _lt_compiler_boilerplate=`cat conftest.err`
15510 $rm conftest*
15511
15512 ac_outfile=conftest.$ac_objext
15513 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15515 _lt_linker_boilerplate=`cat conftest.err`
15516 $rm conftest*
15517
15518
15519 # Allow CC to be a program name with arguments.
15520 lt_save_CC="$CC"
15521 CC=${F77-"f77"}
15522 compiler=$CC
15523 compiler_F77=$CC
15524 for cc_temp in $compiler""; do
15525   case $cc_temp in
15526     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15527     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15528     \-*) ;;
15529     *) break;;
15530   esac
15531 done
15532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15533
15534
15535 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15536 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15537 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15538 echo "${ECHO_T}$can_build_shared" >&6
15539
15540 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15541 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15542 test "$can_build_shared" = "no" && enable_shared=no
15543
15544 # On AIX, shared libraries and static libraries use the same namespace, and
15545 # are all built from PIC.
15546 case "$host_os" in
15547 aix3*)
15548   test "$enable_shared" = yes && enable_static=no
15549   if test -n "$RANLIB"; then
15550     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15551     postinstall_cmds='$RANLIB $lib'
15552   fi
15553   ;;
15554 aix4* | aix5*)
15555   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15556     test "$enable_shared" = yes && enable_static=no
15557   fi
15558   ;;
15559 esac
15560 echo "$as_me:$LINENO: result: $enable_shared" >&5
15561 echo "${ECHO_T}$enable_shared" >&6
15562
15563 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15564 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15565 # Make sure either enable_shared or enable_static is yes.
15566 test "$enable_shared" = yes || enable_static=yes
15567 echo "$as_me:$LINENO: result: $enable_static" >&5
15568 echo "${ECHO_T}$enable_static" >&6
15569
15570 test "$ld_shlibs_F77" = no && can_build_shared=no
15571
15572 GCC_F77="$G77"
15573 LD_F77="$LD"
15574
15575 lt_prog_compiler_wl_F77=
15576 lt_prog_compiler_pic_F77=
15577 lt_prog_compiler_static_F77=
15578
15579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15581
15582   if test "$GCC" = yes; then
15583     lt_prog_compiler_wl_F77='-Wl,'
15584     lt_prog_compiler_static_F77='-static'
15585
15586     case $host_os in
15587       aix*)
15588       # All AIX code is PIC.
15589       if test "$host_cpu" = ia64; then
15590         # AIX 5 now supports IA64 processor
15591         lt_prog_compiler_static_F77='-Bstatic'
15592       fi
15593       ;;
15594
15595     amigaos*)
15596       # FIXME: we need at least 68020 code to build shared libraries, but
15597       # adding the `-m68020' flag to GCC prevents building anything better,
15598       # like `-m68040'.
15599       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15600       ;;
15601
15602     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15603       # PIC is the default for these OSes.
15604       ;;
15605
15606     mingw* | pw32* | os2*)
15607       # This hack is so that the source file can tell whether it is being
15608       # built for inclusion in a dll (and should export symbols for example).
15609       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15610       ;;
15611
15612     darwin* | rhapsody*)
15613       # PIC is the default on this platform
15614       # Common symbols not allowed in MH_DYLIB files
15615       lt_prog_compiler_pic_F77='-fno-common'
15616       ;;
15617
15618     msdosdjgpp*)
15619       # Just because we use GCC doesn't mean we suddenly get shared libraries
15620       # on systems that don't support them.
15621       lt_prog_compiler_can_build_shared_F77=no
15622       enable_shared=no
15623       ;;
15624
15625     sysv4*MP*)
15626       if test -d /usr/nec; then
15627         lt_prog_compiler_pic_F77=-Kconform_pic
15628       fi
15629       ;;
15630
15631     hpux*)
15632       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15633       # not for PA HP-UX.
15634       case "$host_cpu" in
15635       hppa*64*|ia64*)
15636         # +Z the default
15637         ;;
15638       *)
15639         lt_prog_compiler_pic_F77='-fPIC'
15640         ;;
15641       esac
15642       ;;
15643
15644     *)
15645       lt_prog_compiler_pic_F77='-fPIC'
15646       ;;
15647     esac
15648   else
15649     # PORTME Check for flag to pass linker flags through the system compiler.
15650     case $host_os in
15651     aix*)
15652       lt_prog_compiler_wl_F77='-Wl,'
15653       if test "$host_cpu" = ia64; then
15654         # AIX 5 now supports IA64 processor
15655         lt_prog_compiler_static_F77='-Bstatic'
15656       else
15657         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15658       fi
15659       ;;
15660       darwin*)
15661         # PIC is the default on this platform
15662         # Common symbols not allowed in MH_DYLIB files
15663        case $cc_basename in
15664          xlc*)
15665          lt_prog_compiler_pic_F77='-qnocommon'
15666          lt_prog_compiler_wl_F77='-Wl,'
15667          ;;
15668        esac
15669        ;;
15670
15671     mingw* | pw32* | os2*)
15672       # This hack is so that the source file can tell whether it is being
15673       # built for inclusion in a dll (and should export symbols for example).
15674       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15675       ;;
15676
15677     hpux9* | hpux10* | hpux11*)
15678       lt_prog_compiler_wl_F77='-Wl,'
15679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15680       # not for PA HP-UX.
15681       case "$host_cpu" in
15682       hppa*64*|ia64*)
15683         # +Z the default
15684         ;;
15685       *)
15686         lt_prog_compiler_pic_F77='+Z'
15687         ;;
15688       esac
15689       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15690       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15691       ;;
15692
15693     irix5* | irix6* | nonstopux*)
15694       lt_prog_compiler_wl_F77='-Wl,'
15695       # PIC (with -KPIC) is the default.
15696       lt_prog_compiler_static_F77='-non_shared'
15697       ;;
15698
15699     newsos6)
15700       lt_prog_compiler_pic_F77='-KPIC'
15701       lt_prog_compiler_static_F77='-Bstatic'
15702       ;;
15703
15704     linux*)
15705       case $cc_basename in
15706       icc* | ecc*)
15707         lt_prog_compiler_wl_F77='-Wl,'
15708         lt_prog_compiler_pic_F77='-KPIC'
15709         lt_prog_compiler_static_F77='-static'
15710         ;;
15711       pgcc* | pgf77* | pgf90*)
15712         # Portland Group compilers (*not* the Pentium gcc compiler,
15713         # which looks to be a dead project)
15714         lt_prog_compiler_wl_F77='-Wl,'
15715         lt_prog_compiler_pic_F77='-fpic'
15716         lt_prog_compiler_static_F77='-static'
15717         ;;
15718       ccc*)
15719         lt_prog_compiler_wl_F77='-Wl,'
15720         # All Alpha code is PIC.
15721         lt_prog_compiler_static_F77='-non_shared'
15722         ;;
15723       esac
15724       ;;
15725
15726     osf3* | osf4* | osf5*)
15727       lt_prog_compiler_wl_F77='-Wl,'
15728       # All OSF/1 code is PIC.
15729       lt_prog_compiler_static_F77='-non_shared'
15730       ;;
15731
15732     sco3.2v5*)
15733       lt_prog_compiler_pic_F77='-Kpic'
15734       lt_prog_compiler_static_F77='-dn'
15735       ;;
15736
15737     solaris*)
15738       lt_prog_compiler_pic_F77='-KPIC'
15739       lt_prog_compiler_static_F77='-Bstatic'
15740       case $cc_basename in
15741       f77* | f90* | f95*)
15742         lt_prog_compiler_wl_F77='-Qoption ld ';;
15743       *)
15744         lt_prog_compiler_wl_F77='-Wl,';;
15745       esac
15746       ;;
15747
15748     sunos4*)
15749       lt_prog_compiler_wl_F77='-Qoption ld '
15750       lt_prog_compiler_pic_F77='-PIC'
15751       lt_prog_compiler_static_F77='-Bstatic'
15752       ;;
15753
15754     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15755       lt_prog_compiler_wl_F77='-Wl,'
15756       lt_prog_compiler_pic_F77='-KPIC'
15757       lt_prog_compiler_static_F77='-Bstatic'
15758       ;;
15759
15760     sysv4*MP*)
15761       if test -d /usr/nec ;then
15762         lt_prog_compiler_pic_F77='-Kconform_pic'
15763         lt_prog_compiler_static_F77='-Bstatic'
15764       fi
15765       ;;
15766
15767     unicos*)
15768       lt_prog_compiler_wl_F77='-Wl,'
15769       lt_prog_compiler_can_build_shared_F77=no
15770       ;;
15771
15772     uts4*)
15773       lt_prog_compiler_pic_F77='-pic'
15774       lt_prog_compiler_static_F77='-Bstatic'
15775       ;;
15776
15777     *)
15778       lt_prog_compiler_can_build_shared_F77=no
15779       ;;
15780     esac
15781   fi
15782
15783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15784 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15785
15786 #
15787 # Check to make sure the PIC flag actually works.
15788 #
15789 if test -n "$lt_prog_compiler_pic_F77"; then
15790
15791 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15792 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15793 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   lt_prog_compiler_pic_works_F77=no
15797   ac_outfile=conftest.$ac_objext
15798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15800    # Insert the option either (1) after the last *FLAGS variable, or
15801    # (2) before a word containing "conftest.", or (3) at the end.
15802    # Note that $ac_compile itself does not contain backslashes and begins
15803    # with a dollar sign (not a hyphen), so the echo should work correctly.
15804    # The option is referenced via a variable to avoid confusing sed.
15805    lt_compile=`echo "$ac_compile" | $SED \
15806    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15808    -e 's:$: $lt_compiler_flag:'`
15809    (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
15810    (eval "$lt_compile" 2>conftest.err)
15811    ac_status=$?
15812    cat conftest.err >&5
15813    echo "$as_me:15813: \$? = $ac_status" >&5
15814    if (exit $ac_status) && test -s "$ac_outfile"; then
15815      # The compiler can only warn and ignore the option if not recognized
15816      # So say no if there are warnings other than the usual output.
15817      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15818      $SED '/^$/d' conftest.err >conftest.er2
15819      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15820        lt_prog_compiler_pic_works_F77=yes
15821      fi
15822    fi
15823    $rm conftest*
15824
15825 fi
15826 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15827 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15828
15829 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15830     case $lt_prog_compiler_pic_F77 in
15831      "" | " "*) ;;
15832      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15833      esac
15834 else
15835     lt_prog_compiler_pic_F77=
15836      lt_prog_compiler_can_build_shared_F77=no
15837 fi
15838
15839 fi
15840 case "$host_os" in
15841   # For platforms which do not support PIC, -DPIC is meaningless:
15842   *djgpp*)
15843     lt_prog_compiler_pic_F77=
15844     ;;
15845   *)
15846     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15847     ;;
15848 esac
15849
15850 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15851 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15852 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   lt_cv_prog_compiler_c_o_F77=no
15856    $rm -r conftest 2>/dev/null
15857    mkdir conftest
15858    cd conftest
15859    mkdir out
15860    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15861
15862    lt_compiler_flag="-o out/conftest2.$ac_objext"
15863    # Insert the option either (1) after the last *FLAGS variable, or
15864    # (2) before a word containing "conftest.", or (3) at the end.
15865    # Note that $ac_compile itself does not contain backslashes and begins
15866    # with a dollar sign (not a hyphen), so the echo should work correctly.
15867    lt_compile=`echo "$ac_compile" | $SED \
15868    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15869    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15870    -e 's:$: $lt_compiler_flag:'`
15871    (eval echo "\"\$as_me:15871: $lt_compile\"" >&5)
15872    (eval "$lt_compile" 2>out/conftest.err)
15873    ac_status=$?
15874    cat out/conftest.err >&5
15875    echo "$as_me:15875: \$? = $ac_status" >&5
15876    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15877    then
15878      # The compiler can only warn and ignore the option if not recognized
15879      # So say no if there are warnings
15880      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15881      $SED '/^$/d' out/conftest.err >out/conftest.er2
15882      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15883        lt_cv_prog_compiler_c_o_F77=yes
15884      fi
15885    fi
15886    chmod u+w .
15887    $rm conftest*
15888    # SGI C++ compiler will create directory out/ii_files/ for
15889    # template instantiation
15890    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15891    $rm out/* && rmdir out
15892    cd ..
15893    rmdir conftest
15894    $rm conftest*
15895
15896 fi
15897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15898 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15899
15900
15901 hard_links="nottested"
15902 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15903   # do not overwrite the value of need_locks provided by the user
15904   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15905 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15906   hard_links=yes
15907   $rm conftest*
15908   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15909   touch conftest.a
15910   ln conftest.a conftest.b 2>&5 || hard_links=no
15911   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15912   echo "$as_me:$LINENO: result: $hard_links" >&5
15913 echo "${ECHO_T}$hard_links" >&6
15914   if test "$hard_links" = no; then
15915     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15916 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15917     need_locks=warn
15918   fi
15919 else
15920   need_locks=no
15921 fi
15922
15923 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15925
15926   runpath_var=
15927   allow_undefined_flag_F77=
15928   enable_shared_with_static_runtimes_F77=no
15929   archive_cmds_F77=
15930   archive_expsym_cmds_F77=
15931   old_archive_From_new_cmds_F77=
15932   old_archive_from_expsyms_cmds_F77=
15933   export_dynamic_flag_spec_F77=
15934   whole_archive_flag_spec_F77=
15935   thread_safe_flag_spec_F77=
15936   hardcode_libdir_flag_spec_F77=
15937   hardcode_libdir_flag_spec_ld_F77=
15938   hardcode_libdir_separator_F77=
15939   hardcode_direct_F77=no
15940   hardcode_minus_L_F77=no
15941   hardcode_shlibpath_var_F77=unsupported
15942   link_all_deplibs_F77=unknown
15943   hardcode_automatic_F77=no
15944   module_cmds_F77=
15945   module_expsym_cmds_F77=
15946   always_export_symbols_F77=no
15947   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15948   # include_expsyms should be a list of space-separated symbols to be *always*
15949   # included in the symbol list
15950   include_expsyms_F77=
15951   # exclude_expsyms can be an extended regexp of symbols to exclude
15952   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15953   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15954   # as well as any symbol that contains `d'.
15955   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15956   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15957   # platforms (ab)use it in PIC code, but their linkers get confused if
15958   # the symbol is explicitly referenced.  Since portable code cannot
15959   # rely on this symbol name, it's probably fine to never include it in
15960   # preloaded symbol tables.
15961   extract_expsyms_cmds=
15962   # Just being paranoid about ensuring that cc_basename is set.
15963   for cc_temp in $compiler""; do
15964   case $cc_temp in
15965     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15966     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15967     \-*) ;;
15968     *) break;;
15969   esac
15970 done
15971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15972
15973   case $host_os in
15974   cygwin* | mingw* | pw32*)
15975     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15976     # When not using gcc, we currently assume that we are using
15977     # Microsoft Visual C++.
15978     if test "$GCC" != yes; then
15979       with_gnu_ld=no
15980     fi
15981     ;;
15982   openbsd*)
15983     with_gnu_ld=no
15984     ;;
15985   esac
15986
15987   ld_shlibs_F77=yes
15988   if test "$with_gnu_ld" = yes; then
15989     # If archive_cmds runs LD, not CC, wlarc should be empty
15990     wlarc='${wl}'
15991
15992     # Set some defaults for GNU ld with shared library support. These
15993     # are reset later if shared libraries are not supported. Putting them
15994     # here allows them to be overridden if necessary.
15995     runpath_var=LD_RUN_PATH
15996     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15997     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15998     # ancient GNU ld didn't support --whole-archive et. al.
15999     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16000         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16001       else
16002         whole_archive_flag_spec_F77=
16003     fi
16004     supports_anon_versioning=no
16005     case `$LD -v 2>/dev/null` in
16006       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16007       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16008       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16009       *\ 2.11.*) ;; # other 2.11 versions
16010       *) supports_anon_versioning=yes ;;
16011     esac
16012
16013     # See if GNU ld supports shared libraries.
16014     case $host_os in
16015     aix3* | aix4* | aix5*)
16016       # On AIX/PPC, the GNU linker is very broken
16017       if test "$host_cpu" != ia64; then
16018         ld_shlibs_F77=no
16019         cat <<EOF 1>&2
16020
16021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16022 *** to be unable to reliably create shared libraries on AIX.
16023 *** Therefore, libtool is disabling shared libraries support.  If you
16024 *** really care for shared libraries, you may want to modify your PATH
16025 *** so that a non-GNU linker is found, and then restart.
16026
16027 EOF
16028       fi
16029       ;;
16030
16031     amigaos*)
16032       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)'
16033       hardcode_libdir_flag_spec_F77='-L$libdir'
16034       hardcode_minus_L_F77=yes
16035
16036       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16037       # that the semantics of dynamic libraries on AmigaOS, at least up
16038       # to version 4, is to share data among multiple programs linked
16039       # with the same dynamic library.  Since this doesn't match the
16040       # behavior of shared libraries on other platforms, we can't use
16041       # them.
16042       ld_shlibs_F77=no
16043       ;;
16044
16045     beos*)
16046       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16047         allow_undefined_flag_F77=unsupported
16048         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16049         # support --undefined.  This deserves some investigation.  FIXME
16050         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16051       else
16052         ld_shlibs_F77=no
16053       fi
16054       ;;
16055
16056     cygwin* | mingw* | pw32*)
16057       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16058       # as there is no search path for DLLs.
16059       hardcode_libdir_flag_spec_F77='-L$libdir'
16060       allow_undefined_flag_F77=unsupported
16061       always_export_symbols_F77=no
16062       enable_shared_with_static_runtimes_F77=yes
16063       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16064
16065       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16066         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16067         # If the export-symbols file already is a .def file (1st line
16068         # is EXPORTS), use it as is; otherwise, prepend...
16069         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16070           cp $export_symbols $output_objdir/$soname.def;
16071         else
16072           echo EXPORTS > $output_objdir/$soname.def;
16073           cat $export_symbols >> $output_objdir/$soname.def;
16074         fi~
16075         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16076       else
16077         ld_shlibs_F77=no
16078       fi
16079       ;;
16080
16081     linux*)
16082       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16083         tmp_addflag=
16084         case $cc_basename,$host_cpu in
16085         pgcc*)                          # Portland Group C compiler
16086           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'
16087           tmp_addflag=' $pic_flag'
16088           ;;
16089         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16090           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'
16091           tmp_addflag=' $pic_flag -Mnomain' ;;
16092         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16093           tmp_addflag=' -i_dynamic' ;;
16094         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16095           tmp_addflag=' -i_dynamic -nofor_main' ;;
16096         ifc* | ifort*)                  # Intel Fortran compiler
16097           tmp_addflag=' -nofor_main' ;;
16098         esac
16099         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100
16101         if test $supports_anon_versioning = yes; then
16102           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16103   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16104   $echo "local: *; };" >> $output_objdir/$libname.ver~
16105           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16106         fi
16107       else
16108         ld_shlibs_F77=no
16109       fi
16110       ;;
16111
16112     netbsd*)
16113       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16114         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16115         wlarc=
16116       else
16117         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16118         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16119       fi
16120       ;;
16121
16122     solaris* | sysv5*)
16123       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16124         ld_shlibs_F77=no
16125         cat <<EOF 1>&2
16126
16127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16128 *** create shared libraries on Solaris systems.  Therefore, libtool
16129 *** is disabling shared libraries support.  We urge you to upgrade GNU
16130 *** binutils to release 2.9.1 or newer.  Another option is to modify
16131 *** your PATH or compiler configuration so that the native linker is
16132 *** used, and then restart.
16133
16134 EOF
16135       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16136         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16138       else
16139         ld_shlibs_F77=no
16140       fi
16141       ;;
16142
16143     sunos4*)
16144       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16145       wlarc=
16146       hardcode_direct_F77=yes
16147       hardcode_shlibpath_var_F77=no
16148       ;;
16149
16150     *)
16151       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16152         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16153         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16154       else
16155         ld_shlibs_F77=no
16156       fi
16157       ;;
16158     esac
16159
16160     if test "$ld_shlibs_F77" = no; then
16161       runpath_var=
16162       hardcode_libdir_flag_spec_F77=
16163       export_dynamic_flag_spec_F77=
16164       whole_archive_flag_spec_F77=
16165     fi
16166   else
16167     # PORTME fill in a description of your system's linker (not GNU ld)
16168     case $host_os in
16169     aix3*)
16170       allow_undefined_flag_F77=unsupported
16171       always_export_symbols_F77=yes
16172       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'
16173       # Note: this linker hardcodes the directories in LIBPATH if there
16174       # are no directories specified by -L.
16175       hardcode_minus_L_F77=yes
16176       if test "$GCC" = yes && test -z "$link_static_flag"; then
16177         # Neither direct hardcoding nor static linking is supported with a
16178         # broken collect2.
16179         hardcode_direct_F77=unsupported
16180       fi
16181       ;;
16182
16183     aix4* | aix5*)
16184       if test "$host_cpu" = ia64; then
16185         # On IA64, the linker does run time linking by default, so we don't
16186         # have to do anything special.
16187         aix_use_runtimelinking=no
16188         exp_sym_flag='-Bexport'
16189         no_entry_flag=""
16190       else
16191         # If we're using GNU nm, then we don't want the "-C" option.
16192         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16193         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16194           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'
16195         else
16196           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'
16197         fi
16198         aix_use_runtimelinking=no
16199
16200         # Test if we are trying to use run time linking or normal
16201         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16202         # need to do runtime linking.
16203         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16204           for ld_flag in $LDFLAGS; do
16205           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16206             aix_use_runtimelinking=yes
16207             break
16208           fi
16209           done
16210         esac
16211
16212         exp_sym_flag='-bexport'
16213         no_entry_flag='-bnoentry'
16214       fi
16215
16216       # When large executables or shared objects are built, AIX ld can
16217       # have problems creating the table of contents.  If linking a library
16218       # or program results in "error TOC overflow" add -mminimal-toc to
16219       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16220       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16221
16222       archive_cmds_F77=''
16223       hardcode_direct_F77=yes
16224       hardcode_libdir_separator_F77=':'
16225       link_all_deplibs_F77=yes
16226
16227       if test "$GCC" = yes; then
16228         case $host_os in aix4.[012]|aix4.[012].*)
16229         # We only want to do this on AIX 4.2 and lower, the check
16230         # below for broken collect2 doesn't work under 4.3+
16231           collect2name=`${CC} -print-prog-name=collect2`
16232           if test -f "$collect2name" && \
16233            strings "$collect2name" | grep resolve_lib_name >/dev/null
16234           then
16235           # We have reworked collect2
16236           hardcode_direct_F77=yes
16237           else
16238           # We have old collect2
16239           hardcode_direct_F77=unsupported
16240           # It fails to find uninstalled libraries when the uninstalled
16241           # path is not listed in the libpath.  Setting hardcode_minus_L
16242           # to unsupported forces relinking
16243           hardcode_minus_L_F77=yes
16244           hardcode_libdir_flag_spec_F77='-L$libdir'
16245           hardcode_libdir_separator_F77=
16246           fi
16247         esac
16248         shared_flag='-shared'
16249         if test "$aix_use_runtimelinking" = yes; then
16250           shared_flag="$shared_flag "'${wl}-G'
16251         fi
16252       else
16253         # not using gcc
16254         if test "$host_cpu" = ia64; then
16255         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16256         # chokes on -Wl,-G. The following line is correct:
16257           shared_flag='-G'
16258         else
16259         if test "$aix_use_runtimelinking" = yes; then
16260             shared_flag='${wl}-G'
16261           else
16262             shared_flag='${wl}-bM:SRE'
16263         fi
16264         fi
16265       fi
16266
16267       # It seems that -bexpall does not export symbols beginning with
16268       # underscore (_), so it is better to generate a list of symbols to export.
16269       always_export_symbols_F77=yes
16270       if test "$aix_use_runtimelinking" = yes; then
16271         # Warning - without using the other runtime loading flags (-brtl),
16272         # -berok will link without error, but may produce a broken library.
16273         allow_undefined_flag_F77='-berok'
16274        # Determine the default libpath from the value encoded in an empty executable.
16275        cat >conftest.$ac_ext <<_ACEOF
16276       program main
16277
16278       end
16279 _ACEOF
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282   (eval $ac_link) 2>conftest.er1
16283   ac_status=$?
16284   grep -v '^ *+' conftest.er1 >conftest.err
16285   rm -f conftest.er1
16286   cat conftest.err >&5
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); } &&
16289          { ac_try='test -z "$ac_f77_werror_flag"
16290                          || test ! -s conftest.err'
16291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292   (eval $ac_try) 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); }; } &&
16296          { ac_try='test -s conftest$ac_exeext'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; }; then
16302
16303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16304 }'`
16305 # Check for a 64-bit object if we didn't find anything.
16306 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; }
16307 }'`; fi
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 fi
16313 rm -f conftest.err conftest.$ac_objext \
16314       conftest$ac_exeext conftest.$ac_ext
16315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16316
16317        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16318         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"
16319        else
16320         if test "$host_cpu" = ia64; then
16321           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16322           allow_undefined_flag_F77="-z nodefs"
16323           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"
16324         else
16325          # Determine the default libpath from the value encoded in an empty executable.
16326          cat >conftest.$ac_ext <<_ACEOF
16327       program main
16328
16329       end
16330 _ACEOF
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16333   (eval $ac_link) 2>conftest.er1
16334   ac_status=$?
16335   grep -v '^ *+' conftest.er1 >conftest.err
16336   rm -f conftest.er1
16337   cat conftest.err >&5
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); } &&
16340          { ac_try='test -z "$ac_f77_werror_flag"
16341                          || test ! -s conftest.err'
16342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343   (eval $ac_try) 2>&5
16344   ac_status=$?
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); }; } &&
16347          { ac_try='test -s conftest$ac_exeext'
16348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349   (eval $ac_try) 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; }; then
16353
16354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16355 }'`
16356 # Check for a 64-bit object if we didn't find anything.
16357 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; }
16358 }'`; fi
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 fi
16364 rm -f conftest.err conftest.$ac_objext \
16365       conftest$ac_exeext conftest.$ac_ext
16366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16367
16368          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16369           # Warning - without using the other run time loading flags,
16370           # -berok will link without error, but may produce a broken library.
16371           no_undefined_flag_F77=' ${wl}-bernotok'
16372           allow_undefined_flag_F77=' ${wl}-berok'
16373           # -bexpall does not export symbols beginning with underscore (_)
16374           always_export_symbols_F77=yes
16375           # Exported symbols can be pulled into shared objects from archives
16376           whole_archive_flag_spec_F77=' '
16377           archive_cmds_need_lc_F77=yes
16378           # This is similar to how AIX traditionally builds it's shared libraries.
16379           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'
16380         fi
16381       fi
16382       ;;
16383
16384     amigaos*)
16385       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)'
16386       hardcode_libdir_flag_spec_F77='-L$libdir'
16387       hardcode_minus_L_F77=yes
16388       # see comment about different semantics on the GNU ld section
16389       ld_shlibs_F77=no
16390       ;;
16391
16392     bsdi[45]*)
16393       export_dynamic_flag_spec_F77=-rdynamic
16394       ;;
16395
16396     cygwin* | mingw* | pw32*)
16397       # When not using gcc, we currently assume that we are using
16398       # Microsoft Visual C++.
16399       # hardcode_libdir_flag_spec is actually meaningless, as there is
16400       # no search path for DLLs.
16401       hardcode_libdir_flag_spec_F77=' '
16402       allow_undefined_flag_F77=unsupported
16403       # Tell ltmain to make .lib files, not .a files.
16404       libext=lib
16405       # Tell ltmain to make .dll files, not .so files.
16406       shrext_cmds=".dll"
16407       # FIXME: Setting linknames here is a bad hack.
16408       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16409       # The linker will automatically build a .lib file if we build a DLL.
16410       old_archive_From_new_cmds_F77='true'
16411       # FIXME: Should let the user specify the lib program.
16412       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16413       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16414       enable_shared_with_static_runtimes_F77=yes
16415       ;;
16416
16417     darwin* | rhapsody*)
16418       case "$host_os" in
16419         rhapsody* | darwin1.[012])
16420          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16421          ;;
16422        *) # Darwin 1.3 on
16423          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16424            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16425          else
16426            case ${MACOSX_DEPLOYMENT_TARGET} in
16427              10.[012])
16428                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16429                ;;
16430              10.*)
16431                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16432                ;;
16433            esac
16434          fi
16435          ;;
16436       esac
16437       archive_cmds_need_lc_F77=no
16438       hardcode_direct_F77=no
16439       hardcode_automatic_F77=yes
16440       hardcode_shlibpath_var_F77=unsupported
16441       whole_archive_flag_spec_F77=''
16442       link_all_deplibs_F77=yes
16443     if test "$GCC" = yes ; then
16444         output_verbose_link_cmd='echo'
16445         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16446       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16447       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16448       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}'
16449       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}'
16450     else
16451       case $cc_basename in
16452         xlc*)
16453          output_verbose_link_cmd='echo'
16454          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16455          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16456           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16457          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}'
16458           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}'
16459           ;;
16460        *)
16461          ld_shlibs_F77=no
16462           ;;
16463       esac
16464     fi
16465       ;;
16466
16467     dgux*)
16468       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16469       hardcode_libdir_flag_spec_F77='-L$libdir'
16470       hardcode_shlibpath_var_F77=no
16471       ;;
16472
16473     freebsd1*)
16474       ld_shlibs_F77=no
16475       ;;
16476
16477     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16478     # support.  Future versions do this automatically, but an explicit c++rt0.o
16479     # does not break anything, and helps significantly (at the cost of a little
16480     # extra space).
16481     freebsd2.2*)
16482       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16483       hardcode_libdir_flag_spec_F77='-R$libdir'
16484       hardcode_direct_F77=yes
16485       hardcode_shlibpath_var_F77=no
16486       ;;
16487
16488     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16489     freebsd2*)
16490       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16491       hardcode_direct_F77=yes
16492       hardcode_minus_L_F77=yes
16493       hardcode_shlibpath_var_F77=no
16494       ;;
16495
16496     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16497     freebsd* | kfreebsd*-gnu | dragonfly*)
16498       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16499       hardcode_libdir_flag_spec_F77='-R$libdir'
16500       hardcode_direct_F77=yes
16501       hardcode_shlibpath_var_F77=no
16502       ;;
16503
16504     hpux9*)
16505       if test "$GCC" = yes; then
16506         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'
16507       else
16508         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'
16509       fi
16510       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16511       hardcode_libdir_separator_F77=:
16512       hardcode_direct_F77=yes
16513
16514       # hardcode_minus_L: Not really in the search PATH,
16515       # but as the default location of the library.
16516       hardcode_minus_L_F77=yes
16517       export_dynamic_flag_spec_F77='${wl}-E'
16518       ;;
16519
16520     hpux10* | hpux11*)
16521       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16522         case "$host_cpu" in
16523         hppa*64*|ia64*)
16524           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16525           ;;
16526         *)
16527           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16528           ;;
16529         esac
16530       else
16531         case "$host_cpu" in
16532         hppa*64*|ia64*)
16533           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16534           ;;
16535         *)
16536           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16537           ;;
16538         esac
16539       fi
16540       if test "$with_gnu_ld" = no; then
16541         case "$host_cpu" in
16542         hppa*64*)
16543           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16544           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16545           hardcode_libdir_separator_F77=:
16546           hardcode_direct_F77=no
16547           hardcode_shlibpath_var_F77=no
16548           ;;
16549         ia64*)
16550           hardcode_libdir_flag_spec_F77='-L$libdir'
16551           hardcode_direct_F77=no
16552           hardcode_shlibpath_var_F77=no
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         *)
16559           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16560           hardcode_libdir_separator_F77=:
16561           hardcode_direct_F77=yes
16562           export_dynamic_flag_spec_F77='${wl}-E'
16563
16564           # hardcode_minus_L: Not really in the search PATH,
16565           # but as the default location of the library.
16566           hardcode_minus_L_F77=yes
16567           ;;
16568         esac
16569       fi
16570       ;;
16571
16572     irix5* | irix6* | nonstopux*)
16573       if test "$GCC" = yes; then
16574         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'
16575       else
16576         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'
16577         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16578       fi
16579       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16580       hardcode_libdir_separator_F77=:
16581       link_all_deplibs_F77=yes
16582       ;;
16583
16584     netbsd*)
16585       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16586         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16587       else
16588         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16589       fi
16590       hardcode_libdir_flag_spec_F77='-R$libdir'
16591       hardcode_direct_F77=yes
16592       hardcode_shlibpath_var_F77=no
16593       ;;
16594
16595     newsos6)
16596       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597       hardcode_direct_F77=yes
16598       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16599       hardcode_libdir_separator_F77=:
16600       hardcode_shlibpath_var_F77=no
16601       ;;
16602
16603     openbsd*)
16604       hardcode_direct_F77=yes
16605       hardcode_shlibpath_var_F77=no
16606       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16607         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16608         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16609         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16610         export_dynamic_flag_spec_F77='${wl}-E'
16611       else
16612        case $host_os in
16613          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16614            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16615            hardcode_libdir_flag_spec_F77='-R$libdir'
16616            ;;
16617          *)
16618            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16619            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16620            ;;
16621        esac
16622       fi
16623       ;;
16624
16625     os2*)
16626       hardcode_libdir_flag_spec_F77='-L$libdir'
16627       hardcode_minus_L_F77=yes
16628       allow_undefined_flag_F77=unsupported
16629       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'
16630       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16631       ;;
16632
16633     osf3*)
16634       if test "$GCC" = yes; then
16635         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16636         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'
16637       else
16638         allow_undefined_flag_F77=' -expect_unresolved \*'
16639         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'
16640       fi
16641       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16642       hardcode_libdir_separator_F77=:
16643       ;;
16644
16645     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16646       if test "$GCC" = yes; then
16647         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16648         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'
16649         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16650       else
16651         allow_undefined_flag_F77=' -expect_unresolved \*'
16652         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'
16653         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~
16654         $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'
16655
16656         # Both c and cxx compiler support -rpath directly
16657         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16658       fi
16659       hardcode_libdir_separator_F77=:
16660       ;;
16661
16662     sco3.2v5*)
16663       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664       hardcode_shlibpath_var_F77=no
16665       export_dynamic_flag_spec_F77='${wl}-Bexport'
16666       runpath_var=LD_RUN_PATH
16667       hardcode_runpath_var=yes
16668       ;;
16669
16670     solaris*)
16671       no_undefined_flag_F77=' -z text'
16672       if test "$GCC" = yes; then
16673         wlarc='${wl}'
16674         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16676           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16677       else
16678         wlarc=''
16679         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16681         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16682       fi
16683       hardcode_libdir_flag_spec_F77='-R$libdir'
16684       hardcode_shlibpath_var_F77=no
16685       case $host_os in
16686       solaris2.[0-5] | solaris2.[0-5].*) ;;
16687       *)
16688         # The compiler driver will combine linker options so we
16689         # cannot just pass the convience library names through
16690         # without $wl, iff we do not link with $LD.
16691         # Luckily, gcc supports the same syntax we need for Sun Studio.
16692         # Supported since Solaris 2.6 (maybe 2.5.1?)
16693         case $wlarc in
16694         '')
16695           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16696         *)
16697           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' ;;
16698         esac ;;
16699       esac
16700       link_all_deplibs_F77=yes
16701       ;;
16702
16703     sunos4*)
16704       if test "x$host_vendor" = xsequent; then
16705         # Use $CC to link under sequent, because it throws in some extra .o
16706         # files that make .init and .fini sections work.
16707         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16708       else
16709         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16710       fi
16711       hardcode_libdir_flag_spec_F77='-L$libdir'
16712       hardcode_direct_F77=yes
16713       hardcode_minus_L_F77=yes
16714       hardcode_shlibpath_var_F77=no
16715       ;;
16716
16717     sysv4)
16718       case $host_vendor in
16719         sni)
16720           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721           hardcode_direct_F77=yes # is this really true???
16722         ;;
16723         siemens)
16724           ## LD is ld it makes a PLAMLIB
16725           ## CC just makes a GrossModule.
16726           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16727           reload_cmds_F77='$CC -r -o $output$reload_objs'
16728           hardcode_direct_F77=no
16729         ;;
16730         motorola)
16731           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16732           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16733         ;;
16734       esac
16735       runpath_var='LD_RUN_PATH'
16736       hardcode_shlibpath_var_F77=no
16737       ;;
16738
16739     sysv4.3*)
16740       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741       hardcode_shlibpath_var_F77=no
16742       export_dynamic_flag_spec_F77='-Bexport'
16743       ;;
16744
16745     sysv4*MP*)
16746       if test -d /usr/nec; then
16747         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748         hardcode_shlibpath_var_F77=no
16749         runpath_var=LD_RUN_PATH
16750         hardcode_runpath_var=yes
16751         ld_shlibs_F77=yes
16752       fi
16753       ;;
16754
16755     sysv4.2uw2*)
16756       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16757       hardcode_direct_F77=yes
16758       hardcode_minus_L_F77=no
16759       hardcode_shlibpath_var_F77=no
16760       hardcode_runpath_var=yes
16761       runpath_var=LD_RUN_PATH
16762       ;;
16763
16764    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16765       no_undefined_flag_F77='${wl}-z ${wl}text'
16766       if test "$GCC" = yes; then
16767         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16768       else
16769         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16770       fi
16771       runpath_var='LD_RUN_PATH'
16772       hardcode_shlibpath_var_F77=no
16773       ;;
16774
16775     sysv5*)
16776       no_undefined_flag_F77=' -z text'
16777       # $CC -shared without GNU ld will not create a library from C++
16778       # object files and a static libstdc++, better avoid it by now
16779       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16781                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16782       hardcode_libdir_flag_spec_F77=
16783       hardcode_shlibpath_var_F77=no
16784       runpath_var='LD_RUN_PATH'
16785       ;;
16786
16787     uts4*)
16788       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789       hardcode_libdir_flag_spec_F77='-L$libdir'
16790       hardcode_shlibpath_var_F77=no
16791       ;;
16792
16793     *)
16794       ld_shlibs_F77=no
16795       ;;
16796     esac
16797   fi
16798
16799 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16800 echo "${ECHO_T}$ld_shlibs_F77" >&6
16801 test "$ld_shlibs_F77" = no && can_build_shared=no
16802
16803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16804 if test "$GCC" = yes; then
16805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16806 fi
16807
16808 #
16809 # Do we need to explicitly link libc?
16810 #
16811 case "x$archive_cmds_need_lc_F77" in
16812 x|xyes)
16813   # Assume -lc should be added
16814   archive_cmds_need_lc_F77=yes
16815
16816   if test "$enable_shared" = yes && test "$GCC" = yes; then
16817     case $archive_cmds_F77 in
16818     *'~'*)
16819       # FIXME: we may have to deal with multi-command sequences.
16820       ;;
16821     '$CC '*)
16822       # Test whether the compiler implicitly links with -lc since on some
16823       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16824       # to ld, don't add -lc before -lgcc.
16825       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16827       $rm conftest*
16828       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16829
16830       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831   (eval $ac_compile) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } 2>conftest.err; then
16835         soname=conftest
16836         lib=conftest
16837         libobjs=conftest.$ac_objext
16838         deplibs=
16839         wl=$lt_prog_compiler_wl_F77
16840         compiler_flags=-v
16841         linker_flags=-v
16842         verstring=
16843         output_objdir=.
16844         libname=conftest
16845         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16846         allow_undefined_flag_F77=
16847         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16848   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }
16852         then
16853           archive_cmds_need_lc_F77=no
16854         else
16855           archive_cmds_need_lc_F77=yes
16856         fi
16857         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16858       else
16859         cat conftest.err 1>&5
16860       fi
16861       $rm conftest*
16862       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16863 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16864       ;;
16865     esac
16866   fi
16867   ;;
16868 esac
16869
16870 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16872 library_names_spec=
16873 libname_spec='lib$name'
16874 soname_spec=
16875 shrext_cmds=".so"
16876 postinstall_cmds=
16877 postuninstall_cmds=
16878 finish_cmds=
16879 finish_eval=
16880 shlibpath_var=
16881 shlibpath_overrides_runpath=unknown
16882 version_type=none
16883 dynamic_linker="$host_os ld.so"
16884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16885 if test "$GCC" = yes; then
16886   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16887   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16888     # if the path contains ";" then we assume it to be the separator
16889     # otherwise default to the standard path separator (i.e. ":") - it is
16890     # assumed that no part of a normal pathname contains ";" but that should
16891     # okay in the real world where ";" in dirpaths is itself problematic.
16892     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16893   else
16894     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16895   fi
16896 else
16897   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16898 fi
16899 need_lib_prefix=unknown
16900 hardcode_into_libs=no
16901
16902 # when you set need_version to no, make sure it does not cause -set_version
16903 # flags to be left without arguments
16904 need_version=unknown
16905
16906 case $host_os in
16907 aix3*)
16908   version_type=linux
16909   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16910   shlibpath_var=LIBPATH
16911
16912   # AIX 3 has no versioning support, so we append a major version to the name.
16913   soname_spec='${libname}${release}${shared_ext}$major'
16914   ;;
16915
16916 aix4* | aix5*)
16917   version_type=linux
16918   need_lib_prefix=no
16919   need_version=no
16920   hardcode_into_libs=yes
16921   if test "$host_cpu" = ia64; then
16922     # AIX 5 supports IA64
16923     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16924     shlibpath_var=LD_LIBRARY_PATH
16925   else
16926     # With GCC up to 2.95.x, collect2 would create an import file
16927     # for dependence libraries.  The import file would start with
16928     # the line `#! .'.  This would cause the generated library to
16929     # depend on `.', always an invalid library.  This was fixed in
16930     # development snapshots of GCC prior to 3.0.
16931     case $host_os in
16932       aix4 | aix4.[01] | aix4.[01].*)
16933       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16934            echo ' yes '
16935            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16936         :
16937       else
16938         can_build_shared=no
16939       fi
16940       ;;
16941     esac
16942     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16943     # soname into executable. Probably we can add versioning support to
16944     # collect2, so additional links can be useful in future.
16945     if test "$aix_use_runtimelinking" = yes; then
16946       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16947       # instead of lib<name>.a to let people know that these are not
16948       # typical AIX shared libraries.
16949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950     else
16951       # We preserve .a as extension for shared libraries through AIX4.2
16952       # and later when we are not doing run time linking.
16953       library_names_spec='${libname}${release}.a $libname.a'
16954       soname_spec='${libname}${release}${shared_ext}$major'
16955     fi
16956     shlibpath_var=LIBPATH
16957   fi
16958   ;;
16959
16960 amigaos*)
16961   library_names_spec='$libname.ixlibrary $libname.a'
16962   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16963   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'
16964   ;;
16965
16966 beos*)
16967   library_names_spec='${libname}${shared_ext}'
16968   dynamic_linker="$host_os ld.so"
16969   shlibpath_var=LIBRARY_PATH
16970   ;;
16971
16972 bsdi[45]*)
16973   version_type=linux
16974   need_version=no
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   soname_spec='${libname}${release}${shared_ext}$major'
16977   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16978   shlibpath_var=LD_LIBRARY_PATH
16979   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16980   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16981   # the default ld.so.conf also contains /usr/contrib/lib and
16982   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16983   # libtool to hard-code these into programs
16984   ;;
16985
16986 cygwin* | mingw* | pw32*)
16987   version_type=windows
16988   shrext_cmds=".dll"
16989   need_version=no
16990   need_lib_prefix=no
16991
16992   case $GCC,$host_os in
16993   yes,cygwin* | yes,mingw* | yes,pw32*)
16994     library_names_spec='$libname.dll.a'
16995     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16996     postinstall_cmds='base_file=`basename \${file}`~
16997       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16998       dldir=$destdir/`dirname \$dlpath`~
16999       test -d \$dldir || mkdir -p \$dldir~
17000       $install_prog $dir/$dlname \$dldir/$dlname'
17001     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17002       dlpath=$dir/\$dldll~
17003        $rm \$dlpath'
17004     shlibpath_overrides_runpath=yes
17005
17006     case $host_os in
17007     cygwin*)
17008       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17009       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17010       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17011       ;;
17012     mingw*)
17013       # MinGW DLLs use traditional 'lib' prefix
17014       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17015       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17016       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17017         # It is most probably a Windows format PATH printed by
17018         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17019         # path with ; separators, and with drive letters. We can handle the
17020         # drive letters (cygwin fileutils understands them), so leave them,
17021         # especially as we might pass files found there to a mingw objdump,
17022         # which wouldn't understand a cygwinified path. Ahh.
17023         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17024       else
17025         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17026       fi
17027       ;;
17028     pw32*)
17029       # pw32 DLLs use 'pw' prefix rather than 'lib'
17030       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17031       ;;
17032     esac
17033     ;;
17034
17035   *)
17036     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17037     ;;
17038   esac
17039   dynamic_linker='Win32 ld.exe'
17040   # FIXME: first we should search . and the directory the executable is in
17041   shlibpath_var=PATH
17042   ;;
17043
17044 darwin* | rhapsody*)
17045   dynamic_linker="$host_os dyld"
17046   version_type=darwin
17047   need_lib_prefix=no
17048   need_version=no
17049   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17050   soname_spec='${libname}${release}${major}$shared_ext'
17051   shlibpath_overrides_runpath=yes
17052   shlibpath_var=DYLD_LIBRARY_PATH
17053   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17054   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17055   if test "$GCC" = yes; then
17056     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"`
17057   else
17058     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17059   fi
17060   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17061   ;;
17062
17063 dgux*)
17064   version_type=linux
17065   need_lib_prefix=no
17066   need_version=no
17067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17068   soname_spec='${libname}${release}${shared_ext}$major'
17069   shlibpath_var=LD_LIBRARY_PATH
17070   ;;
17071
17072 freebsd1*)
17073   dynamic_linker=no
17074   ;;
17075
17076 kfreebsd*-gnu)
17077   version_type=linux
17078   need_lib_prefix=no
17079   need_version=no
17080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17081   soname_spec='${libname}${release}${shared_ext}$major'
17082   shlibpath_var=LD_LIBRARY_PATH
17083   shlibpath_overrides_runpath=no
17084   hardcode_into_libs=yes
17085   dynamic_linker='GNU ld.so'
17086   ;;
17087
17088 freebsd* | dragonfly*)
17089   # DragonFly does not have aout.  When/if they implement a new
17090   # versioning mechanism, adjust this.
17091   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17092   version_type=freebsd-$objformat
17093   case $version_type in
17094     freebsd-elf*)
17095       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17096       need_version=no
17097       need_lib_prefix=no
17098       ;;
17099     freebsd-*)
17100       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17101       need_version=yes
17102       ;;
17103   esac
17104   shlibpath_var=LD_LIBRARY_PATH
17105   case $host_os in
17106   freebsd2*)
17107     shlibpath_overrides_runpath=yes
17108     ;;
17109   freebsd3.[01]* | freebsdelf3.[01]*)
17110     shlibpath_overrides_runpath=yes
17111     hardcode_into_libs=yes
17112     ;;
17113   *) # from 3.2 on
17114     shlibpath_overrides_runpath=no
17115     hardcode_into_libs=yes
17116     ;;
17117   esac
17118   ;;
17119
17120 gnu*)
17121   version_type=linux
17122   need_lib_prefix=no
17123   need_version=no
17124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17125   soname_spec='${libname}${release}${shared_ext}$major'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   hardcode_into_libs=yes
17128   ;;
17129
17130 hpux9* | hpux10* | hpux11*)
17131   # Give a soname corresponding to the major version so that dld.sl refuses to
17132   # link against other versions.
17133   version_type=sunos
17134   need_lib_prefix=no
17135   need_version=no
17136   case "$host_cpu" in
17137   ia64*)
17138     shrext_cmds='.so'
17139     hardcode_into_libs=yes
17140     dynamic_linker="$host_os dld.so"
17141     shlibpath_var=LD_LIBRARY_PATH
17142     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144     soname_spec='${libname}${release}${shared_ext}$major'
17145     if test "X$HPUX_IA64_MODE" = X32; then
17146       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17147     else
17148       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17149     fi
17150     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17151     ;;
17152    hppa*64*)
17153      shrext_cmds='.sl'
17154      hardcode_into_libs=yes
17155      dynamic_linker="$host_os dld.sl"
17156      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17157      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17161      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17162      ;;
17163    *)
17164     shrext_cmds='.sl'
17165     dynamic_linker="$host_os dld.sl"
17166     shlibpath_var=SHLIB_PATH
17167     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169     soname_spec='${libname}${release}${shared_ext}$major'
17170     ;;
17171   esac
17172   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17173   postinstall_cmds='chmod 555 $lib'
17174   ;;
17175
17176 irix5* | irix6* | nonstopux*)
17177   case $host_os in
17178     nonstopux*) version_type=nonstopux ;;
17179     *)
17180         if test "$lt_cv_prog_gnu_ld" = yes; then
17181                 version_type=linux
17182         else
17183                 version_type=irix
17184         fi ;;
17185   esac
17186   need_lib_prefix=no
17187   need_version=no
17188   soname_spec='${libname}${release}${shared_ext}$major'
17189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17190   case $host_os in
17191   irix5* | nonstopux*)
17192     libsuff= shlibsuff=
17193     ;;
17194   *)
17195     case $LD in # libtool.m4 will add one of these switches to LD
17196     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17197       libsuff= shlibsuff= libmagic=32-bit;;
17198     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17199       libsuff=32 shlibsuff=N32 libmagic=N32;;
17200     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17201       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17202     *) libsuff= shlibsuff= libmagic=never-match;;
17203     esac
17204     ;;
17205   esac
17206   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17207   shlibpath_overrides_runpath=no
17208   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17209   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17210   hardcode_into_libs=yes
17211   ;;
17212
17213 # No shared lib support for Linux oldld, aout, or coff.
17214 linux*oldld* | linux*aout* | linux*coff*)
17215   dynamic_linker=no
17216   ;;
17217
17218 # This must be Linux ELF.
17219 linux*)
17220   version_type=linux
17221   need_lib_prefix=no
17222   need_version=no
17223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224   soname_spec='${libname}${release}${shared_ext}$major'
17225   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17226   shlibpath_var=LD_LIBRARY_PATH
17227   shlibpath_overrides_runpath=no
17228   # This implies no fast_install, which is unacceptable.
17229   # Some rework will be needed to allow for fast_install
17230   # before this can be enabled.
17231   hardcode_into_libs=yes
17232
17233   # Append ld.so.conf contents to the search path
17234   if test -f /etc/ld.so.conf; then
17235     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' ' '`
17236     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17237   fi
17238
17239   # We used to test for /lib/ld.so.1 and disable shared libraries on
17240   # powerpc, because MkLinux only supported shared libraries with the
17241   # GNU dynamic linker.  Since this was broken with cross compilers,
17242   # most powerpc-linux boxes support dynamic linking these days and
17243   # people can always --disable-shared, the test was removed, and we
17244   # assume the GNU/Linux dynamic linker is in use.
17245   dynamic_linker='GNU/Linux ld.so'
17246   ;;
17247
17248 knetbsd*-gnu)
17249   version_type=linux
17250   need_lib_prefix=no
17251   need_version=no
17252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17253   soname_spec='${libname}${release}${shared_ext}$major'
17254   shlibpath_var=LD_LIBRARY_PATH
17255   shlibpath_overrides_runpath=no
17256   hardcode_into_libs=yes
17257   dynamic_linker='GNU ld.so'
17258   ;;
17259
17260 netbsd*)
17261   version_type=sunos
17262   need_lib_prefix=no
17263   need_version=no
17264   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17266     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17267     dynamic_linker='NetBSD (a.out) ld.so'
17268   else
17269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17270     soname_spec='${libname}${release}${shared_ext}$major'
17271     dynamic_linker='NetBSD ld.elf_so'
17272   fi
17273   shlibpath_var=LD_LIBRARY_PATH
17274   shlibpath_overrides_runpath=yes
17275   hardcode_into_libs=yes
17276   ;;
17277
17278 newsos6)
17279   version_type=linux
17280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281   shlibpath_var=LD_LIBRARY_PATH
17282   shlibpath_overrides_runpath=yes
17283   ;;
17284
17285 nto-qnx*)
17286   version_type=linux
17287   need_lib_prefix=no
17288   need_version=no
17289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290   soname_spec='${libname}${release}${shared_ext}$major'
17291   shlibpath_var=LD_LIBRARY_PATH
17292   shlibpath_overrides_runpath=yes
17293   ;;
17294
17295 openbsd*)
17296   version_type=sunos
17297   need_lib_prefix=no
17298   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17299   case $host_os in
17300     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17301     *)                         need_version=no  ;;
17302   esac
17303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17304   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17305   shlibpath_var=LD_LIBRARY_PATH
17306   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17307     case $host_os in
17308       openbsd2.[89] | openbsd2.[89].*)
17309         shlibpath_overrides_runpath=no
17310         ;;
17311       *)
17312         shlibpath_overrides_runpath=yes
17313         ;;
17314       esac
17315   else
17316     shlibpath_overrides_runpath=yes
17317   fi
17318   ;;
17319
17320 os2*)
17321   libname_spec='$name'
17322   shrext_cmds=".dll"
17323   need_lib_prefix=no
17324   library_names_spec='$libname${shared_ext} $libname.a'
17325   dynamic_linker='OS/2 ld.exe'
17326   shlibpath_var=LIBPATH
17327   ;;
17328
17329 osf3* | osf4* | osf5*)
17330   version_type=osf
17331   need_lib_prefix=no
17332   need_version=no
17333   soname_spec='${libname}${release}${shared_ext}$major'
17334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335   shlibpath_var=LD_LIBRARY_PATH
17336   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17337   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17338   ;;
17339
17340 sco3.2v5*)
17341   version_type=osf
17342   soname_spec='${libname}${release}${shared_ext}$major'
17343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344   shlibpath_var=LD_LIBRARY_PATH
17345   ;;
17346
17347 solaris*)
17348   version_type=linux
17349   need_lib_prefix=no
17350   need_version=no
17351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352   soname_spec='${libname}${release}${shared_ext}$major'
17353   shlibpath_var=LD_LIBRARY_PATH
17354   shlibpath_overrides_runpath=yes
17355   hardcode_into_libs=yes
17356   # ldd complains unless libraries are executable
17357   postinstall_cmds='chmod +x $lib'
17358   ;;
17359
17360 sunos4*)
17361   version_type=sunos
17362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17363   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17364   shlibpath_var=LD_LIBRARY_PATH
17365   shlibpath_overrides_runpath=yes
17366   if test "$with_gnu_ld" = yes; then
17367     need_lib_prefix=no
17368   fi
17369   need_version=yes
17370   ;;
17371
17372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17373   version_type=linux
17374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375   soname_spec='${libname}${release}${shared_ext}$major'
17376   shlibpath_var=LD_LIBRARY_PATH
17377   case $host_vendor in
17378     sni)
17379       shlibpath_overrides_runpath=no
17380       need_lib_prefix=no
17381       export_dynamic_flag_spec='${wl}-Blargedynsym'
17382       runpath_var=LD_RUN_PATH
17383       ;;
17384     siemens)
17385       need_lib_prefix=no
17386       ;;
17387     motorola)
17388       need_lib_prefix=no
17389       need_version=no
17390       shlibpath_overrides_runpath=no
17391       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17392       ;;
17393   esac
17394   ;;
17395
17396 sysv4*MP*)
17397   if test -d /usr/nec ;then
17398     version_type=linux
17399     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17400     soname_spec='$libname${shared_ext}.$major'
17401     shlibpath_var=LD_LIBRARY_PATH
17402   fi
17403   ;;
17404
17405 uts4*)
17406   version_type=linux
17407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408   soname_spec='${libname}${release}${shared_ext}$major'
17409   shlibpath_var=LD_LIBRARY_PATH
17410   ;;
17411
17412 *)
17413   dynamic_linker=no
17414   ;;
17415 esac
17416 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17417 echo "${ECHO_T}$dynamic_linker" >&6
17418 test "$dynamic_linker" = no && can_build_shared=no
17419
17420 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17422 hardcode_action_F77=
17423 if test -n "$hardcode_libdir_flag_spec_F77" || \
17424    test -n "$runpath_var_F77" || \
17425    test "X$hardcode_automatic_F77" = "Xyes" ; then
17426
17427   # We can hardcode non-existant directories.
17428   if test "$hardcode_direct_F77" != no &&
17429      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17430      # have to relink, otherwise we might link with an installed library
17431      # when we should be linking with a yet-to-be-installed one
17432      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17433      test "$hardcode_minus_L_F77" != no; then
17434     # Linking always hardcodes the temporary library directory.
17435     hardcode_action_F77=relink
17436   else
17437     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17438     hardcode_action_F77=immediate
17439   fi
17440 else
17441   # We cannot hardcode anything, or else we can only hardcode existing
17442   # directories.
17443   hardcode_action_F77=unsupported
17444 fi
17445 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17446 echo "${ECHO_T}$hardcode_action_F77" >&6
17447
17448 if test "$hardcode_action_F77" = relink; then
17449   # Fast installation is not supported
17450   enable_fast_install=no
17451 elif test "$shlibpath_overrides_runpath" = yes ||
17452      test "$enable_shared" = no; then
17453   # Fast installation is not necessary
17454   enable_fast_install=needless
17455 fi
17456
17457 striplib=
17458 old_striplib=
17459 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17460 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17461 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17462   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17463   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17464   echo "$as_me:$LINENO: result: yes" >&5
17465 echo "${ECHO_T}yes" >&6
17466 else
17467 # FIXME - insert some real tests, host_os isn't really good enough
17468   case $host_os in
17469    darwin*)
17470        if test -n "$STRIP" ; then
17471          striplib="$STRIP -x"
17472          echo "$as_me:$LINENO: result: yes" >&5
17473 echo "${ECHO_T}yes" >&6
17474        else
17475   echo "$as_me:$LINENO: result: no" >&5
17476 echo "${ECHO_T}no" >&6
17477 fi
17478        ;;
17479    *)
17480   echo "$as_me:$LINENO: result: no" >&5
17481 echo "${ECHO_T}no" >&6
17482     ;;
17483   esac
17484 fi
17485
17486
17487
17488 # The else clause should only fire when bootstrapping the
17489 # libtool distribution, otherwise you forgot to ship ltmain.sh
17490 # with your package, and you will get complaints that there are
17491 # no rules to generate ltmain.sh.
17492 if test -f "$ltmain"; then
17493   # See if we are running on zsh, and set the options which allow our commands through
17494   # without removal of \ escapes.
17495   if test -n "${ZSH_VERSION+set}" ; then
17496     setopt NO_GLOB_SUBST
17497   fi
17498   # Now quote all the things that may contain metacharacters while being
17499   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17500   # variables and quote the copies for generation of the libtool script.
17501   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17502     SED SHELL STRIP \
17503     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17504     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17505     deplibs_check_method reload_flag reload_cmds need_locks \
17506     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17507     lt_cv_sys_global_symbol_to_c_name_address \
17508     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17509     old_postinstall_cmds old_postuninstall_cmds \
17510     compiler_F77 \
17511     CC_F77 \
17512     LD_F77 \
17513     lt_prog_compiler_wl_F77 \
17514     lt_prog_compiler_pic_F77 \
17515     lt_prog_compiler_static_F77 \
17516     lt_prog_compiler_no_builtin_flag_F77 \
17517     export_dynamic_flag_spec_F77 \
17518     thread_safe_flag_spec_F77 \
17519     whole_archive_flag_spec_F77 \
17520     enable_shared_with_static_runtimes_F77 \
17521     old_archive_cmds_F77 \
17522     old_archive_from_new_cmds_F77 \
17523     predep_objects_F77 \
17524     postdep_objects_F77 \
17525     predeps_F77 \
17526     postdeps_F77 \
17527     compiler_lib_search_path_F77 \
17528     archive_cmds_F77 \
17529     archive_expsym_cmds_F77 \
17530     postinstall_cmds_F77 \
17531     postuninstall_cmds_F77 \
17532     old_archive_from_expsyms_cmds_F77 \
17533     allow_undefined_flag_F77 \
17534     no_undefined_flag_F77 \
17535     export_symbols_cmds_F77 \
17536     hardcode_libdir_flag_spec_F77 \
17537     hardcode_libdir_flag_spec_ld_F77 \
17538     hardcode_libdir_separator_F77 \
17539     hardcode_automatic_F77 \
17540     module_cmds_F77 \
17541     module_expsym_cmds_F77 \
17542     lt_cv_prog_compiler_c_o_F77 \
17543     exclude_expsyms_F77 \
17544     include_expsyms_F77; do
17545
17546     case $var in
17547     old_archive_cmds_F77 | \
17548     old_archive_from_new_cmds_F77 | \
17549     archive_cmds_F77 | \
17550     archive_expsym_cmds_F77 | \
17551     module_cmds_F77 | \
17552     module_expsym_cmds_F77 | \
17553     old_archive_from_expsyms_cmds_F77 | \
17554     export_symbols_cmds_F77 | \
17555     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17556     postinstall_cmds | postuninstall_cmds | \
17557     old_postinstall_cmds | old_postuninstall_cmds | \
17558     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17559       # Double-quote double-evaled strings.
17560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17561       ;;
17562     *)
17563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17564       ;;
17565     esac
17566   done
17567
17568   case $lt_echo in
17569   *'\$0 --fallback-echo"')
17570     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17571     ;;
17572   esac
17573
17574 cfgfile="$ofile"
17575
17576   cat <<__EOF__ >> "$cfgfile"
17577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17578
17579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17580
17581 # Shell to use when invoking shell scripts.
17582 SHELL=$lt_SHELL
17583
17584 # Whether or not to build shared libraries.
17585 build_libtool_libs=$enable_shared
17586
17587 # Whether or not to build static libraries.
17588 build_old_libs=$enable_static
17589
17590 # Whether or not to add -lc for building shared libraries.
17591 build_libtool_need_lc=$archive_cmds_need_lc_F77
17592
17593 # Whether or not to disallow shared libs when runtime libs are static
17594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17595
17596 # Whether or not to optimize for fast installation.
17597 fast_install=$enable_fast_install
17598
17599 # The host system.
17600 host_alias=$host_alias
17601 host=$host
17602 host_os=$host_os
17603
17604 # The build system.
17605 build_alias=$build_alias
17606 build=$build
17607 build_os=$build_os
17608
17609 # An echo program that does not interpret backslashes.
17610 echo=$lt_echo
17611
17612 # The archiver.
17613 AR=$lt_AR
17614 AR_FLAGS=$lt_AR_FLAGS
17615
17616 # A C compiler.
17617 LTCC=$lt_LTCC
17618
17619 # A language-specific compiler.
17620 CC=$lt_compiler_F77
17621
17622 # Is the compiler the GNU C compiler?
17623 with_gcc=$GCC_F77
17624
17625 # An ERE matcher.
17626 EGREP=$lt_EGREP
17627
17628 # The linker used to build libraries.
17629 LD=$lt_LD_F77
17630
17631 # Whether we need hard or soft links.
17632 LN_S=$lt_LN_S
17633
17634 # A BSD-compatible nm program.
17635 NM=$lt_NM
17636
17637 # A symbol stripping program
17638 STRIP=$lt_STRIP
17639
17640 # Used to examine libraries when file_magic_cmd begins "file"
17641 MAGIC_CMD=$MAGIC_CMD
17642
17643 # Used on cygwin: DLL creation program.
17644 DLLTOOL="$DLLTOOL"
17645
17646 # Used on cygwin: object dumper.
17647 OBJDUMP="$OBJDUMP"
17648
17649 # Used on cygwin: assembler.
17650 AS="$AS"
17651
17652 # The name of the directory that contains temporary libtool files.
17653 objdir=$objdir
17654
17655 # How to create reloadable object files.
17656 reload_flag=$lt_reload_flag
17657 reload_cmds=$lt_reload_cmds
17658
17659 # How to pass a linker flag through the compiler.
17660 wl=$lt_lt_prog_compiler_wl_F77
17661
17662 # Object file suffix (normally "o").
17663 objext="$ac_objext"
17664
17665 # Old archive suffix (normally "a").
17666 libext="$libext"
17667
17668 # Shared library suffix (normally ".so").
17669 shrext_cmds='$shrext_cmds'
17670
17671 # Executable file suffix (normally "").
17672 exeext="$exeext"
17673
17674 # Additional compiler flags for building library objects.
17675 pic_flag=$lt_lt_prog_compiler_pic_F77
17676 pic_mode=$pic_mode
17677
17678 # What is the maximum length of a command?
17679 max_cmd_len=$lt_cv_sys_max_cmd_len
17680
17681 # Does compiler simultaneously support -c and -o options?
17682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17683
17684 # Must we lock files when doing compilation?
17685 need_locks=$lt_need_locks
17686
17687 # Do we need the lib prefix for modules?
17688 need_lib_prefix=$need_lib_prefix
17689
17690 # Do we need a version for libraries?
17691 need_version=$need_version
17692
17693 # Whether dlopen is supported.
17694 dlopen_support=$enable_dlopen
17695
17696 # Whether dlopen of programs is supported.
17697 dlopen_self=$enable_dlopen_self
17698
17699 # Whether dlopen of statically linked programs is supported.
17700 dlopen_self_static=$enable_dlopen_self_static
17701
17702 # Compiler flag to prevent dynamic linking.
17703 link_static_flag=$lt_lt_prog_compiler_static_F77
17704
17705 # Compiler flag to turn off builtin functions.
17706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17707
17708 # Compiler flag to allow reflexive dlopens.
17709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17710
17711 # Compiler flag to generate shared objects directly from archives.
17712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17713
17714 # Compiler flag to generate thread-safe objects.
17715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17716
17717 # Library versioning type.
17718 version_type=$version_type
17719
17720 # Format of library name prefix.
17721 libname_spec=$lt_libname_spec
17722
17723 # List of archive names.  First name is the real one, the rest are links.
17724 # The last name is the one that the linker finds with -lNAME.
17725 library_names_spec=$lt_library_names_spec
17726
17727 # The coded name of the library, if different from the real name.
17728 soname_spec=$lt_soname_spec
17729
17730 # Commands used to build and install an old-style archive.
17731 RANLIB=$lt_RANLIB
17732 old_archive_cmds=$lt_old_archive_cmds_F77
17733 old_postinstall_cmds=$lt_old_postinstall_cmds
17734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17735
17736 # Create an old-style archive from a shared archive.
17737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17738
17739 # Create a temporary old-style archive to link instead of a shared archive.
17740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17741
17742 # Commands used to build and install a shared archive.
17743 archive_cmds=$lt_archive_cmds_F77
17744 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17745 postinstall_cmds=$lt_postinstall_cmds
17746 postuninstall_cmds=$lt_postuninstall_cmds
17747
17748 # Commands used to build a loadable module (assumed same as above if empty)
17749 module_cmds=$lt_module_cmds_F77
17750 module_expsym_cmds=$lt_module_expsym_cmds_F77
17751
17752 # Commands to strip libraries.
17753 old_striplib=$lt_old_striplib
17754 striplib=$lt_striplib
17755
17756 # Dependencies to place before the objects being linked to create a
17757 # shared library.
17758 predep_objects=$lt_predep_objects_F77
17759
17760 # Dependencies to place after the objects being linked to create a
17761 # shared library.
17762 postdep_objects=$lt_postdep_objects_F77
17763
17764 # Dependencies to place before the objects being linked to create a
17765 # shared library.
17766 predeps=$lt_predeps_F77
17767
17768 # Dependencies to place after the objects being linked to create a
17769 # shared library.
17770 postdeps=$lt_postdeps_F77
17771
17772 # The library search path used internally by the compiler when linking
17773 # a shared library.
17774 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17775
17776 # Method to check whether dependent libraries are shared objects.
17777 deplibs_check_method=$lt_deplibs_check_method
17778
17779 # Command to use when deplibs_check_method == file_magic.
17780 file_magic_cmd=$lt_file_magic_cmd
17781
17782 # Flag that allows shared libraries with undefined symbols to be built.
17783 allow_undefined_flag=$lt_allow_undefined_flag_F77
17784
17785 # Flag that forces no undefined symbols.
17786 no_undefined_flag=$lt_no_undefined_flag_F77
17787
17788 # Commands used to finish a libtool library installation in a directory.
17789 finish_cmds=$lt_finish_cmds
17790
17791 # Same as above, but a single script fragment to be evaled but not shown.
17792 finish_eval=$lt_finish_eval
17793
17794 # Take the output of nm and produce a listing of raw symbols and C names.
17795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17796
17797 # Transform the output of nm in a proper C declaration
17798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17799
17800 # Transform the output of nm in a C name address pair
17801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17802
17803 # This is the shared library runtime path variable.
17804 runpath_var=$runpath_var
17805
17806 # This is the shared library path variable.
17807 shlibpath_var=$shlibpath_var
17808
17809 # Is shlibpath searched before the hard-coded library search path?
17810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17811
17812 # How to hardcode a shared library path into an executable.
17813 hardcode_action=$hardcode_action_F77
17814
17815 # Whether we should hardcode library paths into libraries.
17816 hardcode_into_libs=$hardcode_into_libs
17817
17818 # Flag to hardcode \$libdir into a binary during linking.
17819 # This must work even if \$libdir does not exist.
17820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17821
17822 # If ld is used when linking, flag to hardcode \$libdir into
17823 # a binary during linking. This must work even if \$libdir does
17824 # not exist.
17825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17826
17827 # Whether we need a single -rpath flag with a separated argument.
17828 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17829
17830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_direct=$hardcode_direct_F77
17833
17834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17835 # resulting binary.
17836 hardcode_minus_L=$hardcode_minus_L_F77
17837
17838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17839 # the resulting binary.
17840 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17841
17842 # Set to yes if building a shared library automatically hardcodes DIR into the library
17843 # and all subsequent libraries and executables linked against it.
17844 hardcode_automatic=$hardcode_automatic_F77
17845
17846 # Variables whose values should be saved in libtool wrapper scripts and
17847 # restored at relink time.
17848 variables_saved_for_relink="$variables_saved_for_relink"
17849
17850 # Whether libtool must link a program against all its dependency libraries.
17851 link_all_deplibs=$link_all_deplibs_F77
17852
17853 # Compile-time system search path for libraries
17854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17855
17856 # Run-time system search path for libraries
17857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17858
17859 # Fix the shell variable \$srcfile for the compiler.
17860 fix_srcfile_path="$fix_srcfile_path_F77"
17861
17862 # Set to yes if exported symbols are required.
17863 always_export_symbols=$always_export_symbols_F77
17864
17865 # The commands to list exported symbols.
17866 export_symbols_cmds=$lt_export_symbols_cmds_F77
17867
17868 # The commands to extract the exported symbol list from a shared archive.
17869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17870
17871 # Symbols that should not be listed in the preloaded symbols.
17872 exclude_expsyms=$lt_exclude_expsyms_F77
17873
17874 # Symbols that must always be exported.
17875 include_expsyms=$lt_include_expsyms_F77
17876
17877 # ### END LIBTOOL TAG CONFIG: $tagname
17878
17879 __EOF__
17880
17881
17882 else
17883   # If there is no Makefile yet, we rely on a make rule to execute
17884   # `config.status --recheck' to rerun these tests and create the
17885   # libtool script then.
17886   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17887   if test -f "$ltmain_in"; then
17888     test -f Makefile && make "$ltmain"
17889   fi
17890 fi
17891
17892
17893 ac_ext=c
17894 ac_cpp='$CPP $CPPFLAGS'
17895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17898
17899 CC="$lt_save_CC"
17900
17901         else
17902           tagname=""
17903         fi
17904         ;;
17905
17906       GCJ)
17907         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17908
17909
17910
17911 # Source file extension for Java test sources.
17912 ac_ext=java
17913
17914 # Object file extension for compiled Java test sources.
17915 objext=o
17916 objext_GCJ=$objext
17917
17918 # Code to be used in simple compile tests
17919 lt_simple_compile_test_code="class foo {}\n"
17920
17921 # Code to be used in simple link tests
17922 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17923
17924 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17925
17926 # If no C compiler was specified, use CC.
17927 LTCC=${LTCC-"$CC"}
17928
17929 # Allow CC to be a program name with arguments.
17930 compiler=$CC
17931
17932
17933 # save warnings/boilerplate of simple test code
17934 ac_outfile=conftest.$ac_objext
17935 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17936 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17937 _lt_compiler_boilerplate=`cat conftest.err`
17938 $rm conftest*
17939
17940 ac_outfile=conftest.$ac_objext
17941 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17942 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17943 _lt_linker_boilerplate=`cat conftest.err`
17944 $rm conftest*
17945
17946
17947 # Allow CC to be a program name with arguments.
17948 lt_save_CC="$CC"
17949 CC=${GCJ-"gcj"}
17950 compiler=$CC
17951 compiler_GCJ=$CC
17952 for cc_temp in $compiler""; do
17953   case $cc_temp in
17954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17956     \-*) ;;
17957     *) break;;
17958   esac
17959 done
17960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17961
17962
17963 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17964 archive_cmds_need_lc_GCJ=no
17965
17966 old_archive_cmds_GCJ=$old_archive_cmds
17967
17968
17969 lt_prog_compiler_no_builtin_flag_GCJ=
17970
17971 if test "$GCC" = yes; then
17972   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17973
17974
17975 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17976 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17977 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17978   echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980   lt_cv_prog_compiler_rtti_exceptions=no
17981   ac_outfile=conftest.$ac_objext
17982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17983    lt_compiler_flag="-fno-rtti -fno-exceptions"
17984    # Insert the option either (1) after the last *FLAGS variable, or
17985    # (2) before a word containing "conftest.", or (3) at the end.
17986    # Note that $ac_compile itself does not contain backslashes and begins
17987    # with a dollar sign (not a hyphen), so the echo should work correctly.
17988    # The option is referenced via a variable to avoid confusing sed.
17989    lt_compile=`echo "$ac_compile" | $SED \
17990    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17992    -e 's:$: $lt_compiler_flag:'`
17993    (eval echo "\"\$as_me:17993: $lt_compile\"" >&5)
17994    (eval "$lt_compile" 2>conftest.err)
17995    ac_status=$?
17996    cat conftest.err >&5
17997    echo "$as_me:17997: \$? = $ac_status" >&5
17998    if (exit $ac_status) && test -s "$ac_outfile"; then
17999      # The compiler can only warn and ignore the option if not recognized
18000      # So say no if there are warnings other than the usual output.
18001      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18002      $SED '/^$/d' conftest.err >conftest.er2
18003      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18004        lt_cv_prog_compiler_rtti_exceptions=yes
18005      fi
18006    fi
18007    $rm conftest*
18008
18009 fi
18010 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18011 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18012
18013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18014     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18015 else
18016     :
18017 fi
18018
18019 fi
18020
18021 lt_prog_compiler_wl_GCJ=
18022 lt_prog_compiler_pic_GCJ=
18023 lt_prog_compiler_static_GCJ=
18024
18025 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18026 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18027
18028   if test "$GCC" = yes; then
18029     lt_prog_compiler_wl_GCJ='-Wl,'
18030     lt_prog_compiler_static_GCJ='-static'
18031
18032     case $host_os in
18033       aix*)
18034       # All AIX code is PIC.
18035       if test "$host_cpu" = ia64; then
18036         # AIX 5 now supports IA64 processor
18037         lt_prog_compiler_static_GCJ='-Bstatic'
18038       fi
18039       ;;
18040
18041     amigaos*)
18042       # FIXME: we need at least 68020 code to build shared libraries, but
18043       # adding the `-m68020' flag to GCC prevents building anything better,
18044       # like `-m68040'.
18045       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18046       ;;
18047
18048     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18049       # PIC is the default for these OSes.
18050       ;;
18051
18052     mingw* | pw32* | os2*)
18053       # This hack is so that the source file can tell whether it is being
18054       # built for inclusion in a dll (and should export symbols for example).
18055       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18056       ;;
18057
18058     darwin* | rhapsody*)
18059       # PIC is the default on this platform
18060       # Common symbols not allowed in MH_DYLIB files
18061       lt_prog_compiler_pic_GCJ='-fno-common'
18062       ;;
18063
18064     msdosdjgpp*)
18065       # Just because we use GCC doesn't mean we suddenly get shared libraries
18066       # on systems that don't support them.
18067       lt_prog_compiler_can_build_shared_GCJ=no
18068       enable_shared=no
18069       ;;
18070
18071     sysv4*MP*)
18072       if test -d /usr/nec; then
18073         lt_prog_compiler_pic_GCJ=-Kconform_pic
18074       fi
18075       ;;
18076
18077     hpux*)
18078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18079       # not for PA HP-UX.
18080       case "$host_cpu" in
18081       hppa*64*|ia64*)
18082         # +Z the default
18083         ;;
18084       *)
18085         lt_prog_compiler_pic_GCJ='-fPIC'
18086         ;;
18087       esac
18088       ;;
18089
18090     *)
18091       lt_prog_compiler_pic_GCJ='-fPIC'
18092       ;;
18093     esac
18094   else
18095     # PORTME Check for flag to pass linker flags through the system compiler.
18096     case $host_os in
18097     aix*)
18098       lt_prog_compiler_wl_GCJ='-Wl,'
18099       if test "$host_cpu" = ia64; then
18100         # AIX 5 now supports IA64 processor
18101         lt_prog_compiler_static_GCJ='-Bstatic'
18102       else
18103         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18104       fi
18105       ;;
18106       darwin*)
18107         # PIC is the default on this platform
18108         # Common symbols not allowed in MH_DYLIB files
18109        case $cc_basename in
18110          xlc*)
18111          lt_prog_compiler_pic_GCJ='-qnocommon'
18112          lt_prog_compiler_wl_GCJ='-Wl,'
18113          ;;
18114        esac
18115        ;;
18116
18117     mingw* | pw32* | os2*)
18118       # This hack is so that the source file can tell whether it is being
18119       # built for inclusion in a dll (and should export symbols for example).
18120       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18121       ;;
18122
18123     hpux9* | hpux10* | hpux11*)
18124       lt_prog_compiler_wl_GCJ='-Wl,'
18125       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18126       # not for PA HP-UX.
18127       case "$host_cpu" in
18128       hppa*64*|ia64*)
18129         # +Z the default
18130         ;;
18131       *)
18132         lt_prog_compiler_pic_GCJ='+Z'
18133         ;;
18134       esac
18135       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18136       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18137       ;;
18138
18139     irix5* | irix6* | nonstopux*)
18140       lt_prog_compiler_wl_GCJ='-Wl,'
18141       # PIC (with -KPIC) is the default.
18142       lt_prog_compiler_static_GCJ='-non_shared'
18143       ;;
18144
18145     newsos6)
18146       lt_prog_compiler_pic_GCJ='-KPIC'
18147       lt_prog_compiler_static_GCJ='-Bstatic'
18148       ;;
18149
18150     linux*)
18151       case $cc_basename in
18152       icc* | ecc*)
18153         lt_prog_compiler_wl_GCJ='-Wl,'
18154         lt_prog_compiler_pic_GCJ='-KPIC'
18155         lt_prog_compiler_static_GCJ='-static'
18156         ;;
18157       pgcc* | pgf77* | pgf90*)
18158         # Portland Group compilers (*not* the Pentium gcc compiler,
18159         # which looks to be a dead project)
18160         lt_prog_compiler_wl_GCJ='-Wl,'
18161         lt_prog_compiler_pic_GCJ='-fpic'
18162         lt_prog_compiler_static_GCJ='-static'
18163         ;;
18164       ccc*)
18165         lt_prog_compiler_wl_GCJ='-Wl,'
18166         # All Alpha code is PIC.
18167         lt_prog_compiler_static_GCJ='-non_shared'
18168         ;;
18169       esac
18170       ;;
18171
18172     osf3* | osf4* | osf5*)
18173       lt_prog_compiler_wl_GCJ='-Wl,'
18174       # All OSF/1 code is PIC.
18175       lt_prog_compiler_static_GCJ='-non_shared'
18176       ;;
18177
18178     sco3.2v5*)
18179       lt_prog_compiler_pic_GCJ='-Kpic'
18180       lt_prog_compiler_static_GCJ='-dn'
18181       ;;
18182
18183     solaris*)
18184       lt_prog_compiler_pic_GCJ='-KPIC'
18185       lt_prog_compiler_static_GCJ='-Bstatic'
18186       case $cc_basename in
18187       f77* | f90* | f95*)
18188         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18189       *)
18190         lt_prog_compiler_wl_GCJ='-Wl,';;
18191       esac
18192       ;;
18193
18194     sunos4*)
18195       lt_prog_compiler_wl_GCJ='-Qoption ld '
18196       lt_prog_compiler_pic_GCJ='-PIC'
18197       lt_prog_compiler_static_GCJ='-Bstatic'
18198       ;;
18199
18200     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18201       lt_prog_compiler_wl_GCJ='-Wl,'
18202       lt_prog_compiler_pic_GCJ='-KPIC'
18203       lt_prog_compiler_static_GCJ='-Bstatic'
18204       ;;
18205
18206     sysv4*MP*)
18207       if test -d /usr/nec ;then
18208         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18209         lt_prog_compiler_static_GCJ='-Bstatic'
18210       fi
18211       ;;
18212
18213     unicos*)
18214       lt_prog_compiler_wl_GCJ='-Wl,'
18215       lt_prog_compiler_can_build_shared_GCJ=no
18216       ;;
18217
18218     uts4*)
18219       lt_prog_compiler_pic_GCJ='-pic'
18220       lt_prog_compiler_static_GCJ='-Bstatic'
18221       ;;
18222
18223     *)
18224       lt_prog_compiler_can_build_shared_GCJ=no
18225       ;;
18226     esac
18227   fi
18228
18229 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18230 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18231
18232 #
18233 # Check to make sure the PIC flag actually works.
18234 #
18235 if test -n "$lt_prog_compiler_pic_GCJ"; then
18236
18237 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18238 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18239 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18240   echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242   lt_prog_compiler_pic_works_GCJ=no
18243   ac_outfile=conftest.$ac_objext
18244    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18245    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18246    # Insert the option either (1) after the last *FLAGS variable, or
18247    # (2) before a word containing "conftest.", or (3) at the end.
18248    # Note that $ac_compile itself does not contain backslashes and begins
18249    # with a dollar sign (not a hyphen), so the echo should work correctly.
18250    # The option is referenced via a variable to avoid confusing sed.
18251    lt_compile=`echo "$ac_compile" | $SED \
18252    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18254    -e 's:$: $lt_compiler_flag:'`
18255    (eval echo "\"\$as_me:18255: $lt_compile\"" >&5)
18256    (eval "$lt_compile" 2>conftest.err)
18257    ac_status=$?
18258    cat conftest.err >&5
18259    echo "$as_me:18259: \$? = $ac_status" >&5
18260    if (exit $ac_status) && test -s "$ac_outfile"; then
18261      # The compiler can only warn and ignore the option if not recognized
18262      # So say no if there are warnings other than the usual output.
18263      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18264      $SED '/^$/d' conftest.err >conftest.er2
18265      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18266        lt_prog_compiler_pic_works_GCJ=yes
18267      fi
18268    fi
18269    $rm conftest*
18270
18271 fi
18272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18273 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18274
18275 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18276     case $lt_prog_compiler_pic_GCJ in
18277      "" | " "*) ;;
18278      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18279      esac
18280 else
18281     lt_prog_compiler_pic_GCJ=
18282      lt_prog_compiler_can_build_shared_GCJ=no
18283 fi
18284
18285 fi
18286 case "$host_os" in
18287   # For platforms which do not support PIC, -DPIC is meaningless:
18288   *djgpp*)
18289     lt_prog_compiler_pic_GCJ=
18290     ;;
18291   *)
18292     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18293     ;;
18294 esac
18295
18296 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18297 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18298 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   lt_cv_prog_compiler_c_o_GCJ=no
18302    $rm -r conftest 2>/dev/null
18303    mkdir conftest
18304    cd conftest
18305    mkdir out
18306    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18307
18308    lt_compiler_flag="-o out/conftest2.$ac_objext"
18309    # Insert the option either (1) after the last *FLAGS variable, or
18310    # (2) before a word containing "conftest.", or (3) at the end.
18311    # Note that $ac_compile itself does not contain backslashes and begins
18312    # with a dollar sign (not a hyphen), so the echo should work correctly.
18313    lt_compile=`echo "$ac_compile" | $SED \
18314    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18316    -e 's:$: $lt_compiler_flag:'`
18317    (eval echo "\"\$as_me:18317: $lt_compile\"" >&5)
18318    (eval "$lt_compile" 2>out/conftest.err)
18319    ac_status=$?
18320    cat out/conftest.err >&5
18321    echo "$as_me:18321: \$? = $ac_status" >&5
18322    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18323    then
18324      # The compiler can only warn and ignore the option if not recognized
18325      # So say no if there are warnings
18326      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18327      $SED '/^$/d' out/conftest.err >out/conftest.er2
18328      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18329        lt_cv_prog_compiler_c_o_GCJ=yes
18330      fi
18331    fi
18332    chmod u+w .
18333    $rm conftest*
18334    # SGI C++ compiler will create directory out/ii_files/ for
18335    # template instantiation
18336    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18337    $rm out/* && rmdir out
18338    cd ..
18339    rmdir conftest
18340    $rm conftest*
18341
18342 fi
18343 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18344 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18345
18346
18347 hard_links="nottested"
18348 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18349   # do not overwrite the value of need_locks provided by the user
18350   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18351 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18352   hard_links=yes
18353   $rm conftest*
18354   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18355   touch conftest.a
18356   ln conftest.a conftest.b 2>&5 || hard_links=no
18357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18358   echo "$as_me:$LINENO: result: $hard_links" >&5
18359 echo "${ECHO_T}$hard_links" >&6
18360   if test "$hard_links" = no; then
18361     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18362 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18363     need_locks=warn
18364   fi
18365 else
18366   need_locks=no
18367 fi
18368
18369 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18370 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18371
18372   runpath_var=
18373   allow_undefined_flag_GCJ=
18374   enable_shared_with_static_runtimes_GCJ=no
18375   archive_cmds_GCJ=
18376   archive_expsym_cmds_GCJ=
18377   old_archive_From_new_cmds_GCJ=
18378   old_archive_from_expsyms_cmds_GCJ=
18379   export_dynamic_flag_spec_GCJ=
18380   whole_archive_flag_spec_GCJ=
18381   thread_safe_flag_spec_GCJ=
18382   hardcode_libdir_flag_spec_GCJ=
18383   hardcode_libdir_flag_spec_ld_GCJ=
18384   hardcode_libdir_separator_GCJ=
18385   hardcode_direct_GCJ=no
18386   hardcode_minus_L_GCJ=no
18387   hardcode_shlibpath_var_GCJ=unsupported
18388   link_all_deplibs_GCJ=unknown
18389   hardcode_automatic_GCJ=no
18390   module_cmds_GCJ=
18391   module_expsym_cmds_GCJ=
18392   always_export_symbols_GCJ=no
18393   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18394   # include_expsyms should be a list of space-separated symbols to be *always*
18395   # included in the symbol list
18396   include_expsyms_GCJ=
18397   # exclude_expsyms can be an extended regexp of symbols to exclude
18398   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18399   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18400   # as well as any symbol that contains `d'.
18401   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18402   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18403   # platforms (ab)use it in PIC code, but their linkers get confused if
18404   # the symbol is explicitly referenced.  Since portable code cannot
18405   # rely on this symbol name, it's probably fine to never include it in
18406   # preloaded symbol tables.
18407   extract_expsyms_cmds=
18408   # Just being paranoid about ensuring that cc_basename is set.
18409   for cc_temp in $compiler""; do
18410   case $cc_temp in
18411     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18412     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18413     \-*) ;;
18414     *) break;;
18415   esac
18416 done
18417 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18418
18419   case $host_os in
18420   cygwin* | mingw* | pw32*)
18421     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18422     # When not using gcc, we currently assume that we are using
18423     # Microsoft Visual C++.
18424     if test "$GCC" != yes; then
18425       with_gnu_ld=no
18426     fi
18427     ;;
18428   openbsd*)
18429     with_gnu_ld=no
18430     ;;
18431   esac
18432
18433   ld_shlibs_GCJ=yes
18434   if test "$with_gnu_ld" = yes; then
18435     # If archive_cmds runs LD, not CC, wlarc should be empty
18436     wlarc='${wl}'
18437
18438     # Set some defaults for GNU ld with shared library support. These
18439     # are reset later if shared libraries are not supported. Putting them
18440     # here allows them to be overridden if necessary.
18441     runpath_var=LD_RUN_PATH
18442     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18443     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18444     # ancient GNU ld didn't support --whole-archive et. al.
18445     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18446         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18447       else
18448         whole_archive_flag_spec_GCJ=
18449     fi
18450     supports_anon_versioning=no
18451     case `$LD -v 2>/dev/null` in
18452       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18453       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18454       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18455       *\ 2.11.*) ;; # other 2.11 versions
18456       *) supports_anon_versioning=yes ;;
18457     esac
18458
18459     # See if GNU ld supports shared libraries.
18460     case $host_os in
18461     aix3* | aix4* | aix5*)
18462       # On AIX/PPC, the GNU linker is very broken
18463       if test "$host_cpu" != ia64; then
18464         ld_shlibs_GCJ=no
18465         cat <<EOF 1>&2
18466
18467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18468 *** to be unable to reliably create shared libraries on AIX.
18469 *** Therefore, libtool is disabling shared libraries support.  If you
18470 *** really care for shared libraries, you may want to modify your PATH
18471 *** so that a non-GNU linker is found, and then restart.
18472
18473 EOF
18474       fi
18475       ;;
18476
18477     amigaos*)
18478       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)'
18479       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18480       hardcode_minus_L_GCJ=yes
18481
18482       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18483       # that the semantics of dynamic libraries on AmigaOS, at least up
18484       # to version 4, is to share data among multiple programs linked
18485       # with the same dynamic library.  Since this doesn't match the
18486       # behavior of shared libraries on other platforms, we can't use
18487       # them.
18488       ld_shlibs_GCJ=no
18489       ;;
18490
18491     beos*)
18492       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18493         allow_undefined_flag_GCJ=unsupported
18494         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18495         # support --undefined.  This deserves some investigation.  FIXME
18496         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18497       else
18498         ld_shlibs_GCJ=no
18499       fi
18500       ;;
18501
18502     cygwin* | mingw* | pw32*)
18503       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18504       # as there is no search path for DLLs.
18505       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18506       allow_undefined_flag_GCJ=unsupported
18507       always_export_symbols_GCJ=no
18508       enable_shared_with_static_runtimes_GCJ=yes
18509       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18510
18511       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18512         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18513         # If the export-symbols file already is a .def file (1st line
18514         # is EXPORTS), use it as is; otherwise, prepend...
18515         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18516           cp $export_symbols $output_objdir/$soname.def;
18517         else
18518           echo EXPORTS > $output_objdir/$soname.def;
18519           cat $export_symbols >> $output_objdir/$soname.def;
18520         fi~
18521         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18522       else
18523         ld_shlibs_GCJ=no
18524       fi
18525       ;;
18526
18527     linux*)
18528       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18529         tmp_addflag=
18530         case $cc_basename,$host_cpu in
18531         pgcc*)                          # Portland Group C compiler
18532           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'
18533           tmp_addflag=' $pic_flag'
18534           ;;
18535         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
18536           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'
18537           tmp_addflag=' $pic_flag -Mnomain' ;;
18538         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18539           tmp_addflag=' -i_dynamic' ;;
18540         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18541           tmp_addflag=' -i_dynamic -nofor_main' ;;
18542         ifc* | ifort*)                  # Intel Fortran compiler
18543           tmp_addflag=' -nofor_main' ;;
18544         esac
18545         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18546
18547         if test $supports_anon_versioning = yes; then
18548           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18549   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18550   $echo "local: *; };" >> $output_objdir/$libname.ver~
18551           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18552         fi
18553       else
18554         ld_shlibs_GCJ=no
18555       fi
18556       ;;
18557
18558     netbsd*)
18559       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18560         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18561         wlarc=
18562       else
18563         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18564         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18565       fi
18566       ;;
18567
18568     solaris* | sysv5*)
18569       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18570         ld_shlibs_GCJ=no
18571         cat <<EOF 1>&2
18572
18573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18574 *** create shared libraries on Solaris systems.  Therefore, libtool
18575 *** is disabling shared libraries support.  We urge you to upgrade GNU
18576 *** binutils to release 2.9.1 or newer.  Another option is to modify
18577 *** your PATH or compiler configuration so that the native linker is
18578 *** used, and then restart.
18579
18580 EOF
18581       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18582         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18583         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18584       else
18585         ld_shlibs_GCJ=no
18586       fi
18587       ;;
18588
18589     sunos4*)
18590       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18591       wlarc=
18592       hardcode_direct_GCJ=yes
18593       hardcode_shlibpath_var_GCJ=no
18594       ;;
18595
18596     *)
18597       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18598         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18599         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18600       else
18601         ld_shlibs_GCJ=no
18602       fi
18603       ;;
18604     esac
18605
18606     if test "$ld_shlibs_GCJ" = no; then
18607       runpath_var=
18608       hardcode_libdir_flag_spec_GCJ=
18609       export_dynamic_flag_spec_GCJ=
18610       whole_archive_flag_spec_GCJ=
18611     fi
18612   else
18613     # PORTME fill in a description of your system's linker (not GNU ld)
18614     case $host_os in
18615     aix3*)
18616       allow_undefined_flag_GCJ=unsupported
18617       always_export_symbols_GCJ=yes
18618       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'
18619       # Note: this linker hardcodes the directories in LIBPATH if there
18620       # are no directories specified by -L.
18621       hardcode_minus_L_GCJ=yes
18622       if test "$GCC" = yes && test -z "$link_static_flag"; then
18623         # Neither direct hardcoding nor static linking is supported with a
18624         # broken collect2.
18625         hardcode_direct_GCJ=unsupported
18626       fi
18627       ;;
18628
18629     aix4* | aix5*)
18630       if test "$host_cpu" = ia64; then
18631         # On IA64, the linker does run time linking by default, so we don't
18632         # have to do anything special.
18633         aix_use_runtimelinking=no
18634         exp_sym_flag='-Bexport'
18635         no_entry_flag=""
18636       else
18637         # If we're using GNU nm, then we don't want the "-C" option.
18638         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18639         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18640           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'
18641         else
18642           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'
18643         fi
18644         aix_use_runtimelinking=no
18645
18646         # Test if we are trying to use run time linking or normal
18647         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18648         # need to do runtime linking.
18649         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18650           for ld_flag in $LDFLAGS; do
18651           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18652             aix_use_runtimelinking=yes
18653             break
18654           fi
18655           done
18656         esac
18657
18658         exp_sym_flag='-bexport'
18659         no_entry_flag='-bnoentry'
18660       fi
18661
18662       # When large executables or shared objects are built, AIX ld can
18663       # have problems creating the table of contents.  If linking a library
18664       # or program results in "error TOC overflow" add -mminimal-toc to
18665       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18666       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18667
18668       archive_cmds_GCJ=''
18669       hardcode_direct_GCJ=yes
18670       hardcode_libdir_separator_GCJ=':'
18671       link_all_deplibs_GCJ=yes
18672
18673       if test "$GCC" = yes; then
18674         case $host_os in aix4.[012]|aix4.[012].*)
18675         # We only want to do this on AIX 4.2 and lower, the check
18676         # below for broken collect2 doesn't work under 4.3+
18677           collect2name=`${CC} -print-prog-name=collect2`
18678           if test -f "$collect2name" && \
18679            strings "$collect2name" | grep resolve_lib_name >/dev/null
18680           then
18681           # We have reworked collect2
18682           hardcode_direct_GCJ=yes
18683           else
18684           # We have old collect2
18685           hardcode_direct_GCJ=unsupported
18686           # It fails to find uninstalled libraries when the uninstalled
18687           # path is not listed in the libpath.  Setting hardcode_minus_L
18688           # to unsupported forces relinking
18689           hardcode_minus_L_GCJ=yes
18690           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18691           hardcode_libdir_separator_GCJ=
18692           fi
18693         esac
18694         shared_flag='-shared'
18695         if test "$aix_use_runtimelinking" = yes; then
18696           shared_flag="$shared_flag "'${wl}-G'
18697         fi
18698       else
18699         # not using gcc
18700         if test "$host_cpu" = ia64; then
18701         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18702         # chokes on -Wl,-G. The following line is correct:
18703           shared_flag='-G'
18704         else
18705         if test "$aix_use_runtimelinking" = yes; then
18706             shared_flag='${wl}-G'
18707           else
18708             shared_flag='${wl}-bM:SRE'
18709         fi
18710         fi
18711       fi
18712
18713       # It seems that -bexpall does not export symbols beginning with
18714       # underscore (_), so it is better to generate a list of symbols to export.
18715       always_export_symbols_GCJ=yes
18716       if test "$aix_use_runtimelinking" = yes; then
18717         # Warning - without using the other runtime loading flags (-brtl),
18718         # -berok will link without error, but may produce a broken library.
18719         allow_undefined_flag_GCJ='-berok'
18720        # Determine the default libpath from the value encoded in an empty executable.
18721        cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h.  */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h.  */
18727
18728 int
18729 main ()
18730 {
18731
18732   ;
18733   return 0;
18734 }
18735 _ACEOF
18736 rm -f conftest.$ac_objext conftest$ac_exeext
18737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18738   (eval $ac_link) 2>conftest.er1
18739   ac_status=$?
18740   grep -v '^ *+' conftest.er1 >conftest.err
18741   rm -f conftest.er1
18742   cat conftest.err >&5
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); } &&
18745          { ac_try='test -z "$ac_c_werror_flag"
18746                          || test ! -s conftest.err'
18747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748   (eval $ac_try) 2>&5
18749   ac_status=$?
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); }; } &&
18752          { ac_try='test -s conftest$ac_exeext'
18753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754   (eval $ac_try) 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); }; }; then
18758
18759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18760 }'`
18761 # Check for a 64-bit object if we didn't find anything.
18762 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; }
18763 }'`; fi
18764 else
18765   echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18767
18768 fi
18769 rm -f conftest.err conftest.$ac_objext \
18770       conftest$ac_exeext conftest.$ac_ext
18771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18772
18773        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18774         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"
18775        else
18776         if test "$host_cpu" = ia64; then
18777           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18778           allow_undefined_flag_GCJ="-z nodefs"
18779           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"
18780         else
18781          # Determine the default libpath from the value encoded in an empty executable.
18782          cat >conftest.$ac_ext <<_ACEOF
18783 /* confdefs.h.  */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h.  */
18788
18789 int
18790 main ()
18791 {
18792
18793   ;
18794   return 0;
18795 }
18796 _ACEOF
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18799   (eval $ac_link) 2>conftest.er1
18800   ac_status=$?
18801   grep -v '^ *+' conftest.er1 >conftest.err
18802   rm -f conftest.er1
18803   cat conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } &&
18806          { ac_try='test -z "$ac_c_werror_flag"
18807                          || test ! -s conftest.err'
18808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809   (eval $ac_try) 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); }; } &&
18813          { ac_try='test -s conftest$ac_exeext'
18814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815   (eval $ac_try) 2>&5
18816   ac_status=$?
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); }; }; then
18819
18820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18821 }'`
18822 # Check for a 64-bit object if we didn't find anything.
18823 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; }
18824 }'`; fi
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829 fi
18830 rm -f conftest.err conftest.$ac_objext \
18831       conftest$ac_exeext conftest.$ac_ext
18832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18833
18834          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18835           # Warning - without using the other run time loading flags,
18836           # -berok will link without error, but may produce a broken library.
18837           no_undefined_flag_GCJ=' ${wl}-bernotok'
18838           allow_undefined_flag_GCJ=' ${wl}-berok'
18839           # -bexpall does not export symbols beginning with underscore (_)
18840           always_export_symbols_GCJ=yes
18841           # Exported symbols can be pulled into shared objects from archives
18842           whole_archive_flag_spec_GCJ=' '
18843           archive_cmds_need_lc_GCJ=yes
18844           # This is similar to how AIX traditionally builds it's shared libraries.
18845           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'
18846         fi
18847       fi
18848       ;;
18849
18850     amigaos*)
18851       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)'
18852       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18853       hardcode_minus_L_GCJ=yes
18854       # see comment about different semantics on the GNU ld section
18855       ld_shlibs_GCJ=no
18856       ;;
18857
18858     bsdi[45]*)
18859       export_dynamic_flag_spec_GCJ=-rdynamic
18860       ;;
18861
18862     cygwin* | mingw* | pw32*)
18863       # When not using gcc, we currently assume that we are using
18864       # Microsoft Visual C++.
18865       # hardcode_libdir_flag_spec is actually meaningless, as there is
18866       # no search path for DLLs.
18867       hardcode_libdir_flag_spec_GCJ=' '
18868       allow_undefined_flag_GCJ=unsupported
18869       # Tell ltmain to make .lib files, not .a files.
18870       libext=lib
18871       # Tell ltmain to make .dll files, not .so files.
18872       shrext_cmds=".dll"
18873       # FIXME: Setting linknames here is a bad hack.
18874       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18875       # The linker will automatically build a .lib file if we build a DLL.
18876       old_archive_From_new_cmds_GCJ='true'
18877       # FIXME: Should let the user specify the lib program.
18878       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18879       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18880       enable_shared_with_static_runtimes_GCJ=yes
18881       ;;
18882
18883     darwin* | rhapsody*)
18884       case "$host_os" in
18885         rhapsody* | darwin1.[012])
18886          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18887          ;;
18888        *) # Darwin 1.3 on
18889          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18890            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18891          else
18892            case ${MACOSX_DEPLOYMENT_TARGET} in
18893              10.[012])
18894                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18895                ;;
18896              10.*)
18897                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18898                ;;
18899            esac
18900          fi
18901          ;;
18902       esac
18903       archive_cmds_need_lc_GCJ=no
18904       hardcode_direct_GCJ=no
18905       hardcode_automatic_GCJ=yes
18906       hardcode_shlibpath_var_GCJ=unsupported
18907       whole_archive_flag_spec_GCJ=''
18908       link_all_deplibs_GCJ=yes
18909     if test "$GCC" = yes ; then
18910         output_verbose_link_cmd='echo'
18911         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18912       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18913       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18914       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}'
18915       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}'
18916     else
18917       case $cc_basename in
18918         xlc*)
18919          output_verbose_link_cmd='echo'
18920          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18921          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18922           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18923          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}'
18924           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}'
18925           ;;
18926        *)
18927          ld_shlibs_GCJ=no
18928           ;;
18929       esac
18930     fi
18931       ;;
18932
18933     dgux*)
18934       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18935       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18936       hardcode_shlibpath_var_GCJ=no
18937       ;;
18938
18939     freebsd1*)
18940       ld_shlibs_GCJ=no
18941       ;;
18942
18943     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18944     # support.  Future versions do this automatically, but an explicit c++rt0.o
18945     # does not break anything, and helps significantly (at the cost of a little
18946     # extra space).
18947     freebsd2.2*)
18948       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18949       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18950       hardcode_direct_GCJ=yes
18951       hardcode_shlibpath_var_GCJ=no
18952       ;;
18953
18954     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18955     freebsd2*)
18956       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18957       hardcode_direct_GCJ=yes
18958       hardcode_minus_L_GCJ=yes
18959       hardcode_shlibpath_var_GCJ=no
18960       ;;
18961
18962     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18963     freebsd* | kfreebsd*-gnu | dragonfly*)
18964       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18965       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18966       hardcode_direct_GCJ=yes
18967       hardcode_shlibpath_var_GCJ=no
18968       ;;
18969
18970     hpux9*)
18971       if test "$GCC" = yes; then
18972         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'
18973       else
18974         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'
18975       fi
18976       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18977       hardcode_libdir_separator_GCJ=:
18978       hardcode_direct_GCJ=yes
18979
18980       # hardcode_minus_L: Not really in the search PATH,
18981       # but as the default location of the library.
18982       hardcode_minus_L_GCJ=yes
18983       export_dynamic_flag_spec_GCJ='${wl}-E'
18984       ;;
18985
18986     hpux10* | hpux11*)
18987       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18988         case "$host_cpu" in
18989         hppa*64*|ia64*)
18990           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18991           ;;
18992         *)
18993           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18994           ;;
18995         esac
18996       else
18997         case "$host_cpu" in
18998         hppa*64*|ia64*)
18999           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19000           ;;
19001         *)
19002           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19003           ;;
19004         esac
19005       fi
19006       if test "$with_gnu_ld" = no; then
19007         case "$host_cpu" in
19008         hppa*64*)
19009           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19010           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19011           hardcode_libdir_separator_GCJ=:
19012           hardcode_direct_GCJ=no
19013           hardcode_shlibpath_var_GCJ=no
19014           ;;
19015         ia64*)
19016           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19017           hardcode_direct_GCJ=no
19018           hardcode_shlibpath_var_GCJ=no
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         *)
19025           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19026           hardcode_libdir_separator_GCJ=:
19027           hardcode_direct_GCJ=yes
19028           export_dynamic_flag_spec_GCJ='${wl}-E'
19029
19030           # hardcode_minus_L: Not really in the search PATH,
19031           # but as the default location of the library.
19032           hardcode_minus_L_GCJ=yes
19033           ;;
19034         esac
19035       fi
19036       ;;
19037
19038     irix5* | irix6* | nonstopux*)
19039       if test "$GCC" = yes; then
19040         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'
19041       else
19042         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'
19043         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19044       fi
19045       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19046       hardcode_libdir_separator_GCJ=:
19047       link_all_deplibs_GCJ=yes
19048       ;;
19049
19050     netbsd*)
19051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19052         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19053       else
19054         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19055       fi
19056       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19057       hardcode_direct_GCJ=yes
19058       hardcode_shlibpath_var_GCJ=no
19059       ;;
19060
19061     newsos6)
19062       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19063       hardcode_direct_GCJ=yes
19064       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19065       hardcode_libdir_separator_GCJ=:
19066       hardcode_shlibpath_var_GCJ=no
19067       ;;
19068
19069     openbsd*)
19070       hardcode_direct_GCJ=yes
19071       hardcode_shlibpath_var_GCJ=no
19072       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19073         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19074         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19075         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19076         export_dynamic_flag_spec_GCJ='${wl}-E'
19077       else
19078        case $host_os in
19079          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19080            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19081            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19082            ;;
19083          *)
19084            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19085            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19086            ;;
19087        esac
19088       fi
19089       ;;
19090
19091     os2*)
19092       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19093       hardcode_minus_L_GCJ=yes
19094       allow_undefined_flag_GCJ=unsupported
19095       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'
19096       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19097       ;;
19098
19099     osf3*)
19100       if test "$GCC" = yes; then
19101         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19102         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'
19103       else
19104         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19105         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'
19106       fi
19107       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19108       hardcode_libdir_separator_GCJ=:
19109       ;;
19110
19111     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19112       if test "$GCC" = yes; then
19113         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19114         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'
19115         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19116       else
19117         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19118         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'
19119         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~
19120         $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'
19121
19122         # Both c and cxx compiler support -rpath directly
19123         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19124       fi
19125       hardcode_libdir_separator_GCJ=:
19126       ;;
19127
19128     sco3.2v5*)
19129       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19130       hardcode_shlibpath_var_GCJ=no
19131       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19132       runpath_var=LD_RUN_PATH
19133       hardcode_runpath_var=yes
19134       ;;
19135
19136     solaris*)
19137       no_undefined_flag_GCJ=' -z text'
19138       if test "$GCC" = yes; then
19139         wlarc='${wl}'
19140         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19141         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19142           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19143       else
19144         wlarc=''
19145         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19146         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19147         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19148       fi
19149       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19150       hardcode_shlibpath_var_GCJ=no
19151       case $host_os in
19152       solaris2.[0-5] | solaris2.[0-5].*) ;;
19153       *)
19154         # The compiler driver will combine linker options so we
19155         # cannot just pass the convience library names through
19156         # without $wl, iff we do not link with $LD.
19157         # Luckily, gcc supports the same syntax we need for Sun Studio.
19158         # Supported since Solaris 2.6 (maybe 2.5.1?)
19159         case $wlarc in
19160         '')
19161           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19162         *)
19163           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' ;;
19164         esac ;;
19165       esac
19166       link_all_deplibs_GCJ=yes
19167       ;;
19168
19169     sunos4*)
19170       if test "x$host_vendor" = xsequent; then
19171         # Use $CC to link under sequent, because it throws in some extra .o
19172         # files that make .init and .fini sections work.
19173         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19174       else
19175         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19176       fi
19177       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19178       hardcode_direct_GCJ=yes
19179       hardcode_minus_L_GCJ=yes
19180       hardcode_shlibpath_var_GCJ=no
19181       ;;
19182
19183     sysv4)
19184       case $host_vendor in
19185         sni)
19186           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19187           hardcode_direct_GCJ=yes # is this really true???
19188         ;;
19189         siemens)
19190           ## LD is ld it makes a PLAMLIB
19191           ## CC just makes a GrossModule.
19192           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19193           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19194           hardcode_direct_GCJ=no
19195         ;;
19196         motorola)
19197           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19198           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19199         ;;
19200       esac
19201       runpath_var='LD_RUN_PATH'
19202       hardcode_shlibpath_var_GCJ=no
19203       ;;
19204
19205     sysv4.3*)
19206       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19207       hardcode_shlibpath_var_GCJ=no
19208       export_dynamic_flag_spec_GCJ='-Bexport'
19209       ;;
19210
19211     sysv4*MP*)
19212       if test -d /usr/nec; then
19213         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19214         hardcode_shlibpath_var_GCJ=no
19215         runpath_var=LD_RUN_PATH
19216         hardcode_runpath_var=yes
19217         ld_shlibs_GCJ=yes
19218       fi
19219       ;;
19220
19221     sysv4.2uw2*)
19222       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19223       hardcode_direct_GCJ=yes
19224       hardcode_minus_L_GCJ=no
19225       hardcode_shlibpath_var_GCJ=no
19226       hardcode_runpath_var=yes
19227       runpath_var=LD_RUN_PATH
19228       ;;
19229
19230    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19231       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19232       if test "$GCC" = yes; then
19233         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19234       else
19235         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19236       fi
19237       runpath_var='LD_RUN_PATH'
19238       hardcode_shlibpath_var_GCJ=no
19239       ;;
19240
19241     sysv5*)
19242       no_undefined_flag_GCJ=' -z text'
19243       # $CC -shared without GNU ld will not create a library from C++
19244       # object files and a static libstdc++, better avoid it by now
19245       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19246       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19247                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19248       hardcode_libdir_flag_spec_GCJ=
19249       hardcode_shlibpath_var_GCJ=no
19250       runpath_var='LD_RUN_PATH'
19251       ;;
19252
19253     uts4*)
19254       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19255       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19256       hardcode_shlibpath_var_GCJ=no
19257       ;;
19258
19259     *)
19260       ld_shlibs_GCJ=no
19261       ;;
19262     esac
19263   fi
19264
19265 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19266 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19267 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19268
19269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19270 if test "$GCC" = yes; then
19271   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19272 fi
19273
19274 #
19275 # Do we need to explicitly link libc?
19276 #
19277 case "x$archive_cmds_need_lc_GCJ" in
19278 x|xyes)
19279   # Assume -lc should be added
19280   archive_cmds_need_lc_GCJ=yes
19281
19282   if test "$enable_shared" = yes && test "$GCC" = yes; then
19283     case $archive_cmds_GCJ in
19284     *'~'*)
19285       # FIXME: we may have to deal with multi-command sequences.
19286       ;;
19287     '$CC '*)
19288       # Test whether the compiler implicitly links with -lc since on some
19289       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19290       # to ld, don't add -lc before -lgcc.
19291       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19293       $rm conftest*
19294       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19295
19296       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19297   (eval $ac_compile) 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); } 2>conftest.err; then
19301         soname=conftest
19302         lib=conftest
19303         libobjs=conftest.$ac_objext
19304         deplibs=
19305         wl=$lt_prog_compiler_wl_GCJ
19306         compiler_flags=-v
19307         linker_flags=-v
19308         verstring=
19309         output_objdir=.
19310         libname=conftest
19311         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19312         allow_undefined_flag_GCJ=
19313         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19314   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }
19318         then
19319           archive_cmds_need_lc_GCJ=no
19320         else
19321           archive_cmds_need_lc_GCJ=yes
19322         fi
19323         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19324       else
19325         cat conftest.err 1>&5
19326       fi
19327       $rm conftest*
19328       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19329 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19330       ;;
19331     esac
19332   fi
19333   ;;
19334 esac
19335
19336 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19338 library_names_spec=
19339 libname_spec='lib$name'
19340 soname_spec=
19341 shrext_cmds=".so"
19342 postinstall_cmds=
19343 postuninstall_cmds=
19344 finish_cmds=
19345 finish_eval=
19346 shlibpath_var=
19347 shlibpath_overrides_runpath=unknown
19348 version_type=none
19349 dynamic_linker="$host_os ld.so"
19350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19351 if test "$GCC" = yes; then
19352   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19353   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19354     # if the path contains ";" then we assume it to be the separator
19355     # otherwise default to the standard path separator (i.e. ":") - it is
19356     # assumed that no part of a normal pathname contains ";" but that should
19357     # okay in the real world where ";" in dirpaths is itself problematic.
19358     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19359   else
19360     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19361   fi
19362 else
19363   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19364 fi
19365 need_lib_prefix=unknown
19366 hardcode_into_libs=no
19367
19368 # when you set need_version to no, make sure it does not cause -set_version
19369 # flags to be left without arguments
19370 need_version=unknown
19371
19372 case $host_os in
19373 aix3*)
19374   version_type=linux
19375   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19376   shlibpath_var=LIBPATH
19377
19378   # AIX 3 has no versioning support, so we append a major version to the name.
19379   soname_spec='${libname}${release}${shared_ext}$major'
19380   ;;
19381
19382 aix4* | aix5*)
19383   version_type=linux
19384   need_lib_prefix=no
19385   need_version=no
19386   hardcode_into_libs=yes
19387   if test "$host_cpu" = ia64; then
19388     # AIX 5 supports IA64
19389     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19390     shlibpath_var=LD_LIBRARY_PATH
19391   else
19392     # With GCC up to 2.95.x, collect2 would create an import file
19393     # for dependence libraries.  The import file would start with
19394     # the line `#! .'.  This would cause the generated library to
19395     # depend on `.', always an invalid library.  This was fixed in
19396     # development snapshots of GCC prior to 3.0.
19397     case $host_os in
19398       aix4 | aix4.[01] | aix4.[01].*)
19399       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19400            echo ' yes '
19401            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19402         :
19403       else
19404         can_build_shared=no
19405       fi
19406       ;;
19407     esac
19408     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19409     # soname into executable. Probably we can add versioning support to
19410     # collect2, so additional links can be useful in future.
19411     if test "$aix_use_runtimelinking" = yes; then
19412       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19413       # instead of lib<name>.a to let people know that these are not
19414       # typical AIX shared libraries.
19415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19416     else
19417       # We preserve .a as extension for shared libraries through AIX4.2
19418       # and later when we are not doing run time linking.
19419       library_names_spec='${libname}${release}.a $libname.a'
19420       soname_spec='${libname}${release}${shared_ext}$major'
19421     fi
19422     shlibpath_var=LIBPATH
19423   fi
19424   ;;
19425
19426 amigaos*)
19427   library_names_spec='$libname.ixlibrary $libname.a'
19428   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19429   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'
19430   ;;
19431
19432 beos*)
19433   library_names_spec='${libname}${shared_ext}'
19434   dynamic_linker="$host_os ld.so"
19435   shlibpath_var=LIBRARY_PATH
19436   ;;
19437
19438 bsdi[45]*)
19439   version_type=linux
19440   need_version=no
19441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19442   soname_spec='${libname}${release}${shared_ext}$major'
19443   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19444   shlibpath_var=LD_LIBRARY_PATH
19445   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19446   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19447   # the default ld.so.conf also contains /usr/contrib/lib and
19448   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19449   # libtool to hard-code these into programs
19450   ;;
19451
19452 cygwin* | mingw* | pw32*)
19453   version_type=windows
19454   shrext_cmds=".dll"
19455   need_version=no
19456   need_lib_prefix=no
19457
19458   case $GCC,$host_os in
19459   yes,cygwin* | yes,mingw* | yes,pw32*)
19460     library_names_spec='$libname.dll.a'
19461     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19462     postinstall_cmds='base_file=`basename \${file}`~
19463       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19464       dldir=$destdir/`dirname \$dlpath`~
19465       test -d \$dldir || mkdir -p \$dldir~
19466       $install_prog $dir/$dlname \$dldir/$dlname'
19467     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19468       dlpath=$dir/\$dldll~
19469        $rm \$dlpath'
19470     shlibpath_overrides_runpath=yes
19471
19472     case $host_os in
19473     cygwin*)
19474       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19475       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19476       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19477       ;;
19478     mingw*)
19479       # MinGW DLLs use traditional 'lib' prefix
19480       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19481       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19482       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19483         # It is most probably a Windows format PATH printed by
19484         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19485         # path with ; separators, and with drive letters. We can handle the
19486         # drive letters (cygwin fileutils understands them), so leave them,
19487         # especially as we might pass files found there to a mingw objdump,
19488         # which wouldn't understand a cygwinified path. Ahh.
19489         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19490       else
19491         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19492       fi
19493       ;;
19494     pw32*)
19495       # pw32 DLLs use 'pw' prefix rather than 'lib'
19496       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19497       ;;
19498     esac
19499     ;;
19500
19501   *)
19502     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19503     ;;
19504   esac
19505   dynamic_linker='Win32 ld.exe'
19506   # FIXME: first we should search . and the directory the executable is in
19507   shlibpath_var=PATH
19508   ;;
19509
19510 darwin* | rhapsody*)
19511   dynamic_linker="$host_os dyld"
19512   version_type=darwin
19513   need_lib_prefix=no
19514   need_version=no
19515   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19516   soname_spec='${libname}${release}${major}$shared_ext'
19517   shlibpath_overrides_runpath=yes
19518   shlibpath_var=DYLD_LIBRARY_PATH
19519   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19520   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19521   if test "$GCC" = yes; then
19522     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"`
19523   else
19524     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19525   fi
19526   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19527   ;;
19528
19529 dgux*)
19530   version_type=linux
19531   need_lib_prefix=no
19532   need_version=no
19533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19534   soname_spec='${libname}${release}${shared_ext}$major'
19535   shlibpath_var=LD_LIBRARY_PATH
19536   ;;
19537
19538 freebsd1*)
19539   dynamic_linker=no
19540   ;;
19541
19542 kfreebsd*-gnu)
19543   version_type=linux
19544   need_lib_prefix=no
19545   need_version=no
19546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19547   soname_spec='${libname}${release}${shared_ext}$major'
19548   shlibpath_var=LD_LIBRARY_PATH
19549   shlibpath_overrides_runpath=no
19550   hardcode_into_libs=yes
19551   dynamic_linker='GNU ld.so'
19552   ;;
19553
19554 freebsd* | dragonfly*)
19555   # DragonFly does not have aout.  When/if they implement a new
19556   # versioning mechanism, adjust this.
19557   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19558   version_type=freebsd-$objformat
19559   case $version_type in
19560     freebsd-elf*)
19561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19562       need_version=no
19563       need_lib_prefix=no
19564       ;;
19565     freebsd-*)
19566       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19567       need_version=yes
19568       ;;
19569   esac
19570   shlibpath_var=LD_LIBRARY_PATH
19571   case $host_os in
19572   freebsd2*)
19573     shlibpath_overrides_runpath=yes
19574     ;;
19575   freebsd3.[01]* | freebsdelf3.[01]*)
19576     shlibpath_overrides_runpath=yes
19577     hardcode_into_libs=yes
19578     ;;
19579   *) # from 3.2 on
19580     shlibpath_overrides_runpath=no
19581     hardcode_into_libs=yes
19582     ;;
19583   esac
19584   ;;
19585
19586 gnu*)
19587   version_type=linux
19588   need_lib_prefix=no
19589   need_version=no
19590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19591   soname_spec='${libname}${release}${shared_ext}$major'
19592   shlibpath_var=LD_LIBRARY_PATH
19593   hardcode_into_libs=yes
19594   ;;
19595
19596 hpux9* | hpux10* | hpux11*)
19597   # Give a soname corresponding to the major version so that dld.sl refuses to
19598   # link against other versions.
19599   version_type=sunos
19600   need_lib_prefix=no
19601   need_version=no
19602   case "$host_cpu" in
19603   ia64*)
19604     shrext_cmds='.so'
19605     hardcode_into_libs=yes
19606     dynamic_linker="$host_os dld.so"
19607     shlibpath_var=LD_LIBRARY_PATH
19608     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19610     soname_spec='${libname}${release}${shared_ext}$major'
19611     if test "X$HPUX_IA64_MODE" = X32; then
19612       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19613     else
19614       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19615     fi
19616     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19617     ;;
19618    hppa*64*)
19619      shrext_cmds='.sl'
19620      hardcode_into_libs=yes
19621      dynamic_linker="$host_os dld.sl"
19622      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19623      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19627      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19628      ;;
19629    *)
19630     shrext_cmds='.sl'
19631     dynamic_linker="$host_os dld.sl"
19632     shlibpath_var=SHLIB_PATH
19633     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19635     soname_spec='${libname}${release}${shared_ext}$major'
19636     ;;
19637   esac
19638   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19639   postinstall_cmds='chmod 555 $lib'
19640   ;;
19641
19642 irix5* | irix6* | nonstopux*)
19643   case $host_os in
19644     nonstopux*) version_type=nonstopux ;;
19645     *)
19646         if test "$lt_cv_prog_gnu_ld" = yes; then
19647                 version_type=linux
19648         else
19649                 version_type=irix
19650         fi ;;
19651   esac
19652   need_lib_prefix=no
19653   need_version=no
19654   soname_spec='${libname}${release}${shared_ext}$major'
19655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19656   case $host_os in
19657   irix5* | nonstopux*)
19658     libsuff= shlibsuff=
19659     ;;
19660   *)
19661     case $LD in # libtool.m4 will add one of these switches to LD
19662     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19663       libsuff= shlibsuff= libmagic=32-bit;;
19664     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19665       libsuff=32 shlibsuff=N32 libmagic=N32;;
19666     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19667       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19668     *) libsuff= shlibsuff= libmagic=never-match;;
19669     esac
19670     ;;
19671   esac
19672   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19673   shlibpath_overrides_runpath=no
19674   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19675   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19676   hardcode_into_libs=yes
19677   ;;
19678
19679 # No shared lib support for Linux oldld, aout, or coff.
19680 linux*oldld* | linux*aout* | linux*coff*)
19681   dynamic_linker=no
19682   ;;
19683
19684 # This must be Linux ELF.
19685 linux*)
19686   version_type=linux
19687   need_lib_prefix=no
19688   need_version=no
19689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19690   soname_spec='${libname}${release}${shared_ext}$major'
19691   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19692   shlibpath_var=LD_LIBRARY_PATH
19693   shlibpath_overrides_runpath=no
19694   # This implies no fast_install, which is unacceptable.
19695   # Some rework will be needed to allow for fast_install
19696   # before this can be enabled.
19697   hardcode_into_libs=yes
19698
19699   # Append ld.so.conf contents to the search path
19700   if test -f /etc/ld.so.conf; then
19701     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' ' '`
19702     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19703   fi
19704
19705   # We used to test for /lib/ld.so.1 and disable shared libraries on
19706   # powerpc, because MkLinux only supported shared libraries with the
19707   # GNU dynamic linker.  Since this was broken with cross compilers,
19708   # most powerpc-linux boxes support dynamic linking these days and
19709   # people can always --disable-shared, the test was removed, and we
19710   # assume the GNU/Linux dynamic linker is in use.
19711   dynamic_linker='GNU/Linux ld.so'
19712   ;;
19713
19714 knetbsd*-gnu)
19715   version_type=linux
19716   need_lib_prefix=no
19717   need_version=no
19718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19719   soname_spec='${libname}${release}${shared_ext}$major'
19720   shlibpath_var=LD_LIBRARY_PATH
19721   shlibpath_overrides_runpath=no
19722   hardcode_into_libs=yes
19723   dynamic_linker='GNU ld.so'
19724   ;;
19725
19726 netbsd*)
19727   version_type=sunos
19728   need_lib_prefix=no
19729   need_version=no
19730   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19732     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19733     dynamic_linker='NetBSD (a.out) ld.so'
19734   else
19735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19736     soname_spec='${libname}${release}${shared_ext}$major'
19737     dynamic_linker='NetBSD ld.elf_so'
19738   fi
19739   shlibpath_var=LD_LIBRARY_PATH
19740   shlibpath_overrides_runpath=yes
19741   hardcode_into_libs=yes
19742   ;;
19743
19744 newsos6)
19745   version_type=linux
19746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19747   shlibpath_var=LD_LIBRARY_PATH
19748   shlibpath_overrides_runpath=yes
19749   ;;
19750
19751 nto-qnx*)
19752   version_type=linux
19753   need_lib_prefix=no
19754   need_version=no
19755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19756   soname_spec='${libname}${release}${shared_ext}$major'
19757   shlibpath_var=LD_LIBRARY_PATH
19758   shlibpath_overrides_runpath=yes
19759   ;;
19760
19761 openbsd*)
19762   version_type=sunos
19763   need_lib_prefix=no
19764   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19765   case $host_os in
19766     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19767     *)                         need_version=no  ;;
19768   esac
19769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19770   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19771   shlibpath_var=LD_LIBRARY_PATH
19772   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19773     case $host_os in
19774       openbsd2.[89] | openbsd2.[89].*)
19775         shlibpath_overrides_runpath=no
19776         ;;
19777       *)
19778         shlibpath_overrides_runpath=yes
19779         ;;
19780       esac
19781   else
19782     shlibpath_overrides_runpath=yes
19783   fi
19784   ;;
19785
19786 os2*)
19787   libname_spec='$name'
19788   shrext_cmds=".dll"
19789   need_lib_prefix=no
19790   library_names_spec='$libname${shared_ext} $libname.a'
19791   dynamic_linker='OS/2 ld.exe'
19792   shlibpath_var=LIBPATH
19793   ;;
19794
19795 osf3* | osf4* | osf5*)
19796   version_type=osf
19797   need_lib_prefix=no
19798   need_version=no
19799   soname_spec='${libname}${release}${shared_ext}$major'
19800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801   shlibpath_var=LD_LIBRARY_PATH
19802   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19803   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19804   ;;
19805
19806 sco3.2v5*)
19807   version_type=osf
19808   soname_spec='${libname}${release}${shared_ext}$major'
19809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810   shlibpath_var=LD_LIBRARY_PATH
19811   ;;
19812
19813 solaris*)
19814   version_type=linux
19815   need_lib_prefix=no
19816   need_version=no
19817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19818   soname_spec='${libname}${release}${shared_ext}$major'
19819   shlibpath_var=LD_LIBRARY_PATH
19820   shlibpath_overrides_runpath=yes
19821   hardcode_into_libs=yes
19822   # ldd complains unless libraries are executable
19823   postinstall_cmds='chmod +x $lib'
19824   ;;
19825
19826 sunos4*)
19827   version_type=sunos
19828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19829   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19830   shlibpath_var=LD_LIBRARY_PATH
19831   shlibpath_overrides_runpath=yes
19832   if test "$with_gnu_ld" = yes; then
19833     need_lib_prefix=no
19834   fi
19835   need_version=yes
19836   ;;
19837
19838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19839   version_type=linux
19840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19841   soname_spec='${libname}${release}${shared_ext}$major'
19842   shlibpath_var=LD_LIBRARY_PATH
19843   case $host_vendor in
19844     sni)
19845       shlibpath_overrides_runpath=no
19846       need_lib_prefix=no
19847       export_dynamic_flag_spec='${wl}-Blargedynsym'
19848       runpath_var=LD_RUN_PATH
19849       ;;
19850     siemens)
19851       need_lib_prefix=no
19852       ;;
19853     motorola)
19854       need_lib_prefix=no
19855       need_version=no
19856       shlibpath_overrides_runpath=no
19857       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19858       ;;
19859   esac
19860   ;;
19861
19862 sysv4*MP*)
19863   if test -d /usr/nec ;then
19864     version_type=linux
19865     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19866     soname_spec='$libname${shared_ext}.$major'
19867     shlibpath_var=LD_LIBRARY_PATH
19868   fi
19869   ;;
19870
19871 uts4*)
19872   version_type=linux
19873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19874   soname_spec='${libname}${release}${shared_ext}$major'
19875   shlibpath_var=LD_LIBRARY_PATH
19876   ;;
19877
19878 *)
19879   dynamic_linker=no
19880   ;;
19881 esac
19882 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19883 echo "${ECHO_T}$dynamic_linker" >&6
19884 test "$dynamic_linker" = no && can_build_shared=no
19885
19886 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19888 hardcode_action_GCJ=
19889 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19890    test -n "$runpath_var_GCJ" || \
19891    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19892
19893   # We can hardcode non-existant directories.
19894   if test "$hardcode_direct_GCJ" != no &&
19895      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19896      # have to relink, otherwise we might link with an installed library
19897      # when we should be linking with a yet-to-be-installed one
19898      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19899      test "$hardcode_minus_L_GCJ" != no; then
19900     # Linking always hardcodes the temporary library directory.
19901     hardcode_action_GCJ=relink
19902   else
19903     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19904     hardcode_action_GCJ=immediate
19905   fi
19906 else
19907   # We cannot hardcode anything, or else we can only hardcode existing
19908   # directories.
19909   hardcode_action_GCJ=unsupported
19910 fi
19911 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19912 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19913
19914 if test "$hardcode_action_GCJ" = relink; then
19915   # Fast installation is not supported
19916   enable_fast_install=no
19917 elif test "$shlibpath_overrides_runpath" = yes ||
19918      test "$enable_shared" = no; then
19919   # Fast installation is not necessary
19920   enable_fast_install=needless
19921 fi
19922
19923 striplib=
19924 old_striplib=
19925 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19926 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19927 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19928   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19929   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19930   echo "$as_me:$LINENO: result: yes" >&5
19931 echo "${ECHO_T}yes" >&6
19932 else
19933 # FIXME - insert some real tests, host_os isn't really good enough
19934   case $host_os in
19935    darwin*)
19936        if test -n "$STRIP" ; then
19937          striplib="$STRIP -x"
19938          echo "$as_me:$LINENO: result: yes" >&5
19939 echo "${ECHO_T}yes" >&6
19940        else
19941   echo "$as_me:$LINENO: result: no" >&5
19942 echo "${ECHO_T}no" >&6
19943 fi
19944        ;;
19945    *)
19946   echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6
19948     ;;
19949   esac
19950 fi
19951
19952 if test "x$enable_dlopen" != xyes; then
19953   enable_dlopen=unknown
19954   enable_dlopen_self=unknown
19955   enable_dlopen_self_static=unknown
19956 else
19957   lt_cv_dlopen=no
19958   lt_cv_dlopen_libs=
19959
19960   case $host_os in
19961   beos*)
19962     lt_cv_dlopen="load_add_on"
19963     lt_cv_dlopen_libs=
19964     lt_cv_dlopen_self=yes
19965     ;;
19966
19967   mingw* | pw32*)
19968     lt_cv_dlopen="LoadLibrary"
19969     lt_cv_dlopen_libs=
19970    ;;
19971
19972   cygwin*)
19973     lt_cv_dlopen="dlopen"
19974     lt_cv_dlopen_libs=
19975    ;;
19976
19977   darwin*)
19978   # if libdl is installed we need to link against it
19979     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   ac_check_lib_save_LIBS=$LIBS
19985 LIBS="-ldl  $LIBS"
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992
19993 /* Override any gcc2 internal prototype to avoid an error.  */
19994 #ifdef __cplusplus
19995 extern "C"
19996 #endif
19997 /* We use char because int might match the return type of a gcc2
19998    builtin and then its argument prototype would still apply.  */
19999 char dlopen ();
20000 int
20001 main ()
20002 {
20003 dlopen ();
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010   (eval $ac_link) 2>conftest.er1
20011   ac_status=$?
20012   grep -v '^ *+' conftest.er1 >conftest.err
20013   rm -f conftest.er1
20014   cat conftest.err >&5
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); } &&
20017          { ac_try='test -z "$ac_c_werror_flag"
20018                          || test ! -s conftest.err'
20019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020   (eval $ac_try) 2>&5
20021   ac_status=$?
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); }; } &&
20024          { ac_try='test -s conftest$ac_exeext'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; }; then
20030   ac_cv_lib_dl_dlopen=yes
20031 else
20032   echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20034
20035 ac_cv_lib_dl_dlopen=no
20036 fi
20037 rm -f conftest.err conftest.$ac_objext \
20038       conftest$ac_exeext conftest.$ac_ext
20039 LIBS=$ac_check_lib_save_LIBS
20040 fi
20041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20043 if test $ac_cv_lib_dl_dlopen = yes; then
20044   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20045 else
20046
20047     lt_cv_dlopen="dyld"
20048     lt_cv_dlopen_libs=
20049     lt_cv_dlopen_self=yes
20050
20051 fi
20052
20053    ;;
20054
20055   *)
20056     echo "$as_me:$LINENO: checking for shl_load" >&5
20057 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20058 if test "${ac_cv_func_shl_load+set}" = set; then
20059   echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061   cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20069 #define shl_load innocuous_shl_load
20070
20071 /* System header to define __stub macros and hopefully few prototypes,
20072     which can conflict with char shl_load (); below.
20073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20074     <limits.h> exists even on freestanding compilers.  */
20075
20076 #ifdef __STDC__
20077 # include <limits.h>
20078 #else
20079 # include <assert.h>
20080 #endif
20081
20082 #undef shl_load
20083
20084 /* Override any gcc2 internal prototype to avoid an error.  */
20085 #ifdef __cplusplus
20086 extern "C"
20087 {
20088 #endif
20089 /* We use char because int might match the return type of a gcc2
20090    builtin and then its argument prototype would still apply.  */
20091 char shl_load ();
20092 /* The GNU C library defines this for functions which it implements
20093     to always fail with ENOSYS.  Some functions are actually named
20094     something starting with __ and the normal name is an alias.  */
20095 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20096 choke me
20097 #else
20098 char (*f) () = shl_load;
20099 #endif
20100 #ifdef __cplusplus
20101 }
20102 #endif
20103
20104 int
20105 main ()
20106 {
20107 return f != shl_load;
20108   ;
20109   return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext conftest$ac_exeext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20114   (eval $ac_link) 2>conftest.er1
20115   ac_status=$?
20116   grep -v '^ *+' conftest.er1 >conftest.err
20117   rm -f conftest.er1
20118   cat conftest.err >&5
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); } &&
20121          { ac_try='test -z "$ac_c_werror_flag"
20122                          || test ! -s conftest.err'
20123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124   (eval $ac_try) 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }; } &&
20128          { ac_try='test -s conftest$ac_exeext'
20129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130   (eval $ac_try) 2>&5
20131   ac_status=$?
20132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133   (exit $ac_status); }; }; then
20134   ac_cv_func_shl_load=yes
20135 else
20136   echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ac_cv_func_shl_load=no
20140 fi
20141 rm -f conftest.err conftest.$ac_objext \
20142       conftest$ac_exeext conftest.$ac_ext
20143 fi
20144 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20145 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20146 if test $ac_cv_func_shl_load = yes; then
20147   lt_cv_dlopen="shl_load"
20148 else
20149   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20150 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154   ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-ldld  $LIBS"
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162
20163 /* Override any gcc2 internal prototype to avoid an error.  */
20164 #ifdef __cplusplus
20165 extern "C"
20166 #endif
20167 /* We use char because int might match the return type of a gcc2
20168    builtin and then its argument prototype would still apply.  */
20169 char shl_load ();
20170 int
20171 main ()
20172 {
20173 shl_load ();
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20180   (eval $ac_link) 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } &&
20187          { ac_try='test -z "$ac_c_werror_flag"
20188                          || test ! -s conftest.err'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; } &&
20194          { ac_try='test -s conftest$ac_exeext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   ac_cv_lib_dld_shl_load=yes
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ac_cv_lib_dld_shl_load=no
20206 fi
20207 rm -f conftest.err conftest.$ac_objext \
20208       conftest$ac_exeext conftest.$ac_ext
20209 LIBS=$ac_check_lib_save_LIBS
20210 fi
20211 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20212 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20213 if test $ac_cv_lib_dld_shl_load = yes; then
20214   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20215 else
20216   echo "$as_me:$LINENO: checking for dlopen" >&5
20217 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20218 if test "${ac_cv_func_dlopen+set}" = set; then
20219   echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221   cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20229 #define dlopen innocuous_dlopen
20230
20231 /* System header to define __stub macros and hopefully few prototypes,
20232     which can conflict with char dlopen (); below.
20233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20234     <limits.h> exists even on freestanding compilers.  */
20235
20236 #ifdef __STDC__
20237 # include <limits.h>
20238 #else
20239 # include <assert.h>
20240 #endif
20241
20242 #undef dlopen
20243
20244 /* Override any gcc2 internal prototype to avoid an error.  */
20245 #ifdef __cplusplus
20246 extern "C"
20247 {
20248 #endif
20249 /* We use char because int might match the return type of a gcc2
20250    builtin and then its argument prototype would still apply.  */
20251 char dlopen ();
20252 /* The GNU C library defines this for functions which it implements
20253     to always fail with ENOSYS.  Some functions are actually named
20254     something starting with __ and the normal name is an alias.  */
20255 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20256 choke me
20257 #else
20258 char (*f) () = dlopen;
20259 #endif
20260 #ifdef __cplusplus
20261 }
20262 #endif
20263
20264 int
20265 main ()
20266 {
20267 return f != dlopen;
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20274   (eval $ac_link) 2>conftest.er1
20275   ac_status=$?
20276   grep -v '^ *+' conftest.er1 >conftest.err
20277   rm -f conftest.er1
20278   cat conftest.err >&5
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); } &&
20281          { ac_try='test -z "$ac_c_werror_flag"
20282                          || test ! -s conftest.err'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; } &&
20288          { ac_try='test -s conftest$ac_exeext'
20289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290   (eval $ac_try) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; }; then
20294   ac_cv_func_dlopen=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_cv_func_dlopen=no
20300 fi
20301 rm -f conftest.err conftest.$ac_objext \
20302       conftest$ac_exeext conftest.$ac_ext
20303 fi
20304 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20305 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20306 if test $ac_cv_func_dlopen = yes; then
20307   lt_cv_dlopen="dlopen"
20308 else
20309   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20312   echo $ECHO_N "(cached) $ECHO_C" >&6
20313 else
20314   ac_check_lib_save_LIBS=$LIBS
20315 LIBS="-ldl  $LIBS"
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322
20323 /* Override any gcc2 internal prototype to avoid an error.  */
20324 #ifdef __cplusplus
20325 extern "C"
20326 #endif
20327 /* We use char because int might match the return type of a gcc2
20328    builtin and then its argument prototype would still apply.  */
20329 char dlopen ();
20330 int
20331 main ()
20332 {
20333 dlopen ();
20334   ;
20335   return 0;
20336 }
20337 _ACEOF
20338 rm -f conftest.$ac_objext conftest$ac_exeext
20339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20340   (eval $ac_link) 2>conftest.er1
20341   ac_status=$?
20342   grep -v '^ *+' conftest.er1 >conftest.err
20343   rm -f conftest.er1
20344   cat conftest.err >&5
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } &&
20347          { ac_try='test -z "$ac_c_werror_flag"
20348                          || test ! -s conftest.err'
20349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350   (eval $ac_try) 2>&5
20351   ac_status=$?
20352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353   (exit $ac_status); }; } &&
20354          { ac_try='test -s conftest$ac_exeext'
20355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356   (eval $ac_try) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; }; then
20360   ac_cv_lib_dl_dlopen=yes
20361 else
20362   echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 ac_cv_lib_dl_dlopen=no
20366 fi
20367 rm -f conftest.err conftest.$ac_objext \
20368       conftest$ac_exeext conftest.$ac_ext
20369 LIBS=$ac_check_lib_save_LIBS
20370 fi
20371 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20373 if test $ac_cv_lib_dl_dlopen = yes; then
20374   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20375 else
20376   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20377 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20379   echo $ECHO_N "(cached) $ECHO_C" >&6
20380 else
20381   ac_check_lib_save_LIBS=$LIBS
20382 LIBS="-lsvld  $LIBS"
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h.  */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h.  */
20389
20390 /* Override any gcc2 internal prototype to avoid an error.  */
20391 #ifdef __cplusplus
20392 extern "C"
20393 #endif
20394 /* We use char because int might match the return type of a gcc2
20395    builtin and then its argument prototype would still apply.  */
20396 char dlopen ();
20397 int
20398 main ()
20399 {
20400 dlopen ();
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext conftest$ac_exeext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20407   (eval $ac_link) 2>conftest.er1
20408   ac_status=$?
20409   grep -v '^ *+' conftest.er1 >conftest.err
20410   rm -f conftest.er1
20411   cat conftest.err >&5
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); } &&
20414          { ac_try='test -z "$ac_c_werror_flag"
20415                          || test ! -s conftest.err'
20416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417   (eval $ac_try) 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; } &&
20421          { ac_try='test -s conftest$ac_exeext'
20422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423   (eval $ac_try) 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   ac_cv_lib_svld_dlopen=yes
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 ac_cv_lib_svld_dlopen=no
20433 fi
20434 rm -f conftest.err conftest.$ac_objext \
20435       conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20437 fi
20438 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20439 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20440 if test $ac_cv_lib_svld_dlopen = yes; then
20441   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20442 else
20443   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20444 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   ac_check_lib_save_LIBS=$LIBS
20449 LIBS="-ldld  $LIBS"
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456
20457 /* Override any gcc2 internal prototype to avoid an error.  */
20458 #ifdef __cplusplus
20459 extern "C"
20460 #endif
20461 /* We use char because int might match the return type of a gcc2
20462    builtin and then its argument prototype would still apply.  */
20463 char dld_link ();
20464 int
20465 main ()
20466 {
20467 dld_link ();
20468   ;
20469   return 0;
20470 }
20471 _ACEOF
20472 rm -f conftest.$ac_objext conftest$ac_exeext
20473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20474   (eval $ac_link) 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } &&
20481          { ac_try='test -z "$ac_c_werror_flag"
20482                          || test ! -s conftest.err'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; } &&
20488          { ac_try='test -s conftest$ac_exeext'
20489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490   (eval $ac_try) 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; }; then
20494   ac_cv_lib_dld_dld_link=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_cv_lib_dld_dld_link=no
20500 fi
20501 rm -f conftest.err conftest.$ac_objext \
20502       conftest$ac_exeext conftest.$ac_ext
20503 LIBS=$ac_check_lib_save_LIBS
20504 fi
20505 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20506 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20507 if test $ac_cv_lib_dld_dld_link = yes; then
20508   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20509 fi
20510
20511
20512 fi
20513
20514
20515 fi
20516
20517
20518 fi
20519
20520
20521 fi
20522
20523
20524 fi
20525
20526     ;;
20527   esac
20528
20529   if test "x$lt_cv_dlopen" != xno; then
20530     enable_dlopen=yes
20531   else
20532     enable_dlopen=no
20533   fi
20534
20535   case $lt_cv_dlopen in
20536   dlopen)
20537     save_CPPFLAGS="$CPPFLAGS"
20538     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20539
20540     save_LDFLAGS="$LDFLAGS"
20541     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20542
20543     save_LIBS="$LIBS"
20544     LIBS="$lt_cv_dlopen_libs $LIBS"
20545
20546     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20547 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20548 if test "${lt_cv_dlopen_self+set}" = set; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551           if test "$cross_compiling" = yes; then :
20552   lt_cv_dlopen_self=cross
20553 else
20554   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20555   lt_status=$lt_dlunknown
20556   cat > conftest.$ac_ext <<EOF
20557 #line 20557 "configure"
20558 #include "confdefs.h"
20559
20560 #if HAVE_DLFCN_H
20561 #include <dlfcn.h>
20562 #endif
20563
20564 #include <stdio.h>
20565
20566 #ifdef RTLD_GLOBAL
20567 #  define LT_DLGLOBAL           RTLD_GLOBAL
20568 #else
20569 #  ifdef DL_GLOBAL
20570 #    define LT_DLGLOBAL         DL_GLOBAL
20571 #  else
20572 #    define LT_DLGLOBAL         0
20573 #  endif
20574 #endif
20575
20576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20577    find out it does not work in some platform. */
20578 #ifndef LT_DLLAZY_OR_NOW
20579 #  ifdef RTLD_LAZY
20580 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20581 #  else
20582 #    ifdef DL_LAZY
20583 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20584 #    else
20585 #      ifdef RTLD_NOW
20586 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20587 #      else
20588 #        ifdef DL_NOW
20589 #          define LT_DLLAZY_OR_NOW      DL_NOW
20590 #        else
20591 #          define LT_DLLAZY_OR_NOW      0
20592 #        endif
20593 #      endif
20594 #    endif
20595 #  endif
20596 #endif
20597
20598 #ifdef __cplusplus
20599 extern "C" void exit (int);
20600 #endif
20601
20602 void fnord() { int i=42;}
20603 int main ()
20604 {
20605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20606   int status = $lt_dlunknown;
20607
20608   if (self)
20609     {
20610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20611       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20612       /* dlclose (self); */
20613     }
20614
20615     exit (status);
20616 }
20617 EOF
20618   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619   (eval $ac_link) 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20623     (./conftest; exit; ) 2>/dev/null
20624     lt_status=$?
20625     case x$lt_status in
20626       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20627       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20628       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20629     esac
20630   else :
20631     # compilation failed
20632     lt_cv_dlopen_self=no
20633   fi
20634 fi
20635 rm -fr conftest*
20636
20637
20638 fi
20639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20640 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20641
20642     if test "x$lt_cv_dlopen_self" = xyes; then
20643       LDFLAGS="$LDFLAGS $link_static_flag"
20644       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20645 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20646 if test "${lt_cv_dlopen_self_static+set}" = set; then
20647   echo $ECHO_N "(cached) $ECHO_C" >&6
20648 else
20649           if test "$cross_compiling" = yes; then :
20650   lt_cv_dlopen_self_static=cross
20651 else
20652   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20653   lt_status=$lt_dlunknown
20654   cat > conftest.$ac_ext <<EOF
20655 #line 20655 "configure"
20656 #include "confdefs.h"
20657
20658 #if HAVE_DLFCN_H
20659 #include <dlfcn.h>
20660 #endif
20661
20662 #include <stdio.h>
20663
20664 #ifdef RTLD_GLOBAL
20665 #  define LT_DLGLOBAL           RTLD_GLOBAL
20666 #else
20667 #  ifdef DL_GLOBAL
20668 #    define LT_DLGLOBAL         DL_GLOBAL
20669 #  else
20670 #    define LT_DLGLOBAL         0
20671 #  endif
20672 #endif
20673
20674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20675    find out it does not work in some platform. */
20676 #ifndef LT_DLLAZY_OR_NOW
20677 #  ifdef RTLD_LAZY
20678 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20679 #  else
20680 #    ifdef DL_LAZY
20681 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20682 #    else
20683 #      ifdef RTLD_NOW
20684 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20685 #      else
20686 #        ifdef DL_NOW
20687 #          define LT_DLLAZY_OR_NOW      DL_NOW
20688 #        else
20689 #          define LT_DLLAZY_OR_NOW      0
20690 #        endif
20691 #      endif
20692 #    endif
20693 #  endif
20694 #endif
20695
20696 #ifdef __cplusplus
20697 extern "C" void exit (int);
20698 #endif
20699
20700 void fnord() { int i=42;}
20701 int main ()
20702 {
20703   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20704   int status = $lt_dlunknown;
20705
20706   if (self)
20707     {
20708       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20709       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20710       /* dlclose (self); */
20711     }
20712
20713     exit (status);
20714 }
20715 EOF
20716   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717   (eval $ac_link) 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20721     (./conftest; exit; ) 2>/dev/null
20722     lt_status=$?
20723     case x$lt_status in
20724       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20725       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20726       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20727     esac
20728   else :
20729     # compilation failed
20730     lt_cv_dlopen_self_static=no
20731   fi
20732 fi
20733 rm -fr conftest*
20734
20735
20736 fi
20737 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20738 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20739     fi
20740
20741     CPPFLAGS="$save_CPPFLAGS"
20742     LDFLAGS="$save_LDFLAGS"
20743     LIBS="$save_LIBS"
20744     ;;
20745   esac
20746
20747   case $lt_cv_dlopen_self in
20748   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20749   *) enable_dlopen_self=unknown ;;
20750   esac
20751
20752   case $lt_cv_dlopen_self_static in
20753   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20754   *) enable_dlopen_self_static=unknown ;;
20755   esac
20756 fi
20757
20758
20759 # The else clause should only fire when bootstrapping the
20760 # libtool distribution, otherwise you forgot to ship ltmain.sh
20761 # with your package, and you will get complaints that there are
20762 # no rules to generate ltmain.sh.
20763 if test -f "$ltmain"; then
20764   # See if we are running on zsh, and set the options which allow our commands through
20765   # without removal of \ escapes.
20766   if test -n "${ZSH_VERSION+set}" ; then
20767     setopt NO_GLOB_SUBST
20768   fi
20769   # Now quote all the things that may contain metacharacters while being
20770   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20771   # variables and quote the copies for generation of the libtool script.
20772   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20773     SED SHELL STRIP \
20774     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20775     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20776     deplibs_check_method reload_flag reload_cmds need_locks \
20777     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20778     lt_cv_sys_global_symbol_to_c_name_address \
20779     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20780     old_postinstall_cmds old_postuninstall_cmds \
20781     compiler_GCJ \
20782     CC_GCJ \
20783     LD_GCJ \
20784     lt_prog_compiler_wl_GCJ \
20785     lt_prog_compiler_pic_GCJ \
20786     lt_prog_compiler_static_GCJ \
20787     lt_prog_compiler_no_builtin_flag_GCJ \
20788     export_dynamic_flag_spec_GCJ \
20789     thread_safe_flag_spec_GCJ \
20790     whole_archive_flag_spec_GCJ \
20791     enable_shared_with_static_runtimes_GCJ \
20792     old_archive_cmds_GCJ \
20793     old_archive_from_new_cmds_GCJ \
20794     predep_objects_GCJ \
20795     postdep_objects_GCJ \
20796     predeps_GCJ \
20797     postdeps_GCJ \
20798     compiler_lib_search_path_GCJ \
20799     archive_cmds_GCJ \
20800     archive_expsym_cmds_GCJ \
20801     postinstall_cmds_GCJ \
20802     postuninstall_cmds_GCJ \
20803     old_archive_from_expsyms_cmds_GCJ \
20804     allow_undefined_flag_GCJ \
20805     no_undefined_flag_GCJ \
20806     export_symbols_cmds_GCJ \
20807     hardcode_libdir_flag_spec_GCJ \
20808     hardcode_libdir_flag_spec_ld_GCJ \
20809     hardcode_libdir_separator_GCJ \
20810     hardcode_automatic_GCJ \
20811     module_cmds_GCJ \
20812     module_expsym_cmds_GCJ \
20813     lt_cv_prog_compiler_c_o_GCJ \
20814     exclude_expsyms_GCJ \
20815     include_expsyms_GCJ; do
20816
20817     case $var in
20818     old_archive_cmds_GCJ | \
20819     old_archive_from_new_cmds_GCJ | \
20820     archive_cmds_GCJ | \
20821     archive_expsym_cmds_GCJ | \
20822     module_cmds_GCJ | \
20823     module_expsym_cmds_GCJ | \
20824     old_archive_from_expsyms_cmds_GCJ | \
20825     export_symbols_cmds_GCJ | \
20826     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20827     postinstall_cmds | postuninstall_cmds | \
20828     old_postinstall_cmds | old_postuninstall_cmds | \
20829     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20830       # Double-quote double-evaled strings.
20831       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20832       ;;
20833     *)
20834       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20835       ;;
20836     esac
20837   done
20838
20839   case $lt_echo in
20840   *'\$0 --fallback-echo"')
20841     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20842     ;;
20843   esac
20844
20845 cfgfile="$ofile"
20846
20847   cat <<__EOF__ >> "$cfgfile"
20848 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20849
20850 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20851
20852 # Shell to use when invoking shell scripts.
20853 SHELL=$lt_SHELL
20854
20855 # Whether or not to build shared libraries.
20856 build_libtool_libs=$enable_shared
20857
20858 # Whether or not to build static libraries.
20859 build_old_libs=$enable_static
20860
20861 # Whether or not to add -lc for building shared libraries.
20862 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20863
20864 # Whether or not to disallow shared libs when runtime libs are static
20865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20866
20867 # Whether or not to optimize for fast installation.
20868 fast_install=$enable_fast_install
20869
20870 # The host system.
20871 host_alias=$host_alias
20872 host=$host
20873 host_os=$host_os
20874
20875 # The build system.
20876 build_alias=$build_alias
20877 build=$build
20878 build_os=$build_os
20879
20880 # An echo program that does not interpret backslashes.
20881 echo=$lt_echo
20882
20883 # The archiver.
20884 AR=$lt_AR
20885 AR_FLAGS=$lt_AR_FLAGS
20886
20887 # A C compiler.
20888 LTCC=$lt_LTCC
20889
20890 # A language-specific compiler.
20891 CC=$lt_compiler_GCJ
20892
20893 # Is the compiler the GNU C compiler?
20894 with_gcc=$GCC_GCJ
20895
20896 # An ERE matcher.
20897 EGREP=$lt_EGREP
20898
20899 # The linker used to build libraries.
20900 LD=$lt_LD_GCJ
20901
20902 # Whether we need hard or soft links.
20903 LN_S=$lt_LN_S
20904
20905 # A BSD-compatible nm program.
20906 NM=$lt_NM
20907
20908 # A symbol stripping program
20909 STRIP=$lt_STRIP
20910
20911 # Used to examine libraries when file_magic_cmd begins "file"
20912 MAGIC_CMD=$MAGIC_CMD
20913
20914 # Used on cygwin: DLL creation program.
20915 DLLTOOL="$DLLTOOL"
20916
20917 # Used on cygwin: object dumper.
20918 OBJDUMP="$OBJDUMP"
20919
20920 # Used on cygwin: assembler.
20921 AS="$AS"
20922
20923 # The name of the directory that contains temporary libtool files.
20924 objdir=$objdir
20925
20926 # How to create reloadable object files.
20927 reload_flag=$lt_reload_flag
20928 reload_cmds=$lt_reload_cmds
20929
20930 # How to pass a linker flag through the compiler.
20931 wl=$lt_lt_prog_compiler_wl_GCJ
20932
20933 # Object file suffix (normally "o").
20934 objext="$ac_objext"
20935
20936 # Old archive suffix (normally "a").
20937 libext="$libext"
20938
20939 # Shared library suffix (normally ".so").
20940 shrext_cmds='$shrext_cmds'
20941
20942 # Executable file suffix (normally "").
20943 exeext="$exeext"
20944
20945 # Additional compiler flags for building library objects.
20946 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20947 pic_mode=$pic_mode
20948
20949 # What is the maximum length of a command?
20950 max_cmd_len=$lt_cv_sys_max_cmd_len
20951
20952 # Does compiler simultaneously support -c and -o options?
20953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20954
20955 # Must we lock files when doing compilation?
20956 need_locks=$lt_need_locks
20957
20958 # Do we need the lib prefix for modules?
20959 need_lib_prefix=$need_lib_prefix
20960
20961 # Do we need a version for libraries?
20962 need_version=$need_version
20963
20964 # Whether dlopen is supported.
20965 dlopen_support=$enable_dlopen
20966
20967 # Whether dlopen of programs is supported.
20968 dlopen_self=$enable_dlopen_self
20969
20970 # Whether dlopen of statically linked programs is supported.
20971 dlopen_self_static=$enable_dlopen_self_static
20972
20973 # Compiler flag to prevent dynamic linking.
20974 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20975
20976 # Compiler flag to turn off builtin functions.
20977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20978
20979 # Compiler flag to allow reflexive dlopens.
20980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20981
20982 # Compiler flag to generate shared objects directly from archives.
20983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20984
20985 # Compiler flag to generate thread-safe objects.
20986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20987
20988 # Library versioning type.
20989 version_type=$version_type
20990
20991 # Format of library name prefix.
20992 libname_spec=$lt_libname_spec
20993
20994 # List of archive names.  First name is the real one, the rest are links.
20995 # The last name is the one that the linker finds with -lNAME.
20996 library_names_spec=$lt_library_names_spec
20997
20998 # The coded name of the library, if different from the real name.
20999 soname_spec=$lt_soname_spec
21000
21001 # Commands used to build and install an old-style archive.
21002 RANLIB=$lt_RANLIB
21003 old_archive_cmds=$lt_old_archive_cmds_GCJ
21004 old_postinstall_cmds=$lt_old_postinstall_cmds
21005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21006
21007 # Create an old-style archive from a shared archive.
21008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21009
21010 # Create a temporary old-style archive to link instead of a shared archive.
21011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21012
21013 # Commands used to build and install a shared archive.
21014 archive_cmds=$lt_archive_cmds_GCJ
21015 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21016 postinstall_cmds=$lt_postinstall_cmds
21017 postuninstall_cmds=$lt_postuninstall_cmds
21018
21019 # Commands used to build a loadable module (assumed same as above if empty)
21020 module_cmds=$lt_module_cmds_GCJ
21021 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21022
21023 # Commands to strip libraries.
21024 old_striplib=$lt_old_striplib
21025 striplib=$lt_striplib
21026
21027 # Dependencies to place before the objects being linked to create a
21028 # shared library.
21029 predep_objects=$lt_predep_objects_GCJ
21030
21031 # Dependencies to place after the objects being linked to create a
21032 # shared library.
21033 postdep_objects=$lt_postdep_objects_GCJ
21034
21035 # Dependencies to place before the objects being linked to create a
21036 # shared library.
21037 predeps=$lt_predeps_GCJ
21038
21039 # Dependencies to place after the objects being linked to create a
21040 # shared library.
21041 postdeps=$lt_postdeps_GCJ
21042
21043 # The library search path used internally by the compiler when linking
21044 # a shared library.
21045 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21046
21047 # Method to check whether dependent libraries are shared objects.
21048 deplibs_check_method=$lt_deplibs_check_method
21049
21050 # Command to use when deplibs_check_method == file_magic.
21051 file_magic_cmd=$lt_file_magic_cmd
21052
21053 # Flag that allows shared libraries with undefined symbols to be built.
21054 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21055
21056 # Flag that forces no undefined symbols.
21057 no_undefined_flag=$lt_no_undefined_flag_GCJ
21058
21059 # Commands used to finish a libtool library installation in a directory.
21060 finish_cmds=$lt_finish_cmds
21061
21062 # Same as above, but a single script fragment to be evaled but not shown.
21063 finish_eval=$lt_finish_eval
21064
21065 # Take the output of nm and produce a listing of raw symbols and C names.
21066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21067
21068 # Transform the output of nm in a proper C declaration
21069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21070
21071 # Transform the output of nm in a C name address pair
21072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21073
21074 # This is the shared library runtime path variable.
21075 runpath_var=$runpath_var
21076
21077 # This is the shared library path variable.
21078 shlibpath_var=$shlibpath_var
21079
21080 # Is shlibpath searched before the hard-coded library search path?
21081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21082
21083 # How to hardcode a shared library path into an executable.
21084 hardcode_action=$hardcode_action_GCJ
21085
21086 # Whether we should hardcode library paths into libraries.
21087 hardcode_into_libs=$hardcode_into_libs
21088
21089 # Flag to hardcode \$libdir into a binary during linking.
21090 # This must work even if \$libdir does not exist.
21091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21092
21093 # If ld is used when linking, flag to hardcode \$libdir into
21094 # a binary during linking. This must work even if \$libdir does
21095 # not exist.
21096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21097
21098 # Whether we need a single -rpath flag with a separated argument.
21099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21100
21101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21102 # resulting binary.
21103 hardcode_direct=$hardcode_direct_GCJ
21104
21105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21106 # resulting binary.
21107 hardcode_minus_L=$hardcode_minus_L_GCJ
21108
21109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21110 # the resulting binary.
21111 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21112
21113 # Set to yes if building a shared library automatically hardcodes DIR into the library
21114 # and all subsequent libraries and executables linked against it.
21115 hardcode_automatic=$hardcode_automatic_GCJ
21116
21117 # Variables whose values should be saved in libtool wrapper scripts and
21118 # restored at relink time.
21119 variables_saved_for_relink="$variables_saved_for_relink"
21120
21121 # Whether libtool must link a program against all its dependency libraries.
21122 link_all_deplibs=$link_all_deplibs_GCJ
21123
21124 # Compile-time system search path for libraries
21125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21126
21127 # Run-time system search path for libraries
21128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21129
21130 # Fix the shell variable \$srcfile for the compiler.
21131 fix_srcfile_path="$fix_srcfile_path_GCJ"
21132
21133 # Set to yes if exported symbols are required.
21134 always_export_symbols=$always_export_symbols_GCJ
21135
21136 # The commands to list exported symbols.
21137 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21138
21139 # The commands to extract the exported symbol list from a shared archive.
21140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21141
21142 # Symbols that should not be listed in the preloaded symbols.
21143 exclude_expsyms=$lt_exclude_expsyms_GCJ
21144
21145 # Symbols that must always be exported.
21146 include_expsyms=$lt_include_expsyms_GCJ
21147
21148 # ### END LIBTOOL TAG CONFIG: $tagname
21149
21150 __EOF__
21151
21152
21153 else
21154   # If there is no Makefile yet, we rely on a make rule to execute
21155   # `config.status --recheck' to rerun these tests and create the
21156   # libtool script then.
21157   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21158   if test -f "$ltmain_in"; then
21159     test -f Makefile && make "$ltmain"
21160   fi
21161 fi
21162
21163
21164 ac_ext=c
21165 ac_cpp='$CPP $CPPFLAGS'
21166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21169
21170 CC="$lt_save_CC"
21171
21172         else
21173           tagname=""
21174         fi
21175         ;;
21176
21177       RC)
21178
21179
21180
21181 # Source file extension for RC test sources.
21182 ac_ext=rc
21183
21184 # Object file extension for compiled RC test sources.
21185 objext=o
21186 objext_RC=$objext
21187
21188 # Code to be used in simple compile tests
21189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21190
21191 # Code to be used in simple link tests
21192 lt_simple_link_test_code="$lt_simple_compile_test_code"
21193
21194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21195
21196 # If no C compiler was specified, use CC.
21197 LTCC=${LTCC-"$CC"}
21198
21199 # Allow CC to be a program name with arguments.
21200 compiler=$CC
21201
21202
21203 # save warnings/boilerplate of simple test code
21204 ac_outfile=conftest.$ac_objext
21205 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21207 _lt_compiler_boilerplate=`cat conftest.err`
21208 $rm conftest*
21209
21210 ac_outfile=conftest.$ac_objext
21211 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21213 _lt_linker_boilerplate=`cat conftest.err`
21214 $rm conftest*
21215
21216
21217 # Allow CC to be a program name with arguments.
21218 lt_save_CC="$CC"
21219 CC=${RC-"windres"}
21220 compiler=$CC
21221 compiler_RC=$CC
21222 for cc_temp in $compiler""; do
21223   case $cc_temp in
21224     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21225     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21226     \-*) ;;
21227     *) break;;
21228   esac
21229 done
21230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21231
21232 lt_cv_prog_compiler_c_o_RC=yes
21233
21234 # The else clause should only fire when bootstrapping the
21235 # libtool distribution, otherwise you forgot to ship ltmain.sh
21236 # with your package, and you will get complaints that there are
21237 # no rules to generate ltmain.sh.
21238 if test -f "$ltmain"; then
21239   # See if we are running on zsh, and set the options which allow our commands through
21240   # without removal of \ escapes.
21241   if test -n "${ZSH_VERSION+set}" ; then
21242     setopt NO_GLOB_SUBST
21243   fi
21244   # Now quote all the things that may contain metacharacters while being
21245   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21246   # variables and quote the copies for generation of the libtool script.
21247   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21248     SED SHELL STRIP \
21249     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21250     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21251     deplibs_check_method reload_flag reload_cmds need_locks \
21252     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21253     lt_cv_sys_global_symbol_to_c_name_address \
21254     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21255     old_postinstall_cmds old_postuninstall_cmds \
21256     compiler_RC \
21257     CC_RC \
21258     LD_RC \
21259     lt_prog_compiler_wl_RC \
21260     lt_prog_compiler_pic_RC \
21261     lt_prog_compiler_static_RC \
21262     lt_prog_compiler_no_builtin_flag_RC \
21263     export_dynamic_flag_spec_RC \
21264     thread_safe_flag_spec_RC \
21265     whole_archive_flag_spec_RC \
21266     enable_shared_with_static_runtimes_RC \
21267     old_archive_cmds_RC \
21268     old_archive_from_new_cmds_RC \
21269     predep_objects_RC \
21270     postdep_objects_RC \
21271     predeps_RC \
21272     postdeps_RC \
21273     compiler_lib_search_path_RC \
21274     archive_cmds_RC \
21275     archive_expsym_cmds_RC \
21276     postinstall_cmds_RC \
21277     postuninstall_cmds_RC \
21278     old_archive_from_expsyms_cmds_RC \
21279     allow_undefined_flag_RC \
21280     no_undefined_flag_RC \
21281     export_symbols_cmds_RC \
21282     hardcode_libdir_flag_spec_RC \
21283     hardcode_libdir_flag_spec_ld_RC \
21284     hardcode_libdir_separator_RC \
21285     hardcode_automatic_RC \
21286     module_cmds_RC \
21287     module_expsym_cmds_RC \
21288     lt_cv_prog_compiler_c_o_RC \
21289     exclude_expsyms_RC \
21290     include_expsyms_RC; do
21291
21292     case $var in
21293     old_archive_cmds_RC | \
21294     old_archive_from_new_cmds_RC | \
21295     archive_cmds_RC | \
21296     archive_expsym_cmds_RC | \
21297     module_cmds_RC | \
21298     module_expsym_cmds_RC | \
21299     old_archive_from_expsyms_cmds_RC | \
21300     export_symbols_cmds_RC | \
21301     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21302     postinstall_cmds | postuninstall_cmds | \
21303     old_postinstall_cmds | old_postuninstall_cmds | \
21304     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21305       # Double-quote double-evaled strings.
21306       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21307       ;;
21308     *)
21309       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21310       ;;
21311     esac
21312   done
21313
21314   case $lt_echo in
21315   *'\$0 --fallback-echo"')
21316     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21317     ;;
21318   esac
21319
21320 cfgfile="$ofile"
21321
21322   cat <<__EOF__ >> "$cfgfile"
21323 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21324
21325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21326
21327 # Shell to use when invoking shell scripts.
21328 SHELL=$lt_SHELL
21329
21330 # Whether or not to build shared libraries.
21331 build_libtool_libs=$enable_shared
21332
21333 # Whether or not to build static libraries.
21334 build_old_libs=$enable_static
21335
21336 # Whether or not to add -lc for building shared libraries.
21337 build_libtool_need_lc=$archive_cmds_need_lc_RC
21338
21339 # Whether or not to disallow shared libs when runtime libs are static
21340 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21341
21342 # Whether or not to optimize for fast installation.
21343 fast_install=$enable_fast_install
21344
21345 # The host system.
21346 host_alias=$host_alias
21347 host=$host
21348 host_os=$host_os
21349
21350 # The build system.
21351 build_alias=$build_alias
21352 build=$build
21353 build_os=$build_os
21354
21355 # An echo program that does not interpret backslashes.
21356 echo=$lt_echo
21357
21358 # The archiver.
21359 AR=$lt_AR
21360 AR_FLAGS=$lt_AR_FLAGS
21361
21362 # A C compiler.
21363 LTCC=$lt_LTCC
21364
21365 # A language-specific compiler.
21366 CC=$lt_compiler_RC
21367
21368 # Is the compiler the GNU C compiler?
21369 with_gcc=$GCC_RC
21370
21371 # An ERE matcher.
21372 EGREP=$lt_EGREP
21373
21374 # The linker used to build libraries.
21375 LD=$lt_LD_RC
21376
21377 # Whether we need hard or soft links.
21378 LN_S=$lt_LN_S
21379
21380 # A BSD-compatible nm program.
21381 NM=$lt_NM
21382
21383 # A symbol stripping program
21384 STRIP=$lt_STRIP
21385
21386 # Used to examine libraries when file_magic_cmd begins "file"
21387 MAGIC_CMD=$MAGIC_CMD
21388
21389 # Used on cygwin: DLL creation program.
21390 DLLTOOL="$DLLTOOL"
21391
21392 # Used on cygwin: object dumper.
21393 OBJDUMP="$OBJDUMP"
21394
21395 # Used on cygwin: assembler.
21396 AS="$AS"
21397
21398 # The name of the directory that contains temporary libtool files.
21399 objdir=$objdir
21400
21401 # How to create reloadable object files.
21402 reload_flag=$lt_reload_flag
21403 reload_cmds=$lt_reload_cmds
21404
21405 # How to pass a linker flag through the compiler.
21406 wl=$lt_lt_prog_compiler_wl_RC
21407
21408 # Object file suffix (normally "o").
21409 objext="$ac_objext"
21410
21411 # Old archive suffix (normally "a").
21412 libext="$libext"
21413
21414 # Shared library suffix (normally ".so").
21415 shrext_cmds='$shrext_cmds'
21416
21417 # Executable file suffix (normally "").
21418 exeext="$exeext"
21419
21420 # Additional compiler flags for building library objects.
21421 pic_flag=$lt_lt_prog_compiler_pic_RC
21422 pic_mode=$pic_mode
21423
21424 # What is the maximum length of a command?
21425 max_cmd_len=$lt_cv_sys_max_cmd_len
21426
21427 # Does compiler simultaneously support -c and -o options?
21428 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21429
21430 # Must we lock files when doing compilation?
21431 need_locks=$lt_need_locks
21432
21433 # Do we need the lib prefix for modules?
21434 need_lib_prefix=$need_lib_prefix
21435
21436 # Do we need a version for libraries?
21437 need_version=$need_version
21438
21439 # Whether dlopen is supported.
21440 dlopen_support=$enable_dlopen
21441
21442 # Whether dlopen of programs is supported.
21443 dlopen_self=$enable_dlopen_self
21444
21445 # Whether dlopen of statically linked programs is supported.
21446 dlopen_self_static=$enable_dlopen_self_static
21447
21448 # Compiler flag to prevent dynamic linking.
21449 link_static_flag=$lt_lt_prog_compiler_static_RC
21450
21451 # Compiler flag to turn off builtin functions.
21452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21453
21454 # Compiler flag to allow reflexive dlopens.
21455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21456
21457 # Compiler flag to generate shared objects directly from archives.
21458 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21459
21460 # Compiler flag to generate thread-safe objects.
21461 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21462
21463 # Library versioning type.
21464 version_type=$version_type
21465
21466 # Format of library name prefix.
21467 libname_spec=$lt_libname_spec
21468
21469 # List of archive names.  First name is the real one, the rest are links.
21470 # The last name is the one that the linker finds with -lNAME.
21471 library_names_spec=$lt_library_names_spec
21472
21473 # The coded name of the library, if different from the real name.
21474 soname_spec=$lt_soname_spec
21475
21476 # Commands used to build and install an old-style archive.
21477 RANLIB=$lt_RANLIB
21478 old_archive_cmds=$lt_old_archive_cmds_RC
21479 old_postinstall_cmds=$lt_old_postinstall_cmds
21480 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21481
21482 # Create an old-style archive from a shared archive.
21483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21484
21485 # Create a temporary old-style archive to link instead of a shared archive.
21486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21487
21488 # Commands used to build and install a shared archive.
21489 archive_cmds=$lt_archive_cmds_RC
21490 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21491 postinstall_cmds=$lt_postinstall_cmds
21492 postuninstall_cmds=$lt_postuninstall_cmds
21493
21494 # Commands used to build a loadable module (assumed same as above if empty)
21495 module_cmds=$lt_module_cmds_RC
21496 module_expsym_cmds=$lt_module_expsym_cmds_RC
21497
21498 # Commands to strip libraries.
21499 old_striplib=$lt_old_striplib
21500 striplib=$lt_striplib
21501
21502 # Dependencies to place before the objects being linked to create a
21503 # shared library.
21504 predep_objects=$lt_predep_objects_RC
21505
21506 # Dependencies to place after the objects being linked to create a
21507 # shared library.
21508 postdep_objects=$lt_postdep_objects_RC
21509
21510 # Dependencies to place before the objects being linked to create a
21511 # shared library.
21512 predeps=$lt_predeps_RC
21513
21514 # Dependencies to place after the objects being linked to create a
21515 # shared library.
21516 postdeps=$lt_postdeps_RC
21517
21518 # The library search path used internally by the compiler when linking
21519 # a shared library.
21520 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21521
21522 # Method to check whether dependent libraries are shared objects.
21523 deplibs_check_method=$lt_deplibs_check_method
21524
21525 # Command to use when deplibs_check_method == file_magic.
21526 file_magic_cmd=$lt_file_magic_cmd
21527
21528 # Flag that allows shared libraries with undefined symbols to be built.
21529 allow_undefined_flag=$lt_allow_undefined_flag_RC
21530
21531 # Flag that forces no undefined symbols.
21532 no_undefined_flag=$lt_no_undefined_flag_RC
21533
21534 # Commands used to finish a libtool library installation in a directory.
21535 finish_cmds=$lt_finish_cmds
21536
21537 # Same as above, but a single script fragment to be evaled but not shown.
21538 finish_eval=$lt_finish_eval
21539
21540 # Take the output of nm and produce a listing of raw symbols and C names.
21541 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21542
21543 # Transform the output of nm in a proper C declaration
21544 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21545
21546 # Transform the output of nm in a C name address pair
21547 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21548
21549 # This is the shared library runtime path variable.
21550 runpath_var=$runpath_var
21551
21552 # This is the shared library path variable.
21553 shlibpath_var=$shlibpath_var
21554
21555 # Is shlibpath searched before the hard-coded library search path?
21556 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21557
21558 # How to hardcode a shared library path into an executable.
21559 hardcode_action=$hardcode_action_RC
21560
21561 # Whether we should hardcode library paths into libraries.
21562 hardcode_into_libs=$hardcode_into_libs
21563
21564 # Flag to hardcode \$libdir into a binary during linking.
21565 # This must work even if \$libdir does not exist.
21566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21567
21568 # If ld is used when linking, flag to hardcode \$libdir into
21569 # a binary during linking. This must work even if \$libdir does
21570 # not exist.
21571 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21572
21573 # Whether we need a single -rpath flag with a separated argument.
21574 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21575
21576 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21577 # resulting binary.
21578 hardcode_direct=$hardcode_direct_RC
21579
21580 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21581 # resulting binary.
21582 hardcode_minus_L=$hardcode_minus_L_RC
21583
21584 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21585 # the resulting binary.
21586 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21587
21588 # Set to yes if building a shared library automatically hardcodes DIR into the library
21589 # and all subsequent libraries and executables linked against it.
21590 hardcode_automatic=$hardcode_automatic_RC
21591
21592 # Variables whose values should be saved in libtool wrapper scripts and
21593 # restored at relink time.
21594 variables_saved_for_relink="$variables_saved_for_relink"
21595
21596 # Whether libtool must link a program against all its dependency libraries.
21597 link_all_deplibs=$link_all_deplibs_RC
21598
21599 # Compile-time system search path for libraries
21600 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21601
21602 # Run-time system search path for libraries
21603 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21604
21605 # Fix the shell variable \$srcfile for the compiler.
21606 fix_srcfile_path="$fix_srcfile_path_RC"
21607
21608 # Set to yes if exported symbols are required.
21609 always_export_symbols=$always_export_symbols_RC
21610
21611 # The commands to list exported symbols.
21612 export_symbols_cmds=$lt_export_symbols_cmds_RC
21613
21614 # The commands to extract the exported symbol list from a shared archive.
21615 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21616
21617 # Symbols that should not be listed in the preloaded symbols.
21618 exclude_expsyms=$lt_exclude_expsyms_RC
21619
21620 # Symbols that must always be exported.
21621 include_expsyms=$lt_include_expsyms_RC
21622
21623 # ### END LIBTOOL TAG CONFIG: $tagname
21624
21625 __EOF__
21626
21627
21628 else
21629   # If there is no Makefile yet, we rely on a make rule to execute
21630   # `config.status --recheck' to rerun these tests and create the
21631   # libtool script then.
21632   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21633   if test -f "$ltmain_in"; then
21634     test -f Makefile && make "$ltmain"
21635   fi
21636 fi
21637
21638
21639 ac_ext=c
21640 ac_cpp='$CPP $CPPFLAGS'
21641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21644
21645 CC="$lt_save_CC"
21646
21647         ;;
21648
21649       *)
21650         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21651 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21652    { (exit 1); exit 1; }; }
21653         ;;
21654       esac
21655
21656       # Append the new tag name to the list of available tags.
21657       if test -n "$tagname" ; then
21658       available_tags="$available_tags $tagname"
21659     fi
21660     fi
21661   done
21662   IFS="$lt_save_ifs"
21663
21664   # Now substitute the updated list of available tags.
21665   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21666     mv "${ofile}T" "$ofile"
21667     chmod +x "$ofile"
21668   else
21669     rm -f "${ofile}T"
21670     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21671 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21672    { (exit 1); exit 1; }; }
21673   fi
21674 fi
21675
21676
21677
21678 # This can be used to rebuild libtool when needed
21679 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21680
21681 # Always use our own libtool.
21682 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21683
21684 # Prevent multiple expansion
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706 ol_link_perl=no
21707 if test $ol_enable_perl != no ; then
21708         # Extract the first word of "perl", so it can be a program name with args.
21709 set dummy perl; ac_word=$2
21710 echo "$as_me:$LINENO: checking for $ac_word" >&5
21711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21712 if test "${ac_cv_path_PERLBIN+set}" = set; then
21713   echo $ECHO_N "(cached) $ECHO_C" >&6
21714 else
21715   case $PERLBIN in
21716   [\\/]* | ?:[\\/]*)
21717   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21718   ;;
21719   *)
21720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21721 for as_dir in $PATH
21722 do
21723   IFS=$as_save_IFS
21724   test -z "$as_dir" && as_dir=.
21725   for ac_exec_ext in '' $ac_executable_extensions; do
21726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21727     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21729     break 2
21730   fi
21731 done
21732 done
21733
21734   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21735   ;;
21736 esac
21737 fi
21738 PERLBIN=$ac_cv_path_PERLBIN
21739
21740 if test -n "$PERLBIN"; then
21741   echo "$as_me:$LINENO: result: $PERLBIN" >&5
21742 echo "${ECHO_T}$PERLBIN" >&6
21743 else
21744   echo "$as_me:$LINENO: result: no" >&5
21745 echo "${ECHO_T}no" >&6
21746 fi
21747
21748
21749         if test "no$PERLBIN" = "no" ; then
21750                 if test $ol_enable_perl = yes ; then
21751                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21752 echo "$as_me: error: could not locate perl" >&2;}
21753    { (exit 1); exit 1; }; }
21754                 fi
21755
21756         else
21757                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21758                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21759
21760                 if test x"$ol_enable_perl" = "xyes" ; then
21761                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21762                 else
21763                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21764                 fi
21765                                 ol_link_perl=yes
21766         fi
21767 fi
21768
21769 ac_ext=c
21770 ac_cpp='$CPP $CPPFLAGS'
21771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21776 # On Suns, sometimes $CPP names a directory.
21777 if test -n "$CPP" && test -d "$CPP"; then
21778   CPP=
21779 fi
21780 if test -z "$CPP"; then
21781   if test "${ac_cv_prog_CPP+set}" = set; then
21782   echo $ECHO_N "(cached) $ECHO_C" >&6
21783 else
21784       # Double quotes because CPP needs to be expanded
21785     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21786     do
21787       ac_preproc_ok=false
21788 for ac_c_preproc_warn_flag in '' yes
21789 do
21790   # Use a header file that comes with gcc, so configuring glibc
21791   # with a fresh cross-compiler works.
21792   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21793   # <limits.h> exists even on freestanding compilers.
21794   # On the NeXT, cc -E runs the code through the compiler's parser,
21795   # not just through cpp. "Syntax error" is here to catch this case.
21796   cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 #ifdef __STDC__
21803 # include <limits.h>
21804 #else
21805 # include <assert.h>
21806 #endif
21807                      Syntax error
21808 _ACEOF
21809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } >/dev/null; then
21817   if test -s conftest.err; then
21818     ac_cpp_err=$ac_c_preproc_warn_flag
21819     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21820   else
21821     ac_cpp_err=
21822   fi
21823 else
21824   ac_cpp_err=yes
21825 fi
21826 if test -z "$ac_cpp_err"; then
21827   :
21828 else
21829   echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21831
21832   # Broken: fails on valid input.
21833 continue
21834 fi
21835 rm -f conftest.err conftest.$ac_ext
21836
21837   # OK, works on sane cases.  Now check whether non-existent headers
21838   # can be detected and how.
21839   cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 #include <ac_nonexistent.h>
21846 _ACEOF
21847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } >/dev/null; then
21855   if test -s conftest.err; then
21856     ac_cpp_err=$ac_c_preproc_warn_flag
21857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21858   else
21859     ac_cpp_err=
21860   fi
21861 else
21862   ac_cpp_err=yes
21863 fi
21864 if test -z "$ac_cpp_err"; then
21865   # Broken: success on invalid input.
21866 continue
21867 else
21868   echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21870
21871   # Passes both tests.
21872 ac_preproc_ok=:
21873 break
21874 fi
21875 rm -f conftest.err conftest.$ac_ext
21876
21877 done
21878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21879 rm -f conftest.err conftest.$ac_ext
21880 if $ac_preproc_ok; then
21881   break
21882 fi
21883
21884     done
21885     ac_cv_prog_CPP=$CPP
21886
21887 fi
21888   CPP=$ac_cv_prog_CPP
21889 else
21890   ac_cv_prog_CPP=$CPP
21891 fi
21892 echo "$as_me:$LINENO: result: $CPP" >&5
21893 echo "${ECHO_T}$CPP" >&6
21894 ac_preproc_ok=false
21895 for ac_c_preproc_warn_flag in '' yes
21896 do
21897   # Use a header file that comes with gcc, so configuring glibc
21898   # with a fresh cross-compiler works.
21899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21900   # <limits.h> exists even on freestanding compilers.
21901   # On the NeXT, cc -E runs the code through the compiler's parser,
21902   # not just through cpp. "Syntax error" is here to catch this case.
21903   cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909 #ifdef __STDC__
21910 # include <limits.h>
21911 #else
21912 # include <assert.h>
21913 #endif
21914                      Syntax error
21915 _ACEOF
21916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21918   ac_status=$?
21919   grep -v '^ *+' conftest.er1 >conftest.err
21920   rm -f conftest.er1
21921   cat conftest.err >&5
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } >/dev/null; then
21924   if test -s conftest.err; then
21925     ac_cpp_err=$ac_c_preproc_warn_flag
21926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21927   else
21928     ac_cpp_err=
21929   fi
21930 else
21931   ac_cpp_err=yes
21932 fi
21933 if test -z "$ac_cpp_err"; then
21934   :
21935 else
21936   echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21938
21939   # Broken: fails on valid input.
21940 continue
21941 fi
21942 rm -f conftest.err conftest.$ac_ext
21943
21944   # OK, works on sane cases.  Now check whether non-existent headers
21945   # can be detected and how.
21946   cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952 #include <ac_nonexistent.h>
21953 _ACEOF
21954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21956   ac_status=$?
21957   grep -v '^ *+' conftest.er1 >conftest.err
21958   rm -f conftest.er1
21959   cat conftest.err >&5
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); } >/dev/null; then
21962   if test -s conftest.err; then
21963     ac_cpp_err=$ac_c_preproc_warn_flag
21964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21965   else
21966     ac_cpp_err=
21967   fi
21968 else
21969   ac_cpp_err=yes
21970 fi
21971 if test -z "$ac_cpp_err"; then
21972   # Broken: success on invalid input.
21973 continue
21974 else
21975   echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21977
21978   # Passes both tests.
21979 ac_preproc_ok=:
21980 break
21981 fi
21982 rm -f conftest.err conftest.$ac_ext
21983
21984 done
21985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21986 rm -f conftest.err conftest.$ac_ext
21987 if $ac_preproc_ok; then
21988   :
21989 else
21990   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21991 See \`config.log' for more details." >&5
21992 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21993 See \`config.log' for more details." >&2;}
21994    { (exit 1); exit 1; }; }
21995 fi
21996
21997 ac_ext=c
21998 ac_cpp='$CPP $CPPFLAGS'
21999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22002
22003
22004
22005
22006
22007
22008 cat >>confdefs.h <<_ACEOF
22009 #define EXEEXT "${EXEEXT}"
22010 _ACEOF
22011
22012
22013 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22014 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22015 if test "${ac_cv_lib_be_be_app+set}" = set; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   ac_check_lib_save_LIBS=$LIBS
22019 LIBS="-lbe -lroot -lnet $LIBS"
22020 cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026
22027 /* Override any gcc2 internal prototype to avoid an error.  */
22028 #ifdef __cplusplus
22029 extern "C"
22030 #endif
22031 /* We use char because int might match the return type of a gcc2
22032    builtin and then its argument prototype would still apply.  */
22033 char be_app ();
22034 int
22035 main ()
22036 {
22037 be_app ();
22038   ;
22039   return 0;
22040 }
22041 _ACEOF
22042 rm -f conftest.$ac_objext conftest$ac_exeext
22043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22044   (eval $ac_link) 2>conftest.er1
22045   ac_status=$?
22046   grep -v '^ *+' conftest.er1 >conftest.err
22047   rm -f conftest.er1
22048   cat conftest.err >&5
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); } &&
22051          { ac_try='test -z "$ac_c_werror_flag"
22052                          || test ! -s conftest.err'
22053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054   (eval $ac_try) 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; } &&
22058          { ac_try='test -s conftest$ac_exeext'
22059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060   (eval $ac_try) 2>&5
22061   ac_status=$?
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); }; }; then
22064   ac_cv_lib_be_be_app=yes
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069 ac_cv_lib_be_be_app=no
22070 fi
22071 rm -f conftest.err conftest.$ac_objext \
22072       conftest$ac_exeext conftest.$ac_ext
22073 LIBS=$ac_check_lib_save_LIBS
22074 fi
22075 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22076 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22077 if test $ac_cv_lib_be_be_app = yes; then
22078   LIBS="$LIBS -lbe -lroot -lnet"
22079 else
22080   :
22081 fi
22082
22083
22084 ac_ext=c
22085 ac_cpp='$CPP $CPPFLAGS'
22086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22089 if test -n "$ac_tool_prefix"; then
22090   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22092 echo "$as_me:$LINENO: checking for $ac_word" >&5
22093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22094 if test "${ac_cv_prog_CC+set}" = set; then
22095   echo $ECHO_N "(cached) $ECHO_C" >&6
22096 else
22097   if test -n "$CC"; then
22098   ac_cv_prog_CC="$CC" # Let the user override the test.
22099 else
22100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22101 for as_dir in $PATH
22102 do
22103   IFS=$as_save_IFS
22104   test -z "$as_dir" && as_dir=.
22105   for ac_exec_ext in '' $ac_executable_extensions; do
22106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22107     ac_cv_prog_CC="${ac_tool_prefix}gcc"
22108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22109     break 2
22110   fi
22111 done
22112 done
22113
22114 fi
22115 fi
22116 CC=$ac_cv_prog_CC
22117 if test -n "$CC"; then
22118   echo "$as_me:$LINENO: result: $CC" >&5
22119 echo "${ECHO_T}$CC" >&6
22120 else
22121   echo "$as_me:$LINENO: result: no" >&5
22122 echo "${ECHO_T}no" >&6
22123 fi
22124
22125 fi
22126 if test -z "$ac_cv_prog_CC"; then
22127   ac_ct_CC=$CC
22128   # Extract the first word of "gcc", so it can be a program name with args.
22129 set dummy gcc; ac_word=$2
22130 echo "$as_me:$LINENO: checking for $ac_word" >&5
22131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22133   echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135   if test -n "$ac_ct_CC"; then
22136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22137 else
22138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22139 for as_dir in $PATH
22140 do
22141   IFS=$as_save_IFS
22142   test -z "$as_dir" && as_dir=.
22143   for ac_exec_ext in '' $ac_executable_extensions; do
22144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22145     ac_cv_prog_ac_ct_CC="gcc"
22146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22147     break 2
22148   fi
22149 done
22150 done
22151
22152 fi
22153 fi
22154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22155 if test -n "$ac_ct_CC"; then
22156   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22157 echo "${ECHO_T}$ac_ct_CC" >&6
22158 else
22159   echo "$as_me:$LINENO: result: no" >&5
22160 echo "${ECHO_T}no" >&6
22161 fi
22162
22163   CC=$ac_ct_CC
22164 else
22165   CC="$ac_cv_prog_CC"
22166 fi
22167
22168 if test -z "$CC"; then
22169   if test -n "$ac_tool_prefix"; then
22170   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22171 set dummy ${ac_tool_prefix}cc; ac_word=$2
22172 echo "$as_me:$LINENO: checking for $ac_word" >&5
22173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22174 if test "${ac_cv_prog_CC+set}" = set; then
22175   echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177   if test -n "$CC"; then
22178   ac_cv_prog_CC="$CC" # Let the user override the test.
22179 else
22180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22181 for as_dir in $PATH
22182 do
22183   IFS=$as_save_IFS
22184   test -z "$as_dir" && as_dir=.
22185   for ac_exec_ext in '' $ac_executable_extensions; do
22186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22187     ac_cv_prog_CC="${ac_tool_prefix}cc"
22188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22189     break 2
22190   fi
22191 done
22192 done
22193
22194 fi
22195 fi
22196 CC=$ac_cv_prog_CC
22197 if test -n "$CC"; then
22198   echo "$as_me:$LINENO: result: $CC" >&5
22199 echo "${ECHO_T}$CC" >&6
22200 else
22201   echo "$as_me:$LINENO: result: no" >&5
22202 echo "${ECHO_T}no" >&6
22203 fi
22204
22205 fi
22206 if test -z "$ac_cv_prog_CC"; then
22207   ac_ct_CC=$CC
22208   # Extract the first word of "cc", so it can be a program name with args.
22209 set dummy cc; ac_word=$2
22210 echo "$as_me:$LINENO: checking for $ac_word" >&5
22211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215   if test -n "$ac_ct_CC"; then
22216   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22217 else
22218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22219 for as_dir in $PATH
22220 do
22221   IFS=$as_save_IFS
22222   test -z "$as_dir" && as_dir=.
22223   for ac_exec_ext in '' $ac_executable_extensions; do
22224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22225     ac_cv_prog_ac_ct_CC="cc"
22226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22227     break 2
22228   fi
22229 done
22230 done
22231
22232 fi
22233 fi
22234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22235 if test -n "$ac_ct_CC"; then
22236   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22237 echo "${ECHO_T}$ac_ct_CC" >&6
22238 else
22239   echo "$as_me:$LINENO: result: no" >&5
22240 echo "${ECHO_T}no" >&6
22241 fi
22242
22243   CC=$ac_ct_CC
22244 else
22245   CC="$ac_cv_prog_CC"
22246 fi
22247
22248 fi
22249 if test -z "$CC"; then
22250   # Extract the first word of "cc", so it can be a program name with args.
22251 set dummy cc; ac_word=$2
22252 echo "$as_me:$LINENO: checking for $ac_word" >&5
22253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22254 if test "${ac_cv_prog_CC+set}" = set; then
22255   echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257   if test -n "$CC"; then
22258   ac_cv_prog_CC="$CC" # Let the user override the test.
22259 else
22260   ac_prog_rejected=no
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in $PATH
22263 do
22264   IFS=$as_save_IFS
22265   test -z "$as_dir" && as_dir=.
22266   for ac_exec_ext in '' $ac_executable_extensions; do
22267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22268     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22269        ac_prog_rejected=yes
22270        continue
22271      fi
22272     ac_cv_prog_CC="cc"
22273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22274     break 2
22275   fi
22276 done
22277 done
22278
22279 if test $ac_prog_rejected = yes; then
22280   # We found a bogon in the path, so make sure we never use it.
22281   set dummy $ac_cv_prog_CC
22282   shift
22283   if test $# != 0; then
22284     # We chose a different compiler from the bogus one.
22285     # However, it has the same basename, so the bogon will be chosen
22286     # first if we set CC to just the basename; use the full file name.
22287     shift
22288     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22289   fi
22290 fi
22291 fi
22292 fi
22293 CC=$ac_cv_prog_CC
22294 if test -n "$CC"; then
22295   echo "$as_me:$LINENO: result: $CC" >&5
22296 echo "${ECHO_T}$CC" >&6
22297 else
22298   echo "$as_me:$LINENO: result: no" >&5
22299 echo "${ECHO_T}no" >&6
22300 fi
22301
22302 fi
22303 if test -z "$CC"; then
22304   if test -n "$ac_tool_prefix"; then
22305   for ac_prog in cl
22306   do
22307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22309 echo "$as_me:$LINENO: checking for $ac_word" >&5
22310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22311 if test "${ac_cv_prog_CC+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   if test -n "$CC"; then
22315   ac_cv_prog_CC="$CC" # Let the user override the test.
22316 else
22317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22318 for as_dir in $PATH
22319 do
22320   IFS=$as_save_IFS
22321   test -z "$as_dir" && as_dir=.
22322   for ac_exec_ext in '' $ac_executable_extensions; do
22323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22324     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22326     break 2
22327   fi
22328 done
22329 done
22330
22331 fi
22332 fi
22333 CC=$ac_cv_prog_CC
22334 if test -n "$CC"; then
22335   echo "$as_me:$LINENO: result: $CC" >&5
22336 echo "${ECHO_T}$CC" >&6
22337 else
22338   echo "$as_me:$LINENO: result: no" >&5
22339 echo "${ECHO_T}no" >&6
22340 fi
22341
22342     test -n "$CC" && break
22343   done
22344 fi
22345 if test -z "$CC"; then
22346   ac_ct_CC=$CC
22347   for ac_prog in cl
22348 do
22349   # Extract the first word of "$ac_prog", so it can be a program name with args.
22350 set dummy $ac_prog; ac_word=$2
22351 echo "$as_me:$LINENO: checking for $ac_word" >&5
22352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356   if test -n "$ac_ct_CC"; then
22357   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22358 else
22359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22360 for as_dir in $PATH
22361 do
22362   IFS=$as_save_IFS
22363   test -z "$as_dir" && as_dir=.
22364   for ac_exec_ext in '' $ac_executable_extensions; do
22365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22366     ac_cv_prog_ac_ct_CC="$ac_prog"
22367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22368     break 2
22369   fi
22370 done
22371 done
22372
22373 fi
22374 fi
22375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22376 if test -n "$ac_ct_CC"; then
22377   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22378 echo "${ECHO_T}$ac_ct_CC" >&6
22379 else
22380   echo "$as_me:$LINENO: result: no" >&5
22381 echo "${ECHO_T}no" >&6
22382 fi
22383
22384   test -n "$ac_ct_CC" && break
22385 done
22386
22387   CC=$ac_ct_CC
22388 fi
22389
22390 fi
22391
22392
22393 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22394 See \`config.log' for more details." >&5
22395 echo "$as_me: error: no acceptable C compiler found in \$PATH
22396 See \`config.log' for more details." >&2;}
22397    { (exit 1); exit 1; }; }
22398
22399 # Provide some information about the compiler.
22400 echo "$as_me:$LINENO:" \
22401      "checking for C compiler version" >&5
22402 ac_compiler=`set X $ac_compile; echo $2`
22403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22404   (eval $ac_compiler --version </dev/null >&5) 2>&5
22405   ac_status=$?
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); }
22408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22409   (eval $ac_compiler -v </dev/null >&5) 2>&5
22410   ac_status=$?
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); }
22413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22414   (eval $ac_compiler -V </dev/null >&5) 2>&5
22415   ac_status=$?
22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417   (exit $ac_status); }
22418
22419 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22422   echo $ECHO_N "(cached) $ECHO_C" >&6
22423 else
22424   cat >conftest.$ac_ext <<_ACEOF
22425 /* confdefs.h.  */
22426 _ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h.  */
22430
22431 int
22432 main ()
22433 {
22434 #ifndef __GNUC__
22435        choke me
22436 #endif
22437
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest.$ac_objext
22443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22444   (eval $ac_compile) 2>conftest.er1
22445   ac_status=$?
22446   grep -v '^ *+' conftest.er1 >conftest.err
22447   rm -f conftest.er1
22448   cat conftest.err >&5
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); } &&
22451          { ac_try='test -z "$ac_c_werror_flag"
22452                          || test ! -s conftest.err'
22453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454   (eval $ac_try) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); }; } &&
22458          { ac_try='test -s conftest.$ac_objext'
22459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460   (eval $ac_try) 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; }; then
22464   ac_compiler_gnu=yes
22465 else
22466   echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469 ac_compiler_gnu=no
22470 fi
22471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22473
22474 fi
22475 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22476 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22477 GCC=`test $ac_compiler_gnu = yes && echo yes`
22478 ac_test_CFLAGS=${CFLAGS+set}
22479 ac_save_CFLAGS=$CFLAGS
22480 CFLAGS="-g"
22481 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22482 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22483 if test "${ac_cv_prog_cc_g+set}" = set; then
22484   echo $ECHO_N "(cached) $ECHO_C" >&6
22485 else
22486   cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492
22493 int
22494 main ()
22495 {
22496
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22503   (eval $ac_compile) 2>conftest.er1
22504   ac_status=$?
22505   grep -v '^ *+' conftest.er1 >conftest.err
22506   rm -f conftest.er1
22507   cat conftest.err >&5
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } &&
22510          { ac_try='test -z "$ac_c_werror_flag"
22511                          || test ! -s conftest.err'
22512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513   (eval $ac_try) 2>&5
22514   ac_status=$?
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); }; } &&
22517          { ac_try='test -s conftest.$ac_objext'
22518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519   (eval $ac_try) 2>&5
22520   ac_status=$?
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); }; }; then
22523   ac_cv_prog_cc_g=yes
22524 else
22525   echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528 ac_cv_prog_cc_g=no
22529 fi
22530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22531 fi
22532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22533 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22534 if test "$ac_test_CFLAGS" = set; then
22535   CFLAGS=$ac_save_CFLAGS
22536 elif test $ac_cv_prog_cc_g = yes; then
22537   if test "$GCC" = yes; then
22538     CFLAGS="-g -O2"
22539   else
22540     CFLAGS="-g"
22541   fi
22542 else
22543   if test "$GCC" = yes; then
22544     CFLAGS="-O2"
22545   else
22546     CFLAGS=
22547   fi
22548 fi
22549 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22550 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22551 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22552   echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554   ac_cv_prog_cc_stdc=no
22555 ac_save_CC=$CC
22556 cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h.  */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h.  */
22562 #include <stdarg.h>
22563 #include <stdio.h>
22564 #include <sys/types.h>
22565 #include <sys/stat.h>
22566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
22567 struct buf { int x; };
22568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22569 static char *e (p, i)
22570      char **p;
22571      int i;
22572 {
22573   return p[i];
22574 }
22575 static char *f (char * (*g) (char **, int), char **p, ...)
22576 {
22577   char *s;
22578   va_list v;
22579   va_start (v,p);
22580   s = g (p, va_arg (v,int));
22581   va_end (v);
22582   return s;
22583 }
22584
22585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
22586    function prototypes and stuff, but not '\xHH' hex character constants.
22587    These don't provoke an error unfortunately, instead are silently treated
22588    as 'x'.  The following induces an error, until -std1 is added to get
22589    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
22590    array size at least.  It's necessary to write '\x00'==0 to get something
22591    that's true only with -std1.  */
22592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22593
22594 int test (int i, double x);
22595 struct s1 {int (*f) (int a);};
22596 struct s2 {int (*f) (double a);};
22597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22598 int argc;
22599 char **argv;
22600 int
22601 main ()
22602 {
22603 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 # Don't try gcc -ansi; that turns off useful extensions and
22609 # breaks some systems' header files.
22610 # AIX                   -qlanglvl=ansi
22611 # Ultrix and OSF/1      -std1
22612 # HP-UX 10.20 and later -Ae
22613 # HP-UX older versions  -Aa -D_HPUX_SOURCE
22614 # SVR4                  -Xc -D__EXTENSIONS__
22615 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22616 do
22617   CC="$ac_save_CC $ac_arg"
22618   rm -f conftest.$ac_objext
22619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22620   (eval $ac_compile) 2>conftest.er1
22621   ac_status=$?
22622   grep -v '^ *+' conftest.er1 >conftest.err
22623   rm -f conftest.er1
22624   cat conftest.err >&5
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } &&
22627          { ac_try='test -z "$ac_c_werror_flag"
22628                          || test ! -s conftest.err'
22629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630   (eval $ac_try) 2>&5
22631   ac_status=$?
22632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); }; } &&
22634          { ac_try='test -s conftest.$ac_objext'
22635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636   (eval $ac_try) 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); }; }; then
22640   ac_cv_prog_cc_stdc=$ac_arg
22641 break
22642 else
22643   echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22645
22646 fi
22647 rm -f conftest.err conftest.$ac_objext
22648 done
22649 rm -f conftest.$ac_ext conftest.$ac_objext
22650 CC=$ac_save_CC
22651
22652 fi
22653
22654 case "x$ac_cv_prog_cc_stdc" in
22655   x|xno)
22656     echo "$as_me:$LINENO: result: none needed" >&5
22657 echo "${ECHO_T}none needed" >&6 ;;
22658   *)
22659     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22660 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22661     CC="$CC $ac_cv_prog_cc_stdc" ;;
22662 esac
22663
22664 # Some people use a C++ compiler to compile C.  Since we use `exit',
22665 # in C++ we need to declare it.  In case someone uses the same compiler
22666 # for both compiling C and C++ we need to have the C++ compiler decide
22667 # the declaration of exit, since it's the most demanding environment.
22668 cat >conftest.$ac_ext <<_ACEOF
22669 #ifndef __cplusplus
22670   choke me
22671 #endif
22672 _ACEOF
22673 rm -f conftest.$ac_objext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22675   (eval $ac_compile) 2>conftest.er1
22676   ac_status=$?
22677   grep -v '^ *+' conftest.er1 >conftest.err
22678   rm -f conftest.er1
22679   cat conftest.err >&5
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); } &&
22682          { ac_try='test -z "$ac_c_werror_flag"
22683                          || test ! -s conftest.err'
22684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); }; } &&
22689          { ac_try='test -s conftest.$ac_objext'
22690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691   (eval $ac_try) 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; }; then
22695   for ac_declaration in \
22696    '' \
22697    'extern "C" void std::exit (int) throw (); using std::exit;' \
22698    'extern "C" void std::exit (int); using std::exit;' \
22699    'extern "C" void exit (int) throw ();' \
22700    'extern "C" void exit (int);' \
22701    'void exit (int);'
22702 do
22703   cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h.  */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h.  */
22709 $ac_declaration
22710 #include <stdlib.h>
22711 int
22712 main ()
22713 {
22714 exit (42);
22715   ;
22716   return 0;
22717 }
22718 _ACEOF
22719 rm -f conftest.$ac_objext
22720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22721   (eval $ac_compile) 2>conftest.er1
22722   ac_status=$?
22723   grep -v '^ *+' conftest.er1 >conftest.err
22724   rm -f conftest.er1
22725   cat conftest.err >&5
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); } &&
22728          { ac_try='test -z "$ac_c_werror_flag"
22729                          || test ! -s conftest.err'
22730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22731   (eval $ac_try) 2>&5
22732   ac_status=$?
22733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); }; } &&
22735          { ac_try='test -s conftest.$ac_objext'
22736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737   (eval $ac_try) 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); }; }; then
22741   :
22742 else
22743   echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22745
22746 continue
22747 fi
22748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22749   cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 $ac_declaration
22756 int
22757 main ()
22758 {
22759 exit (42);
22760   ;
22761   return 0;
22762 }
22763 _ACEOF
22764 rm -f conftest.$ac_objext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766   (eval $ac_compile) 2>conftest.er1
22767   ac_status=$?
22768   grep -v '^ *+' conftest.er1 >conftest.err
22769   rm -f conftest.er1
22770   cat conftest.err >&5
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); } &&
22773          { ac_try='test -z "$ac_c_werror_flag"
22774                          || test ! -s conftest.err'
22775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776   (eval $ac_try) 2>&5
22777   ac_status=$?
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); }; } &&
22780          { ac_try='test -s conftest.$ac_objext'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; }; then
22786   break
22787 else
22788   echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22790
22791 fi
22792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22793 done
22794 rm -f conftest*
22795 if test -n "$ac_declaration"; then
22796   echo '#ifdef __cplusplus' >>confdefs.h
22797   echo $ac_declaration      >>confdefs.h
22798   echo '#endif'             >>confdefs.h
22799 fi
22800
22801 else
22802   echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805 fi
22806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22807 ac_ext=c
22808 ac_cpp='$CPP $CPPFLAGS'
22809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22812
22813 depcc="$CC"   am_compiler_list=
22814
22815 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22816 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22817 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22818   echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22821   # We make a subdir and do the tests there.  Otherwise we can end up
22822   # making bogus files that we don't know about and never remove.  For
22823   # instance it was reported that on HP-UX the gcc test will end up
22824   # making a dummy file named `D' -- because `-MD' means `put the output
22825   # in D'.
22826   mkdir conftest.dir
22827   # Copy depcomp to subdir because otherwise we won't find it if we're
22828   # using a relative directory.
22829   cp "$am_depcomp" conftest.dir
22830   cd conftest.dir
22831   # We will build objects and dependencies in a subdirectory because
22832   # it helps to detect inapplicable dependency modes.  For instance
22833   # both Tru64's cc and ICC support -MD to output dependencies as a
22834   # side effect of compilation, but ICC will put the dependencies in
22835   # the current directory while Tru64 will put them in the object
22836   # directory.
22837   mkdir sub
22838
22839   am_cv_CC_dependencies_compiler_type=none
22840   if test "$am_compiler_list" = ""; then
22841      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22842   fi
22843   for depmode in $am_compiler_list; do
22844     # Setup a source with many dependencies, because some compilers
22845     # like to wrap large dependency lists on column 80 (with \), and
22846     # we should not choose a depcomp mode which is confused by this.
22847     #
22848     # We need to recreate these files for each test, as the compiler may
22849     # overwrite some of them when testing with obscure command lines.
22850     # This happens at least with the AIX C compiler.
22851     : > sub/conftest.c
22852     for i in 1 2 3 4 5 6; do
22853       echo '#include "conftst'$i'.h"' >> sub/conftest.c
22854       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22855       # Solaris 8's {/usr,}/bin/sh.
22856       touch sub/conftst$i.h
22857     done
22858     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22859
22860     case $depmode in
22861     nosideeffect)
22862       # after this tag, mechanisms are not by side-effect, so they'll
22863       # only be used when explicitly requested
22864       if test "x$enable_dependency_tracking" = xyes; then
22865         continue
22866       else
22867         break
22868       fi
22869       ;;
22870     none) break ;;
22871     esac
22872     # We check with `-c' and `-o' for the sake of the "dashmstdout"
22873     # mode.  It turns out that the SunPro C++ compiler does not properly
22874     # handle `-M -o', and we need to detect this.
22875     if depmode=$depmode \
22876        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22877        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22878        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22879          >/dev/null 2>conftest.err &&
22880        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22881        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22882        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22883       # icc doesn't choke on unknown options, it will just issue warnings
22884       # or remarks (even with -Werror).  So we grep stderr for any message
22885       # that says an option was ignored or not supported.
22886       # When given -MP, icc 7.0 and 7.1 complain thusly:
22887       #   icc: Command line warning: ignoring option '-M'; no argument required
22888       # The diagnosis changed in icc 8.0:
22889       #   icc: Command line remark: option '-MP' not supported
22890       if (grep 'ignoring option' conftest.err ||
22891           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22892         am_cv_CC_dependencies_compiler_type=$depmode
22893         break
22894       fi
22895     fi
22896   done
22897
22898   cd ..
22899   rm -rf conftest.dir
22900 else
22901   am_cv_CC_dependencies_compiler_type=none
22902 fi
22903
22904 fi
22905 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22906 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22908
22909
22910
22911 if
22912   test "x$enable_dependency_tracking" != xno \
22913   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22914   am__fastdepCC_TRUE=
22915   am__fastdepCC_FALSE='#'
22916 else
22917   am__fastdepCC_TRUE='#'
22918   am__fastdepCC_FALSE=
22919 fi
22920
22921
22922 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22923         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22924 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22925    { (exit 1); exit 1; }; }
22926 fi
22927
22928 # test for make depend flag
22929 OL_MKDEP=
22930 OL_MKDEP_FLAGS=
22931 if test -z "${MKDEP}"; then
22932         OL_MKDEP="${CC-cc}"
22933         if test -z "${MKDEP_FLAGS}"; then
22934                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22935 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22936 if test "${ol_cv_mkdep+set}" = set; then
22937   echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939
22940                         ol_cv_mkdep=no
22941                         for flag in "-M" "-xM"; do
22942                                 cat > conftest.c <<EOF
22943  noCode;
22944 EOF
22945                                 if { ac_try='$OL_MKDEP $flag conftest.c'
22946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); }; } \
22951                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22952                                 then
22953                                         if test ! -f conftest."${ac_object}" ; then
22954                                                 ol_cv_mkdep=$flag
22955                                                 OL_MKDEP_FLAGS="$flag"
22956                                                 break
22957                                         fi
22958                                 fi
22959                         done
22960                         rm -f conftest*
22961
22962 fi
22963 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22964 echo "${ECHO_T}$ol_cv_mkdep" >&6
22965         else
22966                 cc_cv_mkdep=yes
22967                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22968         fi
22969 else
22970         cc_cv_mkdep=yes
22971         OL_MKDEP="${MKDEP}"
22972         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22973 fi
22974
22975
22976
22977 if test "${ol_cv_mkdep}" = no ; then
22978         # this will soon become an error
22979         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22980 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22981 fi
22982
22983 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22984 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22985 if test "${ac_cv_lib_s_afopen+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   ac_check_lib_save_LIBS=$LIBS
22989 LIBS="-ls  $LIBS"
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h.  */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h.  */
22996
22997 /* Override any gcc2 internal prototype to avoid an error.  */
22998 #ifdef __cplusplus
22999 extern "C"
23000 #endif
23001 /* We use char because int might match the return type of a gcc2
23002    builtin and then its argument prototype would still apply.  */
23003 char afopen ();
23004 int
23005 main ()
23006 {
23007 afopen ();
23008   ;
23009   return 0;
23010 }
23011 _ACEOF
23012 rm -f conftest.$ac_objext conftest$ac_exeext
23013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23014   (eval $ac_link) 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } &&
23021          { ac_try='test -z "$ac_c_werror_flag"
23022                          || test ! -s conftest.err'
23023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024   (eval $ac_try) 2>&5
23025   ac_status=$?
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); }; } &&
23028          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23034   ac_cv_lib_s_afopen=yes
23035 else
23036   echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23038
23039 ac_cv_lib_s_afopen=no
23040 fi
23041 rm -f conftest.err conftest.$ac_objext \
23042       conftest$ac_exeext conftest.$ac_ext
23043 LIBS=$ac_check_lib_save_LIBS
23044 fi
23045 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23046 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23047 if test $ac_cv_lib_s_afopen = yes; then
23048
23049         AUTH_LIBS=-ls
23050
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_AIX_SECURITY 1
23053 _ACEOF
23054
23055
23056 fi
23057
23058
23059 case "$target" in
23060 *-ibm-openedition)
23061         ac_cv_func_getopt=no
23062
23063 cat >>confdefs.h <<\_ACEOF
23064 #define BOTH_STRINGS_H 1
23065 _ACEOF
23066
23067         ;;
23068 esac
23069
23070 ol_link_modules=no
23071 WITH_MODULES_ENABLED=no
23072 if test $ol_enable_modules != no ; then
23073
23074 for ac_header in ltdl.h
23075 do
23076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23078   echo "$as_me:$LINENO: checking for $ac_header" >&5
23079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23081   echo $ECHO_N "(cached) $ECHO_C" >&6
23082 fi
23083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23085 else
23086   # Is the header compilable?
23087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h.  */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h.  */
23095 $ac_includes_default
23096 #include <$ac_header>
23097 _ACEOF
23098 rm -f conftest.$ac_objext
23099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100   (eval $ac_compile) 2>conftest.er1
23101   ac_status=$?
23102   grep -v '^ *+' conftest.er1 >conftest.err
23103   rm -f conftest.er1
23104   cat conftest.err >&5
23105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106   (exit $ac_status); } &&
23107          { ac_try='test -z "$ac_c_werror_flag"
23108                          || test ! -s conftest.err'
23109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110   (eval $ac_try) 2>&5
23111   ac_status=$?
23112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113   (exit $ac_status); }; } &&
23114          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23120   ac_header_compiler=yes
23121 else
23122   echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125 ac_header_compiler=no
23126 fi
23127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23129 echo "${ECHO_T}$ac_header_compiler" >&6
23130
23131 # Is the header present?
23132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23134 cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140 #include <$ac_header>
23141 _ACEOF
23142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23144   ac_status=$?
23145   grep -v '^ *+' conftest.er1 >conftest.err
23146   rm -f conftest.er1
23147   cat conftest.err >&5
23148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149   (exit $ac_status); } >/dev/null; then
23150   if test -s conftest.err; then
23151     ac_cpp_err=$ac_c_preproc_warn_flag
23152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23153   else
23154     ac_cpp_err=
23155   fi
23156 else
23157   ac_cpp_err=yes
23158 fi
23159 if test -z "$ac_cpp_err"; then
23160   ac_header_preproc=yes
23161 else
23162   echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165   ac_header_preproc=no
23166 fi
23167 rm -f conftest.err conftest.$ac_ext
23168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23169 echo "${ECHO_T}$ac_header_preproc" >&6
23170
23171 # So?  What about this header?
23172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23173   yes:no: )
23174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23178     ac_header_preproc=yes
23179     ;;
23180   no:yes:* )
23181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23193     (
23194       cat <<\_ASBOX
23195 ## ------------------------------------------ ##
23196 ## Report this to the AC_PACKAGE_NAME lists.  ##
23197 ## ------------------------------------------ ##
23198 _ASBOX
23199     ) |
23200       sed "s/^/$as_me: WARNING:     /" >&2
23201     ;;
23202 esac
23203 echo "$as_me:$LINENO: checking for $ac_header" >&5
23204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23206   echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208   eval "$as_ac_Header=\$ac_header_preproc"
23209 fi
23210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23212
23213 fi
23214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23215   cat >>confdefs.h <<_ACEOF
23216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23217 _ACEOF
23218
23219 fi
23220
23221 done
23222
23223
23224         if test $ac_cv_header_ltdl_h = no ; then
23225                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23226 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23227    { (exit 1); exit 1; }; }
23228         fi
23229
23230         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23231 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23232 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23233   echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235   ac_check_lib_save_LIBS=$LIBS
23236 LIBS="-lltdl  $LIBS"
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243
23244 /* Override any gcc2 internal prototype to avoid an error.  */
23245 #ifdef __cplusplus
23246 extern "C"
23247 #endif
23248 /* We use char because int might match the return type of a gcc2
23249    builtin and then its argument prototype would still apply.  */
23250 char lt_dlinit ();
23251 int
23252 main ()
23253 {
23254 lt_dlinit ();
23255   ;
23256   return 0;
23257 }
23258 _ACEOF
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261   (eval $ac_link) 2>conftest.er1
23262   ac_status=$?
23263   grep -v '^ *+' conftest.er1 >conftest.err
23264   rm -f conftest.er1
23265   cat conftest.err >&5
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } &&
23268          { ac_try='test -z "$ac_c_werror_flag"
23269                          || test ! -s conftest.err'
23270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271   (eval $ac_try) 2>&5
23272   ac_status=$?
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); }; } &&
23275          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23281   ac_cv_lib_ltdl_lt_dlinit=yes
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286 ac_cv_lib_ltdl_lt_dlinit=no
23287 fi
23288 rm -f conftest.err conftest.$ac_objext \
23289       conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23291 fi
23292 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23293 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23294 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23295
23296                 MODULES_LIBS=-lltdl
23297
23298 cat >>confdefs.h <<\_ACEOF
23299 #define HAVE_LIBLTDL 1
23300 _ACEOF
23301
23302
23303 fi
23304
23305
23306         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23307                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23308 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23309    { (exit 1); exit 1; }; }
23310         fi
23311         ol_link_modules=yes
23312         WITH_MODULES_ENABLED=yes
23313
23314 else
23315         for i in $Backends; do
23316                 eval "ol_tmp=\$ol_enable_$i"
23317                 if test $ol_tmp = mod ; then
23318                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23319 echo "$as_me: WARNING: building static $i backend" >&2;}
23320                         eval "ol_enable_$i=yes"
23321                 fi
23322         done
23323         for i in $Overlays; do
23324                 eval "ol_tmp=\$ol_enable_$i"
23325                 if test $ol_tmp = mod ; then
23326                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23327 echo "$as_me: WARNING: building static $i overlay" >&2;}
23328                         eval "ol_enable_$i=yes"
23329                 fi
23330         done
23331 fi
23332
23333 # test for EBCDIC
23334 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23335 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23336 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23337   echo $ECHO_N "(cached) $ECHO_C" >&6
23338 else
23339
23340         cat >conftest.$ac_ext <<_ACEOF
23341 /* confdefs.h.  */
23342 _ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h.  */
23346
23347 #if !('M' == 0xd4)
23348 #include <__ASCII__/generate_error.h>
23349 #endif
23350
23351 _ACEOF
23352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23354   ac_status=$?
23355   grep -v '^ *+' conftest.er1 >conftest.err
23356   rm -f conftest.er1
23357   cat conftest.err >&5
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); } >/dev/null; then
23360   if test -s conftest.err; then
23361     ac_cpp_err=$ac_c_preproc_warn_flag
23362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23363   else
23364     ac_cpp_err=
23365   fi
23366 else
23367   ac_cpp_err=yes
23368 fi
23369 if test -z "$ac_cpp_err"; then
23370   ol_cv_cpp_ebcdic=yes
23371 else
23372   echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375   ol_cv_cpp_ebcdic=no
23376 fi
23377 rm -f conftest.err conftest.$ac_ext
23378 fi
23379 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23380 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23381 if test $ol_cv_cpp_ebcdic = yes ; then
23382
23383 cat >>confdefs.h <<\_ACEOF
23384 #define HAVE_EBCDIC 1
23385 _ACEOF
23386
23387 fi
23388
23389 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23390 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23391 if test "${ol_cv_header_stdc+set}" = set; then
23392   echo $ECHO_N "(cached) $ECHO_C" >&6
23393 else
23394   cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400 #include <stdlib.h>
23401 #include <stdarg.h>
23402 #include <string.h>
23403 #include <float.h>
23404 _ACEOF
23405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23407   ac_status=$?
23408   grep -v '^ *+' conftest.er1 >conftest.err
23409   rm -f conftest.er1
23410   cat conftest.err >&5
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); } >/dev/null; then
23413   if test -s conftest.err; then
23414     ac_cpp_err=$ac_c_preproc_warn_flag
23415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23416   else
23417     ac_cpp_err=
23418   fi
23419 else
23420   ac_cpp_err=yes
23421 fi
23422 if test -z "$ac_cpp_err"; then
23423   ol_cv_header_stdc=yes
23424 else
23425   echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427
23428   ol_cv_header_stdc=no
23429 fi
23430 rm -f conftest.err conftest.$ac_ext
23431
23432 if test $ol_cv_header_stdc = yes; then
23433   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h.  */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h.  */
23440 #include <string.h>
23441
23442 _ACEOF
23443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23444   $EGREP "memchr" >/dev/null 2>&1; then
23445   :
23446 else
23447   ol_cv_header_stdc=no
23448 fi
23449 rm -f conftest*
23450
23451 fi
23452
23453 if test $ol_cv_header_stdc = yes; then
23454   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h.  */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h.  */
23461 #include <stdlib.h>
23462
23463 _ACEOF
23464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23465   $EGREP "free" >/dev/null 2>&1; then
23466   :
23467 else
23468   ol_cv_header_stdc=no
23469 fi
23470 rm -f conftest*
23471
23472 fi
23473
23474 if test $ol_cv_header_stdc = yes; then
23475   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23476 if test "$cross_compiling" = yes; then
23477   :
23478 else
23479   cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h.  */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h.  */
23485 #include <ctype.h>
23486 #ifndef HAVE_EBCDIC
23487 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23488 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23489 #else
23490 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23491                 || ('j' <= (c) && (c) <= 'r') \
23492                 || ('s' <= (c) && (c) <= 'z'))
23493 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
23494 #endif
23495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23496 int main () { int i; for (i = 0; i < 256; i++)
23497 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23498 exit (0); }
23499
23500 _ACEOF
23501 rm -f conftest$ac_exeext
23502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23503   (eval $ac_link) 2>&5
23504   ac_status=$?
23505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23508   (eval $ac_try) 2>&5
23509   ac_status=$?
23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511   (exit $ac_status); }; }; then
23512   :
23513 else
23514   echo "$as_me: program exited with status $ac_status" >&5
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23517
23518 ( exit $ac_status )
23519 ol_cv_header_stdc=no
23520 fi
23521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23522 fi
23523 fi
23524 fi
23525 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23526 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23527 if test $ol_cv_header_stdc = yes; then
23528   cat >>confdefs.h <<\_ACEOF
23529 #define STDC_HEADERS 1
23530 _ACEOF
23531
23532 fi
23533 ac_cv_header_stdc=disable
23534
23535
23536 if test $ol_cv_header_stdc != yes; then
23537         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23538 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23539 fi
23540
23541
23542
23543
23544
23545
23546 ac_header_dirent=no
23547 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23548   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23549 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23550 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23552   echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554   cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 #include <sys/types.h>
23561 #include <$ac_hdr>
23562
23563 int
23564 main ()
23565 {
23566 if ((DIR *) 0)
23567 return 0;
23568   ;
23569   return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest.$ac_objext
23573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23574   (eval $ac_compile) 2>conftest.er1
23575   ac_status=$?
23576   grep -v '^ *+' conftest.er1 >conftest.err
23577   rm -f conftest.er1
23578   cat conftest.err >&5
23579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580   (exit $ac_status); } &&
23581          { ac_try='test -z "$ac_c_werror_flag"
23582                          || test ! -s conftest.err'
23583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23584   (eval $ac_try) 2>&5
23585   ac_status=$?
23586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587   (exit $ac_status); }; } &&
23588          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23594   eval "$as_ac_Header=yes"
23595 else
23596   echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23598
23599 eval "$as_ac_Header=no"
23600 fi
23601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23602 fi
23603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23606   cat >>confdefs.h <<_ACEOF
23607 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23608 _ACEOF
23609
23610 ac_header_dirent=$ac_hdr; break
23611 fi
23612
23613 done
23614 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23615 if test $ac_header_dirent = dirent.h; then
23616   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23617 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23618 if test "${ac_cv_search_opendir+set}" = set; then
23619   echo $ECHO_N "(cached) $ECHO_C" >&6
23620 else
23621   ac_func_search_save_LIBS=$LIBS
23622 ac_cv_search_opendir=no
23623 cat >conftest.$ac_ext <<_ACEOF
23624 /* confdefs.h.  */
23625 _ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h.  */
23629
23630 /* Override any gcc2 internal prototype to avoid an error.  */
23631 #ifdef __cplusplus
23632 extern "C"
23633 #endif
23634 /* We use char because int might match the return type of a gcc2
23635    builtin and then its argument prototype would still apply.  */
23636 char opendir ();
23637 int
23638 main ()
23639 {
23640 opendir ();
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647   (eval $ac_link) 2>conftest.er1
23648   ac_status=$?
23649   grep -v '^ *+' conftest.er1 >conftest.err
23650   rm -f conftest.er1
23651   cat conftest.err >&5
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } &&
23654          { ac_try='test -z "$ac_c_werror_flag"
23655                          || test ! -s conftest.err'
23656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657   (eval $ac_try) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); }; } &&
23661          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23667   ac_cv_search_opendir="none required"
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672 fi
23673 rm -f conftest.err conftest.$ac_objext \
23674       conftest$ac_exeext conftest.$ac_ext
23675 if test "$ac_cv_search_opendir" = no; then
23676   for ac_lib in dir; do
23677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23678     cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h.  */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h.  */
23684
23685 /* Override any gcc2 internal prototype to avoid an error.  */
23686 #ifdef __cplusplus
23687 extern "C"
23688 #endif
23689 /* We use char because int might match the return type of a gcc2
23690    builtin and then its argument prototype would still apply.  */
23691 char opendir ();
23692 int
23693 main ()
23694 {
23695 opendir ();
23696   ;
23697   return 0;
23698 }
23699 _ACEOF
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23702   (eval $ac_link) 2>conftest.er1
23703   ac_status=$?
23704   grep -v '^ *+' conftest.er1 >conftest.err
23705   rm -f conftest.er1
23706   cat conftest.err >&5
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); } &&
23709          { ac_try='test -z "$ac_c_werror_flag"
23710                          || test ! -s conftest.err'
23711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712   (eval $ac_try) 2>&5
23713   ac_status=$?
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); }; } &&
23716          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23722   ac_cv_search_opendir="-l$ac_lib"
23723 break
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728 fi
23729 rm -f conftest.err conftest.$ac_objext \
23730       conftest$ac_exeext conftest.$ac_ext
23731   done
23732 fi
23733 LIBS=$ac_func_search_save_LIBS
23734 fi
23735 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23736 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23737 if test "$ac_cv_search_opendir" != no; then
23738   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23739
23740 fi
23741
23742 else
23743   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23744 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23745 if test "${ac_cv_search_opendir+set}" = set; then
23746   echo $ECHO_N "(cached) $ECHO_C" >&6
23747 else
23748   ac_func_search_save_LIBS=$LIBS
23749 ac_cv_search_opendir=no
23750 cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h.  */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h.  */
23756
23757 /* Override any gcc2 internal prototype to avoid an error.  */
23758 #ifdef __cplusplus
23759 extern "C"
23760 #endif
23761 /* We use char because int might match the return type of a gcc2
23762    builtin and then its argument prototype would still apply.  */
23763 char opendir ();
23764 int
23765 main ()
23766 {
23767 opendir ();
23768   ;
23769   return 0;
23770 }
23771 _ACEOF
23772 rm -f conftest.$ac_objext conftest$ac_exeext
23773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23774   (eval $ac_link) 2>conftest.er1
23775   ac_status=$?
23776   grep -v '^ *+' conftest.er1 >conftest.err
23777   rm -f conftest.er1
23778   cat conftest.err >&5
23779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780   (exit $ac_status); } &&
23781          { ac_try='test -z "$ac_c_werror_flag"
23782                          || test ! -s conftest.err'
23783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784   (eval $ac_try) 2>&5
23785   ac_status=$?
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); }; } &&
23788          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23794   ac_cv_search_opendir="none required"
23795 else
23796   echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799 fi
23800 rm -f conftest.err conftest.$ac_objext \
23801       conftest$ac_exeext conftest.$ac_ext
23802 if test "$ac_cv_search_opendir" = no; then
23803   for ac_lib in x; do
23804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23805     cat >conftest.$ac_ext <<_ACEOF
23806 /* confdefs.h.  */
23807 _ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h.  */
23811
23812 /* Override any gcc2 internal prototype to avoid an error.  */
23813 #ifdef __cplusplus
23814 extern "C"
23815 #endif
23816 /* We use char because int might match the return type of a gcc2
23817    builtin and then its argument prototype would still apply.  */
23818 char opendir ();
23819 int
23820 main ()
23821 {
23822 opendir ();
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext conftest$ac_exeext
23828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23829   (eval $ac_link) 2>conftest.er1
23830   ac_status=$?
23831   grep -v '^ *+' conftest.er1 >conftest.err
23832   rm -f conftest.er1
23833   cat conftest.err >&5
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } &&
23836          { ac_try='test -z "$ac_c_werror_flag"
23837                          || test ! -s conftest.err'
23838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839   (eval $ac_try) 2>&5
23840   ac_status=$?
23841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842   (exit $ac_status); }; } &&
23843          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23849   ac_cv_search_opendir="-l$ac_lib"
23850 break
23851 else
23852   echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854
23855 fi
23856 rm -f conftest.err conftest.$ac_objext \
23857       conftest$ac_exeext conftest.$ac_ext
23858   done
23859 fi
23860 LIBS=$ac_func_search_save_LIBS
23861 fi
23862 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23863 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23864 if test "$ac_cv_search_opendir" != no; then
23865   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23866
23867 fi
23868
23869 fi
23870
23871 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23872 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23873 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23874   echo $ECHO_N "(cached) $ECHO_C" >&6
23875 else
23876   cat >conftest.$ac_ext <<_ACEOF
23877 /* confdefs.h.  */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h.  */
23882 #include <sys/types.h>
23883 #include <sys/wait.h>
23884 #ifndef WEXITSTATUS
23885 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23886 #endif
23887 #ifndef WIFEXITED
23888 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23889 #endif
23890
23891 int
23892 main ()
23893 {
23894   int s;
23895   wait (&s);
23896   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext
23902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23903   (eval $ac_compile) 2>conftest.er1
23904   ac_status=$?
23905   grep -v '^ *+' conftest.er1 >conftest.err
23906   rm -f conftest.er1
23907   cat conftest.err >&5
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } &&
23910          { ac_try='test -z "$ac_c_werror_flag"
23911                          || test ! -s conftest.err'
23912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913   (eval $ac_try) 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); }; } &&
23917          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23923   ac_cv_header_sys_wait_h=yes
23924 else
23925   echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23927
23928 ac_cv_header_sys_wait_h=no
23929 fi
23930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23931 fi
23932 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23933 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23934 if test $ac_cv_header_sys_wait_h = yes; then
23935
23936 cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_SYS_WAIT_H 1
23938 _ACEOF
23939
23940 fi
23941
23942 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23943 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23944 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23945   echo $ECHO_N "(cached) $ECHO_C" >&6
23946 else
23947   cat >conftest.$ac_ext <<_ACEOF
23948 /* confdefs.h.  */
23949 _ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h.  */
23953 #include <sys/types.h>
23954 #include <termios.h>
23955 #ifdef TIOCGWINSZ
23956   yes
23957 #endif
23958
23959 _ACEOF
23960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23961   $EGREP "yes" >/dev/null 2>&1; then
23962   ac_cv_sys_tiocgwinsz_in_termios_h=yes
23963 else
23964   ac_cv_sys_tiocgwinsz_in_termios_h=no
23965 fi
23966 rm -f conftest*
23967
23968 fi
23969 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23970 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23971
23972 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23973   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23974 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23975 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23976   echo $ECHO_N "(cached) $ECHO_C" >&6
23977 else
23978   cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h.  */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h.  */
23984 #include <sys/types.h>
23985 #include <sys/ioctl.h>
23986 #ifdef TIOCGWINSZ
23987   yes
23988 #endif
23989
23990 _ACEOF
23991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23992   $EGREP "yes" >/dev/null 2>&1; then
23993   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23994 else
23995   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
23996 fi
23997 rm -f conftest*
23998
23999 fi
24000 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24001 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24002
24003   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24004
24005 cat >>confdefs.h <<\_ACEOF
24006 #define GWINSZ_IN_SYS_IOCTL 1
24007 _ACEOF
24008
24009   fi
24010 fi
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062 for ac_header in \
24063         arpa/inet.h             \
24064         arpa/nameser.h          \
24065         assert.h                \
24066         bits/types.h            \
24067         conio.h                 \
24068         crypt.h                 \
24069         direct.h                \
24070         errno.h                 \
24071         fcntl.h                 \
24072         filio.h                 \
24073         getopt.h                \
24074         grp.h                   \
24075         io.h                    \
24076         libutil.h               \
24077         limits.h                \
24078         locale.h                \
24079         netinet/tcp.h           \
24080         malloc.h                \
24081         memory.h                \
24082         psap.h                  \
24083         pwd.h                   \
24084         process.h               \
24085         resolv.h                \
24086         sgtty.h                 \
24087         shadow.h                \
24088         stddef.h                \
24089         string.h                \
24090         strings.h               \
24091         sysexits.h              \
24092         sys/file.h              \
24093         sys/filio.h             \
24094         sys/errno.h             \
24095         sys/ioctl.h             \
24096         sys/param.h             \
24097         sys/resource.h          \
24098         sys/select.h            \
24099         sys/socket.h            \
24100         sys/stat.h              \
24101         sys/syslog.h            \
24102         sys/time.h              \
24103         sys/types.h             \
24104         sys/ucred.h             \
24105         sys/uio.h               \
24106         syslog.h                \
24107         termios.h               \
24108         unistd.h                \
24109         utime.h                 \
24110         winsock.h               \
24111         winsock2.h              \
24112
24113 do
24114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24116   echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 fi
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24123 else
24124   # Is the header compilable?
24125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24127 cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h.  */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h.  */
24133 $ac_includes_default
24134 #include <$ac_header>
24135 _ACEOF
24136 rm -f conftest.$ac_objext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24138   (eval $ac_compile) 2>conftest.er1
24139   ac_status=$?
24140   grep -v '^ *+' conftest.er1 >conftest.err
24141   rm -f conftest.er1
24142   cat conftest.err >&5
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); } &&
24145          { ac_try='test -z "$ac_c_werror_flag"
24146                          || test ! -s conftest.err'
24147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148   (eval $ac_try) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; } &&
24152          { ac_try='test -s conftest.$ac_objext'
24153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); }; }; then
24158   ac_header_compiler=yes
24159 else
24160   echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 ac_header_compiler=no
24164 fi
24165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24167 echo "${ECHO_T}$ac_header_compiler" >&6
24168
24169 # Is the header present?
24170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24172 cat >conftest.$ac_ext <<_ACEOF
24173 /* confdefs.h.  */
24174 _ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h.  */
24178 #include <$ac_header>
24179 _ACEOF
24180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24182   ac_status=$?
24183   grep -v '^ *+' conftest.er1 >conftest.err
24184   rm -f conftest.er1
24185   cat conftest.err >&5
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); } >/dev/null; then
24188   if test -s conftest.err; then
24189     ac_cpp_err=$ac_c_preproc_warn_flag
24190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24191   else
24192     ac_cpp_err=
24193   fi
24194 else
24195   ac_cpp_err=yes
24196 fi
24197 if test -z "$ac_cpp_err"; then
24198   ac_header_preproc=yes
24199 else
24200   echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24202
24203   ac_header_preproc=no
24204 fi
24205 rm -f conftest.err conftest.$ac_ext
24206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24207 echo "${ECHO_T}$ac_header_preproc" >&6
24208
24209 # So?  What about this header?
24210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24211   yes:no: )
24212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24216     ac_header_preproc=yes
24217     ;;
24218   no:yes:* )
24219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24231     (
24232       cat <<\_ASBOX
24233 ## ------------------------------------------ ##
24234 ## Report this to the AC_PACKAGE_NAME lists.  ##
24235 ## ------------------------------------------ ##
24236 _ASBOX
24237     ) |
24238       sed "s/^/$as_me: WARNING:     /" >&2
24239     ;;
24240 esac
24241 echo "$as_me:$LINENO: checking for $ac_header" >&5
24242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24244   echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246   eval "$as_ac_Header=\$ac_header_preproc"
24247 fi
24248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24250
24251 fi
24252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24253   cat >>confdefs.h <<_ACEOF
24254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24255 _ACEOF
24256
24257 fi
24258
24259 done
24260
24261
24262
24263
24264
24265 for ac_func in sigaction sigset
24266 do
24267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24268 echo "$as_me:$LINENO: checking for $ac_func" >&5
24269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24270 if eval "test \"\${$as_ac_var+set}\" = set"; then
24271   echo $ECHO_N "(cached) $ECHO_C" >&6
24272 else
24273   cat >conftest.$ac_ext <<_ACEOF
24274 /* confdefs.h.  */
24275 _ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h.  */
24279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24281 #define $ac_func innocuous_$ac_func
24282
24283 /* System header to define __stub macros and hopefully few prototypes,
24284     which can conflict with char $ac_func (); below.
24285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24286     <limits.h> exists even on freestanding compilers.  */
24287
24288 #ifdef __STDC__
24289 # include <limits.h>
24290 #else
24291 # include <assert.h>
24292 #endif
24293
24294 #undef $ac_func
24295
24296 /* Override any gcc2 internal prototype to avoid an error.  */
24297 #ifdef __cplusplus
24298 extern "C"
24299 {
24300 #endif
24301 /* We use char because int might match the return type of a gcc2
24302    builtin and then its argument prototype would still apply.  */
24303 char $ac_func ();
24304 /* The GNU C library defines this for functions which it implements
24305     to always fail with ENOSYS.  Some functions are actually named
24306     something starting with __ and the normal name is an alias.  */
24307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24308 choke me
24309 #else
24310 char (*f) () = $ac_func;
24311 #endif
24312 #ifdef __cplusplus
24313 }
24314 #endif
24315
24316 int
24317 main ()
24318 {
24319 return f != $ac_func;
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 rm -f conftest.$ac_objext conftest$ac_exeext
24325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326   (eval $ac_link) 2>conftest.er1
24327   ac_status=$?
24328   grep -v '^ *+' conftest.er1 >conftest.err
24329   rm -f conftest.er1
24330   cat conftest.err >&5
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); } &&
24333          { ac_try='test -z "$ac_c_werror_flag"
24334                          || test ! -s conftest.err'
24335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336   (eval $ac_try) 2>&5
24337   ac_status=$?
24338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339   (exit $ac_status); }; } &&
24340          { ac_try='test -s conftest$ac_exeext'
24341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342   (eval $ac_try) 2>&5
24343   ac_status=$?
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); }; }; then
24346   eval "$as_ac_var=yes"
24347 else
24348   echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24350
24351 eval "$as_ac_var=no"
24352 fi
24353 rm -f conftest.err conftest.$ac_objext \
24354       conftest$ac_exeext conftest.$ac_ext
24355 fi
24356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24358 if test `eval echo '${'$as_ac_var'}'` = yes; then
24359   cat >>confdefs.h <<_ACEOF
24360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24361 _ACEOF
24362
24363 fi
24364 done
24365
24366
24367 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24368
24369 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24370 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24371 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24372   echo $ECHO_N "(cached) $ECHO_C" >&6
24373 else
24374   ac_check_lib_save_LIBS=$LIBS
24375 LIBS="-lV3  $LIBS"
24376 cat >conftest.$ac_ext <<_ACEOF
24377 /* confdefs.h.  */
24378 _ACEOF
24379 cat confdefs.h >>conftest.$ac_ext
24380 cat >>conftest.$ac_ext <<_ACEOF
24381 /* end confdefs.h.  */
24382
24383 /* Override any gcc2 internal prototype to avoid an error.  */
24384 #ifdef __cplusplus
24385 extern "C"
24386 #endif
24387 /* We use char because int might match the return type of a gcc2
24388    builtin and then its argument prototype would still apply.  */
24389 char sigset ();
24390 int
24391 main ()
24392 {
24393 sigset ();
24394   ;
24395   return 0;
24396 }
24397 _ACEOF
24398 rm -f conftest.$ac_objext conftest$ac_exeext
24399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24400   (eval $ac_link) 2>conftest.er1
24401   ac_status=$?
24402   grep -v '^ *+' conftest.er1 >conftest.err
24403   rm -f conftest.er1
24404   cat conftest.err >&5
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); } &&
24407          { ac_try='test -z "$ac_c_werror_flag"
24408                          || test ! -s conftest.err'
24409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); }; } &&
24414          { ac_try='test -s conftest$ac_exeext'
24415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416   (eval $ac_try) 2>&5
24417   ac_status=$?
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); }; }; then
24420   ac_cv_lib_V3_sigset=yes
24421 else
24422   echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425 ac_cv_lib_V3_sigset=no
24426 fi
24427 rm -f conftest.err conftest.$ac_objext \
24428       conftest$ac_exeext conftest.$ac_ext
24429 LIBS=$ac_check_lib_save_LIBS
24430 fi
24431 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24432 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24433 if test $ac_cv_lib_V3_sigset = yes; then
24434   cat >>confdefs.h <<_ACEOF
24435 #define HAVE_LIBV3 1
24436 _ACEOF
24437
24438   LIBS="-lV3 $LIBS"
24439
24440 fi
24441
24442 fi
24443
24444 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24445 echo "$as_me:$LINENO: checking for winsock" >&5
24446 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24447 if test "${ol_cv_winsock+set}" = set; then
24448   echo $ECHO_N "(cached) $ECHO_C" >&6
24449 else
24450   save_LIBS="$LIBS"
24451 for curlib in ws2_32 wsock32; do
24452         LIBS="$LIBS -l$curlib"
24453         cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h.  */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h.  */
24459 #include <winsock.h>
24460
24461 int
24462 main ()
24463 {
24464
24465                         socket(0,0,0);
24466                         select(0,NULL,NULL,NULL,NULL);
24467                         closesocket(0);
24468                         gethostname(NULL,0);
24469
24470   ;
24471   return 0;
24472 }
24473 _ACEOF
24474 rm -f conftest.$ac_objext conftest$ac_exeext
24475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24476   (eval $ac_link) 2>conftest.er1
24477   ac_status=$?
24478   grep -v '^ *+' conftest.er1 >conftest.err
24479   rm -f conftest.er1
24480   cat conftest.err >&5
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); } &&
24483          { ac_try='test -z "$ac_c_werror_flag"
24484                          || test ! -s conftest.err'
24485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486   (eval $ac_try) 2>&5
24487   ac_status=$?
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); }; } &&
24490          { ac_try='test -s conftest$ac_exeext'
24491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24492   (eval $ac_try) 2>&5
24493   ac_status=$?
24494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); }; }; then
24496   ol_cv_winsock=yes
24497 else
24498   echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24500
24501 ol_cv_winsock=no
24502 fi
24503 rm -f conftest.err conftest.$ac_objext \
24504       conftest$ac_exeext conftest.$ac_ext
24505
24506         if test $ol_cv_winsock = yes; then
24507
24508 cat >>confdefs.h <<\_ACEOF
24509 #define HAVE_WINSOCK 1
24510 _ACEOF
24511
24512                 ac_cv_func_socket=yes
24513                 ac_cv_func_select=yes
24514                 ac_cv_func_closesocket=yes
24515                 ac_cv_func_gethostname=yes
24516                 if test $curlib = ws2_32; then
24517                         ol_cv_winsock=winsock2
24518
24519 cat >>confdefs.h <<\_ACEOF
24520 #define HAVE_WINSOCK2 1
24521 _ACEOF
24522
24523                 fi
24524                 break
24525         fi
24526         LIBS="$save_LIBS"
24527 done
24528 fi
24529 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24530 echo "${ECHO_T}$ol_cv_winsock" >&6
24531 fi
24532
24533
24534 echo "$as_me:$LINENO: checking for socket" >&5
24535 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24536 if test "${ac_cv_func_socket+set}" = set; then
24537   echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539   cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h.  */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h.  */
24545 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24547 #define socket innocuous_socket
24548
24549 /* System header to define __stub macros and hopefully few prototypes,
24550     which can conflict with char socket (); below.
24551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24552     <limits.h> exists even on freestanding compilers.  */
24553
24554 #ifdef __STDC__
24555 # include <limits.h>
24556 #else
24557 # include <assert.h>
24558 #endif
24559
24560 #undef socket
24561
24562 /* Override any gcc2 internal prototype to avoid an error.  */
24563 #ifdef __cplusplus
24564 extern "C"
24565 {
24566 #endif
24567 /* We use char because int might match the return type of a gcc2
24568    builtin and then its argument prototype would still apply.  */
24569 char socket ();
24570 /* The GNU C library defines this for functions which it implements
24571     to always fail with ENOSYS.  Some functions are actually named
24572     something starting with __ and the normal name is an alias.  */
24573 #if defined (__stub_socket) || defined (__stub___socket)
24574 choke me
24575 #else
24576 char (*f) () = socket;
24577 #endif
24578 #ifdef __cplusplus
24579 }
24580 #endif
24581
24582 int
24583 main ()
24584 {
24585 return f != socket;
24586   ;
24587   return 0;
24588 }
24589 _ACEOF
24590 rm -f conftest.$ac_objext conftest$ac_exeext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24592   (eval $ac_link) 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } &&
24599          { ac_try='test -z "$ac_c_werror_flag"
24600                          || test ! -s conftest.err'
24601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602   (eval $ac_try) 2>&5
24603   ac_status=$?
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); }; } &&
24606          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24612   ac_cv_func_socket=yes
24613 else
24614   echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617 ac_cv_func_socket=no
24618 fi
24619 rm -f conftest.err conftest.$ac_objext \
24620       conftest$ac_exeext conftest.$ac_ext
24621 fi
24622 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24623 echo "${ECHO_T}$ac_cv_func_socket" >&6
24624 if test $ac_cv_func_socket = yes; then
24625   :
24626 else
24627
24628
24629 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24630 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24631 if test "${ac_cv_lib_socket_main+set}" = set; then
24632   echo $ECHO_N "(cached) $ECHO_C" >&6
24633 else
24634   ac_check_lib_save_LIBS=$LIBS
24635 LIBS="-lsocket  $LIBS"
24636 cat >conftest.$ac_ext <<_ACEOF
24637 /* confdefs.h.  */
24638 _ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h.  */
24642
24643
24644 int
24645 main ()
24646 {
24647 main ();
24648   ;
24649   return 0;
24650 }
24651 _ACEOF
24652 rm -f conftest.$ac_objext conftest$ac_exeext
24653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24654   (eval $ac_link) 2>conftest.er1
24655   ac_status=$?
24656   grep -v '^ *+' conftest.er1 >conftest.err
24657   rm -f conftest.er1
24658   cat conftest.err >&5
24659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); } &&
24661          { ac_try='test -z "$ac_c_werror_flag"
24662                          || test ! -s conftest.err'
24663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664   (eval $ac_try) 2>&5
24665   ac_status=$?
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); }; } &&
24668          { ac_try='test -s conftest$ac_exeext'
24669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24670   (eval $ac_try) 2>&5
24671   ac_status=$?
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); }; }; then
24674   ac_cv_lib_socket_main=yes
24675 else
24676   echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24678
24679 ac_cv_lib_socket_main=no
24680 fi
24681 rm -f conftest.err conftest.$ac_objext \
24682       conftest$ac_exeext conftest.$ac_ext
24683 LIBS=$ac_check_lib_save_LIBS
24684 fi
24685 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24686 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24687 if test $ac_cv_lib_socket_main = yes; then
24688   cat >>confdefs.h <<_ACEOF
24689 #define HAVE_LIBSOCKET 1
24690 _ACEOF
24691
24692   LIBS="-lsocket $LIBS"
24693
24694 fi
24695
24696
24697 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24698 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24699 if test "${ac_cv_lib_net_main+set}" = set; then
24700   echo $ECHO_N "(cached) $ECHO_C" >&6
24701 else
24702   ac_check_lib_save_LIBS=$LIBS
24703 LIBS="-lnet  $LIBS"
24704 cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710
24711
24712 int
24713 main ()
24714 {
24715 main ();
24716   ;
24717   return 0;
24718 }
24719 _ACEOF
24720 rm -f conftest.$ac_objext conftest$ac_exeext
24721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24722   (eval $ac_link) 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } &&
24729          { ac_try='test -z "$ac_c_werror_flag"
24730                          || test ! -s conftest.err'
24731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; } &&
24736          { ac_try='test -s conftest$ac_exeext'
24737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738   (eval $ac_try) 2>&5
24739   ac_status=$?
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); }; }; then
24742   ac_cv_lib_net_main=yes
24743 else
24744   echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24746
24747 ac_cv_lib_net_main=no
24748 fi
24749 rm -f conftest.err conftest.$ac_objext \
24750       conftest$ac_exeext conftest.$ac_ext
24751 LIBS=$ac_check_lib_save_LIBS
24752 fi
24753 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24754 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24755 if test $ac_cv_lib_net_main = yes; then
24756   cat >>confdefs.h <<_ACEOF
24757 #define HAVE_LIBNET 1
24758 _ACEOF
24759
24760   LIBS="-lnet $LIBS"
24761
24762 fi
24763
24764
24765 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24766 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24767 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24768   echo $ECHO_N "(cached) $ECHO_C" >&6
24769 else
24770   ac_check_lib_save_LIBS=$LIBS
24771 LIBS="-lnsl_s  $LIBS"
24772 cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778
24779
24780 int
24781 main ()
24782 {
24783 main ();
24784   ;
24785   return 0;
24786 }
24787 _ACEOF
24788 rm -f conftest.$ac_objext conftest$ac_exeext
24789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24790   (eval $ac_link) 2>conftest.er1
24791   ac_status=$?
24792   grep -v '^ *+' conftest.er1 >conftest.err
24793   rm -f conftest.er1
24794   cat conftest.err >&5
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); } &&
24797          { ac_try='test -z "$ac_c_werror_flag"
24798                          || test ! -s conftest.err'
24799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800   (eval $ac_try) 2>&5
24801   ac_status=$?
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); }; } &&
24804          { ac_try='test -s conftest$ac_exeext'
24805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806   (eval $ac_try) 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); }; }; then
24810   ac_cv_lib_nsl_s_main=yes
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815 ac_cv_lib_nsl_s_main=no
24816 fi
24817 rm -f conftest.err conftest.$ac_objext \
24818       conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24820 fi
24821 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24822 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24823 if test $ac_cv_lib_nsl_s_main = yes; then
24824   cat >>confdefs.h <<_ACEOF
24825 #define HAVE_LIBNSL_S 1
24826 _ACEOF
24827
24828   LIBS="-lnsl_s $LIBS"
24829
24830 fi
24831
24832
24833 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24834 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24835 if test "${ac_cv_lib_nsl_main+set}" = set; then
24836   echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838   ac_check_lib_save_LIBS=$LIBS
24839 LIBS="-lnsl  $LIBS"
24840 cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846
24847
24848 int
24849 main ()
24850 {
24851 main ();
24852   ;
24853   return 0;
24854 }
24855 _ACEOF
24856 rm -f conftest.$ac_objext conftest$ac_exeext
24857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24858   (eval $ac_link) 2>conftest.er1
24859   ac_status=$?
24860   grep -v '^ *+' conftest.er1 >conftest.err
24861   rm -f conftest.er1
24862   cat conftest.err >&5
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); } &&
24865          { ac_try='test -z "$ac_c_werror_flag"
24866                          || test ! -s conftest.err'
24867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24868   (eval $ac_try) 2>&5
24869   ac_status=$?
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); }; } &&
24872          { ac_try='test -s conftest$ac_exeext'
24873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24874   (eval $ac_try) 2>&5
24875   ac_status=$?
24876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); }; }; then
24878   ac_cv_lib_nsl_main=yes
24879 else
24880   echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24882
24883 ac_cv_lib_nsl_main=no
24884 fi
24885 rm -f conftest.err conftest.$ac_objext \
24886       conftest$ac_exeext conftest.$ac_ext
24887 LIBS=$ac_check_lib_save_LIBS
24888 fi
24889 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24890 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24891 if test $ac_cv_lib_nsl_main = yes; then
24892   cat >>confdefs.h <<_ACEOF
24893 #define HAVE_LIBNSL 1
24894 _ACEOF
24895
24896   LIBS="-lnsl $LIBS"
24897
24898 fi
24899
24900
24901 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24902 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24903 if test "${ac_cv_lib_inet_socket+set}" = set; then
24904   echo $ECHO_N "(cached) $ECHO_C" >&6
24905 else
24906   ac_check_lib_save_LIBS=$LIBS
24907 LIBS="-linet  $LIBS"
24908 cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914
24915 /* Override any gcc2 internal prototype to avoid an error.  */
24916 #ifdef __cplusplus
24917 extern "C"
24918 #endif
24919 /* We use char because int might match the return type of a gcc2
24920    builtin and then its argument prototype would still apply.  */
24921 char socket ();
24922 int
24923 main ()
24924 {
24925 socket ();
24926   ;
24927   return 0;
24928 }
24929 _ACEOF
24930 rm -f conftest.$ac_objext conftest$ac_exeext
24931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24932   (eval $ac_link) 2>conftest.er1
24933   ac_status=$?
24934   grep -v '^ *+' conftest.er1 >conftest.err
24935   rm -f conftest.er1
24936   cat conftest.err >&5
24937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938   (exit $ac_status); } &&
24939          { ac_try='test -z "$ac_c_werror_flag"
24940                          || test ! -s conftest.err'
24941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942   (eval $ac_try) 2>&5
24943   ac_status=$?
24944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945   (exit $ac_status); }; } &&
24946          { ac_try='test -s conftest$ac_exeext'
24947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948   (eval $ac_try) 2>&5
24949   ac_status=$?
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); }; }; then
24952   ac_cv_lib_inet_socket=yes
24953 else
24954   echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24956
24957 ac_cv_lib_inet_socket=no
24958 fi
24959 rm -f conftest.err conftest.$ac_objext \
24960       conftest$ac_exeext conftest.$ac_ext
24961 LIBS=$ac_check_lib_save_LIBS
24962 fi
24963 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24964 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24965 if test $ac_cv_lib_inet_socket = yes; then
24966   cat >>confdefs.h <<_ACEOF
24967 #define HAVE_LIBINET 1
24968 _ACEOF
24969
24970   LIBS="-linet $LIBS"
24971
24972 fi
24973
24974
24975 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24976 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24977 if test "${ac_cv_lib_gen_main+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980   ac_check_lib_save_LIBS=$LIBS
24981 LIBS="-lgen  $LIBS"
24982 cat >conftest.$ac_ext <<_ACEOF
24983 /* confdefs.h.  */
24984 _ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h.  */
24988
24989
24990 int
24991 main ()
24992 {
24993 main ();
24994   ;
24995   return 0;
24996 }
24997 _ACEOF
24998 rm -f conftest.$ac_objext conftest$ac_exeext
24999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000   (eval $ac_link) 2>conftest.er1
25001   ac_status=$?
25002   grep -v '^ *+' conftest.er1 >conftest.err
25003   rm -f conftest.er1
25004   cat conftest.err >&5
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); } &&
25007          { ac_try='test -z "$ac_c_werror_flag"
25008                          || test ! -s conftest.err'
25009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010   (eval $ac_try) 2>&5
25011   ac_status=$?
25012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); }; } &&
25014          { ac_try='test -s conftest$ac_exeext'
25015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016   (eval $ac_try) 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; }; then
25020   ac_cv_lib_gen_main=yes
25021 else
25022   echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 ac_cv_lib_gen_main=no
25026 fi
25027 rm -f conftest.err conftest.$ac_objext \
25028       conftest$ac_exeext conftest.$ac_ext
25029 LIBS=$ac_check_lib_save_LIBS
25030 fi
25031 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25032 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25033 if test $ac_cv_lib_gen_main = yes; then
25034   cat >>confdefs.h <<_ACEOF
25035 #define HAVE_LIBGEN 1
25036 _ACEOF
25037
25038   LIBS="-lgen $LIBS"
25039
25040 fi
25041
25042
25043 fi
25044
25045
25046 echo "$as_me:$LINENO: checking for select" >&5
25047 echo $ECHO_N "checking for select... $ECHO_C" >&6
25048 if test "${ac_cv_func_select+set}" = set; then
25049   echo $ECHO_N "(cached) $ECHO_C" >&6
25050 else
25051   cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 /* Define select to an innocuous variant, in case <limits.h> declares select.
25058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25059 #define select innocuous_select
25060
25061 /* System header to define __stub macros and hopefully few prototypes,
25062     which can conflict with char select (); below.
25063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25064     <limits.h> exists even on freestanding compilers.  */
25065
25066 #ifdef __STDC__
25067 # include <limits.h>
25068 #else
25069 # include <assert.h>
25070 #endif
25071
25072 #undef select
25073
25074 /* Override any gcc2 internal prototype to avoid an error.  */
25075 #ifdef __cplusplus
25076 extern "C"
25077 {
25078 #endif
25079 /* We use char because int might match the return type of a gcc2
25080    builtin and then its argument prototype would still apply.  */
25081 char select ();
25082 /* The GNU C library defines this for functions which it implements
25083     to always fail with ENOSYS.  Some functions are actually named
25084     something starting with __ and the normal name is an alias.  */
25085 #if defined (__stub_select) || defined (__stub___select)
25086 choke me
25087 #else
25088 char (*f) () = select;
25089 #endif
25090 #ifdef __cplusplus
25091 }
25092 #endif
25093
25094 int
25095 main ()
25096 {
25097 return f != select;
25098   ;
25099   return 0;
25100 }
25101 _ACEOF
25102 rm -f conftest.$ac_objext conftest$ac_exeext
25103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25104   (eval $ac_link) 2>conftest.er1
25105   ac_status=$?
25106   grep -v '^ *+' conftest.er1 >conftest.err
25107   rm -f conftest.er1
25108   cat conftest.err >&5
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); } &&
25111          { ac_try='test -z "$ac_c_werror_flag"
25112                          || test ! -s conftest.err'
25113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114   (eval $ac_try) 2>&5
25115   ac_status=$?
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); }; } &&
25118          { ac_try='test -s conftest$ac_exeext'
25119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120   (eval $ac_try) 2>&5
25121   ac_status=$?
25122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123   (exit $ac_status); }; }; then
25124   ac_cv_func_select=yes
25125 else
25126   echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25128
25129 ac_cv_func_select=no
25130 fi
25131 rm -f conftest.err conftest.$ac_objext \
25132       conftest$ac_exeext conftest.$ac_ext
25133 fi
25134 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25135 echo "${ECHO_T}$ac_cv_func_select" >&6
25136 if test $ac_cv_func_select = yes; then
25137   :
25138 else
25139   { { echo "$as_me:$LINENO: error: select() required." >&5
25140 echo "$as_me: error: select() required." >&2;}
25141    { (exit 1); exit 1; }; }
25142 fi
25143
25144
25145 if test "${ac_cv_header_winsock_h}" != yes; then
25146
25147
25148 for ac_header in sys/select.h sys/socket.h
25149 do
25150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25152   echo "$as_me:$LINENO: checking for $ac_header" >&5
25153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 fi
25157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25159 else
25160   # Is the header compilable?
25161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25163 cat >conftest.$ac_ext <<_ACEOF
25164 /* confdefs.h.  */
25165 _ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h.  */
25169 $ac_includes_default
25170 #include <$ac_header>
25171 _ACEOF
25172 rm -f conftest.$ac_objext
25173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25174   (eval $ac_compile) 2>conftest.er1
25175   ac_status=$?
25176   grep -v '^ *+' conftest.er1 >conftest.err
25177   rm -f conftest.er1
25178   cat conftest.err >&5
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } &&
25181          { ac_try='test -z "$ac_c_werror_flag"
25182                          || test ! -s conftest.err'
25183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184   (eval $ac_try) 2>&5
25185   ac_status=$?
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); }; } &&
25188          { ac_try='test -s conftest.$ac_objext'
25189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190   (eval $ac_try) 2>&5
25191   ac_status=$?
25192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193   (exit $ac_status); }; }; then
25194   ac_header_compiler=yes
25195 else
25196   echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25198
25199 ac_header_compiler=no
25200 fi
25201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25203 echo "${ECHO_T}$ac_header_compiler" >&6
25204
25205 # Is the header present?
25206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25208 cat >conftest.$ac_ext <<_ACEOF
25209 /* confdefs.h.  */
25210 _ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h.  */
25214 #include <$ac_header>
25215 _ACEOF
25216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25218   ac_status=$?
25219   grep -v '^ *+' conftest.er1 >conftest.err
25220   rm -f conftest.er1
25221   cat conftest.err >&5
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); } >/dev/null; then
25224   if test -s conftest.err; then
25225     ac_cpp_err=$ac_c_preproc_warn_flag
25226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25227   else
25228     ac_cpp_err=
25229   fi
25230 else
25231   ac_cpp_err=yes
25232 fi
25233 if test -z "$ac_cpp_err"; then
25234   ac_header_preproc=yes
25235 else
25236   echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25238
25239   ac_header_preproc=no
25240 fi
25241 rm -f conftest.err conftest.$ac_ext
25242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25243 echo "${ECHO_T}$ac_header_preproc" >&6
25244
25245 # So?  What about this header?
25246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25247   yes:no: )
25248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25252     ac_header_preproc=yes
25253     ;;
25254   no:yes:* )
25255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25267     (
25268       cat <<\_ASBOX
25269 ## ------------------------------------------ ##
25270 ## Report this to the AC_PACKAGE_NAME lists.  ##
25271 ## ------------------------------------------ ##
25272 _ASBOX
25273     ) |
25274       sed "s/^/$as_me: WARNING:     /" >&2
25275     ;;
25276 esac
25277 echo "$as_me:$LINENO: checking for $ac_header" >&5
25278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25280   echo $ECHO_N "(cached) $ECHO_C" >&6
25281 else
25282   eval "$as_ac_Header=\$ac_header_preproc"
25283 fi
25284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25286
25287 fi
25288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25289   cat >>confdefs.h <<_ACEOF
25290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25291 _ACEOF
25292
25293 fi
25294
25295 done
25296
25297 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25298 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25299 if test "${ac_cv_func_select_args+set}" = set; then
25300   echo $ECHO_N "(cached) $ECHO_C" >&6
25301 else
25302   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25303  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25304   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25305    cat >conftest.$ac_ext <<_ACEOF
25306 /* confdefs.h.  */
25307 _ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h.  */
25311 $ac_includes_default
25312 #if HAVE_SYS_SELECT_H
25313 # include <sys/select.h>
25314 #endif
25315 #if HAVE_SYS_SOCKET_H
25316 # include <sys/socket.h>
25317 #endif
25318
25319 int
25320 main ()
25321 {
25322 extern int select ($ac_arg1,
25323                                             $ac_arg234, $ac_arg234, $ac_arg234,
25324                                             $ac_arg5);
25325   ;
25326   return 0;
25327 }
25328 _ACEOF
25329 rm -f conftest.$ac_objext
25330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25331   (eval $ac_compile) 2>conftest.er1
25332   ac_status=$?
25333   grep -v '^ *+' conftest.er1 >conftest.err
25334   rm -f conftest.er1
25335   cat conftest.err >&5
25336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337   (exit $ac_status); } &&
25338          { ac_try='test -z "$ac_c_werror_flag"
25339                          || test ! -s conftest.err'
25340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341   (eval $ac_try) 2>&5
25342   ac_status=$?
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); }; } &&
25345          { ac_try='test -s conftest.$ac_objext'
25346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347   (eval $ac_try) 2>&5
25348   ac_status=$?
25349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); }; }; then
25351   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25352 else
25353   echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25355
25356 fi
25357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25358   done
25359  done
25360 done
25361 # Provide a safe default value.
25362 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25363
25364 fi
25365 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25366 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25367 ac_save_IFS=$IFS; IFS=','
25368 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25369 IFS=$ac_save_IFS
25370 shift
25371
25372 cat >>confdefs.h <<_ACEOF
25373 #define SELECT_TYPE_ARG1 $1
25374 _ACEOF
25375
25376
25377 cat >>confdefs.h <<_ACEOF
25378 #define SELECT_TYPE_ARG234 ($2)
25379 _ACEOF
25380
25381
25382 cat >>confdefs.h <<_ACEOF
25383 #define SELECT_TYPE_ARG5 ($3)
25384 _ACEOF
25385
25386 rm -f conftest*
25387
25388 fi
25389
25390
25391
25392 for ac_func in poll
25393 do
25394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25395 echo "$as_me:$LINENO: checking for $ac_func" >&5
25396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25397 if eval "test \"\${$as_ac_var+set}\" = set"; then
25398   echo $ECHO_N "(cached) $ECHO_C" >&6
25399 else
25400   cat >conftest.$ac_ext <<_ACEOF
25401 /* confdefs.h.  */
25402 _ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h.  */
25406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25408 #define $ac_func innocuous_$ac_func
25409
25410 /* System header to define __stub macros and hopefully few prototypes,
25411     which can conflict with char $ac_func (); below.
25412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25413     <limits.h> exists even on freestanding compilers.  */
25414
25415 #ifdef __STDC__
25416 # include <limits.h>
25417 #else
25418 # include <assert.h>
25419 #endif
25420
25421 #undef $ac_func
25422
25423 /* Override any gcc2 internal prototype to avoid an error.  */
25424 #ifdef __cplusplus
25425 extern "C"
25426 {
25427 #endif
25428 /* We use char because int might match the return type of a gcc2
25429    builtin and then its argument prototype would still apply.  */
25430 char $ac_func ();
25431 /* The GNU C library defines this for functions which it implements
25432     to always fail with ENOSYS.  Some functions are actually named
25433     something starting with __ and the normal name is an alias.  */
25434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25435 choke me
25436 #else
25437 char (*f) () = $ac_func;
25438 #endif
25439 #ifdef __cplusplus
25440 }
25441 #endif
25442
25443 int
25444 main ()
25445 {
25446 return f != $ac_func;
25447   ;
25448   return 0;
25449 }
25450 _ACEOF
25451 rm -f conftest.$ac_objext conftest$ac_exeext
25452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25453   (eval $ac_link) 2>conftest.er1
25454   ac_status=$?
25455   grep -v '^ *+' conftest.er1 >conftest.err
25456   rm -f conftest.er1
25457   cat conftest.err >&5
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); } &&
25460          { ac_try='test -z "$ac_c_werror_flag"
25461                          || test ! -s conftest.err'
25462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463   (eval $ac_try) 2>&5
25464   ac_status=$?
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); }; } &&
25467          { ac_try='test -s conftest$ac_exeext'
25468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469   (eval $ac_try) 2>&5
25470   ac_status=$?
25471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472   (exit $ac_status); }; }; then
25473   eval "$as_ac_var=yes"
25474 else
25475   echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25477
25478 eval "$as_ac_var=no"
25479 fi
25480 rm -f conftest.err conftest.$ac_objext \
25481       conftest$ac_exeext conftest.$ac_ext
25482 fi
25483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25485 if test `eval echo '${'$as_ac_var'}'` = yes; then
25486   cat >>confdefs.h <<_ACEOF
25487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25488 _ACEOF
25489
25490 fi
25491 done
25492
25493
25494 for ac_header in poll.h
25495 do
25496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25498   echo "$as_me:$LINENO: checking for $ac_header" >&5
25499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25501   echo $ECHO_N "(cached) $ECHO_C" >&6
25502 fi
25503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25505 else
25506   # Is the header compilable?
25507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25509 cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h.  */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h.  */
25515 $ac_includes_default
25516 #include <$ac_header>
25517 _ACEOF
25518 rm -f conftest.$ac_objext
25519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25520   (eval $ac_compile) 2>conftest.er1
25521   ac_status=$?
25522   grep -v '^ *+' conftest.er1 >conftest.err
25523   rm -f conftest.er1
25524   cat conftest.err >&5
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); } &&
25527          { ac_try='test -z "$ac_c_werror_flag"
25528                          || test ! -s conftest.err'
25529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530   (eval $ac_try) 2>&5
25531   ac_status=$?
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); }; } &&
25534          { ac_try='test -s conftest.$ac_objext'
25535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536   (eval $ac_try) 2>&5
25537   ac_status=$?
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); }; }; then
25540   ac_header_compiler=yes
25541 else
25542   echo "$as_me: failed program was:" >&5
25543 sed 's/^/| /' conftest.$ac_ext >&5
25544
25545 ac_header_compiler=no
25546 fi
25547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25549 echo "${ECHO_T}$ac_header_compiler" >&6
25550
25551 # Is the header present?
25552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25554 cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h.  */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h.  */
25560 #include <$ac_header>
25561 _ACEOF
25562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25564   ac_status=$?
25565   grep -v '^ *+' conftest.er1 >conftest.err
25566   rm -f conftest.er1
25567   cat conftest.err >&5
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); } >/dev/null; then
25570   if test -s conftest.err; then
25571     ac_cpp_err=$ac_c_preproc_warn_flag
25572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25573   else
25574     ac_cpp_err=
25575   fi
25576 else
25577   ac_cpp_err=yes
25578 fi
25579 if test -z "$ac_cpp_err"; then
25580   ac_header_preproc=yes
25581 else
25582   echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585   ac_header_preproc=no
25586 fi
25587 rm -f conftest.err conftest.$ac_ext
25588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25589 echo "${ECHO_T}$ac_header_preproc" >&6
25590
25591 # So?  What about this header?
25592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25593   yes:no: )
25594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25598     ac_header_preproc=yes
25599     ;;
25600   no:yes:* )
25601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25613     (
25614       cat <<\_ASBOX
25615 ## ------------------------------------------ ##
25616 ## Report this to the AC_PACKAGE_NAME lists.  ##
25617 ## ------------------------------------------ ##
25618 _ASBOX
25619     ) |
25620       sed "s/^/$as_me: WARNING:     /" >&2
25621     ;;
25622 esac
25623 echo "$as_me:$LINENO: checking for $ac_header" >&5
25624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25626   echo $ECHO_N "(cached) $ECHO_C" >&6
25627 else
25628   eval "$as_ac_Header=\$ac_header_preproc"
25629 fi
25630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25632
25633 fi
25634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25635   cat >>confdefs.h <<_ACEOF
25636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25637 _ACEOF
25638
25639 fi
25640
25641 done
25642
25643
25644
25645 for ac_header in sys/epoll.h
25646 do
25647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25649   echo "$as_me:$LINENO: checking for $ac_header" >&5
25650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25652   echo $ECHO_N "(cached) $ECHO_C" >&6
25653 fi
25654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25656 else
25657   # Is the header compilable?
25658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25660 cat >conftest.$ac_ext <<_ACEOF
25661 /* confdefs.h.  */
25662 _ACEOF
25663 cat confdefs.h >>conftest.$ac_ext
25664 cat >>conftest.$ac_ext <<_ACEOF
25665 /* end confdefs.h.  */
25666 $ac_includes_default
25667 #include <$ac_header>
25668 _ACEOF
25669 rm -f conftest.$ac_objext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25671   (eval $ac_compile) 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } &&
25678          { ac_try='test -z "$ac_c_werror_flag"
25679                          || test ! -s conftest.err'
25680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681   (eval $ac_try) 2>&5
25682   ac_status=$?
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); }; } &&
25685          { ac_try='test -s conftest.$ac_objext'
25686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687   (eval $ac_try) 2>&5
25688   ac_status=$?
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); }; }; then
25691   ac_header_compiler=yes
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696 ac_header_compiler=no
25697 fi
25698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25700 echo "${ECHO_T}$ac_header_compiler" >&6
25701
25702 # Is the header present?
25703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25705 cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h.  */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h.  */
25711 #include <$ac_header>
25712 _ACEOF
25713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25715   ac_status=$?
25716   grep -v '^ *+' conftest.er1 >conftest.err
25717   rm -f conftest.er1
25718   cat conftest.err >&5
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); } >/dev/null; then
25721   if test -s conftest.err; then
25722     ac_cpp_err=$ac_c_preproc_warn_flag
25723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25724   else
25725     ac_cpp_err=
25726   fi
25727 else
25728   ac_cpp_err=yes
25729 fi
25730 if test -z "$ac_cpp_err"; then
25731   ac_header_preproc=yes
25732 else
25733   echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25735
25736   ac_header_preproc=no
25737 fi
25738 rm -f conftest.err conftest.$ac_ext
25739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25740 echo "${ECHO_T}$ac_header_preproc" >&6
25741
25742 # So?  What about this header?
25743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25744   yes:no: )
25745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25749     ac_header_preproc=yes
25750     ;;
25751   no:yes:* )
25752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25764     (
25765       cat <<\_ASBOX
25766 ## ------------------------------------------ ##
25767 ## Report this to the AC_PACKAGE_NAME lists.  ##
25768 ## ------------------------------------------ ##
25769 _ASBOX
25770     ) |
25771       sed "s/^/$as_me: WARNING:     /" >&2
25772     ;;
25773 esac
25774 echo "$as_me:$LINENO: checking for $ac_header" >&5
25775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25777   echo $ECHO_N "(cached) $ECHO_C" >&6
25778 else
25779   eval "$as_ac_Header=\$ac_header_preproc"
25780 fi
25781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25783
25784 fi
25785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25786   cat >>confdefs.h <<_ACEOF
25787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25788 _ACEOF
25789
25790 fi
25791
25792 done
25793
25794 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25795 echo "$as_me:$LINENO: checking for epoll system call" >&5
25796 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25797 if test "$cross_compiling" = yes; then
25798   echo "$as_me:$LINENO: result: no" >&5
25799 echo "${ECHO_T}no" >&6
25800 else
25801   cat >conftest.$ac_ext <<_ACEOF
25802 /* confdefs.h.  */
25803 _ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h.  */
25807 int main(int argc, char *argv)
25808 {
25809         int epfd = epoll_create(256);
25810         exit (epfd == -1 ? 1 : 0);
25811 }
25812 _ACEOF
25813 rm -f conftest$ac_exeext
25814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25815   (eval $ac_link) 2>&5
25816   ac_status=$?
25817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820   (eval $ac_try) 2>&5
25821   ac_status=$?
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); }; }; then
25824   echo "$as_me:$LINENO: result: yes" >&5
25825 echo "${ECHO_T}yes" >&6
25826
25827 cat >>confdefs.h <<\_ACEOF
25828 #define HAVE_EPOLL 1
25829 _ACEOF
25830
25831 else
25832   echo "$as_me: program exited with status $ac_status" >&5
25833 echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25835
25836 ( exit $ac_status )
25837 echo "$as_me:$LINENO: result: no" >&5
25838 echo "${ECHO_T}no" >&6
25839 fi
25840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25841 fi
25842 fi
25843
25844 # strerror checks
25845 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25846 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25847 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25848   echo $ECHO_N "(cached) $ECHO_C" >&6
25849 else
25850
25851         cat >conftest.$ac_ext <<_ACEOF
25852 /* confdefs.h.  */
25853 _ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h.  */
25857
25858 #include <stdio.h>
25859 #include <sys/types.h>
25860 #include <errno.h>
25861 #ifdef WINNT
25862 #include <stdlib.h>
25863 #endif
25864 int
25865 main ()
25866 {
25867 char *c = (char *) *sys_errlist
25868   ;
25869   return 0;
25870 }
25871 _ACEOF
25872 rm -f conftest.$ac_objext
25873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25874   (eval $ac_compile) 2>conftest.er1
25875   ac_status=$?
25876   grep -v '^ *+' conftest.er1 >conftest.err
25877   rm -f conftest.er1
25878   cat conftest.err >&5
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); } &&
25881          { ac_try='test -z "$ac_c_werror_flag"
25882                          || test ! -s conftest.err'
25883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884   (eval $ac_try) 2>&5
25885   ac_status=$?
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); }; } &&
25888          { ac_try='test -s conftest.$ac_objext'
25889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890   (eval $ac_try) 2>&5
25891   ac_status=$?
25892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893   (exit $ac_status); }; }; then
25894   ol_cv_dcl_sys_errlist=yes
25895         ol_cv_have_sys_errlist=yes
25896 else
25897   echo "$as_me: failed program was:" >&5
25898 sed 's/^/| /' conftest.$ac_ext >&5
25899
25900 ol_cv_dcl_sys_errlist=no
25901 fi
25902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25903 fi
25904 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25905 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25906 #
25907 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25908 if test $ol_cv_dcl_sys_errlist = no ; then
25909
25910 cat >>confdefs.h <<\_ACEOF
25911 #define DECL_SYS_ERRLIST 1
25912 _ACEOF
25913
25914
25915         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25916 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25917 if test "${ol_cv_have_sys_errlist+set}" = set; then
25918   echo $ECHO_N "(cached) $ECHO_C" >&6
25919 else
25920
25921                 cat >conftest.$ac_ext <<_ACEOF
25922 /* confdefs.h.  */
25923 _ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h.  */
25927 #include <errno.h>
25928 int
25929 main ()
25930 {
25931 char *c = (char *) *sys_errlist
25932   ;
25933   return 0;
25934 }
25935 _ACEOF
25936 rm -f conftest.$ac_objext conftest$ac_exeext
25937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25938   (eval $ac_link) 2>conftest.er1
25939   ac_status=$?
25940   grep -v '^ *+' conftest.er1 >conftest.err
25941   rm -f conftest.er1
25942   cat conftest.err >&5
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); } &&
25945          { ac_try='test -z "$ac_c_werror_flag"
25946                          || test ! -s conftest.err'
25947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948   (eval $ac_try) 2>&5
25949   ac_status=$?
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); }; } &&
25952          { ac_try='test -s conftest$ac_exeext'
25953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954   (eval $ac_try) 2>&5
25955   ac_status=$?
25956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); }; }; then
25958   ol_cv_have_sys_errlist=yes
25959 else
25960   echo "$as_me: failed program was:" >&5
25961 sed 's/^/| /' conftest.$ac_ext >&5
25962
25963 ol_cv_have_sys_errlist=no
25964 fi
25965 rm -f conftest.err conftest.$ac_objext \
25966       conftest$ac_exeext conftest.$ac_ext
25967 fi
25968 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25969 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25970 fi
25971 if test $ol_cv_have_sys_errlist = yes ; then
25972
25973 cat >>confdefs.h <<\_ACEOF
25974 #define HAVE_SYS_ERRLIST 1
25975 _ACEOF
25976
25977 fi
25978
25979
25980 for ac_func in strerror strerror_r
25981 do
25982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25983 echo "$as_me:$LINENO: checking for $ac_func" >&5
25984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25985 if eval "test \"\${$as_ac_var+set}\" = set"; then
25986   echo $ECHO_N "(cached) $ECHO_C" >&6
25987 else
25988   cat >conftest.$ac_ext <<_ACEOF
25989 /* confdefs.h.  */
25990 _ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h.  */
25994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25996 #define $ac_func innocuous_$ac_func
25997
25998 /* System header to define __stub macros and hopefully few prototypes,
25999     which can conflict with char $ac_func (); below.
26000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26001     <limits.h> exists even on freestanding compilers.  */
26002
26003 #ifdef __STDC__
26004 # include <limits.h>
26005 #else
26006 # include <assert.h>
26007 #endif
26008
26009 #undef $ac_func
26010
26011 /* Override any gcc2 internal prototype to avoid an error.  */
26012 #ifdef __cplusplus
26013 extern "C"
26014 {
26015 #endif
26016 /* We use char because int might match the return type of a gcc2
26017    builtin and then its argument prototype would still apply.  */
26018 char $ac_func ();
26019 /* The GNU C library defines this for functions which it implements
26020     to always fail with ENOSYS.  Some functions are actually named
26021     something starting with __ and the normal name is an alias.  */
26022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26023 choke me
26024 #else
26025 char (*f) () = $ac_func;
26026 #endif
26027 #ifdef __cplusplus
26028 }
26029 #endif
26030
26031 int
26032 main ()
26033 {
26034 return f != $ac_func;
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 rm -f conftest.$ac_objext conftest$ac_exeext
26040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26041   (eval $ac_link) 2>conftest.er1
26042   ac_status=$?
26043   grep -v '^ *+' conftest.er1 >conftest.err
26044   rm -f conftest.er1
26045   cat conftest.err >&5
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); } &&
26048          { ac_try='test -z "$ac_c_werror_flag"
26049                          || test ! -s conftest.err'
26050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051   (eval $ac_try) 2>&5
26052   ac_status=$?
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); }; } &&
26055          { ac_try='test -s conftest$ac_exeext'
26056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057   (eval $ac_try) 2>&5
26058   ac_status=$?
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); }; }; then
26061   eval "$as_ac_var=yes"
26062 else
26063   echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26065
26066 eval "$as_ac_var=no"
26067 fi
26068 rm -f conftest.err conftest.$ac_objext \
26069       conftest$ac_exeext conftest.$ac_ext
26070 fi
26071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26073 if test `eval echo '${'$as_ac_var'}'` = yes; then
26074   cat >>confdefs.h <<_ACEOF
26075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26076 _ACEOF
26077
26078 fi
26079 done
26080
26081 ol_cv_func_strerror_r=no
26082 if test "${ac_cv_func_strerror_r}" = yes ; then
26083         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26084 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26085 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26086   echo $ECHO_N "(cached) $ECHO_C" >&6
26087 else
26088
26089         cat >conftest.$ac_ext <<_ACEOF
26090 /* confdefs.h.  */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h.  */
26095 #include <string.h>
26096 _ACEOF
26097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26098   $EGREP "strerror_r" >/dev/null 2>&1; then
26099   ol_decl_strerror_r=yes
26100 else
26101   ol_decl_strerror_r=no
26102 fi
26103 rm -f conftest*
26104
26105         if test $ol_decl_strerror_r = yes ; then
26106                 cat >conftest.$ac_ext <<_ACEOF
26107 /* confdefs.h.  */
26108 _ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h.  */
26112 #include <string.h>
26113 int
26114 main ()
26115 {
26116    /* from autoconf 2.59 */
26117                                 char buf[100];
26118                                 char x = *strerror_r (0, buf, sizeof buf);
26119                                 char *p = strerror_r (0, buf, sizeof buf);
26120
26121   ;
26122   return 0;
26123 }
26124 _ACEOF
26125 rm -f conftest.$ac_objext
26126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26127   (eval $ac_compile) 2>conftest.er1
26128   ac_status=$?
26129   grep -v '^ *+' conftest.er1 >conftest.err
26130   rm -f conftest.er1
26131   cat conftest.err >&5
26132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133   (exit $ac_status); } &&
26134          { ac_try='test -z "$ac_c_werror_flag"
26135                          || test ! -s conftest.err'
26136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26137   (eval $ac_try) 2>&5
26138   ac_status=$?
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); }; } &&
26141          { ac_try='test -s conftest.$ac_objext'
26142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26143   (eval $ac_try) 2>&5
26144   ac_status=$?
26145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146   (exit $ac_status); }; }; then
26147   ol_cv_nonposix_strerror_r=yes
26148 else
26149   echo "$as_me: failed program was:" >&5
26150 sed 's/^/| /' conftest.$ac_ext >&5
26151
26152 ol_cv_nonposix_strerror_r=no
26153 fi
26154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26155         else
26156                 if test "$cross_compiling" = yes; then
26157   ol_cv_nonposix_strerror=no
26158 else
26159   cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165
26166                         main() {
26167                                 char buf[100];
26168                                 buf[0] = 0;
26169                                 strerror_r( 1, buf, sizeof buf );
26170                                 exit( buf[0] == 0 );
26171                         }
26172
26173 _ACEOF
26174 rm -f conftest$ac_exeext
26175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26176   (eval $ac_link) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; }; then
26185   ol_cv_nonposix_strerror_r=yes
26186 else
26187   echo "$as_me: program exited with status $ac_status" >&5
26188 echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191 ( exit $ac_status )
26192 ol_cv_nonposix_strerror=no
26193 fi
26194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26195 fi
26196         fi
26197
26198 fi
26199 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26200 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26201 if test $ol_cv_nonposix_strerror_r = yes ; then
26202
26203 cat >>confdefs.h <<\_ACEOF
26204 #define HAVE_NONPOSIX_STRERROR_R 1
26205 _ACEOF
26206
26207 fi
26208
26209 elif test "${ac_cv_func_strerror}" = no ; then
26210         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26211 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26212 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26213   echo $ECHO_N "(cached) $ECHO_C" >&6
26214 else
26215
26216         cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h.  */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h.  */
26222
26223 #include <stdio.h>
26224 #include <sys/types.h>
26225 #include <errno.h>
26226 #ifdef WINNT
26227 #include <stdlib.h>
26228 #endif
26229 int
26230 main ()
26231 {
26232 char *c = (char *) *sys_errlist
26233   ;
26234   return 0;
26235 }
26236 _ACEOF
26237 rm -f conftest.$ac_objext
26238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26239   (eval $ac_compile) 2>conftest.er1
26240   ac_status=$?
26241   grep -v '^ *+' conftest.er1 >conftest.err
26242   rm -f conftest.er1
26243   cat conftest.err >&5
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); } &&
26246          { ac_try='test -z "$ac_c_werror_flag"
26247                          || test ! -s conftest.err'
26248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249   (eval $ac_try) 2>&5
26250   ac_status=$?
26251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252   (exit $ac_status); }; } &&
26253          { ac_try='test -s conftest.$ac_objext'
26254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255   (eval $ac_try) 2>&5
26256   ac_status=$?
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); }; }; then
26259   ol_cv_dcl_sys_errlist=yes
26260         ol_cv_have_sys_errlist=yes
26261 else
26262   echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265 ol_cv_dcl_sys_errlist=no
26266 fi
26267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26268 fi
26269 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26270 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26271 #
26272 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26273 if test $ol_cv_dcl_sys_errlist = no ; then
26274
26275 cat >>confdefs.h <<\_ACEOF
26276 #define DECL_SYS_ERRLIST 1
26277 _ACEOF
26278
26279
26280         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26281 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26282 if test "${ol_cv_have_sys_errlist+set}" = set; then
26283   echo $ECHO_N "(cached) $ECHO_C" >&6
26284 else
26285
26286                 cat >conftest.$ac_ext <<_ACEOF
26287 /* confdefs.h.  */
26288 _ACEOF
26289 cat confdefs.h >>conftest.$ac_ext
26290 cat >>conftest.$ac_ext <<_ACEOF
26291 /* end confdefs.h.  */
26292 #include <errno.h>
26293 int
26294 main ()
26295 {
26296 char *c = (char *) *sys_errlist
26297   ;
26298   return 0;
26299 }
26300 _ACEOF
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26303   (eval $ac_link) 2>conftest.er1
26304   ac_status=$?
26305   grep -v '^ *+' conftest.er1 >conftest.err
26306   rm -f conftest.er1
26307   cat conftest.err >&5
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); } &&
26310          { ac_try='test -z "$ac_c_werror_flag"
26311                          || test ! -s conftest.err'
26312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; } &&
26317          { ac_try='test -s conftest$ac_exeext'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; }; then
26323   ol_cv_have_sys_errlist=yes
26324 else
26325   echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26327
26328 ol_cv_have_sys_errlist=no
26329 fi
26330 rm -f conftest.err conftest.$ac_objext \
26331       conftest$ac_exeext conftest.$ac_ext
26332 fi
26333 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26334 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26335 fi
26336 if test $ol_cv_have_sys_errlist = yes ; then
26337
26338 cat >>confdefs.h <<\_ACEOF
26339 #define HAVE_SYS_ERRLIST 1
26340 _ACEOF
26341
26342 fi
26343
26344 fi
26345
26346
26347
26348 for ac_header in regex.h
26349 do
26350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26352   echo "$as_me:$LINENO: checking for $ac_header" >&5
26353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355   echo $ECHO_N "(cached) $ECHO_C" >&6
26356 fi
26357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26359 else
26360   # Is the header compilable?
26361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26363 cat >conftest.$ac_ext <<_ACEOF
26364 /* confdefs.h.  */
26365 _ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h.  */
26369 $ac_includes_default
26370 #include <$ac_header>
26371 _ACEOF
26372 rm -f conftest.$ac_objext
26373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26374   (eval $ac_compile) 2>conftest.er1
26375   ac_status=$?
26376   grep -v '^ *+' conftest.er1 >conftest.err
26377   rm -f conftest.er1
26378   cat conftest.err >&5
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); } &&
26381          { ac_try='test -z "$ac_c_werror_flag"
26382                          || test ! -s conftest.err'
26383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384   (eval $ac_try) 2>&5
26385   ac_status=$?
26386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387   (exit $ac_status); }; } &&
26388          { ac_try='test -s conftest.$ac_objext'
26389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390   (eval $ac_try) 2>&5
26391   ac_status=$?
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); }; }; then
26394   ac_header_compiler=yes
26395 else
26396   echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26398
26399 ac_header_compiler=no
26400 fi
26401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26403 echo "${ECHO_T}$ac_header_compiler" >&6
26404
26405 # Is the header present?
26406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26408 cat >conftest.$ac_ext <<_ACEOF
26409 /* confdefs.h.  */
26410 _ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h.  */
26414 #include <$ac_header>
26415 _ACEOF
26416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26418   ac_status=$?
26419   grep -v '^ *+' conftest.er1 >conftest.err
26420   rm -f conftest.er1
26421   cat conftest.err >&5
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); } >/dev/null; then
26424   if test -s conftest.err; then
26425     ac_cpp_err=$ac_c_preproc_warn_flag
26426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26427   else
26428     ac_cpp_err=
26429   fi
26430 else
26431   ac_cpp_err=yes
26432 fi
26433 if test -z "$ac_cpp_err"; then
26434   ac_header_preproc=yes
26435 else
26436   echo "$as_me: failed program was:" >&5
26437 sed 's/^/| /' conftest.$ac_ext >&5
26438
26439   ac_header_preproc=no
26440 fi
26441 rm -f conftest.err conftest.$ac_ext
26442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26443 echo "${ECHO_T}$ac_header_preproc" >&6
26444
26445 # So?  What about this header?
26446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26447   yes:no: )
26448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26452     ac_header_preproc=yes
26453     ;;
26454   no:yes:* )
26455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26467     (
26468       cat <<\_ASBOX
26469 ## ------------------------------------------ ##
26470 ## Report this to the AC_PACKAGE_NAME lists.  ##
26471 ## ------------------------------------------ ##
26472 _ASBOX
26473     ) |
26474       sed "s/^/$as_me: WARNING:     /" >&2
26475     ;;
26476 esac
26477 echo "$as_me:$LINENO: checking for $ac_header" >&5
26478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26480   echo $ECHO_N "(cached) $ECHO_C" >&6
26481 else
26482   eval "$as_ac_Header=\$ac_header_preproc"
26483 fi
26484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26486
26487 fi
26488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26489   cat >>confdefs.h <<_ACEOF
26490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26491 _ACEOF
26492
26493 fi
26494
26495 done
26496
26497 if test "$ac_cv_header_regex_h" != yes ; then
26498         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26499 echo "$as_me: error: POSIX regex.h required." >&2;}
26500    { (exit 1); exit 1; }; }
26501 fi
26502 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26503 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26504 if test "${ac_cv_search_regfree+set}" = set; then
26505   echo $ECHO_N "(cached) $ECHO_C" >&6
26506 else
26507   ac_func_search_save_LIBS=$LIBS
26508 ac_cv_search_regfree=no
26509 cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515
26516 /* Override any gcc2 internal prototype to avoid an error.  */
26517 #ifdef __cplusplus
26518 extern "C"
26519 #endif
26520 /* We use char because int might match the return type of a gcc2
26521    builtin and then its argument prototype would still apply.  */
26522 char regfree ();
26523 int
26524 main ()
26525 {
26526 regfree ();
26527   ;
26528   return 0;
26529 }
26530 _ACEOF
26531 rm -f conftest.$ac_objext conftest$ac_exeext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26533   (eval $ac_link) 2>conftest.er1
26534   ac_status=$?
26535   grep -v '^ *+' conftest.er1 >conftest.err
26536   rm -f conftest.er1
26537   cat conftest.err >&5
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); } &&
26540          { ac_try='test -z "$ac_c_werror_flag"
26541                          || test ! -s conftest.err'
26542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543   (eval $ac_try) 2>&5
26544   ac_status=$?
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); }; } &&
26547          { ac_try='test -s conftest$ac_exeext'
26548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549   (eval $ac_try) 2>&5
26550   ac_status=$?
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); }; }; then
26553   ac_cv_search_regfree="none required"
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 if test "$ac_cv_search_regfree" = no; then
26562   for ac_lib in regex gnuregex; do
26563     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26564     cat >conftest.$ac_ext <<_ACEOF
26565 /* confdefs.h.  */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h.  */
26570
26571 /* Override any gcc2 internal prototype to avoid an error.  */
26572 #ifdef __cplusplus
26573 extern "C"
26574 #endif
26575 /* We use char because int might match the return type of a gcc2
26576    builtin and then its argument prototype would still apply.  */
26577 char regfree ();
26578 int
26579 main ()
26580 {
26581 regfree ();
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 rm -f conftest.$ac_objext conftest$ac_exeext
26587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26588   (eval $ac_link) 2>conftest.er1
26589   ac_status=$?
26590   grep -v '^ *+' conftest.er1 >conftest.err
26591   rm -f conftest.er1
26592   cat conftest.err >&5
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } &&
26595          { ac_try='test -z "$ac_c_werror_flag"
26596                          || test ! -s conftest.err'
26597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598   (eval $ac_try) 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; } &&
26602          { ac_try='test -s conftest$ac_exeext'
26603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604   (eval $ac_try) 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); }; }; then
26608   ac_cv_search_regfree="-l$ac_lib"
26609 break
26610 else
26611   echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26613
26614 fi
26615 rm -f conftest.err conftest.$ac_objext \
26616       conftest$ac_exeext conftest.$ac_ext
26617   done
26618 fi
26619 LIBS=$ac_func_search_save_LIBS
26620 fi
26621 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26622 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26623 if test "$ac_cv_search_regfree" != no; then
26624   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26625   :
26626 else
26627   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26628 echo "$as_me: error: POSIX regex required." >&2;}
26629    { (exit 1); exit 1; }; }
26630 fi
26631
26632
26633
26634 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26635 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26636 if test "${ol_cv_c_posix_regex+set}" = set; then
26637   echo $ECHO_N "(cached) $ECHO_C" >&6
26638 else
26639
26640         if test "$cross_compiling" = yes; then
26641   ol_cv_c_posix_regex=cross
26642 else
26643   cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h.  */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h.  */
26649
26650 #include <sys/types.h>
26651 #include <regex.h>
26652 static char *pattern, *string;
26653 main()
26654 {
26655         int rc;
26656         regex_t re;
26657
26658         pattern = "^A";
26659
26660         if(regcomp(&re, pattern, 0)) {
26661                 return -1;
26662         }
26663
26664         string = "ALL MATCH";
26665
26666         rc = regexec(&re, string, 0, (void*)0, 0);
26667
26668         regfree(&re);
26669
26670         return rc;
26671 }
26672 _ACEOF
26673 rm -f conftest$ac_exeext
26674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26675   (eval $ac_link) 2>&5
26676   ac_status=$?
26677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680   (eval $ac_try) 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); }; }; then
26684   ol_cv_c_posix_regex=yes
26685 else
26686   echo "$as_me: program exited with status $ac_status" >&5
26687 echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26689
26690 ( exit $ac_status )
26691 ol_cv_c_posix_regex=no
26692 fi
26693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26694 fi
26695 fi
26696 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26697 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26698
26699 if test "$ol_cv_c_posix_regex" = no ; then
26700         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26701 echo "$as_me: error: broken POSIX regex!" >&2;}
26702    { (exit 1); exit 1; }; }
26703 fi
26704
26705
26706 have_uuid=no
26707
26708 for ac_header in sys/uuid.h
26709 do
26710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26712   echo "$as_me:$LINENO: checking for $ac_header" >&5
26713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26715   echo $ECHO_N "(cached) $ECHO_C" >&6
26716 fi
26717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26719 else
26720   # Is the header compilable?
26721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26723 cat >conftest.$ac_ext <<_ACEOF
26724 /* confdefs.h.  */
26725 _ACEOF
26726 cat confdefs.h >>conftest.$ac_ext
26727 cat >>conftest.$ac_ext <<_ACEOF
26728 /* end confdefs.h.  */
26729 $ac_includes_default
26730 #include <$ac_header>
26731 _ACEOF
26732 rm -f conftest.$ac_objext
26733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26734   (eval $ac_compile) 2>conftest.er1
26735   ac_status=$?
26736   grep -v '^ *+' conftest.er1 >conftest.err
26737   rm -f conftest.er1
26738   cat conftest.err >&5
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); } &&
26741          { ac_try='test -z "$ac_c_werror_flag"
26742                          || test ! -s conftest.err'
26743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744   (eval $ac_try) 2>&5
26745   ac_status=$?
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); }; } &&
26748          { ac_try='test -s conftest.$ac_objext'
26749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750   (eval $ac_try) 2>&5
26751   ac_status=$?
26752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); }; }; then
26754   ac_header_compiler=yes
26755 else
26756   echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26758
26759 ac_header_compiler=no
26760 fi
26761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26763 echo "${ECHO_T}$ac_header_compiler" >&6
26764
26765 # Is the header present?
26766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26768 cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774 #include <$ac_header>
26775 _ACEOF
26776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26778   ac_status=$?
26779   grep -v '^ *+' conftest.er1 >conftest.err
26780   rm -f conftest.er1
26781   cat conftest.err >&5
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); } >/dev/null; then
26784   if test -s conftest.err; then
26785     ac_cpp_err=$ac_c_preproc_warn_flag
26786     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26787   else
26788     ac_cpp_err=
26789   fi
26790 else
26791   ac_cpp_err=yes
26792 fi
26793 if test -z "$ac_cpp_err"; then
26794   ac_header_preproc=yes
26795 else
26796   echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26798
26799   ac_header_preproc=no
26800 fi
26801 rm -f conftest.err conftest.$ac_ext
26802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803 echo "${ECHO_T}$ac_header_preproc" >&6
26804
26805 # So?  What about this header?
26806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26807   yes:no: )
26808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26812     ac_header_preproc=yes
26813     ;;
26814   no:yes:* )
26815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26827     (
26828       cat <<\_ASBOX
26829 ## ------------------------------------------ ##
26830 ## Report this to the AC_PACKAGE_NAME lists.  ##
26831 ## ------------------------------------------ ##
26832 _ASBOX
26833     ) |
26834       sed "s/^/$as_me: WARNING:     /" >&2
26835     ;;
26836 esac
26837 echo "$as_me:$LINENO: checking for $ac_header" >&5
26838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26840   echo $ECHO_N "(cached) $ECHO_C" >&6
26841 else
26842   eval "$as_ac_Header=\$ac_header_preproc"
26843 fi
26844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26846
26847 fi
26848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26849   cat >>confdefs.h <<_ACEOF
26850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26851 _ACEOF
26852
26853 fi
26854
26855 done
26856
26857 if test $ac_cv_header_sys_uuid_h = yes ; then
26858         save_LIBS="$LIBS"
26859         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26860 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26861 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26862   echo $ECHO_N "(cached) $ECHO_C" >&6
26863 else
26864   ac_func_search_save_LIBS=$LIBS
26865 ac_cv_search_uuid_to_str=no
26866 cat >conftest.$ac_ext <<_ACEOF
26867 /* confdefs.h.  */
26868 _ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h.  */
26872
26873 /* Override any gcc2 internal prototype to avoid an error.  */
26874 #ifdef __cplusplus
26875 extern "C"
26876 #endif
26877 /* We use char because int might match the return type of a gcc2
26878    builtin and then its argument prototype would still apply.  */
26879 char uuid_to_str ();
26880 int
26881 main ()
26882 {
26883 uuid_to_str ();
26884   ;
26885   return 0;
26886 }
26887 _ACEOF
26888 rm -f conftest.$ac_objext conftest$ac_exeext
26889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26890   (eval $ac_link) 2>conftest.er1
26891   ac_status=$?
26892   grep -v '^ *+' conftest.er1 >conftest.err
26893   rm -f conftest.er1
26894   cat conftest.err >&5
26895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); } &&
26897          { ac_try='test -z "$ac_c_werror_flag"
26898                          || test ! -s conftest.err'
26899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900   (eval $ac_try) 2>&5
26901   ac_status=$?
26902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903   (exit $ac_status); }; } &&
26904          { ac_try='test -s conftest$ac_exeext'
26905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906   (eval $ac_try) 2>&5
26907   ac_status=$?
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); }; }; then
26910   ac_cv_search_uuid_to_str="none required"
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 if test "$ac_cv_search_uuid_to_str" = no; then
26919   for ac_lib in uuid; do
26920     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26921     cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h.  */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h.  */
26927
26928 /* Override any gcc2 internal prototype to avoid an error.  */
26929 #ifdef __cplusplus
26930 extern "C"
26931 #endif
26932 /* We use char because int might match the return type of a gcc2
26933    builtin and then its argument prototype would still apply.  */
26934 char uuid_to_str ();
26935 int
26936 main ()
26937 {
26938 uuid_to_str ();
26939   ;
26940   return 0;
26941 }
26942 _ACEOF
26943 rm -f conftest.$ac_objext conftest$ac_exeext
26944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26945   (eval $ac_link) 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } &&
26952          { ac_try='test -z "$ac_c_werror_flag"
26953                          || test ! -s conftest.err'
26954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955   (eval $ac_try) 2>&5
26956   ac_status=$?
26957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958   (exit $ac_status); }; } &&
26959          { ac_try='test -s conftest$ac_exeext'
26960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961   (eval $ac_try) 2>&5
26962   ac_status=$?
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); }; }; then
26965   ac_cv_search_uuid_to_str="-l$ac_lib"
26966 break
26967 else
26968   echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26970
26971 fi
26972 rm -f conftest.err conftest.$ac_objext \
26973       conftest$ac_exeext conftest.$ac_ext
26974   done
26975 fi
26976 LIBS=$ac_func_search_save_LIBS
26977 fi
26978 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26979 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26980 if test "$ac_cv_search_uuid_to_str" != no; then
26981   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26982   have_uuid=yes
26983 else
26984   :
26985 fi
26986
26987         LIBS="$save_LIBS"
26988
26989         if test have_uuid = yes ; then
26990
26991 cat >>confdefs.h <<\_ACEOF
26992 #define HAVE_UUID_TO_STR 1
26993 _ACEOF
26994
26995
26996                 test "$ac_cv_search_uuid_to_str" = "none required" || \
26997                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
26998         fi
26999 fi
27000
27001 if test $have_uuid = no ; then
27002         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27003 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27004         save_LIBS="$LIBS"
27005         LIBS="$LIBS -lrpcrt4"
27006         cat >conftest.$ac_ext <<_ACEOF
27007 /* confdefs.h.  */
27008 _ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h.  */
27012
27013                 int __stdcall UuidCreate(void *);
27014                 int __stdcall UuidToStringA(void *,void **);
27015
27016 int
27017 main ()
27018 {
27019
27020                 UuidCreate(0);
27021                 UuidToStringA(0,0);
27022
27023   ;
27024   return 0;
27025 }
27026 _ACEOF
27027 rm -f conftest.$ac_objext conftest$ac_exeext
27028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27029   (eval $ac_link) 2>conftest.er1
27030   ac_status=$?
27031   grep -v '^ *+' conftest.er1 >conftest.err
27032   rm -f conftest.er1
27033   cat conftest.err >&5
27034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); } &&
27036          { ac_try='test -z "$ac_c_werror_flag"
27037                          || test ! -s conftest.err'
27038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039   (eval $ac_try) 2>&5
27040   ac_status=$?
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); }; } &&
27043          { ac_try='test -s conftest$ac_exeext'
27044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045   (eval $ac_try) 2>&5
27046   ac_status=$?
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); }; }; then
27049   need_rpcrt=yes
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054 need_rpcrt=no
27055 fi
27056 rm -f conftest.err conftest.$ac_objext \
27057       conftest$ac_exeext conftest.$ac_ext
27058         if test $need_rpcrt = yes; then
27059                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27060         fi
27061         LIBS="$save_LIBS"
27062         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27063 echo "${ECHO_T}$need_rpcrt" >&6
27064 fi
27065
27066 ol_cv_lib_resolver=no
27067 if test $ol_cv_lib_resolver = no ; then
27068         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27069 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27070 if test "${ol_cv_resolver_none+set}" = set; then
27071   echo $ECHO_N "(cached) $ECHO_C" >&6
27072 else
27073
27074         ol_RESOLVER_LIB=
27075         ol_LIBS=$LIBS
27076         LIBS="$ol_RESOLVER_LIB $LIBS"
27077
27078         cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h.  */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h.  */
27084
27085 #ifdef HAVE_SYS_TYPES_H
27086 #       include <sys/types.h>
27087 #endif
27088 #include <netinet/in.h>
27089 #ifdef HAVE_ARPA_NAMESER_H
27090 #       include <arpa/nameser.h>
27091 #endif
27092 #ifdef HAVE_RESOLV_H
27093 #       include <resolv.h>
27094 #endif
27095
27096 int
27097 main ()
27098 {
27099 {
27100         int len, status;
27101         char *request = NULL;
27102         unsigned char reply[64*1024];
27103         unsigned char host[64*1024];
27104         unsigned char *p;
27105
27106 #ifdef NS_HFIXEDSZ
27107         /* Bind 8/9 interface */
27108         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27109 #else
27110         /* Bind 4 interface */
27111 # ifndef T_SRV
27112 #  define T_SRV 33
27113 # endif
27114         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27115 #endif
27116         p = reply;
27117 #ifdef NS_HFIXEDSZ
27118         /* Bind 8/9 interface */
27119         p += NS_HFIXEDSZ;
27120 #elif defined(HFIXEDSZ)
27121         /* Bind 4 interface w/ HFIXEDSZ */
27122         p += HFIXEDSZ;
27123 #else
27124         /* Bind 4 interface w/o HFIXEDSZ */
27125         p += sizeof(HEADER);
27126 #endif
27127         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27128 }
27129   ;
27130   return 0;
27131 }
27132 _ACEOF
27133 rm -f conftest.$ac_objext conftest$ac_exeext
27134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27135   (eval $ac_link) 2>conftest.er1
27136   ac_status=$?
27137   grep -v '^ *+' conftest.er1 >conftest.err
27138   rm -f conftest.er1
27139   cat conftest.err >&5
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); } &&
27142          { ac_try='test -z "$ac_c_werror_flag"
27143                          || test ! -s conftest.err'
27144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145   (eval $ac_try) 2>&5
27146   ac_status=$?
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); }; } &&
27149          { ac_try='test -s conftest$ac_exeext'
27150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151   (eval $ac_try) 2>&5
27152   ac_status=$?
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); }; }; then
27155   ol_cv_resolver_none=yes
27156 else
27157   echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160 ol_cv_resolver_none=no
27161 fi
27162 rm -f conftest.err conftest.$ac_objext \
27163       conftest$ac_exeext conftest.$ac_ext
27164
27165         LIBS="$ol_LIBS"
27166
27167 fi
27168 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27169 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27170
27171         if test $ol_cv_resolver_none = yes ; then
27172                 ol_cv_lib_resolver=yes
27173         fi
27174 fi
27175
27176 if test $ol_cv_lib_resolver = no ; then
27177         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27178 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27179 if test "${ol_cv_resolver_resolv+set}" = set; then
27180   echo $ECHO_N "(cached) $ECHO_C" >&6
27181 else
27182
27183         ol_RESOLVER_LIB=-lresolv
27184         ol_LIBS=$LIBS
27185         LIBS="$ol_RESOLVER_LIB $LIBS"
27186
27187         cat >conftest.$ac_ext <<_ACEOF
27188 /* confdefs.h.  */
27189 _ACEOF
27190 cat confdefs.h >>conftest.$ac_ext
27191 cat >>conftest.$ac_ext <<_ACEOF
27192 /* end confdefs.h.  */
27193
27194 #ifdef HAVE_SYS_TYPES_H
27195 #       include <sys/types.h>
27196 #endif
27197 #include <netinet/in.h>
27198 #ifdef HAVE_ARPA_NAMESER_H
27199 #       include <arpa/nameser.h>
27200 #endif
27201 #ifdef HAVE_RESOLV_H
27202 #       include <resolv.h>
27203 #endif
27204
27205 int
27206 main ()
27207 {
27208 {
27209         int len, status;
27210         char *request = NULL;
27211         unsigned char reply[64*1024];
27212         unsigned char host[64*1024];
27213         unsigned char *p;
27214
27215 #ifdef NS_HFIXEDSZ
27216         /* Bind 8/9 interface */
27217         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27218 #else
27219         /* Bind 4 interface */
27220 # ifndef T_SRV
27221 #  define T_SRV 33
27222 # endif
27223         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27224 #endif
27225         p = reply;
27226 #ifdef NS_HFIXEDSZ
27227         /* Bind 8/9 interface */
27228         p += NS_HFIXEDSZ;
27229 #elif defined(HFIXEDSZ)
27230         /* Bind 4 interface w/ HFIXEDSZ */
27231         p += HFIXEDSZ;
27232 #else
27233         /* Bind 4 interface w/o HFIXEDSZ */
27234         p += sizeof(HEADER);
27235 #endif
27236         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27237 }
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27244   (eval $ac_link) 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } &&
27251          { ac_try='test -z "$ac_c_werror_flag"
27252                          || test ! -s conftest.err'
27253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254   (eval $ac_try) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; } &&
27258          { ac_try='test -s conftest$ac_exeext'
27259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260   (eval $ac_try) 2>&5
27261   ac_status=$?
27262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263   (exit $ac_status); }; }; then
27264   ol_cv_resolver_resolv=yes
27265 else
27266   echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27268
27269 ol_cv_resolver_resolv=no
27270 fi
27271 rm -f conftest.err conftest.$ac_objext \
27272       conftest$ac_exeext conftest.$ac_ext
27273
27274         LIBS="$ol_LIBS"
27275
27276 fi
27277 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27278 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27279
27280         if test $ol_cv_resolver_resolv = yes ; then
27281                 ol_cv_lib_resolver=-lresolv
27282         fi
27283 fi
27284
27285 if test $ol_cv_lib_resolver = no ; then
27286         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27287 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27288 if test "${ol_cv_resolver_bind+set}" = set; then
27289   echo $ECHO_N "(cached) $ECHO_C" >&6
27290 else
27291
27292         ol_RESOLVER_LIB=-lbind
27293         ol_LIBS=$LIBS
27294         LIBS="$ol_RESOLVER_LIB $LIBS"
27295
27296         cat >conftest.$ac_ext <<_ACEOF
27297 /* confdefs.h.  */
27298 _ACEOF
27299 cat confdefs.h >>conftest.$ac_ext
27300 cat >>conftest.$ac_ext <<_ACEOF
27301 /* end confdefs.h.  */
27302
27303 #ifdef HAVE_SYS_TYPES_H
27304 #       include <sys/types.h>
27305 #endif
27306 #include <netinet/in.h>
27307 #ifdef HAVE_ARPA_NAMESER_H
27308 #       include <arpa/nameser.h>
27309 #endif
27310 #ifdef HAVE_RESOLV_H
27311 #       include <resolv.h>
27312 #endif
27313
27314 int
27315 main ()
27316 {
27317 {
27318         int len, status;
27319         char *request = NULL;
27320         unsigned char reply[64*1024];
27321         unsigned char host[64*1024];
27322         unsigned char *p;
27323
27324 #ifdef NS_HFIXEDSZ
27325         /* Bind 8/9 interface */
27326         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27327 #else
27328         /* Bind 4 interface */
27329 # ifndef T_SRV
27330 #  define T_SRV 33
27331 # endif
27332         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27333 #endif
27334         p = reply;
27335 #ifdef NS_HFIXEDSZ
27336         /* Bind 8/9 interface */
27337         p += NS_HFIXEDSZ;
27338 #elif defined(HFIXEDSZ)
27339         /* Bind 4 interface w/ HFIXEDSZ */
27340         p += HFIXEDSZ;
27341 #else
27342         /* Bind 4 interface w/o HFIXEDSZ */
27343         p += sizeof(HEADER);
27344 #endif
27345         status = dn_expand( reply, reply+len, p, host, sizeof(host));
27346 }
27347   ;
27348   return 0;
27349 }
27350 _ACEOF
27351 rm -f conftest.$ac_objext conftest$ac_exeext
27352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27353   (eval $ac_link) 2>conftest.er1
27354   ac_status=$?
27355   grep -v '^ *+' conftest.er1 >conftest.err
27356   rm -f conftest.er1
27357   cat conftest.err >&5
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } &&
27360          { ac_try='test -z "$ac_c_werror_flag"
27361                          || test ! -s conftest.err'
27362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363   (eval $ac_try) 2>&5
27364   ac_status=$?
27365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366   (exit $ac_status); }; } &&
27367          { ac_try='test -s conftest$ac_exeext'
27368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369   (eval $ac_try) 2>&5
27370   ac_status=$?
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); }; }; then
27373   ol_cv_resolver_bind=yes
27374 else
27375   echo "$as_me: failed program was:" >&5
27376 sed 's/^/| /' conftest.$ac_ext >&5
27377
27378 ol_cv_resolver_bind=no
27379 fi
27380 rm -f conftest.err conftest.$ac_objext \
27381       conftest$ac_exeext conftest.$ac_ext
27382
27383         LIBS="$ol_LIBS"
27384
27385 fi
27386 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27387 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27388
27389         if test $ol_cv_resolver_bind = yes ; then
27390                 ol_cv_lib_resolver=-lbind
27391         fi
27392 fi
27393
27394
27395
27396 ol_link_dnssrv=no
27397 if test "$ol_cv_lib_resolver" != no ; then
27398
27399 cat >>confdefs.h <<\_ACEOF
27400 #define HAVE_RES_QUERY 1
27401 _ACEOF
27402
27403
27404         if test "$ol_enable_dnssrv" != no ; then
27405                 ol_link_dnssrv=yes
27406         fi
27407
27408         if test "$ol_cv_lib_resolver" != yes ; then
27409                 LIBS="$ol_cv_lib_resolver $LIBS"
27410         fi
27411 fi
27412
27413 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27414         if test "$ol_link_dnssrv" = no ; then
27415                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27416 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27417    { (exit 1); exit 1; }; }
27418         fi
27419 else
27420         ol_enable_dnssrv=no
27421 fi
27422
27423
27424 for ac_func in hstrerror
27425 do
27426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27427 echo "$as_me:$LINENO: checking for $ac_func" >&5
27428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27429 if eval "test \"\${$as_ac_var+set}\" = set"; then
27430   echo $ECHO_N "(cached) $ECHO_C" >&6
27431 else
27432   cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h.  */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h.  */
27438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27440 #define $ac_func innocuous_$ac_func
27441
27442 /* System header to define __stub macros and hopefully few prototypes,
27443     which can conflict with char $ac_func (); below.
27444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27445     <limits.h> exists even on freestanding compilers.  */
27446
27447 #ifdef __STDC__
27448 # include <limits.h>
27449 #else
27450 # include <assert.h>
27451 #endif
27452
27453 #undef $ac_func
27454
27455 /* Override any gcc2 internal prototype to avoid an error.  */
27456 #ifdef __cplusplus
27457 extern "C"
27458 {
27459 #endif
27460 /* We use char because int might match the return type of a gcc2
27461    builtin and then its argument prototype would still apply.  */
27462 char $ac_func ();
27463 /* The GNU C library defines this for functions which it implements
27464     to always fail with ENOSYS.  Some functions are actually named
27465     something starting with __ and the normal name is an alias.  */
27466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27467 choke me
27468 #else
27469 char (*f) () = $ac_func;
27470 #endif
27471 #ifdef __cplusplus
27472 }
27473 #endif
27474
27475 int
27476 main ()
27477 {
27478 return f != $ac_func;
27479   ;
27480   return 0;
27481 }
27482 _ACEOF
27483 rm -f conftest.$ac_objext conftest$ac_exeext
27484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27485   (eval $ac_link) 2>conftest.er1
27486   ac_status=$?
27487   grep -v '^ *+' conftest.er1 >conftest.err
27488   rm -f conftest.er1
27489   cat conftest.err >&5
27490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491   (exit $ac_status); } &&
27492          { ac_try='test -z "$ac_c_werror_flag"
27493                          || test ! -s conftest.err'
27494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495   (eval $ac_try) 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; } &&
27499          { ac_try='test -s conftest$ac_exeext'
27500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501   (eval $ac_try) 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; }; then
27505   eval "$as_ac_var=yes"
27506 else
27507   echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27509
27510 eval "$as_ac_var=no"
27511 fi
27512 rm -f conftest.err conftest.$ac_objext \
27513       conftest$ac_exeext conftest.$ac_ext
27514 fi
27515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27517 if test `eval echo '${'$as_ac_var'}'` = yes; then
27518   cat >>confdefs.h <<_ACEOF
27519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27520 _ACEOF
27521
27522 fi
27523 done
27524
27525
27526
27527
27528
27529
27530 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27531 do
27532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27533 echo "$as_me:$LINENO: checking for $ac_func" >&5
27534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27535 if eval "test \"\${$as_ac_var+set}\" = set"; then
27536   echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538   cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27546 #define $ac_func innocuous_$ac_func
27547
27548 /* System header to define __stub macros and hopefully few prototypes,
27549     which can conflict with char $ac_func (); below.
27550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27551     <limits.h> exists even on freestanding compilers.  */
27552
27553 #ifdef __STDC__
27554 # include <limits.h>
27555 #else
27556 # include <assert.h>
27557 #endif
27558
27559 #undef $ac_func
27560
27561 /* Override any gcc2 internal prototype to avoid an error.  */
27562 #ifdef __cplusplus
27563 extern "C"
27564 {
27565 #endif
27566 /* We use char because int might match the return type of a gcc2
27567    builtin and then its argument prototype would still apply.  */
27568 char $ac_func ();
27569 /* The GNU C library defines this for functions which it implements
27570     to always fail with ENOSYS.  Some functions are actually named
27571     something starting with __ and the normal name is an alias.  */
27572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27573 choke me
27574 #else
27575 char (*f) () = $ac_func;
27576 #endif
27577 #ifdef __cplusplus
27578 }
27579 #endif
27580
27581 int
27582 main ()
27583 {
27584 return f != $ac_func;
27585   ;
27586   return 0;
27587 }
27588 _ACEOF
27589 rm -f conftest.$ac_objext conftest$ac_exeext
27590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27591   (eval $ac_link) 2>conftest.er1
27592   ac_status=$?
27593   grep -v '^ *+' conftest.er1 >conftest.err
27594   rm -f conftest.er1
27595   cat conftest.err >&5
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); } &&
27598          { ac_try='test -z "$ac_c_werror_flag"
27599                          || test ! -s conftest.err'
27600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601   (eval $ac_try) 2>&5
27602   ac_status=$?
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); }; } &&
27605          { ac_try='test -s conftest$ac_exeext'
27606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607   (eval $ac_try) 2>&5
27608   ac_status=$?
27609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610   (exit $ac_status); }; }; then
27611   eval "$as_ac_var=yes"
27612 else
27613   echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27615
27616 eval "$as_ac_var=no"
27617 fi
27618 rm -f conftest.err conftest.$ac_objext \
27619       conftest$ac_exeext conftest.$ac_ext
27620 fi
27621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27623 if test `eval echo '${'$as_ac_var'}'` = yes; then
27624   cat >>confdefs.h <<_ACEOF
27625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27626 _ACEOF
27627
27628 fi
27629 done
27630
27631
27632 ol_link_ipv6=no
27633 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27634         if test $ol_enable_ipv6 = yes ; then
27635                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27636 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27637    { (exit 1); exit 1; }; }
27638         fi
27639 elif test $ol_enable_ipv6 != no ; then
27640         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27641 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27642 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27643   echo $ECHO_N "(cached) $ECHO_C" >&6
27644 else
27645
27646                 cat >conftest.$ac_ext <<_ACEOF
27647 /* confdefs.h.  */
27648 _ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h.  */
27652
27653 #                       include <netinet/in.h>
27654 #                       ifdef INET6_ADDRSTRLEN
27655                                 __has_inet6_addrstrlen__;
27656 #                       endif
27657
27658 _ACEOF
27659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27660   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27661   ol_cv_inet6_addrstrlen=yes
27662 else
27663   ol_cv_inet6_addrstrlen=no
27664 fi
27665 rm -f conftest*
27666
27667 fi
27668 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27669 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27670
27671
27672         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27673 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27674 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27675   echo $ECHO_N "(cached) $ECHO_C" >&6
27676 else
27677
27678                 cat >conftest.$ac_ext <<_ACEOF
27679 /* confdefs.h.  */
27680 _ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h.  */
27684
27685 #include <sys/types.h>
27686 #include <sys/socket.h>
27687
27688 int
27689 main ()
27690 {
27691
27692                         struct sockaddr_storage ss;
27693
27694   ;
27695   return 0;
27696 }
27697 _ACEOF
27698 rm -f conftest.$ac_objext
27699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27700   (eval $ac_compile) 2>conftest.er1
27701   ac_status=$?
27702   grep -v '^ *+' conftest.er1 >conftest.err
27703   rm -f conftest.er1
27704   cat conftest.err >&5
27705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706   (exit $ac_status); } &&
27707          { ac_try='test -z "$ac_c_werror_flag"
27708                          || test ! -s conftest.err'
27709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27710   (eval $ac_try) 2>&5
27711   ac_status=$?
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); }; } &&
27714          { ac_try='test -s conftest.$ac_objext'
27715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27716   (eval $ac_try) 2>&5
27717   ac_status=$?
27718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719   (exit $ac_status); }; }; then
27720   ol_cv_struct_sockaddr_storage=yes
27721 else
27722   echo "$as_me: failed program was:" >&5
27723 sed 's/^/| /' conftest.$ac_ext >&5
27724
27725 ol_cv_struct_sockaddr_storage=no
27726 fi
27727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27728 fi
27729 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27730 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27731
27732         if test $ol_cv_inet6_addrstrlen = yes \
27733                 -a $ol_cv_struct_sockaddr_storage = yes ; then
27734                 ol_link_ipv6=yes
27735         elif test $ol_enable_ipv6 = yes \
27736                         -a $ol_cv_inet6_addrstrlen = no ; then
27737                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27738 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27739    { (exit 1); exit 1; }; }
27740         elif test $ol_enable_ipv6 = yes \
27741                         -a $ol_cv_struct_sockaddr_storage = no ; then
27742                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27743 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27744    { (exit 1); exit 1; }; }
27745         fi
27746 fi
27747
27748 if test $ol_enable_local != no ; then
27749
27750 for ac_header in sys/un.h
27751 do
27752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27754   echo "$as_me:$LINENO: checking for $ac_header" >&5
27755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27757   echo $ECHO_N "(cached) $ECHO_C" >&6
27758 fi
27759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27761 else
27762   # Is the header compilable?
27763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27765 cat >conftest.$ac_ext <<_ACEOF
27766 /* confdefs.h.  */
27767 _ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h.  */
27771 $ac_includes_default
27772 #include <$ac_header>
27773 _ACEOF
27774 rm -f conftest.$ac_objext
27775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27776   (eval $ac_compile) 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } &&
27783          { ac_try='test -z "$ac_c_werror_flag"
27784                          || test ! -s conftest.err'
27785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786   (eval $ac_try) 2>&5
27787   ac_status=$?
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); }; } &&
27790          { ac_try='test -s conftest.$ac_objext'
27791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792   (eval $ac_try) 2>&5
27793   ac_status=$?
27794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795   (exit $ac_status); }; }; then
27796   ac_header_compiler=yes
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801 ac_header_compiler=no
27802 fi
27803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27805 echo "${ECHO_T}$ac_header_compiler" >&6
27806
27807 # Is the header present?
27808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27810 cat >conftest.$ac_ext <<_ACEOF
27811 /* confdefs.h.  */
27812 _ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h.  */
27816 #include <$ac_header>
27817 _ACEOF
27818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27819   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27820   ac_status=$?
27821   grep -v '^ *+' conftest.er1 >conftest.err
27822   rm -f conftest.er1
27823   cat conftest.err >&5
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); } >/dev/null; then
27826   if test -s conftest.err; then
27827     ac_cpp_err=$ac_c_preproc_warn_flag
27828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27829   else
27830     ac_cpp_err=
27831   fi
27832 else
27833   ac_cpp_err=yes
27834 fi
27835 if test -z "$ac_cpp_err"; then
27836   ac_header_preproc=yes
27837 else
27838   echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27840
27841   ac_header_preproc=no
27842 fi
27843 rm -f conftest.err conftest.$ac_ext
27844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27845 echo "${ECHO_T}$ac_header_preproc" >&6
27846
27847 # So?  What about this header?
27848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27849   yes:no: )
27850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27854     ac_header_preproc=yes
27855     ;;
27856   no:yes:* )
27857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27869     (
27870       cat <<\_ASBOX
27871 ## ------------------------------------------ ##
27872 ## Report this to the AC_PACKAGE_NAME lists.  ##
27873 ## ------------------------------------------ ##
27874 _ASBOX
27875     ) |
27876       sed "s/^/$as_me: WARNING:     /" >&2
27877     ;;
27878 esac
27879 echo "$as_me:$LINENO: checking for $ac_header" >&5
27880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27882   echo $ECHO_N "(cached) $ECHO_C" >&6
27883 else
27884   eval "$as_ac_Header=\$ac_header_preproc"
27885 fi
27886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27888
27889 fi
27890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27891   cat >>confdefs.h <<_ACEOF
27892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27893 _ACEOF
27894
27895 fi
27896
27897 done
27898
27899
27900         if test $ol_enable_local = auto ; then
27901                 ol_enable_local=$ac_cv_header_sys_un_h
27902         elif test $ac_cv_header_sys_un_h = no ; then
27903                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27904 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27905    { (exit 1); exit 1; }; }
27906         fi
27907 fi
27908
27909 ol_link_kbind=no
27910 ol_link_krb5=no
27911 ol_link_krb4=no
27912
27913 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27914         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27915         -o $ol_with_kerberos = k425 ; then
27916
27917
27918 for ac_header in krb5.h
27919 do
27920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27922   echo "$as_me:$LINENO: checking for $ac_header" >&5
27923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925   echo $ECHO_N "(cached) $ECHO_C" >&6
27926 fi
27927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27929 else
27930   # Is the header compilable?
27931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27933 cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h.  */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h.  */
27939 $ac_includes_default
27940 #include <$ac_header>
27941 _ACEOF
27942 rm -f conftest.$ac_objext
27943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27944   (eval $ac_compile) 2>conftest.er1
27945   ac_status=$?
27946   grep -v '^ *+' conftest.er1 >conftest.err
27947   rm -f conftest.er1
27948   cat conftest.err >&5
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); } &&
27951          { ac_try='test -z "$ac_c_werror_flag"
27952                          || test ! -s conftest.err'
27953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954   (eval $ac_try) 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; } &&
27958          { ac_try='test -s conftest.$ac_objext'
27959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960   (eval $ac_try) 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; }; then
27964   ac_header_compiler=yes
27965 else
27966   echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27968
27969 ac_header_compiler=no
27970 fi
27971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27973 echo "${ECHO_T}$ac_header_compiler" >&6
27974
27975 # Is the header present?
27976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27978 cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h.  */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h.  */
27984 #include <$ac_header>
27985 _ACEOF
27986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } >/dev/null; then
27994   if test -s conftest.err; then
27995     ac_cpp_err=$ac_c_preproc_warn_flag
27996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27997   else
27998     ac_cpp_err=
27999   fi
28000 else
28001   ac_cpp_err=yes
28002 fi
28003 if test -z "$ac_cpp_err"; then
28004   ac_header_preproc=yes
28005 else
28006   echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009   ac_header_preproc=no
28010 fi
28011 rm -f conftest.err conftest.$ac_ext
28012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28013 echo "${ECHO_T}$ac_header_preproc" >&6
28014
28015 # So?  What about this header?
28016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28017   yes:no: )
28018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28022     ac_header_preproc=yes
28023     ;;
28024   no:yes:* )
28025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28037     (
28038       cat <<\_ASBOX
28039 ## ------------------------------------------ ##
28040 ## Report this to the AC_PACKAGE_NAME lists.  ##
28041 ## ------------------------------------------ ##
28042 _ASBOX
28043     ) |
28044       sed "s/^/$as_me: WARNING:     /" >&2
28045     ;;
28046 esac
28047 echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28050   echo $ECHO_N "(cached) $ECHO_C" >&6
28051 else
28052   eval "$as_ac_Header=\$ac_header_preproc"
28053 fi
28054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28056
28057 fi
28058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28059   cat >>confdefs.h <<_ACEOF
28060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28061 _ACEOF
28062
28063 fi
28064
28065 done
28066
28067
28068         if test $ac_cv_header_krb5_h = yes ; then
28069
28070 for ac_header in heim_err.h
28071 do
28072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28074   echo "$as_me:$LINENO: checking for $ac_header" >&5
28075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28077   echo $ECHO_N "(cached) $ECHO_C" >&6
28078 fi
28079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28081 else
28082   # Is the header compilable?
28083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28085 cat >conftest.$ac_ext <<_ACEOF
28086 /* confdefs.h.  */
28087 _ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h.  */
28091 $ac_includes_default
28092 #include <$ac_header>
28093 _ACEOF
28094 rm -f conftest.$ac_objext
28095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28096   (eval $ac_compile) 2>conftest.er1
28097   ac_status=$?
28098   grep -v '^ *+' conftest.er1 >conftest.err
28099   rm -f conftest.er1
28100   cat conftest.err >&5
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); } &&
28103          { ac_try='test -z "$ac_c_werror_flag"
28104                          || test ! -s conftest.err'
28105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28106   (eval $ac_try) 2>&5
28107   ac_status=$?
28108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109   (exit $ac_status); }; } &&
28110          { ac_try='test -s conftest.$ac_objext'
28111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112   (eval $ac_try) 2>&5
28113   ac_status=$?
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); }; }; then
28116   ac_header_compiler=yes
28117 else
28118   echo "$as_me: failed program was:" >&5
28119 sed 's/^/| /' conftest.$ac_ext >&5
28120
28121 ac_header_compiler=no
28122 fi
28123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28125 echo "${ECHO_T}$ac_header_compiler" >&6
28126
28127 # Is the header present?
28128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28130 cat >conftest.$ac_ext <<_ACEOF
28131 /* confdefs.h.  */
28132 _ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h.  */
28136 #include <$ac_header>
28137 _ACEOF
28138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28140   ac_status=$?
28141   grep -v '^ *+' conftest.er1 >conftest.err
28142   rm -f conftest.er1
28143   cat conftest.err >&5
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); } >/dev/null; then
28146   if test -s conftest.err; then
28147     ac_cpp_err=$ac_c_preproc_warn_flag
28148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28149   else
28150     ac_cpp_err=
28151   fi
28152 else
28153   ac_cpp_err=yes
28154 fi
28155 if test -z "$ac_cpp_err"; then
28156   ac_header_preproc=yes
28157 else
28158   echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28160
28161   ac_header_preproc=no
28162 fi
28163 rm -f conftest.err conftest.$ac_ext
28164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28165 echo "${ECHO_T}$ac_header_preproc" >&6
28166
28167 # So?  What about this header?
28168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28169   yes:no: )
28170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28174     ac_header_preproc=yes
28175     ;;
28176   no:yes:* )
28177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28189     (
28190       cat <<\_ASBOX
28191 ## ------------------------------------------ ##
28192 ## Report this to the AC_PACKAGE_NAME lists.  ##
28193 ## ------------------------------------------ ##
28194 _ASBOX
28195     ) |
28196       sed "s/^/$as_me: WARNING:     /" >&2
28197     ;;
28198 esac
28199 echo "$as_me:$LINENO: checking for $ac_header" >&5
28200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28202   echo $ECHO_N "(cached) $ECHO_C" >&6
28203 else
28204   eval "$as_ac_Header=\$ac_header_preproc"
28205 fi
28206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28208
28209 fi
28210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28211   cat >>confdefs.h <<_ACEOF
28212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28213 _ACEOF
28214
28215 fi
28216
28217 done
28218
28219                 if test $ac_cv_header_heim_err_h = yes ; then
28220                         krb5_impl=heimdal
28221                 else
28222                         krb5_impl=mit
28223                 fi
28224
28225                 if test $krb5_impl = mit; then
28226                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28227 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28228 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28229   echo $ECHO_N "(cached) $ECHO_C" >&6
28230 else
28231   ac_check_lib_save_LIBS=$LIBS
28232 LIBS="-lk5crypto  $LIBS"
28233 cat >conftest.$ac_ext <<_ACEOF
28234 /* confdefs.h.  */
28235 _ACEOF
28236 cat confdefs.h >>conftest.$ac_ext
28237 cat >>conftest.$ac_ext <<_ACEOF
28238 /* end confdefs.h.  */
28239
28240
28241 int
28242 main ()
28243 {
28244 main ();
28245   ;
28246   return 0;
28247 }
28248 _ACEOF
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251   (eval $ac_link) 2>conftest.er1
28252   ac_status=$?
28253   grep -v '^ *+' conftest.er1 >conftest.err
28254   rm -f conftest.er1
28255   cat conftest.err >&5
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); } &&
28258          { ac_try='test -z "$ac_c_werror_flag"
28259                          || test ! -s conftest.err'
28260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261   (eval $ac_try) 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); }; } &&
28265          { ac_try='test -s conftest$ac_exeext'
28266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267   (eval $ac_try) 2>&5
28268   ac_status=$?
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); }; }; then
28271   ac_cv_lib_k5crypto_main=yes
28272 else
28273   echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28275
28276 ac_cv_lib_k5crypto_main=no
28277 fi
28278 rm -f conftest.err conftest.$ac_objext \
28279       conftest$ac_exeext conftest.$ac_ext
28280 LIBS=$ac_check_lib_save_LIBS
28281 fi
28282 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28283 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28284 if test $ac_cv_lib_k5crypto_main = yes; then
28285   krb5crypto=k5crypto
28286 else
28287   krb5crypto=crypto
28288 fi
28289
28290
28291                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28292 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28293 if test "${ac_cv_lib_krb5_main+set}" = set; then
28294   echo $ECHO_N "(cached) $ECHO_C" >&6
28295 else
28296   ac_check_lib_save_LIBS=$LIBS
28297 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28298 cat >conftest.$ac_ext <<_ACEOF
28299 /* confdefs.h.  */
28300 _ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h.  */
28304
28305
28306 int
28307 main ()
28308 {
28309 main ();
28310   ;
28311   return 0;
28312 }
28313 _ACEOF
28314 rm -f conftest.$ac_objext conftest$ac_exeext
28315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28316   (eval $ac_link) 2>conftest.er1
28317   ac_status=$?
28318   grep -v '^ *+' conftest.er1 >conftest.err
28319   rm -f conftest.er1
28320   cat conftest.err >&5
28321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322   (exit $ac_status); } &&
28323          { ac_try='test -z "$ac_c_werror_flag"
28324                          || test ! -s conftest.err'
28325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326   (eval $ac_try) 2>&5
28327   ac_status=$?
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); }; } &&
28330          { ac_try='test -s conftest$ac_exeext'
28331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332   (eval $ac_try) 2>&5
28333   ac_status=$?
28334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335   (exit $ac_status); }; }; then
28336   ac_cv_lib_krb5_main=yes
28337 else
28338   echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28340
28341 ac_cv_lib_krb5_main=no
28342 fi
28343 rm -f conftest.err conftest.$ac_objext \
28344       conftest$ac_exeext conftest.$ac_ext
28345 LIBS=$ac_check_lib_save_LIBS
28346 fi
28347 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28348 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28349 if test $ac_cv_lib_krb5_main = yes; then
28350   have_krb5=yes
28351                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28352 else
28353   have_krb5=no
28354 fi
28355
28356
28357                 elif test $krb5_impl = heimdal; then
28358                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
28359 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28360 if test "${ac_cv_lib_des_main+set}" = set; then
28361   echo $ECHO_N "(cached) $ECHO_C" >&6
28362 else
28363   ac_check_lib_save_LIBS=$LIBS
28364 LIBS="-ldes  $LIBS"
28365 cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h.  */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h.  */
28371
28372
28373 int
28374 main ()
28375 {
28376 main ();
28377   ;
28378   return 0;
28379 }
28380 _ACEOF
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28383   (eval $ac_link) 2>conftest.er1
28384   ac_status=$?
28385   grep -v '^ *+' conftest.er1 >conftest.err
28386   rm -f conftest.er1
28387   cat conftest.err >&5
28388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389   (exit $ac_status); } &&
28390          { ac_try='test -z "$ac_c_werror_flag"
28391                          || test ! -s conftest.err'
28392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393   (eval $ac_try) 2>&5
28394   ac_status=$?
28395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396   (exit $ac_status); }; } &&
28397          { ac_try='test -s conftest$ac_exeext'
28398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399   (eval $ac_try) 2>&5
28400   ac_status=$?
28401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402   (exit $ac_status); }; }; then
28403   ac_cv_lib_des_main=yes
28404 else
28405   echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28407
28408 ac_cv_lib_des_main=no
28409 fi
28410 rm -f conftest.err conftest.$ac_objext \
28411       conftest$ac_exeext conftest.$ac_ext
28412 LIBS=$ac_check_lib_save_LIBS
28413 fi
28414 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28415 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28416 if test $ac_cv_lib_des_main = yes; then
28417   krb5crypto=des
28418 else
28419   krb5crypto=crypto
28420 fi
28421
28422
28423                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28424 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28425 if test "${ac_cv_lib_krb5_main+set}" = set; then
28426   echo $ECHO_N "(cached) $ECHO_C" >&6
28427 else
28428   ac_check_lib_save_LIBS=$LIBS
28429 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28430 cat >conftest.$ac_ext <<_ACEOF
28431 /* confdefs.h.  */
28432 _ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h.  */
28436
28437
28438 int
28439 main ()
28440 {
28441 main ();
28442   ;
28443   return 0;
28444 }
28445 _ACEOF
28446 rm -f conftest.$ac_objext conftest$ac_exeext
28447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28448   (eval $ac_link) 2>conftest.er1
28449   ac_status=$?
28450   grep -v '^ *+' conftest.er1 >conftest.err
28451   rm -f conftest.er1
28452   cat conftest.err >&5
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); } &&
28455          { ac_try='test -z "$ac_c_werror_flag"
28456                          || test ! -s conftest.err'
28457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458   (eval $ac_try) 2>&5
28459   ac_status=$?
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); }; } &&
28462          { ac_try='test -s conftest$ac_exeext'
28463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464   (eval $ac_try) 2>&5
28465   ac_status=$?
28466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467   (exit $ac_status); }; }; then
28468   ac_cv_lib_krb5_main=yes
28469 else
28470   echo "$as_me: failed program was:" >&5
28471 sed 's/^/| /' conftest.$ac_ext >&5
28472
28473 ac_cv_lib_krb5_main=no
28474 fi
28475 rm -f conftest.err conftest.$ac_objext \
28476       conftest$ac_exeext conftest.$ac_ext
28477 LIBS=$ac_check_lib_save_LIBS
28478 fi
28479 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28480 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28481 if test $ac_cv_lib_krb5_main = yes; then
28482   have_krb5=yes
28483                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28484 else
28485   have_krb5=no
28486 fi
28487
28488
28489
28490 cat >>confdefs.h <<\_ACEOF
28491 #define HAVE_HEIMDAL_KERBEROS 1
28492 _ACEOF
28493
28494
28495                 else
28496                         have_krb5=no
28497                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28498 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28499                 fi
28500
28501                 if test $have_krb5 = yes ; then
28502                         ol_link_krb5=yes
28503
28504
28505 cat >>confdefs.h <<\_ACEOF
28506 #define HAVE_KRB5 1
28507 _ACEOF
28508
28509
28510                         if test $ol_with_kerberos = k5only ; then
28511                                 ol_with_kerberos=found
28512                         fi
28513
28514                 elif test $ol_with_kerberos != auto ; then
28515                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28516 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28517    { (exit 1); exit 1; }; }
28518                 fi
28519
28520         fi
28521 fi
28522
28523 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28524         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28525
28526
28527
28528 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28529 do
28530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28532   echo "$as_me:$LINENO: checking for $ac_header" >&5
28533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28535   echo $ECHO_N "(cached) $ECHO_C" >&6
28536 fi
28537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28539 else
28540   # Is the header compilable?
28541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28543 cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h.  */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h.  */
28549 $ac_includes_default
28550 #include <$ac_header>
28551 _ACEOF
28552 rm -f conftest.$ac_objext
28553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28554   (eval $ac_compile) 2>conftest.er1
28555   ac_status=$?
28556   grep -v '^ *+' conftest.er1 >conftest.err
28557   rm -f conftest.er1
28558   cat conftest.err >&5
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); } &&
28561          { ac_try='test -z "$ac_c_werror_flag"
28562                          || test ! -s conftest.err'
28563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564   (eval $ac_try) 2>&5
28565   ac_status=$?
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); }; } &&
28568          { ac_try='test -s conftest.$ac_objext'
28569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570   (eval $ac_try) 2>&5
28571   ac_status=$?
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); }; }; then
28574   ac_header_compiler=yes
28575 else
28576   echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28578
28579 ac_header_compiler=no
28580 fi
28581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28583 echo "${ECHO_T}$ac_header_compiler" >&6
28584
28585 # Is the header present?
28586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28588 cat >conftest.$ac_ext <<_ACEOF
28589 /* confdefs.h.  */
28590 _ACEOF
28591 cat confdefs.h >>conftest.$ac_ext
28592 cat >>conftest.$ac_ext <<_ACEOF
28593 /* end confdefs.h.  */
28594 #include <$ac_header>
28595 _ACEOF
28596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28598   ac_status=$?
28599   grep -v '^ *+' conftest.er1 >conftest.err
28600   rm -f conftest.er1
28601   cat conftest.err >&5
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); } >/dev/null; then
28604   if test -s conftest.err; then
28605     ac_cpp_err=$ac_c_preproc_warn_flag
28606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28607   else
28608     ac_cpp_err=
28609   fi
28610 else
28611   ac_cpp_err=yes
28612 fi
28613 if test -z "$ac_cpp_err"; then
28614   ac_header_preproc=yes
28615 else
28616   echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28618
28619   ac_header_preproc=no
28620 fi
28621 rm -f conftest.err conftest.$ac_ext
28622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28623 echo "${ECHO_T}$ac_header_preproc" >&6
28624
28625 # So?  What about this header?
28626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28627   yes:no: )
28628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28632     ac_header_preproc=yes
28633     ;;
28634   no:yes:* )
28635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28647     (
28648       cat <<\_ASBOX
28649 ## ------------------------------------------ ##
28650 ## Report this to the AC_PACKAGE_NAME lists.  ##
28651 ## ------------------------------------------ ##
28652 _ASBOX
28653     ) |
28654       sed "s/^/$as_me: WARNING:     /" >&2
28655     ;;
28656 esac
28657 echo "$as_me:$LINENO: checking for $ac_header" >&5
28658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28660   echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662   eval "$as_ac_Header=\$ac_header_preproc"
28663 fi
28664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28666
28667 fi
28668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28669   cat >>confdefs.h <<_ACEOF
28670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28671 _ACEOF
28672
28673 fi
28674
28675 done
28676
28677
28678         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28679                 if test $krb5_impl = mit; then
28680                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28681 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28682 if test "${ac_cv_lib_krb4_main+set}" = set; then
28683   echo $ECHO_N "(cached) $ECHO_C" >&6
28684 else
28685   ac_check_lib_save_LIBS=$LIBS
28686 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28687 cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693
28694
28695 int
28696 main ()
28697 {
28698 main ();
28699   ;
28700   return 0;
28701 }
28702 _ACEOF
28703 rm -f conftest.$ac_objext conftest$ac_exeext
28704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28705   (eval $ac_link) 2>conftest.er1
28706   ac_status=$?
28707   grep -v '^ *+' conftest.er1 >conftest.err
28708   rm -f conftest.er1
28709   cat conftest.err >&5
28710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711   (exit $ac_status); } &&
28712          { ac_try='test -z "$ac_c_werror_flag"
28713                          || test ! -s conftest.err'
28714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715   (eval $ac_try) 2>&5
28716   ac_status=$?
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); }; } &&
28719          { ac_try='test -s conftest$ac_exeext'
28720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721   (eval $ac_try) 2>&5
28722   ac_status=$?
28723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724   (exit $ac_status); }; }; then
28725   ac_cv_lib_krb4_main=yes
28726 else
28727   echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28729
28730 ac_cv_lib_krb4_main=no
28731 fi
28732 rm -f conftest.err conftest.$ac_objext \
28733       conftest$ac_exeext conftest.$ac_ext
28734 LIBS=$ac_check_lib_save_LIBS
28735 fi
28736 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28737 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28738 if test $ac_cv_lib_krb4_main = yes; then
28739   have_k425=yes
28740                                 KRB4_LIBS="-lkrb4 -ldes425"
28741 else
28742   have_k425=no
28743 fi
28744
28745
28746                 elif test $krb5_impl = heimdal; then
28747                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28748 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28749 if test "${ac_cv_lib_krb4_main+set}" = set; then
28750   echo $ECHO_N "(cached) $ECHO_C" >&6
28751 else
28752   ac_check_lib_save_LIBS=$LIBS
28753 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28754 cat >conftest.$ac_ext <<_ACEOF
28755 /* confdefs.h.  */
28756 _ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h.  */
28760
28761
28762 int
28763 main ()
28764 {
28765 main ();
28766   ;
28767   return 0;
28768 }
28769 _ACEOF
28770 rm -f conftest.$ac_objext conftest$ac_exeext
28771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28772   (eval $ac_link) 2>conftest.er1
28773   ac_status=$?
28774   grep -v '^ *+' conftest.er1 >conftest.err
28775   rm -f conftest.er1
28776   cat conftest.err >&5
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); } &&
28779          { ac_try='test -z "$ac_c_werror_flag"
28780                          || test ! -s conftest.err'
28781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28782   (eval $ac_try) 2>&5
28783   ac_status=$?
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); }; } &&
28786          { ac_try='test -s conftest$ac_exeext'
28787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28788   (eval $ac_try) 2>&5
28789   ac_status=$?
28790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); }; }; then
28792   ac_cv_lib_krb4_main=yes
28793 else
28794   echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28796
28797 ac_cv_lib_krb4_main=no
28798 fi
28799 rm -f conftest.err conftest.$ac_objext \
28800       conftest$ac_exeext conftest.$ac_ext
28801 LIBS=$ac_check_lib_save_LIBS
28802 fi
28803 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28804 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28805 if test $ac_cv_lib_krb4_main = yes; then
28806   have_k425=yes
28807                                 KRB4_LIBS="-lkrb4"
28808 else
28809   have_k425=no
28810 fi
28811
28812
28813                 else
28814                         have_425=no
28815                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28816 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28817                 fi
28818
28819                 if test $have_k425 = yes ; then
28820                         ol_with_kerberos=found
28821                         ol_link_krb4=yes
28822
28823
28824 cat >>confdefs.h <<\_ACEOF
28825 #define HAVE_KRB425 1
28826 _ACEOF
28827
28828
28829 cat >>confdefs.h <<\_ACEOF
28830 #define HAVE_KRB4 1
28831 _ACEOF
28832
28833
28834                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28835 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28836 if test "${ol_cv_var_des_debug+set}" = set; then
28837   echo $ECHO_N "(cached) $ECHO_C" >&6
28838 else
28839
28840                                                                 save_LIBS="$LIBS"
28841                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28842                                 cat >conftest.$ac_ext <<_ACEOF
28843 /* confdefs.h.  */
28844 _ACEOF
28845 cat confdefs.h >>conftest.$ac_ext
28846 cat >>conftest.$ac_ext <<_ACEOF
28847 /* end confdefs.h.  */
28848
28849 #include <kerberosIV/krb.h>
28850 #include <kerberosIV/des.h>
28851 extern int des_debug;
28852
28853 int
28854 main ()
28855 {
28856
28857 des_debug = 1;
28858
28859   ;
28860   return 0;
28861 }
28862 _ACEOF
28863 rm -f conftest.$ac_objext conftest$ac_exeext
28864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28865   (eval $ac_link) 2>conftest.er1
28866   ac_status=$?
28867   grep -v '^ *+' conftest.er1 >conftest.err
28868   rm -f conftest.er1
28869   cat conftest.err >&5
28870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871   (exit $ac_status); } &&
28872          { ac_try='test -z "$ac_c_werror_flag"
28873                          || test ! -s conftest.err'
28874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875   (eval $ac_try) 2>&5
28876   ac_status=$?
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); }; } &&
28879          { ac_try='test -s conftest$ac_exeext'
28880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881   (eval $ac_try) 2>&5
28882   ac_status=$?
28883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884   (exit $ac_status); }; }; then
28885   ol_cv_var_des_debug=yes
28886 else
28887   echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28889
28890 ol_cv_var_des_debug=no
28891 fi
28892 rm -f conftest.err conftest.$ac_objext \
28893       conftest$ac_exeext conftest.$ac_ext
28894                                                                 LIBS="$save_LIBS"
28895
28896 fi
28897 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28898 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28899
28900                         if test $ol_cv_var_des_debug = yes ; then
28901
28902 cat >>confdefs.h <<\_ACEOF
28903 #define HAVE_DES_DEBUG 1
28904 _ACEOF
28905
28906                         fi
28907
28908                         LIBS="$save_LIBS"
28909                 fi
28910         fi
28911 fi
28912
28913 if test $ol_link_krb5 = yes ; then
28914         ol_with_kerberos=found
28915 fi
28916
28917 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28918         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28919
28920
28921
28922
28923 for ac_header in krb.h des.h krb-archaeology.h
28924 do
28925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28927   echo "$as_me:$LINENO: checking for $ac_header" >&5
28928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28930   echo $ECHO_N "(cached) $ECHO_C" >&6
28931 fi
28932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28934 else
28935   # Is the header compilable?
28936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28938 cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944 $ac_includes_default
28945 #include <$ac_header>
28946 _ACEOF
28947 rm -f conftest.$ac_objext
28948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28949   (eval $ac_compile) 2>conftest.er1
28950   ac_status=$?
28951   grep -v '^ *+' conftest.er1 >conftest.err
28952   rm -f conftest.er1
28953   cat conftest.err >&5
28954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955   (exit $ac_status); } &&
28956          { ac_try='test -z "$ac_c_werror_flag"
28957                          || test ! -s conftest.err'
28958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959   (eval $ac_try) 2>&5
28960   ac_status=$?
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); }; } &&
28963          { ac_try='test -s conftest.$ac_objext'
28964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965   (eval $ac_try) 2>&5
28966   ac_status=$?
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); }; }; then
28969   ac_header_compiler=yes
28970 else
28971   echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28973
28974 ac_header_compiler=no
28975 fi
28976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28978 echo "${ECHO_T}$ac_header_compiler" >&6
28979
28980 # Is the header present?
28981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28983 cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989 #include <$ac_header>
28990 _ACEOF
28991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28993   ac_status=$?
28994   grep -v '^ *+' conftest.er1 >conftest.err
28995   rm -f conftest.er1
28996   cat conftest.err >&5
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); } >/dev/null; then
28999   if test -s conftest.err; then
29000     ac_cpp_err=$ac_c_preproc_warn_flag
29001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29002   else
29003     ac_cpp_err=
29004   fi
29005 else
29006   ac_cpp_err=yes
29007 fi
29008 if test -z "$ac_cpp_err"; then
29009   ac_header_preproc=yes
29010 else
29011   echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29013
29014   ac_header_preproc=no
29015 fi
29016 rm -f conftest.err conftest.$ac_ext
29017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29018 echo "${ECHO_T}$ac_header_preproc" >&6
29019
29020 # So?  What about this header?
29021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29022   yes:no: )
29023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29027     ac_header_preproc=yes
29028     ;;
29029   no:yes:* )
29030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29042     (
29043       cat <<\_ASBOX
29044 ## ------------------------------------------ ##
29045 ## Report this to the AC_PACKAGE_NAME lists.  ##
29046 ## ------------------------------------------ ##
29047 _ASBOX
29048     ) |
29049       sed "s/^/$as_me: WARNING:     /" >&2
29050     ;;
29051 esac
29052 echo "$as_me:$LINENO: checking for $ac_header" >&5
29053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29055   echo $ECHO_N "(cached) $ECHO_C" >&6
29056 else
29057   eval "$as_ac_Header=\$ac_header_preproc"
29058 fi
29059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29061
29062 fi
29063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29064   cat >>confdefs.h <<_ACEOF
29065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29066 _ACEOF
29067
29068 fi
29069
29070 done
29071
29072
29073         if test $ac_cv_header_krb_h = yes ; then
29074                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29075 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29076 if test "${ac_cv_lib_krb_main+set}" = set; then
29077   echo $ECHO_N "(cached) $ECHO_C" >&6
29078 else
29079   ac_check_lib_save_LIBS=$LIBS
29080 LIBS="-lkrb -ldes $LIBS"
29081 cat >conftest.$ac_ext <<_ACEOF
29082 /* confdefs.h.  */
29083 _ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h.  */
29087
29088
29089 int
29090 main ()
29091 {
29092 main ();
29093   ;
29094   return 0;
29095 }
29096 _ACEOF
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29099   (eval $ac_link) 2>conftest.er1
29100   ac_status=$?
29101   grep -v '^ *+' conftest.er1 >conftest.err
29102   rm -f conftest.er1
29103   cat conftest.err >&5
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); } &&
29106          { ac_try='test -z "$ac_c_werror_flag"
29107                          || test ! -s conftest.err'
29108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109   (eval $ac_try) 2>&5
29110   ac_status=$?
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); }; } &&
29113          { ac_try='test -s conftest$ac_exeext'
29114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115   (eval $ac_try) 2>&5
29116   ac_status=$?
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); }; }; then
29119   ac_cv_lib_krb_main=yes
29120 else
29121   echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29123
29124 ac_cv_lib_krb_main=no
29125 fi
29126 rm -f conftest.err conftest.$ac_objext \
29127       conftest$ac_exeext conftest.$ac_ext
29128 LIBS=$ac_check_lib_save_LIBS
29129 fi
29130 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29131 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29132 if test $ac_cv_lib_krb_main = yes; then
29133   have_k4=yes
29134 else
29135   have_k4=no
29136 fi
29137
29138
29139                 if test $have_k4 = yes ; then
29140                         ol_with_kerberos=found
29141                         ol_link_krb4=yes
29142
29143
29144 cat >>confdefs.h <<\_ACEOF
29145 #define HAVE_KRB4 1
29146 _ACEOF
29147
29148
29149                         KRB4_LIBS="-lkrb -ldes"
29150
29151                         if test $ac_cv_header_krb_archaeology_h = yes ; then
29152
29153 cat >>confdefs.h <<\_ACEOF
29154 #define HAVE_KTH_KERBEROS 1
29155 _ACEOF
29156
29157                         fi
29158                 fi
29159         fi
29160 fi
29161
29162 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29163         ol_link_kbind=yes
29164
29165 elif test $ol_enable_kbind = yes ; then
29166         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29167 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29168    { (exit 1); exit 1; }; }
29169 fi
29170
29171 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29172
29173 cat >>confdefs.h <<\_ACEOF
29174 #define HAVE_KERBEROS 1
29175 _ACEOF
29176
29177
29178 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29179         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29180 echo "$as_me: error: Kerberos detection failed" >&2;}
29181    { (exit 1); exit 1; }; }
29182 fi
29183
29184
29185 ol_link_tls=no
29186 if test $ol_with_tls != no ; then
29187
29188
29189 for ac_header in openssl/ssl.h ssl.h
29190 do
29191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29193   echo "$as_me:$LINENO: checking for $ac_header" >&5
29194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29196   echo $ECHO_N "(cached) $ECHO_C" >&6
29197 fi
29198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29200 else
29201   # Is the header compilable?
29202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29204 cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210 $ac_includes_default
29211 #include <$ac_header>
29212 _ACEOF
29213 rm -f conftest.$ac_objext
29214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29215   (eval $ac_compile) 2>conftest.er1
29216   ac_status=$?
29217   grep -v '^ *+' conftest.er1 >conftest.err
29218   rm -f conftest.er1
29219   cat conftest.err >&5
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); } &&
29222          { ac_try='test -z "$ac_c_werror_flag"
29223                          || test ! -s conftest.err'
29224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225   (eval $ac_try) 2>&5
29226   ac_status=$?
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); }; } &&
29229          { ac_try='test -s conftest.$ac_objext'
29230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231   (eval $ac_try) 2>&5
29232   ac_status=$?
29233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); }; }; then
29235   ac_header_compiler=yes
29236 else
29237   echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29239
29240 ac_header_compiler=no
29241 fi
29242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29244 echo "${ECHO_T}$ac_header_compiler" >&6
29245
29246 # Is the header present?
29247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29249 cat >conftest.$ac_ext <<_ACEOF
29250 /* confdefs.h.  */
29251 _ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h.  */
29255 #include <$ac_header>
29256 _ACEOF
29257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29259   ac_status=$?
29260   grep -v '^ *+' conftest.er1 >conftest.err
29261   rm -f conftest.er1
29262   cat conftest.err >&5
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); } >/dev/null; then
29265   if test -s conftest.err; then
29266     ac_cpp_err=$ac_c_preproc_warn_flag
29267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29268   else
29269     ac_cpp_err=
29270   fi
29271 else
29272   ac_cpp_err=yes
29273 fi
29274 if test -z "$ac_cpp_err"; then
29275   ac_header_preproc=yes
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280   ac_header_preproc=no
29281 fi
29282 rm -f conftest.err conftest.$ac_ext
29283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29284 echo "${ECHO_T}$ac_header_preproc" >&6
29285
29286 # So?  What about this header?
29287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29288   yes:no: )
29289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29293     ac_header_preproc=yes
29294     ;;
29295   no:yes:* )
29296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29298     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29299 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29300     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29302     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29303 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29306     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29308     (
29309       cat <<\_ASBOX
29310 ## ------------------------------------------ ##
29311 ## Report this to the AC_PACKAGE_NAME lists.  ##
29312 ## ------------------------------------------ ##
29313 _ASBOX
29314     ) |
29315       sed "s/^/$as_me: WARNING:     /" >&2
29316     ;;
29317 esac
29318 echo "$as_me:$LINENO: checking for $ac_header" >&5
29319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29321   echo $ECHO_N "(cached) $ECHO_C" >&6
29322 else
29323   eval "$as_ac_Header=\$ac_header_preproc"
29324 fi
29325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29327
29328 fi
29329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29330   cat >>confdefs.h <<_ACEOF
29331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29332 _ACEOF
29333
29334 fi
29335
29336 done
29337
29338
29339         if test $ac_cv_header_openssl_ssl_h = yes \
29340                 -o $ac_cv_header_ssl_h = yes ; then
29341                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29342 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29343 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29344   echo $ECHO_N "(cached) $ECHO_C" >&6
29345 else
29346   ac_check_lib_save_LIBS=$LIBS
29347 LIBS="-lssl -lcrypto $LIBS"
29348 cat >conftest.$ac_ext <<_ACEOF
29349 /* confdefs.h.  */
29350 _ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h.  */
29354
29355 /* Override any gcc2 internal prototype to avoid an error.  */
29356 #ifdef __cplusplus
29357 extern "C"
29358 #endif
29359 /* We use char because int might match the return type of a gcc2
29360    builtin and then its argument prototype would still apply.  */
29361 char SSLeay_add_ssl_algorithms ();
29362 int
29363 main ()
29364 {
29365 SSLeay_add_ssl_algorithms ();
29366   ;
29367   return 0;
29368 }
29369 _ACEOF
29370 rm -f conftest.$ac_objext conftest$ac_exeext
29371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29372   (eval $ac_link) 2>conftest.er1
29373   ac_status=$?
29374   grep -v '^ *+' conftest.er1 >conftest.err
29375   rm -f conftest.er1
29376   cat conftest.err >&5
29377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378   (exit $ac_status); } &&
29379          { ac_try='test -z "$ac_c_werror_flag"
29380                          || test ! -s conftest.err'
29381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382   (eval $ac_try) 2>&5
29383   ac_status=$?
29384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385   (exit $ac_status); }; } &&
29386          { ac_try='test -s conftest$ac_exeext'
29387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388   (eval $ac_try) 2>&5
29389   ac_status=$?
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); }; }; then
29392   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29393 else
29394   echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29396
29397 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29398 fi
29399 rm -f conftest.err conftest.$ac_objext \
29400       conftest$ac_exeext conftest.$ac_ext
29401 LIBS=$ac_check_lib_save_LIBS
29402 fi
29403 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29404 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29405 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29406   have_ssleay=yes
29407                         need_rsaref=no
29408 else
29409   have_ssleay=no
29410 fi
29411
29412
29413                 if test $have_ssleay = no ; then
29414                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29415 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29416 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29417   echo $ECHO_N "(cached) $ECHO_C" >&6
29418 else
29419   ac_check_lib_save_LIBS=$LIBS
29420 LIBS="-lssl -lcrypto $LIBS"
29421 cat >conftest.$ac_ext <<_ACEOF
29422 /* confdefs.h.  */
29423 _ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h.  */
29427
29428 /* Override any gcc2 internal prototype to avoid an error.  */
29429 #ifdef __cplusplus
29430 extern "C"
29431 #endif
29432 /* We use char because int might match the return type of a gcc2
29433    builtin and then its argument prototype would still apply.  */
29434 char SSL_library_init ();
29435 int
29436 main ()
29437 {
29438 SSL_library_init ();
29439   ;
29440   return 0;
29441 }
29442 _ACEOF
29443 rm -f conftest.$ac_objext conftest$ac_exeext
29444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29445   (eval $ac_link) 2>conftest.er1
29446   ac_status=$?
29447   grep -v '^ *+' conftest.er1 >conftest.err
29448   rm -f conftest.er1
29449   cat conftest.err >&5
29450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451   (exit $ac_status); } &&
29452          { ac_try='test -z "$ac_c_werror_flag"
29453                          || test ! -s conftest.err'
29454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455   (eval $ac_try) 2>&5
29456   ac_status=$?
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); }; } &&
29459          { ac_try='test -s conftest$ac_exeext'
29460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461   (eval $ac_try) 2>&5
29462   ac_status=$?
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); }; }; then
29465   ac_cv_lib_ssl_SSL_library_init=yes
29466 else
29467   echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29469
29470 ac_cv_lib_ssl_SSL_library_init=no
29471 fi
29472 rm -f conftest.err conftest.$ac_objext \
29473       conftest$ac_exeext conftest.$ac_ext
29474 LIBS=$ac_check_lib_save_LIBS
29475 fi
29476 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29477 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29478 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29479   have_ssleay=yes
29480                                 need_rsaref=no
29481 else
29482   have_ssleay=no
29483 fi
29484
29485                 fi
29486
29487                 if test $have_ssleay = no ; then
29488                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29489 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29490 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29491   echo $ECHO_N "(cached) $ECHO_C" >&6
29492 else
29493   ac_check_lib_save_LIBS=$LIBS
29494 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29495 cat >conftest.$ac_ext <<_ACEOF
29496 /* confdefs.h.  */
29497 _ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h.  */
29501
29502 /* Override any gcc2 internal prototype to avoid an error.  */
29503 #ifdef __cplusplus
29504 extern "C"
29505 #endif
29506 /* We use char because int might match the return type of a gcc2
29507    builtin and then its argument prototype would still apply.  */
29508 char ssl3_accept ();
29509 int
29510 main ()
29511 {
29512 ssl3_accept ();
29513   ;
29514   return 0;
29515 }
29516 _ACEOF
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29519   (eval $ac_link) 2>conftest.er1
29520   ac_status=$?
29521   grep -v '^ *+' conftest.er1 >conftest.err
29522   rm -f conftest.er1
29523   cat conftest.err >&5
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); } &&
29526          { ac_try='test -z "$ac_c_werror_flag"
29527                          || test ! -s conftest.err'
29528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529   (eval $ac_try) 2>&5
29530   ac_status=$?
29531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532   (exit $ac_status); }; } &&
29533          { ac_try='test -s conftest$ac_exeext'
29534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535   (eval $ac_try) 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; }; then
29539   ac_cv_lib_ssl_ssl3_accept=yes
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544 ac_cv_lib_ssl_ssl3_accept=no
29545 fi
29546 rm -f conftest.err conftest.$ac_objext \
29547       conftest$ac_exeext conftest.$ac_ext
29548 LIBS=$ac_check_lib_save_LIBS
29549 fi
29550 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29551 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29552 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29553   have_ssleay=yes
29554                                 need_rsaref=yes
29555 else
29556   have_ssleay=no
29557 fi
29558
29559                 fi
29560
29561                 if test $have_ssleay = yes ; then
29562                         ol_with_tls=found
29563                         ol_link_tls=yes
29564
29565
29566 cat >>confdefs.h <<\_ACEOF
29567 #define HAVE_SSLEAY 1
29568 _ACEOF
29569
29570
29571                         if test $need_rsaref = yes; then
29572
29573 cat >>confdefs.h <<\_ACEOF
29574 #define HAVE_RSAREF 1
29575 _ACEOF
29576
29577
29578                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29579                         else
29580                                 TLS_LIBS="-lssl -lcrypto"
29581                         fi
29582                 fi
29583                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29584 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29585 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29586   echo $ECHO_N "(cached) $ECHO_C" >&6
29587 else
29588
29589         cat >conftest.$ac_ext <<_ACEOF
29590 /* confdefs.h.  */
29591 _ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h.  */
29595
29596 #ifdef HAVE_OPENSSL_SSL_H
29597 #include <openssl/ssl.h>
29598 #else
29599 #include <ssl.h>
29600 #endif
29601
29602 /* Require 0.9.7d+ */
29603 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29604         char *__ssl_compat = "0.9.7d";
29605 #endif
29606
29607 _ACEOF
29608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29609   $EGREP "__ssl_compat" >/dev/null 2>&1; then
29610   ol_cv_ssl_crl_compat=yes
29611 else
29612   ol_cv_ssl_crl_compat=no
29613 fi
29614 rm -f conftest*
29615
29616 fi
29617 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29618 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29619
29620                 if test $ol_cv_ssl_crl_compat = no ; then
29621                         ol_link_ssl=no
29622                 else
29623
29624 cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_OPENSSL_CRL 1
29626 _ACEOF
29627
29628                 fi
29629         fi
29630
29631 else
29632         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29633 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29634 fi
29635
29636 WITH_TLS=no
29637 if test $ol_link_tls = yes ; then
29638
29639 cat >>confdefs.h <<\_ACEOF
29640 #define HAVE_TLS 1
29641 _ACEOF
29642
29643         WITH_TLS=yes
29644
29645 elif test $ol_with_tls = auto ; then
29646         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29647 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29648         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29649 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29650
29651 elif test $ol_with_tls != no ; then
29652         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29653 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29654    { (exit 1); exit 1; }; }
29655 fi
29656
29657 if test $ol_enable_lmpasswd != no; then
29658         if test $ol_link_tls != yes ; then
29659                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29660 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29661    { (exit 1); exit 1; }; }
29662         fi
29663
29664
29665 cat >>confdefs.h <<\_ACEOF
29666 #define SLAPD_LMHASH 1
29667 _ACEOF
29668
29669 fi
29670
29671 ol_link_threads=no
29672
29673 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29674         -o $ol_with_threads = nt ; then
29675
29676
29677         echo "$as_me:$LINENO: checking for _beginthread" >&5
29678 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29679 if test "${ac_cv_func__beginthread+set}" = set; then
29680   echo $ECHO_N "(cached) $ECHO_C" >&6
29681 else
29682   cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29690 #define _beginthread innocuous__beginthread
29691
29692 /* System header to define __stub macros and hopefully few prototypes,
29693     which can conflict with char _beginthread (); below.
29694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29695     <limits.h> exists even on freestanding compilers.  */
29696
29697 #ifdef __STDC__
29698 # include <limits.h>
29699 #else
29700 # include <assert.h>
29701 #endif
29702
29703 #undef _beginthread
29704
29705 /* Override any gcc2 internal prototype to avoid an error.  */
29706 #ifdef __cplusplus
29707 extern "C"
29708 {
29709 #endif
29710 /* We use char because int might match the return type of a gcc2
29711    builtin and then its argument prototype would still apply.  */
29712 char _beginthread ();
29713 /* The GNU C library defines this for functions which it implements
29714     to always fail with ENOSYS.  Some functions are actually named
29715     something starting with __ and the normal name is an alias.  */
29716 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29717 choke me
29718 #else
29719 char (*f) () = _beginthread;
29720 #endif
29721 #ifdef __cplusplus
29722 }
29723 #endif
29724
29725 int
29726 main ()
29727 {
29728 return f != _beginthread;
29729   ;
29730   return 0;
29731 }
29732 _ACEOF
29733 rm -f conftest.$ac_objext conftest$ac_exeext
29734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29735   (eval $ac_link) 2>conftest.er1
29736   ac_status=$?
29737   grep -v '^ *+' conftest.er1 >conftest.err
29738   rm -f conftest.er1
29739   cat conftest.err >&5
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } &&
29742          { ac_try='test -z "$ac_c_werror_flag"
29743                          || test ! -s conftest.err'
29744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29745   (eval $ac_try) 2>&5
29746   ac_status=$?
29747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748   (exit $ac_status); }; } &&
29749          { ac_try='test -s conftest$ac_exeext'
29750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29751   (eval $ac_try) 2>&5
29752   ac_status=$?
29753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754   (exit $ac_status); }; }; then
29755   ac_cv_func__beginthread=yes
29756 else
29757   echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29759
29760 ac_cv_func__beginthread=no
29761 fi
29762 rm -f conftest.err conftest.$ac_objext \
29763       conftest$ac_exeext conftest.$ac_ext
29764 fi
29765 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29766 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29767
29768
29769         if test $ac_cv_func__beginthread = yes ; then
29770
29771 cat >>confdefs.h <<\_ACEOF
29772 #define HAVE_NT_THREADS 1
29773 _ACEOF
29774
29775                 ol_cv_nt_threads=yes
29776         fi
29777
29778
29779         if test "$ol_cv_nt_threads" = yes ; then
29780                 ol_link_threads=nt
29781                 ol_with_threads=found
29782                 ol_with_yielding_select=yes
29783
29784
29785 cat >>confdefs.h <<\_ACEOF
29786 #define HAVE_NT_SERVICE_MANAGER 1
29787 _ACEOF
29788
29789
29790 cat >>confdefs.h <<\_ACEOF
29791 #define HAVE_NT_EVENT_LOG 1
29792 _ACEOF
29793
29794         fi
29795
29796         if test $ol_with_threads = nt ; then
29797                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29798 echo "$as_me: error: could not locate NT Threads" >&2;}
29799    { (exit 1); exit 1; }; }
29800         fi
29801 fi
29802
29803 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29804         -o $ol_with_threads = posix ; then
29805
29806
29807 for ac_header in pthread.h
29808 do
29809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29811   echo "$as_me:$LINENO: checking for $ac_header" >&5
29812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29814   echo $ECHO_N "(cached) $ECHO_C" >&6
29815 fi
29816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29818 else
29819   # Is the header compilable?
29820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29822 cat >conftest.$ac_ext <<_ACEOF
29823 /* confdefs.h.  */
29824 _ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h.  */
29828 $ac_includes_default
29829 #include <$ac_header>
29830 _ACEOF
29831 rm -f conftest.$ac_objext
29832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29833   (eval $ac_compile) 2>conftest.er1
29834   ac_status=$?
29835   grep -v '^ *+' conftest.er1 >conftest.err
29836   rm -f conftest.er1
29837   cat conftest.err >&5
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); } &&
29840          { ac_try='test -z "$ac_c_werror_flag"
29841                          || test ! -s conftest.err'
29842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843   (eval $ac_try) 2>&5
29844   ac_status=$?
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); }; } &&
29847          { ac_try='test -s conftest.$ac_objext'
29848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29849   (eval $ac_try) 2>&5
29850   ac_status=$?
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); }; }; then
29853   ac_header_compiler=yes
29854 else
29855   echo "$as_me: failed program was:" >&5
29856 sed 's/^/| /' conftest.$ac_ext >&5
29857
29858 ac_header_compiler=no
29859 fi
29860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29862 echo "${ECHO_T}$ac_header_compiler" >&6
29863
29864 # Is the header present?
29865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29867 cat >conftest.$ac_ext <<_ACEOF
29868 /* confdefs.h.  */
29869 _ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h.  */
29873 #include <$ac_header>
29874 _ACEOF
29875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29877   ac_status=$?
29878   grep -v '^ *+' conftest.er1 >conftest.err
29879   rm -f conftest.er1
29880   cat conftest.err >&5
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); } >/dev/null; then
29883   if test -s conftest.err; then
29884     ac_cpp_err=$ac_c_preproc_warn_flag
29885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29886   else
29887     ac_cpp_err=
29888   fi
29889 else
29890   ac_cpp_err=yes
29891 fi
29892 if test -z "$ac_cpp_err"; then
29893   ac_header_preproc=yes
29894 else
29895   echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29897
29898   ac_header_preproc=no
29899 fi
29900 rm -f conftest.err conftest.$ac_ext
29901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29902 echo "${ECHO_T}$ac_header_preproc" >&6
29903
29904 # So?  What about this header?
29905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29906   yes:no: )
29907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29911     ac_header_preproc=yes
29912     ;;
29913   no:yes:* )
29914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29926     (
29927       cat <<\_ASBOX
29928 ## ------------------------------------------ ##
29929 ## Report this to the AC_PACKAGE_NAME lists.  ##
29930 ## ------------------------------------------ ##
29931 _ASBOX
29932     ) |
29933       sed "s/^/$as_me: WARNING:     /" >&2
29934     ;;
29935 esac
29936 echo "$as_me:$LINENO: checking for $ac_header" >&5
29937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29939   echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941   eval "$as_ac_Header=\$ac_header_preproc"
29942 fi
29943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29945
29946 fi
29947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29948   cat >>confdefs.h <<_ACEOF
29949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29950 _ACEOF
29951
29952 fi
29953
29954 done
29955
29956
29957         if test $ac_cv_header_pthread_h = yes ; then
29958                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29959 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29960 if test "${ol_cv_pthread_version+set}" = set; then
29961   echo $ECHO_N "(cached) $ECHO_C" >&6
29962 else
29963
29964         cat >conftest.$ac_ext <<_ACEOF
29965 /* confdefs.h.  */
29966 _ACEOF
29967 cat confdefs.h >>conftest.$ac_ext
29968 cat >>conftest.$ac_ext <<_ACEOF
29969 /* end confdefs.h.  */
29970
29971 #               include <pthread.h>
29972
29973 int
29974 main ()
29975 {
29976
29977                 int i = PTHREAD_CREATE_JOINABLE;
29978
29979   ;
29980   return 0;
29981 }
29982 _ACEOF
29983 rm -f conftest.$ac_objext
29984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29985   (eval $ac_compile) 2>conftest.er1
29986   ac_status=$?
29987   grep -v '^ *+' conftest.er1 >conftest.err
29988   rm -f conftest.er1
29989   cat conftest.err >&5
29990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991   (exit $ac_status); } &&
29992          { ac_try='test -z "$ac_c_werror_flag"
29993                          || test ! -s conftest.err'
29994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29995   (eval $ac_try) 2>&5
29996   ac_status=$?
29997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); }; } &&
29999          { ac_try='test -s conftest.$ac_objext'
30000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30001   (eval $ac_try) 2>&5
30002   ac_status=$?
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); }; }; then
30005
30006         cat >conftest.$ac_ext <<_ACEOF
30007 /* confdefs.h.  */
30008 _ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h.  */
30012 #include <pthread.h>
30013
30014 _ACEOF
30015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30016   $EGREP "pthread_detach" >/dev/null 2>&1; then
30017   ol_cv_pthread_version=10
30018 else
30019   ol_cv_pthread_version=8
30020 fi
30021 rm -f conftest*
30022
30023 else
30024   echo "$as_me: failed program was:" >&5
30025 sed 's/^/| /' conftest.$ac_ext >&5
30026
30027
30028         cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034
30035 #               include <pthread.h>
30036 #               ifdef PTHREAD_CREATE_UNDETACHED
30037                 draft7
30038 #               endif
30039
30040 _ACEOF
30041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30042   $EGREP "draft7" >/dev/null 2>&1; then
30043   ol_cv_pthread_version=7
30044 else
30045
30046         cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h.  */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h.  */
30052 #include <pthread.h>
30053
30054 _ACEOF
30055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30056   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30057   ol_cv_pthread_version=6
30058 else
30059
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
30067 #               include <pthread.h>
30068 #ifdef          PTHREAD_MUTEX_INITIALIZER
30069                 draft5
30070 #endif
30071
30072 _ACEOF
30073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30074   $EGREP "draft5" >/dev/null 2>&1; then
30075   ol_cv_pthread_version=5
30076 else
30077   ol_cv_pthread_version=4
30078 fi
30079 rm -f conftest*
30080
30081 fi
30082 rm -f conftest*
30083
30084 fi
30085 rm -f conftest*
30086
30087 fi
30088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30089
30090 fi
30091 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30092 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30093
30094
30095                 if test $ol_cv_pthread_version != 0 ; then
30096
30097 cat >>confdefs.h <<_ACEOF
30098 #define HAVE_PTHREADS $ol_cv_pthread_version
30099 _ACEOF
30100
30101                 else
30102                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30103 echo "$as_me: error: unknown pthread version" >&2;}
30104    { (exit 1); exit 1; }; }
30105                 fi
30106
30107                 # consider threads found
30108                 ol_with_threads=found
30109
30110
30111         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30112 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30113 if test "${ol_cv_header_linux_threads+set}" = set; then
30114   echo $ECHO_N "(cached) $ECHO_C" >&6
30115 else
30116   cat >conftest.$ac_ext <<_ACEOF
30117 /* confdefs.h.  */
30118 _ACEOF
30119 cat confdefs.h >>conftest.$ac_ext
30120 cat >>conftest.$ac_ext <<_ACEOF
30121 /* end confdefs.h.  */
30122 #include <pthread.h>
30123 _ACEOF
30124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30125   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30126   ol_cv_header_linux_threads=yes
30127 else
30128   ol_cv_header_linux_threads=no
30129 fi
30130 rm -f conftest*
30131
30132
30133 fi
30134 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30135 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30136         if test $ol_cv_header_linux_threads = yes; then
30137
30138 cat >>confdefs.h <<\_ACEOF
30139 #define HAVE_LINUX_THREADS 1
30140 _ACEOF
30141
30142         fi
30143
30144
30145         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30146 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30147 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30148   echo $ECHO_N "(cached) $ECHO_C" >&6
30149 else
30150   cat >conftest.$ac_ext <<_ACEOF
30151 /* confdefs.h.  */
30152 _ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h.  */
30156 #include <pthread.h>
30157 #ifdef _POSIX_THREAD_IS_GNU_PTH
30158         __gnu_pth__;
30159 #endif
30160
30161 _ACEOF
30162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30163   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30164   ol_cv_header_gnu_pth_pthread_h=yes
30165 else
30166   ol_cv_header_gnu_pth_pthread_h=no
30167 fi
30168 rm -f conftest*
30169
30170
30171 fi
30172 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30173 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30174
30175
30176                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30177
30178 for ac_header in sched.h
30179 do
30180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30182   echo "$as_me:$LINENO: checking for $ac_header" >&5
30183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30185   echo $ECHO_N "(cached) $ECHO_C" >&6
30186 fi
30187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30189 else
30190   # Is the header compilable?
30191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30193 cat >conftest.$ac_ext <<_ACEOF
30194 /* confdefs.h.  */
30195 _ACEOF
30196 cat confdefs.h >>conftest.$ac_ext
30197 cat >>conftest.$ac_ext <<_ACEOF
30198 /* end confdefs.h.  */
30199 $ac_includes_default
30200 #include <$ac_header>
30201 _ACEOF
30202 rm -f conftest.$ac_objext
30203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30204   (eval $ac_compile) 2>conftest.er1
30205   ac_status=$?
30206   grep -v '^ *+' conftest.er1 >conftest.err
30207   rm -f conftest.er1
30208   cat conftest.err >&5
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); } &&
30211          { ac_try='test -z "$ac_c_werror_flag"
30212                          || test ! -s conftest.err'
30213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30214   (eval $ac_try) 2>&5
30215   ac_status=$?
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); }; } &&
30218          { ac_try='test -s conftest.$ac_objext'
30219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220   (eval $ac_try) 2>&5
30221   ac_status=$?
30222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223   (exit $ac_status); }; }; then
30224   ac_header_compiler=yes
30225 else
30226   echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30228
30229 ac_header_compiler=no
30230 fi
30231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30233 echo "${ECHO_T}$ac_header_compiler" >&6
30234
30235 # Is the header present?
30236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30238 cat >conftest.$ac_ext <<_ACEOF
30239 /* confdefs.h.  */
30240 _ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h.  */
30244 #include <$ac_header>
30245 _ACEOF
30246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30248   ac_status=$?
30249   grep -v '^ *+' conftest.er1 >conftest.err
30250   rm -f conftest.er1
30251   cat conftest.err >&5
30252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253   (exit $ac_status); } >/dev/null; then
30254   if test -s conftest.err; then
30255     ac_cpp_err=$ac_c_preproc_warn_flag
30256     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30257   else
30258     ac_cpp_err=
30259   fi
30260 else
30261   ac_cpp_err=yes
30262 fi
30263 if test -z "$ac_cpp_err"; then
30264   ac_header_preproc=yes
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269   ac_header_preproc=no
30270 fi
30271 rm -f conftest.err conftest.$ac_ext
30272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6
30274
30275 # So?  What about this header?
30276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30277   yes:no: )
30278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30282     ac_header_preproc=yes
30283     ;;
30284   no:yes:* )
30285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30297     (
30298       cat <<\_ASBOX
30299 ## ------------------------------------------ ##
30300 ## Report this to the AC_PACKAGE_NAME lists.  ##
30301 ## ------------------------------------------ ##
30302 _ASBOX
30303     ) |
30304       sed "s/^/$as_me: WARNING:     /" >&2
30305     ;;
30306 esac
30307 echo "$as_me:$LINENO: checking for $ac_header" >&5
30308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30310   echo $ECHO_N "(cached) $ECHO_C" >&6
30311 else
30312   eval "$as_ac_Header=\$ac_header_preproc"
30313 fi
30314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30316
30317 fi
30318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30319   cat >>confdefs.h <<_ACEOF
30320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30321 _ACEOF
30322
30323 fi
30324
30325 done
30326
30327                 fi
30328
30329
30330                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30331 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30332 if test "${ol_cv_pthread_create+set}" = set; then
30333   echo $ECHO_N "(cached) $ECHO_C" >&6
30334 else
30335
30336                         if test "$cross_compiling" = yes; then
30337   cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h.  */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h.  */
30343
30344 /* pthread test headers */
30345 #include <pthread.h>
30346 #if HAVE_PTHREADS < 7
30347 #include <errno.h>
30348 #endif
30349 #ifndef NULL
30350 #define NULL (void*)0
30351 #endif
30352
30353 static void *task(p)
30354         void *p;
30355 {
30356         return (void *) (p == NULL);
30357 }
30358
30359 int
30360 main ()
30361 {
30362
30363         /* pthread test function */
30364 #ifndef PTHREAD_CREATE_DETACHED
30365 #define PTHREAD_CREATE_DETACHED 1
30366 #endif
30367         pthread_t t;
30368         int status;
30369         int detach = PTHREAD_CREATE_DETACHED;
30370
30371 #if HAVE_PTHREADS > 4
30372         /* Final pthreads */
30373         pthread_attr_t attr;
30374
30375         status = pthread_attr_init(&attr);
30376         if( status ) return status;
30377
30378 #if HAVE_PTHREADS < 7
30379         status = pthread_attr_setdetachstate(&attr, &detach);
30380         if( status < 0 ) status = errno;
30381 #else
30382         status = pthread_attr_setdetachstate(&attr, detach);
30383 #endif
30384         if( status ) return status;
30385         status = pthread_create( &t, &attr, task, NULL );
30386 #if HAVE_PTHREADS < 7
30387         if( status < 0 ) status = errno;
30388 #endif
30389         if( status ) return status;
30390 #else
30391         /* Draft 4 pthreads */
30392         status = pthread_create( &t, pthread_attr_default, task, NULL );
30393         if( status ) return errno;
30394
30395         /* give thread a chance to complete */
30396         /* it should remain joinable and hence detachable */
30397         sleep( 1 );
30398
30399         status = pthread_detach( &t );
30400         if( status ) return errno;
30401 #endif
30402
30403 #ifdef HAVE_LINUX_THREADS
30404         pthread_kill_other_threads_np();
30405 #endif
30406
30407         return 0;
30408
30409   ;
30410   return 0;
30411 }
30412 _ACEOF
30413 rm -f conftest.$ac_objext conftest$ac_exeext
30414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30415   (eval $ac_link) 2>conftest.er1
30416   ac_status=$?
30417   grep -v '^ *+' conftest.er1 >conftest.err
30418   rm -f conftest.er1
30419   cat conftest.err >&5
30420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421   (exit $ac_status); } &&
30422          { ac_try='test -z "$ac_c_werror_flag"
30423                          || test ! -s conftest.err'
30424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30425   (eval $ac_try) 2>&5
30426   ac_status=$?
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); }; } &&
30429          { ac_try='test -s conftest$ac_exeext'
30430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431   (eval $ac_try) 2>&5
30432   ac_status=$?
30433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434   (exit $ac_status); }; }; then
30435   ol_cv_pthread_create=yes
30436 else
30437   echo "$as_me: failed program was:" >&5
30438 sed 's/^/| /' conftest.$ac_ext >&5
30439
30440 ol_cv_pthread_create=no
30441 fi
30442 rm -f conftest.err conftest.$ac_objext \
30443       conftest$ac_exeext conftest.$ac_ext
30444 else
30445   cat >conftest.$ac_ext <<_ACEOF
30446
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
30463 int main(argc, argv)
30464         int argc;
30465         char **argv;
30466 {
30467
30468         /* pthread test function */
30469 #ifndef PTHREAD_CREATE_DETACHED
30470 #define PTHREAD_CREATE_DETACHED 1
30471 #endif
30472         pthread_t t;
30473         int status;
30474         int detach = PTHREAD_CREATE_DETACHED;
30475
30476 #if HAVE_PTHREADS > 4
30477         /* Final pthreads */
30478         pthread_attr_t attr;
30479
30480         status = pthread_attr_init(&attr);
30481         if( status ) return status;
30482
30483 #if HAVE_PTHREADS < 7
30484         status = pthread_attr_setdetachstate(&attr, &detach);
30485         if( status < 0 ) status = errno;
30486 #else
30487         status = pthread_attr_setdetachstate(&attr, detach);
30488 #endif
30489         if( status ) return status;
30490         status = pthread_create( &t, &attr, task, NULL );
30491 #if HAVE_PTHREADS < 7
30492         if( status < 0 ) status = errno;
30493 #endif
30494         if( status ) return status;
30495 #else
30496         /* Draft 4 pthreads */
30497         status = pthread_create( &t, pthread_attr_default, task, NULL );
30498         if( status ) return errno;
30499
30500         /* give thread a chance to complete */
30501         /* it should remain joinable and hence detachable */
30502         sleep( 1 );
30503
30504         status = pthread_detach( &t );
30505         if( status ) return errno;
30506 #endif
30507
30508 #ifdef HAVE_LINUX_THREADS
30509         pthread_kill_other_threads_np();
30510 #endif
30511
30512         return 0;
30513
30514 }
30515
30516 _ACEOF
30517 rm -f conftest$ac_exeext
30518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30519   (eval $ac_link) 2>&5
30520   ac_status=$?
30521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30524   (eval $ac_try) 2>&5
30525   ac_status=$?
30526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527   (exit $ac_status); }; }; then
30528   ol_cv_pthread_create=yes
30529 else
30530   echo "$as_me: program exited with status $ac_status" >&5
30531 echo "$as_me: failed program was:" >&5
30532 sed 's/^/| /' conftest.$ac_ext >&5
30533
30534 ( exit $ac_status )
30535 ol_cv_pthread_create=no
30536 fi
30537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30538 fi
30539 fi
30540 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30541 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30542
30543                 if test $ol_cv_pthread_create != no ; then
30544                         ol_link_threads=posix
30545                         ol_link_pthreads=""
30546                 fi
30547
30548                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30549 if test "$ol_link_threads" = no ; then
30550         # try -kthread
30551         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30552 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30553 if test "${ol_cv_pthread_kthread+set}" = set; then
30554   echo $ECHO_N "(cached) $ECHO_C" >&6
30555 else
30556
30557                 # save the flags
30558                 ol_LIBS="$LIBS"
30559                 LIBS="-kthread $LIBS"
30560
30561                 if test "$cross_compiling" = yes; then
30562   cat >conftest.$ac_ext <<_ACEOF
30563 /* confdefs.h.  */
30564 _ACEOF
30565 cat confdefs.h >>conftest.$ac_ext
30566 cat >>conftest.$ac_ext <<_ACEOF
30567 /* end confdefs.h.  */
30568
30569 /* pthread test headers */
30570 #include <pthread.h>
30571 #if HAVE_PTHREADS < 7
30572 #include <errno.h>
30573 #endif
30574 #ifndef NULL
30575 #define NULL (void*)0
30576 #endif
30577
30578 static void *task(p)
30579         void *p;
30580 {
30581         return (void *) (p == NULL);
30582 }
30583
30584 int
30585 main ()
30586 {
30587
30588         /* pthread test function */
30589 #ifndef PTHREAD_CREATE_DETACHED
30590 #define PTHREAD_CREATE_DETACHED 1
30591 #endif
30592         pthread_t t;
30593         int status;
30594         int detach = PTHREAD_CREATE_DETACHED;
30595
30596 #if HAVE_PTHREADS > 4
30597         /* Final pthreads */
30598         pthread_attr_t attr;
30599
30600         status = pthread_attr_init(&attr);
30601         if( status ) return status;
30602
30603 #if HAVE_PTHREADS < 7
30604         status = pthread_attr_setdetachstate(&attr, &detach);
30605         if( status < 0 ) status = errno;
30606 #else
30607         status = pthread_attr_setdetachstate(&attr, detach);
30608 #endif
30609         if( status ) return status;
30610         status = pthread_create( &t, &attr, task, NULL );
30611 #if HAVE_PTHREADS < 7
30612         if( status < 0 ) status = errno;
30613 #endif
30614         if( status ) return status;
30615 #else
30616         /* Draft 4 pthreads */
30617         status = pthread_create( &t, pthread_attr_default, task, NULL );
30618         if( status ) return errno;
30619
30620         /* give thread a chance to complete */
30621         /* it should remain joinable and hence detachable */
30622         sleep( 1 );
30623
30624         status = pthread_detach( &t );
30625         if( status ) return errno;
30626 #endif
30627
30628 #ifdef HAVE_LINUX_THREADS
30629         pthread_kill_other_threads_np();
30630 #endif
30631
30632         return 0;
30633
30634   ;
30635   return 0;
30636 }
30637 _ACEOF
30638 rm -f conftest.$ac_objext conftest$ac_exeext
30639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30640   (eval $ac_link) 2>conftest.er1
30641   ac_status=$?
30642   grep -v '^ *+' conftest.er1 >conftest.err
30643   rm -f conftest.er1
30644   cat conftest.err >&5
30645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646   (exit $ac_status); } &&
30647          { ac_try='test -z "$ac_c_werror_flag"
30648                          || test ! -s conftest.err'
30649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650   (eval $ac_try) 2>&5
30651   ac_status=$?
30652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653   (exit $ac_status); }; } &&
30654          { ac_try='test -s conftest$ac_exeext'
30655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656   (eval $ac_try) 2>&5
30657   ac_status=$?
30658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659   (exit $ac_status); }; }; then
30660   ol_cv_pthread_kthread=yes
30661 else
30662   echo "$as_me: failed program was:" >&5
30663 sed 's/^/| /' conftest.$ac_ext >&5
30664
30665 ol_cv_pthread_kthread=no
30666 fi
30667 rm -f conftest.err conftest.$ac_objext \
30668       conftest$ac_exeext conftest.$ac_ext
30669 else
30670   cat >conftest.$ac_ext <<_ACEOF
30671
30672 /* pthread test headers */
30673 #include <pthread.h>
30674 #if HAVE_PTHREADS < 7
30675 #include <errno.h>
30676 #endif
30677 #ifndef NULL
30678 #define NULL (void*)0
30679 #endif
30680
30681 static void *task(p)
30682         void *p;
30683 {
30684         return (void *) (p == NULL);
30685 }
30686
30687
30688 int main(argc, argv)
30689         int argc;
30690         char **argv;
30691 {
30692
30693         /* pthread test function */
30694 #ifndef PTHREAD_CREATE_DETACHED
30695 #define PTHREAD_CREATE_DETACHED 1
30696 #endif
30697         pthread_t t;
30698         int status;
30699         int detach = PTHREAD_CREATE_DETACHED;
30700
30701 #if HAVE_PTHREADS > 4
30702         /* Final pthreads */
30703         pthread_attr_t attr;
30704
30705         status = pthread_attr_init(&attr);
30706         if( status ) return status;
30707
30708 #if HAVE_PTHREADS < 7
30709         status = pthread_attr_setdetachstate(&attr, &detach);
30710         if( status < 0 ) status = errno;
30711 #else
30712         status = pthread_attr_setdetachstate(&attr, detach);
30713 #endif
30714         if( status ) return status;
30715         status = pthread_create( &t, &attr, task, NULL );
30716 #if HAVE_PTHREADS < 7
30717         if( status < 0 ) status = errno;
30718 #endif
30719         if( status ) return status;
30720 #else
30721         /* Draft 4 pthreads */
30722         status = pthread_create( &t, pthread_attr_default, task, NULL );
30723         if( status ) return errno;
30724
30725         /* give thread a chance to complete */
30726         /* it should remain joinable and hence detachable */
30727         sleep( 1 );
30728
30729         status = pthread_detach( &t );
30730         if( status ) return errno;
30731 #endif
30732
30733 #ifdef HAVE_LINUX_THREADS
30734         pthread_kill_other_threads_np();
30735 #endif
30736
30737         return 0;
30738
30739 }
30740
30741 _ACEOF
30742 rm -f conftest$ac_exeext
30743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30744   (eval $ac_link) 2>&5
30745   ac_status=$?
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30749   (eval $ac_try) 2>&5
30750   ac_status=$?
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); }; }; then
30753   ol_cv_pthread_kthread=yes
30754 else
30755   echo "$as_me: program exited with status $ac_status" >&5
30756 echo "$as_me: failed program was:" >&5
30757 sed 's/^/| /' conftest.$ac_ext >&5
30758
30759 ( exit $ac_status )
30760 ol_cv_pthread_kthread=no
30761 fi
30762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30763 fi
30764
30765                 # restore the LIBS
30766                 LIBS="$ol_LIBS"
30767
30768 fi
30769 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30770 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30771
30772         if test $ol_cv_pthread_kthread = yes ; then
30773                 ol_link_pthreads="-kthread"
30774                 ol_link_threads=posix
30775         fi
30776 fi
30777
30778                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30779 if test "$ol_link_threads" = no ; then
30780         # try -pthread
30781         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30782 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30783 if test "${ol_cv_pthread_pthread+set}" = set; then
30784   echo $ECHO_N "(cached) $ECHO_C" >&6
30785 else
30786
30787                 # save the flags
30788                 ol_LIBS="$LIBS"
30789                 LIBS="-pthread $LIBS"
30790
30791                 if test "$cross_compiling" = yes; then
30792   cat >conftest.$ac_ext <<_ACEOF
30793 /* confdefs.h.  */
30794 _ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h.  */
30798
30799 /* pthread test headers */
30800 #include <pthread.h>
30801 #if HAVE_PTHREADS < 7
30802 #include <errno.h>
30803 #endif
30804 #ifndef NULL
30805 #define NULL (void*)0
30806 #endif
30807
30808 static void *task(p)
30809         void *p;
30810 {
30811         return (void *) (p == NULL);
30812 }
30813
30814 int
30815 main ()
30816 {
30817
30818         /* pthread test function */
30819 #ifndef PTHREAD_CREATE_DETACHED
30820 #define PTHREAD_CREATE_DETACHED 1
30821 #endif
30822         pthread_t t;
30823         int status;
30824         int detach = PTHREAD_CREATE_DETACHED;
30825
30826 #if HAVE_PTHREADS > 4
30827         /* Final pthreads */
30828         pthread_attr_t attr;
30829
30830         status = pthread_attr_init(&attr);
30831         if( status ) return status;
30832
30833 #if HAVE_PTHREADS < 7
30834         status = pthread_attr_setdetachstate(&attr, &detach);
30835         if( status < 0 ) status = errno;
30836 #else
30837         status = pthread_attr_setdetachstate(&attr, detach);
30838 #endif
30839         if( status ) return status;
30840         status = pthread_create( &t, &attr, task, NULL );
30841 #if HAVE_PTHREADS < 7
30842         if( status < 0 ) status = errno;
30843 #endif
30844         if( status ) return status;
30845 #else
30846         /* Draft 4 pthreads */
30847         status = pthread_create( &t, pthread_attr_default, task, NULL );
30848         if( status ) return errno;
30849
30850         /* give thread a chance to complete */
30851         /* it should remain joinable and hence detachable */
30852         sleep( 1 );
30853
30854         status = pthread_detach( &t );
30855         if( status ) return errno;
30856 #endif
30857
30858 #ifdef HAVE_LINUX_THREADS
30859         pthread_kill_other_threads_np();
30860 #endif
30861
30862         return 0;
30863
30864   ;
30865   return 0;
30866 }
30867 _ACEOF
30868 rm -f conftest.$ac_objext conftest$ac_exeext
30869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30870   (eval $ac_link) 2>conftest.er1
30871   ac_status=$?
30872   grep -v '^ *+' conftest.er1 >conftest.err
30873   rm -f conftest.er1
30874   cat conftest.err >&5
30875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876   (exit $ac_status); } &&
30877          { ac_try='test -z "$ac_c_werror_flag"
30878                          || test ! -s conftest.err'
30879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30880   (eval $ac_try) 2>&5
30881   ac_status=$?
30882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883   (exit $ac_status); }; } &&
30884          { ac_try='test -s conftest$ac_exeext'
30885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886   (eval $ac_try) 2>&5
30887   ac_status=$?
30888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889   (exit $ac_status); }; }; then
30890   ol_cv_pthread_pthread=yes
30891 else
30892   echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30894
30895 ol_cv_pthread_pthread=no
30896 fi
30897 rm -f conftest.err conftest.$ac_objext \
30898       conftest$ac_exeext conftest.$ac_ext
30899 else
30900   cat >conftest.$ac_ext <<_ACEOF
30901
30902 /* pthread test headers */
30903 #include <pthread.h>
30904 #if HAVE_PTHREADS < 7
30905 #include <errno.h>
30906 #endif
30907 #ifndef NULL
30908 #define NULL (void*)0
30909 #endif
30910
30911 static void *task(p)
30912         void *p;
30913 {
30914         return (void *) (p == NULL);
30915 }
30916
30917
30918 int main(argc, argv)
30919         int argc;
30920         char **argv;
30921 {
30922
30923         /* pthread test function */
30924 #ifndef PTHREAD_CREATE_DETACHED
30925 #define PTHREAD_CREATE_DETACHED 1
30926 #endif
30927         pthread_t t;
30928         int status;
30929         int detach = PTHREAD_CREATE_DETACHED;
30930
30931 #if HAVE_PTHREADS > 4
30932         /* Final pthreads */
30933         pthread_attr_t attr;
30934
30935         status = pthread_attr_init(&attr);
30936         if( status ) return status;
30937
30938 #if HAVE_PTHREADS < 7
30939         status = pthread_attr_setdetachstate(&attr, &detach);
30940         if( status < 0 ) status = errno;
30941 #else
30942         status = pthread_attr_setdetachstate(&attr, detach);
30943 #endif
30944         if( status ) return status;
30945         status = pthread_create( &t, &attr, task, NULL );
30946 #if HAVE_PTHREADS < 7
30947         if( status < 0 ) status = errno;
30948 #endif
30949         if( status ) return status;
30950 #else
30951         /* Draft 4 pthreads */
30952         status = pthread_create( &t, pthread_attr_default, task, NULL );
30953         if( status ) return errno;
30954
30955         /* give thread a chance to complete */
30956         /* it should remain joinable and hence detachable */
30957         sleep( 1 );
30958
30959         status = pthread_detach( &t );
30960         if( status ) return errno;
30961 #endif
30962
30963 #ifdef HAVE_LINUX_THREADS
30964         pthread_kill_other_threads_np();
30965 #endif
30966
30967         return 0;
30968
30969 }
30970
30971 _ACEOF
30972 rm -f conftest$ac_exeext
30973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30974   (eval $ac_link) 2>&5
30975   ac_status=$?
30976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30979   (eval $ac_try) 2>&5
30980   ac_status=$?
30981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982   (exit $ac_status); }; }; then
30983   ol_cv_pthread_pthread=yes
30984 else
30985   echo "$as_me: program exited with status $ac_status" >&5
30986 echo "$as_me: failed program was:" >&5
30987 sed 's/^/| /' conftest.$ac_ext >&5
30988
30989 ( exit $ac_status )
30990 ol_cv_pthread_pthread=no
30991 fi
30992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30993 fi
30994
30995                 # restore the LIBS
30996                 LIBS="$ol_LIBS"
30997
30998 fi
30999 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31000 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31001
31002         if test $ol_cv_pthread_pthread = yes ; then
31003                 ol_link_pthreads="-pthread"
31004                 ol_link_threads=posix
31005         fi
31006 fi
31007
31008                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31009 if test "$ol_link_threads" = no ; then
31010         # try -pthreads
31011         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31012 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31013 if test "${ol_cv_pthread_pthreads+set}" = set; then
31014   echo $ECHO_N "(cached) $ECHO_C" >&6
31015 else
31016
31017                 # save the flags
31018                 ol_LIBS="$LIBS"
31019                 LIBS="-pthreads $LIBS"
31020
31021                 if test "$cross_compiling" = yes; then
31022   cat >conftest.$ac_ext <<_ACEOF
31023 /* confdefs.h.  */
31024 _ACEOF
31025 cat confdefs.h >>conftest.$ac_ext
31026 cat >>conftest.$ac_ext <<_ACEOF
31027 /* end confdefs.h.  */
31028
31029 /* pthread test headers */
31030 #include <pthread.h>
31031 #if HAVE_PTHREADS < 7
31032 #include <errno.h>
31033 #endif
31034 #ifndef NULL
31035 #define NULL (void*)0
31036 #endif
31037
31038 static void *task(p)
31039         void *p;
31040 {
31041         return (void *) (p == NULL);
31042 }
31043
31044 int
31045 main ()
31046 {
31047
31048         /* pthread test function */
31049 #ifndef PTHREAD_CREATE_DETACHED
31050 #define PTHREAD_CREATE_DETACHED 1
31051 #endif
31052         pthread_t t;
31053         int status;
31054         int detach = PTHREAD_CREATE_DETACHED;
31055
31056 #if HAVE_PTHREADS > 4
31057         /* Final pthreads */
31058         pthread_attr_t attr;
31059
31060         status = pthread_attr_init(&attr);
31061         if( status ) return status;
31062
31063 #if HAVE_PTHREADS < 7
31064         status = pthread_attr_setdetachstate(&attr, &detach);
31065         if( status < 0 ) status = errno;
31066 #else
31067         status = pthread_attr_setdetachstate(&attr, detach);
31068 #endif
31069         if( status ) return status;
31070         status = pthread_create( &t, &attr, task, NULL );
31071 #if HAVE_PTHREADS < 7
31072         if( status < 0 ) status = errno;
31073 #endif
31074         if( status ) return status;
31075 #else
31076         /* Draft 4 pthreads */
31077         status = pthread_create( &t, pthread_attr_default, task, NULL );
31078         if( status ) return errno;
31079
31080         /* give thread a chance to complete */
31081         /* it should remain joinable and hence detachable */
31082         sleep( 1 );
31083
31084         status = pthread_detach( &t );
31085         if( status ) return errno;
31086 #endif
31087
31088 #ifdef HAVE_LINUX_THREADS
31089         pthread_kill_other_threads_np();
31090 #endif
31091
31092         return 0;
31093
31094   ;
31095   return 0;
31096 }
31097 _ACEOF
31098 rm -f conftest.$ac_objext conftest$ac_exeext
31099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31100   (eval $ac_link) 2>conftest.er1
31101   ac_status=$?
31102   grep -v '^ *+' conftest.er1 >conftest.err
31103   rm -f conftest.er1
31104   cat conftest.err >&5
31105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106   (exit $ac_status); } &&
31107          { ac_try='test -z "$ac_c_werror_flag"
31108                          || test ! -s conftest.err'
31109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31110   (eval $ac_try) 2>&5
31111   ac_status=$?
31112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113   (exit $ac_status); }; } &&
31114          { ac_try='test -s conftest$ac_exeext'
31115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116   (eval $ac_try) 2>&5
31117   ac_status=$?
31118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119   (exit $ac_status); }; }; then
31120   ol_cv_pthread_pthreads=yes
31121 else
31122   echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31124
31125 ol_cv_pthread_pthreads=no
31126 fi
31127 rm -f conftest.err conftest.$ac_objext \
31128       conftest$ac_exeext conftest.$ac_ext
31129 else
31130   cat >conftest.$ac_ext <<_ACEOF
31131
31132 /* pthread test headers */
31133 #include <pthread.h>
31134 #if HAVE_PTHREADS < 7
31135 #include <errno.h>
31136 #endif
31137 #ifndef NULL
31138 #define NULL (void*)0
31139 #endif
31140
31141 static void *task(p)
31142         void *p;
31143 {
31144         return (void *) (p == NULL);
31145 }
31146
31147
31148 int main(argc, argv)
31149         int argc;
31150         char **argv;
31151 {
31152
31153         /* pthread test function */
31154 #ifndef PTHREAD_CREATE_DETACHED
31155 #define PTHREAD_CREATE_DETACHED 1
31156 #endif
31157         pthread_t t;
31158         int status;
31159         int detach = PTHREAD_CREATE_DETACHED;
31160
31161 #if HAVE_PTHREADS > 4
31162         /* Final pthreads */
31163         pthread_attr_t attr;
31164
31165         status = pthread_attr_init(&attr);
31166         if( status ) return status;
31167
31168 #if HAVE_PTHREADS < 7
31169         status = pthread_attr_setdetachstate(&attr, &detach);
31170         if( status < 0 ) status = errno;
31171 #else
31172         status = pthread_attr_setdetachstate(&attr, detach);
31173 #endif
31174         if( status ) return status;
31175         status = pthread_create( &t, &attr, task, NULL );
31176 #if HAVE_PTHREADS < 7
31177         if( status < 0 ) status = errno;
31178 #endif
31179         if( status ) return status;
31180 #else
31181         /* Draft 4 pthreads */
31182         status = pthread_create( &t, pthread_attr_default, task, NULL );
31183         if( status ) return errno;
31184
31185         /* give thread a chance to complete */
31186         /* it should remain joinable and hence detachable */
31187         sleep( 1 );
31188
31189         status = pthread_detach( &t );
31190         if( status ) return errno;
31191 #endif
31192
31193 #ifdef HAVE_LINUX_THREADS
31194         pthread_kill_other_threads_np();
31195 #endif
31196
31197         return 0;
31198
31199 }
31200
31201 _ACEOF
31202 rm -f conftest$ac_exeext
31203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31204   (eval $ac_link) 2>&5
31205   ac_status=$?
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209   (eval $ac_try) 2>&5
31210   ac_status=$?
31211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212   (exit $ac_status); }; }; then
31213   ol_cv_pthread_pthreads=yes
31214 else
31215   echo "$as_me: program exited with status $ac_status" >&5
31216 echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.$ac_ext >&5
31218
31219 ( exit $ac_status )
31220 ol_cv_pthread_pthreads=no
31221 fi
31222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31223 fi
31224
31225                 # restore the LIBS
31226                 LIBS="$ol_LIBS"
31227
31228 fi
31229 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31230 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31231
31232         if test $ol_cv_pthread_pthreads = yes ; then
31233                 ol_link_pthreads="-pthreads"
31234                 ol_link_threads=posix
31235         fi
31236 fi
31237
31238                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31239 if test "$ol_link_threads" = no ; then
31240         # try -mthreads
31241         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31242 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31243 if test "${ol_cv_pthread_mthreads+set}" = set; then
31244   echo $ECHO_N "(cached) $ECHO_C" >&6
31245 else
31246
31247                 # save the flags
31248                 ol_LIBS="$LIBS"
31249                 LIBS="-mthreads $LIBS"
31250
31251                 if test "$cross_compiling" = yes; then
31252   cat >conftest.$ac_ext <<_ACEOF
31253 /* confdefs.h.  */
31254 _ACEOF
31255 cat confdefs.h >>conftest.$ac_ext
31256 cat >>conftest.$ac_ext <<_ACEOF
31257 /* end confdefs.h.  */
31258
31259 /* pthread test headers */
31260 #include <pthread.h>
31261 #if HAVE_PTHREADS < 7
31262 #include <errno.h>
31263 #endif
31264 #ifndef NULL
31265 #define NULL (void*)0
31266 #endif
31267
31268 static void *task(p)
31269         void *p;
31270 {
31271         return (void *) (p == NULL);
31272 }
31273
31274 int
31275 main ()
31276 {
31277
31278         /* pthread test function */
31279 #ifndef PTHREAD_CREATE_DETACHED
31280 #define PTHREAD_CREATE_DETACHED 1
31281 #endif
31282         pthread_t t;
31283         int status;
31284         int detach = PTHREAD_CREATE_DETACHED;
31285
31286 #if HAVE_PTHREADS > 4
31287         /* Final pthreads */
31288         pthread_attr_t attr;
31289
31290         status = pthread_attr_init(&attr);
31291         if( status ) return status;
31292
31293 #if HAVE_PTHREADS < 7
31294         status = pthread_attr_setdetachstate(&attr, &detach);
31295         if( status < 0 ) status = errno;
31296 #else
31297         status = pthread_attr_setdetachstate(&attr, detach);
31298 #endif
31299         if( status ) return status;
31300         status = pthread_create( &t, &attr, task, NULL );
31301 #if HAVE_PTHREADS < 7
31302         if( status < 0 ) status = errno;
31303 #endif
31304         if( status ) return status;
31305 #else
31306         /* Draft 4 pthreads */
31307         status = pthread_create( &t, pthread_attr_default, task, NULL );
31308         if( status ) return errno;
31309
31310         /* give thread a chance to complete */
31311         /* it should remain joinable and hence detachable */
31312         sleep( 1 );
31313
31314         status = pthread_detach( &t );
31315         if( status ) return errno;
31316 #endif
31317
31318 #ifdef HAVE_LINUX_THREADS
31319         pthread_kill_other_threads_np();
31320 #endif
31321
31322         return 0;
31323
31324   ;
31325   return 0;
31326 }
31327 _ACEOF
31328 rm -f conftest.$ac_objext conftest$ac_exeext
31329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31330   (eval $ac_link) 2>conftest.er1
31331   ac_status=$?
31332   grep -v '^ *+' conftest.er1 >conftest.err
31333   rm -f conftest.er1
31334   cat conftest.err >&5
31335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336   (exit $ac_status); } &&
31337          { ac_try='test -z "$ac_c_werror_flag"
31338                          || test ! -s conftest.err'
31339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340   (eval $ac_try) 2>&5
31341   ac_status=$?
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); }; } &&
31344          { ac_try='test -s conftest$ac_exeext'
31345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346   (eval $ac_try) 2>&5
31347   ac_status=$?
31348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349   (exit $ac_status); }; }; then
31350   ol_cv_pthread_mthreads=yes
31351 else
31352   echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31354
31355 ol_cv_pthread_mthreads=no
31356 fi
31357 rm -f conftest.err conftest.$ac_objext \
31358       conftest$ac_exeext conftest.$ac_ext
31359 else
31360   cat >conftest.$ac_ext <<_ACEOF
31361
31362 /* pthread test headers */
31363 #include <pthread.h>
31364 #if HAVE_PTHREADS < 7
31365 #include <errno.h>
31366 #endif
31367 #ifndef NULL
31368 #define NULL (void*)0
31369 #endif
31370
31371 static void *task(p)
31372         void *p;
31373 {
31374         return (void *) (p == NULL);
31375 }
31376
31377
31378 int main(argc, argv)
31379         int argc;
31380         char **argv;
31381 {
31382
31383         /* pthread test function */
31384 #ifndef PTHREAD_CREATE_DETACHED
31385 #define PTHREAD_CREATE_DETACHED 1
31386 #endif
31387         pthread_t t;
31388         int status;
31389         int detach = PTHREAD_CREATE_DETACHED;
31390
31391 #if HAVE_PTHREADS > 4
31392         /* Final pthreads */
31393         pthread_attr_t attr;
31394
31395         status = pthread_attr_init(&attr);
31396         if( status ) return status;
31397
31398 #if HAVE_PTHREADS < 7
31399         status = pthread_attr_setdetachstate(&attr, &detach);
31400         if( status < 0 ) status = errno;
31401 #else
31402         status = pthread_attr_setdetachstate(&attr, detach);
31403 #endif
31404         if( status ) return status;
31405         status = pthread_create( &t, &attr, task, NULL );
31406 #if HAVE_PTHREADS < 7
31407         if( status < 0 ) status = errno;
31408 #endif
31409         if( status ) return status;
31410 #else
31411         /* Draft 4 pthreads */
31412         status = pthread_create( &t, pthread_attr_default, task, NULL );
31413         if( status ) return errno;
31414
31415         /* give thread a chance to complete */
31416         /* it should remain joinable and hence detachable */
31417         sleep( 1 );
31418
31419         status = pthread_detach( &t );
31420         if( status ) return errno;
31421 #endif
31422
31423 #ifdef HAVE_LINUX_THREADS
31424         pthread_kill_other_threads_np();
31425 #endif
31426
31427         return 0;
31428
31429 }
31430
31431 _ACEOF
31432 rm -f conftest$ac_exeext
31433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31434   (eval $ac_link) 2>&5
31435   ac_status=$?
31436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31439   (eval $ac_try) 2>&5
31440   ac_status=$?
31441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); }; }; then
31443   ol_cv_pthread_mthreads=yes
31444 else
31445   echo "$as_me: program exited with status $ac_status" >&5
31446 echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31448
31449 ( exit $ac_status )
31450 ol_cv_pthread_mthreads=no
31451 fi
31452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31453 fi
31454
31455                 # restore the LIBS
31456                 LIBS="$ol_LIBS"
31457
31458 fi
31459 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31460 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31461
31462         if test $ol_cv_pthread_mthreads = yes ; then
31463                 ol_link_pthreads="-mthreads"
31464                 ol_link_threads=posix
31465         fi
31466 fi
31467
31468                 # Pthread try link: -thread (ol_cv_pthread_thread)
31469 if test "$ol_link_threads" = no ; then
31470         # try -thread
31471         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31472 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31473 if test "${ol_cv_pthread_thread+set}" = set; then
31474   echo $ECHO_N "(cached) $ECHO_C" >&6
31475 else
31476
31477                 # save the flags
31478                 ol_LIBS="$LIBS"
31479                 LIBS="-thread $LIBS"
31480
31481                 if test "$cross_compiling" = yes; then
31482   cat >conftest.$ac_ext <<_ACEOF
31483 /* confdefs.h.  */
31484 _ACEOF
31485 cat confdefs.h >>conftest.$ac_ext
31486 cat >>conftest.$ac_ext <<_ACEOF
31487 /* end confdefs.h.  */
31488
31489 /* pthread test headers */
31490 #include <pthread.h>
31491 #if HAVE_PTHREADS < 7
31492 #include <errno.h>
31493 #endif
31494 #ifndef NULL
31495 #define NULL (void*)0
31496 #endif
31497
31498 static void *task(p)
31499         void *p;
31500 {
31501         return (void *) (p == NULL);
31502 }
31503
31504 int
31505 main ()
31506 {
31507
31508         /* pthread test function */
31509 #ifndef PTHREAD_CREATE_DETACHED
31510 #define PTHREAD_CREATE_DETACHED 1
31511 #endif
31512         pthread_t t;
31513         int status;
31514         int detach = PTHREAD_CREATE_DETACHED;
31515
31516 #if HAVE_PTHREADS > 4
31517         /* Final pthreads */
31518         pthread_attr_t attr;
31519
31520         status = pthread_attr_init(&attr);
31521         if( status ) return status;
31522
31523 #if HAVE_PTHREADS < 7
31524         status = pthread_attr_setdetachstate(&attr, &detach);
31525         if( status < 0 ) status = errno;
31526 #else
31527         status = pthread_attr_setdetachstate(&attr, detach);
31528 #endif
31529         if( status ) return status;
31530         status = pthread_create( &t, &attr, task, NULL );
31531 #if HAVE_PTHREADS < 7
31532         if( status < 0 ) status = errno;
31533 #endif
31534         if( status ) return status;
31535 #else
31536         /* Draft 4 pthreads */
31537         status = pthread_create( &t, pthread_attr_default, task, NULL );
31538         if( status ) return errno;
31539
31540         /* give thread a chance to complete */
31541         /* it should remain joinable and hence detachable */
31542         sleep( 1 );
31543
31544         status = pthread_detach( &t );
31545         if( status ) return errno;
31546 #endif
31547
31548 #ifdef HAVE_LINUX_THREADS
31549         pthread_kill_other_threads_np();
31550 #endif
31551
31552         return 0;
31553
31554   ;
31555   return 0;
31556 }
31557 _ACEOF
31558 rm -f conftest.$ac_objext conftest$ac_exeext
31559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31560   (eval $ac_link) 2>conftest.er1
31561   ac_status=$?
31562   grep -v '^ *+' conftest.er1 >conftest.err
31563   rm -f conftest.er1
31564   cat conftest.err >&5
31565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566   (exit $ac_status); } &&
31567          { ac_try='test -z "$ac_c_werror_flag"
31568                          || test ! -s conftest.err'
31569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31570   (eval $ac_try) 2>&5
31571   ac_status=$?
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); }; } &&
31574          { ac_try='test -s conftest$ac_exeext'
31575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31576   (eval $ac_try) 2>&5
31577   ac_status=$?
31578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579   (exit $ac_status); }; }; then
31580   ol_cv_pthread_thread=yes
31581 else
31582   echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31584
31585 ol_cv_pthread_thread=no
31586 fi
31587 rm -f conftest.err conftest.$ac_objext \
31588       conftest$ac_exeext conftest.$ac_ext
31589 else
31590   cat >conftest.$ac_ext <<_ACEOF
31591
31592 /* pthread test headers */
31593 #include <pthread.h>
31594 #if HAVE_PTHREADS < 7
31595 #include <errno.h>
31596 #endif
31597 #ifndef NULL
31598 #define NULL (void*)0
31599 #endif
31600
31601 static void *task(p)
31602         void *p;
31603 {
31604         return (void *) (p == NULL);
31605 }
31606
31607
31608 int main(argc, argv)
31609         int argc;
31610         char **argv;
31611 {
31612
31613         /* pthread test function */
31614 #ifndef PTHREAD_CREATE_DETACHED
31615 #define PTHREAD_CREATE_DETACHED 1
31616 #endif
31617         pthread_t t;
31618         int status;
31619         int detach = PTHREAD_CREATE_DETACHED;
31620
31621 #if HAVE_PTHREADS > 4
31622         /* Final pthreads */
31623         pthread_attr_t attr;
31624
31625         status = pthread_attr_init(&attr);
31626         if( status ) return status;
31627
31628 #if HAVE_PTHREADS < 7
31629         status = pthread_attr_setdetachstate(&attr, &detach);
31630         if( status < 0 ) status = errno;
31631 #else
31632         status = pthread_attr_setdetachstate(&attr, detach);
31633 #endif
31634         if( status ) return status;
31635         status = pthread_create( &t, &attr, task, NULL );
31636 #if HAVE_PTHREADS < 7
31637         if( status < 0 ) status = errno;
31638 #endif
31639         if( status ) return status;
31640 #else
31641         /* Draft 4 pthreads */
31642         status = pthread_create( &t, pthread_attr_default, task, NULL );
31643         if( status ) return errno;
31644
31645         /* give thread a chance to complete */
31646         /* it should remain joinable and hence detachable */
31647         sleep( 1 );
31648
31649         status = pthread_detach( &t );
31650         if( status ) return errno;
31651 #endif
31652
31653 #ifdef HAVE_LINUX_THREADS
31654         pthread_kill_other_threads_np();
31655 #endif
31656
31657         return 0;
31658
31659 }
31660
31661 _ACEOF
31662 rm -f conftest$ac_exeext
31663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31664   (eval $ac_link) 2>&5
31665   ac_status=$?
31666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669   (eval $ac_try) 2>&5
31670   ac_status=$?
31671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672   (exit $ac_status); }; }; then
31673   ol_cv_pthread_thread=yes
31674 else
31675   echo "$as_me: program exited with status $ac_status" >&5
31676 echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31678
31679 ( exit $ac_status )
31680 ol_cv_pthread_thread=no
31681 fi
31682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31683 fi
31684
31685                 # restore the LIBS
31686                 LIBS="$ol_LIBS"
31687
31688 fi
31689 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31690 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31691
31692         if test $ol_cv_pthread_thread = yes ; then
31693                 ol_link_pthreads="-thread"
31694                 ol_link_threads=posix
31695         fi
31696 fi
31697
31698
31699                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31700 if test "$ol_link_threads" = no ; then
31701         # try -lpthread -lmach -lexc -lc_r
31702         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31703 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31704 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31705   echo $ECHO_N "(cached) $ECHO_C" >&6
31706 else
31707
31708                 # save the flags
31709                 ol_LIBS="$LIBS"
31710                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31711
31712                 if test "$cross_compiling" = yes; then
31713   cat >conftest.$ac_ext <<_ACEOF
31714 /* confdefs.h.  */
31715 _ACEOF
31716 cat confdefs.h >>conftest.$ac_ext
31717 cat >>conftest.$ac_ext <<_ACEOF
31718 /* end confdefs.h.  */
31719
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 int
31736 main ()
31737 {
31738
31739         /* pthread test function */
31740 #ifndef PTHREAD_CREATE_DETACHED
31741 #define PTHREAD_CREATE_DETACHED 1
31742 #endif
31743         pthread_t t;
31744         int status;
31745         int detach = PTHREAD_CREATE_DETACHED;
31746
31747 #if HAVE_PTHREADS > 4
31748         /* Final pthreads */
31749         pthread_attr_t attr;
31750
31751         status = pthread_attr_init(&attr);
31752         if( status ) return status;
31753
31754 #if HAVE_PTHREADS < 7
31755         status = pthread_attr_setdetachstate(&attr, &detach);
31756         if( status < 0 ) status = errno;
31757 #else
31758         status = pthread_attr_setdetachstate(&attr, detach);
31759 #endif
31760         if( status ) return status;
31761         status = pthread_create( &t, &attr, task, NULL );
31762 #if HAVE_PTHREADS < 7
31763         if( status < 0 ) status = errno;
31764 #endif
31765         if( status ) return status;
31766 #else
31767         /* Draft 4 pthreads */
31768         status = pthread_create( &t, pthread_attr_default, task, NULL );
31769         if( status ) return errno;
31770
31771         /* give thread a chance to complete */
31772         /* it should remain joinable and hence detachable */
31773         sleep( 1 );
31774
31775         status = pthread_detach( &t );
31776         if( status ) return errno;
31777 #endif
31778
31779 #ifdef HAVE_LINUX_THREADS
31780         pthread_kill_other_threads_np();
31781 #endif
31782
31783         return 0;
31784
31785   ;
31786   return 0;
31787 }
31788 _ACEOF
31789 rm -f conftest.$ac_objext conftest$ac_exeext
31790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31791   (eval $ac_link) 2>conftest.er1
31792   ac_status=$?
31793   grep -v '^ *+' conftest.er1 >conftest.err
31794   rm -f conftest.er1
31795   cat conftest.err >&5
31796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797   (exit $ac_status); } &&
31798          { ac_try='test -z "$ac_c_werror_flag"
31799                          || test ! -s conftest.err'
31800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31801   (eval $ac_try) 2>&5
31802   ac_status=$?
31803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804   (exit $ac_status); }; } &&
31805          { ac_try='test -s conftest$ac_exeext'
31806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807   (eval $ac_try) 2>&5
31808   ac_status=$?
31809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810   (exit $ac_status); }; }; then
31811   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31812 else
31813   echo "$as_me: failed program was:" >&5
31814 sed 's/^/| /' conftest.$ac_ext >&5
31815
31816 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31817 fi
31818 rm -f conftest.err conftest.$ac_objext \
31819       conftest$ac_exeext conftest.$ac_ext
31820 else
31821   cat >conftest.$ac_ext <<_ACEOF
31822
31823 /* pthread test headers */
31824 #include <pthread.h>
31825 #if HAVE_PTHREADS < 7
31826 #include <errno.h>
31827 #endif
31828 #ifndef NULL
31829 #define NULL (void*)0
31830 #endif
31831
31832 static void *task(p)
31833         void *p;
31834 {
31835         return (void *) (p == NULL);
31836 }
31837
31838
31839 int main(argc, argv)
31840         int argc;
31841         char **argv;
31842 {
31843
31844         /* pthread test function */
31845 #ifndef PTHREAD_CREATE_DETACHED
31846 #define PTHREAD_CREATE_DETACHED 1
31847 #endif
31848         pthread_t t;
31849         int status;
31850         int detach = PTHREAD_CREATE_DETACHED;
31851
31852 #if HAVE_PTHREADS > 4
31853         /* Final pthreads */
31854         pthread_attr_t attr;
31855
31856         status = pthread_attr_init(&attr);
31857         if( status ) return status;
31858
31859 #if HAVE_PTHREADS < 7
31860         status = pthread_attr_setdetachstate(&attr, &detach);
31861         if( status < 0 ) status = errno;
31862 #else
31863         status = pthread_attr_setdetachstate(&attr, detach);
31864 #endif
31865         if( status ) return status;
31866         status = pthread_create( &t, &attr, task, NULL );
31867 #if HAVE_PTHREADS < 7
31868         if( status < 0 ) status = errno;
31869 #endif
31870         if( status ) return status;
31871 #else
31872         /* Draft 4 pthreads */
31873         status = pthread_create( &t, pthread_attr_default, task, NULL );
31874         if( status ) return errno;
31875
31876         /* give thread a chance to complete */
31877         /* it should remain joinable and hence detachable */
31878         sleep( 1 );
31879
31880         status = pthread_detach( &t );
31881         if( status ) return errno;
31882 #endif
31883
31884 #ifdef HAVE_LINUX_THREADS
31885         pthread_kill_other_threads_np();
31886 #endif
31887
31888         return 0;
31889
31890 }
31891
31892 _ACEOF
31893 rm -f conftest$ac_exeext
31894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31895   (eval $ac_link) 2>&5
31896   ac_status=$?
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900   (eval $ac_try) 2>&5
31901   ac_status=$?
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); }; }; then
31904   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31905 else
31906   echo "$as_me: program exited with status $ac_status" >&5
31907 echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31909
31910 ( exit $ac_status )
31911 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31912 fi
31913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31914 fi
31915
31916                 # restore the LIBS
31917                 LIBS="$ol_LIBS"
31918
31919 fi
31920 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31921 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31922
31923         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31924                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31925                 ol_link_threads=posix
31926         fi
31927 fi
31928
31929                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31930 if test "$ol_link_threads" = no ; then
31931         # try -lpthread -lmach -lexc
31932         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31933 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31934 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31935   echo $ECHO_N "(cached) $ECHO_C" >&6
31936 else
31937
31938                 # save the flags
31939                 ol_LIBS="$LIBS"
31940                 LIBS="-lpthread -lmach -lexc $LIBS"
31941
31942                 if test "$cross_compiling" = yes; then
31943   cat >conftest.$ac_ext <<_ACEOF
31944 /* confdefs.h.  */
31945 _ACEOF
31946 cat confdefs.h >>conftest.$ac_ext
31947 cat >>conftest.$ac_ext <<_ACEOF
31948 /* end confdefs.h.  */
31949
31950 /* pthread test headers */
31951 #include <pthread.h>
31952 #if HAVE_PTHREADS < 7
31953 #include <errno.h>
31954 #endif
31955 #ifndef NULL
31956 #define NULL (void*)0
31957 #endif
31958
31959 static void *task(p)
31960         void *p;
31961 {
31962         return (void *) (p == NULL);
31963 }
31964
31965 int
31966 main ()
31967 {
31968
31969         /* pthread test function */
31970 #ifndef PTHREAD_CREATE_DETACHED
31971 #define PTHREAD_CREATE_DETACHED 1
31972 #endif
31973         pthread_t t;
31974         int status;
31975         int detach = PTHREAD_CREATE_DETACHED;
31976
31977 #if HAVE_PTHREADS > 4
31978         /* Final pthreads */
31979         pthread_attr_t attr;
31980
31981         status = pthread_attr_init(&attr);
31982         if( status ) return status;
31983
31984 #if HAVE_PTHREADS < 7
31985         status = pthread_attr_setdetachstate(&attr, &detach);
31986         if( status < 0 ) status = errno;
31987 #else
31988         status = pthread_attr_setdetachstate(&attr, detach);
31989 #endif
31990         if( status ) return status;
31991         status = pthread_create( &t, &attr, task, NULL );
31992 #if HAVE_PTHREADS < 7
31993         if( status < 0 ) status = errno;
31994 #endif
31995         if( status ) return status;
31996 #else
31997         /* Draft 4 pthreads */
31998         status = pthread_create( &t, pthread_attr_default, task, NULL );
31999         if( status ) return errno;
32000
32001         /* give thread a chance to complete */
32002         /* it should remain joinable and hence detachable */
32003         sleep( 1 );
32004
32005         status = pthread_detach( &t );
32006         if( status ) return errno;
32007 #endif
32008
32009 #ifdef HAVE_LINUX_THREADS
32010         pthread_kill_other_threads_np();
32011 #endif
32012
32013         return 0;
32014
32015   ;
32016   return 0;
32017 }
32018 _ACEOF
32019 rm -f conftest.$ac_objext conftest$ac_exeext
32020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32021   (eval $ac_link) 2>conftest.er1
32022   ac_status=$?
32023   grep -v '^ *+' conftest.er1 >conftest.err
32024   rm -f conftest.er1
32025   cat conftest.err >&5
32026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027   (exit $ac_status); } &&
32028          { ac_try='test -z "$ac_c_werror_flag"
32029                          || test ! -s conftest.err'
32030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031   (eval $ac_try) 2>&5
32032   ac_status=$?
32033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034   (exit $ac_status); }; } &&
32035          { ac_try='test -s conftest$ac_exeext'
32036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037   (eval $ac_try) 2>&5
32038   ac_status=$?
32039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040   (exit $ac_status); }; }; then
32041   ol_cv_pthread_lpthread_lmach_lexc=yes
32042 else
32043   echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32045
32046 ol_cv_pthread_lpthread_lmach_lexc=no
32047 fi
32048 rm -f conftest.err conftest.$ac_objext \
32049       conftest$ac_exeext conftest.$ac_ext
32050 else
32051   cat >conftest.$ac_ext <<_ACEOF
32052
32053 /* pthread test headers */
32054 #include <pthread.h>
32055 #if HAVE_PTHREADS < 7
32056 #include <errno.h>
32057 #endif
32058 #ifndef NULL
32059 #define NULL (void*)0
32060 #endif
32061
32062 static void *task(p)
32063         void *p;
32064 {
32065         return (void *) (p == NULL);
32066 }
32067
32068
32069 int main(argc, argv)
32070         int argc;
32071         char **argv;
32072 {
32073
32074         /* pthread test function */
32075 #ifndef PTHREAD_CREATE_DETACHED
32076 #define PTHREAD_CREATE_DETACHED 1
32077 #endif
32078         pthread_t t;
32079         int status;
32080         int detach = PTHREAD_CREATE_DETACHED;
32081
32082 #if HAVE_PTHREADS > 4
32083         /* Final pthreads */
32084         pthread_attr_t attr;
32085
32086         status = pthread_attr_init(&attr);
32087         if( status ) return status;
32088
32089 #if HAVE_PTHREADS < 7
32090         status = pthread_attr_setdetachstate(&attr, &detach);
32091         if( status < 0 ) status = errno;
32092 #else
32093         status = pthread_attr_setdetachstate(&attr, detach);
32094 #endif
32095         if( status ) return status;
32096         status = pthread_create( &t, &attr, task, NULL );
32097 #if HAVE_PTHREADS < 7
32098         if( status < 0 ) status = errno;
32099 #endif
32100         if( status ) return status;
32101 #else
32102         /* Draft 4 pthreads */
32103         status = pthread_create( &t, pthread_attr_default, task, NULL );
32104         if( status ) return errno;
32105
32106         /* give thread a chance to complete */
32107         /* it should remain joinable and hence detachable */
32108         sleep( 1 );
32109
32110         status = pthread_detach( &t );
32111         if( status ) return errno;
32112 #endif
32113
32114 #ifdef HAVE_LINUX_THREADS
32115         pthread_kill_other_threads_np();
32116 #endif
32117
32118         return 0;
32119
32120 }
32121
32122 _ACEOF
32123 rm -f conftest$ac_exeext
32124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32125   (eval $ac_link) 2>&5
32126   ac_status=$?
32127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130   (eval $ac_try) 2>&5
32131   ac_status=$?
32132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133   (exit $ac_status); }; }; then
32134   ol_cv_pthread_lpthread_lmach_lexc=yes
32135 else
32136   echo "$as_me: program exited with status $ac_status" >&5
32137 echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32139
32140 ( exit $ac_status )
32141 ol_cv_pthread_lpthread_lmach_lexc=no
32142 fi
32143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32144 fi
32145
32146                 # restore the LIBS
32147                 LIBS="$ol_LIBS"
32148
32149 fi
32150 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32151 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32152
32153         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32154                 ol_link_pthreads="-lpthread -lmach -lexc"
32155                 ol_link_threads=posix
32156         fi
32157 fi
32158
32159
32160                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32161 if test "$ol_link_threads" = no ; then
32162         # try -lpthread -Wl,-woff,85
32163         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32164 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32165 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32166   echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168
32169                 # save the flags
32170                 ol_LIBS="$LIBS"
32171                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32172
32173                 if test "$cross_compiling" = yes; then
32174   cat >conftest.$ac_ext <<_ACEOF
32175 /* confdefs.h.  */
32176 _ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h.  */
32180
32181 /* pthread test headers */
32182 #include <pthread.h>
32183 #if HAVE_PTHREADS < 7
32184 #include <errno.h>
32185 #endif
32186 #ifndef NULL
32187 #define NULL (void*)0
32188 #endif
32189
32190 static void *task(p)
32191         void *p;
32192 {
32193         return (void *) (p == NULL);
32194 }
32195
32196 int
32197 main ()
32198 {
32199
32200         /* pthread test function */
32201 #ifndef PTHREAD_CREATE_DETACHED
32202 #define PTHREAD_CREATE_DETACHED 1
32203 #endif
32204         pthread_t t;
32205         int status;
32206         int detach = PTHREAD_CREATE_DETACHED;
32207
32208 #if HAVE_PTHREADS > 4
32209         /* Final pthreads */
32210         pthread_attr_t attr;
32211
32212         status = pthread_attr_init(&attr);
32213         if( status ) return status;
32214
32215 #if HAVE_PTHREADS < 7
32216         status = pthread_attr_setdetachstate(&attr, &detach);
32217         if( status < 0 ) status = errno;
32218 #else
32219         status = pthread_attr_setdetachstate(&attr, detach);
32220 #endif
32221         if( status ) return status;
32222         status = pthread_create( &t, &attr, task, NULL );
32223 #if HAVE_PTHREADS < 7
32224         if( status < 0 ) status = errno;
32225 #endif
32226         if( status ) return status;
32227 #else
32228         /* Draft 4 pthreads */
32229         status = pthread_create( &t, pthread_attr_default, task, NULL );
32230         if( status ) return errno;
32231
32232         /* give thread a chance to complete */
32233         /* it should remain joinable and hence detachable */
32234         sleep( 1 );
32235
32236         status = pthread_detach( &t );
32237         if( status ) return errno;
32238 #endif
32239
32240 #ifdef HAVE_LINUX_THREADS
32241         pthread_kill_other_threads_np();
32242 #endif
32243
32244         return 0;
32245
32246   ;
32247   return 0;
32248 }
32249 _ACEOF
32250 rm -f conftest.$ac_objext conftest$ac_exeext
32251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32252   (eval $ac_link) 2>conftest.er1
32253   ac_status=$?
32254   grep -v '^ *+' conftest.er1 >conftest.err
32255   rm -f conftest.er1
32256   cat conftest.err >&5
32257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258   (exit $ac_status); } &&
32259          { ac_try='test -z "$ac_c_werror_flag"
32260                          || test ! -s conftest.err'
32261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32262   (eval $ac_try) 2>&5
32263   ac_status=$?
32264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265   (exit $ac_status); }; } &&
32266          { ac_try='test -s conftest$ac_exeext'
32267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32268   (eval $ac_try) 2>&5
32269   ac_status=$?
32270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271   (exit $ac_status); }; }; then
32272   ol_cv_pthread_lib_lpthread_woff=yes
32273 else
32274   echo "$as_me: failed program was:" >&5
32275 sed 's/^/| /' conftest.$ac_ext >&5
32276
32277 ol_cv_pthread_lib_lpthread_woff=no
32278 fi
32279 rm -f conftest.err conftest.$ac_objext \
32280       conftest$ac_exeext conftest.$ac_ext
32281 else
32282   cat >conftest.$ac_ext <<_ACEOF
32283
32284 /* pthread test headers */
32285 #include <pthread.h>
32286 #if HAVE_PTHREADS < 7
32287 #include <errno.h>
32288 #endif
32289 #ifndef NULL
32290 #define NULL (void*)0
32291 #endif
32292
32293 static void *task(p)
32294         void *p;
32295 {
32296         return (void *) (p == NULL);
32297 }
32298
32299
32300 int main(argc, argv)
32301         int argc;
32302         char **argv;
32303 {
32304
32305         /* pthread test function */
32306 #ifndef PTHREAD_CREATE_DETACHED
32307 #define PTHREAD_CREATE_DETACHED 1
32308 #endif
32309         pthread_t t;
32310         int status;
32311         int detach = PTHREAD_CREATE_DETACHED;
32312
32313 #if HAVE_PTHREADS > 4
32314         /* Final pthreads */
32315         pthread_attr_t attr;
32316
32317         status = pthread_attr_init(&attr);
32318         if( status ) return status;
32319
32320 #if HAVE_PTHREADS < 7
32321         status = pthread_attr_setdetachstate(&attr, &detach);
32322         if( status < 0 ) status = errno;
32323 #else
32324         status = pthread_attr_setdetachstate(&attr, detach);
32325 #endif
32326         if( status ) return status;
32327         status = pthread_create( &t, &attr, task, NULL );
32328 #if HAVE_PTHREADS < 7
32329         if( status < 0 ) status = errno;
32330 #endif
32331         if( status ) return status;
32332 #else
32333         /* Draft 4 pthreads */
32334         status = pthread_create( &t, pthread_attr_default, task, NULL );
32335         if( status ) return errno;
32336
32337         /* give thread a chance to complete */
32338         /* it should remain joinable and hence detachable */
32339         sleep( 1 );
32340
32341         status = pthread_detach( &t );
32342         if( status ) return errno;
32343 #endif
32344
32345 #ifdef HAVE_LINUX_THREADS
32346         pthread_kill_other_threads_np();
32347 #endif
32348
32349         return 0;
32350
32351 }
32352
32353 _ACEOF
32354 rm -f conftest$ac_exeext
32355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32356   (eval $ac_link) 2>&5
32357   ac_status=$?
32358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32361   (eval $ac_try) 2>&5
32362   ac_status=$?
32363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364   (exit $ac_status); }; }; then
32365   ol_cv_pthread_lib_lpthread_woff=yes
32366 else
32367   echo "$as_me: program exited with status $ac_status" >&5
32368 echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32370
32371 ( exit $ac_status )
32372 ol_cv_pthread_lib_lpthread_woff=no
32373 fi
32374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32375 fi
32376
32377                 # restore the LIBS
32378                 LIBS="$ol_LIBS"
32379
32380 fi
32381 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32382 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32383
32384         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32385                 ol_link_pthreads="-lpthread -Wl,-woff,85"
32386                 ol_link_threads=posix
32387         fi
32388 fi
32389
32390
32391                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32392 if test "$ol_link_threads" = no ; then
32393         # try -lpthread
32394         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32395 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32396 if test "${ol_cv_pthread_lpthread+set}" = set; then
32397   echo $ECHO_N "(cached) $ECHO_C" >&6
32398 else
32399
32400                 # save the flags
32401                 ol_LIBS="$LIBS"
32402                 LIBS="-lpthread $LIBS"
32403
32404                 if test "$cross_compiling" = yes; then
32405   cat >conftest.$ac_ext <<_ACEOF
32406 /* confdefs.h.  */
32407 _ACEOF
32408 cat confdefs.h >>conftest.$ac_ext
32409 cat >>conftest.$ac_ext <<_ACEOF
32410 /* end confdefs.h.  */
32411
32412 /* pthread test headers */
32413 #include <pthread.h>
32414 #if HAVE_PTHREADS < 7
32415 #include <errno.h>
32416 #endif
32417 #ifndef NULL
32418 #define NULL (void*)0
32419 #endif
32420
32421 static void *task(p)
32422         void *p;
32423 {
32424         return (void *) (p == NULL);
32425 }
32426
32427 int
32428 main ()
32429 {
32430
32431         /* pthread test function */
32432 #ifndef PTHREAD_CREATE_DETACHED
32433 #define PTHREAD_CREATE_DETACHED 1
32434 #endif
32435         pthread_t t;
32436         int status;
32437         int detach = PTHREAD_CREATE_DETACHED;
32438
32439 #if HAVE_PTHREADS > 4
32440         /* Final pthreads */
32441         pthread_attr_t attr;
32442
32443         status = pthread_attr_init(&attr);
32444         if( status ) return status;
32445
32446 #if HAVE_PTHREADS < 7
32447         status = pthread_attr_setdetachstate(&attr, &detach);
32448         if( status < 0 ) status = errno;
32449 #else
32450         status = pthread_attr_setdetachstate(&attr, detach);
32451 #endif
32452         if( status ) return status;
32453         status = pthread_create( &t, &attr, task, NULL );
32454 #if HAVE_PTHREADS < 7
32455         if( status < 0 ) status = errno;
32456 #endif
32457         if( status ) return status;
32458 #else
32459         /* Draft 4 pthreads */
32460         status = pthread_create( &t, pthread_attr_default, task, NULL );
32461         if( status ) return errno;
32462
32463         /* give thread a chance to complete */
32464         /* it should remain joinable and hence detachable */
32465         sleep( 1 );
32466
32467         status = pthread_detach( &t );
32468         if( status ) return errno;
32469 #endif
32470
32471 #ifdef HAVE_LINUX_THREADS
32472         pthread_kill_other_threads_np();
32473 #endif
32474
32475         return 0;
32476
32477   ;
32478   return 0;
32479 }
32480 _ACEOF
32481 rm -f conftest.$ac_objext conftest$ac_exeext
32482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32483   (eval $ac_link) 2>conftest.er1
32484   ac_status=$?
32485   grep -v '^ *+' conftest.er1 >conftest.err
32486   rm -f conftest.er1
32487   cat conftest.err >&5
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); } &&
32490          { ac_try='test -z "$ac_c_werror_flag"
32491                          || test ! -s conftest.err'
32492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32493   (eval $ac_try) 2>&5
32494   ac_status=$?
32495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496   (exit $ac_status); }; } &&
32497          { ac_try='test -s conftest$ac_exeext'
32498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499   (eval $ac_try) 2>&5
32500   ac_status=$?
32501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); }; }; then
32503   ol_cv_pthread_lpthread=yes
32504 else
32505   echo "$as_me: failed program was:" >&5
32506 sed 's/^/| /' conftest.$ac_ext >&5
32507
32508 ol_cv_pthread_lpthread=no
32509 fi
32510 rm -f conftest.err conftest.$ac_objext \
32511       conftest$ac_exeext conftest.$ac_ext
32512 else
32513   cat >conftest.$ac_ext <<_ACEOF
32514
32515 /* pthread test headers */
32516 #include <pthread.h>
32517 #if HAVE_PTHREADS < 7
32518 #include <errno.h>
32519 #endif
32520 #ifndef NULL
32521 #define NULL (void*)0
32522 #endif
32523
32524 static void *task(p)
32525         void *p;
32526 {
32527         return (void *) (p == NULL);
32528 }
32529
32530
32531 int main(argc, argv)
32532         int argc;
32533         char **argv;
32534 {
32535
32536         /* pthread test function */
32537 #ifndef PTHREAD_CREATE_DETACHED
32538 #define PTHREAD_CREATE_DETACHED 1
32539 #endif
32540         pthread_t t;
32541         int status;
32542         int detach = PTHREAD_CREATE_DETACHED;
32543
32544 #if HAVE_PTHREADS > 4
32545         /* Final pthreads */
32546         pthread_attr_t attr;
32547
32548         status = pthread_attr_init(&attr);
32549         if( status ) return status;
32550
32551 #if HAVE_PTHREADS < 7
32552         status = pthread_attr_setdetachstate(&attr, &detach);
32553         if( status < 0 ) status = errno;
32554 #else
32555         status = pthread_attr_setdetachstate(&attr, detach);
32556 #endif
32557         if( status ) return status;
32558         status = pthread_create( &t, &attr, task, NULL );
32559 #if HAVE_PTHREADS < 7
32560         if( status < 0 ) status = errno;
32561 #endif
32562         if( status ) return status;
32563 #else
32564         /* Draft 4 pthreads */
32565         status = pthread_create( &t, pthread_attr_default, task, NULL );
32566         if( status ) return errno;
32567
32568         /* give thread a chance to complete */
32569         /* it should remain joinable and hence detachable */
32570         sleep( 1 );
32571
32572         status = pthread_detach( &t );
32573         if( status ) return errno;
32574 #endif
32575
32576 #ifdef HAVE_LINUX_THREADS
32577         pthread_kill_other_threads_np();
32578 #endif
32579
32580         return 0;
32581
32582 }
32583
32584 _ACEOF
32585 rm -f conftest$ac_exeext
32586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32587   (eval $ac_link) 2>&5
32588   ac_status=$?
32589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32592   (eval $ac_try) 2>&5
32593   ac_status=$?
32594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595   (exit $ac_status); }; }; then
32596   ol_cv_pthread_lpthread=yes
32597 else
32598   echo "$as_me: program exited with status $ac_status" >&5
32599 echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32601
32602 ( exit $ac_status )
32603 ol_cv_pthread_lpthread=no
32604 fi
32605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32606 fi
32607
32608                 # restore the LIBS
32609                 LIBS="$ol_LIBS"
32610
32611 fi
32612 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32613 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32614
32615         if test $ol_cv_pthread_lpthread = yes ; then
32616                 ol_link_pthreads="-lpthread"
32617                 ol_link_threads=posix
32618         fi
32619 fi
32620
32621                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32622 if test "$ol_link_threads" = no ; then
32623         # try -lc_r
32624         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32625 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32626 if test "${ol_cv_pthread_lc_r+set}" = set; then
32627   echo $ECHO_N "(cached) $ECHO_C" >&6
32628 else
32629
32630                 # save the flags
32631                 ol_LIBS="$LIBS"
32632                 LIBS="-lc_r $LIBS"
32633
32634                 if test "$cross_compiling" = yes; then
32635   cat >conftest.$ac_ext <<_ACEOF
32636 /* confdefs.h.  */
32637 _ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h.  */
32641
32642 /* pthread test headers */
32643 #include <pthread.h>
32644 #if HAVE_PTHREADS < 7
32645 #include <errno.h>
32646 #endif
32647 #ifndef NULL
32648 #define NULL (void*)0
32649 #endif
32650
32651 static void *task(p)
32652         void *p;
32653 {
32654         return (void *) (p == NULL);
32655 }
32656
32657 int
32658 main ()
32659 {
32660
32661         /* pthread test function */
32662 #ifndef PTHREAD_CREATE_DETACHED
32663 #define PTHREAD_CREATE_DETACHED 1
32664 #endif
32665         pthread_t t;
32666         int status;
32667         int detach = PTHREAD_CREATE_DETACHED;
32668
32669 #if HAVE_PTHREADS > 4
32670         /* Final pthreads */
32671         pthread_attr_t attr;
32672
32673         status = pthread_attr_init(&attr);
32674         if( status ) return status;
32675
32676 #if HAVE_PTHREADS < 7
32677         status = pthread_attr_setdetachstate(&attr, &detach);
32678         if( status < 0 ) status = errno;
32679 #else
32680         status = pthread_attr_setdetachstate(&attr, detach);
32681 #endif
32682         if( status ) return status;
32683         status = pthread_create( &t, &attr, task, NULL );
32684 #if HAVE_PTHREADS < 7
32685         if( status < 0 ) status = errno;
32686 #endif
32687         if( status ) return status;
32688 #else
32689         /* Draft 4 pthreads */
32690         status = pthread_create( &t, pthread_attr_default, task, NULL );
32691         if( status ) return errno;
32692
32693         /* give thread a chance to complete */
32694         /* it should remain joinable and hence detachable */
32695         sleep( 1 );
32696
32697         status = pthread_detach( &t );
32698         if( status ) return errno;
32699 #endif
32700
32701 #ifdef HAVE_LINUX_THREADS
32702         pthread_kill_other_threads_np();
32703 #endif
32704
32705         return 0;
32706
32707   ;
32708   return 0;
32709 }
32710 _ACEOF
32711 rm -f conftest.$ac_objext conftest$ac_exeext
32712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32713   (eval $ac_link) 2>conftest.er1
32714   ac_status=$?
32715   grep -v '^ *+' conftest.er1 >conftest.err
32716   rm -f conftest.er1
32717   cat conftest.err >&5
32718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719   (exit $ac_status); } &&
32720          { ac_try='test -z "$ac_c_werror_flag"
32721                          || test ! -s conftest.err'
32722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723   (eval $ac_try) 2>&5
32724   ac_status=$?
32725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726   (exit $ac_status); }; } &&
32727          { ac_try='test -s conftest$ac_exeext'
32728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729   (eval $ac_try) 2>&5
32730   ac_status=$?
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); }; }; then
32733   ol_cv_pthread_lc_r=yes
32734 else
32735   echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32737
32738 ol_cv_pthread_lc_r=no
32739 fi
32740 rm -f conftest.err conftest.$ac_objext \
32741       conftest$ac_exeext conftest.$ac_ext
32742 else
32743   cat >conftest.$ac_ext <<_ACEOF
32744
32745 /* pthread test headers */
32746 #include <pthread.h>
32747 #if HAVE_PTHREADS < 7
32748 #include <errno.h>
32749 #endif
32750 #ifndef NULL
32751 #define NULL (void*)0
32752 #endif
32753
32754 static void *task(p)
32755         void *p;
32756 {
32757         return (void *) (p == NULL);
32758 }
32759
32760
32761 int main(argc, argv)
32762         int argc;
32763         char **argv;
32764 {
32765
32766         /* pthread test function */
32767 #ifndef PTHREAD_CREATE_DETACHED
32768 #define PTHREAD_CREATE_DETACHED 1
32769 #endif
32770         pthread_t t;
32771         int status;
32772         int detach = PTHREAD_CREATE_DETACHED;
32773
32774 #if HAVE_PTHREADS > 4
32775         /* Final pthreads */
32776         pthread_attr_t attr;
32777
32778         status = pthread_attr_init(&attr);
32779         if( status ) return status;
32780
32781 #if HAVE_PTHREADS < 7
32782         status = pthread_attr_setdetachstate(&attr, &detach);
32783         if( status < 0 ) status = errno;
32784 #else
32785         status = pthread_attr_setdetachstate(&attr, detach);
32786 #endif
32787         if( status ) return status;
32788         status = pthread_create( &t, &attr, task, NULL );
32789 #if HAVE_PTHREADS < 7
32790         if( status < 0 ) status = errno;
32791 #endif
32792         if( status ) return status;
32793 #else
32794         /* Draft 4 pthreads */
32795         status = pthread_create( &t, pthread_attr_default, task, NULL );
32796         if( status ) return errno;
32797
32798         /* give thread a chance to complete */
32799         /* it should remain joinable and hence detachable */
32800         sleep( 1 );
32801
32802         status = pthread_detach( &t );
32803         if( status ) return errno;
32804 #endif
32805
32806 #ifdef HAVE_LINUX_THREADS
32807         pthread_kill_other_threads_np();
32808 #endif
32809
32810         return 0;
32811
32812 }
32813
32814 _ACEOF
32815 rm -f conftest$ac_exeext
32816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32817   (eval $ac_link) 2>&5
32818   ac_status=$?
32819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32822   (eval $ac_try) 2>&5
32823   ac_status=$?
32824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825   (exit $ac_status); }; }; then
32826   ol_cv_pthread_lc_r=yes
32827 else
32828   echo "$as_me: program exited with status $ac_status" >&5
32829 echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32831
32832 ( exit $ac_status )
32833 ol_cv_pthread_lc_r=no
32834 fi
32835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32836 fi
32837
32838                 # restore the LIBS
32839                 LIBS="$ol_LIBS"
32840
32841 fi
32842 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32843 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32844
32845         if test $ol_cv_pthread_lc_r = yes ; then
32846                 ol_link_pthreads="-lc_r"
32847                 ol_link_threads=posix
32848         fi
32849 fi
32850
32851
32852                 # Pthread try link: -threads (ol_cv_pthread_threads)
32853 if test "$ol_link_threads" = no ; then
32854         # try -threads
32855         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32856 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32857 if test "${ol_cv_pthread_threads+set}" = set; then
32858   echo $ECHO_N "(cached) $ECHO_C" >&6
32859 else
32860
32861                 # save the flags
32862                 ol_LIBS="$LIBS"
32863                 LIBS="-threads $LIBS"
32864
32865                 if test "$cross_compiling" = yes; then
32866   cat >conftest.$ac_ext <<_ACEOF
32867 /* confdefs.h.  */
32868 _ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h.  */
32872
32873 /* pthread test headers */
32874 #include <pthread.h>
32875 #if HAVE_PTHREADS < 7
32876 #include <errno.h>
32877 #endif
32878 #ifndef NULL
32879 #define NULL (void*)0
32880 #endif
32881
32882 static void *task(p)
32883         void *p;
32884 {
32885         return (void *) (p == NULL);
32886 }
32887
32888 int
32889 main ()
32890 {
32891
32892         /* pthread test function */
32893 #ifndef PTHREAD_CREATE_DETACHED
32894 #define PTHREAD_CREATE_DETACHED 1
32895 #endif
32896         pthread_t t;
32897         int status;
32898         int detach = PTHREAD_CREATE_DETACHED;
32899
32900 #if HAVE_PTHREADS > 4
32901         /* Final pthreads */
32902         pthread_attr_t attr;
32903
32904         status = pthread_attr_init(&attr);
32905         if( status ) return status;
32906
32907 #if HAVE_PTHREADS < 7
32908         status = pthread_attr_setdetachstate(&attr, &detach);
32909         if( status < 0 ) status = errno;
32910 #else
32911         status = pthread_attr_setdetachstate(&attr, detach);
32912 #endif
32913         if( status ) return status;
32914         status = pthread_create( &t, &attr, task, NULL );
32915 #if HAVE_PTHREADS < 7
32916         if( status < 0 ) status = errno;
32917 #endif
32918         if( status ) return status;
32919 #else
32920         /* Draft 4 pthreads */
32921         status = pthread_create( &t, pthread_attr_default, task, NULL );
32922         if( status ) return errno;
32923
32924         /* give thread a chance to complete */
32925         /* it should remain joinable and hence detachable */
32926         sleep( 1 );
32927
32928         status = pthread_detach( &t );
32929         if( status ) return errno;
32930 #endif
32931
32932 #ifdef HAVE_LINUX_THREADS
32933         pthread_kill_other_threads_np();
32934 #endif
32935
32936         return 0;
32937
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 rm -f conftest.$ac_objext conftest$ac_exeext
32943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32944   (eval $ac_link) 2>conftest.er1
32945   ac_status=$?
32946   grep -v '^ *+' conftest.er1 >conftest.err
32947   rm -f conftest.er1
32948   cat conftest.err >&5
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); } &&
32951          { ac_try='test -z "$ac_c_werror_flag"
32952                          || test ! -s conftest.err'
32953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954   (eval $ac_try) 2>&5
32955   ac_status=$?
32956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957   (exit $ac_status); }; } &&
32958          { ac_try='test -s conftest$ac_exeext'
32959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960   (eval $ac_try) 2>&5
32961   ac_status=$?
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); }; }; then
32964   ol_cv_pthread_threads=yes
32965 else
32966   echo "$as_me: failed program was:" >&5
32967 sed 's/^/| /' conftest.$ac_ext >&5
32968
32969 ol_cv_pthread_threads=no
32970 fi
32971 rm -f conftest.err conftest.$ac_objext \
32972       conftest$ac_exeext conftest.$ac_ext
32973 else
32974   cat >conftest.$ac_ext <<_ACEOF
32975
32976 /* pthread test headers */
32977 #include <pthread.h>
32978 #if HAVE_PTHREADS < 7
32979 #include <errno.h>
32980 #endif
32981 #ifndef NULL
32982 #define NULL (void*)0
32983 #endif
32984
32985 static void *task(p)
32986         void *p;
32987 {
32988         return (void *) (p == NULL);
32989 }
32990
32991
32992 int main(argc, argv)
32993         int argc;
32994         char **argv;
32995 {
32996
32997         /* pthread test function */
32998 #ifndef PTHREAD_CREATE_DETACHED
32999 #define PTHREAD_CREATE_DETACHED 1
33000 #endif
33001         pthread_t t;
33002         int status;
33003         int detach = PTHREAD_CREATE_DETACHED;
33004
33005 #if HAVE_PTHREADS > 4
33006         /* Final pthreads */
33007         pthread_attr_t attr;
33008
33009         status = pthread_attr_init(&attr);
33010         if( status ) return status;
33011
33012 #if HAVE_PTHREADS < 7
33013         status = pthread_attr_setdetachstate(&attr, &detach);
33014         if( status < 0 ) status = errno;
33015 #else
33016         status = pthread_attr_setdetachstate(&attr, detach);
33017 #endif
33018         if( status ) return status;
33019         status = pthread_create( &t, &attr, task, NULL );
33020 #if HAVE_PTHREADS < 7
33021         if( status < 0 ) status = errno;
33022 #endif
33023         if( status ) return status;
33024 #else
33025         /* Draft 4 pthreads */
33026         status = pthread_create( &t, pthread_attr_default, task, NULL );
33027         if( status ) return errno;
33028
33029         /* give thread a chance to complete */
33030         /* it should remain joinable and hence detachable */
33031         sleep( 1 );
33032
33033         status = pthread_detach( &t );
33034         if( status ) return errno;
33035 #endif
33036
33037 #ifdef HAVE_LINUX_THREADS
33038         pthread_kill_other_threads_np();
33039 #endif
33040
33041         return 0;
33042
33043 }
33044
33045 _ACEOF
33046 rm -f conftest$ac_exeext
33047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33048   (eval $ac_link) 2>&5
33049   ac_status=$?
33050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053   (eval $ac_try) 2>&5
33054   ac_status=$?
33055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056   (exit $ac_status); }; }; then
33057   ol_cv_pthread_threads=yes
33058 else
33059   echo "$as_me: program exited with status $ac_status" >&5
33060 echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33062
33063 ( exit $ac_status )
33064 ol_cv_pthread_threads=no
33065 fi
33066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33067 fi
33068
33069                 # restore the LIBS
33070                 LIBS="$ol_LIBS"
33071
33072 fi
33073 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33074 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33075
33076         if test $ol_cv_pthread_threads = yes ; then
33077                 ol_link_pthreads="-threads"
33078                 ol_link_threads=posix
33079         fi
33080 fi
33081
33082
33083                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33084 if test "$ol_link_threads" = no ; then
33085         # try -lpthreads -lmach -lexc -lc_r
33086         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33087 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33088 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33089   echo $ECHO_N "(cached) $ECHO_C" >&6
33090 else
33091
33092                 # save the flags
33093                 ol_LIBS="$LIBS"
33094                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33095
33096                 if test "$cross_compiling" = yes; then
33097   cat >conftest.$ac_ext <<_ACEOF
33098 /* confdefs.h.  */
33099 _ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h.  */
33103
33104 /* pthread test headers */
33105 #include <pthread.h>
33106 #if HAVE_PTHREADS < 7
33107 #include <errno.h>
33108 #endif
33109 #ifndef NULL
33110 #define NULL (void*)0
33111 #endif
33112
33113 static void *task(p)
33114         void *p;
33115 {
33116         return (void *) (p == NULL);
33117 }
33118
33119 int
33120 main ()
33121 {
33122
33123         /* pthread test function */
33124 #ifndef PTHREAD_CREATE_DETACHED
33125 #define PTHREAD_CREATE_DETACHED 1
33126 #endif
33127         pthread_t t;
33128         int status;
33129         int detach = PTHREAD_CREATE_DETACHED;
33130
33131 #if HAVE_PTHREADS > 4
33132         /* Final pthreads */
33133         pthread_attr_t attr;
33134
33135         status = pthread_attr_init(&attr);
33136         if( status ) return status;
33137
33138 #if HAVE_PTHREADS < 7
33139         status = pthread_attr_setdetachstate(&attr, &detach);
33140         if( status < 0 ) status = errno;
33141 #else
33142         status = pthread_attr_setdetachstate(&attr, detach);
33143 #endif
33144         if( status ) return status;
33145         status = pthread_create( &t, &attr, task, NULL );
33146 #if HAVE_PTHREADS < 7
33147         if( status < 0 ) status = errno;
33148 #endif
33149         if( status ) return status;
33150 #else
33151         /* Draft 4 pthreads */
33152         status = pthread_create( &t, pthread_attr_default, task, NULL );
33153         if( status ) return errno;
33154
33155         /* give thread a chance to complete */
33156         /* it should remain joinable and hence detachable */
33157         sleep( 1 );
33158
33159         status = pthread_detach( &t );
33160         if( status ) return errno;
33161 #endif
33162
33163 #ifdef HAVE_LINUX_THREADS
33164         pthread_kill_other_threads_np();
33165 #endif
33166
33167         return 0;
33168
33169   ;
33170   return 0;
33171 }
33172 _ACEOF
33173 rm -f conftest.$ac_objext conftest$ac_exeext
33174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33175   (eval $ac_link) 2>conftest.er1
33176   ac_status=$?
33177   grep -v '^ *+' conftest.er1 >conftest.err
33178   rm -f conftest.er1
33179   cat conftest.err >&5
33180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181   (exit $ac_status); } &&
33182          { ac_try='test -z "$ac_c_werror_flag"
33183                          || test ! -s conftest.err'
33184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33185   (eval $ac_try) 2>&5
33186   ac_status=$?
33187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188   (exit $ac_status); }; } &&
33189          { ac_try='test -s conftest$ac_exeext'
33190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33191   (eval $ac_try) 2>&5
33192   ac_status=$?
33193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194   (exit $ac_status); }; }; then
33195   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33196 else
33197   echo "$as_me: failed program was:" >&5
33198 sed 's/^/| /' conftest.$ac_ext >&5
33199
33200 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33201 fi
33202 rm -f conftest.err conftest.$ac_objext \
33203       conftest$ac_exeext conftest.$ac_ext
33204 else
33205   cat >conftest.$ac_ext <<_ACEOF
33206
33207 /* pthread test headers */
33208 #include <pthread.h>
33209 #if HAVE_PTHREADS < 7
33210 #include <errno.h>
33211 #endif
33212 #ifndef NULL
33213 #define NULL (void*)0
33214 #endif
33215
33216 static void *task(p)
33217         void *p;
33218 {
33219         return (void *) (p == NULL);
33220 }
33221
33222
33223 int main(argc, argv)
33224         int argc;
33225         char **argv;
33226 {
33227
33228         /* pthread test function */
33229 #ifndef PTHREAD_CREATE_DETACHED
33230 #define PTHREAD_CREATE_DETACHED 1
33231 #endif
33232         pthread_t t;
33233         int status;
33234         int detach = PTHREAD_CREATE_DETACHED;
33235
33236 #if HAVE_PTHREADS > 4
33237         /* Final pthreads */
33238         pthread_attr_t attr;
33239
33240         status = pthread_attr_init(&attr);
33241         if( status ) return status;
33242
33243 #if HAVE_PTHREADS < 7
33244         status = pthread_attr_setdetachstate(&attr, &detach);
33245         if( status < 0 ) status = errno;
33246 #else
33247         status = pthread_attr_setdetachstate(&attr, detach);
33248 #endif
33249         if( status ) return status;
33250         status = pthread_create( &t, &attr, task, NULL );
33251 #if HAVE_PTHREADS < 7
33252         if( status < 0 ) status = errno;
33253 #endif
33254         if( status ) return status;
33255 #else
33256         /* Draft 4 pthreads */
33257         status = pthread_create( &t, pthread_attr_default, task, NULL );
33258         if( status ) return errno;
33259
33260         /* give thread a chance to complete */
33261         /* it should remain joinable and hence detachable */
33262         sleep( 1 );
33263
33264         status = pthread_detach( &t );
33265         if( status ) return errno;
33266 #endif
33267
33268 #ifdef HAVE_LINUX_THREADS
33269         pthread_kill_other_threads_np();
33270 #endif
33271
33272         return 0;
33273
33274 }
33275
33276 _ACEOF
33277 rm -f conftest$ac_exeext
33278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33279   (eval $ac_link) 2>&5
33280   ac_status=$?
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33284   (eval $ac_try) 2>&5
33285   ac_status=$?
33286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287   (exit $ac_status); }; }; then
33288   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33289 else
33290   echo "$as_me: program exited with status $ac_status" >&5
33291 echo "$as_me: failed program was:" >&5
33292 sed 's/^/| /' conftest.$ac_ext >&5
33293
33294 ( exit $ac_status )
33295 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33296 fi
33297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33298 fi
33299
33300                 # restore the LIBS
33301                 LIBS="$ol_LIBS"
33302
33303 fi
33304 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33305 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33306
33307         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33308                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33309                 ol_link_threads=posix
33310         fi
33311 fi
33312
33313                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33314 if test "$ol_link_threads" = no ; then
33315         # try -lpthreads -lmach -lexc
33316         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33317 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33318 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33319   echo $ECHO_N "(cached) $ECHO_C" >&6
33320 else
33321
33322                 # save the flags
33323                 ol_LIBS="$LIBS"
33324                 LIBS="-lpthreads -lmach -lexc $LIBS"
33325
33326                 if test "$cross_compiling" = yes; then
33327   cat >conftest.$ac_ext <<_ACEOF
33328 /* confdefs.h.  */
33329 _ACEOF
33330 cat confdefs.h >>conftest.$ac_ext
33331 cat >>conftest.$ac_ext <<_ACEOF
33332 /* end confdefs.h.  */
33333
33334 /* pthread test headers */
33335 #include <pthread.h>
33336 #if HAVE_PTHREADS < 7
33337 #include <errno.h>
33338 #endif
33339 #ifndef NULL
33340 #define NULL (void*)0
33341 #endif
33342
33343 static void *task(p)
33344         void *p;
33345 {
33346         return (void *) (p == NULL);
33347 }
33348
33349 int
33350 main ()
33351 {
33352
33353         /* pthread test function */
33354 #ifndef PTHREAD_CREATE_DETACHED
33355 #define PTHREAD_CREATE_DETACHED 1
33356 #endif
33357         pthread_t t;
33358         int status;
33359         int detach = PTHREAD_CREATE_DETACHED;
33360
33361 #if HAVE_PTHREADS > 4
33362         /* Final pthreads */
33363         pthread_attr_t attr;
33364
33365         status = pthread_attr_init(&attr);
33366         if( status ) return status;
33367
33368 #if HAVE_PTHREADS < 7
33369         status = pthread_attr_setdetachstate(&attr, &detach);
33370         if( status < 0 ) status = errno;
33371 #else
33372         status = pthread_attr_setdetachstate(&attr, detach);
33373 #endif
33374         if( status ) return status;
33375         status = pthread_create( &t, &attr, task, NULL );
33376 #if HAVE_PTHREADS < 7
33377         if( status < 0 ) status = errno;
33378 #endif
33379         if( status ) return status;
33380 #else
33381         /* Draft 4 pthreads */
33382         status = pthread_create( &t, pthread_attr_default, task, NULL );
33383         if( status ) return errno;
33384
33385         /* give thread a chance to complete */
33386         /* it should remain joinable and hence detachable */
33387         sleep( 1 );
33388
33389         status = pthread_detach( &t );
33390         if( status ) return errno;
33391 #endif
33392
33393 #ifdef HAVE_LINUX_THREADS
33394         pthread_kill_other_threads_np();
33395 #endif
33396
33397         return 0;
33398
33399   ;
33400   return 0;
33401 }
33402 _ACEOF
33403 rm -f conftest.$ac_objext conftest$ac_exeext
33404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33405   (eval $ac_link) 2>conftest.er1
33406   ac_status=$?
33407   grep -v '^ *+' conftest.er1 >conftest.err
33408   rm -f conftest.er1
33409   cat conftest.err >&5
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); } &&
33412          { ac_try='test -z "$ac_c_werror_flag"
33413                          || test ! -s conftest.err'
33414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415   (eval $ac_try) 2>&5
33416   ac_status=$?
33417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418   (exit $ac_status); }; } &&
33419          { ac_try='test -s conftest$ac_exeext'
33420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33421   (eval $ac_try) 2>&5
33422   ac_status=$?
33423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424   (exit $ac_status); }; }; then
33425   ol_cv_pthread_lpthreads_lmach_lexc=yes
33426 else
33427   echo "$as_me: failed program was:" >&5
33428 sed 's/^/| /' conftest.$ac_ext >&5
33429
33430 ol_cv_pthread_lpthreads_lmach_lexc=no
33431 fi
33432 rm -f conftest.err conftest.$ac_objext \
33433       conftest$ac_exeext conftest.$ac_ext
33434 else
33435   cat >conftest.$ac_ext <<_ACEOF
33436
33437 /* pthread test headers */
33438 #include <pthread.h>
33439 #if HAVE_PTHREADS < 7
33440 #include <errno.h>
33441 #endif
33442 #ifndef NULL
33443 #define NULL (void*)0
33444 #endif
33445
33446 static void *task(p)
33447         void *p;
33448 {
33449         return (void *) (p == NULL);
33450 }
33451
33452
33453 int main(argc, argv)
33454         int argc;
33455         char **argv;
33456 {
33457
33458         /* pthread test function */
33459 #ifndef PTHREAD_CREATE_DETACHED
33460 #define PTHREAD_CREATE_DETACHED 1
33461 #endif
33462         pthread_t t;
33463         int status;
33464         int detach = PTHREAD_CREATE_DETACHED;
33465
33466 #if HAVE_PTHREADS > 4
33467         /* Final pthreads */
33468         pthread_attr_t attr;
33469
33470         status = pthread_attr_init(&attr);
33471         if( status ) return status;
33472
33473 #if HAVE_PTHREADS < 7
33474         status = pthread_attr_setdetachstate(&attr, &detach);
33475         if( status < 0 ) status = errno;
33476 #else
33477         status = pthread_attr_setdetachstate(&attr, detach);
33478 #endif
33479         if( status ) return status;
33480         status = pthread_create( &t, &attr, task, NULL );
33481 #if HAVE_PTHREADS < 7
33482         if( status < 0 ) status = errno;
33483 #endif
33484         if( status ) return status;
33485 #else
33486         /* Draft 4 pthreads */
33487         status = pthread_create( &t, pthread_attr_default, task, NULL );
33488         if( status ) return errno;
33489
33490         /* give thread a chance to complete */
33491         /* it should remain joinable and hence detachable */
33492         sleep( 1 );
33493
33494         status = pthread_detach( &t );
33495         if( status ) return errno;
33496 #endif
33497
33498 #ifdef HAVE_LINUX_THREADS
33499         pthread_kill_other_threads_np();
33500 #endif
33501
33502         return 0;
33503
33504 }
33505
33506 _ACEOF
33507 rm -f conftest$ac_exeext
33508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33509   (eval $ac_link) 2>&5
33510   ac_status=$?
33511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33514   (eval $ac_try) 2>&5
33515   ac_status=$?
33516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517   (exit $ac_status); }; }; then
33518   ol_cv_pthread_lpthreads_lmach_lexc=yes
33519 else
33520   echo "$as_me: program exited with status $ac_status" >&5
33521 echo "$as_me: failed program was:" >&5
33522 sed 's/^/| /' conftest.$ac_ext >&5
33523
33524 ( exit $ac_status )
33525 ol_cv_pthread_lpthreads_lmach_lexc=no
33526 fi
33527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33528 fi
33529
33530                 # restore the LIBS
33531                 LIBS="$ol_LIBS"
33532
33533 fi
33534 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33535 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33536
33537         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33538                 ol_link_pthreads="-lpthreads -lmach -lexc"
33539                 ol_link_threads=posix
33540         fi
33541 fi
33542
33543                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33544 if test "$ol_link_threads" = no ; then
33545         # try -lpthreads -lexc
33546         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33547 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33548 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33549   echo $ECHO_N "(cached) $ECHO_C" >&6
33550 else
33551
33552                 # save the flags
33553                 ol_LIBS="$LIBS"
33554                 LIBS="-lpthreads -lexc $LIBS"
33555
33556                 if test "$cross_compiling" = yes; then
33557   cat >conftest.$ac_ext <<_ACEOF
33558 /* confdefs.h.  */
33559 _ACEOF
33560 cat confdefs.h >>conftest.$ac_ext
33561 cat >>conftest.$ac_ext <<_ACEOF
33562 /* end confdefs.h.  */
33563
33564 /* pthread test headers */
33565 #include <pthread.h>
33566 #if HAVE_PTHREADS < 7
33567 #include <errno.h>
33568 #endif
33569 #ifndef NULL
33570 #define NULL (void*)0
33571 #endif
33572
33573 static void *task(p)
33574         void *p;
33575 {
33576         return (void *) (p == NULL);
33577 }
33578
33579 int
33580 main ()
33581 {
33582
33583         /* pthread test function */
33584 #ifndef PTHREAD_CREATE_DETACHED
33585 #define PTHREAD_CREATE_DETACHED 1
33586 #endif
33587         pthread_t t;
33588         int status;
33589         int detach = PTHREAD_CREATE_DETACHED;
33590
33591 #if HAVE_PTHREADS > 4
33592         /* Final pthreads */
33593         pthread_attr_t attr;
33594
33595         status = pthread_attr_init(&attr);
33596         if( status ) return status;
33597
33598 #if HAVE_PTHREADS < 7
33599         status = pthread_attr_setdetachstate(&attr, &detach);
33600         if( status < 0 ) status = errno;
33601 #else
33602         status = pthread_attr_setdetachstate(&attr, detach);
33603 #endif
33604         if( status ) return status;
33605         status = pthread_create( &t, &attr, task, NULL );
33606 #if HAVE_PTHREADS < 7
33607         if( status < 0 ) status = errno;
33608 #endif
33609         if( status ) return status;
33610 #else
33611         /* Draft 4 pthreads */
33612         status = pthread_create( &t, pthread_attr_default, task, NULL );
33613         if( status ) return errno;
33614
33615         /* give thread a chance to complete */
33616         /* it should remain joinable and hence detachable */
33617         sleep( 1 );
33618
33619         status = pthread_detach( &t );
33620         if( status ) return errno;
33621 #endif
33622
33623 #ifdef HAVE_LINUX_THREADS
33624         pthread_kill_other_threads_np();
33625 #endif
33626
33627         return 0;
33628
33629   ;
33630   return 0;
33631 }
33632 _ACEOF
33633 rm -f conftest.$ac_objext conftest$ac_exeext
33634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33635   (eval $ac_link) 2>conftest.er1
33636   ac_status=$?
33637   grep -v '^ *+' conftest.er1 >conftest.err
33638   rm -f conftest.er1
33639   cat conftest.err >&5
33640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641   (exit $ac_status); } &&
33642          { ac_try='test -z "$ac_c_werror_flag"
33643                          || test ! -s conftest.err'
33644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645   (eval $ac_try) 2>&5
33646   ac_status=$?
33647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648   (exit $ac_status); }; } &&
33649          { ac_try='test -s conftest$ac_exeext'
33650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651   (eval $ac_try) 2>&5
33652   ac_status=$?
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); }; }; then
33655   ol_cv_pthread_lpthreads_lexc=yes
33656 else
33657   echo "$as_me: failed program was:" >&5
33658 sed 's/^/| /' conftest.$ac_ext >&5
33659
33660 ol_cv_pthread_lpthreads_lexc=no
33661 fi
33662 rm -f conftest.err conftest.$ac_objext \
33663       conftest$ac_exeext conftest.$ac_ext
33664 else
33665   cat >conftest.$ac_ext <<_ACEOF
33666
33667 /* pthread test headers */
33668 #include <pthread.h>
33669 #if HAVE_PTHREADS < 7
33670 #include <errno.h>
33671 #endif
33672 #ifndef NULL
33673 #define NULL (void*)0
33674 #endif
33675
33676 static void *task(p)
33677         void *p;
33678 {
33679         return (void *) (p == NULL);
33680 }
33681
33682
33683 int main(argc, argv)
33684         int argc;
33685         char **argv;
33686 {
33687
33688         /* pthread test function */
33689 #ifndef PTHREAD_CREATE_DETACHED
33690 #define PTHREAD_CREATE_DETACHED 1
33691 #endif
33692         pthread_t t;
33693         int status;
33694         int detach = PTHREAD_CREATE_DETACHED;
33695
33696 #if HAVE_PTHREADS > 4
33697         /* Final pthreads */
33698         pthread_attr_t attr;
33699
33700         status = pthread_attr_init(&attr);
33701         if( status ) return status;
33702
33703 #if HAVE_PTHREADS < 7
33704         status = pthread_attr_setdetachstate(&attr, &detach);
33705         if( status < 0 ) status = errno;
33706 #else
33707         status = pthread_attr_setdetachstate(&attr, detach);
33708 #endif
33709         if( status ) return status;
33710         status = pthread_create( &t, &attr, task, NULL );
33711 #if HAVE_PTHREADS < 7
33712         if( status < 0 ) status = errno;
33713 #endif
33714         if( status ) return status;
33715 #else
33716         /* Draft 4 pthreads */
33717         status = pthread_create( &t, pthread_attr_default, task, NULL );
33718         if( status ) return errno;
33719
33720         /* give thread a chance to complete */
33721         /* it should remain joinable and hence detachable */
33722         sleep( 1 );
33723
33724         status = pthread_detach( &t );
33725         if( status ) return errno;
33726 #endif
33727
33728 #ifdef HAVE_LINUX_THREADS
33729         pthread_kill_other_threads_np();
33730 #endif
33731
33732         return 0;
33733
33734 }
33735
33736 _ACEOF
33737 rm -f conftest$ac_exeext
33738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33739   (eval $ac_link) 2>&5
33740   ac_status=$?
33741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744   (eval $ac_try) 2>&5
33745   ac_status=$?
33746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747   (exit $ac_status); }; }; then
33748   ol_cv_pthread_lpthreads_lexc=yes
33749 else
33750   echo "$as_me: program exited with status $ac_status" >&5
33751 echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33753
33754 ( exit $ac_status )
33755 ol_cv_pthread_lpthreads_lexc=no
33756 fi
33757 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33758 fi
33759
33760                 # restore the LIBS
33761                 LIBS="$ol_LIBS"
33762
33763 fi
33764 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33765 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33766
33767         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33768                 ol_link_pthreads="-lpthreads -lexc"
33769                 ol_link_threads=posix
33770         fi
33771 fi
33772
33773
33774                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33775 if test "$ol_link_threads" = no ; then
33776         # try -lpthreads
33777         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33778 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33779 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33780   echo $ECHO_N "(cached) $ECHO_C" >&6
33781 else
33782
33783                 # save the flags
33784                 ol_LIBS="$LIBS"
33785                 LIBS="-lpthreads $LIBS"
33786
33787                 if test "$cross_compiling" = yes; then
33788   cat >conftest.$ac_ext <<_ACEOF
33789 /* confdefs.h.  */
33790 _ACEOF
33791 cat confdefs.h >>conftest.$ac_ext
33792 cat >>conftest.$ac_ext <<_ACEOF
33793 /* end confdefs.h.  */
33794
33795 /* pthread test headers */
33796 #include <pthread.h>
33797 #if HAVE_PTHREADS < 7
33798 #include <errno.h>
33799 #endif
33800 #ifndef NULL
33801 #define NULL (void*)0
33802 #endif
33803
33804 static void *task(p)
33805         void *p;
33806 {
33807         return (void *) (p == NULL);
33808 }
33809
33810 int
33811 main ()
33812 {
33813
33814         /* pthread test function */
33815 #ifndef PTHREAD_CREATE_DETACHED
33816 #define PTHREAD_CREATE_DETACHED 1
33817 #endif
33818         pthread_t t;
33819         int status;
33820         int detach = PTHREAD_CREATE_DETACHED;
33821
33822 #if HAVE_PTHREADS > 4
33823         /* Final pthreads */
33824         pthread_attr_t attr;
33825
33826         status = pthread_attr_init(&attr);
33827         if( status ) return status;
33828
33829 #if HAVE_PTHREADS < 7
33830         status = pthread_attr_setdetachstate(&attr, &detach);
33831         if( status < 0 ) status = errno;
33832 #else
33833         status = pthread_attr_setdetachstate(&attr, detach);
33834 #endif
33835         if( status ) return status;
33836         status = pthread_create( &t, &attr, task, NULL );
33837 #if HAVE_PTHREADS < 7
33838         if( status < 0 ) status = errno;
33839 #endif
33840         if( status ) return status;
33841 #else
33842         /* Draft 4 pthreads */
33843         status = pthread_create( &t, pthread_attr_default, task, NULL );
33844         if( status ) return errno;
33845
33846         /* give thread a chance to complete */
33847         /* it should remain joinable and hence detachable */
33848         sleep( 1 );
33849
33850         status = pthread_detach( &t );
33851         if( status ) return errno;
33852 #endif
33853
33854 #ifdef HAVE_LINUX_THREADS
33855         pthread_kill_other_threads_np();
33856 #endif
33857
33858         return 0;
33859
33860   ;
33861   return 0;
33862 }
33863 _ACEOF
33864 rm -f conftest.$ac_objext conftest$ac_exeext
33865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33866   (eval $ac_link) 2>conftest.er1
33867   ac_status=$?
33868   grep -v '^ *+' conftest.er1 >conftest.err
33869   rm -f conftest.er1
33870   cat conftest.err >&5
33871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872   (exit $ac_status); } &&
33873          { ac_try='test -z "$ac_c_werror_flag"
33874                          || test ! -s conftest.err'
33875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876   (eval $ac_try) 2>&5
33877   ac_status=$?
33878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879   (exit $ac_status); }; } &&
33880          { ac_try='test -s conftest$ac_exeext'
33881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882   (eval $ac_try) 2>&5
33883   ac_status=$?
33884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885   (exit $ac_status); }; }; then
33886   ol_cv_pthread_lib_lpthreads=yes
33887 else
33888   echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33890
33891 ol_cv_pthread_lib_lpthreads=no
33892 fi
33893 rm -f conftest.err conftest.$ac_objext \
33894       conftest$ac_exeext conftest.$ac_ext
33895 else
33896   cat >conftest.$ac_ext <<_ACEOF
33897
33898 /* pthread test headers */
33899 #include <pthread.h>
33900 #if HAVE_PTHREADS < 7
33901 #include <errno.h>
33902 #endif
33903 #ifndef NULL
33904 #define NULL (void*)0
33905 #endif
33906
33907 static void *task(p)
33908         void *p;
33909 {
33910         return (void *) (p == NULL);
33911 }
33912
33913
33914 int main(argc, argv)
33915         int argc;
33916         char **argv;
33917 {
33918
33919         /* pthread test function */
33920 #ifndef PTHREAD_CREATE_DETACHED
33921 #define PTHREAD_CREATE_DETACHED 1
33922 #endif
33923         pthread_t t;
33924         int status;
33925         int detach = PTHREAD_CREATE_DETACHED;
33926
33927 #if HAVE_PTHREADS > 4
33928         /* Final pthreads */
33929         pthread_attr_t attr;
33930
33931         status = pthread_attr_init(&attr);
33932         if( status ) return status;
33933
33934 #if HAVE_PTHREADS < 7
33935         status = pthread_attr_setdetachstate(&attr, &detach);
33936         if( status < 0 ) status = errno;
33937 #else
33938         status = pthread_attr_setdetachstate(&attr, detach);
33939 #endif
33940         if( status ) return status;
33941         status = pthread_create( &t, &attr, task, NULL );
33942 #if HAVE_PTHREADS < 7
33943         if( status < 0 ) status = errno;
33944 #endif
33945         if( status ) return status;
33946 #else
33947         /* Draft 4 pthreads */
33948         status = pthread_create( &t, pthread_attr_default, task, NULL );
33949         if( status ) return errno;
33950
33951         /* give thread a chance to complete */
33952         /* it should remain joinable and hence detachable */
33953         sleep( 1 );
33954
33955         status = pthread_detach( &t );
33956         if( status ) return errno;
33957 #endif
33958
33959 #ifdef HAVE_LINUX_THREADS
33960         pthread_kill_other_threads_np();
33961 #endif
33962
33963         return 0;
33964
33965 }
33966
33967 _ACEOF
33968 rm -f conftest$ac_exeext
33969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33970   (eval $ac_link) 2>&5
33971   ac_status=$?
33972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33975   (eval $ac_try) 2>&5
33976   ac_status=$?
33977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978   (exit $ac_status); }; }; then
33979   ol_cv_pthread_lib_lpthreads=yes
33980 else
33981   echo "$as_me: program exited with status $ac_status" >&5
33982 echo "$as_me: failed program was:" >&5
33983 sed 's/^/| /' conftest.$ac_ext >&5
33984
33985 ( exit $ac_status )
33986 ol_cv_pthread_lib_lpthreads=no
33987 fi
33988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33989 fi
33990
33991                 # restore the LIBS
33992                 LIBS="$ol_LIBS"
33993
33994 fi
33995 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
33996 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
33997
33998         if test $ol_cv_pthread_lib_lpthreads = yes ; then
33999                 ol_link_pthreads="-lpthreads"
34000                 ol_link_threads=posix
34001         fi
34002 fi
34003
34004
34005                 if test $ol_link_threads != no ; then
34006                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34007
34008                                                 save_CPPFLAGS="$CPPFLAGS"
34009                         save_LIBS="$LIBS"
34010                         LIBS="$LTHREAD_LIBS $LIBS"
34011
34012
34013
34014
34015 for ac_func in sched_yield pthread_yield thr_yield
34016 do
34017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34018 echo "$as_me:$LINENO: checking for $ac_func" >&5
34019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34020 if eval "test \"\${$as_ac_var+set}\" = set"; then
34021   echo $ECHO_N "(cached) $ECHO_C" >&6
34022 else
34023   cat >conftest.$ac_ext <<_ACEOF
34024 /* confdefs.h.  */
34025 _ACEOF
34026 cat confdefs.h >>conftest.$ac_ext
34027 cat >>conftest.$ac_ext <<_ACEOF
34028 /* end confdefs.h.  */
34029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34031 #define $ac_func innocuous_$ac_func
34032
34033 /* System header to define __stub macros and hopefully few prototypes,
34034     which can conflict with char $ac_func (); below.
34035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34036     <limits.h> exists even on freestanding compilers.  */
34037
34038 #ifdef __STDC__
34039 # include <limits.h>
34040 #else
34041 # include <assert.h>
34042 #endif
34043
34044 #undef $ac_func
34045
34046 /* Override any gcc2 internal prototype to avoid an error.  */
34047 #ifdef __cplusplus
34048 extern "C"
34049 {
34050 #endif
34051 /* We use char because int might match the return type of a gcc2
34052    builtin and then its argument prototype would still apply.  */
34053 char $ac_func ();
34054 /* The GNU C library defines this for functions which it implements
34055     to always fail with ENOSYS.  Some functions are actually named
34056     something starting with __ and the normal name is an alias.  */
34057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34058 choke me
34059 #else
34060 char (*f) () = $ac_func;
34061 #endif
34062 #ifdef __cplusplus
34063 }
34064 #endif
34065
34066 int
34067 main ()
34068 {
34069 return f != $ac_func;
34070   ;
34071   return 0;
34072 }
34073 _ACEOF
34074 rm -f conftest.$ac_objext conftest$ac_exeext
34075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34076   (eval $ac_link) 2>conftest.er1
34077   ac_status=$?
34078   grep -v '^ *+' conftest.er1 >conftest.err
34079   rm -f conftest.er1
34080   cat conftest.err >&5
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); } &&
34083          { ac_try='test -z "$ac_c_werror_flag"
34084                          || test ! -s conftest.err'
34085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34086   (eval $ac_try) 2>&5
34087   ac_status=$?
34088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089   (exit $ac_status); }; } &&
34090          { ac_try='test -s conftest$ac_exeext'
34091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092   (eval $ac_try) 2>&5
34093   ac_status=$?
34094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095   (exit $ac_status); }; }; then
34096   eval "$as_ac_var=yes"
34097 else
34098   echo "$as_me: failed program was:" >&5
34099 sed 's/^/| /' conftest.$ac_ext >&5
34100
34101 eval "$as_ac_var=no"
34102 fi
34103 rm -f conftest.err conftest.$ac_objext \
34104       conftest$ac_exeext conftest.$ac_ext
34105 fi
34106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34108 if test `eval echo '${'$as_ac_var'}'` = yes; then
34109   cat >>confdefs.h <<_ACEOF
34110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34111 _ACEOF
34112
34113 fi
34114 done
34115
34116
34117                         if test $ac_cv_func_sched_yield = no -a \
34118                                 $ac_cv_func_pthread_yield = no -a \
34119                                 $ac_cv_func_thr_yield = no ; then
34120                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34121 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34122 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34123   echo $ECHO_N "(cached) $ECHO_C" >&6
34124 else
34125   ac_check_lib_save_LIBS=$LIBS
34126 LIBS="-lrt  $LIBS"
34127 cat >conftest.$ac_ext <<_ACEOF
34128 /* confdefs.h.  */
34129 _ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h.  */
34133
34134 /* Override any gcc2 internal prototype to avoid an error.  */
34135 #ifdef __cplusplus
34136 extern "C"
34137 #endif
34138 /* We use char because int might match the return type of a gcc2
34139    builtin and then its argument prototype would still apply.  */
34140 char sched_yield ();
34141 int
34142 main ()
34143 {
34144 sched_yield ();
34145   ;
34146   return 0;
34147 }
34148 _ACEOF
34149 rm -f conftest.$ac_objext conftest$ac_exeext
34150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34151   (eval $ac_link) 2>conftest.er1
34152   ac_status=$?
34153   grep -v '^ *+' conftest.er1 >conftest.err
34154   rm -f conftest.er1
34155   cat conftest.err >&5
34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157   (exit $ac_status); } &&
34158          { ac_try='test -z "$ac_c_werror_flag"
34159                          || test ! -s conftest.err'
34160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34161   (eval $ac_try) 2>&5
34162   ac_status=$?
34163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164   (exit $ac_status); }; } &&
34165          { ac_try='test -s conftest$ac_exeext'
34166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34167   (eval $ac_try) 2>&5
34168   ac_status=$?
34169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170   (exit $ac_status); }; }; then
34171   ac_cv_lib_rt_sched_yield=yes
34172 else
34173   echo "$as_me: failed program was:" >&5
34174 sed 's/^/| /' conftest.$ac_ext >&5
34175
34176 ac_cv_lib_rt_sched_yield=no
34177 fi
34178 rm -f conftest.err conftest.$ac_objext \
34179       conftest$ac_exeext conftest.$ac_ext
34180 LIBS=$ac_check_lib_save_LIBS
34181 fi
34182 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34183 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34184 if test $ac_cv_lib_rt_sched_yield = yes; then
34185   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34186
34187 cat >>confdefs.h <<\_ACEOF
34188 #define HAVE_SCHED_YIELD 1
34189 _ACEOF
34190
34191                                         ac_cv_func_sched_yield=yes
34192 else
34193   ac_cv_func_sched_yield=no
34194 fi
34195
34196                         fi
34197                         if test $ac_cv_func_sched_yield = no -a \
34198                                 $ac_cv_func_pthread_yield = no -a \
34199                                 "$ac_cv_func_thr_yield" = no ; then
34200                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34201 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34202                         fi
34203
34204
34205
34206 for ac_func in pthread_kill pthread_rwlock_destroy
34207 do
34208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34209 echo "$as_me:$LINENO: checking for $ac_func" >&5
34210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34211 if eval "test \"\${$as_ac_var+set}\" = set"; then
34212   echo $ECHO_N "(cached) $ECHO_C" >&6
34213 else
34214   cat >conftest.$ac_ext <<_ACEOF
34215 /* confdefs.h.  */
34216 _ACEOF
34217 cat confdefs.h >>conftest.$ac_ext
34218 cat >>conftest.$ac_ext <<_ACEOF
34219 /* end confdefs.h.  */
34220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34222 #define $ac_func innocuous_$ac_func
34223
34224 /* System header to define __stub macros and hopefully few prototypes,
34225     which can conflict with char $ac_func (); below.
34226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34227     <limits.h> exists even on freestanding compilers.  */
34228
34229 #ifdef __STDC__
34230 # include <limits.h>
34231 #else
34232 # include <assert.h>
34233 #endif
34234
34235 #undef $ac_func
34236
34237 /* Override any gcc2 internal prototype to avoid an error.  */
34238 #ifdef __cplusplus
34239 extern "C"
34240 {
34241 #endif
34242 /* We use char because int might match the return type of a gcc2
34243    builtin and then its argument prototype would still apply.  */
34244 char $ac_func ();
34245 /* The GNU C library defines this for functions which it implements
34246     to always fail with ENOSYS.  Some functions are actually named
34247     something starting with __ and the normal name is an alias.  */
34248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34249 choke me
34250 #else
34251 char (*f) () = $ac_func;
34252 #endif
34253 #ifdef __cplusplus
34254 }
34255 #endif
34256
34257 int
34258 main ()
34259 {
34260 return f != $ac_func;
34261   ;
34262   return 0;
34263 }
34264 _ACEOF
34265 rm -f conftest.$ac_objext conftest$ac_exeext
34266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34267   (eval $ac_link) 2>conftest.er1
34268   ac_status=$?
34269   grep -v '^ *+' conftest.er1 >conftest.err
34270   rm -f conftest.er1
34271   cat conftest.err >&5
34272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273   (exit $ac_status); } &&
34274          { ac_try='test -z "$ac_c_werror_flag"
34275                          || test ! -s conftest.err'
34276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277   (eval $ac_try) 2>&5
34278   ac_status=$?
34279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280   (exit $ac_status); }; } &&
34281          { ac_try='test -s conftest$ac_exeext'
34282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34283   (eval $ac_try) 2>&5
34284   ac_status=$?
34285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286   (exit $ac_status); }; }; then
34287   eval "$as_ac_var=yes"
34288 else
34289   echo "$as_me: failed program was:" >&5
34290 sed 's/^/| /' conftest.$ac_ext >&5
34291
34292 eval "$as_ac_var=no"
34293 fi
34294 rm -f conftest.err conftest.$ac_objext \
34295       conftest$ac_exeext conftest.$ac_ext
34296 fi
34297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34299 if test `eval echo '${'$as_ac_var'}'` = yes; then
34300   cat >>confdefs.h <<_ACEOF
34301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34302 _ACEOF
34303
34304 fi
34305 done
34306
34307
34308                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34309 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34310 if test "${ol_cv_func_pthread_detach+set}" = set; then
34311   echo $ECHO_N "(cached) $ECHO_C" >&6
34312 else
34313
34314                                                                 cat >conftest.$ac_ext <<_ACEOF
34315 /* confdefs.h.  */
34316 _ACEOF
34317 cat confdefs.h >>conftest.$ac_ext
34318 cat >>conftest.$ac_ext <<_ACEOF
34319 /* end confdefs.h.  */
34320
34321 #include <pthread.h>
34322 #ifndef NULL
34323 #define NULL (void*)0
34324 #endif
34325
34326 int
34327 main ()
34328 {
34329 pthread_detach(NULL);
34330   ;
34331   return 0;
34332 }
34333 _ACEOF
34334 rm -f conftest.$ac_objext conftest$ac_exeext
34335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34336   (eval $ac_link) 2>conftest.er1
34337   ac_status=$?
34338   grep -v '^ *+' conftest.er1 >conftest.err
34339   rm -f conftest.er1
34340   cat conftest.err >&5
34341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342   (exit $ac_status); } &&
34343          { ac_try='test -z "$ac_c_werror_flag"
34344                          || test ! -s conftest.err'
34345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346   (eval $ac_try) 2>&5
34347   ac_status=$?
34348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349   (exit $ac_status); }; } &&
34350          { ac_try='test -s conftest$ac_exeext'
34351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34352   (eval $ac_try) 2>&5
34353   ac_status=$?
34354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355   (exit $ac_status); }; }; then
34356   ol_cv_func_pthread_detach=yes
34357 else
34358   echo "$as_me: failed program was:" >&5
34359 sed 's/^/| /' conftest.$ac_ext >&5
34360
34361 ol_cv_func_pthread_detach=no
34362 fi
34363 rm -f conftest.err conftest.$ac_objext \
34364       conftest$ac_exeext conftest.$ac_ext
34365
34366 fi
34367 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34368 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34369
34370                         if test $ol_cv_func_pthread_detach = no ; then
34371                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34372 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34373    { (exit 1); exit 1; }; }
34374                         fi
34375
34376
34377 cat >>confdefs.h <<\_ACEOF
34378 #define HAVE_PTHREAD_DETACH 1
34379 _ACEOF
34380
34381
34382
34383
34384
34385
34386 for ac_func in \
34387                                 pthread_setconcurrency \
34388                                 pthread_getconcurrency \
34389                                 thr_setconcurrency \
34390                                 thr_getconcurrency \
34391
34392 do
34393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34394 echo "$as_me:$LINENO: checking for $ac_func" >&5
34395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34396 if eval "test \"\${$as_ac_var+set}\" = set"; then
34397   echo $ECHO_N "(cached) $ECHO_C" >&6
34398 else
34399   cat >conftest.$ac_ext <<_ACEOF
34400 /* confdefs.h.  */
34401 _ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h.  */
34405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34407 #define $ac_func innocuous_$ac_func
34408
34409 /* System header to define __stub macros and hopefully few prototypes,
34410     which can conflict with char $ac_func (); below.
34411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34412     <limits.h> exists even on freestanding compilers.  */
34413
34414 #ifdef __STDC__
34415 # include <limits.h>
34416 #else
34417 # include <assert.h>
34418 #endif
34419
34420 #undef $ac_func
34421
34422 /* Override any gcc2 internal prototype to avoid an error.  */
34423 #ifdef __cplusplus
34424 extern "C"
34425 {
34426 #endif
34427 /* We use char because int might match the return type of a gcc2
34428    builtin and then its argument prototype would still apply.  */
34429 char $ac_func ();
34430 /* The GNU C library defines this for functions which it implements
34431     to always fail with ENOSYS.  Some functions are actually named
34432     something starting with __ and the normal name is an alias.  */
34433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34434 choke me
34435 #else
34436 char (*f) () = $ac_func;
34437 #endif
34438 #ifdef __cplusplus
34439 }
34440 #endif
34441
34442 int
34443 main ()
34444 {
34445 return f != $ac_func;
34446   ;
34447   return 0;
34448 }
34449 _ACEOF
34450 rm -f conftest.$ac_objext conftest$ac_exeext
34451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34452   (eval $ac_link) 2>conftest.er1
34453   ac_status=$?
34454   grep -v '^ *+' conftest.er1 >conftest.err
34455   rm -f conftest.er1
34456   cat conftest.err >&5
34457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458   (exit $ac_status); } &&
34459          { ac_try='test -z "$ac_c_werror_flag"
34460                          || test ! -s conftest.err'
34461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34462   (eval $ac_try) 2>&5
34463   ac_status=$?
34464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465   (exit $ac_status); }; } &&
34466          { ac_try='test -s conftest$ac_exeext'
34467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34468   (eval $ac_try) 2>&5
34469   ac_status=$?
34470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471   (exit $ac_status); }; }; then
34472   eval "$as_ac_var=yes"
34473 else
34474   echo "$as_me: failed program was:" >&5
34475 sed 's/^/| /' conftest.$ac_ext >&5
34476
34477 eval "$as_ac_var=no"
34478 fi
34479 rm -f conftest.err conftest.$ac_objext \
34480       conftest$ac_exeext conftest.$ac_ext
34481 fi
34482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34484 if test `eval echo '${'$as_ac_var'}'` = yes; then
34485   cat >>confdefs.h <<_ACEOF
34486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34487 _ACEOF
34488
34489 fi
34490 done
34491
34492
34493
34494
34495 for ac_func in pthread_kill_other_threads_np
34496 do
34497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34498 echo "$as_me:$LINENO: checking for $ac_func" >&5
34499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34500 if eval "test \"\${$as_ac_var+set}\" = set"; then
34501   echo $ECHO_N "(cached) $ECHO_C" >&6
34502 else
34503   cat >conftest.$ac_ext <<_ACEOF
34504 /* confdefs.h.  */
34505 _ACEOF
34506 cat confdefs.h >>conftest.$ac_ext
34507 cat >>conftest.$ac_ext <<_ACEOF
34508 /* end confdefs.h.  */
34509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34511 #define $ac_func innocuous_$ac_func
34512
34513 /* System header to define __stub macros and hopefully few prototypes,
34514     which can conflict with char $ac_func (); below.
34515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34516     <limits.h> exists even on freestanding compilers.  */
34517
34518 #ifdef __STDC__
34519 # include <limits.h>
34520 #else
34521 # include <assert.h>
34522 #endif
34523
34524 #undef $ac_func
34525
34526 /* Override any gcc2 internal prototype to avoid an error.  */
34527 #ifdef __cplusplus
34528 extern "C"
34529 {
34530 #endif
34531 /* We use char because int might match the return type of a gcc2
34532    builtin and then its argument prototype would still apply.  */
34533 char $ac_func ();
34534 /* The GNU C library defines this for functions which it implements
34535     to always fail with ENOSYS.  Some functions are actually named
34536     something starting with __ and the normal name is an alias.  */
34537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34538 choke me
34539 #else
34540 char (*f) () = $ac_func;
34541 #endif
34542 #ifdef __cplusplus
34543 }
34544 #endif
34545
34546 int
34547 main ()
34548 {
34549 return f != $ac_func;
34550   ;
34551   return 0;
34552 }
34553 _ACEOF
34554 rm -f conftest.$ac_objext conftest$ac_exeext
34555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34556   (eval $ac_link) 2>conftest.er1
34557   ac_status=$?
34558   grep -v '^ *+' conftest.er1 >conftest.err
34559   rm -f conftest.er1
34560   cat conftest.err >&5
34561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562   (exit $ac_status); } &&
34563          { ac_try='test -z "$ac_c_werror_flag"
34564                          || test ! -s conftest.err'
34565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34566   (eval $ac_try) 2>&5
34567   ac_status=$?
34568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569   (exit $ac_status); }; } &&
34570          { ac_try='test -s conftest$ac_exeext'
34571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34572   (eval $ac_try) 2>&5
34573   ac_status=$?
34574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575   (exit $ac_status); }; }; then
34576   eval "$as_ac_var=yes"
34577 else
34578   echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34580
34581 eval "$as_ac_var=no"
34582 fi
34583 rm -f conftest.err conftest.$ac_objext \
34584       conftest$ac_exeext conftest.$ac_ext
34585 fi
34586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34588 if test `eval echo '${'$as_ac_var'}'` = yes; then
34589   cat >>confdefs.h <<_ACEOF
34590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34591 _ACEOF
34592
34593 fi
34594 done
34595
34596         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34597 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34598 if test "${ol_cv_sys_linux_threads+set}" = set; then
34599   echo $ECHO_N "(cached) $ECHO_C" >&6
34600 else
34601   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34602 fi
34603 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34604 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34605
34606
34607
34608
34609         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34610 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34611 if test "${ol_cv_linux_threads+set}" = set; then
34612   echo $ECHO_N "(cached) $ECHO_C" >&6
34613 else
34614
34615                 if test $ol_cv_header_linux_threads = yes -a \
34616                         $ol_cv_sys_linux_threads = yes; then
34617                         ol_cv_linux_threads=yes
34618                 elif test $ol_cv_header_linux_threads = no -a \
34619                         $ol_cv_sys_linux_threads = no; then
34620                         ol_cv_linux_threads=no
34621                 else
34622                         ol_cv_linux_threads=error
34623                 fi
34624
34625 fi
34626 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34627 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34628
34629
34630                         if test $ol_cv_linux_threads = error; then
34631                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34632 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34633    { (exit 1); exit 1; }; };
34634                         fi
34635
34636                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34637 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34638 if test "${ol_cv_pthread_create_works+set}" = set; then
34639   echo $ECHO_N "(cached) $ECHO_C" >&6
34640 else
34641
34642                         if test "$cross_compiling" = yes; then
34643                                 ol_cv_pthread_create_works=yes
34644 else
34645   cat >conftest.$ac_ext <<_ACEOF
34646
34647 /* pthread test headers */
34648 #include <pthread.h>
34649 #if HAVE_PTHREADS < 7
34650 #include <errno.h>
34651 #endif
34652 #ifndef NULL
34653 #define NULL (void*)0
34654 #endif
34655
34656 static void *task(p)
34657         void *p;
34658 {
34659         return (void *) (p == NULL);
34660 }
34661
34662
34663 int main(argc, argv)
34664         int argc;
34665         char **argv;
34666 {
34667
34668         /* pthread test function */
34669 #ifndef PTHREAD_CREATE_DETACHED
34670 #define PTHREAD_CREATE_DETACHED 1
34671 #endif
34672         pthread_t t;
34673         int status;
34674         int detach = PTHREAD_CREATE_DETACHED;
34675
34676 #if HAVE_PTHREADS > 4
34677         /* Final pthreads */
34678         pthread_attr_t attr;
34679
34680         status = pthread_attr_init(&attr);
34681         if( status ) return status;
34682
34683 #if HAVE_PTHREADS < 7
34684         status = pthread_attr_setdetachstate(&attr, &detach);
34685         if( status < 0 ) status = errno;
34686 #else
34687         status = pthread_attr_setdetachstate(&attr, detach);
34688 #endif
34689         if( status ) return status;
34690         status = pthread_create( &t, &attr, task, NULL );
34691 #if HAVE_PTHREADS < 7
34692         if( status < 0 ) status = errno;
34693 #endif
34694         if( status ) return status;
34695 #else
34696         /* Draft 4 pthreads */
34697         status = pthread_create( &t, pthread_attr_default, task, NULL );
34698         if( status ) return errno;
34699
34700         /* give thread a chance to complete */
34701         /* it should remain joinable and hence detachable */
34702         sleep( 1 );
34703
34704         status = pthread_detach( &t );
34705         if( status ) return errno;
34706 #endif
34707
34708 #ifdef HAVE_LINUX_THREADS
34709         pthread_kill_other_threads_np();
34710 #endif
34711
34712         return 0;
34713
34714 }
34715
34716 _ACEOF
34717 rm -f conftest$ac_exeext
34718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34719   (eval $ac_link) 2>&5
34720   ac_status=$?
34721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34724   (eval $ac_try) 2>&5
34725   ac_status=$?
34726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727   (exit $ac_status); }; }; then
34728   ol_cv_pthread_create_works=yes
34729 else
34730   echo "$as_me: program exited with status $ac_status" >&5
34731 echo "$as_me: failed program was:" >&5
34732 sed 's/^/| /' conftest.$ac_ext >&5
34733
34734 ( exit $ac_status )
34735 ol_cv_pthread_create_works=no
34736 fi
34737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34738 fi
34739 fi
34740 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34741 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34742
34743                         if test $ol_cv_pthread_create_works = no ; then
34744                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34745 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34746    { (exit 1); exit 1; }; }
34747                         fi
34748
34749                                                 if test $ol_with_yielding_select = auto ; then
34750                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34751 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34752 if test "${ol_cv_pthread_select_yields+set}" = set; then
34753   echo $ECHO_N "(cached) $ECHO_C" >&6
34754 else
34755
34756                                 if test "$cross_compiling" = yes; then
34757   ol_cv_pthread_select_yields=cross
34758 else
34759   cat >conftest.$ac_ext <<_ACEOF
34760 /* confdefs.h.  */
34761 _ACEOF
34762 cat confdefs.h >>conftest.$ac_ext
34763 cat >>conftest.$ac_ext <<_ACEOF
34764 /* end confdefs.h.  */
34765
34766 #include <sys/types.h>
34767 #include <sys/time.h>
34768 #include <unistd.h>
34769 #include <pthread.h>
34770 #ifndef NULL
34771 #define NULL (void*) 0
34772 #endif
34773
34774 static int fildes[2];
34775
34776 static void *task(p)
34777         void *p;
34778 {
34779         int i;
34780         struct timeval tv;
34781
34782         fd_set rfds;
34783
34784         tv.tv_sec=10;
34785         tv.tv_usec=0;
34786
34787         FD_ZERO(&rfds);
34788         FD_SET(fildes[0], &rfds);
34789
34790         /* we're not interested in any fds */
34791         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34792
34793         if(i < 0) {
34794                 perror("select");
34795                 exit(10);
34796         }
34797
34798         exit(0); /* if we exit here, the select blocked the whole process */
34799 }
34800
34801 int main(argc, argv)
34802         int argc;
34803         char **argv;
34804 {
34805         pthread_t t;
34806
34807         /* create a pipe to select */
34808         if(pipe(&fildes[0])) {
34809                 perror("select");
34810                 exit(1);
34811         }
34812
34813 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34814         (void) pthread_setconcurrency(2);
34815 #else
34816 #ifdef HAVE_THR_SETCONCURRENCY
34817         /* Set Solaris LWP concurrency to 2 */
34818         thr_setconcurrency(2);
34819 #endif
34820 #endif
34821
34822 #if HAVE_PTHREADS < 6
34823         pthread_create(&t, pthread_attr_default, task, NULL);
34824 #else
34825         pthread_create(&t, NULL, task, NULL);
34826 #endif
34827
34828         /* make sure task runs first */
34829 #if HAVE_THR_YIELD
34830         thr_yield();
34831 #elif defined( HAVE_SCHED_YIELD )
34832         sched_yield();
34833 #elif defined( HAVE_PTHREAD_YIELD )
34834         pthread_yield();
34835 #endif
34836
34837         exit(2);
34838 }
34839 _ACEOF
34840 rm -f conftest$ac_exeext
34841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34842   (eval $ac_link) 2>&5
34843   ac_status=$?
34844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34847   (eval $ac_try) 2>&5
34848   ac_status=$?
34849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850   (exit $ac_status); }; }; then
34851   ol_cv_pthread_select_yields=no
34852 else
34853   echo "$as_me: program exited with status $ac_status" >&5
34854 echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34856
34857 ( exit $ac_status )
34858 ol_cv_pthread_select_yields=yes
34859 fi
34860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34861 fi
34862 fi
34863 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34864 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34865
34866                                 if test $ol_cv_pthread_select_yields = cross ; then
34867                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34868 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34869    { (exit 1); exit 1; }; }
34870                                 fi
34871
34872                                 if test $ol_cv_pthread_select_yields = yes ; then
34873                                         ol_with_yielding_select=yes
34874                                 fi
34875                         fi
34876
34877                                                 CPPFLAGS="$save_CPPFLAGS"
34878                         LIBS="$save_LIBS"
34879                 else
34880                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34881 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34882    { (exit 1); exit 1; }; }
34883                 fi
34884         fi
34885
34886         if test $ol_with_threads = posix ; then
34887                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34888 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34889    { (exit 1); exit 1; }; }
34890         fi
34891 fi
34892
34893 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34894         -o $ol_with_threads = mach ; then
34895
34896
34897
34898 for ac_header in mach/cthreads.h cthreads.h
34899 do
34900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34902   echo "$as_me:$LINENO: checking for $ac_header" >&5
34903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34905   echo $ECHO_N "(cached) $ECHO_C" >&6
34906 fi
34907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34909 else
34910   # Is the header compilable?
34911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34913 cat >conftest.$ac_ext <<_ACEOF
34914 /* confdefs.h.  */
34915 _ACEOF
34916 cat confdefs.h >>conftest.$ac_ext
34917 cat >>conftest.$ac_ext <<_ACEOF
34918 /* end confdefs.h.  */
34919 $ac_includes_default
34920 #include <$ac_header>
34921 _ACEOF
34922 rm -f conftest.$ac_objext
34923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34924   (eval $ac_compile) 2>conftest.er1
34925   ac_status=$?
34926   grep -v '^ *+' conftest.er1 >conftest.err
34927   rm -f conftest.er1
34928   cat conftest.err >&5
34929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930   (exit $ac_status); } &&
34931          { ac_try='test -z "$ac_c_werror_flag"
34932                          || test ! -s conftest.err'
34933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34934   (eval $ac_try) 2>&5
34935   ac_status=$?
34936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937   (exit $ac_status); }; } &&
34938          { ac_try='test -s conftest.$ac_objext'
34939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940   (eval $ac_try) 2>&5
34941   ac_status=$?
34942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943   (exit $ac_status); }; }; then
34944   ac_header_compiler=yes
34945 else
34946   echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34948
34949 ac_header_compiler=no
34950 fi
34951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34953 echo "${ECHO_T}$ac_header_compiler" >&6
34954
34955 # Is the header present?
34956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34958 cat >conftest.$ac_ext <<_ACEOF
34959 /* confdefs.h.  */
34960 _ACEOF
34961 cat confdefs.h >>conftest.$ac_ext
34962 cat >>conftest.$ac_ext <<_ACEOF
34963 /* end confdefs.h.  */
34964 #include <$ac_header>
34965 _ACEOF
34966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34968   ac_status=$?
34969   grep -v '^ *+' conftest.er1 >conftest.err
34970   rm -f conftest.er1
34971   cat conftest.err >&5
34972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973   (exit $ac_status); } >/dev/null; then
34974   if test -s conftest.err; then
34975     ac_cpp_err=$ac_c_preproc_warn_flag
34976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34977   else
34978     ac_cpp_err=
34979   fi
34980 else
34981   ac_cpp_err=yes
34982 fi
34983 if test -z "$ac_cpp_err"; then
34984   ac_header_preproc=yes
34985 else
34986   echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34988
34989   ac_header_preproc=no
34990 fi
34991 rm -f conftest.err conftest.$ac_ext
34992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34993 echo "${ECHO_T}$ac_header_preproc" >&6
34994
34995 # So?  What about this header?
34996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34997   yes:no: )
34998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35002     ac_header_preproc=yes
35003     ;;
35004   no:yes:* )
35005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35017     (
35018       cat <<\_ASBOX
35019 ## ------------------------------------------ ##
35020 ## Report this to the AC_PACKAGE_NAME lists.  ##
35021 ## ------------------------------------------ ##
35022 _ASBOX
35023     ) |
35024       sed "s/^/$as_me: WARNING:     /" >&2
35025     ;;
35026 esac
35027 echo "$as_me:$LINENO: checking for $ac_header" >&5
35028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35030   echo $ECHO_N "(cached) $ECHO_C" >&6
35031 else
35032   eval "$as_ac_Header=\$ac_header_preproc"
35033 fi
35034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35036
35037 fi
35038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35039   cat >>confdefs.h <<_ACEOF
35040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35041 _ACEOF
35042
35043 fi
35044
35045 done
35046
35047         if test $ac_cv_header_mach_cthreads_h = yes ; then
35048                 ol_with_threads=found
35049
35050                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35051 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35052 if test "${ac_cv_func_cthread_fork+set}" = set; then
35053   echo $ECHO_N "(cached) $ECHO_C" >&6
35054 else
35055   cat >conftest.$ac_ext <<_ACEOF
35056 /* confdefs.h.  */
35057 _ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h.  */
35061 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35063 #define cthread_fork innocuous_cthread_fork
35064
35065 /* System header to define __stub macros and hopefully few prototypes,
35066     which can conflict with char cthread_fork (); below.
35067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35068     <limits.h> exists even on freestanding compilers.  */
35069
35070 #ifdef __STDC__
35071 # include <limits.h>
35072 #else
35073 # include <assert.h>
35074 #endif
35075
35076 #undef cthread_fork
35077
35078 /* Override any gcc2 internal prototype to avoid an error.  */
35079 #ifdef __cplusplus
35080 extern "C"
35081 {
35082 #endif
35083 /* We use char because int might match the return type of a gcc2
35084    builtin and then its argument prototype would still apply.  */
35085 char cthread_fork ();
35086 /* The GNU C library defines this for functions which it implements
35087     to always fail with ENOSYS.  Some functions are actually named
35088     something starting with __ and the normal name is an alias.  */
35089 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35090 choke me
35091 #else
35092 char (*f) () = cthread_fork;
35093 #endif
35094 #ifdef __cplusplus
35095 }
35096 #endif
35097
35098 int
35099 main ()
35100 {
35101 return f != cthread_fork;
35102   ;
35103   return 0;
35104 }
35105 _ACEOF
35106 rm -f conftest.$ac_objext conftest$ac_exeext
35107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35108   (eval $ac_link) 2>conftest.er1
35109   ac_status=$?
35110   grep -v '^ *+' conftest.er1 >conftest.err
35111   rm -f conftest.er1
35112   cat conftest.err >&5
35113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114   (exit $ac_status); } &&
35115          { ac_try='test -z "$ac_c_werror_flag"
35116                          || test ! -s conftest.err'
35117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35118   (eval $ac_try) 2>&5
35119   ac_status=$?
35120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121   (exit $ac_status); }; } &&
35122          { ac_try='test -s conftest$ac_exeext'
35123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124   (eval $ac_try) 2>&5
35125   ac_status=$?
35126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127   (exit $ac_status); }; }; then
35128   ac_cv_func_cthread_fork=yes
35129 else
35130   echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35132
35133 ac_cv_func_cthread_fork=no
35134 fi
35135 rm -f conftest.err conftest.$ac_objext \
35136       conftest$ac_exeext conftest.$ac_ext
35137 fi
35138 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35139 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35140 if test $ac_cv_func_cthread_fork = yes; then
35141   ol_link_threads=yes
35142 fi
35143
35144
35145                 if test $ol_link_threads = no ; then
35146                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35147 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35148 if test "${ol_cv_cthread_all_load+set}" = set; then
35149   echo $ECHO_N "(cached) $ECHO_C" >&6
35150 else
35151
35152                                                                 save_LIBS="$LIBS"
35153                                 LIBS="-all_load $LIBS"
35154                                 cat >conftest.$ac_ext <<_ACEOF
35155 /* confdefs.h.  */
35156 _ACEOF
35157 cat confdefs.h >>conftest.$ac_ext
35158 cat >>conftest.$ac_ext <<_ACEOF
35159 /* end confdefs.h.  */
35160 #include <mach/cthreads.h>
35161 int
35162 main ()
35163 {
35164
35165                                         cthread_fork((void *)0, (void *)0);
35166
35167   ;
35168   return 0;
35169 }
35170 _ACEOF
35171 rm -f conftest.$ac_objext conftest$ac_exeext
35172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35173   (eval $ac_link) 2>conftest.er1
35174   ac_status=$?
35175   grep -v '^ *+' conftest.er1 >conftest.err
35176   rm -f conftest.er1
35177   cat conftest.err >&5
35178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179   (exit $ac_status); } &&
35180          { ac_try='test -z "$ac_c_werror_flag"
35181                          || test ! -s conftest.err'
35182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35183   (eval $ac_try) 2>&5
35184   ac_status=$?
35185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186   (exit $ac_status); }; } &&
35187          { ac_try='test -s conftest$ac_exeext'
35188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35189   (eval $ac_try) 2>&5
35190   ac_status=$?
35191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192   (exit $ac_status); }; }; then
35193   ol_cv_cthread_all_load=yes
35194 else
35195   echo "$as_me: failed program was:" >&5
35196 sed 's/^/| /' conftest.$ac_ext >&5
35197
35198 ol_cv_cthread_all_load=no
35199 fi
35200 rm -f conftest.err conftest.$ac_objext \
35201       conftest$ac_exeext conftest.$ac_ext
35202                                                                 LIBS="$save_LIBS"
35203
35204 fi
35205 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35206 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35207
35208                         if test $ol_cv_cthread_all_load = yes ; then
35209                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35210                                 ol_link_threads=mach
35211                                 ol_with_threads=found
35212                         fi
35213                 fi
35214
35215         elif test $ac_cv_header_cthreads_h = yes ; then
35216
35217                 ol_with_threads=found
35218
35219                                 save_LIBS="$LIBS"
35220                 LIBS="$LIBS -lthreads"
35221                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35222 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35223 if test "${ac_cv_func_cthread_fork+set}" = set; then
35224   echo $ECHO_N "(cached) $ECHO_C" >&6
35225 else
35226   cat >conftest.$ac_ext <<_ACEOF
35227 /* confdefs.h.  */
35228 _ACEOF
35229 cat confdefs.h >>conftest.$ac_ext
35230 cat >>conftest.$ac_ext <<_ACEOF
35231 /* end confdefs.h.  */
35232 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35234 #define cthread_fork innocuous_cthread_fork
35235
35236 /* System header to define __stub macros and hopefully few prototypes,
35237     which can conflict with char cthread_fork (); below.
35238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35239     <limits.h> exists even on freestanding compilers.  */
35240
35241 #ifdef __STDC__
35242 # include <limits.h>
35243 #else
35244 # include <assert.h>
35245 #endif
35246
35247 #undef cthread_fork
35248
35249 /* Override any gcc2 internal prototype to avoid an error.  */
35250 #ifdef __cplusplus
35251 extern "C"
35252 {
35253 #endif
35254 /* We use char because int might match the return type of a gcc2
35255    builtin and then its argument prototype would still apply.  */
35256 char cthread_fork ();
35257 /* The GNU C library defines this for functions which it implements
35258     to always fail with ENOSYS.  Some functions are actually named
35259     something starting with __ and the normal name is an alias.  */
35260 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35261 choke me
35262 #else
35263 char (*f) () = cthread_fork;
35264 #endif
35265 #ifdef __cplusplus
35266 }
35267 #endif
35268
35269 int
35270 main ()
35271 {
35272 return f != cthread_fork;
35273   ;
35274   return 0;
35275 }
35276 _ACEOF
35277 rm -f conftest.$ac_objext conftest$ac_exeext
35278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35279   (eval $ac_link) 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); } &&
35286          { ac_try='test -z "$ac_c_werror_flag"
35287                          || test ! -s conftest.err'
35288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289   (eval $ac_try) 2>&5
35290   ac_status=$?
35291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292   (exit $ac_status); }; } &&
35293          { ac_try='test -s conftest$ac_exeext'
35294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295   (eval $ac_try) 2>&5
35296   ac_status=$?
35297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298   (exit $ac_status); }; }; then
35299   ac_cv_func_cthread_fork=yes
35300 else
35301   echo "$as_me: failed program was:" >&5
35302 sed 's/^/| /' conftest.$ac_ext >&5
35303
35304 ac_cv_func_cthread_fork=no
35305 fi
35306 rm -f conftest.err conftest.$ac_objext \
35307       conftest$ac_exeext conftest.$ac_ext
35308 fi
35309 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35310 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35311 if test $ac_cv_func_cthread_fork = yes; then
35312   ol_link_threads=yes
35313 fi
35314
35315                 LIBS="$save_LIBS"
35316
35317                 if test $ol_link_threads = yes ; then
35318                         LTHREAD_LIBS="-lthreads"
35319                         ol_link_threads=mach
35320                         ol_with_threads=found
35321                 else
35322                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35323 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35324    { (exit 1); exit 1; }; }
35325                 fi
35326
35327         elif test $ol_with_threads = mach ; then
35328                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35329 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35330    { (exit 1); exit 1; }; }
35331         fi
35332
35333         if test $ol_link_threads = mach ; then
35334
35335 cat >>confdefs.h <<\_ACEOF
35336 #define HAVE_MACH_CTHREADS 1
35337 _ACEOF
35338
35339         elif test $ol_with_threads = found ; then
35340                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35341 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35342    { (exit 1); exit 1; }; }
35343         fi
35344 fi
35345
35346 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35347         -o $ol_with_threads = pth ; then
35348
35349
35350 for ac_header in pth.h
35351 do
35352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35354   echo "$as_me:$LINENO: checking for $ac_header" >&5
35355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35357   echo $ECHO_N "(cached) $ECHO_C" >&6
35358 fi
35359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35361 else
35362   # Is the header compilable?
35363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35365 cat >conftest.$ac_ext <<_ACEOF
35366 /* confdefs.h.  */
35367 _ACEOF
35368 cat confdefs.h >>conftest.$ac_ext
35369 cat >>conftest.$ac_ext <<_ACEOF
35370 /* end confdefs.h.  */
35371 $ac_includes_default
35372 #include <$ac_header>
35373 _ACEOF
35374 rm -f conftest.$ac_objext
35375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35376   (eval $ac_compile) 2>conftest.er1
35377   ac_status=$?
35378   grep -v '^ *+' conftest.er1 >conftest.err
35379   rm -f conftest.er1
35380   cat conftest.err >&5
35381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382   (exit $ac_status); } &&
35383          { ac_try='test -z "$ac_c_werror_flag"
35384                          || test ! -s conftest.err'
35385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35386   (eval $ac_try) 2>&5
35387   ac_status=$?
35388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389   (exit $ac_status); }; } &&
35390          { ac_try='test -s conftest.$ac_objext'
35391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392   (eval $ac_try) 2>&5
35393   ac_status=$?
35394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395   (exit $ac_status); }; }; then
35396   ac_header_compiler=yes
35397 else
35398   echo "$as_me: failed program was:" >&5
35399 sed 's/^/| /' conftest.$ac_ext >&5
35400
35401 ac_header_compiler=no
35402 fi
35403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35405 echo "${ECHO_T}$ac_header_compiler" >&6
35406
35407 # Is the header present?
35408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35410 cat >conftest.$ac_ext <<_ACEOF
35411 /* confdefs.h.  */
35412 _ACEOF
35413 cat confdefs.h >>conftest.$ac_ext
35414 cat >>conftest.$ac_ext <<_ACEOF
35415 /* end confdefs.h.  */
35416 #include <$ac_header>
35417 _ACEOF
35418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35420   ac_status=$?
35421   grep -v '^ *+' conftest.er1 >conftest.err
35422   rm -f conftest.er1
35423   cat conftest.err >&5
35424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); } >/dev/null; then
35426   if test -s conftest.err; then
35427     ac_cpp_err=$ac_c_preproc_warn_flag
35428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35429   else
35430     ac_cpp_err=
35431   fi
35432 else
35433   ac_cpp_err=yes
35434 fi
35435 if test -z "$ac_cpp_err"; then
35436   ac_header_preproc=yes
35437 else
35438   echo "$as_me: failed program was:" >&5
35439 sed 's/^/| /' conftest.$ac_ext >&5
35440
35441   ac_header_preproc=no
35442 fi
35443 rm -f conftest.err conftest.$ac_ext
35444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35445 echo "${ECHO_T}$ac_header_preproc" >&6
35446
35447 # So?  What about this header?
35448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35449   yes:no: )
35450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35454     ac_header_preproc=yes
35455     ;;
35456   no:yes:* )
35457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35469     (
35470       cat <<\_ASBOX
35471 ## ------------------------------------------ ##
35472 ## Report this to the AC_PACKAGE_NAME lists.  ##
35473 ## ------------------------------------------ ##
35474 _ASBOX
35475     ) |
35476       sed "s/^/$as_me: WARNING:     /" >&2
35477     ;;
35478 esac
35479 echo "$as_me:$LINENO: checking for $ac_header" >&5
35480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35482   echo $ECHO_N "(cached) $ECHO_C" >&6
35483 else
35484   eval "$as_ac_Header=\$ac_header_preproc"
35485 fi
35486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35488
35489 fi
35490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35491   cat >>confdefs.h <<_ACEOF
35492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35493 _ACEOF
35494
35495 fi
35496
35497 done
35498
35499
35500         if test $ac_cv_header_pth_h = yes ; then
35501                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35502 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35503 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35504   echo $ECHO_N "(cached) $ECHO_C" >&6
35505 else
35506   ac_check_lib_save_LIBS=$LIBS
35507 LIBS="-lpth  $LIBS"
35508 cat >conftest.$ac_ext <<_ACEOF
35509 /* confdefs.h.  */
35510 _ACEOF
35511 cat confdefs.h >>conftest.$ac_ext
35512 cat >>conftest.$ac_ext <<_ACEOF
35513 /* end confdefs.h.  */
35514
35515 /* Override any gcc2 internal prototype to avoid an error.  */
35516 #ifdef __cplusplus
35517 extern "C"
35518 #endif
35519 /* We use char because int might match the return type of a gcc2
35520    builtin and then its argument prototype would still apply.  */
35521 char pth_version ();
35522 int
35523 main ()
35524 {
35525 pth_version ();
35526   ;
35527   return 0;
35528 }
35529 _ACEOF
35530 rm -f conftest.$ac_objext conftest$ac_exeext
35531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35532   (eval $ac_link) 2>conftest.er1
35533   ac_status=$?
35534   grep -v '^ *+' conftest.er1 >conftest.err
35535   rm -f conftest.er1
35536   cat conftest.err >&5
35537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538   (exit $ac_status); } &&
35539          { ac_try='test -z "$ac_c_werror_flag"
35540                          || test ! -s conftest.err'
35541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35542   (eval $ac_try) 2>&5
35543   ac_status=$?
35544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545   (exit $ac_status); }; } &&
35546          { ac_try='test -s conftest$ac_exeext'
35547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35548   (eval $ac_try) 2>&5
35549   ac_status=$?
35550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551   (exit $ac_status); }; }; then
35552   ac_cv_lib_pth_pth_version=yes
35553 else
35554   echo "$as_me: failed program was:" >&5
35555 sed 's/^/| /' conftest.$ac_ext >&5
35556
35557 ac_cv_lib_pth_pth_version=no
35558 fi
35559 rm -f conftest.err conftest.$ac_objext \
35560       conftest$ac_exeext conftest.$ac_ext
35561 LIBS=$ac_check_lib_save_LIBS
35562 fi
35563 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35564 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35565 if test $ac_cv_lib_pth_pth_version = yes; then
35566   have_pth=yes
35567 else
35568   have_pth=no
35569 fi
35570
35571
35572                 if test $have_pth = yes ; then
35573
35574 cat >>confdefs.h <<\_ACEOF
35575 #define HAVE_GNU_PTH 1
35576 _ACEOF
35577
35578                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35579                         ol_link_threads=pth
35580                         ol_with_threads=found
35581
35582                         if test $ol_with_yielding_select = auto ; then
35583                                 ol_with_yielding_select=yes
35584                         fi
35585                 fi
35586         fi
35587 fi
35588
35589 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35590         -o $ol_with_threads = lwp ; then
35591
35592
35593
35594 for ac_header in thread.h synch.h
35595 do
35596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35598   echo "$as_me:$LINENO: checking for $ac_header" >&5
35599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35601   echo $ECHO_N "(cached) $ECHO_C" >&6
35602 fi
35603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35605 else
35606   # Is the header compilable?
35607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35609 cat >conftest.$ac_ext <<_ACEOF
35610 /* confdefs.h.  */
35611 _ACEOF
35612 cat confdefs.h >>conftest.$ac_ext
35613 cat >>conftest.$ac_ext <<_ACEOF
35614 /* end confdefs.h.  */
35615 $ac_includes_default
35616 #include <$ac_header>
35617 _ACEOF
35618 rm -f conftest.$ac_objext
35619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35620   (eval $ac_compile) 2>conftest.er1
35621   ac_status=$?
35622   grep -v '^ *+' conftest.er1 >conftest.err
35623   rm -f conftest.er1
35624   cat conftest.err >&5
35625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626   (exit $ac_status); } &&
35627          { ac_try='test -z "$ac_c_werror_flag"
35628                          || test ! -s conftest.err'
35629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630   (eval $ac_try) 2>&5
35631   ac_status=$?
35632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633   (exit $ac_status); }; } &&
35634          { ac_try='test -s conftest.$ac_objext'
35635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636   (eval $ac_try) 2>&5
35637   ac_status=$?
35638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639   (exit $ac_status); }; }; then
35640   ac_header_compiler=yes
35641 else
35642   echo "$as_me: failed program was:" >&5
35643 sed 's/^/| /' conftest.$ac_ext >&5
35644
35645 ac_header_compiler=no
35646 fi
35647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35649 echo "${ECHO_T}$ac_header_compiler" >&6
35650
35651 # Is the header present?
35652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35654 cat >conftest.$ac_ext <<_ACEOF
35655 /* confdefs.h.  */
35656 _ACEOF
35657 cat confdefs.h >>conftest.$ac_ext
35658 cat >>conftest.$ac_ext <<_ACEOF
35659 /* end confdefs.h.  */
35660 #include <$ac_header>
35661 _ACEOF
35662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35664   ac_status=$?
35665   grep -v '^ *+' conftest.er1 >conftest.err
35666   rm -f conftest.er1
35667   cat conftest.err >&5
35668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669   (exit $ac_status); } >/dev/null; then
35670   if test -s conftest.err; then
35671     ac_cpp_err=$ac_c_preproc_warn_flag
35672     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35673   else
35674     ac_cpp_err=
35675   fi
35676 else
35677   ac_cpp_err=yes
35678 fi
35679 if test -z "$ac_cpp_err"; then
35680   ac_header_preproc=yes
35681 else
35682   echo "$as_me: failed program was:" >&5
35683 sed 's/^/| /' conftest.$ac_ext >&5
35684
35685   ac_header_preproc=no
35686 fi
35687 rm -f conftest.err conftest.$ac_ext
35688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35689 echo "${ECHO_T}$ac_header_preproc" >&6
35690
35691 # So?  What about this header?
35692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35693   yes:no: )
35694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35698     ac_header_preproc=yes
35699     ;;
35700   no:yes:* )
35701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35713     (
35714       cat <<\_ASBOX
35715 ## ------------------------------------------ ##
35716 ## Report this to the AC_PACKAGE_NAME lists.  ##
35717 ## ------------------------------------------ ##
35718 _ASBOX
35719     ) |
35720       sed "s/^/$as_me: WARNING:     /" >&2
35721     ;;
35722 esac
35723 echo "$as_me:$LINENO: checking for $ac_header" >&5
35724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35726   echo $ECHO_N "(cached) $ECHO_C" >&6
35727 else
35728   eval "$as_ac_Header=\$ac_header_preproc"
35729 fi
35730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35732
35733 fi
35734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35735   cat >>confdefs.h <<_ACEOF
35736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35737 _ACEOF
35738
35739 fi
35740
35741 done
35742
35743         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35744                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35745 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35746 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35747   echo $ECHO_N "(cached) $ECHO_C" >&6
35748 else
35749   ac_check_lib_save_LIBS=$LIBS
35750 LIBS="-lthread  $LIBS"
35751 cat >conftest.$ac_ext <<_ACEOF
35752 /* confdefs.h.  */
35753 _ACEOF
35754 cat confdefs.h >>conftest.$ac_ext
35755 cat >>conftest.$ac_ext <<_ACEOF
35756 /* end confdefs.h.  */
35757
35758 /* Override any gcc2 internal prototype to avoid an error.  */
35759 #ifdef __cplusplus
35760 extern "C"
35761 #endif
35762 /* We use char because int might match the return type of a gcc2
35763    builtin and then its argument prototype would still apply.  */
35764 char thr_create ();
35765 int
35766 main ()
35767 {
35768 thr_create ();
35769   ;
35770   return 0;
35771 }
35772 _ACEOF
35773 rm -f conftest.$ac_objext conftest$ac_exeext
35774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35775   (eval $ac_link) 2>conftest.er1
35776   ac_status=$?
35777   grep -v '^ *+' conftest.er1 >conftest.err
35778   rm -f conftest.er1
35779   cat conftest.err >&5
35780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781   (exit $ac_status); } &&
35782          { ac_try='test -z "$ac_c_werror_flag"
35783                          || test ! -s conftest.err'
35784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785   (eval $ac_try) 2>&5
35786   ac_status=$?
35787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788   (exit $ac_status); }; } &&
35789          { ac_try='test -s conftest$ac_exeext'
35790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35791   (eval $ac_try) 2>&5
35792   ac_status=$?
35793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794   (exit $ac_status); }; }; then
35795   ac_cv_lib_thread_thr_create=yes
35796 else
35797   echo "$as_me: failed program was:" >&5
35798 sed 's/^/| /' conftest.$ac_ext >&5
35799
35800 ac_cv_lib_thread_thr_create=no
35801 fi
35802 rm -f conftest.err conftest.$ac_objext \
35803       conftest$ac_exeext conftest.$ac_ext
35804 LIBS=$ac_check_lib_save_LIBS
35805 fi
35806 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35807 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35808 if test $ac_cv_lib_thread_thr_create = yes; then
35809   have_thr=yes
35810 else
35811   have_thr=no
35812 fi
35813
35814
35815                 if test $have_thr = yes ; then
35816
35817 cat >>confdefs.h <<\_ACEOF
35818 #define HAVE_THR 1
35819 _ACEOF
35820
35821                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35822                         ol_link_threads=thr
35823
35824                         if test $ol_with_yielding_select = auto ; then
35825                                 ol_with_yielding_select=yes
35826                         fi
35827
35828
35829
35830 for ac_func in \
35831                                 thr_setconcurrency \
35832                                 thr_getconcurrency \
35833
35834 do
35835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35836 echo "$as_me:$LINENO: checking for $ac_func" >&5
35837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35838 if eval "test \"\${$as_ac_var+set}\" = set"; then
35839   echo $ECHO_N "(cached) $ECHO_C" >&6
35840 else
35841   cat >conftest.$ac_ext <<_ACEOF
35842 /* confdefs.h.  */
35843 _ACEOF
35844 cat confdefs.h >>conftest.$ac_ext
35845 cat >>conftest.$ac_ext <<_ACEOF
35846 /* end confdefs.h.  */
35847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35849 #define $ac_func innocuous_$ac_func
35850
35851 /* System header to define __stub macros and hopefully few prototypes,
35852     which can conflict with char $ac_func (); below.
35853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35854     <limits.h> exists even on freestanding compilers.  */
35855
35856 #ifdef __STDC__
35857 # include <limits.h>
35858 #else
35859 # include <assert.h>
35860 #endif
35861
35862 #undef $ac_func
35863
35864 /* Override any gcc2 internal prototype to avoid an error.  */
35865 #ifdef __cplusplus
35866 extern "C"
35867 {
35868 #endif
35869 /* We use char because int might match the return type of a gcc2
35870    builtin and then its argument prototype would still apply.  */
35871 char $ac_func ();
35872 /* The GNU C library defines this for functions which it implements
35873     to always fail with ENOSYS.  Some functions are actually named
35874     something starting with __ and the normal name is an alias.  */
35875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35876 choke me
35877 #else
35878 char (*f) () = $ac_func;
35879 #endif
35880 #ifdef __cplusplus
35881 }
35882 #endif
35883
35884 int
35885 main ()
35886 {
35887 return f != $ac_func;
35888   ;
35889   return 0;
35890 }
35891 _ACEOF
35892 rm -f conftest.$ac_objext conftest$ac_exeext
35893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35894   (eval $ac_link) 2>conftest.er1
35895   ac_status=$?
35896   grep -v '^ *+' conftest.er1 >conftest.err
35897   rm -f conftest.er1
35898   cat conftest.err >&5
35899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900   (exit $ac_status); } &&
35901          { ac_try='test -z "$ac_c_werror_flag"
35902                          || test ! -s conftest.err'
35903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35904   (eval $ac_try) 2>&5
35905   ac_status=$?
35906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907   (exit $ac_status); }; } &&
35908          { ac_try='test -s conftest$ac_exeext'
35909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35910   (eval $ac_try) 2>&5
35911   ac_status=$?
35912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913   (exit $ac_status); }; }; then
35914   eval "$as_ac_var=yes"
35915 else
35916   echo "$as_me: failed program was:" >&5
35917 sed 's/^/| /' conftest.$ac_ext >&5
35918
35919 eval "$as_ac_var=no"
35920 fi
35921 rm -f conftest.err conftest.$ac_objext \
35922       conftest$ac_exeext conftest.$ac_ext
35923 fi
35924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35926 if test `eval echo '${'$as_ac_var'}'` = yes; then
35927   cat >>confdefs.h <<_ACEOF
35928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35929 _ACEOF
35930
35931 fi
35932 done
35933
35934                 fi
35935         fi
35936
35937
35938 for ac_header in lwp/lwp.h
35939 do
35940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35942   echo "$as_me:$LINENO: checking for $ac_header" >&5
35943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35945   echo $ECHO_N "(cached) $ECHO_C" >&6
35946 fi
35947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35949 else
35950   # Is the header compilable?
35951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35953 cat >conftest.$ac_ext <<_ACEOF
35954 /* confdefs.h.  */
35955 _ACEOF
35956 cat confdefs.h >>conftest.$ac_ext
35957 cat >>conftest.$ac_ext <<_ACEOF
35958 /* end confdefs.h.  */
35959 $ac_includes_default
35960 #include <$ac_header>
35961 _ACEOF
35962 rm -f conftest.$ac_objext
35963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35964   (eval $ac_compile) 2>conftest.er1
35965   ac_status=$?
35966   grep -v '^ *+' conftest.er1 >conftest.err
35967   rm -f conftest.er1
35968   cat conftest.err >&5
35969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970   (exit $ac_status); } &&
35971          { ac_try='test -z "$ac_c_werror_flag"
35972                          || test ! -s conftest.err'
35973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35974   (eval $ac_try) 2>&5
35975   ac_status=$?
35976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977   (exit $ac_status); }; } &&
35978          { ac_try='test -s conftest.$ac_objext'
35979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980   (eval $ac_try) 2>&5
35981   ac_status=$?
35982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983   (exit $ac_status); }; }; then
35984   ac_header_compiler=yes
35985 else
35986   echo "$as_me: failed program was:" >&5
35987 sed 's/^/| /' conftest.$ac_ext >&5
35988
35989 ac_header_compiler=no
35990 fi
35991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35993 echo "${ECHO_T}$ac_header_compiler" >&6
35994
35995 # Is the header present?
35996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35998 cat >conftest.$ac_ext <<_ACEOF
35999 /* confdefs.h.  */
36000 _ACEOF
36001 cat confdefs.h >>conftest.$ac_ext
36002 cat >>conftest.$ac_ext <<_ACEOF
36003 /* end confdefs.h.  */
36004 #include <$ac_header>
36005 _ACEOF
36006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36008   ac_status=$?
36009   grep -v '^ *+' conftest.er1 >conftest.err
36010   rm -f conftest.er1
36011   cat conftest.err >&5
36012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013   (exit $ac_status); } >/dev/null; then
36014   if test -s conftest.err; then
36015     ac_cpp_err=$ac_c_preproc_warn_flag
36016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36017   else
36018     ac_cpp_err=
36019   fi
36020 else
36021   ac_cpp_err=yes
36022 fi
36023 if test -z "$ac_cpp_err"; then
36024   ac_header_preproc=yes
36025 else
36026   echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36028
36029   ac_header_preproc=no
36030 fi
36031 rm -f conftest.err conftest.$ac_ext
36032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36033 echo "${ECHO_T}$ac_header_preproc" >&6
36034
36035 # So?  What about this header?
36036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36037   yes:no: )
36038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36042     ac_header_preproc=yes
36043     ;;
36044   no:yes:* )
36045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36047     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36048 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36049     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36051     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36052 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36055     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36057     (
36058       cat <<\_ASBOX
36059 ## ------------------------------------------ ##
36060 ## Report this to the AC_PACKAGE_NAME lists.  ##
36061 ## ------------------------------------------ ##
36062 _ASBOX
36063     ) |
36064       sed "s/^/$as_me: WARNING:     /" >&2
36065     ;;
36066 esac
36067 echo "$as_me:$LINENO: checking for $ac_header" >&5
36068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36070   echo $ECHO_N "(cached) $ECHO_C" >&6
36071 else
36072   eval "$as_ac_Header=\$ac_header_preproc"
36073 fi
36074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36076
36077 fi
36078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36079   cat >>confdefs.h <<_ACEOF
36080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36081 _ACEOF
36082
36083 fi
36084
36085 done
36086
36087         if test $ac_cv_header_lwp_lwp_h = yes ; then
36088                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36089 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36090 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36091   echo $ECHO_N "(cached) $ECHO_C" >&6
36092 else
36093   ac_check_lib_save_LIBS=$LIBS
36094 LIBS="-llwp  $LIBS"
36095 cat >conftest.$ac_ext <<_ACEOF
36096 /* confdefs.h.  */
36097 _ACEOF
36098 cat confdefs.h >>conftest.$ac_ext
36099 cat >>conftest.$ac_ext <<_ACEOF
36100 /* end confdefs.h.  */
36101
36102 /* Override any gcc2 internal prototype to avoid an error.  */
36103 #ifdef __cplusplus
36104 extern "C"
36105 #endif
36106 /* We use char because int might match the return type of a gcc2
36107    builtin and then its argument prototype would still apply.  */
36108 char lwp_create ();
36109 int
36110 main ()
36111 {
36112 lwp_create ();
36113   ;
36114   return 0;
36115 }
36116 _ACEOF
36117 rm -f conftest.$ac_objext conftest$ac_exeext
36118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36119   (eval $ac_link) 2>conftest.er1
36120   ac_status=$?
36121   grep -v '^ *+' conftest.er1 >conftest.err
36122   rm -f conftest.er1
36123   cat conftest.err >&5
36124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125   (exit $ac_status); } &&
36126          { ac_try='test -z "$ac_c_werror_flag"
36127                          || test ! -s conftest.err'
36128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129   (eval $ac_try) 2>&5
36130   ac_status=$?
36131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132   (exit $ac_status); }; } &&
36133          { ac_try='test -s conftest$ac_exeext'
36134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36135   (eval $ac_try) 2>&5
36136   ac_status=$?
36137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138   (exit $ac_status); }; }; then
36139   ac_cv_lib_lwp_lwp_create=yes
36140 else
36141   echo "$as_me: failed program was:" >&5
36142 sed 's/^/| /' conftest.$ac_ext >&5
36143
36144 ac_cv_lib_lwp_lwp_create=no
36145 fi
36146 rm -f conftest.err conftest.$ac_objext \
36147       conftest$ac_exeext conftest.$ac_ext
36148 LIBS=$ac_check_lib_save_LIBS
36149 fi
36150 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36151 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36152 if test $ac_cv_lib_lwp_lwp_create = yes; then
36153   have_lwp=yes
36154 else
36155   have_lwp=no
36156 fi
36157
36158
36159                 if test $have_lwp = yes ; then
36160
36161 cat >>confdefs.h <<\_ACEOF
36162 #define HAVE_LWP 1
36163 _ACEOF
36164
36165                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36166                         ol_link_threads=lwp
36167
36168                         if test $ol_with_yielding_select = auto ; then
36169                                 ol_with_yielding_select=no
36170                         fi
36171                 fi
36172         fi
36173 fi
36174
36175 if test $ol_with_yielding_select = yes ; then
36176
36177 cat >>confdefs.h <<\_ACEOF
36178 #define HAVE_YIELDING_SELECT 1
36179 _ACEOF
36180
36181 fi
36182
36183 if test $ol_with_threads = manual ; then
36184                 ol_link_threads=yes
36185
36186         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36187 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36188
36189
36190
36191 for ac_header in pthread.h sched.h
36192 do
36193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36195   echo "$as_me:$LINENO: checking for $ac_header" >&5
36196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36198   echo $ECHO_N "(cached) $ECHO_C" >&6
36199 fi
36200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36202 else
36203   # Is the header compilable?
36204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36206 cat >conftest.$ac_ext <<_ACEOF
36207 /* confdefs.h.  */
36208 _ACEOF
36209 cat confdefs.h >>conftest.$ac_ext
36210 cat >>conftest.$ac_ext <<_ACEOF
36211 /* end confdefs.h.  */
36212 $ac_includes_default
36213 #include <$ac_header>
36214 _ACEOF
36215 rm -f conftest.$ac_objext
36216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36217   (eval $ac_compile) 2>conftest.er1
36218   ac_status=$?
36219   grep -v '^ *+' conftest.er1 >conftest.err
36220   rm -f conftest.er1
36221   cat conftest.err >&5
36222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36223   (exit $ac_status); } &&
36224          { ac_try='test -z "$ac_c_werror_flag"
36225                          || test ! -s conftest.err'
36226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36227   (eval $ac_try) 2>&5
36228   ac_status=$?
36229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230   (exit $ac_status); }; } &&
36231          { ac_try='test -s conftest.$ac_objext'
36232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36233   (eval $ac_try) 2>&5
36234   ac_status=$?
36235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236   (exit $ac_status); }; }; then
36237   ac_header_compiler=yes
36238 else
36239   echo "$as_me: failed program was:" >&5
36240 sed 's/^/| /' conftest.$ac_ext >&5
36241
36242 ac_header_compiler=no
36243 fi
36244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36246 echo "${ECHO_T}$ac_header_compiler" >&6
36247
36248 # Is the header present?
36249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36251 cat >conftest.$ac_ext <<_ACEOF
36252 /* confdefs.h.  */
36253 _ACEOF
36254 cat confdefs.h >>conftest.$ac_ext
36255 cat >>conftest.$ac_ext <<_ACEOF
36256 /* end confdefs.h.  */
36257 #include <$ac_header>
36258 _ACEOF
36259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36261   ac_status=$?
36262   grep -v '^ *+' conftest.er1 >conftest.err
36263   rm -f conftest.er1
36264   cat conftest.err >&5
36265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36266   (exit $ac_status); } >/dev/null; then
36267   if test -s conftest.err; then
36268     ac_cpp_err=$ac_c_preproc_warn_flag
36269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36270   else
36271     ac_cpp_err=
36272   fi
36273 else
36274   ac_cpp_err=yes
36275 fi
36276 if test -z "$ac_cpp_err"; then
36277   ac_header_preproc=yes
36278 else
36279   echo "$as_me: failed program was:" >&5
36280 sed 's/^/| /' conftest.$ac_ext >&5
36281
36282   ac_header_preproc=no
36283 fi
36284 rm -f conftest.err conftest.$ac_ext
36285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36286 echo "${ECHO_T}$ac_header_preproc" >&6
36287
36288 # So?  What about this header?
36289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36290   yes:no: )
36291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36295     ac_header_preproc=yes
36296     ;;
36297   no:yes:* )
36298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36310     (
36311       cat <<\_ASBOX
36312 ## ------------------------------------------ ##
36313 ## Report this to the AC_PACKAGE_NAME lists.  ##
36314 ## ------------------------------------------ ##
36315 _ASBOX
36316     ) |
36317       sed "s/^/$as_me: WARNING:     /" >&2
36318     ;;
36319 esac
36320 echo "$as_me:$LINENO: checking for $ac_header" >&5
36321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36323   echo $ECHO_N "(cached) $ECHO_C" >&6
36324 else
36325   eval "$as_ac_Header=\$ac_header_preproc"
36326 fi
36327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36329
36330 fi
36331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36332   cat >>confdefs.h <<_ACEOF
36333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36334 _ACEOF
36335
36336 fi
36337
36338 done
36339
36340
36341
36342 for ac_func in sched_yield pthread_yield
36343 do
36344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36345 echo "$as_me:$LINENO: checking for $ac_func" >&5
36346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36347 if eval "test \"\${$as_ac_var+set}\" = set"; then
36348   echo $ECHO_N "(cached) $ECHO_C" >&6
36349 else
36350   cat >conftest.$ac_ext <<_ACEOF
36351 /* confdefs.h.  */
36352 _ACEOF
36353 cat confdefs.h >>conftest.$ac_ext
36354 cat >>conftest.$ac_ext <<_ACEOF
36355 /* end confdefs.h.  */
36356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36358 #define $ac_func innocuous_$ac_func
36359
36360 /* System header to define __stub macros and hopefully few prototypes,
36361     which can conflict with char $ac_func (); below.
36362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36363     <limits.h> exists even on freestanding compilers.  */
36364
36365 #ifdef __STDC__
36366 # include <limits.h>
36367 #else
36368 # include <assert.h>
36369 #endif
36370
36371 #undef $ac_func
36372
36373 /* Override any gcc2 internal prototype to avoid an error.  */
36374 #ifdef __cplusplus
36375 extern "C"
36376 {
36377 #endif
36378 /* We use char because int might match the return type of a gcc2
36379    builtin and then its argument prototype would still apply.  */
36380 char $ac_func ();
36381 /* The GNU C library defines this for functions which it implements
36382     to always fail with ENOSYS.  Some functions are actually named
36383     something starting with __ and the normal name is an alias.  */
36384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36385 choke me
36386 #else
36387 char (*f) () = $ac_func;
36388 #endif
36389 #ifdef __cplusplus
36390 }
36391 #endif
36392
36393 int
36394 main ()
36395 {
36396 return f != $ac_func;
36397   ;
36398   return 0;
36399 }
36400 _ACEOF
36401 rm -f conftest.$ac_objext conftest$ac_exeext
36402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36403   (eval $ac_link) 2>conftest.er1
36404   ac_status=$?
36405   grep -v '^ *+' conftest.er1 >conftest.err
36406   rm -f conftest.er1
36407   cat conftest.err >&5
36408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409   (exit $ac_status); } &&
36410          { ac_try='test -z "$ac_c_werror_flag"
36411                          || test ! -s conftest.err'
36412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413   (eval $ac_try) 2>&5
36414   ac_status=$?
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); }; } &&
36417          { ac_try='test -s conftest$ac_exeext'
36418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419   (eval $ac_try) 2>&5
36420   ac_status=$?
36421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422   (exit $ac_status); }; }; then
36423   eval "$as_ac_var=yes"
36424 else
36425   echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36427
36428 eval "$as_ac_var=no"
36429 fi
36430 rm -f conftest.err conftest.$ac_objext \
36431       conftest$ac_exeext conftest.$ac_ext
36432 fi
36433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36435 if test `eval echo '${'$as_ac_var'}'` = yes; then
36436   cat >>confdefs.h <<_ACEOF
36437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36438 _ACEOF
36439
36440 fi
36441 done
36442
36443
36444         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36445 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36446 if test "${ol_cv_header_linux_threads+set}" = set; then
36447   echo $ECHO_N "(cached) $ECHO_C" >&6
36448 else
36449   cat >conftest.$ac_ext <<_ACEOF
36450 /* confdefs.h.  */
36451 _ACEOF
36452 cat confdefs.h >>conftest.$ac_ext
36453 cat >>conftest.$ac_ext <<_ACEOF
36454 /* end confdefs.h.  */
36455 #include <pthread.h>
36456 _ACEOF
36457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36458   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36459   ol_cv_header_linux_threads=yes
36460 else
36461   ol_cv_header_linux_threads=no
36462 fi
36463 rm -f conftest*
36464
36465
36466 fi
36467 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36468 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36469         if test $ol_cv_header_linux_threads = yes; then
36470
36471 cat >>confdefs.h <<\_ACEOF
36472 #define HAVE_LINUX_THREADS 1
36473 _ACEOF
36474
36475         fi
36476
36477
36478
36479 for ac_header in mach/cthreads.h
36480 do
36481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36483   echo "$as_me:$LINENO: checking for $ac_header" >&5
36484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36486   echo $ECHO_N "(cached) $ECHO_C" >&6
36487 fi
36488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36490 else
36491   # Is the header compilable?
36492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36494 cat >conftest.$ac_ext <<_ACEOF
36495 /* confdefs.h.  */
36496 _ACEOF
36497 cat confdefs.h >>conftest.$ac_ext
36498 cat >>conftest.$ac_ext <<_ACEOF
36499 /* end confdefs.h.  */
36500 $ac_includes_default
36501 #include <$ac_header>
36502 _ACEOF
36503 rm -f conftest.$ac_objext
36504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36505   (eval $ac_compile) 2>conftest.er1
36506   ac_status=$?
36507   grep -v '^ *+' conftest.er1 >conftest.err
36508   rm -f conftest.er1
36509   cat conftest.err >&5
36510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511   (exit $ac_status); } &&
36512          { ac_try='test -z "$ac_c_werror_flag"
36513                          || test ! -s conftest.err'
36514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36515   (eval $ac_try) 2>&5
36516   ac_status=$?
36517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518   (exit $ac_status); }; } &&
36519          { ac_try='test -s conftest.$ac_objext'
36520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521   (eval $ac_try) 2>&5
36522   ac_status=$?
36523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524   (exit $ac_status); }; }; then
36525   ac_header_compiler=yes
36526 else
36527   echo "$as_me: failed program was:" >&5
36528 sed 's/^/| /' conftest.$ac_ext >&5
36529
36530 ac_header_compiler=no
36531 fi
36532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36534 echo "${ECHO_T}$ac_header_compiler" >&6
36535
36536 # Is the header present?
36537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36539 cat >conftest.$ac_ext <<_ACEOF
36540 /* confdefs.h.  */
36541 _ACEOF
36542 cat confdefs.h >>conftest.$ac_ext
36543 cat >>conftest.$ac_ext <<_ACEOF
36544 /* end confdefs.h.  */
36545 #include <$ac_header>
36546 _ACEOF
36547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36549   ac_status=$?
36550   grep -v '^ *+' conftest.er1 >conftest.err
36551   rm -f conftest.er1
36552   cat conftest.err >&5
36553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554   (exit $ac_status); } >/dev/null; then
36555   if test -s conftest.err; then
36556     ac_cpp_err=$ac_c_preproc_warn_flag
36557     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36558   else
36559     ac_cpp_err=
36560   fi
36561 else
36562   ac_cpp_err=yes
36563 fi
36564 if test -z "$ac_cpp_err"; then
36565   ac_header_preproc=yes
36566 else
36567   echo "$as_me: failed program was:" >&5
36568 sed 's/^/| /' conftest.$ac_ext >&5
36569
36570   ac_header_preproc=no
36571 fi
36572 rm -f conftest.err conftest.$ac_ext
36573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36574 echo "${ECHO_T}$ac_header_preproc" >&6
36575
36576 # So?  What about this header?
36577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36578   yes:no: )
36579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36583     ac_header_preproc=yes
36584     ;;
36585   no:yes:* )
36586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36588     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36589 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36590     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36592     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36593 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36596     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36598     (
36599       cat <<\_ASBOX
36600 ## ------------------------------------------ ##
36601 ## Report this to the AC_PACKAGE_NAME lists.  ##
36602 ## ------------------------------------------ ##
36603 _ASBOX
36604     ) |
36605       sed "s/^/$as_me: WARNING:     /" >&2
36606     ;;
36607 esac
36608 echo "$as_me:$LINENO: checking for $ac_header" >&5
36609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36611   echo $ECHO_N "(cached) $ECHO_C" >&6
36612 else
36613   eval "$as_ac_Header=\$ac_header_preproc"
36614 fi
36615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36617
36618 fi
36619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36620   cat >>confdefs.h <<_ACEOF
36621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36622 _ACEOF
36623
36624 fi
36625
36626 done
36627
36628
36629 for ac_header in lwp/lwp.h
36630 do
36631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36633   echo "$as_me:$LINENO: checking for $ac_header" >&5
36634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36636   echo $ECHO_N "(cached) $ECHO_C" >&6
36637 fi
36638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36640 else
36641   # Is the header compilable?
36642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36644 cat >conftest.$ac_ext <<_ACEOF
36645 /* confdefs.h.  */
36646 _ACEOF
36647 cat confdefs.h >>conftest.$ac_ext
36648 cat >>conftest.$ac_ext <<_ACEOF
36649 /* end confdefs.h.  */
36650 $ac_includes_default
36651 #include <$ac_header>
36652 _ACEOF
36653 rm -f conftest.$ac_objext
36654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36655   (eval $ac_compile) 2>conftest.er1
36656   ac_status=$?
36657   grep -v '^ *+' conftest.er1 >conftest.err
36658   rm -f conftest.er1
36659   cat conftest.err >&5
36660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661   (exit $ac_status); } &&
36662          { ac_try='test -z "$ac_c_werror_flag"
36663                          || test ! -s conftest.err'
36664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36665   (eval $ac_try) 2>&5
36666   ac_status=$?
36667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668   (exit $ac_status); }; } &&
36669          { ac_try='test -s conftest.$ac_objext'
36670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36671   (eval $ac_try) 2>&5
36672   ac_status=$?
36673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674   (exit $ac_status); }; }; then
36675   ac_header_compiler=yes
36676 else
36677   echo "$as_me: failed program was:" >&5
36678 sed 's/^/| /' conftest.$ac_ext >&5
36679
36680 ac_header_compiler=no
36681 fi
36682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36684 echo "${ECHO_T}$ac_header_compiler" >&6
36685
36686 # Is the header present?
36687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36689 cat >conftest.$ac_ext <<_ACEOF
36690 /* confdefs.h.  */
36691 _ACEOF
36692 cat confdefs.h >>conftest.$ac_ext
36693 cat >>conftest.$ac_ext <<_ACEOF
36694 /* end confdefs.h.  */
36695 #include <$ac_header>
36696 _ACEOF
36697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36699   ac_status=$?
36700   grep -v '^ *+' conftest.er1 >conftest.err
36701   rm -f conftest.er1
36702   cat conftest.err >&5
36703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704   (exit $ac_status); } >/dev/null; then
36705   if test -s conftest.err; then
36706     ac_cpp_err=$ac_c_preproc_warn_flag
36707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36708   else
36709     ac_cpp_err=
36710   fi
36711 else
36712   ac_cpp_err=yes
36713 fi
36714 if test -z "$ac_cpp_err"; then
36715   ac_header_preproc=yes
36716 else
36717   echo "$as_me: failed program was:" >&5
36718 sed 's/^/| /' conftest.$ac_ext >&5
36719
36720   ac_header_preproc=no
36721 fi
36722 rm -f conftest.err conftest.$ac_ext
36723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36724 echo "${ECHO_T}$ac_header_preproc" >&6
36725
36726 # So?  What about this header?
36727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36728   yes:no: )
36729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36733     ac_header_preproc=yes
36734     ;;
36735   no:yes:* )
36736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36748     (
36749       cat <<\_ASBOX
36750 ## ------------------------------------------ ##
36751 ## Report this to the AC_PACKAGE_NAME lists.  ##
36752 ## ------------------------------------------ ##
36753 _ASBOX
36754     ) |
36755       sed "s/^/$as_me: WARNING:     /" >&2
36756     ;;
36757 esac
36758 echo "$as_me:$LINENO: checking for $ac_header" >&5
36759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36761   echo $ECHO_N "(cached) $ECHO_C" >&6
36762 else
36763   eval "$as_ac_Header=\$ac_header_preproc"
36764 fi
36765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36767
36768 fi
36769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36770   cat >>confdefs.h <<_ACEOF
36771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36772 _ACEOF
36773
36774 fi
36775
36776 done
36777
36778
36779
36780 for ac_header in thread.h synch.h
36781 do
36782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36784   echo "$as_me:$LINENO: checking for $ac_header" >&5
36785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36787   echo $ECHO_N "(cached) $ECHO_C" >&6
36788 fi
36789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36791 else
36792   # Is the header compilable?
36793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36795 cat >conftest.$ac_ext <<_ACEOF
36796 /* confdefs.h.  */
36797 _ACEOF
36798 cat confdefs.h >>conftest.$ac_ext
36799 cat >>conftest.$ac_ext <<_ACEOF
36800 /* end confdefs.h.  */
36801 $ac_includes_default
36802 #include <$ac_header>
36803 _ACEOF
36804 rm -f conftest.$ac_objext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36806   (eval $ac_compile) 2>conftest.er1
36807   ac_status=$?
36808   grep -v '^ *+' conftest.er1 >conftest.err
36809   rm -f conftest.er1
36810   cat conftest.err >&5
36811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812   (exit $ac_status); } &&
36813          { ac_try='test -z "$ac_c_werror_flag"
36814                          || test ! -s conftest.err'
36815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816   (eval $ac_try) 2>&5
36817   ac_status=$?
36818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819   (exit $ac_status); }; } &&
36820          { ac_try='test -s conftest.$ac_objext'
36821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822   (eval $ac_try) 2>&5
36823   ac_status=$?
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); }; }; then
36826   ac_header_compiler=yes
36827 else
36828   echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36830
36831 ac_header_compiler=no
36832 fi
36833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36835 echo "${ECHO_T}$ac_header_compiler" >&6
36836
36837 # Is the header present?
36838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36840 cat >conftest.$ac_ext <<_ACEOF
36841 /* confdefs.h.  */
36842 _ACEOF
36843 cat confdefs.h >>conftest.$ac_ext
36844 cat >>conftest.$ac_ext <<_ACEOF
36845 /* end confdefs.h.  */
36846 #include <$ac_header>
36847 _ACEOF
36848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36850   ac_status=$?
36851   grep -v '^ *+' conftest.er1 >conftest.err
36852   rm -f conftest.er1
36853   cat conftest.err >&5
36854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855   (exit $ac_status); } >/dev/null; then
36856   if test -s conftest.err; then
36857     ac_cpp_err=$ac_c_preproc_warn_flag
36858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36859   else
36860     ac_cpp_err=
36861   fi
36862 else
36863   ac_cpp_err=yes
36864 fi
36865 if test -z "$ac_cpp_err"; then
36866   ac_header_preproc=yes
36867 else
36868   echo "$as_me: failed program was:" >&5
36869 sed 's/^/| /' conftest.$ac_ext >&5
36870
36871   ac_header_preproc=no
36872 fi
36873 rm -f conftest.err conftest.$ac_ext
36874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36875 echo "${ECHO_T}$ac_header_preproc" >&6
36876
36877 # So?  What about this header?
36878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36879   yes:no: )
36880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36884     ac_header_preproc=yes
36885     ;;
36886   no:yes:* )
36887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36899     (
36900       cat <<\_ASBOX
36901 ## ------------------------------------------ ##
36902 ## Report this to the AC_PACKAGE_NAME lists.  ##
36903 ## ------------------------------------------ ##
36904 _ASBOX
36905     ) |
36906       sed "s/^/$as_me: WARNING:     /" >&2
36907     ;;
36908 esac
36909 echo "$as_me:$LINENO: checking for $ac_header" >&5
36910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36912   echo $ECHO_N "(cached) $ECHO_C" >&6
36913 else
36914   eval "$as_ac_Header=\$ac_header_preproc"
36915 fi
36916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36918
36919 fi
36920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36921   cat >>confdefs.h <<_ACEOF
36922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36923 _ACEOF
36924
36925 fi
36926
36927 done
36928
36929 fi
36930
36931 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36932                         cat >>confdefs.h <<\_ACEOF
36933 #define REENTRANT 1
36934 _ACEOF
36935
36936         cat >>confdefs.h <<\_ACEOF
36937 #define _REENTRANT 1
36938 _ACEOF
36939
36940         cat >>confdefs.h <<\_ACEOF
36941 #define THREAD_SAFE 1
36942 _ACEOF
36943
36944         cat >>confdefs.h <<\_ACEOF
36945 #define _THREAD_SAFE 1
36946 _ACEOF
36947
36948         cat >>confdefs.h <<\_ACEOF
36949 #define THREADSAFE 1
36950 _ACEOF
36951
36952         cat >>confdefs.h <<\_ACEOF
36953 #define _THREADSAFE 1
36954 _ACEOF
36955
36956         cat >>confdefs.h <<\_ACEOF
36957 #define _SGI_MP_SOURCE 1
36958 _ACEOF
36959
36960
36961                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
36962 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
36963 if test "${ol_cv_errno_thread_specific+set}" = set; then
36964   echo $ECHO_N "(cached) $ECHO_C" >&6
36965 else
36966
36967                 cat >conftest.$ac_ext <<_ACEOF
36968 /* confdefs.h.  */
36969 _ACEOF
36970 cat confdefs.h >>conftest.$ac_ext
36971 cat >>conftest.$ac_ext <<_ACEOF
36972 /* end confdefs.h.  */
36973 #include <errno.h>
36974 int
36975 main ()
36976 {
36977 errno = 0;
36978   ;
36979   return 0;
36980 }
36981 _ACEOF
36982 rm -f conftest.$ac_objext conftest$ac_exeext
36983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36984   (eval $ac_link) 2>conftest.er1
36985   ac_status=$?
36986   grep -v '^ *+' conftest.er1 >conftest.err
36987   rm -f conftest.er1
36988   cat conftest.err >&5
36989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990   (exit $ac_status); } &&
36991          { ac_try='test -z "$ac_c_werror_flag"
36992                          || test ! -s conftest.err'
36993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36994   (eval $ac_try) 2>&5
36995   ac_status=$?
36996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997   (exit $ac_status); }; } &&
36998          { ac_try='test -s conftest$ac_exeext'
36999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37000   (eval $ac_try) 2>&5
37001   ac_status=$?
37002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37003   (exit $ac_status); }; }; then
37004   ol_cv_errno_thread_specific=yes
37005 else
37006   echo "$as_me: failed program was:" >&5
37007 sed 's/^/| /' conftest.$ac_ext >&5
37008
37009 ol_cv_errno_thread_specific=no
37010 fi
37011 rm -f conftest.err conftest.$ac_objext \
37012       conftest$ac_exeext conftest.$ac_ext
37013
37014 fi
37015 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37016 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37017
37018                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37019 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37020 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37021   echo $ECHO_N "(cached) $ECHO_C" >&6
37022 else
37023
37024                 cat >conftest.$ac_ext <<_ACEOF
37025 /* confdefs.h.  */
37026 _ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h.  */
37030 #include <netdb.h>
37031 int
37032 main ()
37033 {
37034 h_errno = 0;
37035   ;
37036   return 0;
37037 }
37038 _ACEOF
37039 rm -f conftest.$ac_objext conftest$ac_exeext
37040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37041   (eval $ac_link) 2>conftest.er1
37042   ac_status=$?
37043   grep -v '^ *+' conftest.er1 >conftest.err
37044   rm -f conftest.er1
37045   cat conftest.err >&5
37046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37047   (exit $ac_status); } &&
37048          { ac_try='test -z "$ac_c_werror_flag"
37049                          || test ! -s conftest.err'
37050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051   (eval $ac_try) 2>&5
37052   ac_status=$?
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); }; } &&
37055          { ac_try='test -s conftest$ac_exeext'
37056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057   (eval $ac_try) 2>&5
37058   ac_status=$?
37059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060   (exit $ac_status); }; }; then
37061   ol_cv_h_errno_thread_specific=yes
37062 else
37063   echo "$as_me: failed program was:" >&5
37064 sed 's/^/| /' conftest.$ac_ext >&5
37065
37066 ol_cv_h_errno_thread_specific=no
37067 fi
37068 rm -f conftest.err conftest.$ac_objext \
37069       conftest$ac_exeext conftest.$ac_ext
37070
37071 fi
37072 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37073 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37074
37075         if test $ol_cv_errno_thread_specific != yes \
37076                 -o $ol_cv_h_errno_thread_specific != yes ; then
37077                 LIBS="$LTHREAD_LIBS $LIBS"
37078                 LTHREAD_LIBS=""
37079         fi
37080
37081 fi
37082
37083 if test $ol_link_threads = no ; then
37084         if test $ol_with_threads = yes ; then
37085                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37086 echo "$as_me: error: no suitable thread support" >&2;}
37087    { (exit 1); exit 1; }; }
37088         fi
37089
37090         if test $ol_with_threads = auto ; then
37091                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37092 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37093                 ol_with_threads=no
37094         fi
37095
37096
37097 cat >>confdefs.h <<\_ACEOF
37098 #define NO_THREADS 1
37099 _ACEOF
37100
37101         LTHREAD_LIBS=""
37102 fi
37103
37104 if test $ol_link_threads != no ; then
37105
37106 cat >>confdefs.h <<\_ACEOF
37107 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37108 _ACEOF
37109
37110 fi
37111
37112
37113
37114
37115 for ac_func in \
37116         ctime_r                 \
37117         gethostbyname_r gethostbyaddr_r \
37118
37119 do
37120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37121 echo "$as_me:$LINENO: checking for $ac_func" >&5
37122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37123 if eval "test \"\${$as_ac_var+set}\" = set"; then
37124   echo $ECHO_N "(cached) $ECHO_C" >&6
37125 else
37126   cat >conftest.$ac_ext <<_ACEOF
37127 /* confdefs.h.  */
37128 _ACEOF
37129 cat confdefs.h >>conftest.$ac_ext
37130 cat >>conftest.$ac_ext <<_ACEOF
37131 /* end confdefs.h.  */
37132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37134 #define $ac_func innocuous_$ac_func
37135
37136 /* System header to define __stub macros and hopefully few prototypes,
37137     which can conflict with char $ac_func (); below.
37138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37139     <limits.h> exists even on freestanding compilers.  */
37140
37141 #ifdef __STDC__
37142 # include <limits.h>
37143 #else
37144 # include <assert.h>
37145 #endif
37146
37147 #undef $ac_func
37148
37149 /* Override any gcc2 internal prototype to avoid an error.  */
37150 #ifdef __cplusplus
37151 extern "C"
37152 {
37153 #endif
37154 /* We use char because int might match the return type of a gcc2
37155    builtin and then its argument prototype would still apply.  */
37156 char $ac_func ();
37157 /* The GNU C library defines this for functions which it implements
37158     to always fail with ENOSYS.  Some functions are actually named
37159     something starting with __ and the normal name is an alias.  */
37160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37161 choke me
37162 #else
37163 char (*f) () = $ac_func;
37164 #endif
37165 #ifdef __cplusplus
37166 }
37167 #endif
37168
37169 int
37170 main ()
37171 {
37172 return f != $ac_func;
37173   ;
37174   return 0;
37175 }
37176 _ACEOF
37177 rm -f conftest.$ac_objext conftest$ac_exeext
37178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37179   (eval $ac_link) 2>conftest.er1
37180   ac_status=$?
37181   grep -v '^ *+' conftest.er1 >conftest.err
37182   rm -f conftest.er1
37183   cat conftest.err >&5
37184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37185   (exit $ac_status); } &&
37186          { ac_try='test -z "$ac_c_werror_flag"
37187                          || test ! -s conftest.err'
37188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37189   (eval $ac_try) 2>&5
37190   ac_status=$?
37191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192   (exit $ac_status); }; } &&
37193          { ac_try='test -s conftest$ac_exeext'
37194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37195   (eval $ac_try) 2>&5
37196   ac_status=$?
37197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198   (exit $ac_status); }; }; then
37199   eval "$as_ac_var=yes"
37200 else
37201   echo "$as_me: failed program was:" >&5
37202 sed 's/^/| /' conftest.$ac_ext >&5
37203
37204 eval "$as_ac_var=no"
37205 fi
37206 rm -f conftest.err conftest.$ac_objext \
37207       conftest$ac_exeext conftest.$ac_ext
37208 fi
37209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37211 if test `eval echo '${'$as_ac_var'}'` = yes; then
37212   cat >>confdefs.h <<_ACEOF
37213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37214 _ACEOF
37215
37216 fi
37217 done
37218
37219
37220 if test "$ac_cv_func_ctime_r" = no ; then
37221         ol_cv_func_ctime_r_nargs=0
37222 else
37223         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37224 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37225 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37226   echo $ECHO_N "(cached) $ECHO_C" >&6
37227 else
37228   cat >conftest.$ac_ext <<_ACEOF
37229 /* confdefs.h.  */
37230 _ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h.  */
37234 #include <time.h>
37235 int
37236 main ()
37237 {
37238 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37239   ;
37240   return 0;
37241 }
37242 _ACEOF
37243 rm -f conftest.$ac_objext
37244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37245   (eval $ac_compile) 2>conftest.er1
37246   ac_status=$?
37247   grep -v '^ *+' conftest.er1 >conftest.err
37248   rm -f conftest.er1
37249   cat conftest.err >&5
37250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251   (exit $ac_status); } &&
37252          { ac_try='test -z "$ac_c_werror_flag"
37253                          || test ! -s conftest.err'
37254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37255   (eval $ac_try) 2>&5
37256   ac_status=$?
37257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37258   (exit $ac_status); }; } &&
37259          { ac_try='test -s conftest.$ac_objext'
37260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37261   (eval $ac_try) 2>&5
37262   ac_status=$?
37263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264   (exit $ac_status); }; }; then
37265   ol_cv_func_ctime_r_nargs3=yes
37266 else
37267   echo "$as_me: failed program was:" >&5
37268 sed 's/^/| /' conftest.$ac_ext >&5
37269
37270 ol_cv_func_ctime_r_nargs3=no
37271 fi
37272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37273
37274         cat >conftest.$ac_ext <<_ACEOF
37275 /* confdefs.h.  */
37276 _ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h.  */
37280 #include <time.h>
37281 int
37282 main ()
37283 {
37284 time_t ti; char *buffer; ctime_r(&ti,buffer);
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_ctime_r_nargs2=yes
37312 else
37313   echo "$as_me: failed program was:" >&5
37314 sed 's/^/| /' conftest.$ac_ext >&5
37315
37316 ol_cv_func_ctime_r_nargs2=no
37317 fi
37318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37319
37320         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37321                 $ol_cv_func_ctime_r_nargs2 = no ; then
37322
37323                 ol_cv_func_ctime_r_nargs=3
37324
37325         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37326                 $ol_cv_func_ctime_r_nargs2 = yes ; then
37327
37328                 ol_cv_func_ctime_r_nargs=2
37329
37330         else
37331                 ol_cv_func_ctime_r_nargs=0
37332         fi
37333
37334 fi
37335 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37336 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37337
37338   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37339
37340 cat >>confdefs.h <<_ACEOF
37341 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37342 _ACEOF
37343
37344   fi
37345
37346 fi
37347
37348 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37349         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37350 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37351 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37352   echo $ECHO_N "(cached) $ECHO_C" >&6
37353 else
37354   cat >conftest.$ac_ext <<_ACEOF
37355 /* confdefs.h.  */
37356 _ACEOF
37357 cat confdefs.h >>conftest.$ac_ext
37358 cat >>conftest.$ac_ext <<_ACEOF
37359 /* end confdefs.h.  */
37360 #include <sys/types.h>
37361 #include <sys/socket.h>
37362 #include <netinet/in.h>
37363 #include <netdb.h>
37364 #define BUFSIZE (sizeof(struct hostent)+10)
37365 int
37366 main ()
37367 {
37368 struct hostent hent; char buffer[BUFSIZE];
37369                 int bufsize=BUFSIZE;int h_errno;
37370                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37371                         buffer, bufsize, &h_errno);
37372   ;
37373   return 0;
37374 }
37375 _ACEOF
37376 rm -f conftest.$ac_objext
37377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37378   (eval $ac_compile) 2>conftest.er1
37379   ac_status=$?
37380   grep -v '^ *+' conftest.er1 >conftest.err
37381   rm -f conftest.er1
37382   cat conftest.err >&5
37383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384   (exit $ac_status); } &&
37385          { ac_try='test -z "$ac_c_werror_flag"
37386                          || test ! -s conftest.err'
37387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37388   (eval $ac_try) 2>&5
37389   ac_status=$?
37390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391   (exit $ac_status); }; } &&
37392          { ac_try='test -s conftest.$ac_objext'
37393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37394   (eval $ac_try) 2>&5
37395   ac_status=$?
37396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37397   (exit $ac_status); }; }; then
37398   ol_cv_func_gethostbyname_r_nargs5=yes
37399 else
37400   echo "$as_me: failed program was:" >&5
37401 sed 's/^/| /' conftest.$ac_ext >&5
37402
37403 ol_cv_func_gethostbyname_r_nargs5=no
37404 fi
37405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37406
37407         cat >conftest.$ac_ext <<_ACEOF
37408 /* confdefs.h.  */
37409 _ACEOF
37410 cat confdefs.h >>conftest.$ac_ext
37411 cat >>conftest.$ac_ext <<_ACEOF
37412 /* end confdefs.h.  */
37413 #include <sys/types.h>
37414 #include <sys/socket.h>
37415 #include <netinet/in.h>
37416 #include <netdb.h>
37417 #define BUFSIZE (sizeof(struct hostent)+10)
37418 int
37419 main ()
37420 {
37421 struct hostent hent;struct hostent *rhent;
37422                 char buffer[BUFSIZE];
37423                 int bufsize=BUFSIZE;int h_errno;
37424                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37425                         &rhent, &h_errno);
37426   ;
37427   return 0;
37428 }
37429 _ACEOF
37430 rm -f conftest.$ac_objext
37431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37432   (eval $ac_compile) 2>conftest.er1
37433   ac_status=$?
37434   grep -v '^ *+' conftest.er1 >conftest.err
37435   rm -f conftest.er1
37436   cat conftest.err >&5
37437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438   (exit $ac_status); } &&
37439          { ac_try='test -z "$ac_c_werror_flag"
37440                          || test ! -s conftest.err'
37441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442   (eval $ac_try) 2>&5
37443   ac_status=$?
37444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445   (exit $ac_status); }; } &&
37446          { ac_try='test -s conftest.$ac_objext'
37447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448   (eval $ac_try) 2>&5
37449   ac_status=$?
37450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451   (exit $ac_status); }; }; then
37452   ol_cv_func_gethostbyname_r_nargs6=yes
37453 else
37454   echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37456
37457 ol_cv_func_gethostbyname_r_nargs6=no
37458 fi
37459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37460
37461         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37462                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37463
37464                 ol_cv_func_gethostbyname_r_nargs=5
37465
37466         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37467                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37468
37469                 ol_cv_func_gethostbyname_r_nargs=6
37470
37471         else
37472                 ol_cv_func_gethostbyname_r_nargs=0
37473         fi
37474
37475 fi
37476 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37477 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37478   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37479
37480 cat >>confdefs.h <<_ACEOF
37481 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37482 _ACEOF
37483
37484   fi
37485
37486 else
37487         ol_cv_func_gethostbyname_r_nargs=0
37488 fi
37489
37490 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37491         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37492 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37493 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37494   echo $ECHO_N "(cached) $ECHO_C" >&6
37495 else
37496   cat >conftest.$ac_ext <<_ACEOF
37497 /* confdefs.h.  */
37498 _ACEOF
37499 cat confdefs.h >>conftest.$ac_ext
37500 cat >>conftest.$ac_ext <<_ACEOF
37501 /* end confdefs.h.  */
37502 #include <sys/types.h>
37503 #include <sys/socket.h>
37504 #include <netinet/in.h>
37505 #include <netdb.h>
37506 #define BUFSIZE (sizeof(struct hostent)+10)
37507 int
37508 main ()
37509 {
37510 struct hostent hent; char buffer[BUFSIZE];
37511             struct in_addr add;
37512             size_t alen=sizeof(struct in_addr);
37513             int bufsize=BUFSIZE;int h_errno;
37514                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37515                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37516   ;
37517   return 0;
37518 }
37519 _ACEOF
37520 rm -f conftest.$ac_objext
37521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37522   (eval $ac_compile) 2>conftest.er1
37523   ac_status=$?
37524   grep -v '^ *+' conftest.er1 >conftest.err
37525   rm -f conftest.er1
37526   cat conftest.err >&5
37527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528   (exit $ac_status); } &&
37529          { ac_try='test -z "$ac_c_werror_flag"
37530                          || test ! -s conftest.err'
37531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37532   (eval $ac_try) 2>&5
37533   ac_status=$?
37534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535   (exit $ac_status); }; } &&
37536          { ac_try='test -s conftest.$ac_objext'
37537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538   (eval $ac_try) 2>&5
37539   ac_status=$?
37540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541   (exit $ac_status); }; }; then
37542   ol_cv_func_gethostbyaddr_r_nargs7=yes
37543 else
37544   echo "$as_me: failed program was:" >&5
37545 sed 's/^/| /' conftest.$ac_ext >&5
37546
37547 ol_cv_func_gethostbyaddr_r_nargs7=no
37548 fi
37549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37550
37551         cat >conftest.$ac_ext <<_ACEOF
37552 /* confdefs.h.  */
37553 _ACEOF
37554 cat confdefs.h >>conftest.$ac_ext
37555 cat >>conftest.$ac_ext <<_ACEOF
37556 /* end confdefs.h.  */
37557 #include <sys/types.h>
37558 #include <sys/socket.h>
37559 #include <netinet/in.h>
37560 #include <netdb.h>
37561 #define BUFSIZE (sizeof(struct hostent)+10)
37562 int
37563 main ()
37564 {
37565 struct hostent hent;
37566                 struct hostent *rhent; char buffer[BUFSIZE];
37567                 struct in_addr add;
37568                 size_t alen=sizeof(struct in_addr);
37569                 int bufsize=BUFSIZE;int h_errno;
37570                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37571                         alen, AF_INET, &hent, buffer, bufsize,
37572                         &rhent, &h_errno);
37573   ;
37574   return 0;
37575 }
37576 _ACEOF
37577 rm -f conftest.$ac_objext
37578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37579   (eval $ac_compile) 2>conftest.er1
37580   ac_status=$?
37581   grep -v '^ *+' conftest.er1 >conftest.err
37582   rm -f conftest.er1
37583   cat conftest.err >&5
37584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585   (exit $ac_status); } &&
37586          { ac_try='test -z "$ac_c_werror_flag"
37587                          || test ! -s conftest.err'
37588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589   (eval $ac_try) 2>&5
37590   ac_status=$?
37591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592   (exit $ac_status); }; } &&
37593          { ac_try='test -s conftest.$ac_objext'
37594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595   (eval $ac_try) 2>&5
37596   ac_status=$?
37597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598   (exit $ac_status); }; }; then
37599   ol_cv_func_gethostbyaddr_r_nargs8=yes
37600 else
37601   echo "$as_me: failed program was:" >&5
37602 sed 's/^/| /' conftest.$ac_ext >&5
37603
37604 ol_cv_func_gethostbyaddr_r_nargs8=no
37605 fi
37606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37607
37608         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37609                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37610
37611                 ol_cv_func_gethostbyaddr_r_nargs=7
37612
37613         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37614                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37615
37616                 ol_cv_func_gethostbyaddr_r_nargs=8
37617
37618         else
37619                 ol_cv_func_gethostbyaddr_r_nargs=0
37620         fi
37621
37622 fi
37623 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37624 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37625   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37626
37627 cat >>confdefs.h <<_ACEOF
37628 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37629 _ACEOF
37630
37631   fi
37632
37633 else
37634         ol_cv_func_gethostbyaddr_r_nargs=0
37635 fi
37636
37637 ol_link_ldbm=no
37638
37639 if test $ol_with_ldbm_api = auto \
37640         -o $ol_with_ldbm_api = berkeley \
37641         -o $ol_with_ldbm_api = bcompat ; then
37642
37643         if test $ol_with_ldbm_api = bcompat; then \
37644
37645
37646 for ac_header in db_185.h db.h
37647 do
37648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37650   echo "$as_me:$LINENO: checking for $ac_header" >&5
37651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37653   echo $ECHO_N "(cached) $ECHO_C" >&6
37654 fi
37655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37657 else
37658   # Is the header compilable?
37659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
37668 #include <$ac_header>
37669 _ACEOF
37670 rm -f conftest.$ac_objext
37671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37672   (eval $ac_compile) 2>conftest.er1
37673   ac_status=$?
37674   grep -v '^ *+' conftest.er1 >conftest.err
37675   rm -f conftest.er1
37676   cat conftest.err >&5
37677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678   (exit $ac_status); } &&
37679          { ac_try='test -z "$ac_c_werror_flag"
37680                          || test ! -s conftest.err'
37681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682   (eval $ac_try) 2>&5
37683   ac_status=$?
37684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685   (exit $ac_status); }; } &&
37686          { ac_try='test -s conftest.$ac_objext'
37687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37688   (eval $ac_try) 2>&5
37689   ac_status=$?
37690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691   (exit $ac_status); }; }; then
37692   ac_header_compiler=yes
37693 else
37694   echo "$as_me: failed program was:" >&5
37695 sed 's/^/| /' conftest.$ac_ext >&5
37696
37697 ac_header_compiler=no
37698 fi
37699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37701 echo "${ECHO_T}$ac_header_compiler" >&6
37702
37703 # Is the header present?
37704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37706 cat >conftest.$ac_ext <<_ACEOF
37707 /* confdefs.h.  */
37708 _ACEOF
37709 cat confdefs.h >>conftest.$ac_ext
37710 cat >>conftest.$ac_ext <<_ACEOF
37711 /* end confdefs.h.  */
37712 #include <$ac_header>
37713 _ACEOF
37714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37716   ac_status=$?
37717   grep -v '^ *+' conftest.er1 >conftest.err
37718   rm -f conftest.er1
37719   cat conftest.err >&5
37720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721   (exit $ac_status); } >/dev/null; then
37722   if test -s conftest.err; then
37723     ac_cpp_err=$ac_c_preproc_warn_flag
37724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37725   else
37726     ac_cpp_err=
37727   fi
37728 else
37729   ac_cpp_err=yes
37730 fi
37731 if test -z "$ac_cpp_err"; then
37732   ac_header_preproc=yes
37733 else
37734   echo "$as_me: failed program was:" >&5
37735 sed 's/^/| /' conftest.$ac_ext >&5
37736
37737   ac_header_preproc=no
37738 fi
37739 rm -f conftest.err conftest.$ac_ext
37740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37741 echo "${ECHO_T}$ac_header_preproc" >&6
37742
37743 # So?  What about this header?
37744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37745   yes:no: )
37746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37750     ac_header_preproc=yes
37751     ;;
37752   no:yes:* )
37753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37765     (
37766       cat <<\_ASBOX
37767 ## ------------------------------------------ ##
37768 ## Report this to the AC_PACKAGE_NAME lists.  ##
37769 ## ------------------------------------------ ##
37770 _ASBOX
37771     ) |
37772       sed "s/^/$as_me: WARNING:     /" >&2
37773     ;;
37774 esac
37775 echo "$as_me:$LINENO: checking for $ac_header" >&5
37776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37778   echo $ECHO_N "(cached) $ECHO_C" >&6
37779 else
37780   eval "$as_ac_Header=\$ac_header_preproc"
37781 fi
37782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37784
37785 fi
37786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37787   cat >>confdefs.h <<_ACEOF
37788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37789 _ACEOF
37790
37791 fi
37792
37793 done
37794
37795 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37796         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37797 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37798 if test "${ol_cv_header_db1+set}" = set; then
37799   echo $ECHO_N "(cached) $ECHO_C" >&6
37800 else
37801
37802                 cat >conftest.$ac_ext <<_ACEOF
37803 /* confdefs.h.  */
37804 _ACEOF
37805 cat confdefs.h >>conftest.$ac_ext
37806 cat >>conftest.$ac_ext <<_ACEOF
37807 /* end confdefs.h.  */
37808
37809 #if HAVE_DB_185_H
37810 #       include <db_185.h>
37811 #else
37812 #       include <db.h>
37813 #endif
37814
37815  /* this check could be improved */
37816 #ifndef DB_VERSION_MAJOR
37817 #       define DB_VERSION_MAJOR 1
37818 #endif
37819
37820 #if DB_VERSION_MAJOR == 1
37821         __db_version_1
37822 #endif
37823
37824 _ACEOF
37825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37826   $EGREP "__db_version_1" >/dev/null 2>&1; then
37827   ol_cv_header_db1=yes
37828 else
37829   ol_cv_header_db1=no
37830 fi
37831 rm -f conftest*
37832
37833 fi
37834 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37835 echo "${ECHO_T}$ol_cv_header_db1" >&6
37836
37837         if test $ol_cv_header_db1 = yes ; then
37838                 ol_cv_lib_db=no
37839 if test $ol_cv_lib_db = no ; then
37840         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37841 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37842 if test "${ol_cv_db_none+set}" = set; then
37843   echo $ECHO_N "(cached) $ECHO_C" >&6
37844 else
37845
37846         ol_DB_LIB=
37847         ol_LIBS=$LIBS
37848         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37849
37850         cat >conftest.$ac_ext <<_ACEOF
37851 /* confdefs.h.  */
37852 _ACEOF
37853 cat confdefs.h >>conftest.$ac_ext
37854 cat >>conftest.$ac_ext <<_ACEOF
37855 /* end confdefs.h.  */
37856
37857 #ifdef HAVE_DB_185_H
37858 # include <db_185.h>
37859 #else
37860 # include <db.h>
37861 #endif
37862
37863 #ifndef DB_VERSION_MAJOR
37864 # define DB_VERSION_MAJOR 1
37865 #endif
37866
37867 #ifndef NULL
37868 #define NULL ((void*)0)
37869 #endif
37870
37871 int
37872 main ()
37873 {
37874
37875 #if DB_VERSION_MAJOR > 1
37876         {
37877                 char *version;
37878                 int major, minor, patch;
37879
37880                 version = db_version( &major, &minor, &patch );
37881
37882                 if( major != DB_VERSION_MAJOR ||
37883                         minor < DB_VERSION_MINOR )
37884                 {
37885                         printf("Berkeley DB version mismatch\n"
37886                                 "\theader: %s\n\tlibrary: %s\n",
37887                                 DB_VERSION_STRING, version);
37888                         return 1;
37889                 }
37890         }
37891 #endif
37892
37893 #if DB_VERSION_MAJOR > 2
37894         db_env_create( NULL, 0 );
37895 #elif DB_VERSION_MAJOR > 1
37896         db_appexit( NULL );
37897 #else
37898         (void) dbopen( NULL, 0, 0, 0, NULL);
37899 #endif
37900
37901   ;
37902   return 0;
37903 }
37904 _ACEOF
37905 rm -f conftest.$ac_objext conftest$ac_exeext
37906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37907   (eval $ac_link) 2>conftest.er1
37908   ac_status=$?
37909   grep -v '^ *+' conftest.er1 >conftest.err
37910   rm -f conftest.er1
37911   cat conftest.err >&5
37912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913   (exit $ac_status); } &&
37914          { ac_try='test -z "$ac_c_werror_flag"
37915                          || test ! -s conftest.err'
37916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917   (eval $ac_try) 2>&5
37918   ac_status=$?
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); }; } &&
37921          { ac_try='test -s conftest$ac_exeext'
37922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37923   (eval $ac_try) 2>&5
37924   ac_status=$?
37925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926   (exit $ac_status); }; }; then
37927   ol_cv_db_none=yes
37928 else
37929   echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37931
37932 ol_cv_db_none=no
37933 fi
37934 rm -f conftest.err conftest.$ac_objext \
37935       conftest$ac_exeext conftest.$ac_ext
37936
37937         LIBS="$ol_LIBS"
37938
37939 fi
37940 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37941 echo "${ECHO_T}$ol_cv_db_none" >&6
37942
37943         if test $ol_cv_db_none = yes ; then
37944                 ol_cv_lib_db=yes
37945         fi
37946 fi
37947
37948 if test $ol_cv_lib_db = no ; then
37949         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
37950 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
37951 if test "${ol_cv_db_db43+set}" = set; then
37952   echo $ECHO_N "(cached) $ECHO_C" >&6
37953 else
37954
37955         ol_DB_LIB=-ldb43
37956         ol_LIBS=$LIBS
37957         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37958
37959         cat >conftest.$ac_ext <<_ACEOF
37960 /* confdefs.h.  */
37961 _ACEOF
37962 cat confdefs.h >>conftest.$ac_ext
37963 cat >>conftest.$ac_ext <<_ACEOF
37964 /* end confdefs.h.  */
37965
37966 #ifdef HAVE_DB_185_H
37967 # include <db_185.h>
37968 #else
37969 # include <db.h>
37970 #endif
37971
37972 #ifndef DB_VERSION_MAJOR
37973 # define DB_VERSION_MAJOR 1
37974 #endif
37975
37976 #ifndef NULL
37977 #define NULL ((void*)0)
37978 #endif
37979
37980 int
37981 main ()
37982 {
37983
37984 #if DB_VERSION_MAJOR > 1
37985         {
37986                 char *version;
37987                 int major, minor, patch;
37988
37989                 version = db_version( &major, &minor, &patch );
37990
37991                 if( major != DB_VERSION_MAJOR ||
37992                         minor < DB_VERSION_MINOR )
37993                 {
37994                         printf("Berkeley DB version mismatch\n"
37995                                 "\theader: %s\n\tlibrary: %s\n",
37996                                 DB_VERSION_STRING, version);
37997                         return 1;
37998                 }
37999         }
38000 #endif
38001
38002 #if DB_VERSION_MAJOR > 2
38003         db_env_create( NULL, 0 );
38004 #elif DB_VERSION_MAJOR > 1
38005         db_appexit( NULL );
38006 #else
38007         (void) dbopen( NULL, 0, 0, 0, NULL);
38008 #endif
38009
38010   ;
38011   return 0;
38012 }
38013 _ACEOF
38014 rm -f conftest.$ac_objext conftest$ac_exeext
38015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38016   (eval $ac_link) 2>conftest.er1
38017   ac_status=$?
38018   grep -v '^ *+' conftest.er1 >conftest.err
38019   rm -f conftest.er1
38020   cat conftest.err >&5
38021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38022   (exit $ac_status); } &&
38023          { ac_try='test -z "$ac_c_werror_flag"
38024                          || test ! -s conftest.err'
38025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38026   (eval $ac_try) 2>&5
38027   ac_status=$?
38028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029   (exit $ac_status); }; } &&
38030          { ac_try='test -s conftest$ac_exeext'
38031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032   (eval $ac_try) 2>&5
38033   ac_status=$?
38034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035   (exit $ac_status); }; }; then
38036   ol_cv_db_db43=yes
38037 else
38038   echo "$as_me: failed program was:" >&5
38039 sed 's/^/| /' conftest.$ac_ext >&5
38040
38041 ol_cv_db_db43=no
38042 fi
38043 rm -f conftest.err conftest.$ac_objext \
38044       conftest$ac_exeext conftest.$ac_ext
38045
38046         LIBS="$ol_LIBS"
38047
38048 fi
38049 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38050 echo "${ECHO_T}$ol_cv_db_db43" >&6
38051
38052         if test $ol_cv_db_db43 = yes ; then
38053                 ol_cv_lib_db=-ldb43
38054         fi
38055 fi
38056
38057 if test $ol_cv_lib_db = no ; then
38058         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38059 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38060 if test "${ol_cv_db_db_43+set}" = set; then
38061   echo $ECHO_N "(cached) $ECHO_C" >&6
38062 else
38063
38064         ol_DB_LIB=-ldb-43
38065         ol_LIBS=$LIBS
38066         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38067
38068         cat >conftest.$ac_ext <<_ACEOF
38069 /* confdefs.h.  */
38070 _ACEOF
38071 cat confdefs.h >>conftest.$ac_ext
38072 cat >>conftest.$ac_ext <<_ACEOF
38073 /* end confdefs.h.  */
38074
38075 #ifdef HAVE_DB_185_H
38076 # include <db_185.h>
38077 #else
38078 # include <db.h>
38079 #endif
38080
38081 #ifndef DB_VERSION_MAJOR
38082 # define DB_VERSION_MAJOR 1
38083 #endif
38084
38085 #ifndef NULL
38086 #define NULL ((void*)0)
38087 #endif
38088
38089 int
38090 main ()
38091 {
38092
38093 #if DB_VERSION_MAJOR > 1
38094         {
38095                 char *version;
38096                 int major, minor, patch;
38097
38098                 version = db_version( &major, &minor, &patch );
38099
38100                 if( major != DB_VERSION_MAJOR ||
38101                         minor < DB_VERSION_MINOR )
38102                 {
38103                         printf("Berkeley DB version mismatch\n"
38104                                 "\theader: %s\n\tlibrary: %s\n",
38105                                 DB_VERSION_STRING, version);
38106                         return 1;
38107                 }
38108         }
38109 #endif
38110
38111 #if DB_VERSION_MAJOR > 2
38112         db_env_create( NULL, 0 );
38113 #elif DB_VERSION_MAJOR > 1
38114         db_appexit( NULL );
38115 #else
38116         (void) dbopen( NULL, 0, 0, 0, NULL);
38117 #endif
38118
38119   ;
38120   return 0;
38121 }
38122 _ACEOF
38123 rm -f conftest.$ac_objext conftest$ac_exeext
38124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38125   (eval $ac_link) 2>conftest.er1
38126   ac_status=$?
38127   grep -v '^ *+' conftest.er1 >conftest.err
38128   rm -f conftest.er1
38129   cat conftest.err >&5
38130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131   (exit $ac_status); } &&
38132          { ac_try='test -z "$ac_c_werror_flag"
38133                          || test ! -s conftest.err'
38134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38135   (eval $ac_try) 2>&5
38136   ac_status=$?
38137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38138   (exit $ac_status); }; } &&
38139          { ac_try='test -s conftest$ac_exeext'
38140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38141   (eval $ac_try) 2>&5
38142   ac_status=$?
38143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38144   (exit $ac_status); }; }; then
38145   ol_cv_db_db_43=yes
38146 else
38147   echo "$as_me: failed program was:" >&5
38148 sed 's/^/| /' conftest.$ac_ext >&5
38149
38150 ol_cv_db_db_43=no
38151 fi
38152 rm -f conftest.err conftest.$ac_objext \
38153       conftest$ac_exeext conftest.$ac_ext
38154
38155         LIBS="$ol_LIBS"
38156
38157 fi
38158 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38159 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38160
38161         if test $ol_cv_db_db_43 = yes ; then
38162                 ol_cv_lib_db=-ldb-43
38163         fi
38164 fi
38165
38166 if test $ol_cv_lib_db = no ; then
38167         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38168 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38169 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38170   echo $ECHO_N "(cached) $ECHO_C" >&6
38171 else
38172
38173         ol_DB_LIB=-ldb-4.3
38174         ol_LIBS=$LIBS
38175         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38176
38177         cat >conftest.$ac_ext <<_ACEOF
38178 /* confdefs.h.  */
38179 _ACEOF
38180 cat confdefs.h >>conftest.$ac_ext
38181 cat >>conftest.$ac_ext <<_ACEOF
38182 /* end confdefs.h.  */
38183
38184 #ifdef HAVE_DB_185_H
38185 # include <db_185.h>
38186 #else
38187 # include <db.h>
38188 #endif
38189
38190 #ifndef DB_VERSION_MAJOR
38191 # define DB_VERSION_MAJOR 1
38192 #endif
38193
38194 #ifndef NULL
38195 #define NULL ((void*)0)
38196 #endif
38197
38198 int
38199 main ()
38200 {
38201
38202 #if DB_VERSION_MAJOR > 1
38203         {
38204                 char *version;
38205                 int major, minor, patch;
38206
38207                 version = db_version( &major, &minor, &patch );
38208
38209                 if( major != DB_VERSION_MAJOR ||
38210                         minor < DB_VERSION_MINOR )
38211                 {
38212                         printf("Berkeley DB version mismatch\n"
38213                                 "\theader: %s\n\tlibrary: %s\n",
38214                                 DB_VERSION_STRING, version);
38215                         return 1;
38216                 }
38217         }
38218 #endif
38219
38220 #if DB_VERSION_MAJOR > 2
38221         db_env_create( NULL, 0 );
38222 #elif DB_VERSION_MAJOR > 1
38223         db_appexit( NULL );
38224 #else
38225         (void) dbopen( NULL, 0, 0, 0, NULL);
38226 #endif
38227
38228   ;
38229   return 0;
38230 }
38231 _ACEOF
38232 rm -f conftest.$ac_objext conftest$ac_exeext
38233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38234   (eval $ac_link) 2>conftest.er1
38235   ac_status=$?
38236   grep -v '^ *+' conftest.er1 >conftest.err
38237   rm -f conftest.er1
38238   cat conftest.err >&5
38239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240   (exit $ac_status); } &&
38241          { ac_try='test -z "$ac_c_werror_flag"
38242                          || test ! -s conftest.err'
38243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38244   (eval $ac_try) 2>&5
38245   ac_status=$?
38246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247   (exit $ac_status); }; } &&
38248          { ac_try='test -s conftest$ac_exeext'
38249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38250   (eval $ac_try) 2>&5
38251   ac_status=$?
38252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253   (exit $ac_status); }; }; then
38254   ol_cv_db_db_4_dot_3=yes
38255 else
38256   echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38258
38259 ol_cv_db_db_4_dot_3=no
38260 fi
38261 rm -f conftest.err conftest.$ac_objext \
38262       conftest$ac_exeext conftest.$ac_ext
38263
38264         LIBS="$ol_LIBS"
38265
38266 fi
38267 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38268 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38269
38270         if test $ol_cv_db_db_4_dot_3 = yes ; then
38271                 ol_cv_lib_db=-ldb-4.3
38272         fi
38273 fi
38274
38275 if test $ol_cv_lib_db = no ; then
38276         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38277 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38278 if test "${ol_cv_db_db_4_3+set}" = set; then
38279   echo $ECHO_N "(cached) $ECHO_C" >&6
38280 else
38281
38282         ol_DB_LIB=-ldb-4-3
38283         ol_LIBS=$LIBS
38284         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38285
38286         cat >conftest.$ac_ext <<_ACEOF
38287 /* confdefs.h.  */
38288 _ACEOF
38289 cat confdefs.h >>conftest.$ac_ext
38290 cat >>conftest.$ac_ext <<_ACEOF
38291 /* end confdefs.h.  */
38292
38293 #ifdef HAVE_DB_185_H
38294 # include <db_185.h>
38295 #else
38296 # include <db.h>
38297 #endif
38298
38299 #ifndef DB_VERSION_MAJOR
38300 # define DB_VERSION_MAJOR 1
38301 #endif
38302
38303 #ifndef NULL
38304 #define NULL ((void*)0)
38305 #endif
38306
38307 int
38308 main ()
38309 {
38310
38311 #if DB_VERSION_MAJOR > 1
38312         {
38313                 char *version;
38314                 int major, minor, patch;
38315
38316                 version = db_version( &major, &minor, &patch );
38317
38318                 if( major != DB_VERSION_MAJOR ||
38319                         minor < DB_VERSION_MINOR )
38320                 {
38321                         printf("Berkeley DB version mismatch\n"
38322                                 "\theader: %s\n\tlibrary: %s\n",
38323                                 DB_VERSION_STRING, version);
38324                         return 1;
38325                 }
38326         }
38327 #endif
38328
38329 #if DB_VERSION_MAJOR > 2
38330         db_env_create( NULL, 0 );
38331 #elif DB_VERSION_MAJOR > 1
38332         db_appexit( NULL );
38333 #else
38334         (void) dbopen( NULL, 0, 0, 0, NULL);
38335 #endif
38336
38337   ;
38338   return 0;
38339 }
38340 _ACEOF
38341 rm -f conftest.$ac_objext conftest$ac_exeext
38342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38343   (eval $ac_link) 2>conftest.er1
38344   ac_status=$?
38345   grep -v '^ *+' conftest.er1 >conftest.err
38346   rm -f conftest.er1
38347   cat conftest.err >&5
38348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349   (exit $ac_status); } &&
38350          { ac_try='test -z "$ac_c_werror_flag"
38351                          || test ! -s conftest.err'
38352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38353   (eval $ac_try) 2>&5
38354   ac_status=$?
38355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356   (exit $ac_status); }; } &&
38357          { ac_try='test -s conftest$ac_exeext'
38358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359   (eval $ac_try) 2>&5
38360   ac_status=$?
38361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362   (exit $ac_status); }; }; then
38363   ol_cv_db_db_4_3=yes
38364 else
38365   echo "$as_me: failed program was:" >&5
38366 sed 's/^/| /' conftest.$ac_ext >&5
38367
38368 ol_cv_db_db_4_3=no
38369 fi
38370 rm -f conftest.err conftest.$ac_objext \
38371       conftest$ac_exeext conftest.$ac_ext
38372
38373         LIBS="$ol_LIBS"
38374
38375 fi
38376 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38377 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38378
38379         if test $ol_cv_db_db_4_3 = yes ; then
38380                 ol_cv_lib_db=-ldb-4-3
38381         fi
38382 fi
38383
38384 if test $ol_cv_lib_db = no ; then
38385         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38386 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38387 if test "${ol_cv_db_db42+set}" = set; then
38388   echo $ECHO_N "(cached) $ECHO_C" >&6
38389 else
38390
38391         ol_DB_LIB=-ldb42
38392         ol_LIBS=$LIBS
38393         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38394
38395         cat >conftest.$ac_ext <<_ACEOF
38396 /* confdefs.h.  */
38397 _ACEOF
38398 cat confdefs.h >>conftest.$ac_ext
38399 cat >>conftest.$ac_ext <<_ACEOF
38400 /* end confdefs.h.  */
38401
38402 #ifdef HAVE_DB_185_H
38403 # include <db_185.h>
38404 #else
38405 # include <db.h>
38406 #endif
38407
38408 #ifndef DB_VERSION_MAJOR
38409 # define DB_VERSION_MAJOR 1
38410 #endif
38411
38412 #ifndef NULL
38413 #define NULL ((void*)0)
38414 #endif
38415
38416 int
38417 main ()
38418 {
38419
38420 #if DB_VERSION_MAJOR > 1
38421         {
38422                 char *version;
38423                 int major, minor, patch;
38424
38425                 version = db_version( &major, &minor, &patch );
38426
38427                 if( major != DB_VERSION_MAJOR ||
38428                         minor < DB_VERSION_MINOR )
38429                 {
38430                         printf("Berkeley DB version mismatch\n"
38431                                 "\theader: %s\n\tlibrary: %s\n",
38432                                 DB_VERSION_STRING, version);
38433                         return 1;
38434                 }
38435         }
38436 #endif
38437
38438 #if DB_VERSION_MAJOR > 2
38439         db_env_create( NULL, 0 );
38440 #elif DB_VERSION_MAJOR > 1
38441         db_appexit( NULL );
38442 #else
38443         (void) dbopen( NULL, 0, 0, 0, NULL);
38444 #endif
38445
38446   ;
38447   return 0;
38448 }
38449 _ACEOF
38450 rm -f conftest.$ac_objext conftest$ac_exeext
38451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38452   (eval $ac_link) 2>conftest.er1
38453   ac_status=$?
38454   grep -v '^ *+' conftest.er1 >conftest.err
38455   rm -f conftest.er1
38456   cat conftest.err >&5
38457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458   (exit $ac_status); } &&
38459          { ac_try='test -z "$ac_c_werror_flag"
38460                          || test ! -s conftest.err'
38461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462   (eval $ac_try) 2>&5
38463   ac_status=$?
38464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465   (exit $ac_status); }; } &&
38466          { ac_try='test -s conftest$ac_exeext'
38467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38468   (eval $ac_try) 2>&5
38469   ac_status=$?
38470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471   (exit $ac_status); }; }; then
38472   ol_cv_db_db42=yes
38473 else
38474   echo "$as_me: failed program was:" >&5
38475 sed 's/^/| /' conftest.$ac_ext >&5
38476
38477 ol_cv_db_db42=no
38478 fi
38479 rm -f conftest.err conftest.$ac_objext \
38480       conftest$ac_exeext conftest.$ac_ext
38481
38482         LIBS="$ol_LIBS"
38483
38484 fi
38485 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38486 echo "${ECHO_T}$ol_cv_db_db42" >&6
38487
38488         if test $ol_cv_db_db42 = yes ; then
38489                 ol_cv_lib_db=-ldb42
38490         fi
38491 fi
38492
38493 if test $ol_cv_lib_db = no ; then
38494         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38495 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38496 if test "${ol_cv_db_db_42+set}" = set; then
38497   echo $ECHO_N "(cached) $ECHO_C" >&6
38498 else
38499
38500         ol_DB_LIB=-ldb-42
38501         ol_LIBS=$LIBS
38502         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38503
38504         cat >conftest.$ac_ext <<_ACEOF
38505 /* confdefs.h.  */
38506 _ACEOF
38507 cat confdefs.h >>conftest.$ac_ext
38508 cat >>conftest.$ac_ext <<_ACEOF
38509 /* end confdefs.h.  */
38510
38511 #ifdef HAVE_DB_185_H
38512 # include <db_185.h>
38513 #else
38514 # include <db.h>
38515 #endif
38516
38517 #ifndef DB_VERSION_MAJOR
38518 # define DB_VERSION_MAJOR 1
38519 #endif
38520
38521 #ifndef NULL
38522 #define NULL ((void*)0)
38523 #endif
38524
38525 int
38526 main ()
38527 {
38528
38529 #if DB_VERSION_MAJOR > 1
38530         {
38531                 char *version;
38532                 int major, minor, patch;
38533
38534                 version = db_version( &major, &minor, &patch );
38535
38536                 if( major != DB_VERSION_MAJOR ||
38537                         minor < DB_VERSION_MINOR )
38538                 {
38539                         printf("Berkeley DB version mismatch\n"
38540                                 "\theader: %s\n\tlibrary: %s\n",
38541                                 DB_VERSION_STRING, version);
38542                         return 1;
38543                 }
38544         }
38545 #endif
38546
38547 #if DB_VERSION_MAJOR > 2
38548         db_env_create( NULL, 0 );
38549 #elif DB_VERSION_MAJOR > 1
38550         db_appexit( NULL );
38551 #else
38552         (void) dbopen( NULL, 0, 0, 0, NULL);
38553 #endif
38554
38555   ;
38556   return 0;
38557 }
38558 _ACEOF
38559 rm -f conftest.$ac_objext conftest$ac_exeext
38560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38561   (eval $ac_link) 2>conftest.er1
38562   ac_status=$?
38563   grep -v '^ *+' conftest.er1 >conftest.err
38564   rm -f conftest.er1
38565   cat conftest.err >&5
38566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567   (exit $ac_status); } &&
38568          { ac_try='test -z "$ac_c_werror_flag"
38569                          || test ! -s conftest.err'
38570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38571   (eval $ac_try) 2>&5
38572   ac_status=$?
38573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38574   (exit $ac_status); }; } &&
38575          { ac_try='test -s conftest$ac_exeext'
38576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38577   (eval $ac_try) 2>&5
38578   ac_status=$?
38579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580   (exit $ac_status); }; }; then
38581   ol_cv_db_db_42=yes
38582 else
38583   echo "$as_me: failed program was:" >&5
38584 sed 's/^/| /' conftest.$ac_ext >&5
38585
38586 ol_cv_db_db_42=no
38587 fi
38588 rm -f conftest.err conftest.$ac_objext \
38589       conftest$ac_exeext conftest.$ac_ext
38590
38591         LIBS="$ol_LIBS"
38592
38593 fi
38594 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38595 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38596
38597         if test $ol_cv_db_db_42 = yes ; then
38598                 ol_cv_lib_db=-ldb-42
38599         fi
38600 fi
38601
38602 if test $ol_cv_lib_db = no ; then
38603         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38604 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38605 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38606   echo $ECHO_N "(cached) $ECHO_C" >&6
38607 else
38608
38609         ol_DB_LIB=-ldb-4.2
38610         ol_LIBS=$LIBS
38611         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38612
38613         cat >conftest.$ac_ext <<_ACEOF
38614 /* confdefs.h.  */
38615 _ACEOF
38616 cat confdefs.h >>conftest.$ac_ext
38617 cat >>conftest.$ac_ext <<_ACEOF
38618 /* end confdefs.h.  */
38619
38620 #ifdef HAVE_DB_185_H
38621 # include <db_185.h>
38622 #else
38623 # include <db.h>
38624 #endif
38625
38626 #ifndef DB_VERSION_MAJOR
38627 # define DB_VERSION_MAJOR 1
38628 #endif
38629
38630 #ifndef NULL
38631 #define NULL ((void*)0)
38632 #endif
38633
38634 int
38635 main ()
38636 {
38637
38638 #if DB_VERSION_MAJOR > 1
38639         {
38640                 char *version;
38641                 int major, minor, patch;
38642
38643                 version = db_version( &major, &minor, &patch );
38644
38645                 if( major != DB_VERSION_MAJOR ||
38646                         minor < DB_VERSION_MINOR )
38647                 {
38648                         printf("Berkeley DB version mismatch\n"
38649                                 "\theader: %s\n\tlibrary: %s\n",
38650                                 DB_VERSION_STRING, version);
38651                         return 1;
38652                 }
38653         }
38654 #endif
38655
38656 #if DB_VERSION_MAJOR > 2
38657         db_env_create( NULL, 0 );
38658 #elif DB_VERSION_MAJOR > 1
38659         db_appexit( NULL );
38660 #else
38661         (void) dbopen( NULL, 0, 0, 0, NULL);
38662 #endif
38663
38664   ;
38665   return 0;
38666 }
38667 _ACEOF
38668 rm -f conftest.$ac_objext conftest$ac_exeext
38669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38670   (eval $ac_link) 2>conftest.er1
38671   ac_status=$?
38672   grep -v '^ *+' conftest.er1 >conftest.err
38673   rm -f conftest.er1
38674   cat conftest.err >&5
38675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676   (exit $ac_status); } &&
38677          { ac_try='test -z "$ac_c_werror_flag"
38678                          || test ! -s conftest.err'
38679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38680   (eval $ac_try) 2>&5
38681   ac_status=$?
38682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683   (exit $ac_status); }; } &&
38684          { ac_try='test -s conftest$ac_exeext'
38685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38686   (eval $ac_try) 2>&5
38687   ac_status=$?
38688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689   (exit $ac_status); }; }; then
38690   ol_cv_db_db_4_dot_2=yes
38691 else
38692   echo "$as_me: failed program was:" >&5
38693 sed 's/^/| /' conftest.$ac_ext >&5
38694
38695 ol_cv_db_db_4_dot_2=no
38696 fi
38697 rm -f conftest.err conftest.$ac_objext \
38698       conftest$ac_exeext conftest.$ac_ext
38699
38700         LIBS="$ol_LIBS"
38701
38702 fi
38703 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38704 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38705
38706         if test $ol_cv_db_db_4_dot_2 = yes ; then
38707                 ol_cv_lib_db=-ldb-4.2
38708         fi
38709 fi
38710
38711 if test $ol_cv_lib_db = no ; then
38712         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38713 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38714 if test "${ol_cv_db_db_4_2+set}" = set; then
38715   echo $ECHO_N "(cached) $ECHO_C" >&6
38716 else
38717
38718         ol_DB_LIB=-ldb-4-2
38719         ol_LIBS=$LIBS
38720         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38721
38722         cat >conftest.$ac_ext <<_ACEOF
38723 /* confdefs.h.  */
38724 _ACEOF
38725 cat confdefs.h >>conftest.$ac_ext
38726 cat >>conftest.$ac_ext <<_ACEOF
38727 /* end confdefs.h.  */
38728
38729 #ifdef HAVE_DB_185_H
38730 # include <db_185.h>
38731 #else
38732 # include <db.h>
38733 #endif
38734
38735 #ifndef DB_VERSION_MAJOR
38736 # define DB_VERSION_MAJOR 1
38737 #endif
38738
38739 #ifndef NULL
38740 #define NULL ((void*)0)
38741 #endif
38742
38743 int
38744 main ()
38745 {
38746
38747 #if DB_VERSION_MAJOR > 1
38748         {
38749                 char *version;
38750                 int major, minor, patch;
38751
38752                 version = db_version( &major, &minor, &patch );
38753
38754                 if( major != DB_VERSION_MAJOR ||
38755                         minor < DB_VERSION_MINOR )
38756                 {
38757                         printf("Berkeley DB version mismatch\n"
38758                                 "\theader: %s\n\tlibrary: %s\n",
38759                                 DB_VERSION_STRING, version);
38760                         return 1;
38761                 }
38762         }
38763 #endif
38764
38765 #if DB_VERSION_MAJOR > 2
38766         db_env_create( NULL, 0 );
38767 #elif DB_VERSION_MAJOR > 1
38768         db_appexit( NULL );
38769 #else
38770         (void) dbopen( NULL, 0, 0, 0, NULL);
38771 #endif
38772
38773   ;
38774   return 0;
38775 }
38776 _ACEOF
38777 rm -f conftest.$ac_objext conftest$ac_exeext
38778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38779   (eval $ac_link) 2>conftest.er1
38780   ac_status=$?
38781   grep -v '^ *+' conftest.er1 >conftest.err
38782   rm -f conftest.er1
38783   cat conftest.err >&5
38784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785   (exit $ac_status); } &&
38786          { ac_try='test -z "$ac_c_werror_flag"
38787                          || test ! -s conftest.err'
38788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38789   (eval $ac_try) 2>&5
38790   ac_status=$?
38791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792   (exit $ac_status); }; } &&
38793          { ac_try='test -s conftest$ac_exeext'
38794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38795   (eval $ac_try) 2>&5
38796   ac_status=$?
38797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798   (exit $ac_status); }; }; then
38799   ol_cv_db_db_4_2=yes
38800 else
38801   echo "$as_me: failed program was:" >&5
38802 sed 's/^/| /' conftest.$ac_ext >&5
38803
38804 ol_cv_db_db_4_2=no
38805 fi
38806 rm -f conftest.err conftest.$ac_objext \
38807       conftest$ac_exeext conftest.$ac_ext
38808
38809         LIBS="$ol_LIBS"
38810
38811 fi
38812 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38813 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38814
38815         if test $ol_cv_db_db_4_2 = yes ; then
38816                 ol_cv_lib_db=-ldb-4-2
38817         fi
38818 fi
38819
38820 if test $ol_cv_lib_db = no ; then
38821         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38822 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38823 if test "${ol_cv_db_db_4+set}" = set; then
38824   echo $ECHO_N "(cached) $ECHO_C" >&6
38825 else
38826
38827         ol_DB_LIB=-ldb-4
38828         ol_LIBS=$LIBS
38829         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38830
38831         cat >conftest.$ac_ext <<_ACEOF
38832 /* confdefs.h.  */
38833 _ACEOF
38834 cat confdefs.h >>conftest.$ac_ext
38835 cat >>conftest.$ac_ext <<_ACEOF
38836 /* end confdefs.h.  */
38837
38838 #ifdef HAVE_DB_185_H
38839 # include <db_185.h>
38840 #else
38841 # include <db.h>
38842 #endif
38843
38844 #ifndef DB_VERSION_MAJOR
38845 # define DB_VERSION_MAJOR 1
38846 #endif
38847
38848 #ifndef NULL
38849 #define NULL ((void*)0)
38850 #endif
38851
38852 int
38853 main ()
38854 {
38855
38856 #if DB_VERSION_MAJOR > 1
38857         {
38858                 char *version;
38859                 int major, minor, patch;
38860
38861                 version = db_version( &major, &minor, &patch );
38862
38863                 if( major != DB_VERSION_MAJOR ||
38864                         minor < DB_VERSION_MINOR )
38865                 {
38866                         printf("Berkeley DB version mismatch\n"
38867                                 "\theader: %s\n\tlibrary: %s\n",
38868                                 DB_VERSION_STRING, version);
38869                         return 1;
38870                 }
38871         }
38872 #endif
38873
38874 #if DB_VERSION_MAJOR > 2
38875         db_env_create( NULL, 0 );
38876 #elif DB_VERSION_MAJOR > 1
38877         db_appexit( NULL );
38878 #else
38879         (void) dbopen( NULL, 0, 0, 0, NULL);
38880 #endif
38881
38882   ;
38883   return 0;
38884 }
38885 _ACEOF
38886 rm -f conftest.$ac_objext conftest$ac_exeext
38887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38888   (eval $ac_link) 2>conftest.er1
38889   ac_status=$?
38890   grep -v '^ *+' conftest.er1 >conftest.err
38891   rm -f conftest.er1
38892   cat conftest.err >&5
38893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894   (exit $ac_status); } &&
38895          { ac_try='test -z "$ac_c_werror_flag"
38896                          || test ! -s conftest.err'
38897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38898   (eval $ac_try) 2>&5
38899   ac_status=$?
38900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901   (exit $ac_status); }; } &&
38902          { ac_try='test -s conftest$ac_exeext'
38903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904   (eval $ac_try) 2>&5
38905   ac_status=$?
38906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907   (exit $ac_status); }; }; then
38908   ol_cv_db_db_4=yes
38909 else
38910   echo "$as_me: failed program was:" >&5
38911 sed 's/^/| /' conftest.$ac_ext >&5
38912
38913 ol_cv_db_db_4=no
38914 fi
38915 rm -f conftest.err conftest.$ac_objext \
38916       conftest$ac_exeext conftest.$ac_ext
38917
38918         LIBS="$ol_LIBS"
38919
38920 fi
38921 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38922 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38923
38924         if test $ol_cv_db_db_4 = yes ; then
38925                 ol_cv_lib_db=-ldb-4
38926         fi
38927 fi
38928
38929 if test $ol_cv_lib_db = no ; then
38930         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38931 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38932 if test "${ol_cv_db_db4+set}" = set; then
38933   echo $ECHO_N "(cached) $ECHO_C" >&6
38934 else
38935
38936         ol_DB_LIB=-ldb4
38937         ol_LIBS=$LIBS
38938         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38939
38940         cat >conftest.$ac_ext <<_ACEOF
38941 /* confdefs.h.  */
38942 _ACEOF
38943 cat confdefs.h >>conftest.$ac_ext
38944 cat >>conftest.$ac_ext <<_ACEOF
38945 /* end confdefs.h.  */
38946
38947 #ifdef HAVE_DB_185_H
38948 # include <db_185.h>
38949 #else
38950 # include <db.h>
38951 #endif
38952
38953 #ifndef DB_VERSION_MAJOR
38954 # define DB_VERSION_MAJOR 1
38955 #endif
38956
38957 #ifndef NULL
38958 #define NULL ((void*)0)
38959 #endif
38960
38961 int
38962 main ()
38963 {
38964
38965 #if DB_VERSION_MAJOR > 1
38966         {
38967                 char *version;
38968                 int major, minor, patch;
38969
38970                 version = db_version( &major, &minor, &patch );
38971
38972                 if( major != DB_VERSION_MAJOR ||
38973                         minor < DB_VERSION_MINOR )
38974                 {
38975                         printf("Berkeley DB version mismatch\n"
38976                                 "\theader: %s\n\tlibrary: %s\n",
38977                                 DB_VERSION_STRING, version);
38978                         return 1;
38979                 }
38980         }
38981 #endif
38982
38983 #if DB_VERSION_MAJOR > 2
38984         db_env_create( NULL, 0 );
38985 #elif DB_VERSION_MAJOR > 1
38986         db_appexit( NULL );
38987 #else
38988         (void) dbopen( NULL, 0, 0, 0, NULL);
38989 #endif
38990
38991   ;
38992   return 0;
38993 }
38994 _ACEOF
38995 rm -f conftest.$ac_objext conftest$ac_exeext
38996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38997   (eval $ac_link) 2>conftest.er1
38998   ac_status=$?
38999   grep -v '^ *+' conftest.er1 >conftest.err
39000   rm -f conftest.er1
39001   cat conftest.err >&5
39002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003   (exit $ac_status); } &&
39004          { ac_try='test -z "$ac_c_werror_flag"
39005                          || test ! -s conftest.err'
39006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39007   (eval $ac_try) 2>&5
39008   ac_status=$?
39009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010   (exit $ac_status); }; } &&
39011          { ac_try='test -s conftest$ac_exeext'
39012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39013   (eval $ac_try) 2>&5
39014   ac_status=$?
39015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016   (exit $ac_status); }; }; then
39017   ol_cv_db_db4=yes
39018 else
39019   echo "$as_me: failed program was:" >&5
39020 sed 's/^/| /' conftest.$ac_ext >&5
39021
39022 ol_cv_db_db4=no
39023 fi
39024 rm -f conftest.err conftest.$ac_objext \
39025       conftest$ac_exeext conftest.$ac_ext
39026
39027         LIBS="$ol_LIBS"
39028
39029 fi
39030 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39031 echo "${ECHO_T}$ol_cv_db_db4" >&6
39032
39033         if test $ol_cv_db_db4 = yes ; then
39034                 ol_cv_lib_db=-ldb4
39035         fi
39036 fi
39037
39038 if test $ol_cv_lib_db = no ; then
39039         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39040 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39041 if test "${ol_cv_db_db+set}" = set; then
39042   echo $ECHO_N "(cached) $ECHO_C" >&6
39043 else
39044
39045         ol_DB_LIB=-ldb
39046         ol_LIBS=$LIBS
39047         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39048
39049         cat >conftest.$ac_ext <<_ACEOF
39050 /* confdefs.h.  */
39051 _ACEOF
39052 cat confdefs.h >>conftest.$ac_ext
39053 cat >>conftest.$ac_ext <<_ACEOF
39054 /* end confdefs.h.  */
39055
39056 #ifdef HAVE_DB_185_H
39057 # include <db_185.h>
39058 #else
39059 # include <db.h>
39060 #endif
39061
39062 #ifndef DB_VERSION_MAJOR
39063 # define DB_VERSION_MAJOR 1
39064 #endif
39065
39066 #ifndef NULL
39067 #define NULL ((void*)0)
39068 #endif
39069
39070 int
39071 main ()
39072 {
39073
39074 #if DB_VERSION_MAJOR > 1
39075         {
39076                 char *version;
39077                 int major, minor, patch;
39078
39079                 version = db_version( &major, &minor, &patch );
39080
39081                 if( major != DB_VERSION_MAJOR ||
39082                         minor < DB_VERSION_MINOR )
39083                 {
39084                         printf("Berkeley DB version mismatch\n"
39085                                 "\theader: %s\n\tlibrary: %s\n",
39086                                 DB_VERSION_STRING, version);
39087                         return 1;
39088                 }
39089         }
39090 #endif
39091
39092 #if DB_VERSION_MAJOR > 2
39093         db_env_create( NULL, 0 );
39094 #elif DB_VERSION_MAJOR > 1
39095         db_appexit( NULL );
39096 #else
39097         (void) dbopen( NULL, 0, 0, 0, NULL);
39098 #endif
39099
39100   ;
39101   return 0;
39102 }
39103 _ACEOF
39104 rm -f conftest.$ac_objext conftest$ac_exeext
39105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39106   (eval $ac_link) 2>conftest.er1
39107   ac_status=$?
39108   grep -v '^ *+' conftest.er1 >conftest.err
39109   rm -f conftest.er1
39110   cat conftest.err >&5
39111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39112   (exit $ac_status); } &&
39113          { ac_try='test -z "$ac_c_werror_flag"
39114                          || test ! -s conftest.err'
39115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39116   (eval $ac_try) 2>&5
39117   ac_status=$?
39118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119   (exit $ac_status); }; } &&
39120          { ac_try='test -s conftest$ac_exeext'
39121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39122   (eval $ac_try) 2>&5
39123   ac_status=$?
39124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125   (exit $ac_status); }; }; then
39126   ol_cv_db_db=yes
39127 else
39128   echo "$as_me: failed program was:" >&5
39129 sed 's/^/| /' conftest.$ac_ext >&5
39130
39131 ol_cv_db_db=no
39132 fi
39133 rm -f conftest.err conftest.$ac_objext \
39134       conftest$ac_exeext conftest.$ac_ext
39135
39136         LIBS="$ol_LIBS"
39137
39138 fi
39139 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39140 echo "${ECHO_T}$ol_cv_db_db" >&6
39141
39142         if test $ol_cv_db_db = yes ; then
39143                 ol_cv_lib_db=-ldb
39144         fi
39145 fi
39146
39147 if test $ol_cv_lib_db = no ; then
39148         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39149 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39150 if test "${ol_cv_db_db41+set}" = set; then
39151   echo $ECHO_N "(cached) $ECHO_C" >&6
39152 else
39153
39154         ol_DB_LIB=-ldb41
39155         ol_LIBS=$LIBS
39156         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39157
39158         cat >conftest.$ac_ext <<_ACEOF
39159 /* confdefs.h.  */
39160 _ACEOF
39161 cat confdefs.h >>conftest.$ac_ext
39162 cat >>conftest.$ac_ext <<_ACEOF
39163 /* end confdefs.h.  */
39164
39165 #ifdef HAVE_DB_185_H
39166 # include <db_185.h>
39167 #else
39168 # include <db.h>
39169 #endif
39170
39171 #ifndef DB_VERSION_MAJOR
39172 # define DB_VERSION_MAJOR 1
39173 #endif
39174
39175 #ifndef NULL
39176 #define NULL ((void*)0)
39177 #endif
39178
39179 int
39180 main ()
39181 {
39182
39183 #if DB_VERSION_MAJOR > 1
39184         {
39185                 char *version;
39186                 int major, minor, patch;
39187
39188                 version = db_version( &major, &minor, &patch );
39189
39190                 if( major != DB_VERSION_MAJOR ||
39191                         minor < DB_VERSION_MINOR )
39192                 {
39193                         printf("Berkeley DB version mismatch\n"
39194                                 "\theader: %s\n\tlibrary: %s\n",
39195                                 DB_VERSION_STRING, version);
39196                         return 1;
39197                 }
39198         }
39199 #endif
39200
39201 #if DB_VERSION_MAJOR > 2
39202         db_env_create( NULL, 0 );
39203 #elif DB_VERSION_MAJOR > 1
39204         db_appexit( NULL );
39205 #else
39206         (void) dbopen( NULL, 0, 0, 0, NULL);
39207 #endif
39208
39209   ;
39210   return 0;
39211 }
39212 _ACEOF
39213 rm -f conftest.$ac_objext conftest$ac_exeext
39214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39215   (eval $ac_link) 2>conftest.er1
39216   ac_status=$?
39217   grep -v '^ *+' conftest.er1 >conftest.err
39218   rm -f conftest.er1
39219   cat conftest.err >&5
39220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221   (exit $ac_status); } &&
39222          { ac_try='test -z "$ac_c_werror_flag"
39223                          || test ! -s conftest.err'
39224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225   (eval $ac_try) 2>&5
39226   ac_status=$?
39227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228   (exit $ac_status); }; } &&
39229          { ac_try='test -s conftest$ac_exeext'
39230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231   (eval $ac_try) 2>&5
39232   ac_status=$?
39233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234   (exit $ac_status); }; }; then
39235   ol_cv_db_db41=yes
39236 else
39237   echo "$as_me: failed program was:" >&5
39238 sed 's/^/| /' conftest.$ac_ext >&5
39239
39240 ol_cv_db_db41=no
39241 fi
39242 rm -f conftest.err conftest.$ac_objext \
39243       conftest$ac_exeext conftest.$ac_ext
39244
39245         LIBS="$ol_LIBS"
39246
39247 fi
39248 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39249 echo "${ECHO_T}$ol_cv_db_db41" >&6
39250
39251         if test $ol_cv_db_db41 = yes ; then
39252                 ol_cv_lib_db=-ldb41
39253         fi
39254 fi
39255
39256 if test $ol_cv_lib_db = no ; then
39257         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39258 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39259 if test "${ol_cv_db_db_41+set}" = set; then
39260   echo $ECHO_N "(cached) $ECHO_C" >&6
39261 else
39262
39263         ol_DB_LIB=-ldb-41
39264         ol_LIBS=$LIBS
39265         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39266
39267         cat >conftest.$ac_ext <<_ACEOF
39268 /* confdefs.h.  */
39269 _ACEOF
39270 cat confdefs.h >>conftest.$ac_ext
39271 cat >>conftest.$ac_ext <<_ACEOF
39272 /* end confdefs.h.  */
39273
39274 #ifdef HAVE_DB_185_H
39275 # include <db_185.h>
39276 #else
39277 # include <db.h>
39278 #endif
39279
39280 #ifndef DB_VERSION_MAJOR
39281 # define DB_VERSION_MAJOR 1
39282 #endif
39283
39284 #ifndef NULL
39285 #define NULL ((void*)0)
39286 #endif
39287
39288 int
39289 main ()
39290 {
39291
39292 #if DB_VERSION_MAJOR > 1
39293         {
39294                 char *version;
39295                 int major, minor, patch;
39296
39297                 version = db_version( &major, &minor, &patch );
39298
39299                 if( major != DB_VERSION_MAJOR ||
39300                         minor < DB_VERSION_MINOR )
39301                 {
39302                         printf("Berkeley DB version mismatch\n"
39303                                 "\theader: %s\n\tlibrary: %s\n",
39304                                 DB_VERSION_STRING, version);
39305                         return 1;
39306                 }
39307         }
39308 #endif
39309
39310 #if DB_VERSION_MAJOR > 2
39311         db_env_create( NULL, 0 );
39312 #elif DB_VERSION_MAJOR > 1
39313         db_appexit( NULL );
39314 #else
39315         (void) dbopen( NULL, 0, 0, 0, NULL);
39316 #endif
39317
39318   ;
39319   return 0;
39320 }
39321 _ACEOF
39322 rm -f conftest.$ac_objext conftest$ac_exeext
39323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39324   (eval $ac_link) 2>conftest.er1
39325   ac_status=$?
39326   grep -v '^ *+' conftest.er1 >conftest.err
39327   rm -f conftest.er1
39328   cat conftest.err >&5
39329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39330   (exit $ac_status); } &&
39331          { ac_try='test -z "$ac_c_werror_flag"
39332                          || test ! -s conftest.err'
39333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39334   (eval $ac_try) 2>&5
39335   ac_status=$?
39336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337   (exit $ac_status); }; } &&
39338          { ac_try='test -s conftest$ac_exeext'
39339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39340   (eval $ac_try) 2>&5
39341   ac_status=$?
39342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343   (exit $ac_status); }; }; then
39344   ol_cv_db_db_41=yes
39345 else
39346   echo "$as_me: failed program was:" >&5
39347 sed 's/^/| /' conftest.$ac_ext >&5
39348
39349 ol_cv_db_db_41=no
39350 fi
39351 rm -f conftest.err conftest.$ac_objext \
39352       conftest$ac_exeext conftest.$ac_ext
39353
39354         LIBS="$ol_LIBS"
39355
39356 fi
39357 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39358 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39359
39360         if test $ol_cv_db_db_41 = yes ; then
39361                 ol_cv_lib_db=-ldb-41
39362         fi
39363 fi
39364
39365 if test $ol_cv_lib_db = no ; then
39366         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39367 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39368 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39369   echo $ECHO_N "(cached) $ECHO_C" >&6
39370 else
39371
39372         ol_DB_LIB=-ldb-4.1
39373         ol_LIBS=$LIBS
39374         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39375
39376         cat >conftest.$ac_ext <<_ACEOF
39377 /* confdefs.h.  */
39378 _ACEOF
39379 cat confdefs.h >>conftest.$ac_ext
39380 cat >>conftest.$ac_ext <<_ACEOF
39381 /* end confdefs.h.  */
39382
39383 #ifdef HAVE_DB_185_H
39384 # include <db_185.h>
39385 #else
39386 # include <db.h>
39387 #endif
39388
39389 #ifndef DB_VERSION_MAJOR
39390 # define DB_VERSION_MAJOR 1
39391 #endif
39392
39393 #ifndef NULL
39394 #define NULL ((void*)0)
39395 #endif
39396
39397 int
39398 main ()
39399 {
39400
39401 #if DB_VERSION_MAJOR > 1
39402         {
39403                 char *version;
39404                 int major, minor, patch;
39405
39406                 version = db_version( &major, &minor, &patch );
39407
39408                 if( major != DB_VERSION_MAJOR ||
39409                         minor < DB_VERSION_MINOR )
39410                 {
39411                         printf("Berkeley DB version mismatch\n"
39412                                 "\theader: %s\n\tlibrary: %s\n",
39413                                 DB_VERSION_STRING, version);
39414                         return 1;
39415                 }
39416         }
39417 #endif
39418
39419 #if DB_VERSION_MAJOR > 2
39420         db_env_create( NULL, 0 );
39421 #elif DB_VERSION_MAJOR > 1
39422         db_appexit( NULL );
39423 #else
39424         (void) dbopen( NULL, 0, 0, 0, NULL);
39425 #endif
39426
39427   ;
39428   return 0;
39429 }
39430 _ACEOF
39431 rm -f conftest.$ac_objext conftest$ac_exeext
39432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39433   (eval $ac_link) 2>conftest.er1
39434   ac_status=$?
39435   grep -v '^ *+' conftest.er1 >conftest.err
39436   rm -f conftest.er1
39437   cat conftest.err >&5
39438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439   (exit $ac_status); } &&
39440          { ac_try='test -z "$ac_c_werror_flag"
39441                          || test ! -s conftest.err'
39442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39443   (eval $ac_try) 2>&5
39444   ac_status=$?
39445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446   (exit $ac_status); }; } &&
39447          { ac_try='test -s conftest$ac_exeext'
39448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39449   (eval $ac_try) 2>&5
39450   ac_status=$?
39451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39452   (exit $ac_status); }; }; then
39453   ol_cv_db_db_4_dot_1=yes
39454 else
39455   echo "$as_me: failed program was:" >&5
39456 sed 's/^/| /' conftest.$ac_ext >&5
39457
39458 ol_cv_db_db_4_dot_1=no
39459 fi
39460 rm -f conftest.err conftest.$ac_objext \
39461       conftest$ac_exeext conftest.$ac_ext
39462
39463         LIBS="$ol_LIBS"
39464
39465 fi
39466 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39467 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39468
39469         if test $ol_cv_db_db_4_dot_1 = yes ; then
39470                 ol_cv_lib_db=-ldb-4.1
39471         fi
39472 fi
39473
39474 if test $ol_cv_lib_db = no ; then
39475         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39476 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39477 if test "${ol_cv_db_db_4_1+set}" = set; then
39478   echo $ECHO_N "(cached) $ECHO_C" >&6
39479 else
39480
39481         ol_DB_LIB=-ldb-4-1
39482         ol_LIBS=$LIBS
39483         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39484
39485         cat >conftest.$ac_ext <<_ACEOF
39486 /* confdefs.h.  */
39487 _ACEOF
39488 cat confdefs.h >>conftest.$ac_ext
39489 cat >>conftest.$ac_ext <<_ACEOF
39490 /* end confdefs.h.  */
39491
39492 #ifdef HAVE_DB_185_H
39493 # include <db_185.h>
39494 #else
39495 # include <db.h>
39496 #endif
39497
39498 #ifndef DB_VERSION_MAJOR
39499 # define DB_VERSION_MAJOR 1
39500 #endif
39501
39502 #ifndef NULL
39503 #define NULL ((void*)0)
39504 #endif
39505
39506 int
39507 main ()
39508 {
39509
39510 #if DB_VERSION_MAJOR > 1
39511         {
39512                 char *version;
39513                 int major, minor, patch;
39514
39515                 version = db_version( &major, &minor, &patch );
39516
39517                 if( major != DB_VERSION_MAJOR ||
39518                         minor < DB_VERSION_MINOR )
39519                 {
39520                         printf("Berkeley DB version mismatch\n"
39521                                 "\theader: %s\n\tlibrary: %s\n",
39522                                 DB_VERSION_STRING, version);
39523                         return 1;
39524                 }
39525         }
39526 #endif
39527
39528 #if DB_VERSION_MAJOR > 2
39529         db_env_create( NULL, 0 );
39530 #elif DB_VERSION_MAJOR > 1
39531         db_appexit( NULL );
39532 #else
39533         (void) dbopen( NULL, 0, 0, 0, NULL);
39534 #endif
39535
39536   ;
39537   return 0;
39538 }
39539 _ACEOF
39540 rm -f conftest.$ac_objext conftest$ac_exeext
39541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39542   (eval $ac_link) 2>conftest.er1
39543   ac_status=$?
39544   grep -v '^ *+' conftest.er1 >conftest.err
39545   rm -f conftest.er1
39546   cat conftest.err >&5
39547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548   (exit $ac_status); } &&
39549          { ac_try='test -z "$ac_c_werror_flag"
39550                          || test ! -s conftest.err'
39551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39552   (eval $ac_try) 2>&5
39553   ac_status=$?
39554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555   (exit $ac_status); }; } &&
39556          { ac_try='test -s conftest$ac_exeext'
39557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39558   (eval $ac_try) 2>&5
39559   ac_status=$?
39560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39561   (exit $ac_status); }; }; then
39562   ol_cv_db_db_4_1=yes
39563 else
39564   echo "$as_me: failed program was:" >&5
39565 sed 's/^/| /' conftest.$ac_ext >&5
39566
39567 ol_cv_db_db_4_1=no
39568 fi
39569 rm -f conftest.err conftest.$ac_objext \
39570       conftest$ac_exeext conftest.$ac_ext
39571
39572         LIBS="$ol_LIBS"
39573
39574 fi
39575 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39576 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39577
39578         if test $ol_cv_db_db_4_1 = yes ; then
39579                 ol_cv_lib_db=-ldb-4-1
39580         fi
39581 fi
39582
39583 if test $ol_cv_lib_db = no ; then
39584         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39585 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39586 if test "${ol_cv_db_db3+set}" = set; then
39587   echo $ECHO_N "(cached) $ECHO_C" >&6
39588 else
39589
39590         ol_DB_LIB=-ldb3
39591         ol_LIBS=$LIBS
39592         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39593
39594         cat >conftest.$ac_ext <<_ACEOF
39595 /* confdefs.h.  */
39596 _ACEOF
39597 cat confdefs.h >>conftest.$ac_ext
39598 cat >>conftest.$ac_ext <<_ACEOF
39599 /* end confdefs.h.  */
39600
39601 #ifdef HAVE_DB_185_H
39602 # include <db_185.h>
39603 #else
39604 # include <db.h>
39605 #endif
39606
39607 #ifndef DB_VERSION_MAJOR
39608 # define DB_VERSION_MAJOR 1
39609 #endif
39610
39611 #ifndef NULL
39612 #define NULL ((void*)0)
39613 #endif
39614
39615 int
39616 main ()
39617 {
39618
39619 #if DB_VERSION_MAJOR > 1
39620         {
39621                 char *version;
39622                 int major, minor, patch;
39623
39624                 version = db_version( &major, &minor, &patch );
39625
39626                 if( major != DB_VERSION_MAJOR ||
39627                         minor < DB_VERSION_MINOR )
39628                 {
39629                         printf("Berkeley DB version mismatch\n"
39630                                 "\theader: %s\n\tlibrary: %s\n",
39631                                 DB_VERSION_STRING, version);
39632                         return 1;
39633                 }
39634         }
39635 #endif
39636
39637 #if DB_VERSION_MAJOR > 2
39638         db_env_create( NULL, 0 );
39639 #elif DB_VERSION_MAJOR > 1
39640         db_appexit( NULL );
39641 #else
39642         (void) dbopen( NULL, 0, 0, 0, NULL);
39643 #endif
39644
39645   ;
39646   return 0;
39647 }
39648 _ACEOF
39649 rm -f conftest.$ac_objext conftest$ac_exeext
39650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39651   (eval $ac_link) 2>conftest.er1
39652   ac_status=$?
39653   grep -v '^ *+' conftest.er1 >conftest.err
39654   rm -f conftest.er1
39655   cat conftest.err >&5
39656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657   (exit $ac_status); } &&
39658          { ac_try='test -z "$ac_c_werror_flag"
39659                          || test ! -s conftest.err'
39660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39661   (eval $ac_try) 2>&5
39662   ac_status=$?
39663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39664   (exit $ac_status); }; } &&
39665          { ac_try='test -s conftest$ac_exeext'
39666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667   (eval $ac_try) 2>&5
39668   ac_status=$?
39669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670   (exit $ac_status); }; }; then
39671   ol_cv_db_db3=yes
39672 else
39673   echo "$as_me: failed program was:" >&5
39674 sed 's/^/| /' conftest.$ac_ext >&5
39675
39676 ol_cv_db_db3=no
39677 fi
39678 rm -f conftest.err conftest.$ac_objext \
39679       conftest$ac_exeext conftest.$ac_ext
39680
39681         LIBS="$ol_LIBS"
39682
39683 fi
39684 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39685 echo "${ECHO_T}$ol_cv_db_db3" >&6
39686
39687         if test $ol_cv_db_db3 = yes ; then
39688                 ol_cv_lib_db=-ldb3
39689         fi
39690 fi
39691
39692 if test $ol_cv_lib_db = no ; then
39693         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39694 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39695 if test "${ol_cv_db_db_3+set}" = set; then
39696   echo $ECHO_N "(cached) $ECHO_C" >&6
39697 else
39698
39699         ol_DB_LIB=-ldb-3
39700         ol_LIBS=$LIBS
39701         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39702
39703         cat >conftest.$ac_ext <<_ACEOF
39704 /* confdefs.h.  */
39705 _ACEOF
39706 cat confdefs.h >>conftest.$ac_ext
39707 cat >>conftest.$ac_ext <<_ACEOF
39708 /* end confdefs.h.  */
39709
39710 #ifdef HAVE_DB_185_H
39711 # include <db_185.h>
39712 #else
39713 # include <db.h>
39714 #endif
39715
39716 #ifndef DB_VERSION_MAJOR
39717 # define DB_VERSION_MAJOR 1
39718 #endif
39719
39720 #ifndef NULL
39721 #define NULL ((void*)0)
39722 #endif
39723
39724 int
39725 main ()
39726 {
39727
39728 #if DB_VERSION_MAJOR > 1
39729         {
39730                 char *version;
39731                 int major, minor, patch;
39732
39733                 version = db_version( &major, &minor, &patch );
39734
39735                 if( major != DB_VERSION_MAJOR ||
39736                         minor < DB_VERSION_MINOR )
39737                 {
39738                         printf("Berkeley DB version mismatch\n"
39739                                 "\theader: %s\n\tlibrary: %s\n",
39740                                 DB_VERSION_STRING, version);
39741                         return 1;
39742                 }
39743         }
39744 #endif
39745
39746 #if DB_VERSION_MAJOR > 2
39747         db_env_create( NULL, 0 );
39748 #elif DB_VERSION_MAJOR > 1
39749         db_appexit( NULL );
39750 #else
39751         (void) dbopen( NULL, 0, 0, 0, NULL);
39752 #endif
39753
39754   ;
39755   return 0;
39756 }
39757 _ACEOF
39758 rm -f conftest.$ac_objext conftest$ac_exeext
39759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39760   (eval $ac_link) 2>conftest.er1
39761   ac_status=$?
39762   grep -v '^ *+' conftest.er1 >conftest.err
39763   rm -f conftest.er1
39764   cat conftest.err >&5
39765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766   (exit $ac_status); } &&
39767          { ac_try='test -z "$ac_c_werror_flag"
39768                          || test ! -s conftest.err'
39769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39770   (eval $ac_try) 2>&5
39771   ac_status=$?
39772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773   (exit $ac_status); }; } &&
39774          { ac_try='test -s conftest$ac_exeext'
39775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39776   (eval $ac_try) 2>&5
39777   ac_status=$?
39778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779   (exit $ac_status); }; }; then
39780   ol_cv_db_db_3=yes
39781 else
39782   echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39784
39785 ol_cv_db_db_3=no
39786 fi
39787 rm -f conftest.err conftest.$ac_objext \
39788       conftest$ac_exeext conftest.$ac_ext
39789
39790         LIBS="$ol_LIBS"
39791
39792 fi
39793 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39794 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39795
39796         if test $ol_cv_db_db_3 = yes ; then
39797                 ol_cv_lib_db=-ldb-3
39798         fi
39799 fi
39800
39801 if test $ol_cv_lib_db = no ; then
39802         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39803 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39804 if test "${ol_cv_db_db2+set}" = set; then
39805   echo $ECHO_N "(cached) $ECHO_C" >&6
39806 else
39807
39808         ol_DB_LIB=-ldb2
39809         ol_LIBS=$LIBS
39810         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39811
39812         cat >conftest.$ac_ext <<_ACEOF
39813 /* confdefs.h.  */
39814 _ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h.  */
39818
39819 #ifdef HAVE_DB_185_H
39820 # include <db_185.h>
39821 #else
39822 # include <db.h>
39823 #endif
39824
39825 #ifndef DB_VERSION_MAJOR
39826 # define DB_VERSION_MAJOR 1
39827 #endif
39828
39829 #ifndef NULL
39830 #define NULL ((void*)0)
39831 #endif
39832
39833 int
39834 main ()
39835 {
39836
39837 #if DB_VERSION_MAJOR > 1
39838         {
39839                 char *version;
39840                 int major, minor, patch;
39841
39842                 version = db_version( &major, &minor, &patch );
39843
39844                 if( major != DB_VERSION_MAJOR ||
39845                         minor < DB_VERSION_MINOR )
39846                 {
39847                         printf("Berkeley DB version mismatch\n"
39848                                 "\theader: %s\n\tlibrary: %s\n",
39849                                 DB_VERSION_STRING, version);
39850                         return 1;
39851                 }
39852         }
39853 #endif
39854
39855 #if DB_VERSION_MAJOR > 2
39856         db_env_create( NULL, 0 );
39857 #elif DB_VERSION_MAJOR > 1
39858         db_appexit( NULL );
39859 #else
39860         (void) dbopen( NULL, 0, 0, 0, NULL);
39861 #endif
39862
39863   ;
39864   return 0;
39865 }
39866 _ACEOF
39867 rm -f conftest.$ac_objext conftest$ac_exeext
39868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39869   (eval $ac_link) 2>conftest.er1
39870   ac_status=$?
39871   grep -v '^ *+' conftest.er1 >conftest.err
39872   rm -f conftest.er1
39873   cat conftest.err >&5
39874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875   (exit $ac_status); } &&
39876          { ac_try='test -z "$ac_c_werror_flag"
39877                          || test ! -s conftest.err'
39878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39879   (eval $ac_try) 2>&5
39880   ac_status=$?
39881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882   (exit $ac_status); }; } &&
39883          { ac_try='test -s conftest$ac_exeext'
39884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885   (eval $ac_try) 2>&5
39886   ac_status=$?
39887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888   (exit $ac_status); }; }; then
39889   ol_cv_db_db2=yes
39890 else
39891   echo "$as_me: failed program was:" >&5
39892 sed 's/^/| /' conftest.$ac_ext >&5
39893
39894 ol_cv_db_db2=no
39895 fi
39896 rm -f conftest.err conftest.$ac_objext \
39897       conftest$ac_exeext conftest.$ac_ext
39898
39899         LIBS="$ol_LIBS"
39900
39901 fi
39902 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39903 echo "${ECHO_T}$ol_cv_db_db2" >&6
39904
39905         if test $ol_cv_db_db2 = yes ; then
39906                 ol_cv_lib_db=-ldb2
39907         fi
39908 fi
39909
39910 if test $ol_cv_lib_db = no ; then
39911         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39912 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39913 if test "${ol_cv_db_db_2+set}" = set; then
39914   echo $ECHO_N "(cached) $ECHO_C" >&6
39915 else
39916
39917         ol_DB_LIB=-ldb-2
39918         ol_LIBS=$LIBS
39919         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39920
39921         cat >conftest.$ac_ext <<_ACEOF
39922 /* confdefs.h.  */
39923 _ACEOF
39924 cat confdefs.h >>conftest.$ac_ext
39925 cat >>conftest.$ac_ext <<_ACEOF
39926 /* end confdefs.h.  */
39927
39928 #ifdef HAVE_DB_185_H
39929 # include <db_185.h>
39930 #else
39931 # include <db.h>
39932 #endif
39933
39934 #ifndef DB_VERSION_MAJOR
39935 # define DB_VERSION_MAJOR 1
39936 #endif
39937
39938 #ifndef NULL
39939 #define NULL ((void*)0)
39940 #endif
39941
39942 int
39943 main ()
39944 {
39945
39946 #if DB_VERSION_MAJOR > 1
39947         {
39948                 char *version;
39949                 int major, minor, patch;
39950
39951                 version = db_version( &major, &minor, &patch );
39952
39953                 if( major != DB_VERSION_MAJOR ||
39954                         minor < DB_VERSION_MINOR )
39955                 {
39956                         printf("Berkeley DB version mismatch\n"
39957                                 "\theader: %s\n\tlibrary: %s\n",
39958                                 DB_VERSION_STRING, version);
39959                         return 1;
39960                 }
39961         }
39962 #endif
39963
39964 #if DB_VERSION_MAJOR > 2
39965         db_env_create( NULL, 0 );
39966 #elif DB_VERSION_MAJOR > 1
39967         db_appexit( NULL );
39968 #else
39969         (void) dbopen( NULL, 0, 0, 0, NULL);
39970 #endif
39971
39972   ;
39973   return 0;
39974 }
39975 _ACEOF
39976 rm -f conftest.$ac_objext conftest$ac_exeext
39977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39978   (eval $ac_link) 2>conftest.er1
39979   ac_status=$?
39980   grep -v '^ *+' conftest.er1 >conftest.err
39981   rm -f conftest.er1
39982   cat conftest.err >&5
39983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984   (exit $ac_status); } &&
39985          { ac_try='test -z "$ac_c_werror_flag"
39986                          || test ! -s conftest.err'
39987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39988   (eval $ac_try) 2>&5
39989   ac_status=$?
39990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991   (exit $ac_status); }; } &&
39992          { ac_try='test -s conftest$ac_exeext'
39993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39994   (eval $ac_try) 2>&5
39995   ac_status=$?
39996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39997   (exit $ac_status); }; }; then
39998   ol_cv_db_db_2=yes
39999 else
40000   echo "$as_me: failed program was:" >&5
40001 sed 's/^/| /' conftest.$ac_ext >&5
40002
40003 ol_cv_db_db_2=no
40004 fi
40005 rm -f conftest.err conftest.$ac_objext \
40006       conftest$ac_exeext conftest.$ac_ext
40007
40008         LIBS="$ol_LIBS"
40009
40010 fi
40011 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40012 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40013
40014         if test $ol_cv_db_db_2 = yes ; then
40015                 ol_cv_lib_db=-ldb-2
40016         fi
40017 fi
40018
40019 if test $ol_cv_lib_db = no ; then
40020         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40021 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40022 if test "${ol_cv_db_db1+set}" = set; then
40023   echo $ECHO_N "(cached) $ECHO_C" >&6
40024 else
40025
40026         ol_DB_LIB=-ldb1
40027         ol_LIBS=$LIBS
40028         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40029
40030         cat >conftest.$ac_ext <<_ACEOF
40031 /* confdefs.h.  */
40032 _ACEOF
40033 cat confdefs.h >>conftest.$ac_ext
40034 cat >>conftest.$ac_ext <<_ACEOF
40035 /* end confdefs.h.  */
40036
40037 #ifdef HAVE_DB_185_H
40038 # include <db_185.h>
40039 #else
40040 # include <db.h>
40041 #endif
40042
40043 #ifndef DB_VERSION_MAJOR
40044 # define DB_VERSION_MAJOR 1
40045 #endif
40046
40047 #ifndef NULL
40048 #define NULL ((void*)0)
40049 #endif
40050
40051 int
40052 main ()
40053 {
40054
40055 #if DB_VERSION_MAJOR > 1
40056         {
40057                 char *version;
40058                 int major, minor, patch;
40059
40060                 version = db_version( &major, &minor, &patch );
40061
40062                 if( major != DB_VERSION_MAJOR ||
40063                         minor < DB_VERSION_MINOR )
40064                 {
40065                         printf("Berkeley DB version mismatch\n"
40066                                 "\theader: %s\n\tlibrary: %s\n",
40067                                 DB_VERSION_STRING, version);
40068                         return 1;
40069                 }
40070         }
40071 #endif
40072
40073 #if DB_VERSION_MAJOR > 2
40074         db_env_create( NULL, 0 );
40075 #elif DB_VERSION_MAJOR > 1
40076         db_appexit( NULL );
40077 #else
40078         (void) dbopen( NULL, 0, 0, 0, NULL);
40079 #endif
40080
40081   ;
40082   return 0;
40083 }
40084 _ACEOF
40085 rm -f conftest.$ac_objext conftest$ac_exeext
40086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40087   (eval $ac_link) 2>conftest.er1
40088   ac_status=$?
40089   grep -v '^ *+' conftest.er1 >conftest.err
40090   rm -f conftest.er1
40091   cat conftest.err >&5
40092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093   (exit $ac_status); } &&
40094          { ac_try='test -z "$ac_c_werror_flag"
40095                          || test ! -s conftest.err'
40096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40097   (eval $ac_try) 2>&5
40098   ac_status=$?
40099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100   (exit $ac_status); }; } &&
40101          { ac_try='test -s conftest$ac_exeext'
40102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40103   (eval $ac_try) 2>&5
40104   ac_status=$?
40105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106   (exit $ac_status); }; }; then
40107   ol_cv_db_db1=yes
40108 else
40109   echo "$as_me: failed program was:" >&5
40110 sed 's/^/| /' conftest.$ac_ext >&5
40111
40112 ol_cv_db_db1=no
40113 fi
40114 rm -f conftest.err conftest.$ac_objext \
40115       conftest$ac_exeext conftest.$ac_ext
40116
40117         LIBS="$ol_LIBS"
40118
40119 fi
40120 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40121 echo "${ECHO_T}$ol_cv_db_db1" >&6
40122
40123         if test $ol_cv_db_db1 = yes ; then
40124                 ol_cv_lib_db=-ldb1
40125         fi
40126 fi
40127
40128 if test $ol_cv_lib_db = no ; then
40129         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40130 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40131 if test "${ol_cv_db_db_1+set}" = set; then
40132   echo $ECHO_N "(cached) $ECHO_C" >&6
40133 else
40134
40135         ol_DB_LIB=-ldb-1
40136         ol_LIBS=$LIBS
40137         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40138
40139         cat >conftest.$ac_ext <<_ACEOF
40140 /* confdefs.h.  */
40141 _ACEOF
40142 cat confdefs.h >>conftest.$ac_ext
40143 cat >>conftest.$ac_ext <<_ACEOF
40144 /* end confdefs.h.  */
40145
40146 #ifdef HAVE_DB_185_H
40147 # include <db_185.h>
40148 #else
40149 # include <db.h>
40150 #endif
40151
40152 #ifndef DB_VERSION_MAJOR
40153 # define DB_VERSION_MAJOR 1
40154 #endif
40155
40156 #ifndef NULL
40157 #define NULL ((void*)0)
40158 #endif
40159
40160 int
40161 main ()
40162 {
40163
40164 #if DB_VERSION_MAJOR > 1
40165         {
40166                 char *version;
40167                 int major, minor, patch;
40168
40169                 version = db_version( &major, &minor, &patch );
40170
40171                 if( major != DB_VERSION_MAJOR ||
40172                         minor < DB_VERSION_MINOR )
40173                 {
40174                         printf("Berkeley DB version mismatch\n"
40175                                 "\theader: %s\n\tlibrary: %s\n",
40176                                 DB_VERSION_STRING, version);
40177                         return 1;
40178                 }
40179         }
40180 #endif
40181
40182 #if DB_VERSION_MAJOR > 2
40183         db_env_create( NULL, 0 );
40184 #elif DB_VERSION_MAJOR > 1
40185         db_appexit( NULL );
40186 #else
40187         (void) dbopen( NULL, 0, 0, 0, NULL);
40188 #endif
40189
40190   ;
40191   return 0;
40192 }
40193 _ACEOF
40194 rm -f conftest.$ac_objext conftest$ac_exeext
40195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40196   (eval $ac_link) 2>conftest.er1
40197   ac_status=$?
40198   grep -v '^ *+' conftest.er1 >conftest.err
40199   rm -f conftest.er1
40200   cat conftest.err >&5
40201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202   (exit $ac_status); } &&
40203          { ac_try='test -z "$ac_c_werror_flag"
40204                          || test ! -s conftest.err'
40205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40206   (eval $ac_try) 2>&5
40207   ac_status=$?
40208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209   (exit $ac_status); }; } &&
40210          { ac_try='test -s conftest$ac_exeext'
40211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40212   (eval $ac_try) 2>&5
40213   ac_status=$?
40214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215   (exit $ac_status); }; }; then
40216   ol_cv_db_db_1=yes
40217 else
40218   echo "$as_me: failed program was:" >&5
40219 sed 's/^/| /' conftest.$ac_ext >&5
40220
40221 ol_cv_db_db_1=no
40222 fi
40223 rm -f conftest.err conftest.$ac_objext \
40224       conftest$ac_exeext conftest.$ac_ext
40225
40226         LIBS="$ol_LIBS"
40227
40228 fi
40229 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40230 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40231
40232         if test $ol_cv_db_db_1 = yes ; then
40233                 ol_cv_lib_db=-ldb-1
40234         fi
40235 fi
40236
40237
40238                 if test "$ol_cv_lib_db" != no ; then
40239                         ol_cv_berkeley_db=yes
40240                 fi
40241         fi
40242 fi
40243
40244         else
40245                 ol_cv_berkeley_db=no
40246
40247 for ac_header in db.h
40248 do
40249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40251   echo "$as_me:$LINENO: checking for $ac_header" >&5
40252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40254   echo $ECHO_N "(cached) $ECHO_C" >&6
40255 fi
40256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40258 else
40259   # Is the header compilable?
40260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40262 cat >conftest.$ac_ext <<_ACEOF
40263 /* confdefs.h.  */
40264 _ACEOF
40265 cat confdefs.h >>conftest.$ac_ext
40266 cat >>conftest.$ac_ext <<_ACEOF
40267 /* end confdefs.h.  */
40268 $ac_includes_default
40269 #include <$ac_header>
40270 _ACEOF
40271 rm -f conftest.$ac_objext
40272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40273   (eval $ac_compile) 2>conftest.er1
40274   ac_status=$?
40275   grep -v '^ *+' conftest.er1 >conftest.err
40276   rm -f conftest.er1
40277   cat conftest.err >&5
40278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279   (exit $ac_status); } &&
40280          { ac_try='test -z "$ac_c_werror_flag"
40281                          || test ! -s conftest.err'
40282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40283   (eval $ac_try) 2>&5
40284   ac_status=$?
40285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286   (exit $ac_status); }; } &&
40287          { ac_try='test -s conftest.$ac_objext'
40288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40289   (eval $ac_try) 2>&5
40290   ac_status=$?
40291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292   (exit $ac_status); }; }; then
40293   ac_header_compiler=yes
40294 else
40295   echo "$as_me: failed program was:" >&5
40296 sed 's/^/| /' conftest.$ac_ext >&5
40297
40298 ac_header_compiler=no
40299 fi
40300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40302 echo "${ECHO_T}$ac_header_compiler" >&6
40303
40304 # Is the header present?
40305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40307 cat >conftest.$ac_ext <<_ACEOF
40308 /* confdefs.h.  */
40309 _ACEOF
40310 cat confdefs.h >>conftest.$ac_ext
40311 cat >>conftest.$ac_ext <<_ACEOF
40312 /* end confdefs.h.  */
40313 #include <$ac_header>
40314 _ACEOF
40315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40316   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40317   ac_status=$?
40318   grep -v '^ *+' conftest.er1 >conftest.err
40319   rm -f conftest.er1
40320   cat conftest.err >&5
40321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322   (exit $ac_status); } >/dev/null; then
40323   if test -s conftest.err; then
40324     ac_cpp_err=$ac_c_preproc_warn_flag
40325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40326   else
40327     ac_cpp_err=
40328   fi
40329 else
40330   ac_cpp_err=yes
40331 fi
40332 if test -z "$ac_cpp_err"; then
40333   ac_header_preproc=yes
40334 else
40335   echo "$as_me: failed program was:" >&5
40336 sed 's/^/| /' conftest.$ac_ext >&5
40337
40338   ac_header_preproc=no
40339 fi
40340 rm -f conftest.err conftest.$ac_ext
40341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40342 echo "${ECHO_T}$ac_header_preproc" >&6
40343
40344 # So?  What about this header?
40345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40346   yes:no: )
40347     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40351     ac_header_preproc=yes
40352     ;;
40353   no:yes:* )
40354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40356     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40357 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40358     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40360     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40361 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40364     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40366     (
40367       cat <<\_ASBOX
40368 ## ------------------------------------------ ##
40369 ## Report this to the AC_PACKAGE_NAME lists.  ##
40370 ## ------------------------------------------ ##
40371 _ASBOX
40372     ) |
40373       sed "s/^/$as_me: WARNING:     /" >&2
40374     ;;
40375 esac
40376 echo "$as_me:$LINENO: checking for $ac_header" >&5
40377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40379   echo $ECHO_N "(cached) $ECHO_C" >&6
40380 else
40381   eval "$as_ac_Header=\$ac_header_preproc"
40382 fi
40383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40385
40386 fi
40387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40388   cat >>confdefs.h <<_ACEOF
40389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40390 _ACEOF
40391
40392 fi
40393
40394 done
40395
40396 if test $ac_cv_header_db_h = yes; then
40397         ol_cv_lib_db=no
40398 if test $ol_cv_lib_db = no ; then
40399         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40400 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40401 if test "${ol_cv_db_none+set}" = set; then
40402   echo $ECHO_N "(cached) $ECHO_C" >&6
40403 else
40404
40405         ol_DB_LIB=
40406         ol_LIBS=$LIBS
40407         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40408
40409         cat >conftest.$ac_ext <<_ACEOF
40410 /* confdefs.h.  */
40411 _ACEOF
40412 cat confdefs.h >>conftest.$ac_ext
40413 cat >>conftest.$ac_ext <<_ACEOF
40414 /* end confdefs.h.  */
40415
40416 #ifdef HAVE_DB_185_H
40417 # include <db_185.h>
40418 #else
40419 # include <db.h>
40420 #endif
40421
40422 #ifndef DB_VERSION_MAJOR
40423 # define DB_VERSION_MAJOR 1
40424 #endif
40425
40426 #ifndef NULL
40427 #define NULL ((void*)0)
40428 #endif
40429
40430 int
40431 main ()
40432 {
40433
40434 #if DB_VERSION_MAJOR > 1
40435         {
40436                 char *version;
40437                 int major, minor, patch;
40438
40439                 version = db_version( &major, &minor, &patch );
40440
40441                 if( major != DB_VERSION_MAJOR ||
40442                         minor < DB_VERSION_MINOR )
40443                 {
40444                         printf("Berkeley DB version mismatch\n"
40445                                 "\theader: %s\n\tlibrary: %s\n",
40446                                 DB_VERSION_STRING, version);
40447                         return 1;
40448                 }
40449         }
40450 #endif
40451
40452 #if DB_VERSION_MAJOR > 2
40453         db_env_create( NULL, 0 );
40454 #elif DB_VERSION_MAJOR > 1
40455         db_appexit( NULL );
40456 #else
40457         (void) dbopen( NULL, 0, 0, 0, NULL);
40458 #endif
40459
40460   ;
40461   return 0;
40462 }
40463 _ACEOF
40464 rm -f conftest.$ac_objext conftest$ac_exeext
40465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40466   (eval $ac_link) 2>conftest.er1
40467   ac_status=$?
40468   grep -v '^ *+' conftest.er1 >conftest.err
40469   rm -f conftest.er1
40470   cat conftest.err >&5
40471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472   (exit $ac_status); } &&
40473          { ac_try='test -z "$ac_c_werror_flag"
40474                          || test ! -s conftest.err'
40475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476   (eval $ac_try) 2>&5
40477   ac_status=$?
40478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479   (exit $ac_status); }; } &&
40480          { ac_try='test -s conftest$ac_exeext'
40481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482   (eval $ac_try) 2>&5
40483   ac_status=$?
40484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485   (exit $ac_status); }; }; then
40486   ol_cv_db_none=yes
40487 else
40488   echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40490
40491 ol_cv_db_none=no
40492 fi
40493 rm -f conftest.err conftest.$ac_objext \
40494       conftest$ac_exeext conftest.$ac_ext
40495
40496         LIBS="$ol_LIBS"
40497
40498 fi
40499 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40500 echo "${ECHO_T}$ol_cv_db_none" >&6
40501
40502         if test $ol_cv_db_none = yes ; then
40503                 ol_cv_lib_db=yes
40504         fi
40505 fi
40506
40507 if test $ol_cv_lib_db = no ; then
40508         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40509 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40510 if test "${ol_cv_db_db43+set}" = set; then
40511   echo $ECHO_N "(cached) $ECHO_C" >&6
40512 else
40513
40514         ol_DB_LIB=-ldb43
40515         ol_LIBS=$LIBS
40516         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40517
40518         cat >conftest.$ac_ext <<_ACEOF
40519 /* confdefs.h.  */
40520 _ACEOF
40521 cat confdefs.h >>conftest.$ac_ext
40522 cat >>conftest.$ac_ext <<_ACEOF
40523 /* end confdefs.h.  */
40524
40525 #ifdef HAVE_DB_185_H
40526 # include <db_185.h>
40527 #else
40528 # include <db.h>
40529 #endif
40530
40531 #ifndef DB_VERSION_MAJOR
40532 # define DB_VERSION_MAJOR 1
40533 #endif
40534
40535 #ifndef NULL
40536 #define NULL ((void*)0)
40537 #endif
40538
40539 int
40540 main ()
40541 {
40542
40543 #if DB_VERSION_MAJOR > 1
40544         {
40545                 char *version;
40546                 int major, minor, patch;
40547
40548                 version = db_version( &major, &minor, &patch );
40549
40550                 if( major != DB_VERSION_MAJOR ||
40551                         minor < DB_VERSION_MINOR )
40552                 {
40553                         printf("Berkeley DB version mismatch\n"
40554                                 "\theader: %s\n\tlibrary: %s\n",
40555                                 DB_VERSION_STRING, version);
40556                         return 1;
40557                 }
40558         }
40559 #endif
40560
40561 #if DB_VERSION_MAJOR > 2
40562         db_env_create( NULL, 0 );
40563 #elif DB_VERSION_MAJOR > 1
40564         db_appexit( NULL );
40565 #else
40566         (void) dbopen( NULL, 0, 0, 0, NULL);
40567 #endif
40568
40569   ;
40570   return 0;
40571 }
40572 _ACEOF
40573 rm -f conftest.$ac_objext conftest$ac_exeext
40574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40575   (eval $ac_link) 2>conftest.er1
40576   ac_status=$?
40577   grep -v '^ *+' conftest.er1 >conftest.err
40578   rm -f conftest.er1
40579   cat conftest.err >&5
40580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40581   (exit $ac_status); } &&
40582          { ac_try='test -z "$ac_c_werror_flag"
40583                          || test ! -s conftest.err'
40584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40585   (eval $ac_try) 2>&5
40586   ac_status=$?
40587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588   (exit $ac_status); }; } &&
40589          { ac_try='test -s conftest$ac_exeext'
40590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40591   (eval $ac_try) 2>&5
40592   ac_status=$?
40593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594   (exit $ac_status); }; }; then
40595   ol_cv_db_db43=yes
40596 else
40597   echo "$as_me: failed program was:" >&5
40598 sed 's/^/| /' conftest.$ac_ext >&5
40599
40600 ol_cv_db_db43=no
40601 fi
40602 rm -f conftest.err conftest.$ac_objext \
40603       conftest$ac_exeext conftest.$ac_ext
40604
40605         LIBS="$ol_LIBS"
40606
40607 fi
40608 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40609 echo "${ECHO_T}$ol_cv_db_db43" >&6
40610
40611         if test $ol_cv_db_db43 = yes ; then
40612                 ol_cv_lib_db=-ldb43
40613         fi
40614 fi
40615
40616 if test $ol_cv_lib_db = no ; then
40617         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40618 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40619 if test "${ol_cv_db_db_43+set}" = set; then
40620   echo $ECHO_N "(cached) $ECHO_C" >&6
40621 else
40622
40623         ol_DB_LIB=-ldb-43
40624         ol_LIBS=$LIBS
40625         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40626
40627         cat >conftest.$ac_ext <<_ACEOF
40628 /* confdefs.h.  */
40629 _ACEOF
40630 cat confdefs.h >>conftest.$ac_ext
40631 cat >>conftest.$ac_ext <<_ACEOF
40632 /* end confdefs.h.  */
40633
40634 #ifdef HAVE_DB_185_H
40635 # include <db_185.h>
40636 #else
40637 # include <db.h>
40638 #endif
40639
40640 #ifndef DB_VERSION_MAJOR
40641 # define DB_VERSION_MAJOR 1
40642 #endif
40643
40644 #ifndef NULL
40645 #define NULL ((void*)0)
40646 #endif
40647
40648 int
40649 main ()
40650 {
40651
40652 #if DB_VERSION_MAJOR > 1
40653         {
40654                 char *version;
40655                 int major, minor, patch;
40656
40657                 version = db_version( &major, &minor, &patch );
40658
40659                 if( major != DB_VERSION_MAJOR ||
40660                         minor < DB_VERSION_MINOR )
40661                 {
40662                         printf("Berkeley DB version mismatch\n"
40663                                 "\theader: %s\n\tlibrary: %s\n",
40664                                 DB_VERSION_STRING, version);
40665                         return 1;
40666                 }
40667         }
40668 #endif
40669
40670 #if DB_VERSION_MAJOR > 2
40671         db_env_create( NULL, 0 );
40672 #elif DB_VERSION_MAJOR > 1
40673         db_appexit( NULL );
40674 #else
40675         (void) dbopen( NULL, 0, 0, 0, NULL);
40676 #endif
40677
40678   ;
40679   return 0;
40680 }
40681 _ACEOF
40682 rm -f conftest.$ac_objext conftest$ac_exeext
40683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40684   (eval $ac_link) 2>conftest.er1
40685   ac_status=$?
40686   grep -v '^ *+' conftest.er1 >conftest.err
40687   rm -f conftest.er1
40688   cat conftest.err >&5
40689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690   (exit $ac_status); } &&
40691          { ac_try='test -z "$ac_c_werror_flag"
40692                          || test ! -s conftest.err'
40693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40694   (eval $ac_try) 2>&5
40695   ac_status=$?
40696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697   (exit $ac_status); }; } &&
40698          { ac_try='test -s conftest$ac_exeext'
40699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40700   (eval $ac_try) 2>&5
40701   ac_status=$?
40702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703   (exit $ac_status); }; }; then
40704   ol_cv_db_db_43=yes
40705 else
40706   echo "$as_me: failed program was:" >&5
40707 sed 's/^/| /' conftest.$ac_ext >&5
40708
40709 ol_cv_db_db_43=no
40710 fi
40711 rm -f conftest.err conftest.$ac_objext \
40712       conftest$ac_exeext conftest.$ac_ext
40713
40714         LIBS="$ol_LIBS"
40715
40716 fi
40717 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40718 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40719
40720         if test $ol_cv_db_db_43 = yes ; then
40721                 ol_cv_lib_db=-ldb-43
40722         fi
40723 fi
40724
40725 if test $ol_cv_lib_db = no ; then
40726         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40727 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40728 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40729   echo $ECHO_N "(cached) $ECHO_C" >&6
40730 else
40731
40732         ol_DB_LIB=-ldb-4.3
40733         ol_LIBS=$LIBS
40734         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40735
40736         cat >conftest.$ac_ext <<_ACEOF
40737 /* confdefs.h.  */
40738 _ACEOF
40739 cat confdefs.h >>conftest.$ac_ext
40740 cat >>conftest.$ac_ext <<_ACEOF
40741 /* end confdefs.h.  */
40742
40743 #ifdef HAVE_DB_185_H
40744 # include <db_185.h>
40745 #else
40746 # include <db.h>
40747 #endif
40748
40749 #ifndef DB_VERSION_MAJOR
40750 # define DB_VERSION_MAJOR 1
40751 #endif
40752
40753 #ifndef NULL
40754 #define NULL ((void*)0)
40755 #endif
40756
40757 int
40758 main ()
40759 {
40760
40761 #if DB_VERSION_MAJOR > 1
40762         {
40763                 char *version;
40764                 int major, minor, patch;
40765
40766                 version = db_version( &major, &minor, &patch );
40767
40768                 if( major != DB_VERSION_MAJOR ||
40769                         minor < DB_VERSION_MINOR )
40770                 {
40771                         printf("Berkeley DB version mismatch\n"
40772                                 "\theader: %s\n\tlibrary: %s\n",
40773                                 DB_VERSION_STRING, version);
40774                         return 1;
40775                 }
40776         }
40777 #endif
40778
40779 #if DB_VERSION_MAJOR > 2
40780         db_env_create( NULL, 0 );
40781 #elif DB_VERSION_MAJOR > 1
40782         db_appexit( NULL );
40783 #else
40784         (void) dbopen( NULL, 0, 0, 0, NULL);
40785 #endif
40786
40787   ;
40788   return 0;
40789 }
40790 _ACEOF
40791 rm -f conftest.$ac_objext conftest$ac_exeext
40792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40793   (eval $ac_link) 2>conftest.er1
40794   ac_status=$?
40795   grep -v '^ *+' conftest.er1 >conftest.err
40796   rm -f conftest.er1
40797   cat conftest.err >&5
40798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799   (exit $ac_status); } &&
40800          { ac_try='test -z "$ac_c_werror_flag"
40801                          || test ! -s conftest.err'
40802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40803   (eval $ac_try) 2>&5
40804   ac_status=$?
40805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40806   (exit $ac_status); }; } &&
40807          { ac_try='test -s conftest$ac_exeext'
40808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809   (eval $ac_try) 2>&5
40810   ac_status=$?
40811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812   (exit $ac_status); }; }; then
40813   ol_cv_db_db_4_dot_3=yes
40814 else
40815   echo "$as_me: failed program was:" >&5
40816 sed 's/^/| /' conftest.$ac_ext >&5
40817
40818 ol_cv_db_db_4_dot_3=no
40819 fi
40820 rm -f conftest.err conftest.$ac_objext \
40821       conftest$ac_exeext conftest.$ac_ext
40822
40823         LIBS="$ol_LIBS"
40824
40825 fi
40826 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40827 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40828
40829         if test $ol_cv_db_db_4_dot_3 = yes ; then
40830                 ol_cv_lib_db=-ldb-4.3
40831         fi
40832 fi
40833
40834 if test $ol_cv_lib_db = no ; then
40835         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40836 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40837 if test "${ol_cv_db_db_4_3+set}" = set; then
40838   echo $ECHO_N "(cached) $ECHO_C" >&6
40839 else
40840
40841         ol_DB_LIB=-ldb-4-3
40842         ol_LIBS=$LIBS
40843         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40844
40845         cat >conftest.$ac_ext <<_ACEOF
40846 /* confdefs.h.  */
40847 _ACEOF
40848 cat confdefs.h >>conftest.$ac_ext
40849 cat >>conftest.$ac_ext <<_ACEOF
40850 /* end confdefs.h.  */
40851
40852 #ifdef HAVE_DB_185_H
40853 # include <db_185.h>
40854 #else
40855 # include <db.h>
40856 #endif
40857
40858 #ifndef DB_VERSION_MAJOR
40859 # define DB_VERSION_MAJOR 1
40860 #endif
40861
40862 #ifndef NULL
40863 #define NULL ((void*)0)
40864 #endif
40865
40866 int
40867 main ()
40868 {
40869
40870 #if DB_VERSION_MAJOR > 1
40871         {
40872                 char *version;
40873                 int major, minor, patch;
40874
40875                 version = db_version( &major, &minor, &patch );
40876
40877                 if( major != DB_VERSION_MAJOR ||
40878                         minor < DB_VERSION_MINOR )
40879                 {
40880                         printf("Berkeley DB version mismatch\n"
40881                                 "\theader: %s\n\tlibrary: %s\n",
40882                                 DB_VERSION_STRING, version);
40883                         return 1;
40884                 }
40885         }
40886 #endif
40887
40888 #if DB_VERSION_MAJOR > 2
40889         db_env_create( NULL, 0 );
40890 #elif DB_VERSION_MAJOR > 1
40891         db_appexit( NULL );
40892 #else
40893         (void) dbopen( NULL, 0, 0, 0, NULL);
40894 #endif
40895
40896   ;
40897   return 0;
40898 }
40899 _ACEOF
40900 rm -f conftest.$ac_objext conftest$ac_exeext
40901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40902   (eval $ac_link) 2>conftest.er1
40903   ac_status=$?
40904   grep -v '^ *+' conftest.er1 >conftest.err
40905   rm -f conftest.er1
40906   cat conftest.err >&5
40907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40908   (exit $ac_status); } &&
40909          { ac_try='test -z "$ac_c_werror_flag"
40910                          || test ! -s conftest.err'
40911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40912   (eval $ac_try) 2>&5
40913   ac_status=$?
40914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40915   (exit $ac_status); }; } &&
40916          { ac_try='test -s conftest$ac_exeext'
40917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40918   (eval $ac_try) 2>&5
40919   ac_status=$?
40920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40921   (exit $ac_status); }; }; then
40922   ol_cv_db_db_4_3=yes
40923 else
40924   echo "$as_me: failed program was:" >&5
40925 sed 's/^/| /' conftest.$ac_ext >&5
40926
40927 ol_cv_db_db_4_3=no
40928 fi
40929 rm -f conftest.err conftest.$ac_objext \
40930       conftest$ac_exeext conftest.$ac_ext
40931
40932         LIBS="$ol_LIBS"
40933
40934 fi
40935 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40936 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40937
40938         if test $ol_cv_db_db_4_3 = yes ; then
40939                 ol_cv_lib_db=-ldb-4-3
40940         fi
40941 fi
40942
40943 if test $ol_cv_lib_db = no ; then
40944         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40945 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40946 if test "${ol_cv_db_db42+set}" = set; then
40947   echo $ECHO_N "(cached) $ECHO_C" >&6
40948 else
40949
40950         ol_DB_LIB=-ldb42
40951         ol_LIBS=$LIBS
40952         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40953
40954         cat >conftest.$ac_ext <<_ACEOF
40955 /* confdefs.h.  */
40956 _ACEOF
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h.  */
40960
40961 #ifdef HAVE_DB_185_H
40962 # include <db_185.h>
40963 #else
40964 # include <db.h>
40965 #endif
40966
40967 #ifndef DB_VERSION_MAJOR
40968 # define DB_VERSION_MAJOR 1
40969 #endif
40970
40971 #ifndef NULL
40972 #define NULL ((void*)0)
40973 #endif
40974
40975 int
40976 main ()
40977 {
40978
40979 #if DB_VERSION_MAJOR > 1
40980         {
40981                 char *version;
40982                 int major, minor, patch;
40983
40984                 version = db_version( &major, &minor, &patch );
40985
40986                 if( major != DB_VERSION_MAJOR ||
40987                         minor < DB_VERSION_MINOR )
40988                 {
40989                         printf("Berkeley DB version mismatch\n"
40990                                 "\theader: %s\n\tlibrary: %s\n",
40991                                 DB_VERSION_STRING, version);
40992                         return 1;
40993                 }
40994         }
40995 #endif
40996
40997 #if DB_VERSION_MAJOR > 2
40998         db_env_create( NULL, 0 );
40999 #elif DB_VERSION_MAJOR > 1
41000         db_appexit( NULL );
41001 #else
41002         (void) dbopen( NULL, 0, 0, 0, NULL);
41003 #endif
41004
41005   ;
41006   return 0;
41007 }
41008 _ACEOF
41009 rm -f conftest.$ac_objext conftest$ac_exeext
41010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41011   (eval $ac_link) 2>conftest.er1
41012   ac_status=$?
41013   grep -v '^ *+' conftest.er1 >conftest.err
41014   rm -f conftest.er1
41015   cat conftest.err >&5
41016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017   (exit $ac_status); } &&
41018          { ac_try='test -z "$ac_c_werror_flag"
41019                          || test ! -s conftest.err'
41020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41021   (eval $ac_try) 2>&5
41022   ac_status=$?
41023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41024   (exit $ac_status); }; } &&
41025          { ac_try='test -s conftest$ac_exeext'
41026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027   (eval $ac_try) 2>&5
41028   ac_status=$?
41029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030   (exit $ac_status); }; }; then
41031   ol_cv_db_db42=yes
41032 else
41033   echo "$as_me: failed program was:" >&5
41034 sed 's/^/| /' conftest.$ac_ext >&5
41035
41036 ol_cv_db_db42=no
41037 fi
41038 rm -f conftest.err conftest.$ac_objext \
41039       conftest$ac_exeext conftest.$ac_ext
41040
41041         LIBS="$ol_LIBS"
41042
41043 fi
41044 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41045 echo "${ECHO_T}$ol_cv_db_db42" >&6
41046
41047         if test $ol_cv_db_db42 = yes ; then
41048                 ol_cv_lib_db=-ldb42
41049         fi
41050 fi
41051
41052 if test $ol_cv_lib_db = no ; then
41053         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41054 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41055 if test "${ol_cv_db_db_42+set}" = set; then
41056   echo $ECHO_N "(cached) $ECHO_C" >&6
41057 else
41058
41059         ol_DB_LIB=-ldb-42
41060         ol_LIBS=$LIBS
41061         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41062
41063         cat >conftest.$ac_ext <<_ACEOF
41064 /* confdefs.h.  */
41065 _ACEOF
41066 cat confdefs.h >>conftest.$ac_ext
41067 cat >>conftest.$ac_ext <<_ACEOF
41068 /* end confdefs.h.  */
41069
41070 #ifdef HAVE_DB_185_H
41071 # include <db_185.h>
41072 #else
41073 # include <db.h>
41074 #endif
41075
41076 #ifndef DB_VERSION_MAJOR
41077 # define DB_VERSION_MAJOR 1
41078 #endif
41079
41080 #ifndef NULL
41081 #define NULL ((void*)0)
41082 #endif
41083
41084 int
41085 main ()
41086 {
41087
41088 #if DB_VERSION_MAJOR > 1
41089         {
41090                 char *version;
41091                 int major, minor, patch;
41092
41093                 version = db_version( &major, &minor, &patch );
41094
41095                 if( major != DB_VERSION_MAJOR ||
41096                         minor < DB_VERSION_MINOR )
41097                 {
41098                         printf("Berkeley DB version mismatch\n"
41099                                 "\theader: %s\n\tlibrary: %s\n",
41100                                 DB_VERSION_STRING, version);
41101                         return 1;
41102                 }
41103         }
41104 #endif
41105
41106 #if DB_VERSION_MAJOR > 2
41107         db_env_create( NULL, 0 );
41108 #elif DB_VERSION_MAJOR > 1
41109         db_appexit( NULL );
41110 #else
41111         (void) dbopen( NULL, 0, 0, 0, NULL);
41112 #endif
41113
41114   ;
41115   return 0;
41116 }
41117 _ACEOF
41118 rm -f conftest.$ac_objext conftest$ac_exeext
41119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41120   (eval $ac_link) 2>conftest.er1
41121   ac_status=$?
41122   grep -v '^ *+' conftest.er1 >conftest.err
41123   rm -f conftest.er1
41124   cat conftest.err >&5
41125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41126   (exit $ac_status); } &&
41127          { ac_try='test -z "$ac_c_werror_flag"
41128                          || test ! -s conftest.err'
41129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41130   (eval $ac_try) 2>&5
41131   ac_status=$?
41132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41133   (exit $ac_status); }; } &&
41134          { ac_try='test -s conftest$ac_exeext'
41135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41136   (eval $ac_try) 2>&5
41137   ac_status=$?
41138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139   (exit $ac_status); }; }; then
41140   ol_cv_db_db_42=yes
41141 else
41142   echo "$as_me: failed program was:" >&5
41143 sed 's/^/| /' conftest.$ac_ext >&5
41144
41145 ol_cv_db_db_42=no
41146 fi
41147 rm -f conftest.err conftest.$ac_objext \
41148       conftest$ac_exeext conftest.$ac_ext
41149
41150         LIBS="$ol_LIBS"
41151
41152 fi
41153 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41154 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41155
41156         if test $ol_cv_db_db_42 = yes ; then
41157                 ol_cv_lib_db=-ldb-42
41158         fi
41159 fi
41160
41161 if test $ol_cv_lib_db = no ; then
41162         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41163 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41164 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41165   echo $ECHO_N "(cached) $ECHO_C" >&6
41166 else
41167
41168         ol_DB_LIB=-ldb-4.2
41169         ol_LIBS=$LIBS
41170         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41171
41172         cat >conftest.$ac_ext <<_ACEOF
41173 /* confdefs.h.  */
41174 _ACEOF
41175 cat confdefs.h >>conftest.$ac_ext
41176 cat >>conftest.$ac_ext <<_ACEOF
41177 /* end confdefs.h.  */
41178
41179 #ifdef HAVE_DB_185_H
41180 # include <db_185.h>
41181 #else
41182 # include <db.h>
41183 #endif
41184
41185 #ifndef DB_VERSION_MAJOR
41186 # define DB_VERSION_MAJOR 1
41187 #endif
41188
41189 #ifndef NULL
41190 #define NULL ((void*)0)
41191 #endif
41192
41193 int
41194 main ()
41195 {
41196
41197 #if DB_VERSION_MAJOR > 1
41198         {
41199                 char *version;
41200                 int major, minor, patch;
41201
41202                 version = db_version( &major, &minor, &patch );
41203
41204                 if( major != DB_VERSION_MAJOR ||
41205                         minor < DB_VERSION_MINOR )
41206                 {
41207                         printf("Berkeley DB version mismatch\n"
41208                                 "\theader: %s\n\tlibrary: %s\n",
41209                                 DB_VERSION_STRING, version);
41210                         return 1;
41211                 }
41212         }
41213 #endif
41214
41215 #if DB_VERSION_MAJOR > 2
41216         db_env_create( NULL, 0 );
41217 #elif DB_VERSION_MAJOR > 1
41218         db_appexit( NULL );
41219 #else
41220         (void) dbopen( NULL, 0, 0, 0, NULL);
41221 #endif
41222
41223   ;
41224   return 0;
41225 }
41226 _ACEOF
41227 rm -f conftest.$ac_objext conftest$ac_exeext
41228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41229   (eval $ac_link) 2>conftest.er1
41230   ac_status=$?
41231   grep -v '^ *+' conftest.er1 >conftest.err
41232   rm -f conftest.er1
41233   cat conftest.err >&5
41234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41235   (exit $ac_status); } &&
41236          { ac_try='test -z "$ac_c_werror_flag"
41237                          || test ! -s conftest.err'
41238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41239   (eval $ac_try) 2>&5
41240   ac_status=$?
41241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41242   (exit $ac_status); }; } &&
41243          { ac_try='test -s conftest$ac_exeext'
41244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41245   (eval $ac_try) 2>&5
41246   ac_status=$?
41247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248   (exit $ac_status); }; }; then
41249   ol_cv_db_db_4_dot_2=yes
41250 else
41251   echo "$as_me: failed program was:" >&5
41252 sed 's/^/| /' conftest.$ac_ext >&5
41253
41254 ol_cv_db_db_4_dot_2=no
41255 fi
41256 rm -f conftest.err conftest.$ac_objext \
41257       conftest$ac_exeext conftest.$ac_ext
41258
41259         LIBS="$ol_LIBS"
41260
41261 fi
41262 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41263 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41264
41265         if test $ol_cv_db_db_4_dot_2 = yes ; then
41266                 ol_cv_lib_db=-ldb-4.2
41267         fi
41268 fi
41269
41270 if test $ol_cv_lib_db = no ; then
41271         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41272 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41273 if test "${ol_cv_db_db_4_2+set}" = set; then
41274   echo $ECHO_N "(cached) $ECHO_C" >&6
41275 else
41276
41277         ol_DB_LIB=-ldb-4-2
41278         ol_LIBS=$LIBS
41279         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41280
41281         cat >conftest.$ac_ext <<_ACEOF
41282 /* confdefs.h.  */
41283 _ACEOF
41284 cat confdefs.h >>conftest.$ac_ext
41285 cat >>conftest.$ac_ext <<_ACEOF
41286 /* end confdefs.h.  */
41287
41288 #ifdef HAVE_DB_185_H
41289 # include <db_185.h>
41290 #else
41291 # include <db.h>
41292 #endif
41293
41294 #ifndef DB_VERSION_MAJOR
41295 # define DB_VERSION_MAJOR 1
41296 #endif
41297
41298 #ifndef NULL
41299 #define NULL ((void*)0)
41300 #endif
41301
41302 int
41303 main ()
41304 {
41305
41306 #if DB_VERSION_MAJOR > 1
41307         {
41308                 char *version;
41309                 int major, minor, patch;
41310
41311                 version = db_version( &major, &minor, &patch );
41312
41313                 if( major != DB_VERSION_MAJOR ||
41314                         minor < DB_VERSION_MINOR )
41315                 {
41316                         printf("Berkeley DB version mismatch\n"
41317                                 "\theader: %s\n\tlibrary: %s\n",
41318                                 DB_VERSION_STRING, version);
41319                         return 1;
41320                 }
41321         }
41322 #endif
41323
41324 #if DB_VERSION_MAJOR > 2
41325         db_env_create( NULL, 0 );
41326 #elif DB_VERSION_MAJOR > 1
41327         db_appexit( NULL );
41328 #else
41329         (void) dbopen( NULL, 0, 0, 0, NULL);
41330 #endif
41331
41332   ;
41333   return 0;
41334 }
41335 _ACEOF
41336 rm -f conftest.$ac_objext conftest$ac_exeext
41337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41338   (eval $ac_link) 2>conftest.er1
41339   ac_status=$?
41340   grep -v '^ *+' conftest.er1 >conftest.err
41341   rm -f conftest.er1
41342   cat conftest.err >&5
41343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344   (exit $ac_status); } &&
41345          { ac_try='test -z "$ac_c_werror_flag"
41346                          || test ! -s conftest.err'
41347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41348   (eval $ac_try) 2>&5
41349   ac_status=$?
41350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41351   (exit $ac_status); }; } &&
41352          { ac_try='test -s conftest$ac_exeext'
41353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41354   (eval $ac_try) 2>&5
41355   ac_status=$?
41356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357   (exit $ac_status); }; }; then
41358   ol_cv_db_db_4_2=yes
41359 else
41360   echo "$as_me: failed program was:" >&5
41361 sed 's/^/| /' conftest.$ac_ext >&5
41362
41363 ol_cv_db_db_4_2=no
41364 fi
41365 rm -f conftest.err conftest.$ac_objext \
41366       conftest$ac_exeext conftest.$ac_ext
41367
41368         LIBS="$ol_LIBS"
41369
41370 fi
41371 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41372 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41373
41374         if test $ol_cv_db_db_4_2 = yes ; then
41375                 ol_cv_lib_db=-ldb-4-2
41376         fi
41377 fi
41378
41379 if test $ol_cv_lib_db = no ; then
41380         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41381 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41382 if test "${ol_cv_db_db_4+set}" = set; then
41383   echo $ECHO_N "(cached) $ECHO_C" >&6
41384 else
41385
41386         ol_DB_LIB=-ldb-4
41387         ol_LIBS=$LIBS
41388         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41389
41390         cat >conftest.$ac_ext <<_ACEOF
41391 /* confdefs.h.  */
41392 _ACEOF
41393 cat confdefs.h >>conftest.$ac_ext
41394 cat >>conftest.$ac_ext <<_ACEOF
41395 /* end confdefs.h.  */
41396
41397 #ifdef HAVE_DB_185_H
41398 # include <db_185.h>
41399 #else
41400 # include <db.h>
41401 #endif
41402
41403 #ifndef DB_VERSION_MAJOR
41404 # define DB_VERSION_MAJOR 1
41405 #endif
41406
41407 #ifndef NULL
41408 #define NULL ((void*)0)
41409 #endif
41410
41411 int
41412 main ()
41413 {
41414
41415 #if DB_VERSION_MAJOR > 1
41416         {
41417                 char *version;
41418                 int major, minor, patch;
41419
41420                 version = db_version( &major, &minor, &patch );
41421
41422                 if( major != DB_VERSION_MAJOR ||
41423                         minor < DB_VERSION_MINOR )
41424                 {
41425                         printf("Berkeley DB version mismatch\n"
41426                                 "\theader: %s\n\tlibrary: %s\n",
41427                                 DB_VERSION_STRING, version);
41428                         return 1;
41429                 }
41430         }
41431 #endif
41432
41433 #if DB_VERSION_MAJOR > 2
41434         db_env_create( NULL, 0 );
41435 #elif DB_VERSION_MAJOR > 1
41436         db_appexit( NULL );
41437 #else
41438         (void) dbopen( NULL, 0, 0, 0, NULL);
41439 #endif
41440
41441   ;
41442   return 0;
41443 }
41444 _ACEOF
41445 rm -f conftest.$ac_objext conftest$ac_exeext
41446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41447   (eval $ac_link) 2>conftest.er1
41448   ac_status=$?
41449   grep -v '^ *+' conftest.er1 >conftest.err
41450   rm -f conftest.er1
41451   cat conftest.err >&5
41452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41453   (exit $ac_status); } &&
41454          { ac_try='test -z "$ac_c_werror_flag"
41455                          || test ! -s conftest.err'
41456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41457   (eval $ac_try) 2>&5
41458   ac_status=$?
41459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41460   (exit $ac_status); }; } &&
41461          { ac_try='test -s conftest$ac_exeext'
41462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41463   (eval $ac_try) 2>&5
41464   ac_status=$?
41465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41466   (exit $ac_status); }; }; then
41467   ol_cv_db_db_4=yes
41468 else
41469   echo "$as_me: failed program was:" >&5
41470 sed 's/^/| /' conftest.$ac_ext >&5
41471
41472 ol_cv_db_db_4=no
41473 fi
41474 rm -f conftest.err conftest.$ac_objext \
41475       conftest$ac_exeext conftest.$ac_ext
41476
41477         LIBS="$ol_LIBS"
41478
41479 fi
41480 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41481 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41482
41483         if test $ol_cv_db_db_4 = yes ; then
41484                 ol_cv_lib_db=-ldb-4
41485         fi
41486 fi
41487
41488 if test $ol_cv_lib_db = no ; then
41489         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41490 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41491 if test "${ol_cv_db_db4+set}" = set; then
41492   echo $ECHO_N "(cached) $ECHO_C" >&6
41493 else
41494
41495         ol_DB_LIB=-ldb4
41496         ol_LIBS=$LIBS
41497         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41498
41499         cat >conftest.$ac_ext <<_ACEOF
41500 /* confdefs.h.  */
41501 _ACEOF
41502 cat confdefs.h >>conftest.$ac_ext
41503 cat >>conftest.$ac_ext <<_ACEOF
41504 /* end confdefs.h.  */
41505
41506 #ifdef HAVE_DB_185_H
41507 # include <db_185.h>
41508 #else
41509 # include <db.h>
41510 #endif
41511
41512 #ifndef DB_VERSION_MAJOR
41513 # define DB_VERSION_MAJOR 1
41514 #endif
41515
41516 #ifndef NULL
41517 #define NULL ((void*)0)
41518 #endif
41519
41520 int
41521 main ()
41522 {
41523
41524 #if DB_VERSION_MAJOR > 1
41525         {
41526                 char *version;
41527                 int major, minor, patch;
41528
41529                 version = db_version( &major, &minor, &patch );
41530
41531                 if( major != DB_VERSION_MAJOR ||
41532                         minor < DB_VERSION_MINOR )
41533                 {
41534                         printf("Berkeley DB version mismatch\n"
41535                                 "\theader: %s\n\tlibrary: %s\n",
41536                                 DB_VERSION_STRING, version);
41537                         return 1;
41538                 }
41539         }
41540 #endif
41541
41542 #if DB_VERSION_MAJOR > 2
41543         db_env_create( NULL, 0 );
41544 #elif DB_VERSION_MAJOR > 1
41545         db_appexit( NULL );
41546 #else
41547         (void) dbopen( NULL, 0, 0, 0, NULL);
41548 #endif
41549
41550   ;
41551   return 0;
41552 }
41553 _ACEOF
41554 rm -f conftest.$ac_objext conftest$ac_exeext
41555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41556   (eval $ac_link) 2>conftest.er1
41557   ac_status=$?
41558   grep -v '^ *+' conftest.er1 >conftest.err
41559   rm -f conftest.er1
41560   cat conftest.err >&5
41561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562   (exit $ac_status); } &&
41563          { ac_try='test -z "$ac_c_werror_flag"
41564                          || test ! -s conftest.err'
41565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41566   (eval $ac_try) 2>&5
41567   ac_status=$?
41568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41569   (exit $ac_status); }; } &&
41570          { ac_try='test -s conftest$ac_exeext'
41571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41572   (eval $ac_try) 2>&5
41573   ac_status=$?
41574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575   (exit $ac_status); }; }; then
41576   ol_cv_db_db4=yes
41577 else
41578   echo "$as_me: failed program was:" >&5
41579 sed 's/^/| /' conftest.$ac_ext >&5
41580
41581 ol_cv_db_db4=no
41582 fi
41583 rm -f conftest.err conftest.$ac_objext \
41584       conftest$ac_exeext conftest.$ac_ext
41585
41586         LIBS="$ol_LIBS"
41587
41588 fi
41589 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41590 echo "${ECHO_T}$ol_cv_db_db4" >&6
41591
41592         if test $ol_cv_db_db4 = yes ; then
41593                 ol_cv_lib_db=-ldb4
41594         fi
41595 fi
41596
41597 if test $ol_cv_lib_db = no ; then
41598         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41599 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41600 if test "${ol_cv_db_db+set}" = set; then
41601   echo $ECHO_N "(cached) $ECHO_C" >&6
41602 else
41603
41604         ol_DB_LIB=-ldb
41605         ol_LIBS=$LIBS
41606         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41607
41608         cat >conftest.$ac_ext <<_ACEOF
41609 /* confdefs.h.  */
41610 _ACEOF
41611 cat confdefs.h >>conftest.$ac_ext
41612 cat >>conftest.$ac_ext <<_ACEOF
41613 /* end confdefs.h.  */
41614
41615 #ifdef HAVE_DB_185_H
41616 # include <db_185.h>
41617 #else
41618 # include <db.h>
41619 #endif
41620
41621 #ifndef DB_VERSION_MAJOR
41622 # define DB_VERSION_MAJOR 1
41623 #endif
41624
41625 #ifndef NULL
41626 #define NULL ((void*)0)
41627 #endif
41628
41629 int
41630 main ()
41631 {
41632
41633 #if DB_VERSION_MAJOR > 1
41634         {
41635                 char *version;
41636                 int major, minor, patch;
41637
41638                 version = db_version( &major, &minor, &patch );
41639
41640                 if( major != DB_VERSION_MAJOR ||
41641                         minor < DB_VERSION_MINOR )
41642                 {
41643                         printf("Berkeley DB version mismatch\n"
41644                                 "\theader: %s\n\tlibrary: %s\n",
41645                                 DB_VERSION_STRING, version);
41646                         return 1;
41647                 }
41648         }
41649 #endif
41650
41651 #if DB_VERSION_MAJOR > 2
41652         db_env_create( NULL, 0 );
41653 #elif DB_VERSION_MAJOR > 1
41654         db_appexit( NULL );
41655 #else
41656         (void) dbopen( NULL, 0, 0, 0, NULL);
41657 #endif
41658
41659   ;
41660   return 0;
41661 }
41662 _ACEOF
41663 rm -f conftest.$ac_objext conftest$ac_exeext
41664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41665   (eval $ac_link) 2>conftest.er1
41666   ac_status=$?
41667   grep -v '^ *+' conftest.er1 >conftest.err
41668   rm -f conftest.er1
41669   cat conftest.err >&5
41670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671   (exit $ac_status); } &&
41672          { ac_try='test -z "$ac_c_werror_flag"
41673                          || test ! -s conftest.err'
41674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41675   (eval $ac_try) 2>&5
41676   ac_status=$?
41677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41678   (exit $ac_status); }; } &&
41679          { ac_try='test -s conftest$ac_exeext'
41680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41681   (eval $ac_try) 2>&5
41682   ac_status=$?
41683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41684   (exit $ac_status); }; }; then
41685   ol_cv_db_db=yes
41686 else
41687   echo "$as_me: failed program was:" >&5
41688 sed 's/^/| /' conftest.$ac_ext >&5
41689
41690 ol_cv_db_db=no
41691 fi
41692 rm -f conftest.err conftest.$ac_objext \
41693       conftest$ac_exeext conftest.$ac_ext
41694
41695         LIBS="$ol_LIBS"
41696
41697 fi
41698 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41699 echo "${ECHO_T}$ol_cv_db_db" >&6
41700
41701         if test $ol_cv_db_db = yes ; then
41702                 ol_cv_lib_db=-ldb
41703         fi
41704 fi
41705
41706 if test $ol_cv_lib_db = no ; then
41707         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41708 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41709 if test "${ol_cv_db_db41+set}" = set; then
41710   echo $ECHO_N "(cached) $ECHO_C" >&6
41711 else
41712
41713         ol_DB_LIB=-ldb41
41714         ol_LIBS=$LIBS
41715         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41716
41717         cat >conftest.$ac_ext <<_ACEOF
41718 /* confdefs.h.  */
41719 _ACEOF
41720 cat confdefs.h >>conftest.$ac_ext
41721 cat >>conftest.$ac_ext <<_ACEOF
41722 /* end confdefs.h.  */
41723
41724 #ifdef HAVE_DB_185_H
41725 # include <db_185.h>
41726 #else
41727 # include <db.h>
41728 #endif
41729
41730 #ifndef DB_VERSION_MAJOR
41731 # define DB_VERSION_MAJOR 1
41732 #endif
41733
41734 #ifndef NULL
41735 #define NULL ((void*)0)
41736 #endif
41737
41738 int
41739 main ()
41740 {
41741
41742 #if DB_VERSION_MAJOR > 1
41743         {
41744                 char *version;
41745                 int major, minor, patch;
41746
41747                 version = db_version( &major, &minor, &patch );
41748
41749                 if( major != DB_VERSION_MAJOR ||
41750                         minor < DB_VERSION_MINOR )
41751                 {
41752                         printf("Berkeley DB version mismatch\n"
41753                                 "\theader: %s\n\tlibrary: %s\n",
41754                                 DB_VERSION_STRING, version);
41755                         return 1;
41756                 }
41757         }
41758 #endif
41759
41760 #if DB_VERSION_MAJOR > 2
41761         db_env_create( NULL, 0 );
41762 #elif DB_VERSION_MAJOR > 1
41763         db_appexit( NULL );
41764 #else
41765         (void) dbopen( NULL, 0, 0, 0, NULL);
41766 #endif
41767
41768   ;
41769   return 0;
41770 }
41771 _ACEOF
41772 rm -f conftest.$ac_objext conftest$ac_exeext
41773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41774   (eval $ac_link) 2>conftest.er1
41775   ac_status=$?
41776   grep -v '^ *+' conftest.er1 >conftest.err
41777   rm -f conftest.er1
41778   cat conftest.err >&5
41779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780   (exit $ac_status); } &&
41781          { ac_try='test -z "$ac_c_werror_flag"
41782                          || test ! -s conftest.err'
41783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41784   (eval $ac_try) 2>&5
41785   ac_status=$?
41786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787   (exit $ac_status); }; } &&
41788          { ac_try='test -s conftest$ac_exeext'
41789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41790   (eval $ac_try) 2>&5
41791   ac_status=$?
41792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793   (exit $ac_status); }; }; then
41794   ol_cv_db_db41=yes
41795 else
41796   echo "$as_me: failed program was:" >&5
41797 sed 's/^/| /' conftest.$ac_ext >&5
41798
41799 ol_cv_db_db41=no
41800 fi
41801 rm -f conftest.err conftest.$ac_objext \
41802       conftest$ac_exeext conftest.$ac_ext
41803
41804         LIBS="$ol_LIBS"
41805
41806 fi
41807 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41808 echo "${ECHO_T}$ol_cv_db_db41" >&6
41809
41810         if test $ol_cv_db_db41 = yes ; then
41811                 ol_cv_lib_db=-ldb41
41812         fi
41813 fi
41814
41815 if test $ol_cv_lib_db = no ; then
41816         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41817 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41818 if test "${ol_cv_db_db_41+set}" = set; then
41819   echo $ECHO_N "(cached) $ECHO_C" >&6
41820 else
41821
41822         ol_DB_LIB=-ldb-41
41823         ol_LIBS=$LIBS
41824         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41825
41826         cat >conftest.$ac_ext <<_ACEOF
41827 /* confdefs.h.  */
41828 _ACEOF
41829 cat confdefs.h >>conftest.$ac_ext
41830 cat >>conftest.$ac_ext <<_ACEOF
41831 /* end confdefs.h.  */
41832
41833 #ifdef HAVE_DB_185_H
41834 # include <db_185.h>
41835 #else
41836 # include <db.h>
41837 #endif
41838
41839 #ifndef DB_VERSION_MAJOR
41840 # define DB_VERSION_MAJOR 1
41841 #endif
41842
41843 #ifndef NULL
41844 #define NULL ((void*)0)
41845 #endif
41846
41847 int
41848 main ()
41849 {
41850
41851 #if DB_VERSION_MAJOR > 1
41852         {
41853                 char *version;
41854                 int major, minor, patch;
41855
41856                 version = db_version( &major, &minor, &patch );
41857
41858                 if( major != DB_VERSION_MAJOR ||
41859                         minor < DB_VERSION_MINOR )
41860                 {
41861                         printf("Berkeley DB version mismatch\n"
41862                                 "\theader: %s\n\tlibrary: %s\n",
41863                                 DB_VERSION_STRING, version);
41864                         return 1;
41865                 }
41866         }
41867 #endif
41868
41869 #if DB_VERSION_MAJOR > 2
41870         db_env_create( NULL, 0 );
41871 #elif DB_VERSION_MAJOR > 1
41872         db_appexit( NULL );
41873 #else
41874         (void) dbopen( NULL, 0, 0, 0, NULL);
41875 #endif
41876
41877   ;
41878   return 0;
41879 }
41880 _ACEOF
41881 rm -f conftest.$ac_objext conftest$ac_exeext
41882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41883   (eval $ac_link) 2>conftest.er1
41884   ac_status=$?
41885   grep -v '^ *+' conftest.er1 >conftest.err
41886   rm -f conftest.er1
41887   cat conftest.err >&5
41888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889   (exit $ac_status); } &&
41890          { ac_try='test -z "$ac_c_werror_flag"
41891                          || test ! -s conftest.err'
41892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41893   (eval $ac_try) 2>&5
41894   ac_status=$?
41895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896   (exit $ac_status); }; } &&
41897          { ac_try='test -s conftest$ac_exeext'
41898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899   (eval $ac_try) 2>&5
41900   ac_status=$?
41901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902   (exit $ac_status); }; }; then
41903   ol_cv_db_db_41=yes
41904 else
41905   echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41907
41908 ol_cv_db_db_41=no
41909 fi
41910 rm -f conftest.err conftest.$ac_objext \
41911       conftest$ac_exeext conftest.$ac_ext
41912
41913         LIBS="$ol_LIBS"
41914
41915 fi
41916 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41917 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41918
41919         if test $ol_cv_db_db_41 = yes ; then
41920                 ol_cv_lib_db=-ldb-41
41921         fi
41922 fi
41923
41924 if test $ol_cv_lib_db = no ; then
41925         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41926 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41927 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41928   echo $ECHO_N "(cached) $ECHO_C" >&6
41929 else
41930
41931         ol_DB_LIB=-ldb-4.1
41932         ol_LIBS=$LIBS
41933         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41934
41935         cat >conftest.$ac_ext <<_ACEOF
41936 /* confdefs.h.  */
41937 _ACEOF
41938 cat confdefs.h >>conftest.$ac_ext
41939 cat >>conftest.$ac_ext <<_ACEOF
41940 /* end confdefs.h.  */
41941
41942 #ifdef HAVE_DB_185_H
41943 # include <db_185.h>
41944 #else
41945 # include <db.h>
41946 #endif
41947
41948 #ifndef DB_VERSION_MAJOR
41949 # define DB_VERSION_MAJOR 1
41950 #endif
41951
41952 #ifndef NULL
41953 #define NULL ((void*)0)
41954 #endif
41955
41956 int
41957 main ()
41958 {
41959
41960 #if DB_VERSION_MAJOR > 1
41961         {
41962                 char *version;
41963                 int major, minor, patch;
41964
41965                 version = db_version( &major, &minor, &patch );
41966
41967                 if( major != DB_VERSION_MAJOR ||
41968                         minor < DB_VERSION_MINOR )
41969                 {
41970                         printf("Berkeley DB version mismatch\n"
41971                                 "\theader: %s\n\tlibrary: %s\n",
41972                                 DB_VERSION_STRING, version);
41973                         return 1;
41974                 }
41975         }
41976 #endif
41977
41978 #if DB_VERSION_MAJOR > 2
41979         db_env_create( NULL, 0 );
41980 #elif DB_VERSION_MAJOR > 1
41981         db_appexit( NULL );
41982 #else
41983         (void) dbopen( NULL, 0, 0, 0, NULL);
41984 #endif
41985
41986   ;
41987   return 0;
41988 }
41989 _ACEOF
41990 rm -f conftest.$ac_objext conftest$ac_exeext
41991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41992   (eval $ac_link) 2>conftest.er1
41993   ac_status=$?
41994   grep -v '^ *+' conftest.er1 >conftest.err
41995   rm -f conftest.er1
41996   cat conftest.err >&5
41997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41998   (exit $ac_status); } &&
41999          { ac_try='test -z "$ac_c_werror_flag"
42000                          || test ! -s conftest.err'
42001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42002   (eval $ac_try) 2>&5
42003   ac_status=$?
42004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42005   (exit $ac_status); }; } &&
42006          { ac_try='test -s conftest$ac_exeext'
42007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42008   (eval $ac_try) 2>&5
42009   ac_status=$?
42010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011   (exit $ac_status); }; }; then
42012   ol_cv_db_db_4_dot_1=yes
42013 else
42014   echo "$as_me: failed program was:" >&5
42015 sed 's/^/| /' conftest.$ac_ext >&5
42016
42017 ol_cv_db_db_4_dot_1=no
42018 fi
42019 rm -f conftest.err conftest.$ac_objext \
42020       conftest$ac_exeext conftest.$ac_ext
42021
42022         LIBS="$ol_LIBS"
42023
42024 fi
42025 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42026 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42027
42028         if test $ol_cv_db_db_4_dot_1 = yes ; then
42029                 ol_cv_lib_db=-ldb-4.1
42030         fi
42031 fi
42032
42033 if test $ol_cv_lib_db = no ; then
42034         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42035 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42036 if test "${ol_cv_db_db_4_1+set}" = set; then
42037   echo $ECHO_N "(cached) $ECHO_C" >&6
42038 else
42039
42040         ol_DB_LIB=-ldb-4-1
42041         ol_LIBS=$LIBS
42042         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42043
42044         cat >conftest.$ac_ext <<_ACEOF
42045 /* confdefs.h.  */
42046 _ACEOF
42047 cat confdefs.h >>conftest.$ac_ext
42048 cat >>conftest.$ac_ext <<_ACEOF
42049 /* end confdefs.h.  */
42050
42051 #ifdef HAVE_DB_185_H
42052 # include <db_185.h>
42053 #else
42054 # include <db.h>
42055 #endif
42056
42057 #ifndef DB_VERSION_MAJOR
42058 # define DB_VERSION_MAJOR 1
42059 #endif
42060
42061 #ifndef NULL
42062 #define NULL ((void*)0)
42063 #endif
42064
42065 int
42066 main ()
42067 {
42068
42069 #if DB_VERSION_MAJOR > 1
42070         {
42071                 char *version;
42072                 int major, minor, patch;
42073
42074                 version = db_version( &major, &minor, &patch );
42075
42076                 if( major != DB_VERSION_MAJOR ||
42077                         minor < DB_VERSION_MINOR )
42078                 {
42079                         printf("Berkeley DB version mismatch\n"
42080                                 "\theader: %s\n\tlibrary: %s\n",
42081                                 DB_VERSION_STRING, version);
42082                         return 1;
42083                 }
42084         }
42085 #endif
42086
42087 #if DB_VERSION_MAJOR > 2
42088         db_env_create( NULL, 0 );
42089 #elif DB_VERSION_MAJOR > 1
42090         db_appexit( NULL );
42091 #else
42092         (void) dbopen( NULL, 0, 0, 0, NULL);
42093 #endif
42094
42095   ;
42096   return 0;
42097 }
42098 _ACEOF
42099 rm -f conftest.$ac_objext conftest$ac_exeext
42100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42101   (eval $ac_link) 2>conftest.er1
42102   ac_status=$?
42103   grep -v '^ *+' conftest.er1 >conftest.err
42104   rm -f conftest.er1
42105   cat conftest.err >&5
42106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107   (exit $ac_status); } &&
42108          { ac_try='test -z "$ac_c_werror_flag"
42109                          || test ! -s conftest.err'
42110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42111   (eval $ac_try) 2>&5
42112   ac_status=$?
42113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42114   (exit $ac_status); }; } &&
42115          { ac_try='test -s conftest$ac_exeext'
42116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42117   (eval $ac_try) 2>&5
42118   ac_status=$?
42119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120   (exit $ac_status); }; }; then
42121   ol_cv_db_db_4_1=yes
42122 else
42123   echo "$as_me: failed program was:" >&5
42124 sed 's/^/| /' conftest.$ac_ext >&5
42125
42126 ol_cv_db_db_4_1=no
42127 fi
42128 rm -f conftest.err conftest.$ac_objext \
42129       conftest$ac_exeext conftest.$ac_ext
42130
42131         LIBS="$ol_LIBS"
42132
42133 fi
42134 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42135 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42136
42137         if test $ol_cv_db_db_4_1 = yes ; then
42138                 ol_cv_lib_db=-ldb-4-1
42139         fi
42140 fi
42141
42142 if test $ol_cv_lib_db = no ; then
42143         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42144 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42145 if test "${ol_cv_db_db3+set}" = set; then
42146   echo $ECHO_N "(cached) $ECHO_C" >&6
42147 else
42148
42149         ol_DB_LIB=-ldb3
42150         ol_LIBS=$LIBS
42151         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42152
42153         cat >conftest.$ac_ext <<_ACEOF
42154 /* confdefs.h.  */
42155 _ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h.  */
42159
42160 #ifdef HAVE_DB_185_H
42161 # include <db_185.h>
42162 #else
42163 # include <db.h>
42164 #endif
42165
42166 #ifndef DB_VERSION_MAJOR
42167 # define DB_VERSION_MAJOR 1
42168 #endif
42169
42170 #ifndef NULL
42171 #define NULL ((void*)0)
42172 #endif
42173
42174 int
42175 main ()
42176 {
42177
42178 #if DB_VERSION_MAJOR > 1
42179         {
42180                 char *version;
42181                 int major, minor, patch;
42182
42183                 version = db_version( &major, &minor, &patch );
42184
42185                 if( major != DB_VERSION_MAJOR ||
42186                         minor < DB_VERSION_MINOR )
42187                 {
42188                         printf("Berkeley DB version mismatch\n"
42189                                 "\theader: %s\n\tlibrary: %s\n",
42190                                 DB_VERSION_STRING, version);
42191                         return 1;
42192                 }
42193         }
42194 #endif
42195
42196 #if DB_VERSION_MAJOR > 2
42197         db_env_create( NULL, 0 );
42198 #elif DB_VERSION_MAJOR > 1
42199         db_appexit( NULL );
42200 #else
42201         (void) dbopen( NULL, 0, 0, 0, NULL);
42202 #endif
42203
42204   ;
42205   return 0;
42206 }
42207 _ACEOF
42208 rm -f conftest.$ac_objext conftest$ac_exeext
42209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42210   (eval $ac_link) 2>conftest.er1
42211   ac_status=$?
42212   grep -v '^ *+' conftest.er1 >conftest.err
42213   rm -f conftest.er1
42214   cat conftest.err >&5
42215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42216   (exit $ac_status); } &&
42217          { ac_try='test -z "$ac_c_werror_flag"
42218                          || test ! -s conftest.err'
42219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42220   (eval $ac_try) 2>&5
42221   ac_status=$?
42222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42223   (exit $ac_status); }; } &&
42224          { ac_try='test -s conftest$ac_exeext'
42225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42226   (eval $ac_try) 2>&5
42227   ac_status=$?
42228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42229   (exit $ac_status); }; }; then
42230   ol_cv_db_db3=yes
42231 else
42232   echo "$as_me: failed program was:" >&5
42233 sed 's/^/| /' conftest.$ac_ext >&5
42234
42235 ol_cv_db_db3=no
42236 fi
42237 rm -f conftest.err conftest.$ac_objext \
42238       conftest$ac_exeext conftest.$ac_ext
42239
42240         LIBS="$ol_LIBS"
42241
42242 fi
42243 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42244 echo "${ECHO_T}$ol_cv_db_db3" >&6
42245
42246         if test $ol_cv_db_db3 = yes ; then
42247                 ol_cv_lib_db=-ldb3
42248         fi
42249 fi
42250
42251 if test $ol_cv_lib_db = no ; then
42252         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42253 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42254 if test "${ol_cv_db_db_3+set}" = set; then
42255   echo $ECHO_N "(cached) $ECHO_C" >&6
42256 else
42257
42258         ol_DB_LIB=-ldb-3
42259         ol_LIBS=$LIBS
42260         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42261
42262         cat >conftest.$ac_ext <<_ACEOF
42263 /* confdefs.h.  */
42264 _ACEOF
42265 cat confdefs.h >>conftest.$ac_ext
42266 cat >>conftest.$ac_ext <<_ACEOF
42267 /* end confdefs.h.  */
42268
42269 #ifdef HAVE_DB_185_H
42270 # include <db_185.h>
42271 #else
42272 # include <db.h>
42273 #endif
42274
42275 #ifndef DB_VERSION_MAJOR
42276 # define DB_VERSION_MAJOR 1
42277 #endif
42278
42279 #ifndef NULL
42280 #define NULL ((void*)0)
42281 #endif
42282
42283 int
42284 main ()
42285 {
42286
42287 #if DB_VERSION_MAJOR > 1
42288         {
42289                 char *version;
42290                 int major, minor, patch;
42291
42292                 version = db_version( &major, &minor, &patch );
42293
42294                 if( major != DB_VERSION_MAJOR ||
42295                         minor < DB_VERSION_MINOR )
42296                 {
42297                         printf("Berkeley DB version mismatch\n"
42298                                 "\theader: %s\n\tlibrary: %s\n",
42299                                 DB_VERSION_STRING, version);
42300                         return 1;
42301                 }
42302         }
42303 #endif
42304
42305 #if DB_VERSION_MAJOR > 2
42306         db_env_create( NULL, 0 );
42307 #elif DB_VERSION_MAJOR > 1
42308         db_appexit( NULL );
42309 #else
42310         (void) dbopen( NULL, 0, 0, 0, NULL);
42311 #endif
42312
42313   ;
42314   return 0;
42315 }
42316 _ACEOF
42317 rm -f conftest.$ac_objext conftest$ac_exeext
42318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42319   (eval $ac_link) 2>conftest.er1
42320   ac_status=$?
42321   grep -v '^ *+' conftest.er1 >conftest.err
42322   rm -f conftest.er1
42323   cat conftest.err >&5
42324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325   (exit $ac_status); } &&
42326          { ac_try='test -z "$ac_c_werror_flag"
42327                          || test ! -s conftest.err'
42328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42329   (eval $ac_try) 2>&5
42330   ac_status=$?
42331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42332   (exit $ac_status); }; } &&
42333          { ac_try='test -s conftest$ac_exeext'
42334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42335   (eval $ac_try) 2>&5
42336   ac_status=$?
42337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42338   (exit $ac_status); }; }; then
42339   ol_cv_db_db_3=yes
42340 else
42341   echo "$as_me: failed program was:" >&5
42342 sed 's/^/| /' conftest.$ac_ext >&5
42343
42344 ol_cv_db_db_3=no
42345 fi
42346 rm -f conftest.err conftest.$ac_objext \
42347       conftest$ac_exeext conftest.$ac_ext
42348
42349         LIBS="$ol_LIBS"
42350
42351 fi
42352 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42353 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42354
42355         if test $ol_cv_db_db_3 = yes ; then
42356                 ol_cv_lib_db=-ldb-3
42357         fi
42358 fi
42359
42360 if test $ol_cv_lib_db = no ; then
42361         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42362 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42363 if test "${ol_cv_db_db2+set}" = set; then
42364   echo $ECHO_N "(cached) $ECHO_C" >&6
42365 else
42366
42367         ol_DB_LIB=-ldb2
42368         ol_LIBS=$LIBS
42369         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42370
42371         cat >conftest.$ac_ext <<_ACEOF
42372 /* confdefs.h.  */
42373 _ACEOF
42374 cat confdefs.h >>conftest.$ac_ext
42375 cat >>conftest.$ac_ext <<_ACEOF
42376 /* end confdefs.h.  */
42377
42378 #ifdef HAVE_DB_185_H
42379 # include <db_185.h>
42380 #else
42381 # include <db.h>
42382 #endif
42383
42384 #ifndef DB_VERSION_MAJOR
42385 # define DB_VERSION_MAJOR 1
42386 #endif
42387
42388 #ifndef NULL
42389 #define NULL ((void*)0)
42390 #endif
42391
42392 int
42393 main ()
42394 {
42395
42396 #if DB_VERSION_MAJOR > 1
42397         {
42398                 char *version;
42399                 int major, minor, patch;
42400
42401                 version = db_version( &major, &minor, &patch );
42402
42403                 if( major != DB_VERSION_MAJOR ||
42404                         minor < DB_VERSION_MINOR )
42405                 {
42406                         printf("Berkeley DB version mismatch\n"
42407                                 "\theader: %s\n\tlibrary: %s\n",
42408                                 DB_VERSION_STRING, version);
42409                         return 1;
42410                 }
42411         }
42412 #endif
42413
42414 #if DB_VERSION_MAJOR > 2
42415         db_env_create( NULL, 0 );
42416 #elif DB_VERSION_MAJOR > 1
42417         db_appexit( NULL );
42418 #else
42419         (void) dbopen( NULL, 0, 0, 0, NULL);
42420 #endif
42421
42422   ;
42423   return 0;
42424 }
42425 _ACEOF
42426 rm -f conftest.$ac_objext conftest$ac_exeext
42427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42428   (eval $ac_link) 2>conftest.er1
42429   ac_status=$?
42430   grep -v '^ *+' conftest.er1 >conftest.err
42431   rm -f conftest.er1
42432   cat conftest.err >&5
42433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42434   (exit $ac_status); } &&
42435          { ac_try='test -z "$ac_c_werror_flag"
42436                          || test ! -s conftest.err'
42437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42438   (eval $ac_try) 2>&5
42439   ac_status=$?
42440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42441   (exit $ac_status); }; } &&
42442          { ac_try='test -s conftest$ac_exeext'
42443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444   (eval $ac_try) 2>&5
42445   ac_status=$?
42446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447   (exit $ac_status); }; }; then
42448   ol_cv_db_db2=yes
42449 else
42450   echo "$as_me: failed program was:" >&5
42451 sed 's/^/| /' conftest.$ac_ext >&5
42452
42453 ol_cv_db_db2=no
42454 fi
42455 rm -f conftest.err conftest.$ac_objext \
42456       conftest$ac_exeext conftest.$ac_ext
42457
42458         LIBS="$ol_LIBS"
42459
42460 fi
42461 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42462 echo "${ECHO_T}$ol_cv_db_db2" >&6
42463
42464         if test $ol_cv_db_db2 = yes ; then
42465                 ol_cv_lib_db=-ldb2
42466         fi
42467 fi
42468
42469 if test $ol_cv_lib_db = no ; then
42470         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42471 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42472 if test "${ol_cv_db_db_2+set}" = set; then
42473   echo $ECHO_N "(cached) $ECHO_C" >&6
42474 else
42475
42476         ol_DB_LIB=-ldb-2
42477         ol_LIBS=$LIBS
42478         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42479
42480         cat >conftest.$ac_ext <<_ACEOF
42481 /* confdefs.h.  */
42482 _ACEOF
42483 cat confdefs.h >>conftest.$ac_ext
42484 cat >>conftest.$ac_ext <<_ACEOF
42485 /* end confdefs.h.  */
42486
42487 #ifdef HAVE_DB_185_H
42488 # include <db_185.h>
42489 #else
42490 # include <db.h>
42491 #endif
42492
42493 #ifndef DB_VERSION_MAJOR
42494 # define DB_VERSION_MAJOR 1
42495 #endif
42496
42497 #ifndef NULL
42498 #define NULL ((void*)0)
42499 #endif
42500
42501 int
42502 main ()
42503 {
42504
42505 #if DB_VERSION_MAJOR > 1
42506         {
42507                 char *version;
42508                 int major, minor, patch;
42509
42510                 version = db_version( &major, &minor, &patch );
42511
42512                 if( major != DB_VERSION_MAJOR ||
42513                         minor < DB_VERSION_MINOR )
42514                 {
42515                         printf("Berkeley DB version mismatch\n"
42516                                 "\theader: %s\n\tlibrary: %s\n",
42517                                 DB_VERSION_STRING, version);
42518                         return 1;
42519                 }
42520         }
42521 #endif
42522
42523 #if DB_VERSION_MAJOR > 2
42524         db_env_create( NULL, 0 );
42525 #elif DB_VERSION_MAJOR > 1
42526         db_appexit( NULL );
42527 #else
42528         (void) dbopen( NULL, 0, 0, 0, NULL);
42529 #endif
42530
42531   ;
42532   return 0;
42533 }
42534 _ACEOF
42535 rm -f conftest.$ac_objext conftest$ac_exeext
42536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42537   (eval $ac_link) 2>conftest.er1
42538   ac_status=$?
42539   grep -v '^ *+' conftest.er1 >conftest.err
42540   rm -f conftest.er1
42541   cat conftest.err >&5
42542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543   (exit $ac_status); } &&
42544          { ac_try='test -z "$ac_c_werror_flag"
42545                          || test ! -s conftest.err'
42546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42547   (eval $ac_try) 2>&5
42548   ac_status=$?
42549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42550   (exit $ac_status); }; } &&
42551          { ac_try='test -s conftest$ac_exeext'
42552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42553   (eval $ac_try) 2>&5
42554   ac_status=$?
42555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556   (exit $ac_status); }; }; then
42557   ol_cv_db_db_2=yes
42558 else
42559   echo "$as_me: failed program was:" >&5
42560 sed 's/^/| /' conftest.$ac_ext >&5
42561
42562 ol_cv_db_db_2=no
42563 fi
42564 rm -f conftest.err conftest.$ac_objext \
42565       conftest$ac_exeext conftest.$ac_ext
42566
42567         LIBS="$ol_LIBS"
42568
42569 fi
42570 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42571 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42572
42573         if test $ol_cv_db_db_2 = yes ; then
42574                 ol_cv_lib_db=-ldb-2
42575         fi
42576 fi
42577
42578 if test $ol_cv_lib_db = no ; then
42579         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42580 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42581 if test "${ol_cv_db_db1+set}" = set; then
42582   echo $ECHO_N "(cached) $ECHO_C" >&6
42583 else
42584
42585         ol_DB_LIB=-ldb1
42586         ol_LIBS=$LIBS
42587         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42588
42589         cat >conftest.$ac_ext <<_ACEOF
42590 /* confdefs.h.  */
42591 _ACEOF
42592 cat confdefs.h >>conftest.$ac_ext
42593 cat >>conftest.$ac_ext <<_ACEOF
42594 /* end confdefs.h.  */
42595
42596 #ifdef HAVE_DB_185_H
42597 # include <db_185.h>
42598 #else
42599 # include <db.h>
42600 #endif
42601
42602 #ifndef DB_VERSION_MAJOR
42603 # define DB_VERSION_MAJOR 1
42604 #endif
42605
42606 #ifndef NULL
42607 #define NULL ((void*)0)
42608 #endif
42609
42610 int
42611 main ()
42612 {
42613
42614 #if DB_VERSION_MAJOR > 1
42615         {
42616                 char *version;
42617                 int major, minor, patch;
42618
42619                 version = db_version( &major, &minor, &patch );
42620
42621                 if( major != DB_VERSION_MAJOR ||
42622                         minor < DB_VERSION_MINOR )
42623                 {
42624                         printf("Berkeley DB version mismatch\n"
42625                                 "\theader: %s\n\tlibrary: %s\n",
42626                                 DB_VERSION_STRING, version);
42627                         return 1;
42628                 }
42629         }
42630 #endif
42631
42632 #if DB_VERSION_MAJOR > 2
42633         db_env_create( NULL, 0 );
42634 #elif DB_VERSION_MAJOR > 1
42635         db_appexit( NULL );
42636 #else
42637         (void) dbopen( NULL, 0, 0, 0, NULL);
42638 #endif
42639
42640   ;
42641   return 0;
42642 }
42643 _ACEOF
42644 rm -f conftest.$ac_objext conftest$ac_exeext
42645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42646   (eval $ac_link) 2>conftest.er1
42647   ac_status=$?
42648   grep -v '^ *+' conftest.er1 >conftest.err
42649   rm -f conftest.er1
42650   cat conftest.err >&5
42651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42652   (exit $ac_status); } &&
42653          { ac_try='test -z "$ac_c_werror_flag"
42654                          || test ! -s conftest.err'
42655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42656   (eval $ac_try) 2>&5
42657   ac_status=$?
42658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42659   (exit $ac_status); }; } &&
42660          { ac_try='test -s conftest$ac_exeext'
42661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42662   (eval $ac_try) 2>&5
42663   ac_status=$?
42664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665   (exit $ac_status); }; }; then
42666   ol_cv_db_db1=yes
42667 else
42668   echo "$as_me: failed program was:" >&5
42669 sed 's/^/| /' conftest.$ac_ext >&5
42670
42671 ol_cv_db_db1=no
42672 fi
42673 rm -f conftest.err conftest.$ac_objext \
42674       conftest$ac_exeext conftest.$ac_ext
42675
42676         LIBS="$ol_LIBS"
42677
42678 fi
42679 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42680 echo "${ECHO_T}$ol_cv_db_db1" >&6
42681
42682         if test $ol_cv_db_db1 = yes ; then
42683                 ol_cv_lib_db=-ldb1
42684         fi
42685 fi
42686
42687 if test $ol_cv_lib_db = no ; then
42688         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42689 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42690 if test "${ol_cv_db_db_1+set}" = set; then
42691   echo $ECHO_N "(cached) $ECHO_C" >&6
42692 else
42693
42694         ol_DB_LIB=-ldb-1
42695         ol_LIBS=$LIBS
42696         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42697
42698         cat >conftest.$ac_ext <<_ACEOF
42699 /* confdefs.h.  */
42700 _ACEOF
42701 cat confdefs.h >>conftest.$ac_ext
42702 cat >>conftest.$ac_ext <<_ACEOF
42703 /* end confdefs.h.  */
42704
42705 #ifdef HAVE_DB_185_H
42706 # include <db_185.h>
42707 #else
42708 # include <db.h>
42709 #endif
42710
42711 #ifndef DB_VERSION_MAJOR
42712 # define DB_VERSION_MAJOR 1
42713 #endif
42714
42715 #ifndef NULL
42716 #define NULL ((void*)0)
42717 #endif
42718
42719 int
42720 main ()
42721 {
42722
42723 #if DB_VERSION_MAJOR > 1
42724         {
42725                 char *version;
42726                 int major, minor, patch;
42727
42728                 version = db_version( &major, &minor, &patch );
42729
42730                 if( major != DB_VERSION_MAJOR ||
42731                         minor < DB_VERSION_MINOR )
42732                 {
42733                         printf("Berkeley DB version mismatch\n"
42734                                 "\theader: %s\n\tlibrary: %s\n",
42735                                 DB_VERSION_STRING, version);
42736                         return 1;
42737                 }
42738         }
42739 #endif
42740
42741 #if DB_VERSION_MAJOR > 2
42742         db_env_create( NULL, 0 );
42743 #elif DB_VERSION_MAJOR > 1
42744         db_appexit( NULL );
42745 #else
42746         (void) dbopen( NULL, 0, 0, 0, NULL);
42747 #endif
42748
42749   ;
42750   return 0;
42751 }
42752 _ACEOF
42753 rm -f conftest.$ac_objext conftest$ac_exeext
42754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42755   (eval $ac_link) 2>conftest.er1
42756   ac_status=$?
42757   grep -v '^ *+' conftest.er1 >conftest.err
42758   rm -f conftest.er1
42759   cat conftest.err >&5
42760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761   (exit $ac_status); } &&
42762          { ac_try='test -z "$ac_c_werror_flag"
42763                          || test ! -s conftest.err'
42764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42765   (eval $ac_try) 2>&5
42766   ac_status=$?
42767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42768   (exit $ac_status); }; } &&
42769          { ac_try='test -s conftest$ac_exeext'
42770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42771   (eval $ac_try) 2>&5
42772   ac_status=$?
42773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42774   (exit $ac_status); }; }; then
42775   ol_cv_db_db_1=yes
42776 else
42777   echo "$as_me: failed program was:" >&5
42778 sed 's/^/| /' conftest.$ac_ext >&5
42779
42780 ol_cv_db_db_1=no
42781 fi
42782 rm -f conftest.err conftest.$ac_objext \
42783       conftest$ac_exeext conftest.$ac_ext
42784
42785         LIBS="$ol_LIBS"
42786
42787 fi
42788 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42789 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42790
42791         if test $ol_cv_db_db_1 = yes ; then
42792                 ol_cv_lib_db=-ldb-1
42793         fi
42794 fi
42795
42796
42797         if test "$ol_cv_lib_db" != no ; then
42798                 ol_cv_berkeley_db=yes
42799                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42800 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42801 if test "${ol_cv_berkeley_db_version+set}" = set; then
42802   echo $ECHO_N "(cached) $ECHO_C" >&6
42803 else
42804
42805         ol_LIBS="$LIBS"
42806         LIBS="$LTHREAD_LIBS $LIBS"
42807         if test $ol_cv_lib_db != yes ; then
42808                 LIBS="$ol_cv_lib_db $LIBS"
42809         fi
42810
42811         if test "$cross_compiling" = yes; then
42812   ol_cv_berkeley_db_version=cross
42813 else
42814   cat >conftest.$ac_ext <<_ACEOF
42815 /* confdefs.h.  */
42816 _ACEOF
42817 cat confdefs.h >>conftest.$ac_ext
42818 cat >>conftest.$ac_ext <<_ACEOF
42819 /* end confdefs.h.  */
42820
42821 #ifdef HAVE_DB_185_H
42822         choke me;
42823 #else
42824 #include <db.h>
42825 #endif
42826 #ifndef DB_VERSION_MAJOR
42827 # define DB_VERSION_MAJOR 1
42828 #endif
42829 #ifndef NULL
42830 #define NULL ((void *)0)
42831 #endif
42832 main()
42833 {
42834 #if DB_VERSION_MAJOR > 1
42835         char *version;
42836         int major, minor, patch;
42837
42838         version = db_version( &major, &minor, &patch );
42839
42840         if( major != DB_VERSION_MAJOR ||
42841                 minor != DB_VERSION_MINOR ||
42842                 patch != DB_VERSION_PATCH )
42843         {
42844                 printf("Berkeley DB version mismatch\n"
42845                         "\theader: %s\n\tlibrary: %s\n",
42846                         DB_VERSION_STRING, version);
42847                 return 1;
42848         }
42849 #endif
42850
42851         return 0;
42852 }
42853 _ACEOF
42854 rm -f conftest$ac_exeext
42855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42856   (eval $ac_link) 2>&5
42857   ac_status=$?
42858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42861   (eval $ac_try) 2>&5
42862   ac_status=$?
42863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42864   (exit $ac_status); }; }; then
42865   ol_cv_berkeley_db_version=yes
42866 else
42867   echo "$as_me: program exited with status $ac_status" >&5
42868 echo "$as_me: failed program was:" >&5
42869 sed 's/^/| /' conftest.$ac_ext >&5
42870
42871 ( exit $ac_status )
42872 ol_cv_berkeley_db_version=no
42873 fi
42874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42875 fi
42876
42877         LIBS="$ol_LIBS"
42878
42879 fi
42880 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42881 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42882
42883         if test $ol_cv_berkeley_db_version = no ; then
42884                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42885 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42886    { (exit 1); exit 1; }; }
42887         fi
42888
42889                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42890 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42891 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42892   echo $ECHO_N "(cached) $ECHO_C" >&6
42893 else
42894
42895         ol_LIBS="$LIBS"
42896         LIBS="$LTHREAD_LIBS $LIBS"
42897         if test $ol_cv_lib_db != yes ; then
42898                 LIBS="$ol_cv_lib_db $LIBS"
42899         fi
42900
42901         if test "$cross_compiling" = yes; then
42902   ol_cv_berkeley_db_thread=cross
42903 else
42904   cat >conftest.$ac_ext <<_ACEOF
42905 /* confdefs.h.  */
42906 _ACEOF
42907 cat confdefs.h >>conftest.$ac_ext
42908 cat >>conftest.$ac_ext <<_ACEOF
42909 /* end confdefs.h.  */
42910
42911 #ifdef HAVE_DB_185_H
42912         choke me;
42913 #else
42914 #include <db.h>
42915 #endif
42916 #ifndef NULL
42917 #define NULL ((void *)0)
42918 #endif
42919 main()
42920 {
42921         int rc;
42922         u_int32_t flags = DB_CREATE |
42923 #ifdef DB_PRIVATE
42924                 DB_PRIVATE |
42925 #endif
42926                 DB_THREAD;
42927
42928 #if DB_VERSION_MAJOR > 2
42929         DB_ENV *env = NULL;
42930
42931         rc = db_env_create( &env, 0 );
42932
42933         flags |= DB_INIT_MPOOL;
42934 #ifdef DB_MPOOL_PRIVATE
42935         flags |= DB_MPOOL_PRIVATE;
42936 #endif
42937
42938         if( rc ) {
42939                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42940                 return rc;
42941         }
42942
42943 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42944         rc = env->open( env, NULL, flags, 0 );
42945 #else
42946         rc = env->open( env, NULL, NULL, flags, 0 );
42947 #endif
42948
42949         if ( rc == 0 ) {
42950                 rc = env->close( env, 0 );
42951         }
42952
42953         if( rc ) {
42954                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42955                 return rc;
42956         }
42957
42958 #else
42959         DB_ENV env;
42960         memset( &env, '\0', sizeof(env) );
42961
42962         rc = db_appinit( NULL, NULL, &env, flags );
42963
42964         if( rc == 0 ) {
42965                 db_appexit( &env );
42966         }
42967
42968         unlink("__db_mpool.share");
42969         unlink("__db_lock.share");
42970 #endif
42971
42972         return rc;
42973 }
42974 _ACEOF
42975 rm -f conftest$ac_exeext
42976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42977   (eval $ac_link) 2>&5
42978   ac_status=$?
42979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42982   (eval $ac_try) 2>&5
42983   ac_status=$?
42984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42985   (exit $ac_status); }; }; then
42986   ol_cv_berkeley_db_thread=yes
42987 else
42988   echo "$as_me: program exited with status $ac_status" >&5
42989 echo "$as_me: failed program was:" >&5
42990 sed 's/^/| /' conftest.$ac_ext >&5
42991
42992 ( exit $ac_status )
42993 ol_cv_berkeley_db_thread=no
42994 fi
42995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42996 fi
42997
42998         LIBS="$ol_LIBS"
42999
43000 fi
43001 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43002 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43003
43004         if test $ol_cv_berkeley_db_thread != no ; then
43005
43006 cat >>confdefs.h <<\_ACEOF
43007 #define HAVE_BERKELEY_DB_THREAD 1
43008 _ACEOF
43009
43010         fi
43011
43012         fi
43013 fi
43014
43015         fi
43016
43017         if test $ol_cv_berkeley_db != no ; then
43018
43019 cat >>confdefs.h <<\_ACEOF
43020 #define HAVE_BERKELEY_DB 1
43021 _ACEOF
43022
43023
43024                 ol_link_ldbm=berkeley
43025                 ol_with_ldbm_api=berkeley
43026
43027                 if test $ol_with_ldbm_type = hash ; then
43028
43029 cat >>confdefs.h <<\_ACEOF
43030 #define LDBM_USE_DBHASH 1
43031 _ACEOF
43032
43033                 else
43034
43035 cat >>confdefs.h <<\_ACEOF
43036 #define LDBM_USE_DBBTREE 1
43037 _ACEOF
43038
43039                 fi
43040
43041                                                 if test $ol_cv_lib_db != yes ; then
43042                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43043                 fi
43044         fi
43045 fi
43046
43047 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43048         if test $ol_link_ldbm != berkeley ; then
43049                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43050 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43051    { (exit 1); exit 1; }; }
43052         else
43053                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43054 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43055 if test "${ol_cv_bdb_compat+set}" = set; then
43056   echo $ECHO_N "(cached) $ECHO_C" >&6
43057 else
43058
43059         cat >conftest.$ac_ext <<_ACEOF
43060 /* confdefs.h.  */
43061 _ACEOF
43062 cat confdefs.h >>conftest.$ac_ext
43063 cat >>conftest.$ac_ext <<_ACEOF
43064 /* end confdefs.h.  */
43065
43066 #include <db.h>
43067
43068  /* this check could be improved */
43069 #ifndef DB_VERSION_MAJOR
43070 #       define DB_VERSION_MAJOR 1
43071 #endif
43072 #ifndef DB_VERSION_MINOR
43073 #       define DB_VERSION_MINOR 0
43074 #endif
43075
43076 /* require 4.2 or later */
43077 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43078         __db_version_compat
43079 #endif
43080
43081 _ACEOF
43082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43083   $EGREP "__db_version_compat" >/dev/null 2>&1; then
43084   ol_cv_bdb_compat=yes
43085 else
43086   ol_cv_bdb_compat=no
43087 fi
43088 rm -f conftest*
43089
43090 fi
43091 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43092 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43093
43094
43095                 if test $ol_cv_bdb_compat != yes ; then
43096                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43097 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43098    { (exit 1); exit 1; }; }
43099                 fi
43100         fi
43101 fi
43102
43103 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43104         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43105 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43106         ol_with_ldbm_api=none
43107 fi
43108
43109 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43110         echo "$as_me:$LINENO: checking for MDBM library" >&5
43111 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43112 if test "${ol_cv_lib_mdbm+set}" = set; then
43113   echo $ECHO_N "(cached) $ECHO_C" >&6
43114 else
43115         ol_LIBS="$LIBS"
43116         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43117 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43118 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43119   echo $ECHO_N "(cached) $ECHO_C" >&6
43120 else
43121   cat >conftest.$ac_ext <<_ACEOF
43122 /* confdefs.h.  */
43123 _ACEOF
43124 cat confdefs.h >>conftest.$ac_ext
43125 cat >>conftest.$ac_ext <<_ACEOF
43126 /* end confdefs.h.  */
43127 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43129 #define mdbm_set_chain innocuous_mdbm_set_chain
43130
43131 /* System header to define __stub macros and hopefully few prototypes,
43132     which can conflict with char mdbm_set_chain (); below.
43133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43134     <limits.h> exists even on freestanding compilers.  */
43135
43136 #ifdef __STDC__
43137 # include <limits.h>
43138 #else
43139 # include <assert.h>
43140 #endif
43141
43142 #undef mdbm_set_chain
43143
43144 /* Override any gcc2 internal prototype to avoid an error.  */
43145 #ifdef __cplusplus
43146 extern "C"
43147 {
43148 #endif
43149 /* We use char because int might match the return type of a gcc2
43150    builtin and then its argument prototype would still apply.  */
43151 char mdbm_set_chain ();
43152 /* The GNU C library defines this for functions which it implements
43153     to always fail with ENOSYS.  Some functions are actually named
43154     something starting with __ and the normal name is an alias.  */
43155 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43156 choke me
43157 #else
43158 char (*f) () = mdbm_set_chain;
43159 #endif
43160 #ifdef __cplusplus
43161 }
43162 #endif
43163
43164 int
43165 main ()
43166 {
43167 return f != mdbm_set_chain;
43168   ;
43169   return 0;
43170 }
43171 _ACEOF
43172 rm -f conftest.$ac_objext conftest$ac_exeext
43173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43174   (eval $ac_link) 2>conftest.er1
43175   ac_status=$?
43176   grep -v '^ *+' conftest.er1 >conftest.err
43177   rm -f conftest.er1
43178   cat conftest.err >&5
43179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43180   (exit $ac_status); } &&
43181          { ac_try='test -z "$ac_c_werror_flag"
43182                          || test ! -s conftest.err'
43183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43184   (eval $ac_try) 2>&5
43185   ac_status=$?
43186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187   (exit $ac_status); }; } &&
43188          { ac_try='test -s conftest$ac_exeext'
43189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43190   (eval $ac_try) 2>&5
43191   ac_status=$?
43192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43193   (exit $ac_status); }; }; then
43194   ac_cv_func_mdbm_set_chain=yes
43195 else
43196   echo "$as_me: failed program was:" >&5
43197 sed 's/^/| /' conftest.$ac_ext >&5
43198
43199 ac_cv_func_mdbm_set_chain=no
43200 fi
43201 rm -f conftest.err conftest.$ac_objext \
43202       conftest$ac_exeext conftest.$ac_ext
43203 fi
43204 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43205 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43206 if test $ac_cv_func_mdbm_set_chain = yes; then
43207   ol_cv_lib_mdbm=yes
43208 else
43209
43210                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43211 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43212 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43213   echo $ECHO_N "(cached) $ECHO_C" >&6
43214 else
43215   ac_check_lib_save_LIBS=$LIBS
43216 LIBS="-lmdbm  $LIBS"
43217 cat >conftest.$ac_ext <<_ACEOF
43218 /* confdefs.h.  */
43219 _ACEOF
43220 cat confdefs.h >>conftest.$ac_ext
43221 cat >>conftest.$ac_ext <<_ACEOF
43222 /* end confdefs.h.  */
43223
43224 /* Override any gcc2 internal prototype to avoid an error.  */
43225 #ifdef __cplusplus
43226 extern "C"
43227 #endif
43228 /* We use char because int might match the return type of a gcc2
43229    builtin and then its argument prototype would still apply.  */
43230 char mdbm_set_chain ();
43231 int
43232 main ()
43233 {
43234 mdbm_set_chain ();
43235   ;
43236   return 0;
43237 }
43238 _ACEOF
43239 rm -f conftest.$ac_objext conftest$ac_exeext
43240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43241   (eval $ac_link) 2>conftest.er1
43242   ac_status=$?
43243   grep -v '^ *+' conftest.er1 >conftest.err
43244   rm -f conftest.er1
43245   cat conftest.err >&5
43246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43247   (exit $ac_status); } &&
43248          { ac_try='test -z "$ac_c_werror_flag"
43249                          || test ! -s conftest.err'
43250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43251   (eval $ac_try) 2>&5
43252   ac_status=$?
43253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43254   (exit $ac_status); }; } &&
43255          { ac_try='test -s conftest$ac_exeext'
43256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43257   (eval $ac_try) 2>&5
43258   ac_status=$?
43259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43260   (exit $ac_status); }; }; then
43261   ac_cv_lib_mdbm_mdbm_set_chain=yes
43262 else
43263   echo "$as_me: failed program was:" >&5
43264 sed 's/^/| /' conftest.$ac_ext >&5
43265
43266 ac_cv_lib_mdbm_mdbm_set_chain=no
43267 fi
43268 rm -f conftest.err conftest.$ac_objext \
43269       conftest$ac_exeext conftest.$ac_ext
43270 LIBS=$ac_check_lib_save_LIBS
43271 fi
43272 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43273 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43274 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43275   ol_cv_lib_mdbm=-lmdbm
43276 else
43277   ol_cv_lib_mdbm=no
43278 fi
43279
43280
43281 fi
43282
43283         LIBS="$ol_LIBS"
43284
43285 fi
43286 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43287 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43288
43289
43290
43291 for ac_header in mdbm.h
43292 do
43293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43295   echo "$as_me:$LINENO: checking for $ac_header" >&5
43296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43298   echo $ECHO_N "(cached) $ECHO_C" >&6
43299 fi
43300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43302 else
43303   # Is the header compilable?
43304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43306 cat >conftest.$ac_ext <<_ACEOF
43307 /* confdefs.h.  */
43308 _ACEOF
43309 cat confdefs.h >>conftest.$ac_ext
43310 cat >>conftest.$ac_ext <<_ACEOF
43311 /* end confdefs.h.  */
43312 $ac_includes_default
43313 #include <$ac_header>
43314 _ACEOF
43315 rm -f conftest.$ac_objext
43316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43317   (eval $ac_compile) 2>conftest.er1
43318   ac_status=$?
43319   grep -v '^ *+' conftest.er1 >conftest.err
43320   rm -f conftest.er1
43321   cat conftest.err >&5
43322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323   (exit $ac_status); } &&
43324          { ac_try='test -z "$ac_c_werror_flag"
43325                          || test ! -s conftest.err'
43326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43327   (eval $ac_try) 2>&5
43328   ac_status=$?
43329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43330   (exit $ac_status); }; } &&
43331          { ac_try='test -s conftest.$ac_objext'
43332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43333   (eval $ac_try) 2>&5
43334   ac_status=$?
43335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43336   (exit $ac_status); }; }; then
43337   ac_header_compiler=yes
43338 else
43339   echo "$as_me: failed program was:" >&5
43340 sed 's/^/| /' conftest.$ac_ext >&5
43341
43342 ac_header_compiler=no
43343 fi
43344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43346 echo "${ECHO_T}$ac_header_compiler" >&6
43347
43348 # Is the header present?
43349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43351 cat >conftest.$ac_ext <<_ACEOF
43352 /* confdefs.h.  */
43353 _ACEOF
43354 cat confdefs.h >>conftest.$ac_ext
43355 cat >>conftest.$ac_ext <<_ACEOF
43356 /* end confdefs.h.  */
43357 #include <$ac_header>
43358 _ACEOF
43359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43361   ac_status=$?
43362   grep -v '^ *+' conftest.er1 >conftest.err
43363   rm -f conftest.er1
43364   cat conftest.err >&5
43365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43366   (exit $ac_status); } >/dev/null; then
43367   if test -s conftest.err; then
43368     ac_cpp_err=$ac_c_preproc_warn_flag
43369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43370   else
43371     ac_cpp_err=
43372   fi
43373 else
43374   ac_cpp_err=yes
43375 fi
43376 if test -z "$ac_cpp_err"; then
43377   ac_header_preproc=yes
43378 else
43379   echo "$as_me: failed program was:" >&5
43380 sed 's/^/| /' conftest.$ac_ext >&5
43381
43382   ac_header_preproc=no
43383 fi
43384 rm -f conftest.err conftest.$ac_ext
43385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43386 echo "${ECHO_T}$ac_header_preproc" >&6
43387
43388 # So?  What about this header?
43389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43390   yes:no: )
43391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43395     ac_header_preproc=yes
43396     ;;
43397   no:yes:* )
43398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43410     (
43411       cat <<\_ASBOX
43412 ## ------------------------------------------ ##
43413 ## Report this to the AC_PACKAGE_NAME lists.  ##
43414 ## ------------------------------------------ ##
43415 _ASBOX
43416     ) |
43417       sed "s/^/$as_me: WARNING:     /" >&2
43418     ;;
43419 esac
43420 echo "$as_me:$LINENO: checking for $ac_header" >&5
43421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43423   echo $ECHO_N "(cached) $ECHO_C" >&6
43424 else
43425   eval "$as_ac_Header=\$ac_header_preproc"
43426 fi
43427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43429
43430 fi
43431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43432   cat >>confdefs.h <<_ACEOF
43433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43434 _ACEOF
43435
43436 fi
43437
43438 done
43439
43440  echo "$as_me:$LINENO: checking for db" >&5
43441 echo $ECHO_N "checking for db... $ECHO_C" >&6
43442 if test "${ol_cv_mdbm+set}" = set; then
43443   echo $ECHO_N "(cached) $ECHO_C" >&6
43444 else
43445
43446         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43447                 ol_cv_mdbm=no
43448         else
43449                 ol_cv_mdbm=yes
43450         fi
43451
43452 fi
43453 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43454 echo "${ECHO_T}$ol_cv_mdbm" >&6
43455  if test $ol_cv_mdbm = yes ; then
43456
43457 cat >>confdefs.h <<\_ACEOF
43458 #define HAVE_MDBM 1
43459 _ACEOF
43460
43461  fi
43462
43463
43464         if test $ol_cv_mdbm = yes ; then
43465                 ol_link_ldbm=mdbm
43466                 ol_with_ldbm_api=mdbm
43467                 if test $ol_cv_lib_mdbm != yes ; then
43468                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43469                 fi
43470         fi
43471 fi
43472
43473 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43474         echo "$as_me:$LINENO: checking for GDBM library" >&5
43475 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43476 if test "${ol_cv_lib_gdbm+set}" = set; then
43477   echo $ECHO_N "(cached) $ECHO_C" >&6
43478 else
43479         ol_LIBS="$LIBS"
43480         echo "$as_me:$LINENO: checking for gdbm_open" >&5
43481 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43482 if test "${ac_cv_func_gdbm_open+set}" = set; then
43483   echo $ECHO_N "(cached) $ECHO_C" >&6
43484 else
43485   cat >conftest.$ac_ext <<_ACEOF
43486 /* confdefs.h.  */
43487 _ACEOF
43488 cat confdefs.h >>conftest.$ac_ext
43489 cat >>conftest.$ac_ext <<_ACEOF
43490 /* end confdefs.h.  */
43491 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43493 #define gdbm_open innocuous_gdbm_open
43494
43495 /* System header to define __stub macros and hopefully few prototypes,
43496     which can conflict with char gdbm_open (); below.
43497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43498     <limits.h> exists even on freestanding compilers.  */
43499
43500 #ifdef __STDC__
43501 # include <limits.h>
43502 #else
43503 # include <assert.h>
43504 #endif
43505
43506 #undef gdbm_open
43507
43508 /* Override any gcc2 internal prototype to avoid an error.  */
43509 #ifdef __cplusplus
43510 extern "C"
43511 {
43512 #endif
43513 /* We use char because int might match the return type of a gcc2
43514    builtin and then its argument prototype would still apply.  */
43515 char gdbm_open ();
43516 /* The GNU C library defines this for functions which it implements
43517     to always fail with ENOSYS.  Some functions are actually named
43518     something starting with __ and the normal name is an alias.  */
43519 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43520 choke me
43521 #else
43522 char (*f) () = gdbm_open;
43523 #endif
43524 #ifdef __cplusplus
43525 }
43526 #endif
43527
43528 int
43529 main ()
43530 {
43531 return f != gdbm_open;
43532   ;
43533   return 0;
43534 }
43535 _ACEOF
43536 rm -f conftest.$ac_objext conftest$ac_exeext
43537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43538   (eval $ac_link) 2>conftest.er1
43539   ac_status=$?
43540   grep -v '^ *+' conftest.er1 >conftest.err
43541   rm -f conftest.er1
43542   cat conftest.err >&5
43543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43544   (exit $ac_status); } &&
43545          { ac_try='test -z "$ac_c_werror_flag"
43546                          || test ! -s conftest.err'
43547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548   (eval $ac_try) 2>&5
43549   ac_status=$?
43550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551   (exit $ac_status); }; } &&
43552          { ac_try='test -s conftest$ac_exeext'
43553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43554   (eval $ac_try) 2>&5
43555   ac_status=$?
43556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557   (exit $ac_status); }; }; then
43558   ac_cv_func_gdbm_open=yes
43559 else
43560   echo "$as_me: failed program was:" >&5
43561 sed 's/^/| /' conftest.$ac_ext >&5
43562
43563 ac_cv_func_gdbm_open=no
43564 fi
43565 rm -f conftest.err conftest.$ac_objext \
43566       conftest$ac_exeext conftest.$ac_ext
43567 fi
43568 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43569 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43570 if test $ac_cv_func_gdbm_open = yes; then
43571   ol_cv_lib_gdbm=yes
43572 else
43573
43574                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43575 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43576 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43577   echo $ECHO_N "(cached) $ECHO_C" >&6
43578 else
43579   ac_check_lib_save_LIBS=$LIBS
43580 LIBS="-lgdbm  $LIBS"
43581 cat >conftest.$ac_ext <<_ACEOF
43582 /* confdefs.h.  */
43583 _ACEOF
43584 cat confdefs.h >>conftest.$ac_ext
43585 cat >>conftest.$ac_ext <<_ACEOF
43586 /* end confdefs.h.  */
43587
43588 /* Override any gcc2 internal prototype to avoid an error.  */
43589 #ifdef __cplusplus
43590 extern "C"
43591 #endif
43592 /* We use char because int might match the return type of a gcc2
43593    builtin and then its argument prototype would still apply.  */
43594 char gdbm_open ();
43595 int
43596 main ()
43597 {
43598 gdbm_open ();
43599   ;
43600   return 0;
43601 }
43602 _ACEOF
43603 rm -f conftest.$ac_objext conftest$ac_exeext
43604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43605   (eval $ac_link) 2>conftest.er1
43606   ac_status=$?
43607   grep -v '^ *+' conftest.er1 >conftest.err
43608   rm -f conftest.er1
43609   cat conftest.err >&5
43610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611   (exit $ac_status); } &&
43612          { ac_try='test -z "$ac_c_werror_flag"
43613                          || test ! -s conftest.err'
43614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615   (eval $ac_try) 2>&5
43616   ac_status=$?
43617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618   (exit $ac_status); }; } &&
43619          { ac_try='test -s conftest$ac_exeext'
43620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43621   (eval $ac_try) 2>&5
43622   ac_status=$?
43623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43624   (exit $ac_status); }; }; then
43625   ac_cv_lib_gdbm_gdbm_open=yes
43626 else
43627   echo "$as_me: failed program was:" >&5
43628 sed 's/^/| /' conftest.$ac_ext >&5
43629
43630 ac_cv_lib_gdbm_gdbm_open=no
43631 fi
43632 rm -f conftest.err conftest.$ac_objext \
43633       conftest$ac_exeext conftest.$ac_ext
43634 LIBS=$ac_check_lib_save_LIBS
43635 fi
43636 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43637 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43638 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43639   ol_cv_lib_gdbm=-lgdbm
43640 else
43641   ol_cv_lib_gdbm=no
43642 fi
43643
43644
43645 fi
43646
43647         LIBS="$ol_LIBS"
43648
43649 fi
43650 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43651 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43652
43653
43654
43655 for ac_header in gdbm.h
43656 do
43657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43659   echo "$as_me:$LINENO: checking for $ac_header" >&5
43660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43662   echo $ECHO_N "(cached) $ECHO_C" >&6
43663 fi
43664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43666 else
43667   # Is the header compilable?
43668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43670 cat >conftest.$ac_ext <<_ACEOF
43671 /* confdefs.h.  */
43672 _ACEOF
43673 cat confdefs.h >>conftest.$ac_ext
43674 cat >>conftest.$ac_ext <<_ACEOF
43675 /* end confdefs.h.  */
43676 $ac_includes_default
43677 #include <$ac_header>
43678 _ACEOF
43679 rm -f conftest.$ac_objext
43680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43681   (eval $ac_compile) 2>conftest.er1
43682   ac_status=$?
43683   grep -v '^ *+' conftest.er1 >conftest.err
43684   rm -f conftest.er1
43685   cat conftest.err >&5
43686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687   (exit $ac_status); } &&
43688          { ac_try='test -z "$ac_c_werror_flag"
43689                          || test ! -s conftest.err'
43690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43691   (eval $ac_try) 2>&5
43692   ac_status=$?
43693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694   (exit $ac_status); }; } &&
43695          { ac_try='test -s conftest.$ac_objext'
43696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43697   (eval $ac_try) 2>&5
43698   ac_status=$?
43699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700   (exit $ac_status); }; }; then
43701   ac_header_compiler=yes
43702 else
43703   echo "$as_me: failed program was:" >&5
43704 sed 's/^/| /' conftest.$ac_ext >&5
43705
43706 ac_header_compiler=no
43707 fi
43708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43710 echo "${ECHO_T}$ac_header_compiler" >&6
43711
43712 # Is the header present?
43713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43715 cat >conftest.$ac_ext <<_ACEOF
43716 /* confdefs.h.  */
43717 _ACEOF
43718 cat confdefs.h >>conftest.$ac_ext
43719 cat >>conftest.$ac_ext <<_ACEOF
43720 /* end confdefs.h.  */
43721 #include <$ac_header>
43722 _ACEOF
43723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43725   ac_status=$?
43726   grep -v '^ *+' conftest.er1 >conftest.err
43727   rm -f conftest.er1
43728   cat conftest.err >&5
43729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43730   (exit $ac_status); } >/dev/null; then
43731   if test -s conftest.err; then
43732     ac_cpp_err=$ac_c_preproc_warn_flag
43733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43734   else
43735     ac_cpp_err=
43736   fi
43737 else
43738   ac_cpp_err=yes
43739 fi
43740 if test -z "$ac_cpp_err"; then
43741   ac_header_preproc=yes
43742 else
43743   echo "$as_me: failed program was:" >&5
43744 sed 's/^/| /' conftest.$ac_ext >&5
43745
43746   ac_header_preproc=no
43747 fi
43748 rm -f conftest.err conftest.$ac_ext
43749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43750 echo "${ECHO_T}$ac_header_preproc" >&6
43751
43752 # So?  What about this header?
43753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43754   yes:no: )
43755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43759     ac_header_preproc=yes
43760     ;;
43761   no:yes:* )
43762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43774     (
43775       cat <<\_ASBOX
43776 ## ------------------------------------------ ##
43777 ## Report this to the AC_PACKAGE_NAME lists.  ##
43778 ## ------------------------------------------ ##
43779 _ASBOX
43780     ) |
43781       sed "s/^/$as_me: WARNING:     /" >&2
43782     ;;
43783 esac
43784 echo "$as_me:$LINENO: checking for $ac_header" >&5
43785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43787   echo $ECHO_N "(cached) $ECHO_C" >&6
43788 else
43789   eval "$as_ac_Header=\$ac_header_preproc"
43790 fi
43791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43793
43794 fi
43795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43796   cat >>confdefs.h <<_ACEOF
43797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43798 _ACEOF
43799
43800 fi
43801
43802 done
43803
43804  echo "$as_me:$LINENO: checking for db" >&5
43805 echo $ECHO_N "checking for db... $ECHO_C" >&6
43806 if test "${ol_cv_gdbm+set}" = set; then
43807   echo $ECHO_N "(cached) $ECHO_C" >&6
43808 else
43809
43810         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43811                 ol_cv_gdbm=no
43812         else
43813                 ol_cv_gdbm=yes
43814         fi
43815
43816 fi
43817 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43818 echo "${ECHO_T}$ol_cv_gdbm" >&6
43819  if test $ol_cv_gdbm = yes ; then
43820
43821 cat >>confdefs.h <<\_ACEOF
43822 #define HAVE_GDBM 1
43823 _ACEOF
43824
43825  fi
43826
43827
43828         if test $ol_cv_gdbm = yes ; then
43829                 ol_link_ldbm=gdbm
43830                 ol_with_ldbm_api=gdbm
43831
43832                 if test $ol_cv_lib_gdbm != yes ; then
43833                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43834                 fi
43835         fi
43836 fi
43837
43838 if test $ol_with_ldbm_api = ndbm ; then
43839         echo "$as_me:$LINENO: checking for NDBM library" >&5
43840 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43841 if test "${ol_cv_lib_ndbm+set}" = set; then
43842   echo $ECHO_N "(cached) $ECHO_C" >&6
43843 else
43844         ol_LIBS="$LIBS"
43845         echo "$as_me:$LINENO: checking for dbm_open" >&5
43846 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43847 if test "${ac_cv_func_dbm_open+set}" = set; then
43848   echo $ECHO_N "(cached) $ECHO_C" >&6
43849 else
43850   cat >conftest.$ac_ext <<_ACEOF
43851 /* confdefs.h.  */
43852 _ACEOF
43853 cat confdefs.h >>conftest.$ac_ext
43854 cat >>conftest.$ac_ext <<_ACEOF
43855 /* end confdefs.h.  */
43856 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43858 #define dbm_open innocuous_dbm_open
43859
43860 /* System header to define __stub macros and hopefully few prototypes,
43861     which can conflict with char dbm_open (); below.
43862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43863     <limits.h> exists even on freestanding compilers.  */
43864
43865 #ifdef __STDC__
43866 # include <limits.h>
43867 #else
43868 # include <assert.h>
43869 #endif
43870
43871 #undef dbm_open
43872
43873 /* Override any gcc2 internal prototype to avoid an error.  */
43874 #ifdef __cplusplus
43875 extern "C"
43876 {
43877 #endif
43878 /* We use char because int might match the return type of a gcc2
43879    builtin and then its argument prototype would still apply.  */
43880 char dbm_open ();
43881 /* The GNU C library defines this for functions which it implements
43882     to always fail with ENOSYS.  Some functions are actually named
43883     something starting with __ and the normal name is an alias.  */
43884 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43885 choke me
43886 #else
43887 char (*f) () = dbm_open;
43888 #endif
43889 #ifdef __cplusplus
43890 }
43891 #endif
43892
43893 int
43894 main ()
43895 {
43896 return f != dbm_open;
43897   ;
43898   return 0;
43899 }
43900 _ACEOF
43901 rm -f conftest.$ac_objext conftest$ac_exeext
43902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43903   (eval $ac_link) 2>conftest.er1
43904   ac_status=$?
43905   grep -v '^ *+' conftest.er1 >conftest.err
43906   rm -f conftest.er1
43907   cat conftest.err >&5
43908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43909   (exit $ac_status); } &&
43910          { ac_try='test -z "$ac_c_werror_flag"
43911                          || test ! -s conftest.err'
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); }; } &&
43917          { ac_try='test -s conftest$ac_exeext'
43918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43919   (eval $ac_try) 2>&5
43920   ac_status=$?
43921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922   (exit $ac_status); }; }; then
43923   ac_cv_func_dbm_open=yes
43924 else
43925   echo "$as_me: failed program was:" >&5
43926 sed 's/^/| /' conftest.$ac_ext >&5
43927
43928 ac_cv_func_dbm_open=no
43929 fi
43930 rm -f conftest.err conftest.$ac_objext \
43931       conftest$ac_exeext conftest.$ac_ext
43932 fi
43933 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43934 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43935 if test $ac_cv_func_dbm_open = yes; then
43936   ol_cv_lib_ndbm=yes
43937 else
43938
43939                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43940 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43941 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43942   echo $ECHO_N "(cached) $ECHO_C" >&6
43943 else
43944   ac_check_lib_save_LIBS=$LIBS
43945 LIBS="-lndbm  $LIBS"
43946 cat >conftest.$ac_ext <<_ACEOF
43947 /* confdefs.h.  */
43948 _ACEOF
43949 cat confdefs.h >>conftest.$ac_ext
43950 cat >>conftest.$ac_ext <<_ACEOF
43951 /* end confdefs.h.  */
43952
43953 /* Override any gcc2 internal prototype to avoid an error.  */
43954 #ifdef __cplusplus
43955 extern "C"
43956 #endif
43957 /* We use char because int might match the return type of a gcc2
43958    builtin and then its argument prototype would still apply.  */
43959 char dbm_open ();
43960 int
43961 main ()
43962 {
43963 dbm_open ();
43964   ;
43965   return 0;
43966 }
43967 _ACEOF
43968 rm -f conftest.$ac_objext conftest$ac_exeext
43969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43970   (eval $ac_link) 2>conftest.er1
43971   ac_status=$?
43972   grep -v '^ *+' conftest.er1 >conftest.err
43973   rm -f conftest.er1
43974   cat conftest.err >&5
43975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976   (exit $ac_status); } &&
43977          { ac_try='test -z "$ac_c_werror_flag"
43978                          || test ! -s conftest.err'
43979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43980   (eval $ac_try) 2>&5
43981   ac_status=$?
43982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43983   (exit $ac_status); }; } &&
43984          { ac_try='test -s conftest$ac_exeext'
43985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43986   (eval $ac_try) 2>&5
43987   ac_status=$?
43988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989   (exit $ac_status); }; }; then
43990   ac_cv_lib_ndbm_dbm_open=yes
43991 else
43992   echo "$as_me: failed program was:" >&5
43993 sed 's/^/| /' conftest.$ac_ext >&5
43994
43995 ac_cv_lib_ndbm_dbm_open=no
43996 fi
43997 rm -f conftest.err conftest.$ac_objext \
43998       conftest$ac_exeext conftest.$ac_ext
43999 LIBS=$ac_check_lib_save_LIBS
44000 fi
44001 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44002 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44003 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44004   ol_cv_lib_ndbm=-lndbm
44005 else
44006
44007                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44008 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44009 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44010   echo $ECHO_N "(cached) $ECHO_C" >&6
44011 else
44012   ac_check_lib_save_LIBS=$LIBS
44013 LIBS="-ldbm  $LIBS"
44014 cat >conftest.$ac_ext <<_ACEOF
44015 /* confdefs.h.  */
44016 _ACEOF
44017 cat confdefs.h >>conftest.$ac_ext
44018 cat >>conftest.$ac_ext <<_ACEOF
44019 /* end confdefs.h.  */
44020
44021 /* Override any gcc2 internal prototype to avoid an error.  */
44022 #ifdef __cplusplus
44023 extern "C"
44024 #endif
44025 /* We use char because int might match the return type of a gcc2
44026    builtin and then its argument prototype would still apply.  */
44027 char dbm_open ();
44028 int
44029 main ()
44030 {
44031 dbm_open ();
44032   ;
44033   return 0;
44034 }
44035 _ACEOF
44036 rm -f conftest.$ac_objext conftest$ac_exeext
44037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44038   (eval $ac_link) 2>conftest.er1
44039   ac_status=$?
44040   grep -v '^ *+' conftest.er1 >conftest.err
44041   rm -f conftest.er1
44042   cat conftest.err >&5
44043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44044   (exit $ac_status); } &&
44045          { ac_try='test -z "$ac_c_werror_flag"
44046                          || test ! -s conftest.err'
44047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44048   (eval $ac_try) 2>&5
44049   ac_status=$?
44050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44051   (exit $ac_status); }; } &&
44052          { ac_try='test -s conftest$ac_exeext'
44053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44054   (eval $ac_try) 2>&5
44055   ac_status=$?
44056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44057   (exit $ac_status); }; }; then
44058   ac_cv_lib_dbm_dbm_open=yes
44059 else
44060   echo "$as_me: failed program was:" >&5
44061 sed 's/^/| /' conftest.$ac_ext >&5
44062
44063 ac_cv_lib_dbm_dbm_open=no
44064 fi
44065 rm -f conftest.err conftest.$ac_objext \
44066       conftest$ac_exeext conftest.$ac_ext
44067 LIBS=$ac_check_lib_save_LIBS
44068 fi
44069 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44070 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44071 if test $ac_cv_lib_dbm_dbm_open = yes; then
44072   ol_cv_lib_ndbm=-ldbm
44073 else
44074   ol_cv_lib_ndbm=no
44075 fi
44076
44077 fi
44078
44079
44080 fi
44081
44082         LIBS="$ol_LIBS"
44083
44084 fi
44085 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44086 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44087
44088
44089
44090 for ac_header in ndbm.h
44091 do
44092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44094   echo "$as_me:$LINENO: checking for $ac_header" >&5
44095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44097   echo $ECHO_N "(cached) $ECHO_C" >&6
44098 fi
44099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44101 else
44102   # Is the header compilable?
44103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44105 cat >conftest.$ac_ext <<_ACEOF
44106 /* confdefs.h.  */
44107 _ACEOF
44108 cat confdefs.h >>conftest.$ac_ext
44109 cat >>conftest.$ac_ext <<_ACEOF
44110 /* end confdefs.h.  */
44111 $ac_includes_default
44112 #include <$ac_header>
44113 _ACEOF
44114 rm -f conftest.$ac_objext
44115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44116   (eval $ac_compile) 2>conftest.er1
44117   ac_status=$?
44118   grep -v '^ *+' conftest.er1 >conftest.err
44119   rm -f conftest.er1
44120   cat conftest.err >&5
44121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122   (exit $ac_status); } &&
44123          { ac_try='test -z "$ac_c_werror_flag"
44124                          || test ! -s conftest.err'
44125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44126   (eval $ac_try) 2>&5
44127   ac_status=$?
44128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44129   (exit $ac_status); }; } &&
44130          { ac_try='test -s conftest.$ac_objext'
44131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44132   (eval $ac_try) 2>&5
44133   ac_status=$?
44134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44135   (exit $ac_status); }; }; then
44136   ac_header_compiler=yes
44137 else
44138   echo "$as_me: failed program was:" >&5
44139 sed 's/^/| /' conftest.$ac_ext >&5
44140
44141 ac_header_compiler=no
44142 fi
44143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44145 echo "${ECHO_T}$ac_header_compiler" >&6
44146
44147 # Is the header present?
44148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44150 cat >conftest.$ac_ext <<_ACEOF
44151 /* confdefs.h.  */
44152 _ACEOF
44153 cat confdefs.h >>conftest.$ac_ext
44154 cat >>conftest.$ac_ext <<_ACEOF
44155 /* end confdefs.h.  */
44156 #include <$ac_header>
44157 _ACEOF
44158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44160   ac_status=$?
44161   grep -v '^ *+' conftest.er1 >conftest.err
44162   rm -f conftest.er1
44163   cat conftest.err >&5
44164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44165   (exit $ac_status); } >/dev/null; then
44166   if test -s conftest.err; then
44167     ac_cpp_err=$ac_c_preproc_warn_flag
44168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44169   else
44170     ac_cpp_err=
44171   fi
44172 else
44173   ac_cpp_err=yes
44174 fi
44175 if test -z "$ac_cpp_err"; then
44176   ac_header_preproc=yes
44177 else
44178   echo "$as_me: failed program was:" >&5
44179 sed 's/^/| /' conftest.$ac_ext >&5
44180
44181   ac_header_preproc=no
44182 fi
44183 rm -f conftest.err conftest.$ac_ext
44184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44185 echo "${ECHO_T}$ac_header_preproc" >&6
44186
44187 # So?  What about this header?
44188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44189   yes:no: )
44190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44194     ac_header_preproc=yes
44195     ;;
44196   no:yes:* )
44197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44209     (
44210       cat <<\_ASBOX
44211 ## ------------------------------------------ ##
44212 ## Report this to the AC_PACKAGE_NAME lists.  ##
44213 ## ------------------------------------------ ##
44214 _ASBOX
44215     ) |
44216       sed "s/^/$as_me: WARNING:     /" >&2
44217     ;;
44218 esac
44219 echo "$as_me:$LINENO: checking for $ac_header" >&5
44220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44222   echo $ECHO_N "(cached) $ECHO_C" >&6
44223 else
44224   eval "$as_ac_Header=\$ac_header_preproc"
44225 fi
44226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44228
44229 fi
44230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44231   cat >>confdefs.h <<_ACEOF
44232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44233 _ACEOF
44234
44235 fi
44236
44237 done
44238
44239  echo "$as_me:$LINENO: checking for db" >&5
44240 echo $ECHO_N "checking for db... $ECHO_C" >&6
44241 if test "${ol_cv_ndbm+set}" = set; then
44242   echo $ECHO_N "(cached) $ECHO_C" >&6
44243 else
44244
44245         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44246                 ol_cv_ndbm=no
44247         else
44248                 ol_cv_ndbm=yes
44249         fi
44250
44251 fi
44252 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44253 echo "${ECHO_T}$ol_cv_ndbm" >&6
44254  if test $ol_cv_ndbm = yes ; then
44255
44256 cat >>confdefs.h <<\_ACEOF
44257 #define HAVE_NDBM 1
44258 _ACEOF
44259
44260  fi
44261
44262
44263         if test $ol_cv_ndbm = yes ; then
44264                 ol_link_ldbm=ndbm
44265                 ol_with_ldbm_api=ndbm
44266
44267                 if test $ol_cv_lib_ndbm != yes ; then
44268                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44269                 fi
44270         fi
44271 fi
44272
44273 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44274         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44275 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44276    { (exit 1); exit 1; }; }
44277 fi
44278
44279 if test $ol_enable_bdb = yes -o \
44280         $ol_enable_hdb = yes -o \
44281         $ol_enable_ldbm = yes ; then
44282         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44283 fi
44284
44285
44286 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44287         BUILD_LIBS_DYNAMIC=shared
44288
44289 cat >>confdefs.h <<\_ACEOF
44290 #define LDAP_LIBS_DYNAMIC 1
44291 _ACEOF
44292
44293         LTSTATIC=""
44294 else
44295         BUILD_LIBS_DYNAMIC=static
44296         LTSTATIC="-static"
44297 fi
44298
44299 if test $ol_enable_wrappers != no ; then
44300
44301 for ac_header in tcpd.h
44302 do
44303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44305   echo "$as_me:$LINENO: checking for $ac_header" >&5
44306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44308   echo $ECHO_N "(cached) $ECHO_C" >&6
44309 fi
44310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44312 else
44313   # Is the header compilable?
44314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44316 cat >conftest.$ac_ext <<_ACEOF
44317 /* confdefs.h.  */
44318 _ACEOF
44319 cat confdefs.h >>conftest.$ac_ext
44320 cat >>conftest.$ac_ext <<_ACEOF
44321 /* end confdefs.h.  */
44322 $ac_includes_default
44323 #include <$ac_header>
44324 _ACEOF
44325 rm -f conftest.$ac_objext
44326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44327   (eval $ac_compile) 2>conftest.er1
44328   ac_status=$?
44329   grep -v '^ *+' conftest.er1 >conftest.err
44330   rm -f conftest.er1
44331   cat conftest.err >&5
44332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333   (exit $ac_status); } &&
44334          { ac_try='test -z "$ac_c_werror_flag"
44335                          || test ! -s conftest.err'
44336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44337   (eval $ac_try) 2>&5
44338   ac_status=$?
44339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340   (exit $ac_status); }; } &&
44341          { ac_try='test -s conftest.$ac_objext'
44342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44343   (eval $ac_try) 2>&5
44344   ac_status=$?
44345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44346   (exit $ac_status); }; }; then
44347   ac_header_compiler=yes
44348 else
44349   echo "$as_me: failed program was:" >&5
44350 sed 's/^/| /' conftest.$ac_ext >&5
44351
44352 ac_header_compiler=no
44353 fi
44354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44356 echo "${ECHO_T}$ac_header_compiler" >&6
44357
44358 # Is the header present?
44359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44361 cat >conftest.$ac_ext <<_ACEOF
44362 /* confdefs.h.  */
44363 _ACEOF
44364 cat confdefs.h >>conftest.$ac_ext
44365 cat >>conftest.$ac_ext <<_ACEOF
44366 /* end confdefs.h.  */
44367 #include <$ac_header>
44368 _ACEOF
44369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44371   ac_status=$?
44372   grep -v '^ *+' conftest.er1 >conftest.err
44373   rm -f conftest.er1
44374   cat conftest.err >&5
44375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44376   (exit $ac_status); } >/dev/null; then
44377   if test -s conftest.err; then
44378     ac_cpp_err=$ac_c_preproc_warn_flag
44379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44380   else
44381     ac_cpp_err=
44382   fi
44383 else
44384   ac_cpp_err=yes
44385 fi
44386 if test -z "$ac_cpp_err"; then
44387   ac_header_preproc=yes
44388 else
44389   echo "$as_me: failed program was:" >&5
44390 sed 's/^/| /' conftest.$ac_ext >&5
44391
44392   ac_header_preproc=no
44393 fi
44394 rm -f conftest.err conftest.$ac_ext
44395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44396 echo "${ECHO_T}$ac_header_preproc" >&6
44397
44398 # So?  What about this header?
44399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44400   yes:no: )
44401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44405     ac_header_preproc=yes
44406     ;;
44407   no:yes:* )
44408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44420     (
44421       cat <<\_ASBOX
44422 ## ------------------------------------------ ##
44423 ## Report this to the AC_PACKAGE_NAME lists.  ##
44424 ## ------------------------------------------ ##
44425 _ASBOX
44426     ) |
44427       sed "s/^/$as_me: WARNING:     /" >&2
44428     ;;
44429 esac
44430 echo "$as_me:$LINENO: checking for $ac_header" >&5
44431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44433   echo $ECHO_N "(cached) $ECHO_C" >&6
44434 else
44435   eval "$as_ac_Header=\$ac_header_preproc"
44436 fi
44437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44439
44440 fi
44441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44442   cat >>confdefs.h <<_ACEOF
44443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44444 _ACEOF
44445
44446                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44447 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44448                 save_LIBS="$LIBS"
44449                 LIBS="$LIBS -lwrap"
44450                 cat >conftest.$ac_ext <<_ACEOF
44451 /* confdefs.h.  */
44452 _ACEOF
44453 cat confdefs.h >>conftest.$ac_ext
44454 cat >>conftest.$ac_ext <<_ACEOF
44455 /* end confdefs.h.  */
44456
44457 #include <tcpd.h>
44458 int allow_severity = 0;
44459 int deny_severity  = 0;
44460
44461 struct request_info *req;
44462
44463 int
44464 main ()
44465 {
44466
44467 hosts_access(req)
44468
44469   ;
44470   return 0;
44471 }
44472 _ACEOF
44473 rm -f conftest.$ac_objext conftest$ac_exeext
44474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44475   (eval $ac_link) 2>conftest.er1
44476   ac_status=$?
44477   grep -v '^ *+' conftest.er1 >conftest.err
44478   rm -f conftest.er1
44479   cat conftest.err >&5
44480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44481   (exit $ac_status); } &&
44482          { ac_try='test -z "$ac_c_werror_flag"
44483                          || test ! -s conftest.err'
44484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44485   (eval $ac_try) 2>&5
44486   ac_status=$?
44487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44488   (exit $ac_status); }; } &&
44489          { ac_try='test -s conftest$ac_exeext'
44490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44491   (eval $ac_try) 2>&5
44492   ac_status=$?
44493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44494   (exit $ac_status); }; }; then
44495   echo "$as_me:$LINENO: result: -lwrap" >&5
44496 echo "${ECHO_T}-lwrap" >&6
44497                 have_wrappers=yes
44498                 LIBS="$save_LIBS"
44499 else
44500   echo "$as_me: failed program was:" >&5
44501 sed 's/^/| /' conftest.$ac_ext >&5
44502
44503
44504                                 LIBS="$LIBS -lnsl"
44505                 cat >conftest.$ac_ext <<_ACEOF
44506 /* confdefs.h.  */
44507 _ACEOF
44508 cat confdefs.h >>conftest.$ac_ext
44509 cat >>conftest.$ac_ext <<_ACEOF
44510 /* end confdefs.h.  */
44511
44512 #include <tcpd.h>
44513 int allow_severity = 0;
44514 int deny_severity  = 0;
44515
44516 struct request_info *req;
44517
44518 int
44519 main ()
44520 {
44521
44522 hosts_access(req)
44523
44524   ;
44525   return 0;
44526 }
44527 _ACEOF
44528 rm -f conftest.$ac_objext conftest$ac_exeext
44529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44530   (eval $ac_link) 2>conftest.er1
44531   ac_status=$?
44532   grep -v '^ *+' conftest.er1 >conftest.err
44533   rm -f conftest.er1
44534   cat conftest.err >&5
44535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44536   (exit $ac_status); } &&
44537          { ac_try='test -z "$ac_c_werror_flag"
44538                          || test ! -s conftest.err'
44539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44540   (eval $ac_try) 2>&5
44541   ac_status=$?
44542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44543   (exit $ac_status); }; } &&
44544          { ac_try='test -s conftest$ac_exeext'
44545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44546   (eval $ac_try) 2>&5
44547   ac_status=$?
44548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44549   (exit $ac_status); }; }; then
44550   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44551 echo "${ECHO_T}-lwrap -lnsl" >&6
44552                 have_wrappers=yes
44553                 LIBS="$save_LIBS -lnsl"
44554 else
44555   echo "$as_me: failed program was:" >&5
44556 sed 's/^/| /' conftest.$ac_ext >&5
44557
44558
44559                 echo "$as_me:$LINENO: result: no" >&5
44560 echo "${ECHO_T}no" >&6
44561                 have_wrappers=no
44562                 LIBS=$save_LIBS
44563 fi
44564 rm -f conftest.err conftest.$ac_objext \
44565       conftest$ac_exeext conftest.$ac_ext
44566 fi
44567 rm -f conftest.err conftest.$ac_objext \
44568       conftest$ac_exeext conftest.$ac_ext
44569 else
44570   have_wrappers=no
44571 fi
44572
44573 done
44574
44575
44576         if test $have_wrappers = yes ; then
44577
44578 cat >>confdefs.h <<\_ACEOF
44579 #define HAVE_TCPD 1
44580 _ACEOF
44581
44582                 WRAP_LIBS="-lwrap"
44583         elif test $ol_enable_wrappers = yes ; then
44584                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44585 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44586    { (exit 1); exit 1; }; }
44587         else
44588                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44589 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44590                 WRAP_LIBS=""
44591         fi
44592 fi
44593
44594 if test $ol_enable_syslog != no ; then
44595         echo "$as_me:$LINENO: checking for openlog" >&5
44596 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44597 if test "${ac_cv_func_openlog+set}" = set; then
44598   echo $ECHO_N "(cached) $ECHO_C" >&6
44599 else
44600   cat >conftest.$ac_ext <<_ACEOF
44601 /* confdefs.h.  */
44602 _ACEOF
44603 cat confdefs.h >>conftest.$ac_ext
44604 cat >>conftest.$ac_ext <<_ACEOF
44605 /* end confdefs.h.  */
44606 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44608 #define openlog innocuous_openlog
44609
44610 /* System header to define __stub macros and hopefully few prototypes,
44611     which can conflict with char openlog (); below.
44612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44613     <limits.h> exists even on freestanding compilers.  */
44614
44615 #ifdef __STDC__
44616 # include <limits.h>
44617 #else
44618 # include <assert.h>
44619 #endif
44620
44621 #undef openlog
44622
44623 /* Override any gcc2 internal prototype to avoid an error.  */
44624 #ifdef __cplusplus
44625 extern "C"
44626 {
44627 #endif
44628 /* We use char because int might match the return type of a gcc2
44629    builtin and then its argument prototype would still apply.  */
44630 char openlog ();
44631 /* The GNU C library defines this for functions which it implements
44632     to always fail with ENOSYS.  Some functions are actually named
44633     something starting with __ and the normal name is an alias.  */
44634 #if defined (__stub_openlog) || defined (__stub___openlog)
44635 choke me
44636 #else
44637 char (*f) () = openlog;
44638 #endif
44639 #ifdef __cplusplus
44640 }
44641 #endif
44642
44643 int
44644 main ()
44645 {
44646 return f != openlog;
44647   ;
44648   return 0;
44649 }
44650 _ACEOF
44651 rm -f conftest.$ac_objext conftest$ac_exeext
44652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44653   (eval $ac_link) 2>conftest.er1
44654   ac_status=$?
44655   grep -v '^ *+' conftest.er1 >conftest.err
44656   rm -f conftest.er1
44657   cat conftest.err >&5
44658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659   (exit $ac_status); } &&
44660          { ac_try='test -z "$ac_c_werror_flag"
44661                          || test ! -s conftest.err'
44662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44663   (eval $ac_try) 2>&5
44664   ac_status=$?
44665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44666   (exit $ac_status); }; } &&
44667          { ac_try='test -s conftest$ac_exeext'
44668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44669   (eval $ac_try) 2>&5
44670   ac_status=$?
44671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44672   (exit $ac_status); }; }; then
44673   ac_cv_func_openlog=yes
44674 else
44675   echo "$as_me: failed program was:" >&5
44676 sed 's/^/| /' conftest.$ac_ext >&5
44677
44678 ac_cv_func_openlog=no
44679 fi
44680 rm -f conftest.err conftest.$ac_objext \
44681       conftest$ac_exeext conftest.$ac_ext
44682 fi
44683 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44684 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44685
44686         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44687                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44688 echo "$as_me: error: could not find syslog" >&2;}
44689    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44690         fi
44691         ol_enable_syslog=$ac_cv_func_openlog
44692 fi
44693
44694
44695 ol_link_sql=no
44696 if test $ol_enable_sql != no ; then
44697
44698
44699 for ac_header in sql.h sqlext.h
44700 do
44701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44703   echo "$as_me:$LINENO: checking for $ac_header" >&5
44704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44706   echo $ECHO_N "(cached) $ECHO_C" >&6
44707 fi
44708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44710 else
44711   # Is the header compilable?
44712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44714 cat >conftest.$ac_ext <<_ACEOF
44715 /* confdefs.h.  */
44716 _ACEOF
44717 cat confdefs.h >>conftest.$ac_ext
44718 cat >>conftest.$ac_ext <<_ACEOF
44719 /* end confdefs.h.  */
44720 $ac_includes_default
44721 #include <$ac_header>
44722 _ACEOF
44723 rm -f conftest.$ac_objext
44724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44725   (eval $ac_compile) 2>conftest.er1
44726   ac_status=$?
44727   grep -v '^ *+' conftest.er1 >conftest.err
44728   rm -f conftest.er1
44729   cat conftest.err >&5
44730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44731   (exit $ac_status); } &&
44732          { ac_try='test -z "$ac_c_werror_flag"
44733                          || test ! -s conftest.err'
44734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44735   (eval $ac_try) 2>&5
44736   ac_status=$?
44737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44738   (exit $ac_status); }; } &&
44739          { ac_try='test -s conftest.$ac_objext'
44740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44741   (eval $ac_try) 2>&5
44742   ac_status=$?
44743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44744   (exit $ac_status); }; }; then
44745   ac_header_compiler=yes
44746 else
44747   echo "$as_me: failed program was:" >&5
44748 sed 's/^/| /' conftest.$ac_ext >&5
44749
44750 ac_header_compiler=no
44751 fi
44752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44754 echo "${ECHO_T}$ac_header_compiler" >&6
44755
44756 # Is the header present?
44757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44759 cat >conftest.$ac_ext <<_ACEOF
44760 /* confdefs.h.  */
44761 _ACEOF
44762 cat confdefs.h >>conftest.$ac_ext
44763 cat >>conftest.$ac_ext <<_ACEOF
44764 /* end confdefs.h.  */
44765 #include <$ac_header>
44766 _ACEOF
44767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44769   ac_status=$?
44770   grep -v '^ *+' conftest.er1 >conftest.err
44771   rm -f conftest.er1
44772   cat conftest.err >&5
44773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44774   (exit $ac_status); } >/dev/null; then
44775   if test -s conftest.err; then
44776     ac_cpp_err=$ac_c_preproc_warn_flag
44777     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44778   else
44779     ac_cpp_err=
44780   fi
44781 else
44782   ac_cpp_err=yes
44783 fi
44784 if test -z "$ac_cpp_err"; then
44785   ac_header_preproc=yes
44786 else
44787   echo "$as_me: failed program was:" >&5
44788 sed 's/^/| /' conftest.$ac_ext >&5
44789
44790   ac_header_preproc=no
44791 fi
44792 rm -f conftest.err conftest.$ac_ext
44793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44794 echo "${ECHO_T}$ac_header_preproc" >&6
44795
44796 # So?  What about this header?
44797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44798   yes:no: )
44799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44803     ac_header_preproc=yes
44804     ;;
44805   no:yes:* )
44806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44818     (
44819       cat <<\_ASBOX
44820 ## ------------------------------------------ ##
44821 ## Report this to the AC_PACKAGE_NAME lists.  ##
44822 ## ------------------------------------------ ##
44823 _ASBOX
44824     ) |
44825       sed "s/^/$as_me: WARNING:     /" >&2
44826     ;;
44827 esac
44828 echo "$as_me:$LINENO: checking for $ac_header" >&5
44829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44831   echo $ECHO_N "(cached) $ECHO_C" >&6
44832 else
44833   eval "$as_ac_Header=\$ac_header_preproc"
44834 fi
44835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44837
44838 fi
44839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44840   cat >>confdefs.h <<_ACEOF
44841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44842 _ACEOF
44843
44844 else
44845
44846                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44847 echo "$as_me: error: could not locate SQL headers" >&2;}
44848    { (exit 1); exit 1; }; }
44849
44850 fi
44851
44852 done
44853
44854
44855         sql_LIBS="$LIBS"
44856         LIBS="$LTHREAD_LIBS"
44857
44858         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44859 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44860 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44861   echo $ECHO_N "(cached) $ECHO_C" >&6
44862 else
44863   ac_check_lib_save_LIBS=$LIBS
44864 LIBS="-liodbc  $LIBS"
44865 cat >conftest.$ac_ext <<_ACEOF
44866 /* confdefs.h.  */
44867 _ACEOF
44868 cat confdefs.h >>conftest.$ac_ext
44869 cat >>conftest.$ac_ext <<_ACEOF
44870 /* end confdefs.h.  */
44871
44872 /* Override any gcc2 internal prototype to avoid an error.  */
44873 #ifdef __cplusplus
44874 extern "C"
44875 #endif
44876 /* We use char because int might match the return type of a gcc2
44877    builtin and then its argument prototype would still apply.  */
44878 char SQLDriverConnect ();
44879 int
44880 main ()
44881 {
44882 SQLDriverConnect ();
44883   ;
44884   return 0;
44885 }
44886 _ACEOF
44887 rm -f conftest.$ac_objext conftest$ac_exeext
44888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44889   (eval $ac_link) 2>conftest.er1
44890   ac_status=$?
44891   grep -v '^ *+' conftest.er1 >conftest.err
44892   rm -f conftest.er1
44893   cat conftest.err >&5
44894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44895   (exit $ac_status); } &&
44896          { ac_try='test -z "$ac_c_werror_flag"
44897                          || test ! -s conftest.err'
44898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44899   (eval $ac_try) 2>&5
44900   ac_status=$?
44901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44902   (exit $ac_status); }; } &&
44903          { ac_try='test -s conftest$ac_exeext'
44904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44905   (eval $ac_try) 2>&5
44906   ac_status=$?
44907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44908   (exit $ac_status); }; }; then
44909   ac_cv_lib_iodbc_SQLDriverConnect=yes
44910 else
44911   echo "$as_me: failed program was:" >&5
44912 sed 's/^/| /' conftest.$ac_ext >&5
44913
44914 ac_cv_lib_iodbc_SQLDriverConnect=no
44915 fi
44916 rm -f conftest.err conftest.$ac_objext \
44917       conftest$ac_exeext conftest.$ac_ext
44918 LIBS=$ac_check_lib_save_LIBS
44919 fi
44920 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44921 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44922 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44923   have_iodbc=yes
44924 else
44925   have_iodbc=no
44926 fi
44927
44928         if test $have_iodbc = yes ; then
44929                 ol_link_sql="-liodbc"
44930         else
44931                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44932 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44933 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44934   echo $ECHO_N "(cached) $ECHO_C" >&6
44935 else
44936   ac_check_lib_save_LIBS=$LIBS
44937 LIBS="-lodbc  $LIBS"
44938 cat >conftest.$ac_ext <<_ACEOF
44939 /* confdefs.h.  */
44940 _ACEOF
44941 cat confdefs.h >>conftest.$ac_ext
44942 cat >>conftest.$ac_ext <<_ACEOF
44943 /* end confdefs.h.  */
44944
44945 /* Override any gcc2 internal prototype to avoid an error.  */
44946 #ifdef __cplusplus
44947 extern "C"
44948 #endif
44949 /* We use char because int might match the return type of a gcc2
44950    builtin and then its argument prototype would still apply.  */
44951 char SQLDriverConnect ();
44952 int
44953 main ()
44954 {
44955 SQLDriverConnect ();
44956   ;
44957   return 0;
44958 }
44959 _ACEOF
44960 rm -f conftest.$ac_objext conftest$ac_exeext
44961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44962   (eval $ac_link) 2>conftest.er1
44963   ac_status=$?
44964   grep -v '^ *+' conftest.er1 >conftest.err
44965   rm -f conftest.er1
44966   cat conftest.err >&5
44967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44968   (exit $ac_status); } &&
44969          { ac_try='test -z "$ac_c_werror_flag"
44970                          || test ! -s conftest.err'
44971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44972   (eval $ac_try) 2>&5
44973   ac_status=$?
44974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44975   (exit $ac_status); }; } &&
44976          { ac_try='test -s conftest$ac_exeext'
44977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44978   (eval $ac_try) 2>&5
44979   ac_status=$?
44980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44981   (exit $ac_status); }; }; then
44982   ac_cv_lib_odbc_SQLDriverConnect=yes
44983 else
44984   echo "$as_me: failed program was:" >&5
44985 sed 's/^/| /' conftest.$ac_ext >&5
44986
44987 ac_cv_lib_odbc_SQLDriverConnect=no
44988 fi
44989 rm -f conftest.err conftest.$ac_objext \
44990       conftest$ac_exeext conftest.$ac_ext
44991 LIBS=$ac_check_lib_save_LIBS
44992 fi
44993 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
44994 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
44995 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
44996   have_odbc=yes
44997 else
44998   have_odbc=no
44999 fi
45000
45001                 if test $have_odbc = yes ; then
45002                         ol_link_sql="-lodbc"
45003                 fi
45004         fi
45005
45006         LIBS="$sql_LIBS"
45007
45008         if test $ol_link_sql != no ; then
45009                 SLAPD_SQL_LIBS="$ol_link_sql"
45010
45011         elif test $ol_enable_sql != auto ; then
45012                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45013 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45014    { (exit 1); exit 1; }; }
45015         fi
45016 fi
45017
45018 WITH_SASL=no
45019 ol_link_sasl=no
45020 ol_link_spasswd=no
45021 if test $ol_with_cyrus_sasl != no ; then
45022
45023
45024 for ac_header in sasl/sasl.h sasl.h
45025 do
45026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45028   echo "$as_me:$LINENO: checking for $ac_header" >&5
45029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45031   echo $ECHO_N "(cached) $ECHO_C" >&6
45032 fi
45033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45035 else
45036   # Is the header compilable?
45037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45039 cat >conftest.$ac_ext <<_ACEOF
45040 /* confdefs.h.  */
45041 _ACEOF
45042 cat confdefs.h >>conftest.$ac_ext
45043 cat >>conftest.$ac_ext <<_ACEOF
45044 /* end confdefs.h.  */
45045 $ac_includes_default
45046 #include <$ac_header>
45047 _ACEOF
45048 rm -f conftest.$ac_objext
45049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45050   (eval $ac_compile) 2>conftest.er1
45051   ac_status=$?
45052   grep -v '^ *+' conftest.er1 >conftest.err
45053   rm -f conftest.er1
45054   cat conftest.err >&5
45055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45056   (exit $ac_status); } &&
45057          { ac_try='test -z "$ac_c_werror_flag"
45058                          || test ! -s conftest.err'
45059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45060   (eval $ac_try) 2>&5
45061   ac_status=$?
45062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45063   (exit $ac_status); }; } &&
45064          { ac_try='test -s conftest.$ac_objext'
45065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45066   (eval $ac_try) 2>&5
45067   ac_status=$?
45068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45069   (exit $ac_status); }; }; then
45070   ac_header_compiler=yes
45071 else
45072   echo "$as_me: failed program was:" >&5
45073 sed 's/^/| /' conftest.$ac_ext >&5
45074
45075 ac_header_compiler=no
45076 fi
45077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45079 echo "${ECHO_T}$ac_header_compiler" >&6
45080
45081 # Is the header present?
45082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45084 cat >conftest.$ac_ext <<_ACEOF
45085 /* confdefs.h.  */
45086 _ACEOF
45087 cat confdefs.h >>conftest.$ac_ext
45088 cat >>conftest.$ac_ext <<_ACEOF
45089 /* end confdefs.h.  */
45090 #include <$ac_header>
45091 _ACEOF
45092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45094   ac_status=$?
45095   grep -v '^ *+' conftest.er1 >conftest.err
45096   rm -f conftest.er1
45097   cat conftest.err >&5
45098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45099   (exit $ac_status); } >/dev/null; then
45100   if test -s conftest.err; then
45101     ac_cpp_err=$ac_c_preproc_warn_flag
45102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45103   else
45104     ac_cpp_err=
45105   fi
45106 else
45107   ac_cpp_err=yes
45108 fi
45109 if test -z "$ac_cpp_err"; then
45110   ac_header_preproc=yes
45111 else
45112   echo "$as_me: failed program was:" >&5
45113 sed 's/^/| /' conftest.$ac_ext >&5
45114
45115   ac_header_preproc=no
45116 fi
45117 rm -f conftest.err conftest.$ac_ext
45118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45119 echo "${ECHO_T}$ac_header_preproc" >&6
45120
45121 # So?  What about this header?
45122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45123   yes:no: )
45124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45128     ac_header_preproc=yes
45129     ;;
45130   no:yes:* )
45131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45143     (
45144       cat <<\_ASBOX
45145 ## ------------------------------------------ ##
45146 ## Report this to the AC_PACKAGE_NAME lists.  ##
45147 ## ------------------------------------------ ##
45148 _ASBOX
45149     ) |
45150       sed "s/^/$as_me: WARNING:     /" >&2
45151     ;;
45152 esac
45153 echo "$as_me:$LINENO: checking for $ac_header" >&5
45154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45156   echo $ECHO_N "(cached) $ECHO_C" >&6
45157 else
45158   eval "$as_ac_Header=\$ac_header_preproc"
45159 fi
45160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45162
45163 fi
45164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45165   cat >>confdefs.h <<_ACEOF
45166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45167 _ACEOF
45168
45169 fi
45170
45171 done
45172
45173
45174         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45175                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45176 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45177 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45178   echo $ECHO_N "(cached) $ECHO_C" >&6
45179 else
45180   ac_check_lib_save_LIBS=$LIBS
45181 LIBS="-lsasl2  $LIBS"
45182 cat >conftest.$ac_ext <<_ACEOF
45183 /* confdefs.h.  */
45184 _ACEOF
45185 cat confdefs.h >>conftest.$ac_ext
45186 cat >>conftest.$ac_ext <<_ACEOF
45187 /* end confdefs.h.  */
45188
45189 /* Override any gcc2 internal prototype to avoid an error.  */
45190 #ifdef __cplusplus
45191 extern "C"
45192 #endif
45193 /* We use char because int might match the return type of a gcc2
45194    builtin and then its argument prototype would still apply.  */
45195 char sasl_client_init ();
45196 int
45197 main ()
45198 {
45199 sasl_client_init ();
45200   ;
45201   return 0;
45202 }
45203 _ACEOF
45204 rm -f conftest.$ac_objext conftest$ac_exeext
45205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45206   (eval $ac_link) 2>conftest.er1
45207   ac_status=$?
45208   grep -v '^ *+' conftest.er1 >conftest.err
45209   rm -f conftest.er1
45210   cat conftest.err >&5
45211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45212   (exit $ac_status); } &&
45213          { ac_try='test -z "$ac_c_werror_flag"
45214                          || test ! -s conftest.err'
45215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45216   (eval $ac_try) 2>&5
45217   ac_status=$?
45218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45219   (exit $ac_status); }; } &&
45220          { ac_try='test -s conftest$ac_exeext'
45221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45222   (eval $ac_try) 2>&5
45223   ac_status=$?
45224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45225   (exit $ac_status); }; }; then
45226   ac_cv_lib_sasl2_sasl_client_init=yes
45227 else
45228   echo "$as_me: failed program was:" >&5
45229 sed 's/^/| /' conftest.$ac_ext >&5
45230
45231 ac_cv_lib_sasl2_sasl_client_init=no
45232 fi
45233 rm -f conftest.err conftest.$ac_objext \
45234       conftest$ac_exeext conftest.$ac_ext
45235 LIBS=$ac_check_lib_save_LIBS
45236 fi
45237 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45238 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45239 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45240   ol_link_sasl="-lsasl2"
45241 else
45242   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45243 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45244 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45245   echo $ECHO_N "(cached) $ECHO_C" >&6
45246 else
45247   ac_check_lib_save_LIBS=$LIBS
45248 LIBS="-lsasl  $LIBS"
45249 cat >conftest.$ac_ext <<_ACEOF
45250 /* confdefs.h.  */
45251 _ACEOF
45252 cat confdefs.h >>conftest.$ac_ext
45253 cat >>conftest.$ac_ext <<_ACEOF
45254 /* end confdefs.h.  */
45255
45256 /* Override any gcc2 internal prototype to avoid an error.  */
45257 #ifdef __cplusplus
45258 extern "C"
45259 #endif
45260 /* We use char because int might match the return type of a gcc2
45261    builtin and then its argument prototype would still apply.  */
45262 char sasl_client_init ();
45263 int
45264 main ()
45265 {
45266 sasl_client_init ();
45267   ;
45268   return 0;
45269 }
45270 _ACEOF
45271 rm -f conftest.$ac_objext conftest$ac_exeext
45272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45273   (eval $ac_link) 2>conftest.er1
45274   ac_status=$?
45275   grep -v '^ *+' conftest.er1 >conftest.err
45276   rm -f conftest.er1
45277   cat conftest.err >&5
45278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45279   (exit $ac_status); } &&
45280          { ac_try='test -z "$ac_c_werror_flag"
45281                          || test ! -s conftest.err'
45282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45283   (eval $ac_try) 2>&5
45284   ac_status=$?
45285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45286   (exit $ac_status); }; } &&
45287          { ac_try='test -s conftest$ac_exeext'
45288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45289   (eval $ac_try) 2>&5
45290   ac_status=$?
45291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45292   (exit $ac_status); }; }; then
45293   ac_cv_lib_sasl_sasl_client_init=yes
45294 else
45295   echo "$as_me: failed program was:" >&5
45296 sed 's/^/| /' conftest.$ac_ext >&5
45297
45298 ac_cv_lib_sasl_sasl_client_init=no
45299 fi
45300 rm -f conftest.err conftest.$ac_objext \
45301       conftest$ac_exeext conftest.$ac_ext
45302 LIBS=$ac_check_lib_save_LIBS
45303 fi
45304 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45305 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45306 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45307   ol_link_sasl="-lsasl"
45308 fi
45309
45310 fi
45311
45312         fi
45313
45314         if test $ol_link_sasl = no ; then
45315                 if test $ol_with_cyrus_sasl != auto ; then
45316                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45317 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45318    { (exit 1); exit 1; }; }
45319                 else
45320                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45321 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45322                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45323 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45324                         if test $ol_link_tls = no ; then
45325                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45326 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45327                         fi
45328                 fi
45329         else
45330                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45331 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45332 if test "${ol_cv_sasl_compat+set}" = set; then
45333   echo $ECHO_N "(cached) $ECHO_C" >&6
45334 else
45335
45336         cat >conftest.$ac_ext <<_ACEOF
45337 /* confdefs.h.  */
45338 _ACEOF
45339 cat confdefs.h >>conftest.$ac_ext
45340 cat >>conftest.$ac_ext <<_ACEOF
45341 /* end confdefs.h.  */
45342
45343 #ifdef HAVE_SASL_SASL_H
45344 #include <sasl/sasl.h>
45345 #else
45346 #include <sasl.h>
45347 #endif
45348
45349 /* Require 2.1.15+ */
45350 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
45351         char *__sasl_compat = "2.2+ or better okay (we guess)";
45352 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
45353         && SASL_VERSION_STEP >=15
45354         char *__sasl_compat = "2.1.15+ or better okay";
45355 #endif
45356
45357 _ACEOF
45358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45359   $EGREP "__sasl_compat" >/dev/null 2>&1; then
45360   ol_cv_sasl_compat=yes
45361 else
45362   ol_cv_sasl_compat=no
45363 fi
45364 rm -f conftest*
45365
45366 fi
45367 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45368 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45369
45370                 if test $ol_cv_sasl_compat = no ; then
45371                         ol_link_sasl=no
45372                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45373 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45374    { (exit 1); exit 1; }; }
45375                 fi
45376
45377
45378 cat >>confdefs.h <<\_ACEOF
45379 #define HAVE_CYRUS_SASL 1
45380 _ACEOF
45381
45382                 SASL_LIBS="$ol_link_sasl"
45383                 if test $ol_enable_spasswd != no ; then
45384                         ol_link_spasswd=yes
45385                 fi
45386
45387                 ac_save_LIBS="$LIBS"
45388                 LIBS="$LIBS $ol_link_sasl"
45389                 echo "$as_me:$LINENO: checking for sasl_version" >&5
45390 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45391 if test "${ac_cv_func_sasl_version+set}" = set; then
45392   echo $ECHO_N "(cached) $ECHO_C" >&6
45393 else
45394   cat >conftest.$ac_ext <<_ACEOF
45395 /* confdefs.h.  */
45396 _ACEOF
45397 cat confdefs.h >>conftest.$ac_ext
45398 cat >>conftest.$ac_ext <<_ACEOF
45399 /* end confdefs.h.  */
45400 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45402 #define sasl_version innocuous_sasl_version
45403
45404 /* System header to define __stub macros and hopefully few prototypes,
45405     which can conflict with char sasl_version (); below.
45406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45407     <limits.h> exists even on freestanding compilers.  */
45408
45409 #ifdef __STDC__
45410 # include <limits.h>
45411 #else
45412 # include <assert.h>
45413 #endif
45414
45415 #undef sasl_version
45416
45417 /* Override any gcc2 internal prototype to avoid an error.  */
45418 #ifdef __cplusplus
45419 extern "C"
45420 {
45421 #endif
45422 /* We use char because int might match the return type of a gcc2
45423    builtin and then its argument prototype would still apply.  */
45424 char sasl_version ();
45425 /* The GNU C library defines this for functions which it implements
45426     to always fail with ENOSYS.  Some functions are actually named
45427     something starting with __ and the normal name is an alias.  */
45428 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45429 choke me
45430 #else
45431 char (*f) () = sasl_version;
45432 #endif
45433 #ifdef __cplusplus
45434 }
45435 #endif
45436
45437 int
45438 main ()
45439 {
45440 return f != sasl_version;
45441   ;
45442   return 0;
45443 }
45444 _ACEOF
45445 rm -f conftest.$ac_objext conftest$ac_exeext
45446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45447   (eval $ac_link) 2>conftest.er1
45448   ac_status=$?
45449   grep -v '^ *+' conftest.er1 >conftest.err
45450   rm -f conftest.er1
45451   cat conftest.err >&5
45452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45453   (exit $ac_status); } &&
45454          { ac_try='test -z "$ac_c_werror_flag"
45455                          || test ! -s conftest.err'
45456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45457   (eval $ac_try) 2>&5
45458   ac_status=$?
45459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45460   (exit $ac_status); }; } &&
45461          { ac_try='test -s conftest$ac_exeext'
45462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45463   (eval $ac_try) 2>&5
45464   ac_status=$?
45465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466   (exit $ac_status); }; }; then
45467   ac_cv_func_sasl_version=yes
45468 else
45469   echo "$as_me: failed program was:" >&5
45470 sed 's/^/| /' conftest.$ac_ext >&5
45471
45472 ac_cv_func_sasl_version=no
45473 fi
45474 rm -f conftest.err conftest.$ac_objext \
45475       conftest$ac_exeext conftest.$ac_ext
45476 fi
45477 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45478 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45479 if test $ac_cv_func_sasl_version = yes; then
45480
45481 cat >>confdefs.h <<\_ACEOF
45482 #define HAVE_SASL_VERSION 1
45483 _ACEOF
45484
45485 fi
45486
45487                 LIBS="$ac_save_LIBS"
45488
45489                 WITH_SASL=yes
45490         fi
45491
45492 else
45493         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45494 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45495         if test $ol_link_tls = no ; then
45496                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45497 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45498         fi
45499 fi
45500
45501 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45502         dev=no
45503         if test -r /dev/urandom ; then
45504                 dev="/dev/urandom";
45505         elif test -r /idev/urandom ; then
45506                 dev="/idev/urandom";
45507         elif test -r /dev/srandom ; then
45508                 dev="/dev/srandom";
45509         elif test -r /dev/random ; then
45510                 dev="/dev/random";
45511         elif test -r /idev/random ; then
45512                 dev="/idev/random";
45513         fi
45514
45515         if test $dev != no ; then
45516
45517 cat >>confdefs.h <<_ACEOF
45518 #define URANDOM_DEVICE "$dev"
45519 _ACEOF
45520
45521         fi
45522 fi
45523
45524 ol_link_fetch=no
45525 if test $ol_with_fetch != no ; then
45526         ol_LIBS=$LIBS
45527 LIBS="-lfetch -lcom_err $LIBS"
45528 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45529 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45530 if test "${ol_cv_lib_fetch+set}" = set; then
45531   echo $ECHO_N "(cached) $ECHO_C" >&6
45532 else
45533
45534         cat >conftest.$ac_ext <<_ACEOF
45535 /* confdefs.h.  */
45536 _ACEOF
45537 cat confdefs.h >>conftest.$ac_ext
45538 cat >>conftest.$ac_ext <<_ACEOF
45539 /* end confdefs.h.  */
45540
45541 #include <sys/param.h>
45542 #include <stdio.h>
45543 #include <fetch.h>
45544 int
45545 main ()
45546 {
45547 struct url *u = fetchParseURL("file:///");
45548   ;
45549   return 0;
45550 }
45551 _ACEOF
45552 rm -f conftest.$ac_objext conftest$ac_exeext
45553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45554   (eval $ac_link) 2>conftest.er1
45555   ac_status=$?
45556   grep -v '^ *+' conftest.er1 >conftest.err
45557   rm -f conftest.er1
45558   cat conftest.err >&5
45559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45560   (exit $ac_status); } &&
45561          { ac_try='test -z "$ac_c_werror_flag"
45562                          || test ! -s conftest.err'
45563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45564   (eval $ac_try) 2>&5
45565   ac_status=$?
45566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45567   (exit $ac_status); }; } &&
45568          { ac_try='test -s conftest$ac_exeext'
45569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45570   (eval $ac_try) 2>&5
45571   ac_status=$?
45572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45573   (exit $ac_status); }; }; then
45574   ol_cv_lib_fetch=yes
45575 else
45576   echo "$as_me: failed program was:" >&5
45577 sed 's/^/| /' conftest.$ac_ext >&5
45578
45579 ol_cv_lib_fetch=no
45580 fi
45581 rm -f conftest.err conftest.$ac_objext \
45582       conftest$ac_exeext conftest.$ac_ext
45583 fi
45584 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45585 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45586 LIBS=$ol_LIBS
45587 if test $ol_cv_lib_fetch != no ; then
45588         ol_link_fetch="-lfetch -lcom_err"
45589
45590 cat >>confdefs.h <<\_ACEOF
45591 #define HAVE_FETCH 1
45592 _ACEOF
45593
45594 fi
45595
45596
45597         if test $ol_cv_lib_fetch != no ; then
45598                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45599                 ol_link_fetch=freebsd
45600
45601         elif test $ol_with_fetch != auto ; then
45602                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45603 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45604    { (exit 1); exit 1; }; }
45605         fi
45606 fi
45607
45608 if test $ol_enable_crypt != no ; then
45609         save_LIBS="$LIBS"
45610         LIBS="$TLS_LIBS $LIBS"
45611
45612         echo "$as_me:$LINENO: checking for crypt" >&5
45613 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45614 if test "${ac_cv_func_crypt+set}" = set; then
45615   echo $ECHO_N "(cached) $ECHO_C" >&6
45616 else
45617   cat >conftest.$ac_ext <<_ACEOF
45618 /* confdefs.h.  */
45619 _ACEOF
45620 cat confdefs.h >>conftest.$ac_ext
45621 cat >>conftest.$ac_ext <<_ACEOF
45622 /* end confdefs.h.  */
45623 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45625 #define crypt innocuous_crypt
45626
45627 /* System header to define __stub macros and hopefully few prototypes,
45628     which can conflict with char crypt (); below.
45629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45630     <limits.h> exists even on freestanding compilers.  */
45631
45632 #ifdef __STDC__
45633 # include <limits.h>
45634 #else
45635 # include <assert.h>
45636 #endif
45637
45638 #undef crypt
45639
45640 /* Override any gcc2 internal prototype to avoid an error.  */
45641 #ifdef __cplusplus
45642 extern "C"
45643 {
45644 #endif
45645 /* We use char because int might match the return type of a gcc2
45646    builtin and then its argument prototype would still apply.  */
45647 char crypt ();
45648 /* The GNU C library defines this for functions which it implements
45649     to always fail with ENOSYS.  Some functions are actually named
45650     something starting with __ and the normal name is an alias.  */
45651 #if defined (__stub_crypt) || defined (__stub___crypt)
45652 choke me
45653 #else
45654 char (*f) () = crypt;
45655 #endif
45656 #ifdef __cplusplus
45657 }
45658 #endif
45659
45660 int
45661 main ()
45662 {
45663 return f != crypt;
45664   ;
45665   return 0;
45666 }
45667 _ACEOF
45668 rm -f conftest.$ac_objext conftest$ac_exeext
45669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45670   (eval $ac_link) 2>conftest.er1
45671   ac_status=$?
45672   grep -v '^ *+' conftest.er1 >conftest.err
45673   rm -f conftest.er1
45674   cat conftest.err >&5
45675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45676   (exit $ac_status); } &&
45677          { ac_try='test -z "$ac_c_werror_flag"
45678                          || test ! -s conftest.err'
45679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45680   (eval $ac_try) 2>&5
45681   ac_status=$?
45682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45683   (exit $ac_status); }; } &&
45684          { ac_try='test -s conftest$ac_exeext'
45685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45686   (eval $ac_try) 2>&5
45687   ac_status=$?
45688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689   (exit $ac_status); }; }; then
45690   ac_cv_func_crypt=yes
45691 else
45692   echo "$as_me: failed program was:" >&5
45693 sed 's/^/| /' conftest.$ac_ext >&5
45694
45695 ac_cv_func_crypt=no
45696 fi
45697 rm -f conftest.err conftest.$ac_objext \
45698       conftest$ac_exeext conftest.$ac_ext
45699 fi
45700 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45701 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45702 if test $ac_cv_func_crypt = yes; then
45703   have_crypt=yes
45704 else
45705
45706                 LIBS="$save_LIBS"
45707                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45708 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45709 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45710   echo $ECHO_N "(cached) $ECHO_C" >&6
45711 else
45712   ac_check_lib_save_LIBS=$LIBS
45713 LIBS="-lcrypt  $LIBS"
45714 cat >conftest.$ac_ext <<_ACEOF
45715 /* confdefs.h.  */
45716 _ACEOF
45717 cat confdefs.h >>conftest.$ac_ext
45718 cat >>conftest.$ac_ext <<_ACEOF
45719 /* end confdefs.h.  */
45720
45721 /* Override any gcc2 internal prototype to avoid an error.  */
45722 #ifdef __cplusplus
45723 extern "C"
45724 #endif
45725 /* We use char because int might match the return type of a gcc2
45726    builtin and then its argument prototype would still apply.  */
45727 char crypt ();
45728 int
45729 main ()
45730 {
45731 crypt ();
45732   ;
45733   return 0;
45734 }
45735 _ACEOF
45736 rm -f conftest.$ac_objext conftest$ac_exeext
45737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45738   (eval $ac_link) 2>conftest.er1
45739   ac_status=$?
45740   grep -v '^ *+' conftest.er1 >conftest.err
45741   rm -f conftest.er1
45742   cat conftest.err >&5
45743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45744   (exit $ac_status); } &&
45745          { ac_try='test -z "$ac_c_werror_flag"
45746                          || test ! -s conftest.err'
45747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45748   (eval $ac_try) 2>&5
45749   ac_status=$?
45750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45751   (exit $ac_status); }; } &&
45752          { ac_try='test -s conftest$ac_exeext'
45753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45754   (eval $ac_try) 2>&5
45755   ac_status=$?
45756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757   (exit $ac_status); }; }; then
45758   ac_cv_lib_crypt_crypt=yes
45759 else
45760   echo "$as_me: failed program was:" >&5
45761 sed 's/^/| /' conftest.$ac_ext >&5
45762
45763 ac_cv_lib_crypt_crypt=no
45764 fi
45765 rm -f conftest.err conftest.$ac_objext \
45766       conftest$ac_exeext conftest.$ac_ext
45767 LIBS=$ac_check_lib_save_LIBS
45768 fi
45769 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45770 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45771 if test $ac_cv_lib_crypt_crypt = yes; then
45772   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45773                         have_crypt=yes
45774 else
45775   have_crypt=no
45776 fi
45777
45778 fi
45779
45780
45781         LIBS="$save_LIBS"
45782
45783         if test $have_crypt = yes ; then
45784
45785 cat >>confdefs.h <<\_ACEOF
45786 #define HAVE_CRYPT 1
45787 _ACEOF
45788
45789         else
45790                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45791 echo "$as_me: WARNING: could not find crypt" >&2;}
45792                 if test $ol_enable_crypt = yes ; then
45793                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45794 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45795    { (exit 1); exit 1; }; }
45796                 fi
45797
45798                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45799 echo "$as_me: WARNING: disabling crypt support" >&2;}
45800                 ol_enable_crypt=no
45801         fi
45802 fi
45803
45804 if test $ol_enable_proctitle != no ; then
45805         echo "$as_me:$LINENO: checking for setproctitle" >&5
45806 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45807 if test "${ac_cv_func_setproctitle+set}" = set; then
45808   echo $ECHO_N "(cached) $ECHO_C" >&6
45809 else
45810   cat >conftest.$ac_ext <<_ACEOF
45811 /* confdefs.h.  */
45812 _ACEOF
45813 cat confdefs.h >>conftest.$ac_ext
45814 cat >>conftest.$ac_ext <<_ACEOF
45815 /* end confdefs.h.  */
45816 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45818 #define setproctitle innocuous_setproctitle
45819
45820 /* System header to define __stub macros and hopefully few prototypes,
45821     which can conflict with char setproctitle (); below.
45822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45823     <limits.h> exists even on freestanding compilers.  */
45824
45825 #ifdef __STDC__
45826 # include <limits.h>
45827 #else
45828 # include <assert.h>
45829 #endif
45830
45831 #undef setproctitle
45832
45833 /* Override any gcc2 internal prototype to avoid an error.  */
45834 #ifdef __cplusplus
45835 extern "C"
45836 {
45837 #endif
45838 /* We use char because int might match the return type of a gcc2
45839    builtin and then its argument prototype would still apply.  */
45840 char setproctitle ();
45841 /* The GNU C library defines this for functions which it implements
45842     to always fail with ENOSYS.  Some functions are actually named
45843     something starting with __ and the normal name is an alias.  */
45844 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45845 choke me
45846 #else
45847 char (*f) () = setproctitle;
45848 #endif
45849 #ifdef __cplusplus
45850 }
45851 #endif
45852
45853 int
45854 main ()
45855 {
45856 return f != setproctitle;
45857   ;
45858   return 0;
45859 }
45860 _ACEOF
45861 rm -f conftest.$ac_objext conftest$ac_exeext
45862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45863   (eval $ac_link) 2>conftest.er1
45864   ac_status=$?
45865   grep -v '^ *+' conftest.er1 >conftest.err
45866   rm -f conftest.er1
45867   cat conftest.err >&5
45868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45869   (exit $ac_status); } &&
45870          { ac_try='test -z "$ac_c_werror_flag"
45871                          || test ! -s conftest.err'
45872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45873   (eval $ac_try) 2>&5
45874   ac_status=$?
45875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45876   (exit $ac_status); }; } &&
45877          { ac_try='test -s conftest$ac_exeext'
45878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45879   (eval $ac_try) 2>&5
45880   ac_status=$?
45881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45882   (exit $ac_status); }; }; then
45883   ac_cv_func_setproctitle=yes
45884 else
45885   echo "$as_me: failed program was:" >&5
45886 sed 's/^/| /' conftest.$ac_ext >&5
45887
45888 ac_cv_func_setproctitle=no
45889 fi
45890 rm -f conftest.err conftest.$ac_objext \
45891       conftest$ac_exeext conftest.$ac_ext
45892 fi
45893 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45894 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45895 if test $ac_cv_func_setproctitle = yes; then
45896   have_setproctitle=yes
45897 else
45898
45899                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45900 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45901 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45902   echo $ECHO_N "(cached) $ECHO_C" >&6
45903 else
45904   ac_check_lib_save_LIBS=$LIBS
45905 LIBS="-lutil  $LIBS"
45906 cat >conftest.$ac_ext <<_ACEOF
45907 /* confdefs.h.  */
45908 _ACEOF
45909 cat confdefs.h >>conftest.$ac_ext
45910 cat >>conftest.$ac_ext <<_ACEOF
45911 /* end confdefs.h.  */
45912
45913 /* Override any gcc2 internal prototype to avoid an error.  */
45914 #ifdef __cplusplus
45915 extern "C"
45916 #endif
45917 /* We use char because int might match the return type of a gcc2
45918    builtin and then its argument prototype would still apply.  */
45919 char setproctitle ();
45920 int
45921 main ()
45922 {
45923 setproctitle ();
45924   ;
45925   return 0;
45926 }
45927 _ACEOF
45928 rm -f conftest.$ac_objext conftest$ac_exeext
45929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45930   (eval $ac_link) 2>conftest.er1
45931   ac_status=$?
45932   grep -v '^ *+' conftest.er1 >conftest.err
45933   rm -f conftest.er1
45934   cat conftest.err >&5
45935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936   (exit $ac_status); } &&
45937          { ac_try='test -z "$ac_c_werror_flag"
45938                          || test ! -s conftest.err'
45939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45940   (eval $ac_try) 2>&5
45941   ac_status=$?
45942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45943   (exit $ac_status); }; } &&
45944          { ac_try='test -s conftest$ac_exeext'
45945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45946   (eval $ac_try) 2>&5
45947   ac_status=$?
45948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45949   (exit $ac_status); }; }; then
45950   ac_cv_lib_util_setproctitle=yes
45951 else
45952   echo "$as_me: failed program was:" >&5
45953 sed 's/^/| /' conftest.$ac_ext >&5
45954
45955 ac_cv_lib_util_setproctitle=no
45956 fi
45957 rm -f conftest.err conftest.$ac_objext \
45958       conftest$ac_exeext conftest.$ac_ext
45959 LIBS=$ac_check_lib_save_LIBS
45960 fi
45961 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
45962 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
45963 if test $ac_cv_lib_util_setproctitle = yes; then
45964   have_setproctitle=yes
45965                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
45966 else
45967   have_setproctitle=no
45968                         case $LIBOBJS in
45969     "setproctitle.$ac_objext"   | \
45970   *" setproctitle.$ac_objext"   | \
45971     "setproctitle.$ac_objext "* | \
45972   *" setproctitle.$ac_objext "* ) ;;
45973   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
45974 esac
45975
45976                         LIBSRCS="$LIBSRCS setproctitle.c"
45977 fi
45978
45979 fi
45980
45981
45982         if test $have_setproctitle = yes ; then
45983
45984 cat >>confdefs.h <<\_ACEOF
45985 #define HAVE_SETPROCTITLE 1
45986 _ACEOF
45987
45988         fi
45989 fi
45990
45991 if test $ol_enable_slp != no ; then
45992
45993 for ac_header in slp.h
45994 do
45995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45997   echo "$as_me:$LINENO: checking for $ac_header" >&5
45998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46000   echo $ECHO_N "(cached) $ECHO_C" >&6
46001 fi
46002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46004 else
46005   # Is the header compilable?
46006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46008 cat >conftest.$ac_ext <<_ACEOF
46009 /* confdefs.h.  */
46010 _ACEOF
46011 cat confdefs.h >>conftest.$ac_ext
46012 cat >>conftest.$ac_ext <<_ACEOF
46013 /* end confdefs.h.  */
46014 $ac_includes_default
46015 #include <$ac_header>
46016 _ACEOF
46017 rm -f conftest.$ac_objext
46018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46019   (eval $ac_compile) 2>conftest.er1
46020   ac_status=$?
46021   grep -v '^ *+' conftest.er1 >conftest.err
46022   rm -f conftest.er1
46023   cat conftest.err >&5
46024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46025   (exit $ac_status); } &&
46026          { ac_try='test -z "$ac_c_werror_flag"
46027                          || test ! -s conftest.err'
46028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46029   (eval $ac_try) 2>&5
46030   ac_status=$?
46031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46032   (exit $ac_status); }; } &&
46033          { ac_try='test -s conftest.$ac_objext'
46034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46035   (eval $ac_try) 2>&5
46036   ac_status=$?
46037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46038   (exit $ac_status); }; }; then
46039   ac_header_compiler=yes
46040 else
46041   echo "$as_me: failed program was:" >&5
46042 sed 's/^/| /' conftest.$ac_ext >&5
46043
46044 ac_header_compiler=no
46045 fi
46046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46048 echo "${ECHO_T}$ac_header_compiler" >&6
46049
46050 # Is the header present?
46051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46053 cat >conftest.$ac_ext <<_ACEOF
46054 /* confdefs.h.  */
46055 _ACEOF
46056 cat confdefs.h >>conftest.$ac_ext
46057 cat >>conftest.$ac_ext <<_ACEOF
46058 /* end confdefs.h.  */
46059 #include <$ac_header>
46060 _ACEOF
46061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46063   ac_status=$?
46064   grep -v '^ *+' conftest.er1 >conftest.err
46065   rm -f conftest.er1
46066   cat conftest.err >&5
46067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068   (exit $ac_status); } >/dev/null; then
46069   if test -s conftest.err; then
46070     ac_cpp_err=$ac_c_preproc_warn_flag
46071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46072   else
46073     ac_cpp_err=
46074   fi
46075 else
46076   ac_cpp_err=yes
46077 fi
46078 if test -z "$ac_cpp_err"; then
46079   ac_header_preproc=yes
46080 else
46081   echo "$as_me: failed program was:" >&5
46082 sed 's/^/| /' conftest.$ac_ext >&5
46083
46084   ac_header_preproc=no
46085 fi
46086 rm -f conftest.err conftest.$ac_ext
46087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46088 echo "${ECHO_T}$ac_header_preproc" >&6
46089
46090 # So?  What about this header?
46091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46092   yes:no: )
46093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46097     ac_header_preproc=yes
46098     ;;
46099   no:yes:* )
46100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46112     (
46113       cat <<\_ASBOX
46114 ## ------------------------------------------ ##
46115 ## Report this to the AC_PACKAGE_NAME lists.  ##
46116 ## ------------------------------------------ ##
46117 _ASBOX
46118     ) |
46119       sed "s/^/$as_me: WARNING:     /" >&2
46120     ;;
46121 esac
46122 echo "$as_me:$LINENO: checking for $ac_header" >&5
46123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46125   echo $ECHO_N "(cached) $ECHO_C" >&6
46126 else
46127   eval "$as_ac_Header=\$ac_header_preproc"
46128 fi
46129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46131
46132 fi
46133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46134   cat >>confdefs.h <<_ACEOF
46135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46136 _ACEOF
46137
46138 fi
46139
46140 done
46141
46142
46143         if test $ac_cv_header_slp_h = yes ; then
46144                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46145 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46146 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46147   echo $ECHO_N "(cached) $ECHO_C" >&6
46148 else
46149   ac_check_lib_save_LIBS=$LIBS
46150 LIBS="-lslp  $LIBS"
46151 cat >conftest.$ac_ext <<_ACEOF
46152 /* confdefs.h.  */
46153 _ACEOF
46154 cat confdefs.h >>conftest.$ac_ext
46155 cat >>conftest.$ac_ext <<_ACEOF
46156 /* end confdefs.h.  */
46157
46158 /* Override any gcc2 internal prototype to avoid an error.  */
46159 #ifdef __cplusplus
46160 extern "C"
46161 #endif
46162 /* We use char because int might match the return type of a gcc2
46163    builtin and then its argument prototype would still apply.  */
46164 char SLPOpen ();
46165 int
46166 main ()
46167 {
46168 SLPOpen ();
46169   ;
46170   return 0;
46171 }
46172 _ACEOF
46173 rm -f conftest.$ac_objext conftest$ac_exeext
46174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46175   (eval $ac_link) 2>conftest.er1
46176   ac_status=$?
46177   grep -v '^ *+' conftest.er1 >conftest.err
46178   rm -f conftest.er1
46179   cat conftest.err >&5
46180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46181   (exit $ac_status); } &&
46182          { ac_try='test -z "$ac_c_werror_flag"
46183                          || test ! -s conftest.err'
46184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46185   (eval $ac_try) 2>&5
46186   ac_status=$?
46187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46188   (exit $ac_status); }; } &&
46189          { ac_try='test -s conftest$ac_exeext'
46190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46191   (eval $ac_try) 2>&5
46192   ac_status=$?
46193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194   (exit $ac_status); }; }; then
46195   ac_cv_lib_slp_SLPOpen=yes
46196 else
46197   echo "$as_me: failed program was:" >&5
46198 sed 's/^/| /' conftest.$ac_ext >&5
46199
46200 ac_cv_lib_slp_SLPOpen=no
46201 fi
46202 rm -f conftest.err conftest.$ac_objext \
46203       conftest$ac_exeext conftest.$ac_ext
46204 LIBS=$ac_check_lib_save_LIBS
46205 fi
46206 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46207 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46208 if test $ac_cv_lib_slp_SLPOpen = yes; then
46209   have_slp=yes
46210 else
46211   have_slp=no
46212 fi
46213
46214                 if test $have_slp = yes ; then
46215
46216 cat >>confdefs.h <<\_ACEOF
46217 #define HAVE_SLP 1
46218 _ACEOF
46219
46220                         SLAPD_SLP_LIBS=-lslp
46221                 fi
46222
46223         elif test $ol_enable_slp = yes ; then
46224                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46225 echo "$as_me: error: SLP not found" >&2;}
46226    { (exit 1); exit 1; }; }
46227         fi
46228 fi
46229
46230 if test "$ol_with_multiple_precision" != "no" ; then
46231         ol_have_bignum=no
46232         ol_have_gmp=no
46233
46234
46235
46236 for ac_header in openssl/bn.h bn.h
46237 do
46238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46240   echo "$as_me:$LINENO: checking for $ac_header" >&5
46241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46243   echo $ECHO_N "(cached) $ECHO_C" >&6
46244 fi
46245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46247 else
46248   # Is the header compilable?
46249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46251 cat >conftest.$ac_ext <<_ACEOF
46252 /* confdefs.h.  */
46253 _ACEOF
46254 cat confdefs.h >>conftest.$ac_ext
46255 cat >>conftest.$ac_ext <<_ACEOF
46256 /* end confdefs.h.  */
46257 $ac_includes_default
46258 #include <$ac_header>
46259 _ACEOF
46260 rm -f conftest.$ac_objext
46261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46262   (eval $ac_compile) 2>conftest.er1
46263   ac_status=$?
46264   grep -v '^ *+' conftest.er1 >conftest.err
46265   rm -f conftest.er1
46266   cat conftest.err >&5
46267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46268   (exit $ac_status); } &&
46269          { ac_try='test -z "$ac_c_werror_flag"
46270                          || test ! -s conftest.err'
46271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46272   (eval $ac_try) 2>&5
46273   ac_status=$?
46274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46275   (exit $ac_status); }; } &&
46276          { ac_try='test -s conftest.$ac_objext'
46277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46278   (eval $ac_try) 2>&5
46279   ac_status=$?
46280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281   (exit $ac_status); }; }; then
46282   ac_header_compiler=yes
46283 else
46284   echo "$as_me: failed program was:" >&5
46285 sed 's/^/| /' conftest.$ac_ext >&5
46286
46287 ac_header_compiler=no
46288 fi
46289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46291 echo "${ECHO_T}$ac_header_compiler" >&6
46292
46293 # Is the header present?
46294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46296 cat >conftest.$ac_ext <<_ACEOF
46297 /* confdefs.h.  */
46298 _ACEOF
46299 cat confdefs.h >>conftest.$ac_ext
46300 cat >>conftest.$ac_ext <<_ACEOF
46301 /* end confdefs.h.  */
46302 #include <$ac_header>
46303 _ACEOF
46304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46306   ac_status=$?
46307   grep -v '^ *+' conftest.er1 >conftest.err
46308   rm -f conftest.er1
46309   cat conftest.err >&5
46310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46311   (exit $ac_status); } >/dev/null; then
46312   if test -s conftest.err; then
46313     ac_cpp_err=$ac_c_preproc_warn_flag
46314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46315   else
46316     ac_cpp_err=
46317   fi
46318 else
46319   ac_cpp_err=yes
46320 fi
46321 if test -z "$ac_cpp_err"; then
46322   ac_header_preproc=yes
46323 else
46324   echo "$as_me: failed program was:" >&5
46325 sed 's/^/| /' conftest.$ac_ext >&5
46326
46327   ac_header_preproc=no
46328 fi
46329 rm -f conftest.err conftest.$ac_ext
46330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46331 echo "${ECHO_T}$ac_header_preproc" >&6
46332
46333 # So?  What about this header?
46334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46335   yes:no: )
46336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46340     ac_header_preproc=yes
46341     ;;
46342   no:yes:* )
46343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46355     (
46356       cat <<\_ASBOX
46357 ## ------------------------------------------ ##
46358 ## Report this to the AC_PACKAGE_NAME lists.  ##
46359 ## ------------------------------------------ ##
46360 _ASBOX
46361     ) |
46362       sed "s/^/$as_me: WARNING:     /" >&2
46363     ;;
46364 esac
46365 echo "$as_me:$LINENO: checking for $ac_header" >&5
46366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46368   echo $ECHO_N "(cached) $ECHO_C" >&6
46369 else
46370   eval "$as_ac_Header=\$ac_header_preproc"
46371 fi
46372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46374
46375 fi
46376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46377   cat >>confdefs.h <<_ACEOF
46378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46379 _ACEOF
46380
46381 fi
46382
46383 done
46384
46385
46386
46387 for ac_header in openssl/crypto.h crypto.h
46388 do
46389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46391   echo "$as_me:$LINENO: checking for $ac_header" >&5
46392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46394   echo $ECHO_N "(cached) $ECHO_C" >&6
46395 fi
46396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46398 else
46399   # Is the header compilable?
46400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46402 cat >conftest.$ac_ext <<_ACEOF
46403 /* confdefs.h.  */
46404 _ACEOF
46405 cat confdefs.h >>conftest.$ac_ext
46406 cat >>conftest.$ac_ext <<_ACEOF
46407 /* end confdefs.h.  */
46408 $ac_includes_default
46409 #include <$ac_header>
46410 _ACEOF
46411 rm -f conftest.$ac_objext
46412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46413   (eval $ac_compile) 2>conftest.er1
46414   ac_status=$?
46415   grep -v '^ *+' conftest.er1 >conftest.err
46416   rm -f conftest.er1
46417   cat conftest.err >&5
46418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46419   (exit $ac_status); } &&
46420          { ac_try='test -z "$ac_c_werror_flag"
46421                          || test ! -s conftest.err'
46422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46423   (eval $ac_try) 2>&5
46424   ac_status=$?
46425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46426   (exit $ac_status); }; } &&
46427          { ac_try='test -s conftest.$ac_objext'
46428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46429   (eval $ac_try) 2>&5
46430   ac_status=$?
46431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46432   (exit $ac_status); }; }; then
46433   ac_header_compiler=yes
46434 else
46435   echo "$as_me: failed program was:" >&5
46436 sed 's/^/| /' conftest.$ac_ext >&5
46437
46438 ac_header_compiler=no
46439 fi
46440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46442 echo "${ECHO_T}$ac_header_compiler" >&6
46443
46444 # Is the header present?
46445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46447 cat >conftest.$ac_ext <<_ACEOF
46448 /* confdefs.h.  */
46449 _ACEOF
46450 cat confdefs.h >>conftest.$ac_ext
46451 cat >>conftest.$ac_ext <<_ACEOF
46452 /* end confdefs.h.  */
46453 #include <$ac_header>
46454 _ACEOF
46455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46457   ac_status=$?
46458   grep -v '^ *+' conftest.er1 >conftest.err
46459   rm -f conftest.er1
46460   cat conftest.err >&5
46461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46462   (exit $ac_status); } >/dev/null; then
46463   if test -s conftest.err; then
46464     ac_cpp_err=$ac_c_preproc_warn_flag
46465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46466   else
46467     ac_cpp_err=
46468   fi
46469 else
46470   ac_cpp_err=yes
46471 fi
46472 if test -z "$ac_cpp_err"; then
46473   ac_header_preproc=yes
46474 else
46475   echo "$as_me: failed program was:" >&5
46476 sed 's/^/| /' conftest.$ac_ext >&5
46477
46478   ac_header_preproc=no
46479 fi
46480 rm -f conftest.err conftest.$ac_ext
46481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46482 echo "${ECHO_T}$ac_header_preproc" >&6
46483
46484 # So?  What about this header?
46485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46486   yes:no: )
46487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46491     ac_header_preproc=yes
46492     ;;
46493   no:yes:* )
46494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46506     (
46507       cat <<\_ASBOX
46508 ## ------------------------------------------ ##
46509 ## Report this to the AC_PACKAGE_NAME lists.  ##
46510 ## ------------------------------------------ ##
46511 _ASBOX
46512     ) |
46513       sed "s/^/$as_me: WARNING:     /" >&2
46514     ;;
46515 esac
46516 echo "$as_me:$LINENO: checking for $ac_header" >&5
46517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46519   echo $ECHO_N "(cached) $ECHO_C" >&6
46520 else
46521   eval "$as_ac_Header=\$ac_header_preproc"
46522 fi
46523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46525
46526 fi
46527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46528   cat >>confdefs.h <<_ACEOF
46529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46530 _ACEOF
46531
46532 fi
46533
46534 done
46535
46536
46537 for ac_header in gmp.h
46538 do
46539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46541   echo "$as_me:$LINENO: checking for $ac_header" >&5
46542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46544   echo $ECHO_N "(cached) $ECHO_C" >&6
46545 fi
46546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46548 else
46549   # Is the header compilable?
46550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46552 cat >conftest.$ac_ext <<_ACEOF
46553 /* confdefs.h.  */
46554 _ACEOF
46555 cat confdefs.h >>conftest.$ac_ext
46556 cat >>conftest.$ac_ext <<_ACEOF
46557 /* end confdefs.h.  */
46558 $ac_includes_default
46559 #include <$ac_header>
46560 _ACEOF
46561 rm -f conftest.$ac_objext
46562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46563   (eval $ac_compile) 2>conftest.er1
46564   ac_status=$?
46565   grep -v '^ *+' conftest.er1 >conftest.err
46566   rm -f conftest.er1
46567   cat conftest.err >&5
46568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46569   (exit $ac_status); } &&
46570          { ac_try='test -z "$ac_c_werror_flag"
46571                          || test ! -s conftest.err'
46572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46573   (eval $ac_try) 2>&5
46574   ac_status=$?
46575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46576   (exit $ac_status); }; } &&
46577          { ac_try='test -s conftest.$ac_objext'
46578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46579   (eval $ac_try) 2>&5
46580   ac_status=$?
46581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46582   (exit $ac_status); }; }; then
46583   ac_header_compiler=yes
46584 else
46585   echo "$as_me: failed program was:" >&5
46586 sed 's/^/| /' conftest.$ac_ext >&5
46587
46588 ac_header_compiler=no
46589 fi
46590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46592 echo "${ECHO_T}$ac_header_compiler" >&6
46593
46594 # Is the header present?
46595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46597 cat >conftest.$ac_ext <<_ACEOF
46598 /* confdefs.h.  */
46599 _ACEOF
46600 cat confdefs.h >>conftest.$ac_ext
46601 cat >>conftest.$ac_ext <<_ACEOF
46602 /* end confdefs.h.  */
46603 #include <$ac_header>
46604 _ACEOF
46605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46607   ac_status=$?
46608   grep -v '^ *+' conftest.er1 >conftest.err
46609   rm -f conftest.er1
46610   cat conftest.err >&5
46611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46612   (exit $ac_status); } >/dev/null; then
46613   if test -s conftest.err; then
46614     ac_cpp_err=$ac_c_preproc_warn_flag
46615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46616   else
46617     ac_cpp_err=
46618   fi
46619 else
46620   ac_cpp_err=yes
46621 fi
46622 if test -z "$ac_cpp_err"; then
46623   ac_header_preproc=yes
46624 else
46625   echo "$as_me: failed program was:" >&5
46626 sed 's/^/| /' conftest.$ac_ext >&5
46627
46628   ac_header_preproc=no
46629 fi
46630 rm -f conftest.err conftest.$ac_ext
46631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46632 echo "${ECHO_T}$ac_header_preproc" >&6
46633
46634 # So?  What about this header?
46635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46636   yes:no: )
46637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46641     ac_header_preproc=yes
46642     ;;
46643   no:yes:* )
46644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46656     (
46657       cat <<\_ASBOX
46658 ## ------------------------------------------ ##
46659 ## Report this to the AC_PACKAGE_NAME lists.  ##
46660 ## ------------------------------------------ ##
46661 _ASBOX
46662     ) |
46663       sed "s/^/$as_me: WARNING:     /" >&2
46664     ;;
46665 esac
46666 echo "$as_me:$LINENO: checking for $ac_header" >&5
46667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46669   echo $ECHO_N "(cached) $ECHO_C" >&6
46670 else
46671   eval "$as_ac_Header=\$ac_header_preproc"
46672 fi
46673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46675
46676 fi
46677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46678   cat >>confdefs.h <<_ACEOF
46679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46680 _ACEOF
46681
46682 fi
46683
46684 done
46685
46686
46687         if test "$ol_with_tls" = "found" ; then
46688                 ol_have_bn_h=no
46689                 ol_have_crypto_h=no
46690
46691                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46692                                 -o "$ac_cv_header_bn_h" = "yes" ; then
46693                         ol_have_bn_h=yes
46694                 fi
46695
46696                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46697                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
46698                         ol_have_crypto_h=yes
46699                 fi
46700
46701                 if test "$ol_have_bn_h" = "yes" \
46702                                 -a "$ol_have_crypto_h" = "yes" ; then
46703                         ol_have_bignum=yes
46704                 fi
46705         fi
46706
46707         if test $ac_cv_header_gmp_h = yes ; then
46708                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46709 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46710 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46711   echo $ECHO_N "(cached) $ECHO_C" >&6
46712 else
46713   ac_check_lib_save_LIBS=$LIBS
46714 LIBS="-lgmp  $LIBS"
46715 cat >conftest.$ac_ext <<_ACEOF
46716 /* confdefs.h.  */
46717 _ACEOF
46718 cat confdefs.h >>conftest.$ac_ext
46719 cat >>conftest.$ac_ext <<_ACEOF
46720 /* end confdefs.h.  */
46721
46722 /* Override any gcc2 internal prototype to avoid an error.  */
46723 #ifdef __cplusplus
46724 extern "C"
46725 #endif
46726 /* We use char because int might match the return type of a gcc2
46727    builtin and then its argument prototype would still apply.  */
46728 char __gmpz_add_ui ();
46729 int
46730 main ()
46731 {
46732 __gmpz_add_ui ();
46733   ;
46734   return 0;
46735 }
46736 _ACEOF
46737 rm -f conftest.$ac_objext conftest$ac_exeext
46738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46739   (eval $ac_link) 2>conftest.er1
46740   ac_status=$?
46741   grep -v '^ *+' conftest.er1 >conftest.err
46742   rm -f conftest.er1
46743   cat conftest.err >&5
46744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46745   (exit $ac_status); } &&
46746          { ac_try='test -z "$ac_c_werror_flag"
46747                          || test ! -s conftest.err'
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); }; } &&
46753          { ac_try='test -s conftest$ac_exeext'
46754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46755   (eval $ac_try) 2>&5
46756   ac_status=$?
46757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46758   (exit $ac_status); }; }; then
46759   ac_cv_lib_gmp___gmpz_add_ui=yes
46760 else
46761   echo "$as_me: failed program was:" >&5
46762 sed 's/^/| /' conftest.$ac_ext >&5
46763
46764 ac_cv_lib_gmp___gmpz_add_ui=no
46765 fi
46766 rm -f conftest.err conftest.$ac_objext \
46767       conftest$ac_exeext conftest.$ac_ext
46768 LIBS=$ac_check_lib_save_LIBS
46769 fi
46770 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46771 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46772 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46773   have_gmp=yes
46774 else
46775   have_gmp=no
46776 fi
46777
46778                 if test $have_gmp = yes ; then
46779                         ol_have_gmp=yes
46780                 fi
46781         fi
46782
46783         echo "$as_me:$LINENO: checking for multiple precision support" >&5
46784 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46785
46786         ol_mp_support="none"
46787         case "$ol_with_multiple_precision" in
46788         auto)
46789                                                                                 if test "$ol_have_bignum" = "yes" ; then
46790                         ol_mp_support="bignum"
46791                 else
46792                         if test "$ol_have_gmp" = "yes" ; then
46793                                 ol_mp_support="gmp"
46794                         fi
46795                 fi
46796                 ;;
46797         bignum)
46798                 if test "$ol_have_bignum" != "yes" ; then
46799                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46800 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46801    { (exit 1); exit 1; }; }
46802                 fi
46803                 ol_mp_support="bignum"
46804                 ;;
46805         gmp)
46806                 if test "$ol_have_gmp" != "yes" ; then
46807                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
46808 echo "$as_me: error: GMP not available" >&2;}
46809    { (exit 1); exit 1; }; }
46810                 fi
46811                 ol_mp_support="gmp"
46812                 ;;
46813         yes)
46814                 if test "$ol_have_bignum" = "yes" ; then
46815                         ol_mp_support="bignum"
46816                 elif test "$ol_have_gmp" = "yes" ; then
46817                         ol_mp_support="gmp"
46818                 else
46819                         { { echo "$as_me:$LINENO: error: not available" >&5
46820 echo "$as_me: error: not available" >&2;}
46821    { (exit 1); exit 1; }; }
46822                 fi
46823                 ;;
46824         esac
46825
46826         case "$ol_mp_support" in
46827         bignum)
46828
46829 cat >>confdefs.h <<\_ACEOF
46830 #define HAVE_BIGNUM 1
46831 _ACEOF
46832
46833                 ;;
46834         gmp)
46835
46836 cat >>confdefs.h <<\_ACEOF
46837 #define HAVE_GMP 1
46838 _ACEOF
46839
46840                 SLAPD_GMP_LIBS=-lgmp
46841                 ;;
46842         none)
46843                 ;;
46844         esac
46845
46846         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46847 echo "${ECHO_T}$ol_mp_support" >&6
46848 fi
46849
46850
46851 echo "$as_me:$LINENO: checking long long" >&5
46852 echo $ECHO_N "checking long long... $ECHO_C" >&6
46853 if test "${ol_cv_type_long_long+set}" = set; then
46854   echo $ECHO_N "(cached) $ECHO_C" >&6
46855 else
46856
46857         cat >conftest.$ac_ext <<_ACEOF
46858 /* confdefs.h.  */
46859 _ACEOF
46860 cat confdefs.h >>conftest.$ac_ext
46861 cat >>conftest.$ac_ext <<_ACEOF
46862 /* end confdefs.h.  */
46863
46864 int
46865 main ()
46866 {
46867 long long x;
46868   ;
46869   return 0;
46870 }
46871 _ACEOF
46872 rm -f conftest.$ac_objext
46873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46874   (eval $ac_compile) 2>conftest.er1
46875   ac_status=$?
46876   grep -v '^ *+' conftest.er1 >conftest.err
46877   rm -f conftest.er1
46878   cat conftest.err >&5
46879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46880   (exit $ac_status); } &&
46881          { ac_try='test -z "$ac_c_werror_flag"
46882                          || test ! -s conftest.err'
46883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46884   (eval $ac_try) 2>&5
46885   ac_status=$?
46886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46887   (exit $ac_status); }; } &&
46888          { ac_try='test -s conftest.$ac_objext'
46889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46890   (eval $ac_try) 2>&5
46891   ac_status=$?
46892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46893   (exit $ac_status); }; }; then
46894   ol_cv_type_long_long=yes
46895 else
46896   echo "$as_me: failed program was:" >&5
46897 sed 's/^/| /' conftest.$ac_ext >&5
46898
46899 ol_cv_type_long_long=no
46900 fi
46901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46902 fi
46903 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46904 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46905 if test $ol_cv_type_long_long = yes; then
46906
46907 cat >>confdefs.h <<\_ACEOF
46908 #define HAVE_LONG_LONG 1
46909 _ACEOF
46910
46911 fi
46912
46913 echo "$as_me:$LINENO: checking for mode_t" >&5
46914 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46915 if test "${ac_cv_type_mode_t+set}" = set; then
46916   echo $ECHO_N "(cached) $ECHO_C" >&6
46917 else
46918   cat >conftest.$ac_ext <<_ACEOF
46919 /* confdefs.h.  */
46920 _ACEOF
46921 cat confdefs.h >>conftest.$ac_ext
46922 cat >>conftest.$ac_ext <<_ACEOF
46923 /* end confdefs.h.  */
46924 $ac_includes_default
46925 int
46926 main ()
46927 {
46928 if ((mode_t *) 0)
46929   return 0;
46930 if (sizeof (mode_t))
46931   return 0;
46932   ;
46933   return 0;
46934 }
46935 _ACEOF
46936 rm -f conftest.$ac_objext
46937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46938   (eval $ac_compile) 2>conftest.er1
46939   ac_status=$?
46940   grep -v '^ *+' conftest.er1 >conftest.err
46941   rm -f conftest.er1
46942   cat conftest.err >&5
46943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46944   (exit $ac_status); } &&
46945          { ac_try='test -z "$ac_c_werror_flag"
46946                          || test ! -s conftest.err'
46947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46948   (eval $ac_try) 2>&5
46949   ac_status=$?
46950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46951   (exit $ac_status); }; } &&
46952          { ac_try='test -s conftest.$ac_objext'
46953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46954   (eval $ac_try) 2>&5
46955   ac_status=$?
46956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46957   (exit $ac_status); }; }; then
46958   ac_cv_type_mode_t=yes
46959 else
46960   echo "$as_me: failed program was:" >&5
46961 sed 's/^/| /' conftest.$ac_ext >&5
46962
46963 ac_cv_type_mode_t=no
46964 fi
46965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46966 fi
46967 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46968 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
46969 if test $ac_cv_type_mode_t = yes; then
46970   :
46971 else
46972
46973 cat >>confdefs.h <<_ACEOF
46974 #define mode_t int
46975 _ACEOF
46976
46977 fi
46978
46979 echo "$as_me:$LINENO: checking for off_t" >&5
46980 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
46981 if test "${ac_cv_type_off_t+set}" = set; then
46982   echo $ECHO_N "(cached) $ECHO_C" >&6
46983 else
46984   cat >conftest.$ac_ext <<_ACEOF
46985 /* confdefs.h.  */
46986 _ACEOF
46987 cat confdefs.h >>conftest.$ac_ext
46988 cat >>conftest.$ac_ext <<_ACEOF
46989 /* end confdefs.h.  */
46990 $ac_includes_default
46991 int
46992 main ()
46993 {
46994 if ((off_t *) 0)
46995   return 0;
46996 if (sizeof (off_t))
46997   return 0;
46998   ;
46999   return 0;
47000 }
47001 _ACEOF
47002 rm -f conftest.$ac_objext
47003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47004   (eval $ac_compile) 2>conftest.er1
47005   ac_status=$?
47006   grep -v '^ *+' conftest.er1 >conftest.err
47007   rm -f conftest.er1
47008   cat conftest.err >&5
47009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47010   (exit $ac_status); } &&
47011          { ac_try='test -z "$ac_c_werror_flag"
47012                          || test ! -s conftest.err'
47013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47014   (eval $ac_try) 2>&5
47015   ac_status=$?
47016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47017   (exit $ac_status); }; } &&
47018          { ac_try='test -s conftest.$ac_objext'
47019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47020   (eval $ac_try) 2>&5
47021   ac_status=$?
47022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47023   (exit $ac_status); }; }; then
47024   ac_cv_type_off_t=yes
47025 else
47026   echo "$as_me: failed program was:" >&5
47027 sed 's/^/| /' conftest.$ac_ext >&5
47028
47029 ac_cv_type_off_t=no
47030 fi
47031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47032 fi
47033 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47034 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47035 if test $ac_cv_type_off_t = yes; then
47036   :
47037 else
47038
47039 cat >>confdefs.h <<_ACEOF
47040 #define off_t long
47041 _ACEOF
47042
47043 fi
47044
47045 echo "$as_me:$LINENO: checking for pid_t" >&5
47046 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47047 if test "${ac_cv_type_pid_t+set}" = set; then
47048   echo $ECHO_N "(cached) $ECHO_C" >&6
47049 else
47050   cat >conftest.$ac_ext <<_ACEOF
47051 /* confdefs.h.  */
47052 _ACEOF
47053 cat confdefs.h >>conftest.$ac_ext
47054 cat >>conftest.$ac_ext <<_ACEOF
47055 /* end confdefs.h.  */
47056 $ac_includes_default
47057 int
47058 main ()
47059 {
47060 if ((pid_t *) 0)
47061   return 0;
47062 if (sizeof (pid_t))
47063   return 0;
47064   ;
47065   return 0;
47066 }
47067 _ACEOF
47068 rm -f conftest.$ac_objext
47069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47070   (eval $ac_compile) 2>conftest.er1
47071   ac_status=$?
47072   grep -v '^ *+' conftest.er1 >conftest.err
47073   rm -f conftest.er1
47074   cat conftest.err >&5
47075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47076   (exit $ac_status); } &&
47077          { ac_try='test -z "$ac_c_werror_flag"
47078                          || test ! -s conftest.err'
47079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47080   (eval $ac_try) 2>&5
47081   ac_status=$?
47082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47083   (exit $ac_status); }; } &&
47084          { ac_try='test -s conftest.$ac_objext'
47085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47086   (eval $ac_try) 2>&5
47087   ac_status=$?
47088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47089   (exit $ac_status); }; }; then
47090   ac_cv_type_pid_t=yes
47091 else
47092   echo "$as_me: failed program was:" >&5
47093 sed 's/^/| /' conftest.$ac_ext >&5
47094
47095 ac_cv_type_pid_t=no
47096 fi
47097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47098 fi
47099 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47100 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47101 if test $ac_cv_type_pid_t = yes; then
47102   :
47103 else
47104
47105 cat >>confdefs.h <<_ACEOF
47106 #define pid_t int
47107 _ACEOF
47108
47109 fi
47110
47111 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47112 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47113 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47114   echo $ECHO_N "(cached) $ECHO_C" >&6
47115 else
47116   cat >conftest.$ac_ext <<_ACEOF
47117 /* confdefs.h.  */
47118 _ACEOF
47119 cat confdefs.h >>conftest.$ac_ext
47120 cat >>conftest.$ac_ext <<_ACEOF
47121 /* end confdefs.h.  */
47122 $ac_includes_default
47123 int
47124 main ()
47125 {
47126 if ((ptrdiff_t *) 0)
47127   return 0;
47128 if (sizeof (ptrdiff_t))
47129   return 0;
47130   ;
47131   return 0;
47132 }
47133 _ACEOF
47134 rm -f conftest.$ac_objext
47135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47136   (eval $ac_compile) 2>conftest.er1
47137   ac_status=$?
47138   grep -v '^ *+' conftest.er1 >conftest.err
47139   rm -f conftest.er1
47140   cat conftest.err >&5
47141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47142   (exit $ac_status); } &&
47143          { ac_try='test -z "$ac_c_werror_flag"
47144                          || test ! -s conftest.err'
47145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47146   (eval $ac_try) 2>&5
47147   ac_status=$?
47148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47149   (exit $ac_status); }; } &&
47150          { ac_try='test -s conftest.$ac_objext'
47151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47152   (eval $ac_try) 2>&5
47153   ac_status=$?
47154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47155   (exit $ac_status); }; }; then
47156   ac_cv_type_ptrdiff_t=yes
47157 else
47158   echo "$as_me: failed program was:" >&5
47159 sed 's/^/| /' conftest.$ac_ext >&5
47160
47161 ac_cv_type_ptrdiff_t=no
47162 fi
47163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47164 fi
47165 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47166 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47167 if test $ac_cv_type_ptrdiff_t = yes; then
47168
47169 cat >>confdefs.h <<_ACEOF
47170 #define HAVE_PTRDIFF_T 1
47171 _ACEOF
47172
47173
47174 fi
47175
47176 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47177 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47178 if test "${ac_cv_type_signal+set}" = set; then
47179   echo $ECHO_N "(cached) $ECHO_C" >&6
47180 else
47181   cat >conftest.$ac_ext <<_ACEOF
47182 /* confdefs.h.  */
47183 _ACEOF
47184 cat confdefs.h >>conftest.$ac_ext
47185 cat >>conftest.$ac_ext <<_ACEOF
47186 /* end confdefs.h.  */
47187 #include <sys/types.h>
47188 #include <signal.h>
47189 #ifdef signal
47190 # undef signal
47191 #endif
47192 #ifdef __cplusplus
47193 extern "C" void (*signal (int, void (*)(int)))(int);
47194 #else
47195 void (*signal ()) ();
47196 #endif
47197
47198 int
47199 main ()
47200 {
47201 int i;
47202   ;
47203   return 0;
47204 }
47205 _ACEOF
47206 rm -f conftest.$ac_objext
47207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47208   (eval $ac_compile) 2>conftest.er1
47209   ac_status=$?
47210   grep -v '^ *+' conftest.er1 >conftest.err
47211   rm -f conftest.er1
47212   cat conftest.err >&5
47213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47214   (exit $ac_status); } &&
47215          { ac_try='test -z "$ac_c_werror_flag"
47216                          || test ! -s conftest.err'
47217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47218   (eval $ac_try) 2>&5
47219   ac_status=$?
47220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47221   (exit $ac_status); }; } &&
47222          { ac_try='test -s conftest.$ac_objext'
47223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47224   (eval $ac_try) 2>&5
47225   ac_status=$?
47226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47227   (exit $ac_status); }; }; then
47228   ac_cv_type_signal=void
47229 else
47230   echo "$as_me: failed program was:" >&5
47231 sed 's/^/| /' conftest.$ac_ext >&5
47232
47233 ac_cv_type_signal=int
47234 fi
47235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47236 fi
47237 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47238 echo "${ECHO_T}$ac_cv_type_signal" >&6
47239
47240 cat >>confdefs.h <<_ACEOF
47241 #define RETSIGTYPE $ac_cv_type_signal
47242 _ACEOF
47243
47244
47245 echo "$as_me:$LINENO: checking for size_t" >&5
47246 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47247 if test "${ac_cv_type_size_t+set}" = set; then
47248   echo $ECHO_N "(cached) $ECHO_C" >&6
47249 else
47250   cat >conftest.$ac_ext <<_ACEOF
47251 /* confdefs.h.  */
47252 _ACEOF
47253 cat confdefs.h >>conftest.$ac_ext
47254 cat >>conftest.$ac_ext <<_ACEOF
47255 /* end confdefs.h.  */
47256 $ac_includes_default
47257 int
47258 main ()
47259 {
47260 if ((size_t *) 0)
47261   return 0;
47262 if (sizeof (size_t))
47263   return 0;
47264   ;
47265   return 0;
47266 }
47267 _ACEOF
47268 rm -f conftest.$ac_objext
47269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47270   (eval $ac_compile) 2>conftest.er1
47271   ac_status=$?
47272   grep -v '^ *+' conftest.er1 >conftest.err
47273   rm -f conftest.er1
47274   cat conftest.err >&5
47275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47276   (exit $ac_status); } &&
47277          { ac_try='test -z "$ac_c_werror_flag"
47278                          || test ! -s conftest.err'
47279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47280   (eval $ac_try) 2>&5
47281   ac_status=$?
47282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47283   (exit $ac_status); }; } &&
47284          { ac_try='test -s conftest.$ac_objext'
47285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47286   (eval $ac_try) 2>&5
47287   ac_status=$?
47288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47289   (exit $ac_status); }; }; then
47290   ac_cv_type_size_t=yes
47291 else
47292   echo "$as_me: failed program was:" >&5
47293 sed 's/^/| /' conftest.$ac_ext >&5
47294
47295 ac_cv_type_size_t=no
47296 fi
47297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47298 fi
47299 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47300 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47301 if test $ac_cv_type_size_t = yes; then
47302   :
47303 else
47304
47305 cat >>confdefs.h <<_ACEOF
47306 #define size_t unsigned
47307 _ACEOF
47308
47309 fi
47310
47311
47312 echo "$as_me:$LINENO: checking for ssize_t" >&5
47313 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47314 if test "${ac_cv_type_ssize_t+set}" = set; then
47315   echo $ECHO_N "(cached) $ECHO_C" >&6
47316 else
47317   cat >conftest.$ac_ext <<_ACEOF
47318 /* confdefs.h.  */
47319 _ACEOF
47320 cat confdefs.h >>conftest.$ac_ext
47321 cat >>conftest.$ac_ext <<_ACEOF
47322 /* end confdefs.h.  */
47323 $ac_includes_default
47324 int
47325 main ()
47326 {
47327 if ((ssize_t *) 0)
47328   return 0;
47329 if (sizeof (ssize_t))
47330   return 0;
47331   ;
47332   return 0;
47333 }
47334 _ACEOF
47335 rm -f conftest.$ac_objext
47336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47337   (eval $ac_compile) 2>conftest.er1
47338   ac_status=$?
47339   grep -v '^ *+' conftest.er1 >conftest.err
47340   rm -f conftest.er1
47341   cat conftest.err >&5
47342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47343   (exit $ac_status); } &&
47344          { ac_try='test -z "$ac_c_werror_flag"
47345                          || test ! -s conftest.err'
47346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47347   (eval $ac_try) 2>&5
47348   ac_status=$?
47349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47350   (exit $ac_status); }; } &&
47351          { ac_try='test -s conftest.$ac_objext'
47352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47353   (eval $ac_try) 2>&5
47354   ac_status=$?
47355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47356   (exit $ac_status); }; }; then
47357   ac_cv_type_ssize_t=yes
47358 else
47359   echo "$as_me: failed program was:" >&5
47360 sed 's/^/| /' conftest.$ac_ext >&5
47361
47362 ac_cv_type_ssize_t=no
47363 fi
47364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47365 fi
47366 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47367 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47368 if test $ac_cv_type_ssize_t = yes; then
47369   :
47370 else
47371
47372 cat >>confdefs.h <<_ACEOF
47373 #define ssize_t signed int
47374 _ACEOF
47375
47376 fi
47377
47378 echo "$as_me:$LINENO: checking for caddr_t" >&5
47379 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47380 if test "${ac_cv_type_caddr_t+set}" = set; then
47381   echo $ECHO_N "(cached) $ECHO_C" >&6
47382 else
47383   cat >conftest.$ac_ext <<_ACEOF
47384 /* confdefs.h.  */
47385 _ACEOF
47386 cat confdefs.h >>conftest.$ac_ext
47387 cat >>conftest.$ac_ext <<_ACEOF
47388 /* end confdefs.h.  */
47389 $ac_includes_default
47390 int
47391 main ()
47392 {
47393 if ((caddr_t *) 0)
47394   return 0;
47395 if (sizeof (caddr_t))
47396   return 0;
47397   ;
47398   return 0;
47399 }
47400 _ACEOF
47401 rm -f conftest.$ac_objext
47402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47403   (eval $ac_compile) 2>conftest.er1
47404   ac_status=$?
47405   grep -v '^ *+' conftest.er1 >conftest.err
47406   rm -f conftest.er1
47407   cat conftest.err >&5
47408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47409   (exit $ac_status); } &&
47410          { ac_try='test -z "$ac_c_werror_flag"
47411                          || test ! -s conftest.err'
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); }; } &&
47417          { ac_try='test -s conftest.$ac_objext'
47418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47419   (eval $ac_try) 2>&5
47420   ac_status=$?
47421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47422   (exit $ac_status); }; }; then
47423   ac_cv_type_caddr_t=yes
47424 else
47425   echo "$as_me: failed program was:" >&5
47426 sed 's/^/| /' conftest.$ac_ext >&5
47427
47428 ac_cv_type_caddr_t=no
47429 fi
47430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47431 fi
47432 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47433 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47434 if test $ac_cv_type_caddr_t = yes; then
47435   :
47436 else
47437
47438 cat >>confdefs.h <<_ACEOF
47439 #define caddr_t char *
47440 _ACEOF
47441
47442 fi
47443
47444
47445 echo "$as_me:$LINENO: checking for socklen_t" >&5
47446 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47447 if test "${ol_cv_type_socklen_t+set}" = set; then
47448   echo $ECHO_N "(cached) $ECHO_C" >&6
47449 else
47450   cat >conftest.$ac_ext <<_ACEOF
47451 /* confdefs.h.  */
47452 _ACEOF
47453 cat confdefs.h >>conftest.$ac_ext
47454 cat >>conftest.$ac_ext <<_ACEOF
47455 /* end confdefs.h.  */
47456
47457 #ifdef HAVE_SYS_TYPES_H
47458 #include <sys/types.h>
47459 #endif
47460 #ifdef HAVE_SYS_SOCKET_H
47461 #include <sys/socket.h>
47462 #endif
47463
47464 int
47465 main ()
47466 {
47467 socklen_t len;
47468   ;
47469   return 0;
47470 }
47471 _ACEOF
47472 rm -f conftest.$ac_objext
47473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47474   (eval $ac_compile) 2>conftest.er1
47475   ac_status=$?
47476   grep -v '^ *+' conftest.er1 >conftest.err
47477   rm -f conftest.er1
47478   cat conftest.err >&5
47479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47480   (exit $ac_status); } &&
47481          { ac_try='test -z "$ac_c_werror_flag"
47482                          || test ! -s conftest.err'
47483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47484   (eval $ac_try) 2>&5
47485   ac_status=$?
47486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47487   (exit $ac_status); }; } &&
47488          { ac_try='test -s conftest.$ac_objext'
47489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47490   (eval $ac_try) 2>&5
47491   ac_status=$?
47492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47493   (exit $ac_status); }; }; then
47494   ol_cv_type_socklen_t=yes
47495 else
47496   echo "$as_me: failed program was:" >&5
47497 sed 's/^/| /' conftest.$ac_ext >&5
47498
47499 ol_cv_type_socklen_t=no
47500 fi
47501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47502 fi
47503 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47504 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47505   if test $ol_cv_type_socklen_t = no; then
47506
47507 cat >>confdefs.h <<\_ACEOF
47508 #define socklen_t int
47509 _ACEOF
47510
47511   fi
47512
47513 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47514 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47515 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47516   echo $ECHO_N "(cached) $ECHO_C" >&6
47517 else
47518   cat >conftest.$ac_ext <<_ACEOF
47519 /* confdefs.h.  */
47520 _ACEOF
47521 cat confdefs.h >>conftest.$ac_ext
47522 cat >>conftest.$ac_ext <<_ACEOF
47523 /* end confdefs.h.  */
47524 $ac_includes_default
47525 int
47526 main ()
47527 {
47528 static struct stat ac_aggr;
47529 if (ac_aggr.st_blksize)
47530 return 0;
47531   ;
47532   return 0;
47533 }
47534 _ACEOF
47535 rm -f conftest.$ac_objext
47536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47537   (eval $ac_compile) 2>conftest.er1
47538   ac_status=$?
47539   grep -v '^ *+' conftest.er1 >conftest.err
47540   rm -f conftest.er1
47541   cat conftest.err >&5
47542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47543   (exit $ac_status); } &&
47544          { ac_try='test -z "$ac_c_werror_flag"
47545                          || test ! -s conftest.err'
47546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47547   (eval $ac_try) 2>&5
47548   ac_status=$?
47549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47550   (exit $ac_status); }; } &&
47551          { ac_try='test -s conftest.$ac_objext'
47552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47553   (eval $ac_try) 2>&5
47554   ac_status=$?
47555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47556   (exit $ac_status); }; }; then
47557   ac_cv_member_struct_stat_st_blksize=yes
47558 else
47559   echo "$as_me: failed program was:" >&5
47560 sed 's/^/| /' conftest.$ac_ext >&5
47561
47562 cat >conftest.$ac_ext <<_ACEOF
47563 /* confdefs.h.  */
47564 _ACEOF
47565 cat confdefs.h >>conftest.$ac_ext
47566 cat >>conftest.$ac_ext <<_ACEOF
47567 /* end confdefs.h.  */
47568 $ac_includes_default
47569 int
47570 main ()
47571 {
47572 static struct stat ac_aggr;
47573 if (sizeof ac_aggr.st_blksize)
47574 return 0;
47575   ;
47576   return 0;
47577 }
47578 _ACEOF
47579 rm -f conftest.$ac_objext
47580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47581   (eval $ac_compile) 2>conftest.er1
47582   ac_status=$?
47583   grep -v '^ *+' conftest.er1 >conftest.err
47584   rm -f conftest.er1
47585   cat conftest.err >&5
47586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47587   (exit $ac_status); } &&
47588          { ac_try='test -z "$ac_c_werror_flag"
47589                          || test ! -s conftest.err'
47590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47591   (eval $ac_try) 2>&5
47592   ac_status=$?
47593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47594   (exit $ac_status); }; } &&
47595          { ac_try='test -s conftest.$ac_objext'
47596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47597   (eval $ac_try) 2>&5
47598   ac_status=$?
47599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47600   (exit $ac_status); }; }; then
47601   ac_cv_member_struct_stat_st_blksize=yes
47602 else
47603   echo "$as_me: failed program was:" >&5
47604 sed 's/^/| /' conftest.$ac_ext >&5
47605
47606 ac_cv_member_struct_stat_st_blksize=no
47607 fi
47608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47609 fi
47610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47611 fi
47612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47613 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47614 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47615
47616 cat >>confdefs.h <<_ACEOF
47617 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47618 _ACEOF
47619
47620
47621 fi
47622
47623 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47625 if test "${ac_cv_header_time+set}" = set; then
47626   echo $ECHO_N "(cached) $ECHO_C" >&6
47627 else
47628   cat >conftest.$ac_ext <<_ACEOF
47629 /* confdefs.h.  */
47630 _ACEOF
47631 cat confdefs.h >>conftest.$ac_ext
47632 cat >>conftest.$ac_ext <<_ACEOF
47633 /* end confdefs.h.  */
47634 #include <sys/types.h>
47635 #include <sys/time.h>
47636 #include <time.h>
47637
47638 int
47639 main ()
47640 {
47641 if ((struct tm *) 0)
47642 return 0;
47643   ;
47644   return 0;
47645 }
47646 _ACEOF
47647 rm -f conftest.$ac_objext
47648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47649   (eval $ac_compile) 2>conftest.er1
47650   ac_status=$?
47651   grep -v '^ *+' conftest.er1 >conftest.err
47652   rm -f conftest.er1
47653   cat conftest.err >&5
47654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47655   (exit $ac_status); } &&
47656          { ac_try='test -z "$ac_c_werror_flag"
47657                          || test ! -s conftest.err'
47658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47659   (eval $ac_try) 2>&5
47660   ac_status=$?
47661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47662   (exit $ac_status); }; } &&
47663          { ac_try='test -s conftest.$ac_objext'
47664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47665   (eval $ac_try) 2>&5
47666   ac_status=$?
47667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47668   (exit $ac_status); }; }; then
47669   ac_cv_header_time=yes
47670 else
47671   echo "$as_me: failed program was:" >&5
47672 sed 's/^/| /' conftest.$ac_ext >&5
47673
47674 ac_cv_header_time=no
47675 fi
47676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47677 fi
47678 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47679 echo "${ECHO_T}$ac_cv_header_time" >&6
47680 if test $ac_cv_header_time = yes; then
47681
47682 cat >>confdefs.h <<\_ACEOF
47683 #define TIME_WITH_SYS_TIME 1
47684 _ACEOF
47685
47686 fi
47687
47688 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47689 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47690 if test "${ac_cv_struct_tm+set}" = set; then
47691   echo $ECHO_N "(cached) $ECHO_C" >&6
47692 else
47693   cat >conftest.$ac_ext <<_ACEOF
47694 /* confdefs.h.  */
47695 _ACEOF
47696 cat confdefs.h >>conftest.$ac_ext
47697 cat >>conftest.$ac_ext <<_ACEOF
47698 /* end confdefs.h.  */
47699 #include <sys/types.h>
47700 #include <time.h>
47701
47702 int
47703 main ()
47704 {
47705 struct tm *tp; tp->tm_sec;
47706   ;
47707   return 0;
47708 }
47709 _ACEOF
47710 rm -f conftest.$ac_objext
47711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47712   (eval $ac_compile) 2>conftest.er1
47713   ac_status=$?
47714   grep -v '^ *+' conftest.er1 >conftest.err
47715   rm -f conftest.er1
47716   cat conftest.err >&5
47717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47718   (exit $ac_status); } &&
47719          { ac_try='test -z "$ac_c_werror_flag"
47720                          || test ! -s conftest.err'
47721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47722   (eval $ac_try) 2>&5
47723   ac_status=$?
47724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47725   (exit $ac_status); }; } &&
47726          { ac_try='test -s conftest.$ac_objext'
47727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47728   (eval $ac_try) 2>&5
47729   ac_status=$?
47730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47731   (exit $ac_status); }; }; then
47732   ac_cv_struct_tm=time.h
47733 else
47734   echo "$as_me: failed program was:" >&5
47735 sed 's/^/| /' conftest.$ac_ext >&5
47736
47737 ac_cv_struct_tm=sys/time.h
47738 fi
47739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47740 fi
47741 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47742 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47743 if test $ac_cv_struct_tm = sys/time.h; then
47744
47745 cat >>confdefs.h <<\_ACEOF
47746 #define TM_IN_SYS_TIME 1
47747 _ACEOF
47748
47749 fi
47750
47751 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47752 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47753 if test "${ac_cv_type_uid_t+set}" = set; then
47754   echo $ECHO_N "(cached) $ECHO_C" >&6
47755 else
47756   cat >conftest.$ac_ext <<_ACEOF
47757 /* confdefs.h.  */
47758 _ACEOF
47759 cat confdefs.h >>conftest.$ac_ext
47760 cat >>conftest.$ac_ext <<_ACEOF
47761 /* end confdefs.h.  */
47762 #include <sys/types.h>
47763
47764 _ACEOF
47765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47766   $EGREP "uid_t" >/dev/null 2>&1; then
47767   ac_cv_type_uid_t=yes
47768 else
47769   ac_cv_type_uid_t=no
47770 fi
47771 rm -f conftest*
47772
47773 fi
47774 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47775 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47776 if test $ac_cv_type_uid_t = no; then
47777
47778 cat >>confdefs.h <<\_ACEOF
47779 #define uid_t int
47780 _ACEOF
47781
47782
47783 cat >>confdefs.h <<\_ACEOF
47784 #define gid_t int
47785 _ACEOF
47786
47787 fi
47788
47789 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47790 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47791 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47792   echo $ECHO_N "(cached) $ECHO_C" >&6
47793 else
47794   cat >conftest.$ac_ext <<_ACEOF
47795 /* confdefs.h.  */
47796 _ACEOF
47797 cat confdefs.h >>conftest.$ac_ext
47798 cat >>conftest.$ac_ext <<_ACEOF
47799 /* end confdefs.h.  */
47800 #include <signal.h>
47801 int
47802 main ()
47803 {
47804 sig_atomic_t atomic;
47805   ;
47806   return 0;
47807 }
47808 _ACEOF
47809 rm -f conftest.$ac_objext
47810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47811   (eval $ac_compile) 2>conftest.er1
47812   ac_status=$?
47813   grep -v '^ *+' conftest.er1 >conftest.err
47814   rm -f conftest.er1
47815   cat conftest.err >&5
47816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47817   (exit $ac_status); } &&
47818          { ac_try='test -z "$ac_c_werror_flag"
47819                          || test ! -s conftest.err'
47820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47821   (eval $ac_try) 2>&5
47822   ac_status=$?
47823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47824   (exit $ac_status); }; } &&
47825          { ac_try='test -s conftest.$ac_objext'
47826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47827   (eval $ac_try) 2>&5
47828   ac_status=$?
47829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47830   (exit $ac_status); }; }; then
47831   ol_cv_type_sig_atomic_t=yes
47832 else
47833   echo "$as_me: failed program was:" >&5
47834 sed 's/^/| /' conftest.$ac_ext >&5
47835
47836 ol_cv_type_sig_atomic_t=no
47837 fi
47838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47839 fi
47840 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47841 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47842   if test $ol_cv_type_sig_atomic_t = no; then
47843
47844 cat >>confdefs.h <<\_ACEOF
47845 #define sig_atomic_t int
47846 _ACEOF
47847
47848   fi
47849
47850
47851
47852 # test for pw_gecos in struct passwd
47853 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47854 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47855 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47856   echo $ECHO_N "(cached) $ECHO_C" >&6
47857 else
47858
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 #include <pwd.h>
47866 int
47867 main ()
47868 {
47869
47870         struct passwd pwd;
47871         pwd.pw_gecos = pwd.pw_name;
47872
47873   ;
47874   return 0;
47875 }
47876 _ACEOF
47877 rm -f conftest.$ac_objext
47878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47879   (eval $ac_compile) 2>conftest.er1
47880   ac_status=$?
47881   grep -v '^ *+' conftest.er1 >conftest.err
47882   rm -f conftest.er1
47883   cat conftest.err >&5
47884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47885   (exit $ac_status); } &&
47886          { ac_try='test -z "$ac_c_werror_flag"
47887                          || test ! -s conftest.err'
47888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47889   (eval $ac_try) 2>&5
47890   ac_status=$?
47891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47892   (exit $ac_status); }; } &&
47893          { ac_try='test -s conftest.$ac_objext'
47894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47895   (eval $ac_try) 2>&5
47896   ac_status=$?
47897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47898   (exit $ac_status); }; }; then
47899   ol_cv_struct_passwd_pw_gecos=yes
47900 else
47901   echo "$as_me: failed program was:" >&5
47902 sed 's/^/| /' conftest.$ac_ext >&5
47903
47904 ol_cv_struct_passwd_pw_gecos=no
47905 fi
47906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47907 fi
47908 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47909 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47910 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47911
47912 cat >>confdefs.h <<\_ACEOF
47913 #define HAVE_PW_GECOS 1
47914 _ACEOF
47915
47916 fi
47917
47918 # test for pw_passwd in struct passwd
47919 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47920 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47921 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47922   echo $ECHO_N "(cached) $ECHO_C" >&6
47923 else
47924
47925         cat >conftest.$ac_ext <<_ACEOF
47926 /* confdefs.h.  */
47927 _ACEOF
47928 cat confdefs.h >>conftest.$ac_ext
47929 cat >>conftest.$ac_ext <<_ACEOF
47930 /* end confdefs.h.  */
47931 #include <pwd.h>
47932 int
47933 main ()
47934 {
47935
47936         struct passwd pwd;
47937         pwd.pw_passwd = pwd.pw_name;
47938
47939   ;
47940   return 0;
47941 }
47942 _ACEOF
47943 rm -f conftest.$ac_objext
47944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47945   (eval $ac_compile) 2>conftest.er1
47946   ac_status=$?
47947   grep -v '^ *+' conftest.er1 >conftest.err
47948   rm -f conftest.er1
47949   cat conftest.err >&5
47950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47951   (exit $ac_status); } &&
47952          { ac_try='test -z "$ac_c_werror_flag"
47953                          || test ! -s conftest.err'
47954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47955   (eval $ac_try) 2>&5
47956   ac_status=$?
47957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47958   (exit $ac_status); }; } &&
47959          { ac_try='test -s conftest.$ac_objext'
47960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47961   (eval $ac_try) 2>&5
47962   ac_status=$?
47963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47964   (exit $ac_status); }; }; then
47965   ol_cv_struct_passwd_pw_passwd=yes
47966 else
47967   echo "$as_me: failed program was:" >&5
47968 sed 's/^/| /' conftest.$ac_ext >&5
47969
47970 ol_cv_struct_passwd_pw_passwd=no
47971 fi
47972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47973 fi
47974 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
47975 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
47976 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
47977
47978 cat >>confdefs.h <<\_ACEOF
47979 #define HAVE_PW_PASSWD 1
47980 _ACEOF
47981
47982 fi
47983
47984
47985 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
47986 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
47987 if test "${ol_cv_c_upper_lower+set}" = set; then
47988   echo $ECHO_N "(cached) $ECHO_C" >&6
47989 else
47990
47991         if test "$cross_compiling" = yes; then
47992   ol_cv_c_upper_lower=safe
47993 else
47994   cat >conftest.$ac_ext <<_ACEOF
47995 /* confdefs.h.  */
47996 _ACEOF
47997 cat confdefs.h >>conftest.$ac_ext
47998 cat >>conftest.$ac_ext <<_ACEOF
47999 /* end confdefs.h.  */
48000
48001 #include <ctype.h>
48002 main()
48003 {
48004         if ('C' == toupper('C'))
48005                 exit(0);
48006         else
48007                 exit(1);
48008 }
48009 _ACEOF
48010 rm -f conftest$ac_exeext
48011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48012   (eval $ac_link) 2>&5
48013   ac_status=$?
48014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48017   (eval $ac_try) 2>&5
48018   ac_status=$?
48019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48020   (exit $ac_status); }; }; then
48021   ol_cv_c_upper_lower=no
48022 else
48023   echo "$as_me: program exited with status $ac_status" >&5
48024 echo "$as_me: failed program was:" >&5
48025 sed 's/^/| /' conftest.$ac_ext >&5
48026
48027 ( exit $ac_status )
48028 ol_cv_c_upper_lower=yes
48029 fi
48030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48031 fi
48032 fi
48033 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48034 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48035 if test $ol_cv_c_upper_lower != no ; then
48036
48037 cat >>confdefs.h <<\_ACEOF
48038 #define C_UPPER_LOWER 1
48039 _ACEOF
48040
48041 fi
48042
48043 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48044 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48045 if test "${ac_cv_c_const+set}" = set; then
48046   echo $ECHO_N "(cached) $ECHO_C" >&6
48047 else
48048   cat >conftest.$ac_ext <<_ACEOF
48049 /* confdefs.h.  */
48050 _ACEOF
48051 cat confdefs.h >>conftest.$ac_ext
48052 cat >>conftest.$ac_ext <<_ACEOF
48053 /* end confdefs.h.  */
48054
48055 int
48056 main ()
48057 {
48058 /* FIXME: Include the comments suggested by Paul. */
48059 #ifndef __cplusplus
48060   /* Ultrix mips cc rejects this.  */
48061   typedef int charset[2];
48062   const charset x;
48063   /* SunOS 4.1.1 cc rejects this.  */
48064   char const *const *ccp;
48065   char **p;
48066   /* NEC SVR4.0.2 mips cc rejects this.  */
48067   struct point {int x, y;};
48068   static struct point const zero = {0,0};
48069   /* AIX XL C 1.02.0.0 rejects this.
48070      It does not let you subtract one const X* pointer from another in
48071      an arm of an if-expression whose if-part is not a constant
48072      expression */
48073   const char *g = "string";
48074   ccp = &g + (g ? g-g : 0);
48075   /* HPUX 7.0 cc rejects these. */
48076   ++ccp;
48077   p = (char**) ccp;
48078   ccp = (char const *const *) p;
48079   { /* SCO 3.2v4 cc rejects this.  */
48080     char *t;
48081     char const *s = 0 ? (char *) 0 : (char const *) 0;
48082
48083     *t++ = 0;
48084   }
48085   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
48086     int x[] = {25, 17};
48087     const int *foo = &x[0];
48088     ++foo;
48089   }
48090   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48091     typedef const int *iptr;
48092     iptr p = 0;
48093     ++p;
48094   }
48095   { /* AIX XL C 1.02.0.0 rejects this saying
48096        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48097     struct s { int j; const int *ap[3]; };
48098     struct s *b; b->j = 5;
48099   }
48100   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48101     const int foo = 10;
48102   }
48103 #endif
48104
48105   ;
48106   return 0;
48107 }
48108 _ACEOF
48109 rm -f conftest.$ac_objext
48110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48111   (eval $ac_compile) 2>conftest.er1
48112   ac_status=$?
48113   grep -v '^ *+' conftest.er1 >conftest.err
48114   rm -f conftest.er1
48115   cat conftest.err >&5
48116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48117   (exit $ac_status); } &&
48118          { ac_try='test -z "$ac_c_werror_flag"
48119                          || test ! -s conftest.err'
48120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48121   (eval $ac_try) 2>&5
48122   ac_status=$?
48123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48124   (exit $ac_status); }; } &&
48125          { ac_try='test -s conftest.$ac_objext'
48126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48127   (eval $ac_try) 2>&5
48128   ac_status=$?
48129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48130   (exit $ac_status); }; }; then
48131   ac_cv_c_const=yes
48132 else
48133   echo "$as_me: failed program was:" >&5
48134 sed 's/^/| /' conftest.$ac_ext >&5
48135
48136 ac_cv_c_const=no
48137 fi
48138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48139 fi
48140 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48141 echo "${ECHO_T}$ac_cv_c_const" >&6
48142 if test $ac_cv_c_const = no; then
48143
48144 cat >>confdefs.h <<\_ACEOF
48145 #define const
48146 _ACEOF
48147
48148 fi
48149
48150 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48151 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48152 if test "${ol_cv_c_volatile+set}" = set; then
48153   echo $ECHO_N "(cached) $ECHO_C" >&6
48154 else
48155   cat >conftest.$ac_ext <<_ACEOF
48156 /* confdefs.h.  */
48157 _ACEOF
48158 cat confdefs.h >>conftest.$ac_ext
48159 cat >>conftest.$ac_ext <<_ACEOF
48160 /* end confdefs.h.  */
48161 int x, y, z;
48162 int
48163 main ()
48164 {
48165 volatile int a; int * volatile b = x ? &y : &z;
48166       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48167       *b = 0;
48168   ;
48169   return 0;
48170 }
48171 _ACEOF
48172 rm -f conftest.$ac_objext
48173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48174   (eval $ac_compile) 2>conftest.er1
48175   ac_status=$?
48176   grep -v '^ *+' conftest.er1 >conftest.err
48177   rm -f conftest.er1
48178   cat conftest.err >&5
48179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180   (exit $ac_status); } &&
48181          { ac_try='test -z "$ac_c_werror_flag"
48182                          || test ! -s conftest.err'
48183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48184   (eval $ac_try) 2>&5
48185   ac_status=$?
48186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48187   (exit $ac_status); }; } &&
48188          { ac_try='test -s conftest.$ac_objext'
48189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48190   (eval $ac_try) 2>&5
48191   ac_status=$?
48192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48193   (exit $ac_status); }; }; then
48194   ol_cv_c_volatile=yes
48195 else
48196   echo "$as_me: failed program was:" >&5
48197 sed 's/^/| /' conftest.$ac_ext >&5
48198
48199 ol_cv_c_volatile=no
48200 fi
48201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48202 fi
48203 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48204 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48205   if test $ol_cv_c_volatile = yes; then
48206     :
48207   else
48208
48209 cat >>confdefs.h <<\_ACEOF
48210 #define volatile
48211 _ACEOF
48212
48213   fi
48214
48215
48216 if test $cross_compiling = yes ; then
48217         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48218 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48219
48220 cat >>confdefs.h <<\_ACEOF
48221 #define CROSS_COMPILING 1
48222 _ACEOF
48223
48224 else
48225         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48226 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48227 if test "${ac_cv_c_bigendian+set}" = set; then
48228   echo $ECHO_N "(cached) $ECHO_C" >&6
48229 else
48230   # See if sys/param.h defines the BYTE_ORDER macro.
48231 cat >conftest.$ac_ext <<_ACEOF
48232 /* confdefs.h.  */
48233 _ACEOF
48234 cat confdefs.h >>conftest.$ac_ext
48235 cat >>conftest.$ac_ext <<_ACEOF
48236 /* end confdefs.h.  */
48237 #include <sys/types.h>
48238 #include <sys/param.h>
48239
48240 int
48241 main ()
48242 {
48243 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48244  bogus endian macros
48245 #endif
48246
48247   ;
48248   return 0;
48249 }
48250 _ACEOF
48251 rm -f conftest.$ac_objext
48252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48253   (eval $ac_compile) 2>conftest.er1
48254   ac_status=$?
48255   grep -v '^ *+' conftest.er1 >conftest.err
48256   rm -f conftest.er1
48257   cat conftest.err >&5
48258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48259   (exit $ac_status); } &&
48260          { ac_try='test -z "$ac_c_werror_flag"
48261                          || test ! -s conftest.err'
48262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48263   (eval $ac_try) 2>&5
48264   ac_status=$?
48265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48266   (exit $ac_status); }; } &&
48267          { ac_try='test -s conftest.$ac_objext'
48268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48269   (eval $ac_try) 2>&5
48270   ac_status=$?
48271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48272   (exit $ac_status); }; }; then
48273   # It does; now see whether it defined to BIG_ENDIAN or not.
48274 cat >conftest.$ac_ext <<_ACEOF
48275 /* confdefs.h.  */
48276 _ACEOF
48277 cat confdefs.h >>conftest.$ac_ext
48278 cat >>conftest.$ac_ext <<_ACEOF
48279 /* end confdefs.h.  */
48280 #include <sys/types.h>
48281 #include <sys/param.h>
48282
48283 int
48284 main ()
48285 {
48286 #if BYTE_ORDER != BIG_ENDIAN
48287  not big endian
48288 #endif
48289
48290   ;
48291   return 0;
48292 }
48293 _ACEOF
48294 rm -f conftest.$ac_objext
48295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48296   (eval $ac_compile) 2>conftest.er1
48297   ac_status=$?
48298   grep -v '^ *+' conftest.er1 >conftest.err
48299   rm -f conftest.er1
48300   cat conftest.err >&5
48301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48302   (exit $ac_status); } &&
48303          { ac_try='test -z "$ac_c_werror_flag"
48304                          || test ! -s conftest.err'
48305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48306   (eval $ac_try) 2>&5
48307   ac_status=$?
48308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48309   (exit $ac_status); }; } &&
48310          { ac_try='test -s conftest.$ac_objext'
48311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48312   (eval $ac_try) 2>&5
48313   ac_status=$?
48314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48315   (exit $ac_status); }; }; then
48316   ac_cv_c_bigendian=yes
48317 else
48318   echo "$as_me: failed program was:" >&5
48319 sed 's/^/| /' conftest.$ac_ext >&5
48320
48321 ac_cv_c_bigendian=no
48322 fi
48323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48324 else
48325   echo "$as_me: failed program was:" >&5
48326 sed 's/^/| /' conftest.$ac_ext >&5
48327
48328 # It does not; compile a test program.
48329 if test "$cross_compiling" = yes; then
48330   # try to guess the endianness by grepping values into an object file
48331   ac_cv_c_bigendian=unknown
48332   cat >conftest.$ac_ext <<_ACEOF
48333 /* confdefs.h.  */
48334 _ACEOF
48335 cat confdefs.h >>conftest.$ac_ext
48336 cat >>conftest.$ac_ext <<_ACEOF
48337 /* end confdefs.h.  */
48338 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48339 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48340 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48341 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48342 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48343 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48344 int
48345 main ()
48346 {
48347  _ascii (); _ebcdic ();
48348   ;
48349   return 0;
48350 }
48351 _ACEOF
48352 rm -f conftest.$ac_objext
48353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48354   (eval $ac_compile) 2>conftest.er1
48355   ac_status=$?
48356   grep -v '^ *+' conftest.er1 >conftest.err
48357   rm -f conftest.er1
48358   cat conftest.err >&5
48359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48360   (exit $ac_status); } &&
48361          { ac_try='test -z "$ac_c_werror_flag"
48362                          || test ! -s conftest.err'
48363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48364   (eval $ac_try) 2>&5
48365   ac_status=$?
48366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48367   (exit $ac_status); }; } &&
48368          { ac_try='test -s conftest.$ac_objext'
48369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48370   (eval $ac_try) 2>&5
48371   ac_status=$?
48372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48373   (exit $ac_status); }; }; then
48374   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48375   ac_cv_c_bigendian=yes
48376 fi
48377 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48378   if test "$ac_cv_c_bigendian" = unknown; then
48379     ac_cv_c_bigendian=no
48380   else
48381     # finding both strings is unlikely to happen, but who knows?
48382     ac_cv_c_bigendian=unknown
48383   fi
48384 fi
48385 else
48386   echo "$as_me: failed program was:" >&5
48387 sed 's/^/| /' conftest.$ac_ext >&5
48388
48389 fi
48390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48391 else
48392   cat >conftest.$ac_ext <<_ACEOF
48393 /* confdefs.h.  */
48394 _ACEOF
48395 cat confdefs.h >>conftest.$ac_ext
48396 cat >>conftest.$ac_ext <<_ACEOF
48397 /* end confdefs.h.  */
48398 int
48399 main ()
48400 {
48401   /* Are we little or big endian?  From Harbison&Steele.  */
48402   union
48403   {
48404     long l;
48405     char c[sizeof (long)];
48406   } u;
48407   u.l = 1;
48408   exit (u.c[sizeof (long) - 1] == 1);
48409 }
48410 _ACEOF
48411 rm -f conftest$ac_exeext
48412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48413   (eval $ac_link) 2>&5
48414   ac_status=$?
48415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48418   (eval $ac_try) 2>&5
48419   ac_status=$?
48420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48421   (exit $ac_status); }; }; then
48422   ac_cv_c_bigendian=no
48423 else
48424   echo "$as_me: program exited with status $ac_status" >&5
48425 echo "$as_me: failed program was:" >&5
48426 sed 's/^/| /' conftest.$ac_ext >&5
48427
48428 ( exit $ac_status )
48429 ac_cv_c_bigendian=yes
48430 fi
48431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48432 fi
48433 fi
48434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48435 fi
48436 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48437 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48438 case $ac_cv_c_bigendian in
48439   yes)
48440
48441 cat >>confdefs.h <<\_ACEOF
48442 #define WORDS_BIGENDIAN 1
48443 _ACEOF
48444  ;;
48445   no)
48446      ;;
48447   *)
48448     { { echo "$as_me:$LINENO: error: unknown endianness
48449 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48450 echo "$as_me: error: unknown endianness
48451 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48452    { (exit 1); exit 1; }; } ;;
48453 esac
48454
48455 fi
48456
48457 echo "$as_me:$LINENO: checking size of short" >&5
48458 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48459 if test "${ac_cv_sizeof_short+set}" = set; then
48460   echo $ECHO_N "(cached) $ECHO_C" >&6
48461 else
48462   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48463   cat >conftest.$ac_ext <<_ACEOF
48464 /* confdefs.h.  */
48465 _ACEOF
48466 cat confdefs.h >>conftest.$ac_ext
48467 cat >>conftest.$ac_ext <<_ACEOF
48468 /* end confdefs.h.  */
48469 #include "confdefs.h"
48470 #include <stdlib.h>
48471 #include <sys/types.h>
48472
48473
48474 int
48475 main ()
48476 {
48477 switch (0) case 0: case (sizeof (short) == $ac_size):;
48478   ;
48479   return 0;
48480 }
48481 _ACEOF
48482 rm -f conftest.$ac_objext
48483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48484   (eval $ac_compile) 2>conftest.er1
48485   ac_status=$?
48486   grep -v '^ *+' conftest.er1 >conftest.err
48487   rm -f conftest.er1
48488   cat conftest.err >&5
48489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48490   (exit $ac_status); } &&
48491          { ac_try='test -z "$ac_c_werror_flag"
48492                          || test ! -s conftest.err'
48493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48494   (eval $ac_try) 2>&5
48495   ac_status=$?
48496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48497   (exit $ac_status); }; } &&
48498          { ac_try='test -s conftest.$ac_objext'
48499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48500   (eval $ac_try) 2>&5
48501   ac_status=$?
48502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48503   (exit $ac_status); }; }; then
48504   ac_cv_sizeof_short=$ac_size
48505 else
48506   echo "$as_me: failed program was:" >&5
48507 sed 's/^/| /' conftest.$ac_ext >&5
48508
48509 fi
48510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48511   if test x$ac_cv_sizeof_short != x ; then break; fi
48512 done
48513
48514 fi
48515
48516 if test x$ac_cv_sizeof_short = x ; then
48517   { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48518 echo "$as_me: error: cannot determine a size for short" >&2;}
48519    { (exit 1); exit 1; }; }
48520 fi
48521 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48522 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48523
48524 cat >>confdefs.h <<_ACEOF
48525 #define SIZEOF_SHORT $ac_cv_sizeof_short
48526 _ACEOF
48527
48528
48529 echo "$as_me:$LINENO: checking size of int" >&5
48530 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48531 if test "${ac_cv_sizeof_int+set}" = set; then
48532   echo $ECHO_N "(cached) $ECHO_C" >&6
48533 else
48534   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48535   cat >conftest.$ac_ext <<_ACEOF
48536 /* confdefs.h.  */
48537 _ACEOF
48538 cat confdefs.h >>conftest.$ac_ext
48539 cat >>conftest.$ac_ext <<_ACEOF
48540 /* end confdefs.h.  */
48541 #include "confdefs.h"
48542 #include <stdlib.h>
48543 #include <sys/types.h>
48544
48545
48546 int
48547 main ()
48548 {
48549 switch (0) case 0: case (sizeof (int) == $ac_size):;
48550   ;
48551   return 0;
48552 }
48553 _ACEOF
48554 rm -f conftest.$ac_objext
48555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48556   (eval $ac_compile) 2>conftest.er1
48557   ac_status=$?
48558   grep -v '^ *+' conftest.er1 >conftest.err
48559   rm -f conftest.er1
48560   cat conftest.err >&5
48561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48562   (exit $ac_status); } &&
48563          { ac_try='test -z "$ac_c_werror_flag"
48564                          || test ! -s conftest.err'
48565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48566   (eval $ac_try) 2>&5
48567   ac_status=$?
48568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48569   (exit $ac_status); }; } &&
48570          { ac_try='test -s conftest.$ac_objext'
48571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48572   (eval $ac_try) 2>&5
48573   ac_status=$?
48574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48575   (exit $ac_status); }; }; then
48576   ac_cv_sizeof_int=$ac_size
48577 else
48578   echo "$as_me: failed program was:" >&5
48579 sed 's/^/| /' conftest.$ac_ext >&5
48580
48581 fi
48582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48583   if test x$ac_cv_sizeof_int != x ; then break; fi
48584 done
48585
48586 fi
48587
48588 if test x$ac_cv_sizeof_int = x ; then
48589   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48590 echo "$as_me: error: cannot determine a size for int" >&2;}
48591    { (exit 1); exit 1; }; }
48592 fi
48593 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48594 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48595
48596 cat >>confdefs.h <<_ACEOF
48597 #define SIZEOF_INT $ac_cv_sizeof_int
48598 _ACEOF
48599
48600
48601 echo "$as_me:$LINENO: checking size of long" >&5
48602 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48603 if test "${ac_cv_sizeof_long+set}" = set; then
48604   echo $ECHO_N "(cached) $ECHO_C" >&6
48605 else
48606   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48607   cat >conftest.$ac_ext <<_ACEOF
48608 /* confdefs.h.  */
48609 _ACEOF
48610 cat confdefs.h >>conftest.$ac_ext
48611 cat >>conftest.$ac_ext <<_ACEOF
48612 /* end confdefs.h.  */
48613 #include "confdefs.h"
48614 #include <stdlib.h>
48615 #include <sys/types.h>
48616
48617
48618 int
48619 main ()
48620 {
48621 switch (0) case 0: case (sizeof (long) == $ac_size):;
48622   ;
48623   return 0;
48624 }
48625 _ACEOF
48626 rm -f conftest.$ac_objext
48627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48628   (eval $ac_compile) 2>conftest.er1
48629   ac_status=$?
48630   grep -v '^ *+' conftest.er1 >conftest.err
48631   rm -f conftest.er1
48632   cat conftest.err >&5
48633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48634   (exit $ac_status); } &&
48635          { ac_try='test -z "$ac_c_werror_flag"
48636                          || test ! -s conftest.err'
48637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48638   (eval $ac_try) 2>&5
48639   ac_status=$?
48640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48641   (exit $ac_status); }; } &&
48642          { ac_try='test -s conftest.$ac_objext'
48643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48644   (eval $ac_try) 2>&5
48645   ac_status=$?
48646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48647   (exit $ac_status); }; }; then
48648   ac_cv_sizeof_long=$ac_size
48649 else
48650   echo "$as_me: failed program was:" >&5
48651 sed 's/^/| /' conftest.$ac_ext >&5
48652
48653 fi
48654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48655   if test x$ac_cv_sizeof_long != x ; then break; fi
48656 done
48657
48658 fi
48659
48660 if test x$ac_cv_sizeof_long = x ; then
48661   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48662 echo "$as_me: error: cannot determine a size for long" >&2;}
48663    { (exit 1); exit 1; }; }
48664 fi
48665 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48666 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48667
48668 cat >>confdefs.h <<_ACEOF
48669 #define SIZEOF_LONG $ac_cv_sizeof_long
48670 _ACEOF
48671
48672
48673 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48674 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48675 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48676   echo $ECHO_N "(cached) $ECHO_C" >&6
48677 else
48678   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
48679   cat >conftest.$ac_ext <<_ACEOF
48680 /* confdefs.h.  */
48681 _ACEOF
48682 cat confdefs.h >>conftest.$ac_ext
48683 cat >>conftest.$ac_ext <<_ACEOF
48684 /* end confdefs.h.  */
48685 #include "confdefs.h"
48686 #include <stdlib.h>
48687 #include <sys/types.h>
48688
48689
48690 int
48691 main ()
48692 {
48693 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48694   ;
48695   return 0;
48696 }
48697 _ACEOF
48698 rm -f conftest.$ac_objext
48699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48700   (eval $ac_compile) 2>conftest.er1
48701   ac_status=$?
48702   grep -v '^ *+' conftest.er1 >conftest.err
48703   rm -f conftest.er1
48704   cat conftest.err >&5
48705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48706   (exit $ac_status); } &&
48707          { ac_try='test -z "$ac_c_werror_flag"
48708                          || test ! -s conftest.err'
48709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48710   (eval $ac_try) 2>&5
48711   ac_status=$?
48712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713   (exit $ac_status); }; } &&
48714          { ac_try='test -s conftest.$ac_objext'
48715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48716   (eval $ac_try) 2>&5
48717   ac_status=$?
48718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48719   (exit $ac_status); }; }; then
48720   ac_cv_sizeof_wchar_t=$ac_size
48721 else
48722   echo "$as_me: failed program was:" >&5
48723 sed 's/^/| /' conftest.$ac_ext >&5
48724
48725 fi
48726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48727   if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48728 done
48729
48730 fi
48731
48732 if test x$ac_cv_sizeof_wchar_t = x ; then
48733   { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48734 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48735    { (exit 1); exit 1; }; }
48736 fi
48737 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48738 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48739
48740 cat >>confdefs.h <<_ACEOF
48741 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48742 _ACEOF
48743
48744
48745
48746 if test "$ac_cv_sizeof_int" -lt 4 ; then
48747         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48748 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48749
48750
48751 cat >>confdefs.h <<\_ACEOF
48752 #define LBER_INT_T long
48753 _ACEOF
48754
48755 else
48756
48757 cat >>confdefs.h <<\_ACEOF
48758 #define LBER_INT_T int
48759 _ACEOF
48760
48761 fi
48762
48763
48764 cat >>confdefs.h <<\_ACEOF
48765 #define LBER_LEN_T long
48766 _ACEOF
48767
48768
48769 cat >>confdefs.h <<\_ACEOF
48770 #define LBER_SOCKET_T int
48771 _ACEOF
48772
48773
48774 cat >>confdefs.h <<\_ACEOF
48775 #define LBER_TAG_T long
48776 _ACEOF
48777
48778
48779 echo "$as_me:$LINENO: checking for working memcmp" >&5
48780 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48781 if test "${ac_cv_func_memcmp_working+set}" = set; then
48782   echo $ECHO_N "(cached) $ECHO_C" >&6
48783 else
48784   if test "$cross_compiling" = yes; then
48785   ac_cv_func_memcmp_working=no
48786 else
48787   cat >conftest.$ac_ext <<_ACEOF
48788 /* confdefs.h.  */
48789 _ACEOF
48790 cat confdefs.h >>conftest.$ac_ext
48791 cat >>conftest.$ac_ext <<_ACEOF
48792 /* end confdefs.h.  */
48793 $ac_includes_default
48794 int
48795 main ()
48796 {
48797
48798   /* Some versions of memcmp are not 8-bit clean.  */
48799   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48800   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48801     exit (1);
48802
48803   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48804      or more and with at least one buffer not starting on a 4-byte boundary.
48805      William Lewis provided this test program.   */
48806   {
48807     char foo[21];
48808     char bar[21];
48809     int i;
48810     for (i = 0; i < 4; i++)
48811       {
48812         char *a = foo + i;
48813         char *b = bar + i;
48814         strcpy (a, "--------01111111");
48815         strcpy (b, "--------10000000");
48816         if (memcmp (a, b, 16) >= 0)
48817           exit (1);
48818       }
48819     exit (0);
48820   }
48821
48822   ;
48823   return 0;
48824 }
48825 _ACEOF
48826 rm -f conftest$ac_exeext
48827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48828   (eval $ac_link) 2>&5
48829   ac_status=$?
48830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48833   (eval $ac_try) 2>&5
48834   ac_status=$?
48835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48836   (exit $ac_status); }; }; then
48837   ac_cv_func_memcmp_working=yes
48838 else
48839   echo "$as_me: program exited with status $ac_status" >&5
48840 echo "$as_me: failed program was:" >&5
48841 sed 's/^/| /' conftest.$ac_ext >&5
48842
48843 ( exit $ac_status )
48844 ac_cv_func_memcmp_working=no
48845 fi
48846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48847 fi
48848 fi
48849 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48850 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48851 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48852     "memcmp.$ac_objext"   | \
48853   *" memcmp.$ac_objext"   | \
48854     "memcmp.$ac_objext "* | \
48855   *" memcmp.$ac_objext "* ) ;;
48856   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48857 esac
48858
48859
48860
48861 if test $ac_cv_func_memcmp_working = no ; then
48862
48863 cat >>confdefs.h <<\_ACEOF
48864 #define NEED_MEMCMP_REPLACEMENT 1
48865 _ACEOF
48866
48867 fi
48868
48869
48870 for ac_func in strftime
48871 do
48872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48873 echo "$as_me:$LINENO: checking for $ac_func" >&5
48874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48875 if eval "test \"\${$as_ac_var+set}\" = set"; then
48876   echo $ECHO_N "(cached) $ECHO_C" >&6
48877 else
48878   cat >conftest.$ac_ext <<_ACEOF
48879 /* confdefs.h.  */
48880 _ACEOF
48881 cat confdefs.h >>conftest.$ac_ext
48882 cat >>conftest.$ac_ext <<_ACEOF
48883 /* end confdefs.h.  */
48884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48886 #define $ac_func innocuous_$ac_func
48887
48888 /* System header to define __stub macros and hopefully few prototypes,
48889     which can conflict with char $ac_func (); below.
48890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48891     <limits.h> exists even on freestanding compilers.  */
48892
48893 #ifdef __STDC__
48894 # include <limits.h>
48895 #else
48896 # include <assert.h>
48897 #endif
48898
48899 #undef $ac_func
48900
48901 /* Override any gcc2 internal prototype to avoid an error.  */
48902 #ifdef __cplusplus
48903 extern "C"
48904 {
48905 #endif
48906 /* We use char because int might match the return type of a gcc2
48907    builtin and then its argument prototype would still apply.  */
48908 char $ac_func ();
48909 /* The GNU C library defines this for functions which it implements
48910     to always fail with ENOSYS.  Some functions are actually named
48911     something starting with __ and the normal name is an alias.  */
48912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48913 choke me
48914 #else
48915 char (*f) () = $ac_func;
48916 #endif
48917 #ifdef __cplusplus
48918 }
48919 #endif
48920
48921 int
48922 main ()
48923 {
48924 return f != $ac_func;
48925   ;
48926   return 0;
48927 }
48928 _ACEOF
48929 rm -f conftest.$ac_objext conftest$ac_exeext
48930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48931   (eval $ac_link) 2>conftest.er1
48932   ac_status=$?
48933   grep -v '^ *+' conftest.er1 >conftest.err
48934   rm -f conftest.er1
48935   cat conftest.err >&5
48936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48937   (exit $ac_status); } &&
48938          { ac_try='test -z "$ac_c_werror_flag"
48939                          || test ! -s conftest.err'
48940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48941   (eval $ac_try) 2>&5
48942   ac_status=$?
48943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48944   (exit $ac_status); }; } &&
48945          { ac_try='test -s conftest$ac_exeext'
48946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48947   (eval $ac_try) 2>&5
48948   ac_status=$?
48949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48950   (exit $ac_status); }; }; then
48951   eval "$as_ac_var=yes"
48952 else
48953   echo "$as_me: failed program was:" >&5
48954 sed 's/^/| /' conftest.$ac_ext >&5
48955
48956 eval "$as_ac_var=no"
48957 fi
48958 rm -f conftest.err conftest.$ac_objext \
48959       conftest$ac_exeext conftest.$ac_ext
48960 fi
48961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48963 if test `eval echo '${'$as_ac_var'}'` = yes; then
48964   cat >>confdefs.h <<_ACEOF
48965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48966 _ACEOF
48967
48968 else
48969   # strftime is in -lintl on SCO UNIX.
48970 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
48971 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
48972 if test "${ac_cv_lib_intl_strftime+set}" = set; then
48973   echo $ECHO_N "(cached) $ECHO_C" >&6
48974 else
48975   ac_check_lib_save_LIBS=$LIBS
48976 LIBS="-lintl  $LIBS"
48977 cat >conftest.$ac_ext <<_ACEOF
48978 /* confdefs.h.  */
48979 _ACEOF
48980 cat confdefs.h >>conftest.$ac_ext
48981 cat >>conftest.$ac_ext <<_ACEOF
48982 /* end confdefs.h.  */
48983
48984 /* Override any gcc2 internal prototype to avoid an error.  */
48985 #ifdef __cplusplus
48986 extern "C"
48987 #endif
48988 /* We use char because int might match the return type of a gcc2
48989    builtin and then its argument prototype would still apply.  */
48990 char strftime ();
48991 int
48992 main ()
48993 {
48994 strftime ();
48995   ;
48996   return 0;
48997 }
48998 _ACEOF
48999 rm -f conftest.$ac_objext conftest$ac_exeext
49000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49001   (eval $ac_link) 2>conftest.er1
49002   ac_status=$?
49003   grep -v '^ *+' conftest.er1 >conftest.err
49004   rm -f conftest.er1
49005   cat conftest.err >&5
49006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49007   (exit $ac_status); } &&
49008          { ac_try='test -z "$ac_c_werror_flag"
49009                          || test ! -s conftest.err'
49010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49011   (eval $ac_try) 2>&5
49012   ac_status=$?
49013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49014   (exit $ac_status); }; } &&
49015          { ac_try='test -s conftest$ac_exeext'
49016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49017   (eval $ac_try) 2>&5
49018   ac_status=$?
49019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49020   (exit $ac_status); }; }; then
49021   ac_cv_lib_intl_strftime=yes
49022 else
49023   echo "$as_me: failed program was:" >&5
49024 sed 's/^/| /' conftest.$ac_ext >&5
49025
49026 ac_cv_lib_intl_strftime=no
49027 fi
49028 rm -f conftest.err conftest.$ac_objext \
49029       conftest$ac_exeext conftest.$ac_ext
49030 LIBS=$ac_check_lib_save_LIBS
49031 fi
49032 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49033 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49034 if test $ac_cv_lib_intl_strftime = yes; then
49035   cat >>confdefs.h <<\_ACEOF
49036 #define HAVE_STRFTIME 1
49037 _ACEOF
49038
49039 LIBS="-lintl $LIBS"
49040 fi
49041
49042 fi
49043 done
49044
49045
49046 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49047 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49048 if test "${ol_cv_func_inet_aton+set}" = set; then
49049   echo $ECHO_N "(cached) $ECHO_C" >&6
49050 else
49051   cat >conftest.$ac_ext <<_ACEOF
49052 /* confdefs.h.  */
49053 _ACEOF
49054 cat confdefs.h >>conftest.$ac_ext
49055 cat >>conftest.$ac_ext <<_ACEOF
49056 /* end confdefs.h.  */
49057
49058 #ifdef HAVE_SYS_TYPES_H
49059 #       include <sys/types.h>
49060 #endif
49061 #ifdef HAVE_SYS_SOCKET_H
49062 #       include <sys/socket.h>
49063 #       ifdef HAVE_SYS_SELECT_H
49064 #               include <sys/select.h>
49065 #       endif
49066 #       include <netinet/in.h>
49067 #       ifdef HAVE_ARPA_INET_H
49068 #               include <arpa/inet.h>
49069 #       endif
49070 #endif
49071
49072 int
49073 main ()
49074 {
49075 struct in_addr in;
49076 int rc = inet_aton( "255.255.255.255", &in );
49077   ;
49078   return 0;
49079 }
49080 _ACEOF
49081 rm -f conftest.$ac_objext conftest$ac_exeext
49082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49083   (eval $ac_link) 2>conftest.er1
49084   ac_status=$?
49085   grep -v '^ *+' conftest.er1 >conftest.err
49086   rm -f conftest.er1
49087   cat conftest.err >&5
49088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49089   (exit $ac_status); } &&
49090          { ac_try='test -z "$ac_c_werror_flag"
49091                          || test ! -s conftest.err'
49092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49093   (eval $ac_try) 2>&5
49094   ac_status=$?
49095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49096   (exit $ac_status); }; } &&
49097          { ac_try='test -s conftest$ac_exeext'
49098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49099   (eval $ac_try) 2>&5
49100   ac_status=$?
49101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49102   (exit $ac_status); }; }; then
49103   ol_cv_func_inet_aton=yes
49104 else
49105   echo "$as_me: failed program was:" >&5
49106 sed 's/^/| /' conftest.$ac_ext >&5
49107
49108 ol_cv_func_inet_aton=no
49109 fi
49110 rm -f conftest.err conftest.$ac_objext \
49111       conftest$ac_exeext conftest.$ac_ext
49112 fi
49113 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49114 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49115   if test $ol_cv_func_inet_aton != no; then
49116
49117 cat >>confdefs.h <<\_ACEOF
49118 #define HAVE_INET_ATON 1
49119 _ACEOF
49120
49121   fi
49122
49123
49124 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49125 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49126 if test "${ac_cv_func__spawnlp+set}" = set; then
49127   echo $ECHO_N "(cached) $ECHO_C" >&6
49128 else
49129   cat >conftest.$ac_ext <<_ACEOF
49130 /* confdefs.h.  */
49131 _ACEOF
49132 cat confdefs.h >>conftest.$ac_ext
49133 cat >>conftest.$ac_ext <<_ACEOF
49134 /* end confdefs.h.  */
49135 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49137 #define _spawnlp innocuous__spawnlp
49138
49139 /* System header to define __stub macros and hopefully few prototypes,
49140     which can conflict with char _spawnlp (); below.
49141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49142     <limits.h> exists even on freestanding compilers.  */
49143
49144 #ifdef __STDC__
49145 # include <limits.h>
49146 #else
49147 # include <assert.h>
49148 #endif
49149
49150 #undef _spawnlp
49151
49152 /* Override any gcc2 internal prototype to avoid an error.  */
49153 #ifdef __cplusplus
49154 extern "C"
49155 {
49156 #endif
49157 /* We use char because int might match the return type of a gcc2
49158    builtin and then its argument prototype would still apply.  */
49159 char _spawnlp ();
49160 /* The GNU C library defines this for functions which it implements
49161     to always fail with ENOSYS.  Some functions are actually named
49162     something starting with __ and the normal name is an alias.  */
49163 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49164 choke me
49165 #else
49166 char (*f) () = _spawnlp;
49167 #endif
49168 #ifdef __cplusplus
49169 }
49170 #endif
49171
49172 int
49173 main ()
49174 {
49175 return f != _spawnlp;
49176   ;
49177   return 0;
49178 }
49179 _ACEOF
49180 rm -f conftest.$ac_objext conftest$ac_exeext
49181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49182   (eval $ac_link) 2>conftest.er1
49183   ac_status=$?
49184   grep -v '^ *+' conftest.er1 >conftest.err
49185   rm -f conftest.er1
49186   cat conftest.err >&5
49187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49188   (exit $ac_status); } &&
49189          { ac_try='test -z "$ac_c_werror_flag"
49190                          || test ! -s conftest.err'
49191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49192   (eval $ac_try) 2>&5
49193   ac_status=$?
49194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49195   (exit $ac_status); }; } &&
49196          { ac_try='test -s conftest$ac_exeext'
49197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49198   (eval $ac_try) 2>&5
49199   ac_status=$?
49200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49201   (exit $ac_status); }; }; then
49202   ac_cv_func__spawnlp=yes
49203 else
49204   echo "$as_me: failed program was:" >&5
49205 sed 's/^/| /' conftest.$ac_ext >&5
49206
49207 ac_cv_func__spawnlp=no
49208 fi
49209 rm -f conftest.err conftest.$ac_objext \
49210       conftest$ac_exeext conftest.$ac_ext
49211 fi
49212 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49213 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49214 if test $ac_cv_func__spawnlp = yes; then
49215
49216 cat >>confdefs.h <<\_ACEOF
49217 #define HAVE_SPAWNLP 1
49218 _ACEOF
49219
49220 fi
49221
49222
49223 echo "$as_me:$LINENO: checking for _snprintf" >&5
49224 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49225 if test "${ac_cv_func__snprintf+set}" = set; then
49226   echo $ECHO_N "(cached) $ECHO_C" >&6
49227 else
49228   cat >conftest.$ac_ext <<_ACEOF
49229 /* confdefs.h.  */
49230 _ACEOF
49231 cat confdefs.h >>conftest.$ac_ext
49232 cat >>conftest.$ac_ext <<_ACEOF
49233 /* end confdefs.h.  */
49234 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49236 #define _snprintf innocuous__snprintf
49237
49238 /* System header to define __stub macros and hopefully few prototypes,
49239     which can conflict with char _snprintf (); below.
49240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49241     <limits.h> exists even on freestanding compilers.  */
49242
49243 #ifdef __STDC__
49244 # include <limits.h>
49245 #else
49246 # include <assert.h>
49247 #endif
49248
49249 #undef _snprintf
49250
49251 /* Override any gcc2 internal prototype to avoid an error.  */
49252 #ifdef __cplusplus
49253 extern "C"
49254 {
49255 #endif
49256 /* We use char because int might match the return type of a gcc2
49257    builtin and then its argument prototype would still apply.  */
49258 char _snprintf ();
49259 /* The GNU C library defines this for functions which it implements
49260     to always fail with ENOSYS.  Some functions are actually named
49261     something starting with __ and the normal name is an alias.  */
49262 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49263 choke me
49264 #else
49265 char (*f) () = _snprintf;
49266 #endif
49267 #ifdef __cplusplus
49268 }
49269 #endif
49270
49271 int
49272 main ()
49273 {
49274 return f != _snprintf;
49275   ;
49276   return 0;
49277 }
49278 _ACEOF
49279 rm -f conftest.$ac_objext conftest$ac_exeext
49280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49281   (eval $ac_link) 2>conftest.er1
49282   ac_status=$?
49283   grep -v '^ *+' conftest.er1 >conftest.err
49284   rm -f conftest.er1
49285   cat conftest.err >&5
49286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49287   (exit $ac_status); } &&
49288          { ac_try='test -z "$ac_c_werror_flag"
49289                          || test ! -s conftest.err'
49290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49291   (eval $ac_try) 2>&5
49292   ac_status=$?
49293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49294   (exit $ac_status); }; } &&
49295          { ac_try='test -s conftest$ac_exeext'
49296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49297   (eval $ac_try) 2>&5
49298   ac_status=$?
49299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49300   (exit $ac_status); }; }; then
49301   ac_cv_func__snprintf=yes
49302 else
49303   echo "$as_me: failed program was:" >&5
49304 sed 's/^/| /' conftest.$ac_ext >&5
49305
49306 ac_cv_func__snprintf=no
49307 fi
49308 rm -f conftest.err conftest.$ac_objext \
49309       conftest$ac_exeext conftest.$ac_ext
49310 fi
49311 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49312 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49313 if test $ac_cv_func__snprintf = yes; then
49314   ac_cv_func_snprintf=yes
49315
49316 cat >>confdefs.h <<\_ACEOF
49317 #define snprintf _snprintf
49318 _ACEOF
49319
49320
49321 fi
49322
49323
49324 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49325 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49326 if test "${ac_cv_func__vsnprintf+set}" = set; then
49327   echo $ECHO_N "(cached) $ECHO_C" >&6
49328 else
49329   cat >conftest.$ac_ext <<_ACEOF
49330 /* confdefs.h.  */
49331 _ACEOF
49332 cat confdefs.h >>conftest.$ac_ext
49333 cat >>conftest.$ac_ext <<_ACEOF
49334 /* end confdefs.h.  */
49335 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49337 #define _vsnprintf innocuous__vsnprintf
49338
49339 /* System header to define __stub macros and hopefully few prototypes,
49340     which can conflict with char _vsnprintf (); below.
49341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49342     <limits.h> exists even on freestanding compilers.  */
49343
49344 #ifdef __STDC__
49345 # include <limits.h>
49346 #else
49347 # include <assert.h>
49348 #endif
49349
49350 #undef _vsnprintf
49351
49352 /* Override any gcc2 internal prototype to avoid an error.  */
49353 #ifdef __cplusplus
49354 extern "C"
49355 {
49356 #endif
49357 /* We use char because int might match the return type of a gcc2
49358    builtin and then its argument prototype would still apply.  */
49359 char _vsnprintf ();
49360 /* The GNU C library defines this for functions which it implements
49361     to always fail with ENOSYS.  Some functions are actually named
49362     something starting with __ and the normal name is an alias.  */
49363 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49364 choke me
49365 #else
49366 char (*f) () = _vsnprintf;
49367 #endif
49368 #ifdef __cplusplus
49369 }
49370 #endif
49371
49372 int
49373 main ()
49374 {
49375 return f != _vsnprintf;
49376   ;
49377   return 0;
49378 }
49379 _ACEOF
49380 rm -f conftest.$ac_objext conftest$ac_exeext
49381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49382   (eval $ac_link) 2>conftest.er1
49383   ac_status=$?
49384   grep -v '^ *+' conftest.er1 >conftest.err
49385   rm -f conftest.er1
49386   cat conftest.err >&5
49387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49388   (exit $ac_status); } &&
49389          { ac_try='test -z "$ac_c_werror_flag"
49390                          || test ! -s conftest.err'
49391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49392   (eval $ac_try) 2>&5
49393   ac_status=$?
49394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49395   (exit $ac_status); }; } &&
49396          { ac_try='test -s conftest$ac_exeext'
49397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49398   (eval $ac_try) 2>&5
49399   ac_status=$?
49400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49401   (exit $ac_status); }; }; then
49402   ac_cv_func__vsnprintf=yes
49403 else
49404   echo "$as_me: failed program was:" >&5
49405 sed 's/^/| /' conftest.$ac_ext >&5
49406
49407 ac_cv_func__vsnprintf=no
49408 fi
49409 rm -f conftest.err conftest.$ac_objext \
49410       conftest$ac_exeext conftest.$ac_ext
49411 fi
49412 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49413 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49414 if test $ac_cv_func__vsnprintf = yes; then
49415   ac_cv_func_vsnprintf=yes
49416
49417 cat >>confdefs.h <<\_ACEOF
49418 #define vsnprintf _vsnprintf
49419 _ACEOF
49420
49421
49422 fi
49423
49424
49425
49426 for ac_func in vprintf
49427 do
49428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49429 echo "$as_me:$LINENO: checking for $ac_func" >&5
49430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49431 if eval "test \"\${$as_ac_var+set}\" = set"; then
49432   echo $ECHO_N "(cached) $ECHO_C" >&6
49433 else
49434   cat >conftest.$ac_ext <<_ACEOF
49435 /* confdefs.h.  */
49436 _ACEOF
49437 cat confdefs.h >>conftest.$ac_ext
49438 cat >>conftest.$ac_ext <<_ACEOF
49439 /* end confdefs.h.  */
49440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49442 #define $ac_func innocuous_$ac_func
49443
49444 /* System header to define __stub macros and hopefully few prototypes,
49445     which can conflict with char $ac_func (); below.
49446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49447     <limits.h> exists even on freestanding compilers.  */
49448
49449 #ifdef __STDC__
49450 # include <limits.h>
49451 #else
49452 # include <assert.h>
49453 #endif
49454
49455 #undef $ac_func
49456
49457 /* Override any gcc2 internal prototype to avoid an error.  */
49458 #ifdef __cplusplus
49459 extern "C"
49460 {
49461 #endif
49462 /* We use char because int might match the return type of a gcc2
49463    builtin and then its argument prototype would still apply.  */
49464 char $ac_func ();
49465 /* The GNU C library defines this for functions which it implements
49466     to always fail with ENOSYS.  Some functions are actually named
49467     something starting with __ and the normal name is an alias.  */
49468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49469 choke me
49470 #else
49471 char (*f) () = $ac_func;
49472 #endif
49473 #ifdef __cplusplus
49474 }
49475 #endif
49476
49477 int
49478 main ()
49479 {
49480 return f != $ac_func;
49481   ;
49482   return 0;
49483 }
49484 _ACEOF
49485 rm -f conftest.$ac_objext conftest$ac_exeext
49486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49487   (eval $ac_link) 2>conftest.er1
49488   ac_status=$?
49489   grep -v '^ *+' conftest.er1 >conftest.err
49490   rm -f conftest.er1
49491   cat conftest.err >&5
49492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49493   (exit $ac_status); } &&
49494          { ac_try='test -z "$ac_c_werror_flag"
49495                          || test ! -s conftest.err'
49496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49497   (eval $ac_try) 2>&5
49498   ac_status=$?
49499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49500   (exit $ac_status); }; } &&
49501          { ac_try='test -s conftest$ac_exeext'
49502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49503   (eval $ac_try) 2>&5
49504   ac_status=$?
49505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49506   (exit $ac_status); }; }; then
49507   eval "$as_ac_var=yes"
49508 else
49509   echo "$as_me: failed program was:" >&5
49510 sed 's/^/| /' conftest.$ac_ext >&5
49511
49512 eval "$as_ac_var=no"
49513 fi
49514 rm -f conftest.err conftest.$ac_objext \
49515       conftest$ac_exeext conftest.$ac_ext
49516 fi
49517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49519 if test `eval echo '${'$as_ac_var'}'` = yes; then
49520   cat >>confdefs.h <<_ACEOF
49521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49522 _ACEOF
49523
49524 echo "$as_me:$LINENO: checking for _doprnt" >&5
49525 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49526 if test "${ac_cv_func__doprnt+set}" = set; then
49527   echo $ECHO_N "(cached) $ECHO_C" >&6
49528 else
49529   cat >conftest.$ac_ext <<_ACEOF
49530 /* confdefs.h.  */
49531 _ACEOF
49532 cat confdefs.h >>conftest.$ac_ext
49533 cat >>conftest.$ac_ext <<_ACEOF
49534 /* end confdefs.h.  */
49535 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49537 #define _doprnt innocuous__doprnt
49538
49539 /* System header to define __stub macros and hopefully few prototypes,
49540     which can conflict with char _doprnt (); below.
49541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49542     <limits.h> exists even on freestanding compilers.  */
49543
49544 #ifdef __STDC__
49545 # include <limits.h>
49546 #else
49547 # include <assert.h>
49548 #endif
49549
49550 #undef _doprnt
49551
49552 /* Override any gcc2 internal prototype to avoid an error.  */
49553 #ifdef __cplusplus
49554 extern "C"
49555 {
49556 #endif
49557 /* We use char because int might match the return type of a gcc2
49558    builtin and then its argument prototype would still apply.  */
49559 char _doprnt ();
49560 /* The GNU C library defines this for functions which it implements
49561     to always fail with ENOSYS.  Some functions are actually named
49562     something starting with __ and the normal name is an alias.  */
49563 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49564 choke me
49565 #else
49566 char (*f) () = _doprnt;
49567 #endif
49568 #ifdef __cplusplus
49569 }
49570 #endif
49571
49572 int
49573 main ()
49574 {
49575 return f != _doprnt;
49576   ;
49577   return 0;
49578 }
49579 _ACEOF
49580 rm -f conftest.$ac_objext conftest$ac_exeext
49581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49582   (eval $ac_link) 2>conftest.er1
49583   ac_status=$?
49584   grep -v '^ *+' conftest.er1 >conftest.err
49585   rm -f conftest.er1
49586   cat conftest.err >&5
49587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49588   (exit $ac_status); } &&
49589          { ac_try='test -z "$ac_c_werror_flag"
49590                          || test ! -s conftest.err'
49591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49592   (eval $ac_try) 2>&5
49593   ac_status=$?
49594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49595   (exit $ac_status); }; } &&
49596          { ac_try='test -s conftest$ac_exeext'
49597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49598   (eval $ac_try) 2>&5
49599   ac_status=$?
49600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49601   (exit $ac_status); }; }; then
49602   ac_cv_func__doprnt=yes
49603 else
49604   echo "$as_me: failed program was:" >&5
49605 sed 's/^/| /' conftest.$ac_ext >&5
49606
49607 ac_cv_func__doprnt=no
49608 fi
49609 rm -f conftest.err conftest.$ac_objext \
49610       conftest$ac_exeext conftest.$ac_ext
49611 fi
49612 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49613 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49614 if test $ac_cv_func__doprnt = yes; then
49615
49616 cat >>confdefs.h <<\_ACEOF
49617 #define HAVE_DOPRNT 1
49618 _ACEOF
49619
49620 fi
49621
49622 fi
49623 done
49624
49625
49626
49627 if test $ac_cv_func_vprintf = yes ; then
49628
49629
49630 for ac_func in snprintf vsnprintf
49631 do
49632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49633 echo "$as_me:$LINENO: checking for $ac_func" >&5
49634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49635 if eval "test \"\${$as_ac_var+set}\" = set"; then
49636   echo $ECHO_N "(cached) $ECHO_C" >&6
49637 else
49638   cat >conftest.$ac_ext <<_ACEOF
49639 /* confdefs.h.  */
49640 _ACEOF
49641 cat confdefs.h >>conftest.$ac_ext
49642 cat >>conftest.$ac_ext <<_ACEOF
49643 /* end confdefs.h.  */
49644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49646 #define $ac_func innocuous_$ac_func
49647
49648 /* System header to define __stub macros and hopefully few prototypes,
49649     which can conflict with char $ac_func (); below.
49650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49651     <limits.h> exists even on freestanding compilers.  */
49652
49653 #ifdef __STDC__
49654 # include <limits.h>
49655 #else
49656 # include <assert.h>
49657 #endif
49658
49659 #undef $ac_func
49660
49661 /* Override any gcc2 internal prototype to avoid an error.  */
49662 #ifdef __cplusplus
49663 extern "C"
49664 {
49665 #endif
49666 /* We use char because int might match the return type of a gcc2
49667    builtin and then its argument prototype would still apply.  */
49668 char $ac_func ();
49669 /* The GNU C library defines this for functions which it implements
49670     to always fail with ENOSYS.  Some functions are actually named
49671     something starting with __ and the normal name is an alias.  */
49672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49673 choke me
49674 #else
49675 char (*f) () = $ac_func;
49676 #endif
49677 #ifdef __cplusplus
49678 }
49679 #endif
49680
49681 int
49682 main ()
49683 {
49684 return f != $ac_func;
49685   ;
49686   return 0;
49687 }
49688 _ACEOF
49689 rm -f conftest.$ac_objext conftest$ac_exeext
49690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49691   (eval $ac_link) 2>conftest.er1
49692   ac_status=$?
49693   grep -v '^ *+' conftest.er1 >conftest.err
49694   rm -f conftest.er1
49695   cat conftest.err >&5
49696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49697   (exit $ac_status); } &&
49698          { ac_try='test -z "$ac_c_werror_flag"
49699                          || test ! -s conftest.err'
49700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49701   (eval $ac_try) 2>&5
49702   ac_status=$?
49703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49704   (exit $ac_status); }; } &&
49705          { ac_try='test -s conftest$ac_exeext'
49706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49707   (eval $ac_try) 2>&5
49708   ac_status=$?
49709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49710   (exit $ac_status); }; }; then
49711   eval "$as_ac_var=yes"
49712 else
49713   echo "$as_me: failed program was:" >&5
49714 sed 's/^/| /' conftest.$ac_ext >&5
49715
49716 eval "$as_ac_var=no"
49717 fi
49718 rm -f conftest.err conftest.$ac_objext \
49719       conftest$ac_exeext conftest.$ac_ext
49720 fi
49721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49723 if test `eval echo '${'$as_ac_var'}'` = yes; then
49724   cat >>confdefs.h <<_ACEOF
49725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49726 _ACEOF
49727
49728 fi
49729 done
49730
49731 fi
49732
49733
49734
49735
49736
49737
49738
49739
49740
49741
49742
49743
49744
49745
49746
49747
49748
49749
49750
49751
49752
49753
49754
49755
49756
49757
49758
49759
49760
49761
49762
49763
49764
49765
49766
49767
49768
49769
49770
49771
49772
49773
49774
49775
49776
49777
49778
49779
49780
49781
49782
49783
49784
49785
49786 for ac_func in \
49787         bcopy                   \
49788         closesocket             \
49789         chroot                  \
49790         endgrent                \
49791         endpwent                \
49792         fcntl                   \
49793         flock                   \
49794         fstat                   \
49795         getdtablesize   \
49796         getgrgid                \
49797         gethostname             \
49798         getpass                 \
49799         getpassphrase   \
49800         getpwuid                \
49801         getpwnam                \
49802         getspnam                \
49803         gettimeofday    \
49804         initgroups              \
49805         lockf                   \
49806         memcpy                  \
49807         memmove                 \
49808         mkstemp                 \
49809         mktemp                  \
49810         pipe                    \
49811         read                    \
49812         recv                    \
49813         recvfrom                \
49814         setpwfile               \
49815         setgid                  \
49816         setegid                 \
49817         setsid                  \
49818         setuid                  \
49819         seteuid                 \
49820         signal                  \
49821         strdup                  \
49822         strpbrk                 \
49823         strrchr                 \
49824         strsep                  \
49825         strstr                  \
49826         strtol                  \
49827         strtoul                 \
49828         strtoq                  \
49829         strtouq                 \
49830         strtoll                 \
49831         strspn                  \
49832         sysconf                 \
49833         usleep                  \
49834         waitpid                 \
49835         wait4                   \
49836         write                   \
49837         send                    \
49838         sendmsg                 \
49839         sendto                  \
49840
49841 do
49842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49843 echo "$as_me:$LINENO: checking for $ac_func" >&5
49844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49845 if eval "test \"\${$as_ac_var+set}\" = set"; then
49846   echo $ECHO_N "(cached) $ECHO_C" >&6
49847 else
49848   cat >conftest.$ac_ext <<_ACEOF
49849 /* confdefs.h.  */
49850 _ACEOF
49851 cat confdefs.h >>conftest.$ac_ext
49852 cat >>conftest.$ac_ext <<_ACEOF
49853 /* end confdefs.h.  */
49854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49856 #define $ac_func innocuous_$ac_func
49857
49858 /* System header to define __stub macros and hopefully few prototypes,
49859     which can conflict with char $ac_func (); below.
49860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49861     <limits.h> exists even on freestanding compilers.  */
49862
49863 #ifdef __STDC__
49864 # include <limits.h>
49865 #else
49866 # include <assert.h>
49867 #endif
49868
49869 #undef $ac_func
49870
49871 /* Override any gcc2 internal prototype to avoid an error.  */
49872 #ifdef __cplusplus
49873 extern "C"
49874 {
49875 #endif
49876 /* We use char because int might match the return type of a gcc2
49877    builtin and then its argument prototype would still apply.  */
49878 char $ac_func ();
49879 /* The GNU C library defines this for functions which it implements
49880     to always fail with ENOSYS.  Some functions are actually named
49881     something starting with __ and the normal name is an alias.  */
49882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49883 choke me
49884 #else
49885 char (*f) () = $ac_func;
49886 #endif
49887 #ifdef __cplusplus
49888 }
49889 #endif
49890
49891 int
49892 main ()
49893 {
49894 return f != $ac_func;
49895   ;
49896   return 0;
49897 }
49898 _ACEOF
49899 rm -f conftest.$ac_objext conftest$ac_exeext
49900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49901   (eval $ac_link) 2>conftest.er1
49902   ac_status=$?
49903   grep -v '^ *+' conftest.er1 >conftest.err
49904   rm -f conftest.er1
49905   cat conftest.err >&5
49906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49907   (exit $ac_status); } &&
49908          { ac_try='test -z "$ac_c_werror_flag"
49909                          || test ! -s conftest.err'
49910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49911   (eval $ac_try) 2>&5
49912   ac_status=$?
49913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49914   (exit $ac_status); }; } &&
49915          { ac_try='test -s conftest$ac_exeext'
49916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49917   (eval $ac_try) 2>&5
49918   ac_status=$?
49919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49920   (exit $ac_status); }; }; then
49921   eval "$as_ac_var=yes"
49922 else
49923   echo "$as_me: failed program was:" >&5
49924 sed 's/^/| /' conftest.$ac_ext >&5
49925
49926 eval "$as_ac_var=no"
49927 fi
49928 rm -f conftest.err conftest.$ac_objext \
49929       conftest$ac_exeext conftest.$ac_ext
49930 fi
49931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49933 if test `eval echo '${'$as_ac_var'}'` = yes; then
49934   cat >>confdefs.h <<_ACEOF
49935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49936 _ACEOF
49937
49938 fi
49939 done
49940
49941
49942
49943
49944 for ac_func in getopt getpeereid
49945 do
49946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49947 echo "$as_me:$LINENO: checking for $ac_func" >&5
49948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49949 if eval "test \"\${$as_ac_var+set}\" = set"; then
49950   echo $ECHO_N "(cached) $ECHO_C" >&6
49951 else
49952   cat >conftest.$ac_ext <<_ACEOF
49953 /* confdefs.h.  */
49954 _ACEOF
49955 cat confdefs.h >>conftest.$ac_ext
49956 cat >>conftest.$ac_ext <<_ACEOF
49957 /* end confdefs.h.  */
49958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49960 #define $ac_func innocuous_$ac_func
49961
49962 /* System header to define __stub macros and hopefully few prototypes,
49963     which can conflict with char $ac_func (); below.
49964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49965     <limits.h> exists even on freestanding compilers.  */
49966
49967 #ifdef __STDC__
49968 # include <limits.h>
49969 #else
49970 # include <assert.h>
49971 #endif
49972
49973 #undef $ac_func
49974
49975 /* Override any gcc2 internal prototype to avoid an error.  */
49976 #ifdef __cplusplus
49977 extern "C"
49978 {
49979 #endif
49980 /* We use char because int might match the return type of a gcc2
49981    builtin and then its argument prototype would still apply.  */
49982 char $ac_func ();
49983 /* The GNU C library defines this for functions which it implements
49984     to always fail with ENOSYS.  Some functions are actually named
49985     something starting with __ and the normal name is an alias.  */
49986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49987 choke me
49988 #else
49989 char (*f) () = $ac_func;
49990 #endif
49991 #ifdef __cplusplus
49992 }
49993 #endif
49994
49995 int
49996 main ()
49997 {
49998 return f != $ac_func;
49999   ;
50000   return 0;
50001 }
50002 _ACEOF
50003 rm -f conftest.$ac_objext conftest$ac_exeext
50004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50005   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
50026 else
50027   echo "$as_me: failed program was:" >&5
50028 sed 's/^/| /' conftest.$ac_ext >&5
50029
50030 eval "$as_ac_var=no"
50031 fi
50032 rm -f conftest.err conftest.$ac_objext \
50033       conftest$ac_exeext conftest.$ac_ext
50034 fi
50035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50037 if test `eval echo '${'$as_ac_var'}'` = yes; then
50038   cat >>confdefs.h <<_ACEOF
50039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50040 _ACEOF
50041
50042 else
50043   case $LIBOBJS in
50044     "$ac_func.$ac_objext"   | \
50045   *" $ac_func.$ac_objext"   | \
50046     "$ac_func.$ac_objext "* | \
50047   *" $ac_func.$ac_objext "* ) ;;
50048   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50049 esac
50050
50051 fi
50052 done
50053
50054
50055
50056 if test "$ac_cv_func_getopt" != yes; then
50057         LIBSRCS="$LIBSRCS getopt.c"
50058 fi
50059 if test "$ac_cv_func_getpeereid" != yes; then
50060         echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50061 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50062 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50063   echo $ECHO_N "(cached) $ECHO_C" >&6
50064 else
50065   cat >conftest.$ac_ext <<_ACEOF
50066 /* confdefs.h.  */
50067 _ACEOF
50068 cat confdefs.h >>conftest.$ac_ext
50069 cat >>conftest.$ac_ext <<_ACEOF
50070 /* end confdefs.h.  */
50071 #include <sys/socket.h>
50072 int
50073 main ()
50074 {
50075 struct msghdr m; m.msg_accrightslen=0
50076   ;
50077   return 0;
50078 }
50079 _ACEOF
50080 rm -f conftest.$ac_objext
50081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50082   (eval $ac_compile) 2>conftest.er1
50083   ac_status=$?
50084   grep -v '^ *+' conftest.er1 >conftest.err
50085   rm -f conftest.er1
50086   cat conftest.err >&5
50087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088   (exit $ac_status); } &&
50089          { ac_try='test -z "$ac_c_werror_flag"
50090                          || test ! -s conftest.err'
50091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50092   (eval $ac_try) 2>&5
50093   ac_status=$?
50094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50095   (exit $ac_status); }; } &&
50096          { ac_try='test -s conftest.$ac_objext'
50097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50098   (eval $ac_try) 2>&5
50099   ac_status=$?
50100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50101   (exit $ac_status); }; }; then
50102   ol_cv_msghdr_msg_accrights=yes
50103 else
50104   echo "$as_me: failed program was:" >&5
50105 sed 's/^/| /' conftest.$ac_ext >&5
50106
50107 ol_cv_msghdr_msg_accrights=no
50108 fi
50109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50110
50111 fi
50112 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50113 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50114   if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50115
50116 cat >>confdefs.h <<\_ACEOF
50117 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50118 _ACEOF
50119
50120   fi
50121
50122         if test "$ac_cv_func_getpeereid" != yes; then
50123                 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50124 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50125 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50126   echo $ECHO_N "(cached) $ECHO_C" >&6
50127 else
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 <sys/socket.h>
50135 int
50136 main ()
50137 {
50138 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50139   ;
50140   return 0;
50141 }
50142 _ACEOF
50143 rm -f conftest.$ac_objext
50144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50145   (eval $ac_compile) 2>conftest.er1
50146   ac_status=$?
50147   grep -v '^ *+' conftest.er1 >conftest.err
50148   rm -f conftest.er1
50149   cat conftest.err >&5
50150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50151   (exit $ac_status); } &&
50152          { ac_try='test -z "$ac_c_werror_flag"
50153                          || test ! -s conftest.err'
50154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50155   (eval $ac_try) 2>&5
50156   ac_status=$?
50157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158   (exit $ac_status); }; } &&
50159          { ac_try='test -s conftest.$ac_objext'
50160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50161   (eval $ac_try) 2>&5
50162   ac_status=$?
50163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50164   (exit $ac_status); }; }; then
50165   ol_cv_msghdr_msg_control=yes
50166 else
50167   echo "$as_me: failed program was:" >&5
50168 sed 's/^/| /' conftest.$ac_ext >&5
50169
50170 ol_cv_msghdr_msg_control=no
50171 fi
50172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50173
50174 fi
50175 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50176 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50177   if test $ol_cv_msghdr_msg_control = "yes" ; then
50178
50179 cat >>confdefs.h <<\_ACEOF
50180 #define HAVE_MSGHDR_MSG_CONTROL 1
50181 _ACEOF
50182
50183   fi
50184
50185         fi
50186         LIBSRCS="$LIBSRCS getpeereid.c"
50187 fi
50188 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50189         if test "$ac_cv_func_snprintf" != yes; then
50190
50191 cat >>confdefs.h <<\_ACEOF
50192 #define snprintf ber_pvt_snprintf
50193 _ACEOF
50194
50195         fi
50196         if test "$ac_cv_func_vsnprintf" != yes; then
50197
50198 cat >>confdefs.h <<\_ACEOF
50199 #define vsnprintf ber_pvt_vsnprintf
50200 _ACEOF
50201
50202         fi
50203 fi
50204
50205
50206 if test "$ol_enable_slapi" != no ; then
50207
50208 for ac_header in ltdl.h
50209 do
50210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50212   echo "$as_me:$LINENO: checking for $ac_header" >&5
50213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50215   echo $ECHO_N "(cached) $ECHO_C" >&6
50216 fi
50217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50219 else
50220   # Is the header compilable?
50221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50223 cat >conftest.$ac_ext <<_ACEOF
50224 /* confdefs.h.  */
50225 _ACEOF
50226 cat confdefs.h >>conftest.$ac_ext
50227 cat >>conftest.$ac_ext <<_ACEOF
50228 /* end confdefs.h.  */
50229 $ac_includes_default
50230 #include <$ac_header>
50231 _ACEOF
50232 rm -f conftest.$ac_objext
50233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50234   (eval $ac_compile) 2>conftest.er1
50235   ac_status=$?
50236   grep -v '^ *+' conftest.er1 >conftest.err
50237   rm -f conftest.er1
50238   cat conftest.err >&5
50239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50240   (exit $ac_status); } &&
50241          { ac_try='test -z "$ac_c_werror_flag"
50242                          || test ! -s conftest.err'
50243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50244   (eval $ac_try) 2>&5
50245   ac_status=$?
50246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50247   (exit $ac_status); }; } &&
50248          { ac_try='test -s conftest.$ac_objext'
50249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50250   (eval $ac_try) 2>&5
50251   ac_status=$?
50252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50253   (exit $ac_status); }; }; then
50254   ac_header_compiler=yes
50255 else
50256   echo "$as_me: failed program was:" >&5
50257 sed 's/^/| /' conftest.$ac_ext >&5
50258
50259 ac_header_compiler=no
50260 fi
50261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50263 echo "${ECHO_T}$ac_header_compiler" >&6
50264
50265 # Is the header present?
50266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50268 cat >conftest.$ac_ext <<_ACEOF
50269 /* confdefs.h.  */
50270 _ACEOF
50271 cat confdefs.h >>conftest.$ac_ext
50272 cat >>conftest.$ac_ext <<_ACEOF
50273 /* end confdefs.h.  */
50274 #include <$ac_header>
50275 _ACEOF
50276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50278   ac_status=$?
50279   grep -v '^ *+' conftest.er1 >conftest.err
50280   rm -f conftest.er1
50281   cat conftest.err >&5
50282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50283   (exit $ac_status); } >/dev/null; then
50284   if test -s conftest.err; then
50285     ac_cpp_err=$ac_c_preproc_warn_flag
50286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50287   else
50288     ac_cpp_err=
50289   fi
50290 else
50291   ac_cpp_err=yes
50292 fi
50293 if test -z "$ac_cpp_err"; then
50294   ac_header_preproc=yes
50295 else
50296   echo "$as_me: failed program was:" >&5
50297 sed 's/^/| /' conftest.$ac_ext >&5
50298
50299   ac_header_preproc=no
50300 fi
50301 rm -f conftest.err conftest.$ac_ext
50302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50303 echo "${ECHO_T}$ac_header_preproc" >&6
50304
50305 # So?  What about this header?
50306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50307   yes:no: )
50308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50312     ac_header_preproc=yes
50313     ;;
50314   no:yes:* )
50315     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50317     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50318 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50319     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50321     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50322 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50325     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50327     (
50328       cat <<\_ASBOX
50329 ## ------------------------------------------ ##
50330 ## Report this to the AC_PACKAGE_NAME lists.  ##
50331 ## ------------------------------------------ ##
50332 _ASBOX
50333     ) |
50334       sed "s/^/$as_me: WARNING:     /" >&2
50335     ;;
50336 esac
50337 echo "$as_me:$LINENO: checking for $ac_header" >&5
50338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50340   echo $ECHO_N "(cached) $ECHO_C" >&6
50341 else
50342   eval "$as_ac_Header=\$ac_header_preproc"
50343 fi
50344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50346
50347 fi
50348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50349   cat >>confdefs.h <<_ACEOF
50350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50351 _ACEOF
50352
50353 fi
50354
50355 done
50356
50357
50358         if test $ac_cv_header_ltdl_h != yes ; then
50359                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50360 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50361    { (exit 1); exit 1; }; }
50362         fi
50363         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50364 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50365 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50366   echo $ECHO_N "(cached) $ECHO_C" >&6
50367 else
50368   ac_check_lib_save_LIBS=$LIBS
50369 LIBS="-lltdl  $LIBS"
50370 cat >conftest.$ac_ext <<_ACEOF
50371 /* confdefs.h.  */
50372 _ACEOF
50373 cat confdefs.h >>conftest.$ac_ext
50374 cat >>conftest.$ac_ext <<_ACEOF
50375 /* end confdefs.h.  */
50376
50377 /* Override any gcc2 internal prototype to avoid an error.  */
50378 #ifdef __cplusplus
50379 extern "C"
50380 #endif
50381 /* We use char because int might match the return type of a gcc2
50382    builtin and then its argument prototype would still apply.  */
50383 char lt_dlinit ();
50384 int
50385 main ()
50386 {
50387 lt_dlinit ();
50388   ;
50389   return 0;
50390 }
50391 _ACEOF
50392 rm -f conftest.$ac_objext conftest$ac_exeext
50393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50394   (eval $ac_link) 2>conftest.er1
50395   ac_status=$?
50396   grep -v '^ *+' conftest.er1 >conftest.err
50397   rm -f conftest.er1
50398   cat conftest.err >&5
50399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50400   (exit $ac_status); } &&
50401          { ac_try='test -z "$ac_c_werror_flag"
50402                          || test ! -s conftest.err'
50403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50404   (eval $ac_try) 2>&5
50405   ac_status=$?
50406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50407   (exit $ac_status); }; } &&
50408          { ac_try='test -s conftest$ac_exeext'
50409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50410   (eval $ac_try) 2>&5
50411   ac_status=$?
50412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50413   (exit $ac_status); }; }; then
50414   ac_cv_lib_ltdl_lt_dlinit=yes
50415 else
50416   echo "$as_me: failed program was:" >&5
50417 sed 's/^/| /' conftest.$ac_ext >&5
50418
50419 ac_cv_lib_ltdl_lt_dlinit=no
50420 fi
50421 rm -f conftest.err conftest.$ac_objext \
50422       conftest$ac_exeext conftest.$ac_ext
50423 LIBS=$ac_check_lib_save_LIBS
50424 fi
50425 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50426 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50427 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50428
50429                 SLAPI_LIBS=-lltdl
50430                 LIBSLAPI=libslapi.a
50431                 LIBSLAPITOOLS=../libslapi.a
50432
50433 cat >>confdefs.h <<\_ACEOF
50434 #define HAVE_LIBLTDL 1
50435 _ACEOF
50436
50437
50438 else
50439   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50440 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50441    { (exit 1); exit 1; }; }
50442 fi
50443
50444
50445
50446 cat >>confdefs.h <<\_ACEOF
50447 #define LDAP_SLAPI 1
50448 _ACEOF
50449
50450 fi
50451
50452 if test "$ol_enable_debug" != no ; then
50453
50454 cat >>confdefs.h <<\_ACEOF
50455 #define LDAP_DEBUG 1
50456 _ACEOF
50457
50458 fi
50459 if test "$ol_enable_syslog" = yes ; then
50460
50461 cat >>confdefs.h <<\_ACEOF
50462 #define LDAP_SYSLOG 1
50463 _ACEOF
50464
50465 fi
50466 if test "$ol_link_kbind" != no ; then
50467
50468 cat >>confdefs.h <<\_ACEOF
50469 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50470 _ACEOF
50471
50472 fi
50473 if test "$ol_enable_proctitle" != no ; then
50474
50475 cat >>confdefs.h <<\_ACEOF
50476 #define LDAP_PROCTITLE 1
50477 _ACEOF
50478
50479 fi
50480 if test "$ol_enable_referrals" != no ; then
50481
50482 cat >>confdefs.h <<\_ACEOF
50483 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50484 _ACEOF
50485
50486 fi
50487 if test "$ol_enable_local" != no; then
50488
50489 cat >>confdefs.h <<\_ACEOF
50490 #define LDAP_PF_LOCAL 1
50491 _ACEOF
50492
50493 fi
50494 if test "$ol_link_ipv6" != no; then
50495
50496 cat >>confdefs.h <<\_ACEOF
50497 #define LDAP_PF_INET6 1
50498 _ACEOF
50499
50500 fi
50501 if test "$ol_enable_cleartext" != no ; then
50502
50503 cat >>confdefs.h <<\_ACEOF
50504 #define SLAPD_CLEARTEXT 1
50505 _ACEOF
50506
50507 fi
50508 if test "$ol_enable_crypt" != no ; then
50509
50510 cat >>confdefs.h <<\_ACEOF
50511 #define SLAPD_CRYPT 1
50512 _ACEOF
50513
50514 fi
50515 if test "$ol_link_spasswd" != no ; then
50516
50517 cat >>confdefs.h <<\_ACEOF
50518 #define SLAPD_SPASSWD 1
50519 _ACEOF
50520
50521 fi
50522 if test "$ol_enable_multimaster" != no ; then
50523
50524 cat >>confdefs.h <<\_ACEOF
50525 #define SLAPD_MULTIMASTER 1
50526 _ACEOF
50527
50528 fi
50529 if test "$ol_enable_rlookups" != no ; then
50530
50531 cat >>confdefs.h <<\_ACEOF
50532 #define SLAPD_RLOOKUPS 1
50533 _ACEOF
50534
50535 fi
50536 if test "$ol_enable_aci" != no ; then
50537
50538 cat >>confdefs.h <<\_ACEOF
50539 #define SLAPD_ACI_ENABLED 1
50540 _ACEOF
50541
50542 fi
50543
50544 if test "$ol_link_modules" != no ; then
50545
50546 cat >>confdefs.h <<\_ACEOF
50547 #define SLAPD_MODULES 1
50548 _ACEOF
50549
50550         BUILD_SLAPD=yes
50551         SLAPD_MODULES_LDFLAGS="-dlopen self"
50552 fi
50553
50554
50555 cat >>confdefs.h <<\_ACEOF
50556 #define SLAPD_MOD_STATIC 1
50557 _ACEOF
50558
50559
50560 cat >>confdefs.h <<\_ACEOF
50561 #define SLAPD_MOD_DYNAMIC 2
50562 _ACEOF
50563
50564
50565 if test "$ol_enable_bdb" != no ; then
50566         BUILD_SLAPD=yes
50567         BUILD_BDB=$ol_enable_bdb
50568         if test "$ol_enable_bdb" = mod ; then
50569                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50570                 MFLAG=SLAPD_MOD_DYNAMIC
50571         else
50572                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50573                 MFLAG=SLAPD_MOD_STATIC
50574         fi
50575
50576 cat >>confdefs.h <<_ACEOF
50577 #define SLAPD_BDB $MFLAG
50578 _ACEOF
50579
50580 fi
50581
50582 if test "$ol_enable_dnssrv" != no ; then
50583         BUILD_SLAPD=yes
50584         BUILD_DNSSRV=$ol_enable_dnssrv
50585         if test "$ol_enable_dnssrv" = mod ; then
50586                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50587                 MFLAG=SLAPD_MOD_DYNAMIC
50588         else
50589                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50590                 MFLAG=SLAPD_MOD_STATIC
50591         fi
50592
50593 cat >>confdefs.h <<_ACEOF
50594 #define SLAPD_DNSSRV $MFLAG
50595 _ACEOF
50596
50597 fi
50598
50599 if test "$ol_enable_hdb" != no ; then
50600         BUILD_SLAPD=yes
50601         BUILD_HDB=$ol_enable_hdb
50602         if test "$ol_enable_hdb" = mod ; then
50603                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50604                 MFLAG=SLAPD_MOD_DYNAMIC
50605         else
50606                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50607                 MFLAG=SLAPD_MOD_STATIC
50608         fi
50609
50610 cat >>confdefs.h <<_ACEOF
50611 #define SLAPD_HDB $MFLAG
50612 _ACEOF
50613
50614 fi
50615
50616 if test "$ol_enable_ldap" != no ; then
50617         BUILD_SLAPD=yes
50618         BUILD_LDAP=$ol_enable_ldap
50619         if test "$ol_enable_ldap" = mod ; then
50620                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50621                 MFLAG=SLAPD_MOD_DYNAMIC
50622         else
50623                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50624                 MFLAG=SLAPD_MOD_STATIC
50625         fi
50626
50627 cat >>confdefs.h <<_ACEOF
50628 #define SLAPD_LDAP $MFLAG
50629 _ACEOF
50630
50631 fi
50632
50633 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50634         BUILD_SLAPD=yes
50635         BUILD_LDBM=$ol_enable_ldbm
50636         if test "$ol_enable_ldbm" = mod ; then
50637                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50638                 MFLAG=SLAPD_MOD_DYNAMIC
50639         else
50640                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50641                 MFLAG=SLAPD_MOD_STATIC
50642         fi
50643
50644 cat >>confdefs.h <<_ACEOF
50645 #define SLAPD_LDBM $MFLAG
50646 _ACEOF
50647
50648 fi
50649
50650 if test "$ol_enable_meta" != no ; then
50651         BUILD_SLAPD=yes
50652         BUILD_META=$ol_enable_meta
50653         BUILD_REWRITE=yes
50654         if test "$ol_enable_meta" = mod ; then
50655                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50656                 MFLAG=SLAPD_MOD_DYNAMIC
50657         else
50658                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50659                 MFLAG=SLAPD_MOD_STATIC
50660         fi
50661
50662 cat >>confdefs.h <<_ACEOF
50663 #define SLAPD_META $MFLAG
50664 _ACEOF
50665
50666 fi
50667
50668 if test "$ol_enable_monitor" != no ; then
50669         BUILD_SLAPD=yes
50670         BUILD_MONITOR=$ol_enable_monitor
50671         if test "$ol_enable_monitor" = mod ; then
50672                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50673                 MFLAG=SLAPD_MOD_DYNAMIC
50674         else
50675                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50676                 MFLAG=SLAPD_MOD_STATIC
50677         fi
50678
50679 cat >>confdefs.h <<_ACEOF
50680 #define SLAPD_MONITOR $MFLAG
50681 _ACEOF
50682
50683 fi
50684
50685 if test "$ol_enable_null" != no ; then
50686         BUILD_SLAPD=yes
50687         BUILD_NULL=$ol_enable_null
50688         if test "$ol_enable_null" = mod ; then
50689                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50690                 MFLAG=SLAPD_MOD_DYNAMIC
50691         else
50692                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50693                 MFLAG=SLAPD_MOD_STATIC
50694         fi
50695
50696 cat >>confdefs.h <<_ACEOF
50697 #define SLAPD_NULL $MFLAG
50698 _ACEOF
50699
50700 fi
50701
50702 if test "$ol_enable_passwd" != no ; then
50703         BUILD_SLAPD=yes
50704         BUILD_PASSWD=$ol_enable_passwd
50705         if test "$ol_enable_passwd" = mod ; then
50706                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50707                 MFLAG=SLAPD_MOD_DYNAMIC
50708         else
50709                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50710                 MFLAG=SLAPD_MOD_STATIC
50711         fi
50712
50713 cat >>confdefs.h <<_ACEOF
50714 #define SLAPD_PASSWD $MFLAG
50715 _ACEOF
50716
50717 fi
50718
50719 if test "$ol_link_perl" != no ; then
50720         BUILD_SLAPD=yes
50721         BUILD_PERL=$ol_enable_perl
50722         if test "$ol_enable_perl" = mod ; then
50723                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50724                 MFLAG=SLAPD_MOD_DYNAMIC
50725         else
50726                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50727                 MFLAG=SLAPD_MOD_STATIC
50728         fi
50729
50730 cat >>confdefs.h <<_ACEOF
50731 #define SLAPD_PERL $MFLAG
50732 _ACEOF
50733
50734 fi
50735
50736 if test "$ol_enable_relay" != no ; then
50737         BUILD_SLAPD=yes
50738         BUILD_RELAY=$ol_enable_relay
50739         if test "$ol_enable_relay" = mod ; then
50740                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50741                 MFLAG=SLAPD_MOD_DYNAMIC
50742         else
50743                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50744                 MFLAG=SLAPD_MOD_STATIC
50745         fi
50746
50747 cat >>confdefs.h <<_ACEOF
50748 #define SLAPD_RELAY $MFLAG
50749 _ACEOF
50750
50751 fi
50752
50753 if test "$ol_enable_shell" != no ; then
50754         if test "$ol_link_thread" != no ; then
50755                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50756 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50757         fi
50758         BUILD_SLAPD=yes
50759         BUILD_SHELL=$ol_enable_shell
50760         if test "$ol_enable_shell" = mod ; then
50761                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50762                 MFLAG=SLAPD_MOD_DYNAMIC
50763         else
50764                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50765                 MFLAG=SLAPD_MOD_STATIC
50766         fi
50767
50768 cat >>confdefs.h <<_ACEOF
50769 #define SLAPD_SHELL $MFLAG
50770 _ACEOF
50771
50772 fi
50773
50774 if test "$ol_link_sql" != no ; then
50775         BUILD_SLAPD=yes
50776         BUILD_SQL=$ol_enable_sql
50777         if test "$ol_enable_sql" = mod; then
50778                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50779                 MFLAG=SLAPD_MOD_DYNAMIC
50780         else
50781                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50782                 MFLAG=SLAPD_MOD_STATIC
50783         fi
50784
50785 cat >>confdefs.h <<_ACEOF
50786 #define SLAPD_SQL $MFLAG
50787 _ACEOF
50788
50789 fi
50790
50791 if test "$ol_enable_accesslog" != no ; then
50792         BUILD_ACCESSLOG=$ol_enable_accesslog
50793         if test "$ol_enable_accesslog" = mod ; then
50794                 MFLAG=SLAPD_MOD_DYNAMIC
50795                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50796         else
50797                 MFLAG=SLAPD_MOD_STATIC
50798                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50799         fi
50800
50801 cat >>confdefs.h <<_ACEOF
50802 #define SLAPD_OVER_ACCESSLOG $MFLAG
50803 _ACEOF
50804
50805 fi
50806
50807 if test "$ol_enable_denyop" != no ; then
50808         BUILD_DENYOP=$ol_enable_denyop
50809         if test "$ol_enable_denyop" = mod ; then
50810                 MFLAG=SLAPD_MOD_DYNAMIC
50811                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50812         else
50813                 MFLAG=SLAPD_MOD_STATIC
50814                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50815         fi
50816
50817 cat >>confdefs.h <<_ACEOF
50818 #define SLAPD_OVER_DENYOP $MFLAG
50819 _ACEOF
50820
50821 fi
50822
50823 if test "$ol_enable_dyngroup" != no ; then
50824         BUILD_DYNGROUP=$ol_enable_dyngroup
50825         if test "$ol_enable_dyngroup" = mod ; then
50826                 MFLAG=SLAPD_MOD_DYNAMIC
50827                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50828         else
50829                 MFLAG=SLAPD_MOD_STATIC
50830                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50831         fi
50832
50833 cat >>confdefs.h <<_ACEOF
50834 #define SLAPD_OVER_DYNGROUP $MFLAG
50835 _ACEOF
50836
50837 fi
50838
50839 if test "$ol_enable_dynlist" != no ; then
50840         BUILD_DYNLIST=$ol_enable_dynlist
50841         if test "$ol_enable_dynlist" = mod ; then
50842                 MFLAG=SLAPD_MOD_DYNAMIC
50843                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50844         else
50845                 MFLAG=SLAPD_MOD_STATIC
50846                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50847         fi
50848
50849 cat >>confdefs.h <<_ACEOF
50850 #define SLAPD_OVER_DYNLIST $MFLAG
50851 _ACEOF
50852
50853 fi
50854
50855 if test "$ol_enable_glue" != no ; then
50856         BUILD_GLUE=$ol_enable_glue
50857         if test "$ol_enable_glue" = mod ; then
50858                 MFLAG=SLAPD_MOD_DYNAMIC
50859                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50860         else
50861                 MFLAG=SLAPD_MOD_STATIC
50862                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50863         fi
50864
50865 cat >>confdefs.h <<_ACEOF
50866 #define SLAPD_OVER_GLUE $MFLAG
50867 _ACEOF
50868
50869 fi
50870
50871 if test "$ol_enable_lastmod" != no ; then
50872         BUILD_LASTMOD=$ol_enable_lastmod
50873         if test "$ol_enable_lastmod" = mod ; then
50874                 MFLAG=SLAPD_MOD_DYNAMIC
50875                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50876         else
50877                 MFLAG=SLAPD_MOD_STATIC
50878                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50879         fi
50880
50881 cat >>confdefs.h <<_ACEOF
50882 #define SLAPD_OVER_LASTMOD $MFLAG
50883 _ACEOF
50884
50885 fi
50886
50887 if test "$ol_enable_ppolicy" != no ; then
50888         BUILD_PPOLICY=$ol_enable_ppolicy
50889         if test "$ol_enable_ppolicy" = mod ; then
50890                 MFLAG=SLAPD_MOD_DYNAMIC
50891                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50892         else
50893                 MFLAG=SLAPD_MOD_STATIC
50894                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50895         fi
50896
50897 cat >>confdefs.h <<_ACEOF
50898 #define SLAPD_OVER_PPOLICY $MFLAG
50899 _ACEOF
50900
50901 fi
50902
50903 if test "$ol_enable_proxycache" != no ; then
50904         BUILD_PROXYCACHE=$ol_enable_proxycache
50905         if test "$ol_enable_proxycache" = mod ; then
50906                 MFLAG=SLAPD_MOD_DYNAMIC
50907                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50908         else
50909                 MFLAG=SLAPD_MOD_STATIC
50910                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50911         fi
50912
50913 cat >>confdefs.h <<_ACEOF
50914 #define SLAPD_OVER_PROXYCACHE $MFLAG
50915 _ACEOF
50916
50917 fi
50918
50919 if test "$ol_enable_refint" != no ; then
50920         BUILD_REFINT=$ol_enable_refint
50921         if test "$ol_enable_refint" = mod ; then
50922                 MFLAG=SLAPD_MOD_DYNAMIC
50923                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50924         else
50925                 MFLAG=SLAPD_MOD_STATIC
50926                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50927         fi
50928
50929 cat >>confdefs.h <<_ACEOF
50930 #define SLAPD_OVER_REFINT $MFLAG
50931 _ACEOF
50932
50933 fi
50934
50935 if test "$ol_enable_retcode" != no ; then
50936         BUILD_RETCODE=$ol_enable_retcode
50937         if test "$ol_enable_retcode" = mod ; then
50938                 MFLAG=SLAPD_MOD_DYNAMIC
50939                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50940         else
50941                 MFLAG=SLAPD_MOD_STATIC
50942                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
50943         fi
50944
50945 cat >>confdefs.h <<_ACEOF
50946 #define SLAPD_OVER_RETCODE $MFLAG
50947 _ACEOF
50948
50949 fi
50950
50951 if test "$ol_enable_rwm" != no ; then
50952         BUILD_REWRITE=yes
50953         BUILD_RWM=$ol_enable_rwm
50954         if test "$ol_enable_rwm" = mod ; then
50955                 MFLAG=SLAPD_MOD_DYNAMIC
50956                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
50957         else
50958                 MFLAG=SLAPD_MOD_STATIC
50959                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
50960         fi
50961
50962 cat >>confdefs.h <<_ACEOF
50963 #define SLAPD_OVER_RWM $MFLAG
50964 _ACEOF
50965
50966 fi
50967
50968 if test "$ol_enable_syncprov" != no ; then
50969         BUILD_SYNCPROV=$ol_enable_syncprov
50970         if test "$ol_enable_syncprov" = mod ; then
50971                 MFLAG=SLAPD_MOD_DYNAMIC
50972                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
50973         else
50974                 MFLAG=SLAPD_MOD_STATIC
50975                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
50976         fi
50977
50978 cat >>confdefs.h <<_ACEOF
50979 #define SLAPD_OVER_SYNCPROV $MFLAG
50980 _ACEOF
50981
50982 fi
50983
50984 if test "$ol_enable_translucent" != no ; then
50985         BUILD_TRANSLUCENT=$ol_enable_translucent
50986         if test "$ol_enable_translucent" = mod ; then
50987                 MFLAG=SLAPD_MOD_DYNAMIC
50988                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
50989         else
50990                 MFLAG=SLAPD_MOD_STATIC
50991                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
50992         fi
50993
50994 cat >>confdefs.h <<_ACEOF
50995 #define SLAPD_OVER_TRANSLUCENT $MFLAG
50996 _ACEOF
50997
50998 fi
50999
51000 if test "$ol_enable_unique" != no ; then
51001         BUILD_UNIQUE=$ol_enable_unique
51002         if test "$ol_enable_unique" = mod ; then
51003                 MFLAG=SLAPD_MOD_DYNAMIC
51004                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51005         else
51006                 MFLAG=SLAPD_MOD_STATIC
51007                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51008         fi
51009
51010 cat >>confdefs.h <<_ACEOF
51011 #define SLAPD_OVER_UNIQUE $MFLAG
51012 _ACEOF
51013
51014 fi
51015
51016 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51017         $BUILD_SLAPD = yes ; then
51018         BUILD_SLURPD=yes
51019 fi
51020
51021 if test "$ol_enable_rewrite" != no ; then
51022
51023 cat >>confdefs.h <<\_ACEOF
51024 #define ENABLE_REWRITE 1
51025 _ACEOF
51026
51027         BUILD_REWRITE=yes
51028 fi
51029
51030 if test "$ol_enable_slapi" != no ; then
51031
51032 cat >>confdefs.h <<\_ACEOF
51033 #define ENABLE_SLAPI 1
51034 _ACEOF
51035
51036         BUILD_SLAPI=yes
51037         SLAPD_SLAPI_DEPEND=libslapi.a
51038 fi
51039
51040
51041
51042 if test "$ac_cv_mingw32" = yes ; then
51043         PLAT=NT
51044         SLAPD_MODULES_LDFLAGS=
51045 else
51046         PLAT=UNIX
51047 fi
51048
51049
51050
51051
51052
51053
51054
51055
51056
51057
51058
51059
51060
51061
51062
51063
51064
51065
51066
51067
51068
51069
51070
51071
51072
51073
51074
51075
51076
51077
51078
51079
51080
51081
51082
51083
51084
51085
51086
51087
51088
51089
51090
51091
51092
51093
51094
51095
51096
51097
51098
51099
51100
51101
51102
51103
51104
51105
51106
51107
51108
51109
51110
51111
51112
51113
51114
51115
51116
51117
51118
51119
51120
51121
51122
51123
51124
51125
51126
51127 # Check whether --with-xxinstall or --without-xxinstall was given.
51128 if test "${with_xxinstall+set}" = set; then
51129   withval="$with_xxinstall"
51130
51131 fi;
51132
51133
51134                                                                                                                                                                                                                                                                                                                                                                                                                 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"
51135
51136           ac_config_commands="$ac_config_commands default"
51137
51138
51139
51140 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51141 # Let make expand exec_prefix.
51142 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51143
51144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51146 # trailing colons and then remove the whole line if VPATH becomes empty
51147 # (actually we leave an empty line to preserve line numbers).
51148 if test "x$srcdir" = x.; then
51149   ac_vpsub='/^[  ]*VPATH[        ]*=/{
51150 s/:*\$(srcdir):*/:/;
51151 s/:*\${srcdir}:*/:/;
51152 s/:*@srcdir@:*/:/;
51153 s/^\([^=]*=[     ]*\):*/\1/;
51154 s/:*$//;
51155 s/^[^=]*=[       ]*$//;
51156 }'
51157 fi
51158
51159 DEFS=-DHAVE_CONFIG_H
51160
51161 ac_libobjs=
51162 ac_ltlibobjs=
51163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51164   # 1. Remove the extension, and $U if already installed.
51165   ac_i=`echo "$ac_i" |
51166          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51167   # 2. Add them.
51168   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51169   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51170 done
51171 LIBOBJS=$ac_libobjs
51172
51173 LTLIBOBJS=$ac_ltlibobjs
51174
51175
51176 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51177   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51178 Usually this means the macro was only invoked conditionally." >&5
51179 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51180 Usually this means the macro was only invoked conditionally." >&2;}
51181    { (exit 1); exit 1; }; }
51182 fi
51183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51184   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51185 Usually this means the macro was only invoked conditionally." >&5
51186 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51187 Usually this means the macro was only invoked conditionally." >&2;}
51188    { (exit 1); exit 1; }; }
51189 fi
51190 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51191   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51192 Usually this means the macro was only invoked conditionally." >&5
51193 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51194 Usually this means the macro was only invoked conditionally." >&2;}
51195    { (exit 1); exit 1; }; }
51196 fi
51197 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51198   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51199 Usually this means the macro was only invoked conditionally." >&5
51200 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51201 Usually this means the macro was only invoked conditionally." >&2;}
51202    { (exit 1); exit 1; }; }
51203 fi
51204
51205 : ${CONFIG_STATUS=./config.status}
51206 ac_clean_files_save=$ac_clean_files
51207 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51208 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51209 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51210 cat >$CONFIG_STATUS <<_ACEOF
51211 #! $SHELL
51212 # Generated by $as_me.
51213 # Run this file to recreate the current configuration.
51214 # Compiler output produced by configure, useful for debugging
51215 # configure, is in config.log if it exists.
51216
51217 debug=false
51218 ac_cs_recheck=false
51219 ac_cs_silent=false
51220 SHELL=\${CONFIG_SHELL-$SHELL}
51221 _ACEOF
51222
51223 cat >>$CONFIG_STATUS <<\_ACEOF
51224 ## --------------------- ##
51225 ## M4sh Initialization.  ##
51226 ## --------------------- ##
51227
51228 # Be Bourne compatible
51229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51230   emulate sh
51231   NULLCMD=:
51232   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51233   # is contrary to our usage.  Disable this feature.
51234   alias -g '${1+"$@"}'='"$@"'
51235 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51236   set -o posix
51237 fi
51238 DUALCASE=1; export DUALCASE # for MKS sh
51239
51240 # Support unset when possible.
51241 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51242   as_unset=unset
51243 else
51244   as_unset=false
51245 fi
51246
51247
51248 # Work around bugs in pre-3.0 UWIN ksh.
51249 $as_unset ENV MAIL MAILPATH
51250 PS1='$ '
51251 PS2='> '
51252 PS4='+ '
51253
51254 # NLS nuisances.
51255 for as_var in \
51256   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51257   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51258   LC_TELEPHONE LC_TIME
51259 do
51260   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51261     eval $as_var=C; export $as_var
51262   else
51263     $as_unset $as_var
51264   fi
51265 done
51266
51267 # Required to use basename.
51268 if expr a : '\(a\)' >/dev/null 2>&1; then
51269   as_expr=expr
51270 else
51271   as_expr=false
51272 fi
51273
51274 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51275   as_basename=basename
51276 else
51277   as_basename=false
51278 fi
51279
51280
51281 # Name of the executable.
51282 as_me=`$as_basename "$0" ||
51283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51284          X"$0" : 'X\(//\)$' \| \
51285          X"$0" : 'X\(/\)$' \| \
51286          .     : '\(.\)' 2>/dev/null ||
51287 echo X/"$0" |
51288     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51289           /^X\/\(\/\/\)$/{ s//\1/; q; }
51290           /^X\/\(\/\).*/{ s//\1/; q; }
51291           s/.*/./; q'`
51292
51293
51294 # PATH needs CR, and LINENO needs CR and PATH.
51295 # Avoid depending upon Character Ranges.
51296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51299 as_cr_digits='0123456789'
51300 as_cr_alnum=$as_cr_Letters$as_cr_digits
51301
51302 # The user is always right.
51303 if test "${PATH_SEPARATOR+set}" != set; then
51304   echo "#! /bin/sh" >conf$$.sh
51305   echo  "exit 0"   >>conf$$.sh
51306   chmod +x conf$$.sh
51307   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51308     PATH_SEPARATOR=';'
51309   else
51310     PATH_SEPARATOR=:
51311   fi
51312   rm -f conf$$.sh
51313 fi
51314
51315
51316   as_lineno_1=$LINENO
51317   as_lineno_2=$LINENO
51318   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51319   test "x$as_lineno_1" != "x$as_lineno_2" &&
51320   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
51321   # Find who we are.  Look in the path if we contain no path at all
51322   # relative or not.
51323   case $0 in
51324     *[\\/]* ) as_myself=$0 ;;
51325     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51326 for as_dir in $PATH
51327 do
51328   IFS=$as_save_IFS
51329   test -z "$as_dir" && as_dir=.
51330   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51331 done
51332
51333        ;;
51334   esac
51335   # We did not find ourselves, most probably we were run as `sh COMMAND'
51336   # in which case we are not to be found in the path.
51337   if test "x$as_myself" = x; then
51338     as_myself=$0
51339   fi
51340   if test ! -f "$as_myself"; then
51341     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51342 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51343    { (exit 1); exit 1; }; }
51344   fi
51345   case $CONFIG_SHELL in
51346   '')
51347     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51348 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51349 do
51350   IFS=$as_save_IFS
51351   test -z "$as_dir" && as_dir=.
51352   for as_base in sh bash ksh sh5; do
51353          case $as_dir in
51354          /*)
51355            if ("$as_dir/$as_base" -c '
51356   as_lineno_1=$LINENO
51357   as_lineno_2=$LINENO
51358   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51359   test "x$as_lineno_1" != "x$as_lineno_2" &&
51360   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
51361              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51362              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51363              CONFIG_SHELL=$as_dir/$as_base
51364              export CONFIG_SHELL
51365              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51366            fi;;
51367          esac
51368        done
51369 done
51370 ;;
51371   esac
51372
51373   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51374   # uniformly replaced by the line number.  The first 'sed' inserts a
51375   # line-number line before each line; the second 'sed' does the real
51376   # work.  The second script uses 'N' to pair each line-number line
51377   # with the numbered line, and appends trailing '-' during
51378   # substitution so that $LINENO is not a special case at line end.
51379   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51380   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
51381   sed '=' <$as_myself |
51382     sed '
51383       N
51384       s,$,-,
51385       : loop
51386       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51387       t loop
51388       s,-$,,
51389       s,^['$as_cr_digits']*\n,,
51390     ' >$as_me.lineno &&
51391   chmod +x $as_me.lineno ||
51392     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51393 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51394    { (exit 1); exit 1; }; }
51395
51396   # Don't try to exec as it changes $[0], causing all sort of problems
51397   # (the dirname of $[0] is not the place where we might find the
51398   # original and so on.  Autoconf is especially sensible to this).
51399   . ./$as_me.lineno
51400   # Exit status is that of the last command.
51401   exit
51402 }
51403
51404
51405 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51406   *c*,-n*) ECHO_N= ECHO_C='
51407 ' ECHO_T='      ' ;;
51408   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51409   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
51410 esac
51411
51412 if expr a : '\(a\)' >/dev/null 2>&1; then
51413   as_expr=expr
51414 else
51415   as_expr=false
51416 fi
51417
51418 rm -f conf$$ conf$$.exe conf$$.file
51419 echo >conf$$.file
51420 if ln -s conf$$.file conf$$ 2>/dev/null; then
51421   # We could just check for DJGPP; but this test a) works b) is more generic
51422   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51423   if test -f conf$$.exe; then
51424     # Don't use ln at all; we don't have any links
51425     as_ln_s='cp -p'
51426   else
51427     as_ln_s='ln -s'
51428   fi
51429 elif ln conf$$.file conf$$ 2>/dev/null; then
51430   as_ln_s=ln
51431 else
51432   as_ln_s='cp -p'
51433 fi
51434 rm -f conf$$ conf$$.exe conf$$.file
51435
51436 if mkdir -p . 2>/dev/null; then
51437   as_mkdir_p=:
51438 else
51439   test -d ./-p && rmdir ./-p
51440   as_mkdir_p=false
51441 fi
51442
51443 as_executable_p="test -f"
51444
51445 # Sed expression to map a string onto a valid CPP name.
51446 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51447
51448 # Sed expression to map a string onto a valid variable name.
51449 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51450
51451
51452 # IFS
51453 # We need space, tab and new line, in precisely that order.
51454 as_nl='
51455 '
51456 IFS="   $as_nl"
51457
51458 # CDPATH.
51459 $as_unset CDPATH
51460
51461 exec 6>&1
51462
51463 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51464 # report actual input values of CONFIG_FILES etc. instead of their
51465 # values after options handling.  Logging --version etc. is OK.
51466 exec 5>>config.log
51467 {
51468   echo
51469   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51470 ## Running $as_me. ##
51471 _ASBOX
51472 } >&5
51473 cat >&5 <<_CSEOF
51474
51475 This file was extended by $as_me, which was
51476 generated by GNU Autoconf 2.59.  Invocation command line was
51477
51478   CONFIG_FILES    = $CONFIG_FILES
51479   CONFIG_HEADERS  = $CONFIG_HEADERS
51480   CONFIG_LINKS    = $CONFIG_LINKS
51481   CONFIG_COMMANDS = $CONFIG_COMMANDS
51482   $ $0 $@
51483
51484 _CSEOF
51485 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51486 echo >&5
51487 _ACEOF
51488
51489 # Files that config.status was made for.
51490 if test -n "$ac_config_files"; then
51491   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51492 fi
51493
51494 if test -n "$ac_config_headers"; then
51495   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51496 fi
51497
51498 if test -n "$ac_config_links"; then
51499   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51500 fi
51501
51502 if test -n "$ac_config_commands"; then
51503   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51504 fi
51505
51506 cat >>$CONFIG_STATUS <<\_ACEOF
51507
51508 ac_cs_usage="\
51509 \`$as_me' instantiates files from templates according to the
51510 current configuration.
51511
51512 Usage: $0 [OPTIONS] [FILE]...
51513
51514   -h, --help       print this help, then exit
51515   -V, --version    print version number, then exit
51516   -q, --quiet      do not print progress messages
51517   -d, --debug      don't remove temporary files
51518       --recheck    update $as_me by reconfiguring in the same conditions
51519   --file=FILE[:TEMPLATE]
51520                    instantiate the configuration file FILE
51521   --header=FILE[:TEMPLATE]
51522                    instantiate the configuration header FILE
51523
51524 Configuration files:
51525 $config_files
51526
51527 Configuration headers:
51528 $config_headers
51529
51530 Configuration commands:
51531 $config_commands
51532
51533 Report bugs to <bug-autoconf@gnu.org>."
51534 _ACEOF
51535
51536 cat >>$CONFIG_STATUS <<_ACEOF
51537 ac_cs_version="\\
51538 config.status
51539 configured by $0, generated by GNU Autoconf 2.59,
51540   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51541
51542 Copyright (C) 2003 Free Software Foundation, Inc.
51543 This config.status script is free software; the Free Software Foundation
51544 gives unlimited permission to copy, distribute and modify it."
51545 srcdir=$srcdir
51546 INSTALL="$INSTALL"
51547 _ACEOF
51548
51549 cat >>$CONFIG_STATUS <<\_ACEOF
51550 # If no file are specified by the user, then we need to provide default
51551 # value.  By we need to know if files were specified by the user.
51552 ac_need_defaults=:
51553 while test $# != 0
51554 do
51555   case $1 in
51556   --*=*)
51557     ac_option=`expr "x$1" : 'x\([^=]*\)='`
51558     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51559     ac_shift=:
51560     ;;
51561   -*)
51562     ac_option=$1
51563     ac_optarg=$2
51564     ac_shift=shift
51565     ;;
51566   *) # This is not an option, so the user has probably given explicit
51567      # arguments.
51568      ac_option=$1
51569      ac_need_defaults=false;;
51570   esac
51571
51572   case $ac_option in
51573   # Handling of the options.
51574 _ACEOF
51575 cat >>$CONFIG_STATUS <<\_ACEOF
51576   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51577     ac_cs_recheck=: ;;
51578   --version | --vers* | -V )
51579     echo "$ac_cs_version"; exit 0 ;;
51580   --he | --h)
51581     # Conflict between --help and --header
51582     { { echo "$as_me:$LINENO: error: ambiguous option: $1
51583 Try \`$0 --help' for more information." >&5
51584 echo "$as_me: error: ambiguous option: $1
51585 Try \`$0 --help' for more information." >&2;}
51586    { (exit 1); exit 1; }; };;
51587   --help | --hel | -h )
51588     echo "$ac_cs_usage"; exit 0 ;;
51589   --debug | --d* | -d )
51590     debug=: ;;
51591   --file | --fil | --fi | --f )
51592     $ac_shift
51593     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51594     ac_need_defaults=false;;
51595   --header | --heade | --head | --hea )
51596     $ac_shift
51597     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51598     ac_need_defaults=false;;
51599   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51600   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51601     ac_cs_silent=: ;;
51602
51603   # This is an error.
51604   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51605 Try \`$0 --help' for more information." >&5
51606 echo "$as_me: error: unrecognized option: $1
51607 Try \`$0 --help' for more information." >&2;}
51608    { (exit 1); exit 1; }; } ;;
51609
51610   *) ac_config_targets="$ac_config_targets $1" ;;
51611
51612   esac
51613   shift
51614 done
51615
51616 ac_configure_extra_args=
51617
51618 if $ac_cs_silent; then
51619   exec 6>/dev/null
51620   ac_configure_extra_args="$ac_configure_extra_args --silent"
51621 fi
51622
51623 _ACEOF
51624 cat >>$CONFIG_STATUS <<_ACEOF
51625 if \$ac_cs_recheck; then
51626   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51627   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51628 fi
51629
51630 _ACEOF
51631
51632 cat >>$CONFIG_STATUS <<_ACEOF
51633 #
51634 # INIT-COMMANDS section.
51635 #
51636
51637 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51638 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51639
51640 _ACEOF
51641
51642
51643
51644 cat >>$CONFIG_STATUS <<\_ACEOF
51645 for ac_config_target in $ac_config_targets
51646 do
51647   case "$ac_config_target" in
51648   # Handling of arguments.
51649   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51650   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51651   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51652   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51653   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51654   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51655   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51656   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51657   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51658   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51659   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51660   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51661   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51662   "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" ;;
51663   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51664   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51665   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51666   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51667   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51668   "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" ;;
51669   "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" ;;
51670   "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" ;;
51671   "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" ;;
51672   "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" ;;
51673   "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" ;;
51674   "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" ;;
51675   "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" ;;
51676   "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" ;;
51677   "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" ;;
51678   "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" ;;
51679   "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" ;;
51680   "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" ;;
51681   "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" ;;
51682   "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" ;;
51683   "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" ;;
51684   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51685   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51686   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51687   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51688   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51689   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51690   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51691   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
51692   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
51693   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
51694   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51695 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51696    { (exit 1); exit 1; }; };;
51697   esac
51698 done
51699
51700 # If the user did not use the arguments to specify the items to instantiate,
51701 # then the envvar interface is used.  Set only those that are not.
51702 # We use the long form for the default assignment because of an extremely
51703 # bizarre bug on SunOS 4.1.3.
51704 if $ac_need_defaults; then
51705   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51706   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51707   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51708 fi
51709
51710 # Have a temporary directory for convenience.  Make it in the build tree
51711 # simply because there is no reason to put it here, and in addition,
51712 # creating and moving files from /tmp can sometimes cause problems.
51713 # Create a temporary directory, and hook for its removal unless debugging.
51714 $debug ||
51715 {
51716   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51717   trap '{ (exit 1); exit 1; }' 1 2 13 15
51718 }
51719
51720 # Create a (secure) tmp directory for tmp files.
51721
51722 {
51723   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51724   test -n "$tmp" && test -d "$tmp"
51725 }  ||
51726 {
51727   tmp=./confstat$$-$RANDOM
51728   (umask 077 && mkdir $tmp)
51729 } ||
51730 {
51731    echo "$me: cannot create a temporary directory in ." >&2
51732    { (exit 1); exit 1; }
51733 }
51734
51735 _ACEOF
51736
51737 cat >>$CONFIG_STATUS <<_ACEOF
51738
51739 #
51740 # CONFIG_FILES section.
51741 #
51742
51743 # No need to generate the scripts if there are no CONFIG_FILES.
51744 # This happens for instance when ./config.status config.h
51745 if test -n "\$CONFIG_FILES"; then
51746   # Protect against being on the right side of a sed subst in config.status.
51747   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51748    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51749 s,@SHELL@,$SHELL,;t t
51750 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51751 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51752 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51753 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51754 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51755 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51756 s,@exec_prefix@,$exec_prefix,;t t
51757 s,@prefix@,$prefix,;t t
51758 s,@program_transform_name@,$program_transform_name,;t t
51759 s,@bindir@,$bindir,;t t
51760 s,@sbindir@,$sbindir,;t t
51761 s,@libexecdir@,$libexecdir,;t t
51762 s,@datadir@,$datadir,;t t
51763 s,@sysconfdir@,$sysconfdir,;t t
51764 s,@sharedstatedir@,$sharedstatedir,;t t
51765 s,@localstatedir@,$localstatedir,;t t
51766 s,@libdir@,$libdir,;t t
51767 s,@includedir@,$includedir,;t t
51768 s,@oldincludedir@,$oldincludedir,;t t
51769 s,@infodir@,$infodir,;t t
51770 s,@mandir@,$mandir,;t t
51771 s,@build_alias@,$build_alias,;t t
51772 s,@host_alias@,$host_alias,;t t
51773 s,@target_alias@,$target_alias,;t t
51774 s,@DEFS@,$DEFS,;t t
51775 s,@ECHO_C@,$ECHO_C,;t t
51776 s,@ECHO_N@,$ECHO_N,;t t
51777 s,@ECHO_T@,$ECHO_T,;t t
51778 s,@LIBS@,$LIBS,;t t
51779 s,@build@,$build,;t t
51780 s,@build_cpu@,$build_cpu,;t t
51781 s,@build_vendor@,$build_vendor,;t t
51782 s,@build_os@,$build_os,;t t
51783 s,@host@,$host,;t t
51784 s,@host_cpu@,$host_cpu,;t t
51785 s,@host_vendor@,$host_vendor,;t t
51786 s,@host_os@,$host_os,;t t
51787 s,@target@,$target,;t t
51788 s,@target_cpu@,$target_cpu,;t t
51789 s,@target_vendor@,$target_vendor,;t t
51790 s,@target_os@,$target_os,;t t
51791 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51792 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51793 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51794 s,@CYGPATH_W@,$CYGPATH_W,;t t
51795 s,@PACKAGE@,$PACKAGE,;t t
51796 s,@VERSION@,$VERSION,;t t
51797 s,@ACLOCAL@,$ACLOCAL,;t t
51798 s,@AUTOCONF@,$AUTOCONF,;t t
51799 s,@AUTOMAKE@,$AUTOMAKE,;t t
51800 s,@AUTOHEADER@,$AUTOHEADER,;t t
51801 s,@MAKEINFO@,$MAKEINFO,;t t
51802 s,@install_sh@,$install_sh,;t t
51803 s,@STRIP@,$STRIP,;t t
51804 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51805 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51806 s,@mkdir_p@,$mkdir_p,;t t
51807 s,@AWK@,$AWK,;t t
51808 s,@SET_MAKE@,$SET_MAKE,;t t
51809 s,@am__leading_dot@,$am__leading_dot,;t t
51810 s,@AMTAR@,$AMTAR,;t t
51811 s,@am__tar@,$am__tar,;t t
51812 s,@am__untar@,$am__untar,;t t
51813 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51814 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51815 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51816 s,@top_builddir@,$top_builddir,;t t
51817 s,@ldap_subdir@,$ldap_subdir,;t t
51818 s,@CC@,$CC,;t t
51819 s,@AR@,$AR,;t t
51820 s,@CFLAGS@,$CFLAGS,;t t
51821 s,@LDFLAGS@,$LDFLAGS,;t t
51822 s,@CPPFLAGS@,$CPPFLAGS,;t t
51823 s,@ac_ct_CC@,$ac_ct_CC,;t t
51824 s,@EXEEXT@,$EXEEXT,;t t
51825 s,@OBJEXT@,$OBJEXT,;t t
51826 s,@DEPDIR@,$DEPDIR,;t t
51827 s,@am__include@,$am__include,;t t
51828 s,@am__quote@,$am__quote,;t t
51829 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51830 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51831 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51832 s,@CCDEPMODE@,$CCDEPMODE,;t t
51833 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51834 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51835 s,@EGREP@,$EGREP,;t t
51836 s,@LN_S@,$LN_S,;t t
51837 s,@ECHO@,$ECHO,;t t
51838 s,@ac_ct_AR@,$ac_ct_AR,;t t
51839 s,@RANLIB@,$RANLIB,;t t
51840 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51841 s,@DLLTOOL@,$DLLTOOL,;t t
51842 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51843 s,@AS@,$AS,;t t
51844 s,@ac_ct_AS@,$ac_ct_AS,;t t
51845 s,@OBJDUMP@,$OBJDUMP,;t t
51846 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51847 s,@CPP@,$CPP,;t t
51848 s,@CXX@,$CXX,;t t
51849 s,@CXXFLAGS@,$CXXFLAGS,;t t
51850 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51851 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51852 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51853 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51854 s,@CXXCPP@,$CXXCPP,;t t
51855 s,@F77@,$F77,;t t
51856 s,@FFLAGS@,$FFLAGS,;t t
51857 s,@ac_ct_F77@,$ac_ct_F77,;t t
51858 s,@LIBTOOL@,$LIBTOOL,;t t
51859 s,@PERLBIN@,$PERLBIN,;t t
51860 s,@OL_MKDEP@,$OL_MKDEP,;t t
51861 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51862 s,@LTSTATIC@,$LTSTATIC,;t t
51863 s,@LIBOBJS@,$LIBOBJS,;t t
51864 s,@LIBSRCS@,$LIBSRCS,;t t
51865 s,@PLAT@,$PLAT,;t t
51866 s,@WITH_SASL@,$WITH_SASL,;t t
51867 s,@WITH_TLS@,$WITH_TLS,;t t
51868 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51869 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51870 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51871 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51872 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51873 s,@BUILD_BDB@,$BUILD_BDB,;t t
51874 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51875 s,@BUILD_HDB@,$BUILD_HDB,;t t
51876 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51877 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51878 s,@BUILD_META@,$BUILD_META,;t t
51879 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51880 s,@BUILD_NULL@,$BUILD_NULL,;t t
51881 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51882 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51883 s,@BUILD_PERL@,$BUILD_PERL,;t t
51884 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51885 s,@BUILD_SQL@,$BUILD_SQL,;t t
51886 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51887 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51888 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51889 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51890 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51891 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51892 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51893 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51894 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51895 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51896 s,@BUILD_RWM@,$BUILD_RWM,;t t
51897 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51898 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51899 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51900 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51901 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51902 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51903 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51904 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51905 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51906 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51907 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51908 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51909 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51910 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51911 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51912 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51913 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51914 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51915 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51916 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51917 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51918 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51919 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51920 s,@SASL_LIBS@,$SASL_LIBS,;t t
51921 s,@TLS_LIBS@,$TLS_LIBS,;t t
51922 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51923 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51924 s,@LIBSLAPI@,$LIBSLAPI,;t t
51925 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51926 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51927 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51928 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51929 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51930 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51931 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51932 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51933 CEOF
51934
51935 _ACEOF
51936
51937   cat >>$CONFIG_STATUS <<\_ACEOF
51938   # Split the substitutions into bite-sized pieces for seds with
51939   # small command number limits, like on Digital OSF/1 and HP-UX.
51940   ac_max_sed_lines=48
51941   ac_sed_frag=1 # Number of current file.
51942   ac_beg=1 # First line for current file.
51943   ac_end=$ac_max_sed_lines # Line after last line for current file.
51944   ac_more_lines=:
51945   ac_sed_cmds=
51946   while $ac_more_lines; do
51947     if test $ac_beg -gt 1; then
51948       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51949     else
51950       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51951     fi
51952     if test ! -s $tmp/subs.frag; then
51953       ac_more_lines=false
51954     else
51955       # The purpose of the label and of the branching condition is to
51956       # speed up the sed processing (if there are no `@' at all, there
51957       # is no need to browse any of the substitutions).
51958       # These are the two extra sed commands mentioned above.
51959       (echo ':t
51960   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51961       if test -z "$ac_sed_cmds"; then
51962         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
51963       else
51964         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
51965       fi
51966       ac_sed_frag=`expr $ac_sed_frag + 1`
51967       ac_beg=$ac_end
51968       ac_end=`expr $ac_end + $ac_max_sed_lines`
51969     fi
51970   done
51971   if test -z "$ac_sed_cmds"; then
51972     ac_sed_cmds=cat
51973   fi
51974 fi # test -n "$CONFIG_FILES"
51975
51976 _ACEOF
51977 cat >>$CONFIG_STATUS <<\_ACEOF
51978 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51979   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51980   case $ac_file in
51981   - | *:- | *:-:* ) # input from stdin
51982         cat >$tmp/stdin
51983         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51984         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51985   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51986         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51987   * )   ac_file_in=$ac_file.in ;;
51988   esac
51989
51990   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51991   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51993          X"$ac_file" : 'X\(//\)[^/]' \| \
51994          X"$ac_file" : 'X\(//\)$' \| \
51995          X"$ac_file" : 'X\(/\)' \| \
51996          .     : '\(.\)' 2>/dev/null ||
51997 echo X"$ac_file" |
51998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52000           /^X\(\/\/\)$/{ s//\1/; q; }
52001           /^X\(\/\).*/{ s//\1/; q; }
52002           s/.*/./; q'`
52003   { if $as_mkdir_p; then
52004     mkdir -p "$ac_dir"
52005   else
52006     as_dir="$ac_dir"
52007     as_dirs=
52008     while test ! -d "$as_dir"; do
52009       as_dirs="$as_dir $as_dirs"
52010       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52012          X"$as_dir" : 'X\(//\)[^/]' \| \
52013          X"$as_dir" : 'X\(//\)$' \| \
52014          X"$as_dir" : 'X\(/\)' \| \
52015          .     : '\(.\)' 2>/dev/null ||
52016 echo X"$as_dir" |
52017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52019           /^X\(\/\/\)$/{ s//\1/; q; }
52020           /^X\(\/\).*/{ s//\1/; q; }
52021           s/.*/./; q'`
52022     done
52023     test ! -n "$as_dirs" || mkdir $as_dirs
52024   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52026    { (exit 1); exit 1; }; }; }
52027
52028   ac_builddir=.
52029
52030 if test "$ac_dir" != .; then
52031   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52032   # A "../" for each directory in $ac_dir_suffix.
52033   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52034 else
52035   ac_dir_suffix= ac_top_builddir=
52036 fi
52037
52038 case $srcdir in
52039   .)  # No --srcdir option.  We are building in place.
52040     ac_srcdir=.
52041     if test -z "$ac_top_builddir"; then
52042        ac_top_srcdir=.
52043     else
52044        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52045     fi ;;
52046   [\\/]* | ?:[\\/]* )  # Absolute path.
52047     ac_srcdir=$srcdir$ac_dir_suffix;
52048     ac_top_srcdir=$srcdir ;;
52049   *) # Relative path.
52050     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52051     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52052 esac
52053
52054 # Do not use `cd foo && pwd` to compute absolute paths, because
52055 # the directories may not exist.
52056 case `pwd` in
52057 .) ac_abs_builddir="$ac_dir";;
52058 *)
52059   case "$ac_dir" in
52060   .) ac_abs_builddir=`pwd`;;
52061   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52062   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52063   esac;;
52064 esac
52065 case $ac_abs_builddir in
52066 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52067 *)
52068   case ${ac_top_builddir}. in
52069   .) ac_abs_top_builddir=$ac_abs_builddir;;
52070   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52071   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52072   esac;;
52073 esac
52074 case $ac_abs_builddir in
52075 .) ac_abs_srcdir=$ac_srcdir;;
52076 *)
52077   case $ac_srcdir in
52078   .) ac_abs_srcdir=$ac_abs_builddir;;
52079   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52080   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52081   esac;;
52082 esac
52083 case $ac_abs_builddir in
52084 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52085 *)
52086   case $ac_top_srcdir in
52087   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52088   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52089   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52090   esac;;
52091 esac
52092
52093
52094   case $INSTALL in
52095   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52096   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52097   esac
52098
52099   if test x"$ac_file" != x-; then
52100     { echo "$as_me:$LINENO: creating $ac_file" >&5
52101 echo "$as_me: creating $ac_file" >&6;}
52102     rm -f "$ac_file"
52103   fi
52104   # Let's still pretend it is `configure' which instantiates (i.e., don't
52105   # use $as_me), people would be surprised to read:
52106   #    /* config.h.  Generated by config.status.  */
52107   if test x"$ac_file" = x-; then
52108     configure_input=
52109   else
52110     configure_input="$ac_file.  "
52111   fi
52112   configure_input=$configure_input"Generated from `echo $ac_file_in |
52113                                      sed 's,.*/,,'` by configure."
52114
52115   # First look for the input files in the build tree, otherwise in the
52116   # src tree.
52117   ac_file_inputs=`IFS=:
52118     for f in $ac_file_in; do
52119       case $f in
52120       -) echo $tmp/stdin ;;
52121       [\\/$]*)
52122          # Absolute (can't be DOS-style, as IFS=:)
52123          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52124 echo "$as_me: error: cannot find input file: $f" >&2;}
52125    { (exit 1); exit 1; }; }
52126          echo "$f";;
52127       *) # Relative
52128          if test -f "$f"; then
52129            # Build tree
52130            echo "$f"
52131          elif test -f "$srcdir/$f"; then
52132            # Source tree
52133            echo "$srcdir/$f"
52134          else
52135            # /dev/null tree
52136            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52137 echo "$as_me: error: cannot find input file: $f" >&2;}
52138    { (exit 1); exit 1; }; }
52139          fi;;
52140       esac
52141     done` || { (exit 1); exit 1; }
52142 _ACEOF
52143 cat >>$CONFIG_STATUS <<_ACEOF
52144   sed "$ac_vpsub
52145 $extrasub
52146 _ACEOF
52147 cat >>$CONFIG_STATUS <<\_ACEOF
52148 :t
52149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52150 s,@configure_input@,$configure_input,;t t
52151 s,@srcdir@,$ac_srcdir,;t t
52152 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52153 s,@top_srcdir@,$ac_top_srcdir,;t t
52154 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52155 s,@builddir@,$ac_builddir,;t t
52156 s,@abs_builddir@,$ac_abs_builddir,;t t
52157 s,@top_builddir@,$ac_top_builddir,;t t
52158 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52159 s,@INSTALL@,$ac_INSTALL,;t t
52160 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52161   rm -f $tmp/stdin
52162   if test x"$ac_file" != x-; then
52163     mv $tmp/out $ac_file
52164   else
52165     cat $tmp/out
52166     rm -f $tmp/out
52167   fi
52168
52169 done
52170 _ACEOF
52171 cat >>$CONFIG_STATUS <<\_ACEOF
52172
52173 #
52174 # CONFIG_HEADER section.
52175 #
52176
52177 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52178 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52179 #
52180 # ac_d sets the value in "#define NAME VALUE" lines.
52181 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
52182 ac_dB='[         ].*$,\1#\2'
52183 ac_dC=' '
52184 ac_dD=',;t'
52185 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52186 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
52187 ac_uB='$,\1#\2define\3'
52188 ac_uC=' '
52189 ac_uD=',;t'
52190
52191 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52192   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52193   case $ac_file in
52194   - | *:- | *:-:* ) # input from stdin
52195         cat >$tmp/stdin
52196         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52197         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52198   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52199         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52200   * )   ac_file_in=$ac_file.in ;;
52201   esac
52202
52203   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52204 echo "$as_me: creating $ac_file" >&6;}
52205
52206   # First look for the input files in the build tree, otherwise in the
52207   # src tree.
52208   ac_file_inputs=`IFS=:
52209     for f in $ac_file_in; do
52210       case $f in
52211       -) echo $tmp/stdin ;;
52212       [\\/$]*)
52213          # Absolute (can't be DOS-style, as IFS=:)
52214          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52215 echo "$as_me: error: cannot find input file: $f" >&2;}
52216    { (exit 1); exit 1; }; }
52217          # Do quote $f, to prevent DOS paths from being IFS'd.
52218          echo "$f";;
52219       *) # Relative
52220          if test -f "$f"; then
52221            # Build tree
52222            echo "$f"
52223          elif test -f "$srcdir/$f"; then
52224            # Source tree
52225            echo "$srcdir/$f"
52226          else
52227            # /dev/null tree
52228            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52229 echo "$as_me: error: cannot find input file: $f" >&2;}
52230    { (exit 1); exit 1; }; }
52231          fi;;
52232       esac
52233     done` || { (exit 1); exit 1; }
52234   # Remove the trailing spaces.
52235   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
52236
52237 _ACEOF
52238
52239 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52240 # `conftest.undefs', that substitutes the proper values into
52241 # config.h.in to produce config.h.  The first handles `#define'
52242 # templates, and the second `#undef' templates.
52243 # And first: Protect against being on the right side of a sed subst in
52244 # config.status.  Protect against being in an unquoted here document
52245 # in config.status.
52246 rm -f conftest.defines conftest.undefs
52247 # Using a here document instead of a string reduces the quoting nightmare.
52248 # Putting comments in sed scripts is not portable.
52249 #
52250 # `end' is used to avoid that the second main sed command (meant for
52251 # 0-ary CPP macros) applies to n-ary macro definitions.
52252 # See the Autoconf documentation for `clear'.
52253 cat >confdef2sed.sed <<\_ACEOF
52254 s/[\\&,]/\\&/g
52255 s,[\\$`],\\&,g
52256 t clear
52257 : clear
52258 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52259 t end
52260 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52261 : end
52262 _ACEOF
52263 # If some macros were called several times there might be several times
52264 # the same #defines, which is useless.  Nevertheless, we may not want to
52265 # sort them, since we want the *last* AC-DEFINE to be honored.
52266 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52267 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52268 rm -f confdef2sed.sed
52269
52270 # This sed command replaces #undef with comments.  This is necessary, for
52271 # example, in the case of _POSIX_SOURCE, which is predefined and required
52272 # on some systems where configure will not decide to define it.
52273 cat >>conftest.undefs <<\_ACEOF
52274 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52275 _ACEOF
52276
52277 # Break up conftest.defines because some shells have a limit on the size
52278 # of here documents, and old seds have small limits too (100 cmds).
52279 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52280 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52281 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52282 echo '  :' >>$CONFIG_STATUS
52283 rm -f conftest.tail
52284 while grep . conftest.defines >/dev/null
52285 do
52286   # Write a limited-size here document to $tmp/defines.sed.
52287   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52288   # Speed up: don't consider the non `#define' lines.
52289   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
52290   # Work around the forget-to-reset-the-flag bug.
52291   echo 't clr' >>$CONFIG_STATUS
52292   echo ': clr' >>$CONFIG_STATUS
52293   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52294   echo 'CEOF
52295   sed -f $tmp/defines.sed $tmp/in >$tmp/out
52296   rm -f $tmp/in
52297   mv $tmp/out $tmp/in
52298 ' >>$CONFIG_STATUS
52299   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52300   rm -f conftest.defines
52301   mv conftest.tail conftest.defines
52302 done
52303 rm -f conftest.defines
52304 echo '  fi # grep' >>$CONFIG_STATUS
52305 echo >>$CONFIG_STATUS
52306
52307 # Break up conftest.undefs because some shells have a limit on the size
52308 # of here documents, and old seds have small limits too (100 cmds).
52309 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
52310 rm -f conftest.tail
52311 while grep . conftest.undefs >/dev/null
52312 do
52313   # Write a limited-size here document to $tmp/undefs.sed.
52314   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52315   # Speed up: don't consider the non `#undef'
52316   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
52317   # Work around the forget-to-reset-the-flag bug.
52318   echo 't clr' >>$CONFIG_STATUS
52319   echo ': clr' >>$CONFIG_STATUS
52320   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52321   echo 'CEOF
52322   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52323   rm -f $tmp/in
52324   mv $tmp/out $tmp/in
52325 ' >>$CONFIG_STATUS
52326   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52327   rm -f conftest.undefs
52328   mv conftest.tail conftest.undefs
52329 done
52330 rm -f conftest.undefs
52331
52332 cat >>$CONFIG_STATUS <<\_ACEOF
52333   # Let's still pretend it is `configure' which instantiates (i.e., don't
52334   # use $as_me), people would be surprised to read:
52335   #    /* config.h.  Generated by config.status.  */
52336   if test x"$ac_file" = x-; then
52337     echo "/* Generated by configure.  */" >$tmp/config.h
52338   else
52339     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
52340   fi
52341   cat $tmp/in >>$tmp/config.h
52342   rm -f $tmp/in
52343   if test x"$ac_file" != x-; then
52344     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52345       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52346 echo "$as_me: $ac_file is unchanged" >&6;}
52347     else
52348       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52350          X"$ac_file" : 'X\(//\)[^/]' \| \
52351          X"$ac_file" : 'X\(//\)$' \| \
52352          X"$ac_file" : 'X\(/\)' \| \
52353          .     : '\(.\)' 2>/dev/null ||
52354 echo X"$ac_file" |
52355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52356           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52357           /^X\(\/\/\)$/{ s//\1/; q; }
52358           /^X\(\/\).*/{ s//\1/; q; }
52359           s/.*/./; q'`
52360       { if $as_mkdir_p; then
52361     mkdir -p "$ac_dir"
52362   else
52363     as_dir="$ac_dir"
52364     as_dirs=
52365     while test ! -d "$as_dir"; do
52366       as_dirs="$as_dir $as_dirs"
52367       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52369          X"$as_dir" : 'X\(//\)[^/]' \| \
52370          X"$as_dir" : 'X\(//\)$' \| \
52371          X"$as_dir" : 'X\(/\)' \| \
52372          .     : '\(.\)' 2>/dev/null ||
52373 echo X"$as_dir" |
52374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52375           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52376           /^X\(\/\/\)$/{ s//\1/; q; }
52377           /^X\(\/\).*/{ s//\1/; q; }
52378           s/.*/./; q'`
52379     done
52380     test ! -n "$as_dirs" || mkdir $as_dirs
52381   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52383    { (exit 1); exit 1; }; }; }
52384
52385       rm -f $ac_file
52386       mv $tmp/config.h $ac_file
52387     fi
52388   else
52389     cat $tmp/config.h
52390     rm -f $tmp/config.h
52391   fi
52392 # Compute $ac_file's index in $config_headers.
52393 _am_stamp_count=1
52394 for _am_header in $config_headers :; do
52395   case $_am_header in
52396     $ac_file | $ac_file:* )
52397       break ;;
52398     * )
52399       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52400   esac
52401 done
52402 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52403 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52404          X$ac_file : 'X\(//\)[^/]' \| \
52405          X$ac_file : 'X\(//\)$' \| \
52406          X$ac_file : 'X\(/\)' \| \
52407          .     : '\(.\)' 2>/dev/null ||
52408 echo X$ac_file |
52409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52410           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52411           /^X\(\/\/\)$/{ s//\1/; q; }
52412           /^X\(\/\).*/{ s//\1/; q; }
52413           s/.*/./; q'`/stamp-h$_am_stamp_count
52414 done
52415 _ACEOF
52416 cat >>$CONFIG_STATUS <<\_ACEOF
52417
52418 #
52419 # CONFIG_COMMANDS section.
52420 #
52421 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52422   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52423   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52424   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52425 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52426          X"$ac_dest" : 'X\(//\)[^/]' \| \
52427          X"$ac_dest" : 'X\(//\)$' \| \
52428          X"$ac_dest" : 'X\(/\)' \| \
52429          .     : '\(.\)' 2>/dev/null ||
52430 echo X"$ac_dest" |
52431     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52432           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52433           /^X\(\/\/\)$/{ s//\1/; q; }
52434           /^X\(\/\).*/{ s//\1/; q; }
52435           s/.*/./; q'`
52436   { if $as_mkdir_p; then
52437     mkdir -p "$ac_dir"
52438   else
52439     as_dir="$ac_dir"
52440     as_dirs=
52441     while test ! -d "$as_dir"; do
52442       as_dirs="$as_dir $as_dirs"
52443       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52445          X"$as_dir" : 'X\(//\)[^/]' \| \
52446          X"$as_dir" : 'X\(//\)$' \| \
52447          X"$as_dir" : 'X\(/\)' \| \
52448          .     : '\(.\)' 2>/dev/null ||
52449 echo X"$as_dir" |
52450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52451           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52452           /^X\(\/\/\)$/{ s//\1/; q; }
52453           /^X\(\/\).*/{ s//\1/; q; }
52454           s/.*/./; q'`
52455     done
52456     test ! -n "$as_dirs" || mkdir $as_dirs
52457   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52458 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52459    { (exit 1); exit 1; }; }; }
52460
52461   ac_builddir=.
52462
52463 if test "$ac_dir" != .; then
52464   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52465   # A "../" for each directory in $ac_dir_suffix.
52466   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52467 else
52468   ac_dir_suffix= ac_top_builddir=
52469 fi
52470
52471 case $srcdir in
52472   .)  # No --srcdir option.  We are building in place.
52473     ac_srcdir=.
52474     if test -z "$ac_top_builddir"; then
52475        ac_top_srcdir=.
52476     else
52477        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52478     fi ;;
52479   [\\/]* | ?:[\\/]* )  # Absolute path.
52480     ac_srcdir=$srcdir$ac_dir_suffix;
52481     ac_top_srcdir=$srcdir ;;
52482   *) # Relative path.
52483     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52484     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52485 esac
52486
52487 # Do not use `cd foo && pwd` to compute absolute paths, because
52488 # the directories may not exist.
52489 case `pwd` in
52490 .) ac_abs_builddir="$ac_dir";;
52491 *)
52492   case "$ac_dir" in
52493   .) ac_abs_builddir=`pwd`;;
52494   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52495   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52496   esac;;
52497 esac
52498 case $ac_abs_builddir in
52499 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52500 *)
52501   case ${ac_top_builddir}. in
52502   .) ac_abs_top_builddir=$ac_abs_builddir;;
52503   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52504   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52505   esac;;
52506 esac
52507 case $ac_abs_builddir in
52508 .) ac_abs_srcdir=$ac_srcdir;;
52509 *)
52510   case $ac_srcdir in
52511   .) ac_abs_srcdir=$ac_abs_builddir;;
52512   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52513   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52514   esac;;
52515 esac
52516 case $ac_abs_builddir in
52517 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52518 *)
52519   case $ac_top_srcdir in
52520   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52521   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52522   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52523   esac;;
52524 esac
52525
52526
52527   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52528 echo "$as_me: executing $ac_dest commands" >&6;}
52529   case $ac_dest in
52530     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52531   # Strip MF so we end up with the name of the file.
52532   mf=`echo "$mf" | sed -e 's/:.*$//'`
52533   # Check whether this is an Automake generated Makefile or not.
52534   # We used to match only the files named `Makefile.in', but
52535   # some people rename them; so instead we look at the file content.
52536   # Grep'ing the first line is not enough: some people post-process
52537   # each Makefile.in and add a new line on top of each file to say so.
52538   # So let's grep whole file.
52539   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52540     dirpart=`(dirname "$mf") 2>/dev/null ||
52541 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52542          X"$mf" : 'X\(//\)[^/]' \| \
52543          X"$mf" : 'X\(//\)$' \| \
52544          X"$mf" : 'X\(/\)' \| \
52545          .     : '\(.\)' 2>/dev/null ||
52546 echo X"$mf" |
52547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52548           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52549           /^X\(\/\/\)$/{ s//\1/; q; }
52550           /^X\(\/\).*/{ s//\1/; q; }
52551           s/.*/./; q'`
52552   else
52553     continue
52554   fi
52555   # Extract the definition of DEPDIR, am__include, and am__quote
52556   # from the Makefile without running `make'.
52557   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52558   test -z "$DEPDIR" && continue
52559   am__include=`sed -n 's/^am__include = //p' < "$mf"`
52560   test -z "am__include" && continue
52561   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52562   # When using ansi2knr, U may be empty or an underscore; expand it
52563   U=`sed -n 's/^U = //p' < "$mf"`
52564   # Find all dependency output files, they are included files with
52565   # $(DEPDIR) in their names.  We invoke sed twice because it is the
52566   # simplest approach to changing $(DEPDIR) to its actual value in the
52567   # expansion.
52568   for file in `sed -n "
52569     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52570        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52571     # Make sure the directory exists.
52572     test -f "$dirpart/$file" && continue
52573     fdir=`(dirname "$file") 2>/dev/null ||
52574 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52575          X"$file" : 'X\(//\)[^/]' \| \
52576          X"$file" : 'X\(//\)$' \| \
52577          X"$file" : 'X\(/\)' \| \
52578          .     : '\(.\)' 2>/dev/null ||
52579 echo X"$file" |
52580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52581           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52582           /^X\(\/\/\)$/{ s//\1/; q; }
52583           /^X\(\/\).*/{ s//\1/; q; }
52584           s/.*/./; q'`
52585     { if $as_mkdir_p; then
52586     mkdir -p $dirpart/$fdir
52587   else
52588     as_dir=$dirpart/$fdir
52589     as_dirs=
52590     while test ! -d "$as_dir"; do
52591       as_dirs="$as_dir $as_dirs"
52592       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52594          X"$as_dir" : 'X\(//\)[^/]' \| \
52595          X"$as_dir" : 'X\(//\)$' \| \
52596          X"$as_dir" : 'X\(/\)' \| \
52597          .     : '\(.\)' 2>/dev/null ||
52598 echo X"$as_dir" |
52599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52600           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52601           /^X\(\/\/\)$/{ s//\1/; q; }
52602           /^X\(\/\).*/{ s//\1/; q; }
52603           s/.*/./; q'`
52604     done
52605     test ! -n "$as_dirs" || mkdir $as_dirs
52606   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52607 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52608    { (exit 1); exit 1; }; }; }
52609
52610     # echo "creating $dirpart/$file"
52611     echo '# dummy' > "$dirpart/$file"
52612   done
52613 done
52614  ;;
52615     default )
52616 chmod +x tests/run
52617 date > stamp-h
52618 BACKENDSC="servers/slapd/backends.c"
52619 echo "Making $BACKENDSC"
52620 rm -f $BACKENDSC
52621 cat > $BACKENDSC << ENDX
52622 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52623  *
52624  * Copyright 1998-2005 The OpenLDAP Foundation.
52625  * All rights reserved.
52626  *
52627  * Redistribution and use in source and binary forms, with or without
52628  * modification, are permitted only as authorized by the OpenLDAP
52629  * Public License.
52630  *
52631  * A copy of this license is available in the file LICENSE in the
52632  * top-level directory of the distribution or, alternatively, at
52633  * <http://www.OpenLDAP.org/license.html>.
52634  */
52635 /* This file is automatically generated by configure; please do not edit. */
52636
52637 #include "portable.h"
52638 #include "slap.h"
52639
52640 ENDX
52641 if test "${STATIC_BACKENDS}"; then
52642         for b in config ${STATIC_BACKENDS}; do
52643                 bb=`echo "${b}" | sed -e 's/back-//'`
52644                 cat >> $BACKENDSC << ENDX
52645 extern BI_init ${bb}_back_initialize;
52646 ENDX
52647         done
52648
52649         cat >> $BACKENDSC << ENDX
52650
52651 BackendInfo slap_binfo[] = {
52652 ENDX
52653
52654         for b in config ${STATIC_BACKENDS}; do
52655                 bb=`echo "${b}" | sed -e 's/back-//'`
52656                 echo "    Add ${bb} ..."
52657                 cat >> $BACKENDSC << ENDX
52658         { "${bb}", ${bb}_back_initialize },
52659 ENDX
52660         done
52661
52662         cat >> $BACKENDSC << ENDX
52663         { NULL, NULL },
52664 };
52665
52666 /* end of generated file */
52667 ENDX
52668 fi
52669
52670 echo Please run \"make depend\" to build dependencies
52671  ;;
52672   esac
52673 done
52674 _ACEOF
52675
52676 cat >>$CONFIG_STATUS <<\_ACEOF
52677
52678 { (exit 0); exit 0; }
52679 _ACEOF
52680 chmod +x $CONFIG_STATUS
52681 ac_clean_files=$ac_clean_files_save
52682
52683
52684 # configure is writing to config.log, and then calls config.status.
52685 # config.status does its own redirection, appending to config.log.
52686 # Unfortunately, on DOS this fails, as config.log is still kept open
52687 # by configure, so config.status won't be able to write to it; its
52688 # output is simply discarded.  So we exec the FD to /dev/null,
52689 # effectively closing config.log, so it can be properly (re)opened and
52690 # appended to by config.status.  When coming back to configure, we
52691 # need to make the FD available again.
52692 if test "$no_create" != yes; then
52693   ac_cs_success=:
52694   ac_config_status_args=
52695   test "$silent" = yes &&
52696     ac_config_status_args="$ac_config_status_args --quiet"
52697   exec 5>/dev/null
52698   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52699   exec 5>>config.log
52700   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52701   # would make configure fail if this is the last instruction.
52702   $ac_cs_success || { (exit 1); exit 1; }
52703 fi
52704