2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by Autoconf 2.50.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
10
# Find the correct PATH separator. Usually this is `:', but
11
# DJGPP uses `;' like DOS.
12
if test "X${PATH_SEPARATOR+set}" != Xset; then
13
UNAME=${UNAME-`uname 2>/dev/null`}
15
*-DOS) lt_cv_sys_path_separator=';' ;;
16
*) lt_cv_sys_path_separator=':' ;;
20
# Check that we are running under the correct shell.
21
SHELL=${CONFIG_SHELL-/bin/sh}
25
# Remove one level of quotation (which was required for Make).
26
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31
if test "X$1" = X--no-reexec; then
32
# Discard the --no-reexec flag, and continue.
34
elif test "X$1" = X--fallback-echo; then
35
# Avoid inline document here, it may be left over
37
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38
# Yippee, $echo works!
41
# Restart under the correct shell.
42
exec $SHELL "$0" --no-reexec ${1+"$@"}
45
if test "X$1" = X--fallback-echo; then
46
# used as fallback echo
54
# The HP-UX ksh and POSIX shell print the target directory to stdout
56
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
58
if test -z "$ECHO"; then
59
if test "X${echo_test_string+set}" != Xset; then
60
# find a string as large as possible, as long as the shell can cope with it
61
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64
echo_test_string="`eval $cmd`" &&
65
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
72
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74
test "X$echo_testing_string" = "X$echo_test_string"; then
77
# The Solaris, AIX, and Digital Unix default echo programs unquote
78
# backslashes. This makes it impossible to quote backslashes using
79
# echo "$something" | sed 's/\\/\\\\/g'
81
# So, first we look for a working echo in the user's PATH.
83
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84
for dir in $PATH /usr/ucb; do
85
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88
test "X$echo_testing_string" = "X$echo_test_string"; then
95
if test "X$echo" = Xecho; then
96
# We didn't find a better echo, so look for alternatives.
97
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99
test "X$echo_testing_string" = "X$echo_test_string"; then
100
# This shell has a builtin print -r that does the trick.
102
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103
test "X$CONFIG_SHELL" != X/bin/ksh; then
104
# If we have ksh, try running configure again with it.
105
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106
export ORIGINAL_CONFIG_SHELL
107
CONFIG_SHELL=/bin/ksh
109
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
113
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115
test "X$echo_testing_string" = "X$echo_test_string"; then
118
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119
test "X$echo_testing_string" = 'X\t' &&
120
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121
test "X$echo_testing_string" = "X$echo_test_string"; then
122
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
124
SHELL="$CONFIG_SHELL"
126
echo="$CONFIG_SHELL $0 --fallback-echo"
127
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128
test "X$echo_testing_string" = 'X\t' &&
129
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130
test "X$echo_testing_string" = "X$echo_test_string"; then
131
echo="$CONFIG_SHELL $0 --fallback-echo"
133
# maybe with a smaller string...
136
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
144
if test "$prev" != 'sed 50q "$0"'; then
145
echo_test_string=`eval $prev`
146
export echo_test_string
147
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149
# Oops. We lost completely, so just stick with echo.
158
# Copy echo and quote the copy suitably for passing to libtool from
159
# the Makefile, instead of quoting the original, which is used later.
161
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165
# Be Bourne compatible
166
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
169
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
173
# Name of the executable.
174
as_me=`echo "$0" |sed 's,.*[\\/],,'`
176
if expr a : '\(a\)' >/dev/null 2>&1; then
182
rm -f conf$$ conf$$.exe conf$$.file
184
if ln -s conf$$.file conf$$ 2>/dev/null; then
185
# We could just check for DJGPP; but this test a) works b) is more generic
186
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
187
if test -f conf$$.exe; then
188
# Don't use ln at all; we don't have any links
193
elif ln conf$$.file conf$$ 2>/dev/null; then
198
rm -f conf$$ conf$$.exe conf$$.file
200
as_executable_p="test -f"
202
# Support unset when possible.
203
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
210
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
211
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
212
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
213
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
214
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
215
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
216
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
217
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
220
# We need space, tab and new line, in precisely that order.
226
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
229
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
230
# so uname gets run too.
231
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
238
ac_default_prefix=/usr/local
242
SHELL=${CONFIG_SHELL-/bin/sh}
244
# Maximum number of lines to put in a shell here document.
245
# This variable seems obsolete. It should probably be removed, and
246
# only ac_max_sed_lines should be used.
247
: ${ac_max_here_lines=38}
249
# Avoid depending upon Character Ranges.
250
ac_cr_az='abcdefghijklmnopqrstuvwxyz'
251
ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
252
ac_cr_09='0123456789'
253
ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
255
# Sed expression to map a string onto a valid sh and CPP variable names.
256
ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
257
ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
259
ac_unique_file="../db/db.c"
260
ac_default_prefix=/usr/local/BerkeleyDB.@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@
261
# Factoring default headers for most tests.
262
ac_includes_default="\
264
#include <sys/types.h>
265
#include <sys/stat.h>
275
# if !STDC_HEADERS && HAVE_MEMORY_H
281
# include <strings.h>
285
# include <inttypes.h>
291
# Initialize some variables set by options.
293
ac_init_version=false
294
# The variables have the same names as the options, with
295
# dashes changed to underlines.
303
program_transform_name=s,x,x,
311
# Installation directory options.
312
# These are left unexpanded so users can "make install exec_prefix=/foo"
313
# and all the variables that are supposed to be based on exec_prefix
314
# by default will actually change.
315
# Use braces instead of parens because sh, perl, etc. also accept them.
316
bindir='${exec_prefix}/bin'
317
sbindir='${exec_prefix}/sbin'
318
libexecdir='${exec_prefix}/libexec'
319
datadir='${prefix}/share'
320
sysconfdir='${prefix}/etc'
321
sharedstatedir='${prefix}/com'
322
localstatedir='${prefix}/var'
323
libdir='${exec_prefix}/lib'
324
includedir='${prefix}/include'
325
oldincludedir='/usr/include'
326
infodir='${prefix}/info'
327
mandir='${prefix}/man'
329
# Identity of this package.
339
# If the previous option needs an argument, assign it.
340
if test -n "$ac_prev"; then
341
eval "$ac_prev=\$ac_option"
346
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
348
# Accept the important Cygnus configure options, so we can diagnose typos.
352
-bindir | --bindir | --bindi | --bind | --bin | --bi)
354
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357
-build | --build | --buil | --bui | --bu)
358
ac_prev=build_alias ;;
359
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
360
build_alias=$ac_optarg ;;
362
-cache-file | --cache-file | --cache-fil | --cache-fi \
363
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
364
ac_prev=cache_file ;;
365
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
366
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
367
cache_file=$ac_optarg ;;
370
cache_file=config.cache ;;
372
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
374
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
376
datadir=$ac_optarg ;;
378
-disable-* | --disable-*)
379
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
380
# Reject names that are not valid shell variable names.
381
expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
382
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
383
{ (exit 1); exit 1; }; }
384
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
385
eval "enable_$ac_feature=no" ;;
387
-enable-* | --enable-*)
388
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
389
# Reject names that are not valid shell variable names.
390
expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
391
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
392
{ (exit 1); exit 1; }; }
393
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398
eval "enable_$ac_feature='$ac_optarg'" ;;
400
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
401
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
402
| --exec | --exe | --ex)
403
ac_prev=exec_prefix ;;
404
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
405
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
406
| --exec=* | --exe=* | --ex=*)
407
exec_prefix=$ac_optarg ;;
409
-gas | --gas | --ga | --g)
410
# Obsolete; use --with-gas.
413
-help | --help | --hel | --he | -h)
415
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
416
ac_init_help=recursive ;;
417
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
418
ac_init_help=short ;;
420
-host | --host | --hos | --ho)
421
ac_prev=host_alias ;;
422
-host=* | --host=* | --hos=* | --ho=*)
423
host_alias=$ac_optarg ;;
425
-includedir | --includedir | --includedi | --included | --include \
426
| --includ | --inclu | --incl | --inc)
427
ac_prev=includedir ;;
428
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
429
| --includ=* | --inclu=* | --incl=* | --inc=*)
430
includedir=$ac_optarg ;;
432
-infodir | --infodir | --infodi | --infod | --info | --inf)
434
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
435
infodir=$ac_optarg ;;
437
-libdir | --libdir | --libdi | --libd)
439
-libdir=* | --libdir=* | --libdi=* | --libd=*)
442
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
443
| --libexe | --libex | --libe)
444
ac_prev=libexecdir ;;
445
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
446
| --libexe=* | --libex=* | --libe=*)
447
libexecdir=$ac_optarg ;;
449
-localstatedir | --localstatedir | --localstatedi | --localstated \
450
| --localstate | --localstat | --localsta | --localst \
451
| --locals | --local | --loca | --loc | --lo)
452
ac_prev=localstatedir ;;
453
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
454
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
455
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
456
localstatedir=$ac_optarg ;;
458
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
460
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
464
# Obsolete; use --without-fp.
467
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
471
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
472
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
476
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
477
| --oldin | --oldi | --old | --ol | --o)
478
ac_prev=oldincludedir ;;
479
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
480
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
481
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
482
oldincludedir=$ac_optarg ;;
484
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
486
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489
-program-prefix | --program-prefix | --program-prefi | --program-pref \
490
| --program-pre | --program-pr | --program-p)
491
ac_prev=program_prefix ;;
492
-program-prefix=* | --program-prefix=* | --program-prefi=* \
493
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
494
program_prefix=$ac_optarg ;;
496
-program-suffix | --program-suffix | --program-suffi | --program-suff \
497
| --program-suf | --program-su | --program-s)
498
ac_prev=program_suffix ;;
499
-program-suffix=* | --program-suffix=* | --program-suffi=* \
500
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
501
program_suffix=$ac_optarg ;;
503
-program-transform-name | --program-transform-name \
504
| --program-transform-nam | --program-transform-na \
505
| --program-transform-n | --program-transform- \
506
| --program-transform | --program-transfor \
507
| --program-transfo | --program-transf \
508
| --program-trans | --program-tran \
509
| --progr-tra | --program-tr | --program-t)
510
ac_prev=program_transform_name ;;
511
-program-transform-name=* | --program-transform-name=* \
512
| --program-transform-nam=* | --program-transform-na=* \
513
| --program-transform-n=* | --program-transform-=* \
514
| --program-transform=* | --program-transfor=* \
515
| --program-transfo=* | --program-transf=* \
516
| --program-trans=* | --program-tran=* \
517
| --progr-tra=* | --program-tr=* | --program-t=*)
518
program_transform_name=$ac_optarg ;;
520
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
521
| -silent | --silent | --silen | --sile | --sil)
524
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
526
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
528
sbindir=$ac_optarg ;;
530
-sharedstatedir | --sharedstatedir | --sharedstatedi \
531
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
532
| --sharedst | --shareds | --shared | --share | --shar \
534
ac_prev=sharedstatedir ;;
535
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
536
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
537
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
539
sharedstatedir=$ac_optarg ;;
541
-site | --site | --sit)
543
-site=* | --site=* | --sit=*)
546
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
548
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
552
| --syscon | --sysco | --sysc | --sys | --sy)
553
ac_prev=sysconfdir ;;
554
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
555
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
556
sysconfdir=$ac_optarg ;;
558
-target | --target | --targe | --targ | --tar | --ta | --t)
559
ac_prev=target_alias ;;
560
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
561
target_alias=$ac_optarg ;;
563
-v | -verbose | --verbose | --verbos | --verbo | --verb)
566
-version | --version | --versio | --versi | --vers | -V)
570
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
571
# Reject names that are not valid shell variable names.
572
expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
573
{ echo "$as_me: error: invalid package name: $ac_package" >&2
574
{ (exit 1); exit 1; }; }
575
ac_package=`echo $ac_package| sed 's/-/_/g'`
577
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580
eval "with_$ac_package='$ac_optarg'" ;;
582
-without-* | --without-*)
583
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
584
# Reject names that are not valid shell variable names.
585
expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
586
{ echo "$as_me: error: invalid package name: $ac_package" >&2
587
{ (exit 1); exit 1; }; }
588
ac_package=`echo $ac_package | sed 's/-/_/g'`
589
eval "with_$ac_package=no" ;;
592
# Obsolete; use --with-x.
595
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
596
| --x-incl | --x-inc | --x-in | --x-i)
597
ac_prev=x_includes ;;
598
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
599
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
600
x_includes=$ac_optarg ;;
602
-x-libraries | --x-libraries | --x-librarie | --x-librari \
603
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
604
ac_prev=x_libraries ;;
605
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
606
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
607
x_libraries=$ac_optarg ;;
609
-*) { echo "$as_me: error: unrecognized option: $ac_option
610
Try \`$0 --help' for more information." >&2
611
{ (exit 1); exit 1; }; }
615
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
616
# Reject names that are not valid shell variable names.
617
expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
618
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
619
{ (exit 1); exit 1; }; }
620
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
621
eval "$ac_envvar='$ac_optarg'"
625
# FIXME: should be removed in autoconf 3.0.
626
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
627
expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
628
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
629
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
635
if test -n "$ac_prev"; then
636
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
637
{ echo "$as_me: error: missing argument to $ac_option" >&2
638
{ (exit 1); exit 1; }; }
641
# Be sure to have absolute paths.
642
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
643
localstatedir libdir includedir oldincludedir infodir mandir \
646
eval ac_val=$`echo $ac_var`
648
[\\/$]* | ?:[\\/]* ) ;;
650
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
651
{ (exit 1); exit 1; }; };;
655
# There might be people who depend on the old broken behavior: `$host'
656
# used to hold the argument of --host etc.
661
# FIXME: should be removed in autoconf 3.0.
662
if test "x$host_alias" != x; then
663
if test "x$build_alias" = x; then
664
cross_compiling=maybe
665
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
666
If a cross compiler is detected then cross compile mode will be used." >&2
667
elif test "x$build_alias" != "x$host_alias"; then
673
test -n "$host_alias" && ac_tool_prefix=$host_alias-
675
test "$silent" = yes && exec 6>/dev/null
677
# Find the source files, if location was not specified.
678
if test -z "$srcdir"; then
679
ac_srcdir_defaulted=yes
680
# Try the directory containing this script, then its parent.
682
ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
683
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
685
if test ! -r $srcdir/$ac_unique_file; then
689
ac_srcdir_defaulted=no
691
if test ! -r $srcdir/$ac_unique_file; then
692
if test "$ac_srcdir_defaulted" = yes; then
693
{ echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
694
{ (exit 1); exit 1; }; }
696
{ echo "$as_me: error: cannot find sources in $srcdir" >&2
697
{ (exit 1); exit 1; }; }
700
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
701
ac_env_build_alias_set=${build_alias+set}
702
ac_env_build_alias_value=$build_alias
703
ac_cv_env_build_alias_set=${build_alias+set}
704
ac_cv_env_build_alias_value=$build_alias
705
ac_env_host_alias_set=${host_alias+set}
706
ac_env_host_alias_value=$host_alias
707
ac_cv_env_host_alias_set=${host_alias+set}
708
ac_cv_env_host_alias_value=$host_alias
709
ac_env_target_alias_set=${target_alias+set}
710
ac_env_target_alias_value=$target_alias
711
ac_cv_env_target_alias_set=${target_alias+set}
712
ac_cv_env_target_alias_value=$target_alias
713
ac_env_CC_set=${CC+set}
715
ac_cv_env_CC_set=${CC+set}
716
ac_cv_env_CC_value=$CC
717
ac_env_CFLAGS_set=${CFLAGS+set}
718
ac_env_CFLAGS_value=$CFLAGS
719
ac_cv_env_CFLAGS_set=${CFLAGS+set}
720
ac_cv_env_CFLAGS_value=$CFLAGS
721
ac_env_LDFLAGS_set=${LDFLAGS+set}
722
ac_env_LDFLAGS_value=$LDFLAGS
723
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
724
ac_cv_env_LDFLAGS_value=$LDFLAGS
725
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
726
ac_env_CPPFLAGS_value=$CPPFLAGS
727
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
728
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
729
ac_env_CXX_set=${CXX+set}
730
ac_env_CXX_value=$CXX
731
ac_cv_env_CXX_set=${CXX+set}
732
ac_cv_env_CXX_value=$CXX
733
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
734
ac_env_CXXFLAGS_value=$CXXFLAGS
735
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
736
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
737
ac_env_CPP_set=${CPP+set}
738
ac_env_CPP_value=$CPP
739
ac_cv_env_CPP_set=${CPP+set}
740
ac_cv_env_CPP_value=$CPP
743
# Report the --help message.
745
if test "$ac_init_help" = "long"; then
746
# Omit some internal or obsolete options to make the list less imposing.
747
# This message is too long to be a string in the A/UX 3.1 sh.
749
\`configure' configures this package to adapt to many kinds of systems.
751
Usage: $0 [OPTION]... [VAR=VALUE]...
753
To assign environment variables (e.g., CC, CFLAGS...), specify them as
754
VAR=VALUE. See below for descriptions of some of the useful variables.
756
Defaults for the options are specified in brackets.
759
-h, --help display this help and exit
760
--help=short display options specific to this package
761
--help=recursive display the short help of all the included packages
762
-V, --version display version information and exit
763
-q, --quiet, --silent do not print \`checking...' messages
764
--cache-file=FILE cache test results in FILE [disabled]
765
-C, --config-cache alias for \`--cache-file=config.cache'
766
-n, --no-create do not create output files
767
--srcdir=DIR find the sources in DIR [configure dir or \`..']
772
Installation directories:
773
--prefix=PREFIX install architecture-independent files in PREFIX
775
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
778
By default, \`make install' will install all the files in
779
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
780
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
781
for instance \`--prefix=\$HOME'.
783
For better control, use the options below.
785
Fine tuning of the installation directories:
786
--bindir=DIR user executables [EPREFIX/bin]
787
--sbindir=DIR system admin executables [EPREFIX/sbin]
788
--libexecdir=DIR program executables [EPREFIX/libexec]
789
--datadir=DIR read-only architecture-independent data [PREFIX/share]
790
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
791
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
792
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
793
--libdir=DIR object code libraries [EPREFIX/lib]
794
--includedir=DIR C header files [PREFIX/include]
795
--oldincludedir=DIR C header files for non-gcc [/usr/include]
796
--infodir=DIR info documentation [PREFIX/info]
797
--mandir=DIR man documentation [PREFIX/man]
803
--program-prefix=PREFIX prepend PREFIX to installed program names
804
--program-suffix=SUFFIX append SUFFIX to installed program names
805
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
808
--build=BUILD configure for building on BUILD [guessed]
809
--host=HOST build programs to run on HOST [BUILD]
813
if test -n "$ac_init_help"; then
818
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
819
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
820
--disable-bigfile Obsolete; use --disable-largefile instead.
821
--enable-compat185 Build DB 1.85 compatibility API.
822
--enable-cxx Build C++ API.
823
--enable-debug Build a debugging version.
824
--enable-debug_rop Build a version that logs read operations.
825
--enable-debug_wop Build a version that logs write operations.
826
--enable-diagnostic Build a version with run-time diagnostics.
827
--enable-dump185 Build db_dump185(1) to dump 1.85 databases.
828
--enable-java Build Java API.
829
--enable-posixmutexes Force use of POSIX standard mutexes.
830
--enable-rpc Build RPC client/server.
831
--enable-tcl Build Tcl API.
832
--enable-test Configure to run the test suite.
833
--enable-uimutexes Force use of Unix International mutexes.
834
--enable-umrw Mask harmless unitialized memory read/writes.
835
--enable-shared=PKGS build shared libraries default=yes
836
--enable-static=PKGS build static libraries default=yes
837
--enable-fast-install=PKGS optimize for fast installation default=yes
838
--disable-libtool-lock avoid locking (might break parallel builds)
839
--disable-largefile omit support for large files
842
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
843
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
844
--with-embedix=DIR Embedix install directory location.
845
--with-rpm=DIR Directory location of RPM archive.
846
--with-tcl=DIR Directory location of tclConfig.sh.
847
--with-uniquename=NAME Build a uniquely named library.
848
--with-gnu-ld assume the C compiler uses GNU ld default=no
849
--with-pic try to use only PIC/non-PIC objects default=use both
851
Some influential environment variables:
852
CC C compiler command
853
CFLAGS C compiler flags
854
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
855
nonstandard directory <lib dir>
856
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
857
headers in a nonstandard directory <include dir>
858
CXX C++ compiler command
859
CXXFLAGS C++ compiler flags
862
Use these variables to override the choices made by `configure' or to help
863
it to find libraries and programs with nonstandard names/locations.
868
if test "$ac_init_help" = "recursive"; then
869
# If there are subdirs, report their specific --help.
871
for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
873
# A "../" for each directory in /$ac_subdir.
874
ac_dots=`echo $ac_subdir |
875
sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
878
.) # No --srcdir option. We are building in place.
879
ac_sub_srcdir=$srcdir ;;
880
[\\/]* | ?:[\\/]* ) # Absolute path.
881
ac_sub_srcdir=$srcdir/$ac_subdir ;;
883
ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
886
# Check for guested configure; otherwise get Cygnus style configure.
887
if test -f $ac_sub_srcdir/configure.gnu; then
889
$SHELL $ac_sub_srcdir/configure.gnu --help=recursive
890
elif test -f $ac_sub_srcdir/configure; then
892
$SHELL $ac_sub_srcdir/configure --help=recursive
893
elif test -f $ac_sub_srcdir/configure.ac ||
894
test -f $ac_sub_srcdir/configure.in; then
898
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
904
test -n "$ac_init_help" && exit 0
905
if $ac_init_version; then
908
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
909
Free Software Foundation, Inc.
910
This configure script is free software; the Free Software Foundation
911
gives unlimited permission to copy, distribute and modify it.
917
This file contains any messages produced by compilers while
918
running configure, to aid debugging if configure makes a mistake.
920
It was created by $as_me, which was
921
generated by GNU Autoconf 2.50. Invocation command line was
932
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
933
uname -m = `(uname -m) 2>/dev/null || echo unknown`
934
uname -r = `(uname -r) 2>/dev/null || echo unknown`
935
uname -s = `(uname -s) 2>/dev/null || echo unknown`
936
uname -v = `(uname -v) 2>/dev/null || echo unknown`
938
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
939
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
941
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
942
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
943
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
944
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
945
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
946
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
947
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
961
# Keep a trace of the command line.
962
# Strip out --no-create and --no-recursion so they do not pile up.
963
# Also quote any args containing shell meta-characters.
969
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
970
| --no-cr | --no-c) ;;
971
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
972
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
973
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
974
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
975
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
977
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
980
# Get rid of the leading space.
983
# When interrupted or exit'd, cleanup temporary files, and complete
984
# config.log. We remove comments because anyway the quotes in there
985
# would cause problems or look ugly.
987
# Save into config.log some information that might help in debugging.
989
echo "## ----------------- ##" >&5
990
echo "## Cache variables. ##" >&5
991
echo "## ----------------- ##" >&5
993
# The following way of writing the cache mishandles newlines in values,
996
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
999
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1000
s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1004
"s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1008
sed "/^$/d" confdefs.h >conftest.log
1009
if test -s conftest.log; then
1011
echo "## ------------ ##" >&5
1012
echo "## confdefs.h. ##" >&5
1013
echo "## ------------ ##" >&5
1015
cat conftest.log >&5
1018
test "$ac_signal" != 0 &&
1019
echo "$as_me: caught signal $ac_signal" >&5
1020
echo "$as_me: exit $exit_status" >&5
1021
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1024
for ac_signal in 1 2 13 15; do
1025
trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1029
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1030
rm -rf conftest* confdefs.h
1031
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1034
# Let the site file select an alternate cache file if it wants to.
1035
# Prefer explicitly selected file to automatically selected ones.
1036
if test -z "$CONFIG_SITE"; then
1037
if test "x$prefix" != xNONE; then
1038
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1040
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1043
for ac_site_file in $CONFIG_SITE; do
1044
if test -r "$ac_site_file"; then
1045
{ echo "$as_me:1045: loading site script $ac_site_file" >&5
1046
echo "$as_me: loading site script $ac_site_file" >&6;}
1047
cat "$ac_site_file" >&5
1052
if test -r "$cache_file"; then
1053
# Some versions of bash will fail to source /dev/null (special
1054
# files actually), so we avoid doing that.
1055
if test -f "$cache_file"; then
1056
{ echo "$as_me:1056: loading cache $cache_file" >&5
1057
echo "$as_me: loading cache $cache_file" >&6;}
1059
[\\/]* | ?:[\\/]* ) . $cache_file;;
1060
*) . ./$cache_file;;
1064
{ echo "$as_me:1064: creating cache $cache_file" >&5
1065
echo "$as_me: creating cache $cache_file" >&6;}
1069
# Check that the precious variables saved in the cache have kept the same
1071
ac_suggest_removing_cache=false
1072
for ac_var in `(set) 2>&1 |
1073
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1074
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1075
eval ac_new_set=\$ac_env_${ac_var}_set
1076
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1077
eval ac_new_val="\$ac_env_${ac_var}_value"
1078
case $ac_old_set,$ac_new_set in
1080
{ echo "$as_me:1080: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1081
echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1082
ac_suggest_removing_cache=: ;;
1084
{ echo "$as_me:1084: WARNING: \`$ac_var' was not set in the previous run" >&5
1085
echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1086
ac_suggest_removing_cache=: ;;
1089
if test "x$ac_old_val" != "x$ac_new_val"; then
1090
{ echo "$as_me:1090: WARNING: \`$ac_var' has changed since the previous run:" >&5
1091
echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1092
{ echo "$as_me:1092: WARNING: former value: $ac_old_val" >&5
1093
echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
1094
{ echo "$as_me:1094: WARNING: current value: $ac_new_val" >&5
1095
echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
1096
ac_suggest_removing_cache=:
1100
if $ac_suggest_removing_cache; then
1101
{ echo "$as_me:1101: WARNING: changes in the environment can compromise the build" >&5
1102
echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1103
{ echo "$as_me:1103: WARNING: consider removing $cache_file and starting over" >&5
1104
echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1108
ac_cpp='$CPP $CPPFLAGS'
1109
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1110
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1111
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1113
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1114
*c*,-n*) ECHO_N= ECHO_C='
1116
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1117
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1119
echo "#! $SHELL" >conftest.sh
1120
echo "exit 0" >>conftest.sh
1121
chmod +x conftest.sh
1122
if { (echo "$as_me:1122: PATH=\".;.\"; conftest.sh") >&5
1123
(PATH=".;."; conftest.sh) 2>&5
1125
echo "$as_me:1125: \$? = $ac_status" >&5
1126
(exit $ac_status); }; then
1127
ac_path_separator=';'
1131
PATH_SEPARATOR="$ac_path_separator"
1134
ac_config_headers="$ac_config_headers db_config.h:config.hin"
1138
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1139
if test -f $ac_dir/install-sh; then
1141
ac_install_sh="$ac_aux_dir/install-sh -c"
1143
elif test -f $ac_dir/install.sh; then
1145
ac_install_sh="$ac_aux_dir/install.sh -c"
1147
elif test -f $ac_dir/shtool; then
1149
ac_install_sh="$ac_aux_dir/shtool install -c"
1153
if test -z "$ac_aux_dir"; then
1154
{ { echo "$as_me:1154: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1155
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1156
{ (exit 1); exit 1; }; }
1158
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1159
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1160
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1162
# Make sure we can run config.sub.
1163
$ac_config_sub sun4 >/dev/null 2>&1 ||
1164
{ { echo "$as_me:1164: error: cannot run $ac_config_sub" >&5
1165
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1166
{ (exit 1); exit 1; }; }
1168
echo "$as_me:1168: checking build system type" >&5
1169
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1170
if test "${ac_cv_build+set}" = set; then
1171
echo $ECHO_N "(cached) $ECHO_C" >&6
1173
ac_cv_build_alias=$build_alias
1174
test -z "$ac_cv_build_alias" &&
1175
ac_cv_build_alias=`$ac_config_guess`
1176
test -z "$ac_cv_build_alias" &&
1177
{ { echo "$as_me:1177: error: cannot guess build type; you must specify one" >&5
1178
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1179
{ (exit 1); exit 1; }; }
1180
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1181
{ { echo "$as_me:1181: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1182
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1183
{ (exit 1); exit 1; }; }
1186
echo "$as_me:1186: result: $ac_cv_build" >&5
1187
echo "${ECHO_T}$ac_cv_build" >&6
1189
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1190
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1191
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1193
echo "$as_me:1193: checking host system type" >&5
1194
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1195
if test "${ac_cv_host+set}" = set; then
1196
echo $ECHO_N "(cached) $ECHO_C" >&6
1198
ac_cv_host_alias=$host_alias
1199
test -z "$ac_cv_host_alias" &&
1200
ac_cv_host_alias=$ac_cv_build_alias
1201
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1202
{ { echo "$as_me:1202: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1203
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1204
{ (exit 1); exit 1; }; }
1207
echo "$as_me:1207: result: $ac_cv_host" >&5
1208
echo "${ECHO_T}$ac_cv_host" >&6
1210
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1211
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1212
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1214
if test "$program_transform_name" = s,x,x,; then
1215
program_transform_name=
1217
# Double any \ or $. echo might interpret backslashes.
1218
cat <<\EOF >conftest.sed
1219
s,\\,\\\\,g; s,\$,$$,g
1221
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1224
test "$program_prefix" != NONE &&
1225
program_transform_name="s,^,${program_prefix},;$program_transform_name"
1226
# Use a double $ so make ignores it.
1227
test "$program_suffix" != NONE &&
1228
program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1230
# sed with no file args requires a program.
1231
test -z "$program_transform_name" && program_transform_name="s,x,x,"
1233
# We cannot build in the top-level directory.
1234
echo "$as_me:1234: checking if building in the top-level directory" >&5
1235
echo $ECHO_N "checking if building in the top-level directory... $ECHO_C" >&6
1236
test -d db_archive && { { echo "$as_me:1236: error:
1237
Berkeley DB cannot be built in the top-level distribution directory." >&5
1238
echo "$as_me: error:
1239
Berkeley DB cannot be built in the top-level distribution directory." >&2;}
1240
{ (exit 1); exit 1; }; }
1241
echo "$as_me:1241: result: no" >&5
1242
echo "${ECHO_T}no" >&6
1244
# Substitution variables.
1246
# RPM needs the current absolute path.
1247
# RPM needs the list of original arguments, but we don't include the RPM
1249
CONFIGURATION_PATH=${PWD-`pwd`}
1250
CONFIGURATION_ARGS=`echo "$*" |
1251
sed -e 's/--with-embedix[^ ]*//' -e 's/--with-rpm[^ ]*//'`
1261
DB_VERSION_UNIQUE_NAME=_3003
1263
DB_VERSION_STRING="\"Sleepycat Software: Berkeley DB 3.3.11: (July 12, 2001)\""
1265
# Set the default installation location.
1267
# Process all options before using them.
1269
# --enable-bigfile was the configuration option that Berkeley DB used before
1270
# autoconf 2.50 was released (which had --enable-largefile integrated in).
1271
# Check whether --enable-bigfile or --disable-bigfile was given.
1272
if test "${enable_bigfile+set}" = set; then
1273
enableval="$enable_bigfile"
1274
{ { echo "$as_me:1274: error: --enable-bigfile no longer supported, use --enable-largefile" >&5
1275
echo "$as_me: error: --enable-bigfile no longer supported, use --enable-largefile" >&2;}
1276
{ (exit 1); exit 1; }; }
1279
echo "$as_me:1279: checking if --enable-compat185 option specified" >&5
1280
echo $ECHO_N "checking if --enable-compat185 option specified... $ECHO_C" >&6
1281
# Check whether --enable-compat185 or --disable-compat185 was given.
1282
if test "${enable_compat185+set}" = set; then
1283
enableval="$enable_compat185"
1284
db_cv_compat185="$enable_compat185"
1286
db_cv_compat185="no"
1288
echo "$as_me:1288: result: $db_cv_compat185" >&5
1289
echo "${ECHO_T}$db_cv_compat185" >&6
1291
echo "$as_me:1291: checking if --enable-cxx option specified" >&5
1292
echo $ECHO_N "checking if --enable-cxx option specified... $ECHO_C" >&6
1293
# Check whether --enable-cxx or --disable-cxx was given.
1294
if test "${enable_cxx+set}" = set; then
1295
enableval="$enable_cxx"
1296
db_cv_cxx="$enable_cxx"
1300
echo "$as_me:1300: result: $db_cv_cxx" >&5
1301
echo "${ECHO_T}$db_cv_cxx" >&6
1303
echo "$as_me:1303: checking if --enable-debug option specified" >&5
1304
echo $ECHO_N "checking if --enable-debug option specified... $ECHO_C" >&6
1305
# Check whether --enable-debug or --disable-debug was given.
1306
if test "${enable_debug+set}" = set; then
1307
enableval="$enable_debug"
1308
db_cv_debug="$enable_debug"
1312
echo "$as_me:1312: result: $db_cv_debug" >&5
1313
echo "${ECHO_T}$db_cv_debug" >&6
1315
echo "$as_me:1315: checking if --enable-debug_rop option specified" >&5
1316
echo $ECHO_N "checking if --enable-debug_rop option specified... $ECHO_C" >&6
1317
# Check whether --enable-debug_rop or --disable-debug_rop was given.
1318
if test "${enable_debug_rop+set}" = set; then
1319
enableval="$enable_debug_rop"
1320
db_cv_debug_rop="$enable_debug_rop"
1322
db_cv_debug_rop="no"
1324
echo "$as_me:1324: result: $db_cv_debug_rop" >&5
1325
echo "${ECHO_T}$db_cv_debug_rop" >&6
1327
echo "$as_me:1327: checking if --enable-debug_wop option specified" >&5
1328
echo $ECHO_N "checking if --enable-debug_wop option specified... $ECHO_C" >&6
1329
# Check whether --enable-debug_wop or --disable-debug_wop was given.
1330
if test "${enable_debug_wop+set}" = set; then
1331
enableval="$enable_debug_wop"
1332
db_cv_debug_wop="$enable_debug_wop"
1334
db_cv_debug_wop="no"
1336
echo "$as_me:1336: result: $db_cv_debug_wop" >&5
1337
echo "${ECHO_T}$db_cv_debug_wop" >&6
1339
echo "$as_me:1339: checking if --enable-diagnostic option specified" >&5
1340
echo $ECHO_N "checking if --enable-diagnostic option specified... $ECHO_C" >&6
1341
# Check whether --enable-diagnostic or --disable-diagnostic was given.
1342
if test "${enable_diagnostic+set}" = set; then
1343
enableval="$enable_diagnostic"
1344
db_cv_diagnostic="$enable_diagnostic"
1346
db_cv_diagnostic="no"
1348
echo "$as_me:1348: result: $db_cv_diagnostic" >&5
1349
echo "${ECHO_T}$db_cv_diagnostic" >&6
1351
echo "$as_me:1351: checking if --enable-dump185 option specified" >&5
1352
echo $ECHO_N "checking if --enable-dump185 option specified... $ECHO_C" >&6
1353
# Check whether --enable-dump185 or --disable-dump185 was given.
1354
if test "${enable_dump185+set}" = set; then
1355
enableval="$enable_dump185"
1356
db_cv_dump185="$enable_dump185"
1360
echo "$as_me:1360: result: $db_cv_dump185" >&5
1361
echo "${ECHO_T}$db_cv_dump185" >&6
1363
echo "$as_me:1363: checking if --enable-java option specified" >&5
1364
echo $ECHO_N "checking if --enable-java option specified... $ECHO_C" >&6
1365
# Check whether --enable-java or --disable-java was given.
1366
if test "${enable_java+set}" = set; then
1367
enableval="$enable_java"
1368
db_cv_java="$enable_java"
1372
echo "$as_me:1372: result: $db_cv_java" >&5
1373
echo "${ECHO_T}$db_cv_java" >&6
1375
echo "$as_me:1375: checking if --enable-posixmutexes option specified" >&5
1376
echo $ECHO_N "checking if --enable-posixmutexes option specified... $ECHO_C" >&6
1377
# Check whether --enable-posixmutexes or --disable-posixmutexes was given.
1378
if test "${enable_posixmutexes+set}" = set; then
1379
enableval="$enable_posixmutexes"
1380
db_cv_posixmutexes="$enable_posixmutexes"
1382
db_cv_posixmutexes="no"
1384
echo "$as_me:1384: result: $db_cv_posixmutexes" >&5
1385
echo "${ECHO_T}$db_cv_posixmutexes" >&6
1387
echo "$as_me:1387: checking if --enable-rpc option specified" >&5
1388
echo $ECHO_N "checking if --enable-rpc option specified... $ECHO_C" >&6
1389
# Check whether --enable-rpc or --disable-rpc was given.
1390
if test "${enable_rpc+set}" = set; then
1391
enableval="$enable_rpc"
1392
db_cv_rpc="$enable_rpc"
1396
echo "$as_me:1396: result: $db_cv_rpc" >&5
1397
echo "${ECHO_T}$db_cv_rpc" >&6
1399
echo "$as_me:1399: checking if --enable-tcl option specified" >&5
1400
echo $ECHO_N "checking if --enable-tcl option specified... $ECHO_C" >&6
1401
# Check whether --enable-tcl or --disable-tcl was given.
1402
if test "${enable_tcl+set}" = set; then
1403
enableval="$enable_tcl"
1404
db_cv_tcl="$enable_tcl"
1408
echo "$as_me:1408: result: $db_cv_tcl" >&5
1409
echo "${ECHO_T}$db_cv_tcl" >&6
1411
echo "$as_me:1411: checking if --enable-test option specified" >&5
1412
echo $ECHO_N "checking if --enable-test option specified... $ECHO_C" >&6
1413
# Check whether --enable-test or --disable-test was given.
1414
if test "${enable_test+set}" = set; then
1415
enableval="$enable_test"
1416
db_cv_test="$enable_test"
1420
echo "$as_me:1420: result: $db_cv_test" >&5
1421
echo "${ECHO_T}$db_cv_test" >&6
1423
echo "$as_me:1423: checking if --enable-uimutexes option specified" >&5
1424
echo $ECHO_N "checking if --enable-uimutexes option specified... $ECHO_C" >&6
1425
# Check whether --enable-uimutexes or --disable-uimutexes was given.
1426
if test "${enable_uimutexes+set}" = set; then
1427
enableval="$enable_uimutexes"
1428
db_cv_uimutexes="$enable_uimutexes"
1430
db_cv_uimutexes="no"
1432
echo "$as_me:1432: result: $db_cv_uimutexes" >&5
1433
echo "${ECHO_T}$db_cv_uimutexes" >&6
1435
echo "$as_me:1435: checking if --enable-umrw option specified" >&5
1436
echo $ECHO_N "checking if --enable-umrw option specified... $ECHO_C" >&6
1437
# Check whether --enable-umrw or --disable-umrw was given.
1438
if test "${enable_umrw+set}" = set; then
1439
enableval="$enable_umrw"
1440
db_cv_umrw="$enable_umrw"
1444
echo "$as_me:1444: result: $db_cv_umrw" >&5
1445
echo "${ECHO_T}$db_cv_umrw" >&6
1447
echo "$as_me:1447: checking if --with-embedix=DIR option specified" >&5
1448
echo $ECHO_N "checking if --with-embedix=DIR option specified... $ECHO_C" >&6
1450
# Check whether --with-embedix or --without-embedix was given.
1451
if test "${with_embedix+set}" = set; then
1452
withval="$with_embedix"
1453
with_embedix="$withval"
1457
if test "$with_embedix" = "no"; then
1459
echo "$as_me:1459: result: $with_embedix" >&5
1460
echo "${ECHO_T}$with_embedix" >&6
1463
if test "$with_embedix" = "yes"; then
1464
db_cv_path_embedix_install="/opt/Embedix"
1466
db_cv_path_embedix_install="$with_embedix"
1468
echo "$as_me:1468: result: $db_cv_path_embedix_install" >&5
1469
echo "${ECHO_T}$db_cv_path_embedix_install" >&6
1472
echo "$as_me:1472: checking if --with-rpm=DIR option specified" >&5
1473
echo $ECHO_N "checking if --with-rpm=DIR option specified... $ECHO_C" >&6
1475
# Check whether --with-rpm or --without-rpm was given.
1476
if test "${with_rpm+set}" = set; then
1482
if test "$with_rpm" = "no"; then
1485
if test "$with_rpm" = "yes"; then
1486
{ { echo "$as_me:1486: error: --with-rpm requires a directory argument" >&5
1487
echo "$as_me: error: --with-rpm requires a directory argument" >&2;}
1488
{ (exit 1); exit 1; }; }
1491
db_cv_path_rpm_archive="$with_rpm"
1493
echo "$as_me:1493: result: $with_rpm" >&5
1494
echo "${ECHO_T}$with_rpm" >&6
1496
echo "$as_me:1496: checking if --with-tcl=DIR option specified" >&5
1497
echo $ECHO_N "checking if --with-tcl=DIR option specified... $ECHO_C" >&6
1499
# Check whether --with-tcl or --without-tcl was given.
1500
if test "${with_tcl+set}" = set; then
1502
with_tclconfig="$withval"
1506
echo "$as_me:1506: result: $with_tclconfig" >&5
1507
echo "${ECHO_T}$with_tclconfig" >&6
1508
if test "$with_tclconfig" != "no"; then
1512
echo "$as_me:1512: checking if --with-uniquename=NAME option specified" >&5
1513
echo $ECHO_N "checking if --with-uniquename=NAME option specified... $ECHO_C" >&6
1515
# Check whether --with-uniquename or --without-uniquename was given.
1516
if test "${with_uniquename+set}" = set; then
1517
withval="$with_uniquename"
1518
with_uniquename="$withval"
1520
with_uniquename="no"
1522
if test "$with_uniquename" = "no"; then
1523
db_cv_uniquename="no"
1524
echo "$as_me:1524: result: $with_uniquename" >&5
1525
echo "${ECHO_T}$with_uniquename" >&6
1527
db_cv_uniquename="yes"
1528
if test "$with_uniquename" != "yes"; then
1529
DB_VERSION_UNIQUE_NAME="$with_uniquename"
1531
echo "$as_me:1531: result: $DB_VERSION_UNIQUE_NAME" >&5
1532
echo "${ECHO_T}$DB_VERSION_UNIQUE_NAME" >&6
1535
# Embedix requires RPM.
1536
if test "$db_cv_embedix" = "yes"; then
1537
if test "$db_cv_rpm" = "no"; then
1538
{ { echo "$as_me:1538: error: --with-embedix requires --with-rpm" >&5
1539
echo "$as_me: error: --with-embedix requires --with-rpm" >&2;}
1540
{ (exit 1); exit 1; }; }
1545
if test "$db_cv_test" = "yes"; then
1546
if test "$db_cv_tcl" = "no"; then
1547
{ { echo "$as_me:1547: error: --enable-test requires --enable-tcl" >&5
1548
echo "$as_me: error: --enable-test requires --enable-tcl" >&2;}
1549
{ (exit 1); exit 1; }; }
1553
# Set some #defines based on configuration options.
1554
if test "$db_cv_diagnostic" = yes; then
1555
cat >>confdefs.h <<\EOF
1556
#define DIAGNOSTIC 1
1560
if test "$db_cv_debug_rop" = yes; then
1561
cat >>confdefs.h <<\EOF
1566
if test "$db_cv_debug_wop" = yes; then
1567
cat >>confdefs.h <<\EOF
1572
if test "$db_cv_umrw" = yes; then
1573
cat >>confdefs.h <<\EOF
1578
if test "$db_cv_test" = yes; then
1579
cat >>confdefs.h <<\EOF
1580
#define CONFIG_TEST 1
1585
# Check for programs used in building and installation.
1587
if test -n "$ac_tool_prefix"; then
1588
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1589
set dummy ${ac_tool_prefix}ar; ac_word=$2
1590
echo "$as_me:1590: checking for $ac_word" >&5
1591
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592
if test "${ac_cv_prog_db_cv_path_ar+set}" = set; then
1593
echo $ECHO_N "(cached) $ECHO_C" >&6
1595
if test -n "$db_cv_path_ar"; then
1596
ac_cv_prog_db_cv_path_ar="$db_cv_path_ar" # Let the user override the test.
1598
ac_save_IFS=$IFS; IFS=$ac_path_separator
1600
for ac_dir in $ac_dummy; do
1602
test -z "$ac_dir" && ac_dir=.
1603
$as_executable_p "$ac_dir/$ac_word" || continue
1604
ac_cv_prog_db_cv_path_ar="${ac_tool_prefix}ar"
1605
echo "$as_me:1605: found $ac_dir/$ac_word" >&5
1611
db_cv_path_ar=$ac_cv_prog_db_cv_path_ar
1612
if test -n "$db_cv_path_ar"; then
1613
echo "$as_me:1613: result: $db_cv_path_ar" >&5
1614
echo "${ECHO_T}$db_cv_path_ar" >&6
1616
echo "$as_me:1616: result: no" >&5
1617
echo "${ECHO_T}no" >&6
1621
if test -z "$ac_cv_prog_db_cv_path_ar"; then
1622
ac_ct_db_cv_path_ar=$db_cv_path_ar
1623
# Extract the first word of "ar", so it can be a program name with args.
1624
set dummy ar; ac_word=$2
1625
echo "$as_me:1625: checking for $ac_word" >&5
1626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627
if test "${ac_cv_prog_ac_ct_db_cv_path_ar+set}" = set; then
1628
echo $ECHO_N "(cached) $ECHO_C" >&6
1630
if test -n "$ac_ct_db_cv_path_ar"; then
1631
ac_cv_prog_ac_ct_db_cv_path_ar="$ac_ct_db_cv_path_ar" # Let the user override the test.
1633
ac_save_IFS=$IFS; IFS=$ac_path_separator
1635
for ac_dir in $ac_dummy; do
1637
test -z "$ac_dir" && ac_dir=.
1638
$as_executable_p "$ac_dir/$ac_word" || continue
1639
ac_cv_prog_ac_ct_db_cv_path_ar="ar"
1640
echo "$as_me:1640: found $ac_dir/$ac_word" >&5
1644
test -z "$ac_cv_prog_ac_ct_db_cv_path_ar" && ac_cv_prog_ac_ct_db_cv_path_ar="missing_ar"
1647
ac_ct_db_cv_path_ar=$ac_cv_prog_ac_ct_db_cv_path_ar
1648
if test -n "$ac_ct_db_cv_path_ar"; then
1649
echo "$as_me:1649: result: $ac_ct_db_cv_path_ar" >&5
1650
echo "${ECHO_T}$ac_ct_db_cv_path_ar" >&6
1652
echo "$as_me:1652: result: no" >&5
1653
echo "${ECHO_T}no" >&6
1656
db_cv_path_ar=$ac_ct_db_cv_path_ar
1658
db_cv_path_ar="$ac_cv_prog_db_cv_path_ar"
1661
if test "$db_cv_path_ar" = missing_ar; then
1662
{ { echo "$as_me:1662: error: No ar utility found." >&5
1663
echo "$as_me: error: No ar utility found." >&2;}
1664
{ (exit 1); exit 1; }; }
1667
if test -n "$ac_tool_prefix"; then
1668
# Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
1669
set dummy ${ac_tool_prefix}chmod; ac_word=$2
1670
echo "$as_me:1670: checking for $ac_word" >&5
1671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672
if test "${ac_cv_prog_db_cv_path_chmod+set}" = set; then
1673
echo $ECHO_N "(cached) $ECHO_C" >&6
1675
if test -n "$db_cv_path_chmod"; then
1676
ac_cv_prog_db_cv_path_chmod="$db_cv_path_chmod" # Let the user override the test.
1678
ac_save_IFS=$IFS; IFS=$ac_path_separator
1680
for ac_dir in $ac_dummy; do
1682
test -z "$ac_dir" && ac_dir=.
1683
$as_executable_p "$ac_dir/$ac_word" || continue
1684
ac_cv_prog_db_cv_path_chmod="${ac_tool_prefix}chmod"
1685
echo "$as_me:1685: found $ac_dir/$ac_word" >&5
1691
db_cv_path_chmod=$ac_cv_prog_db_cv_path_chmod
1692
if test -n "$db_cv_path_chmod"; then
1693
echo "$as_me:1693: result: $db_cv_path_chmod" >&5
1694
echo "${ECHO_T}$db_cv_path_chmod" >&6
1696
echo "$as_me:1696: result: no" >&5
1697
echo "${ECHO_T}no" >&6
1701
if test -z "$ac_cv_prog_db_cv_path_chmod"; then
1702
ac_ct_db_cv_path_chmod=$db_cv_path_chmod
1703
# Extract the first word of "chmod", so it can be a program name with args.
1704
set dummy chmod; ac_word=$2
1705
echo "$as_me:1705: checking for $ac_word" >&5
1706
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707
if test "${ac_cv_prog_ac_ct_db_cv_path_chmod+set}" = set; then
1708
echo $ECHO_N "(cached) $ECHO_C" >&6
1710
if test -n "$ac_ct_db_cv_path_chmod"; then
1711
ac_cv_prog_ac_ct_db_cv_path_chmod="$ac_ct_db_cv_path_chmod" # Let the user override the test.
1713
ac_save_IFS=$IFS; IFS=$ac_path_separator
1715
for ac_dir in $ac_dummy; do
1717
test -z "$ac_dir" && ac_dir=.
1718
$as_executable_p "$ac_dir/$ac_word" || continue
1719
ac_cv_prog_ac_ct_db_cv_path_chmod="chmod"
1720
echo "$as_me:1720: found $ac_dir/$ac_word" >&5
1724
test -z "$ac_cv_prog_ac_ct_db_cv_path_chmod" && ac_cv_prog_ac_ct_db_cv_path_chmod="missing_chmod"
1727
ac_ct_db_cv_path_chmod=$ac_cv_prog_ac_ct_db_cv_path_chmod
1728
if test -n "$ac_ct_db_cv_path_chmod"; then
1729
echo "$as_me:1729: result: $ac_ct_db_cv_path_chmod" >&5
1730
echo "${ECHO_T}$ac_ct_db_cv_path_chmod" >&6
1732
echo "$as_me:1732: result: no" >&5
1733
echo "${ECHO_T}no" >&6
1736
db_cv_path_chmod=$ac_ct_db_cv_path_chmod
1738
db_cv_path_chmod="$ac_cv_prog_db_cv_path_chmod"
1741
if test "$db_cv_path_chmod" = missing_chmod; then
1742
{ { echo "$as_me:1742: error: No chmod utility found." >&5
1743
echo "$as_me: error: No chmod utility found." >&2;}
1744
{ (exit 1); exit 1; }; }
1747
if test -n "$ac_tool_prefix"; then
1748
# Extract the first word of "${ac_tool_prefix}cp", so it can be a program name with args.
1749
set dummy ${ac_tool_prefix}cp; ac_word=$2
1750
echo "$as_me:1750: checking for $ac_word" >&5
1751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752
if test "${ac_cv_prog_db_cv_path_cp+set}" = set; then
1753
echo $ECHO_N "(cached) $ECHO_C" >&6
1755
if test -n "$db_cv_path_cp"; then
1756
ac_cv_prog_db_cv_path_cp="$db_cv_path_cp" # Let the user override the test.
1758
ac_save_IFS=$IFS; IFS=$ac_path_separator
1760
for ac_dir in $ac_dummy; do
1762
test -z "$ac_dir" && ac_dir=.
1763
$as_executable_p "$ac_dir/$ac_word" || continue
1764
ac_cv_prog_db_cv_path_cp="${ac_tool_prefix}cp"
1765
echo "$as_me:1765: found $ac_dir/$ac_word" >&5
1771
db_cv_path_cp=$ac_cv_prog_db_cv_path_cp
1772
if test -n "$db_cv_path_cp"; then
1773
echo "$as_me:1773: result: $db_cv_path_cp" >&5
1774
echo "${ECHO_T}$db_cv_path_cp" >&6
1776
echo "$as_me:1776: result: no" >&5
1777
echo "${ECHO_T}no" >&6
1781
if test -z "$ac_cv_prog_db_cv_path_cp"; then
1782
ac_ct_db_cv_path_cp=$db_cv_path_cp
1783
# Extract the first word of "cp", so it can be a program name with args.
1784
set dummy cp; ac_word=$2
1785
echo "$as_me:1785: checking for $ac_word" >&5
1786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787
if test "${ac_cv_prog_ac_ct_db_cv_path_cp+set}" = set; then
1788
echo $ECHO_N "(cached) $ECHO_C" >&6
1790
if test -n "$ac_ct_db_cv_path_cp"; then
1791
ac_cv_prog_ac_ct_db_cv_path_cp="$ac_ct_db_cv_path_cp" # Let the user override the test.
1793
ac_save_IFS=$IFS; IFS=$ac_path_separator
1795
for ac_dir in $ac_dummy; do
1797
test -z "$ac_dir" && ac_dir=.
1798
$as_executable_p "$ac_dir/$ac_word" || continue
1799
ac_cv_prog_ac_ct_db_cv_path_cp="cp"
1800
echo "$as_me:1800: found $ac_dir/$ac_word" >&5
1804
test -z "$ac_cv_prog_ac_ct_db_cv_path_cp" && ac_cv_prog_ac_ct_db_cv_path_cp="missing_cp"
1807
ac_ct_db_cv_path_cp=$ac_cv_prog_ac_ct_db_cv_path_cp
1808
if test -n "$ac_ct_db_cv_path_cp"; then
1809
echo "$as_me:1809: result: $ac_ct_db_cv_path_cp" >&5
1810
echo "${ECHO_T}$ac_ct_db_cv_path_cp" >&6
1812
echo "$as_me:1812: result: no" >&5
1813
echo "${ECHO_T}no" >&6
1816
db_cv_path_cp=$ac_ct_db_cv_path_cp
1818
db_cv_path_cp="$ac_cv_prog_db_cv_path_cp"
1821
if test "$db_cv_path_cp" = missing_cp; then
1822
{ { echo "$as_me:1822: error: No cp utility found." >&5
1823
echo "$as_me: error: No cp utility found." >&2;}
1824
{ (exit 1); exit 1; }; }
1827
if test "$db_cv_rpm" = "yes"; then
1828
if test -n "$ac_tool_prefix"; then
1829
# Extract the first word of "${ac_tool_prefix}ldconfig", so it can be a program name with args.
1830
set dummy ${ac_tool_prefix}ldconfig; ac_word=$2
1831
echo "$as_me:1831: checking for $ac_word" >&5
1832
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833
if test "${ac_cv_prog_path_ldconfig+set}" = set; then
1834
echo $ECHO_N "(cached) $ECHO_C" >&6
1836
if test -n "$path_ldconfig"; then
1837
ac_cv_prog_path_ldconfig="$path_ldconfig" # Let the user override the test.
1839
ac_save_IFS=$IFS; IFS=$ac_path_separator
1841
for ac_dir in $ac_dummy; do
1843
test -z "$ac_dir" && ac_dir=.
1844
$as_executable_p "$ac_dir/$ac_word" || continue
1845
ac_cv_prog_path_ldconfig="${ac_tool_prefix}ldconfig"
1846
echo "$as_me:1846: found $ac_dir/$ac_word" >&5
1852
path_ldconfig=$ac_cv_prog_path_ldconfig
1853
if test -n "$path_ldconfig"; then
1854
echo "$as_me:1854: result: $path_ldconfig" >&5
1855
echo "${ECHO_T}$path_ldconfig" >&6
1857
echo "$as_me:1857: result: no" >&5
1858
echo "${ECHO_T}no" >&6
1862
if test -z "$ac_cv_prog_path_ldconfig"; then
1863
ac_ct_path_ldconfig=$path_ldconfig
1864
# Extract the first word of "ldconfig", so it can be a program name with args.
1865
set dummy ldconfig; ac_word=$2
1866
echo "$as_me:1866: checking for $ac_word" >&5
1867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868
if test "${ac_cv_prog_ac_ct_path_ldconfig+set}" = set; then
1869
echo $ECHO_N "(cached) $ECHO_C" >&6
1871
if test -n "$ac_ct_path_ldconfig"; then
1872
ac_cv_prog_ac_ct_path_ldconfig="$ac_ct_path_ldconfig" # Let the user override the test.
1874
ac_save_IFS=$IFS; IFS=$ac_path_separator
1876
for ac_dir in $ac_dummy; do
1878
test -z "$ac_dir" && ac_dir=.
1879
$as_executable_p "$ac_dir/$ac_word" || continue
1880
ac_cv_prog_ac_ct_path_ldconfig="ldconfig"
1881
echo "$as_me:1881: found $ac_dir/$ac_word" >&5
1885
test -z "$ac_cv_prog_ac_ct_path_ldconfig" && ac_cv_prog_ac_ct_path_ldconfig="missing_ldconfig"
1888
ac_ct_path_ldconfig=$ac_cv_prog_ac_ct_path_ldconfig
1889
if test -n "$ac_ct_path_ldconfig"; then
1890
echo "$as_me:1890: result: $ac_ct_path_ldconfig" >&5
1891
echo "${ECHO_T}$ac_ct_path_ldconfig" >&6
1893
echo "$as_me:1893: result: no" >&5
1894
echo "${ECHO_T}no" >&6
1897
path_ldconfig=$ac_ct_path_ldconfig
1899
path_ldconfig="$ac_cv_prog_path_ldconfig"
1902
# Extract the first word of "$path_ldconfig", so it can be a program name with args.
1903
set dummy $path_ldconfig; ac_word=$2
1904
echo "$as_me:1904: checking for $ac_word" >&5
1905
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906
if test "${ac_cv_path_db_cv_path_ldconfig+set}" = set; then
1907
echo $ECHO_N "(cached) $ECHO_C" >&6
1909
case $db_cv_path_ldconfig in
1911
ac_cv_path_db_cv_path_ldconfig="$db_cv_path_ldconfig" # Let the user override the test with a path.
1914
ac_save_IFS=$IFS; IFS=$ac_path_separator
1916
for ac_dir in $ac_dummy; do
1918
test -z "$ac_dir" && ac_dir=.
1919
if $as_executable_p "$ac_dir/$ac_word"; then
1920
ac_cv_path_db_cv_path_ldconfig="$ac_dir/$ac_word"
1921
echo "$as_me:1921: found $ac_dir/$ac_word" >&5
1926
test -z "$ac_cv_path_db_cv_path_ldconfig" && ac_cv_path_db_cv_path_ldconfig="missing_ldconfig"
1930
db_cv_path_ldconfig=$ac_cv_path_db_cv_path_ldconfig
1932
if test -n "$db_cv_path_ldconfig"; then
1933
echo "$as_me:1933: result: $db_cv_path_ldconfig" >&5
1934
echo "${ECHO_T}$db_cv_path_ldconfig" >&6
1936
echo "$as_me:1936: result: no" >&5
1937
echo "${ECHO_T}no" >&6
1940
if test "$db_cv_path_ldconfig" != missing_ldconfig; then
1941
RPM_POST_INSTALL="%post -p $db_cv_path_ldconfig"
1942
RPM_POST_UNINSTALL="%postun -p $db_cv_path_ldconfig"
1946
if test -n "$ac_tool_prefix"; then
1947
# Extract the first word of "${ac_tool_prefix}ln", so it can be a program name with args.
1948
set dummy ${ac_tool_prefix}ln; ac_word=$2
1949
echo "$as_me:1949: checking for $ac_word" >&5
1950
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951
if test "${ac_cv_prog_db_cv_path_ln+set}" = set; then
1952
echo $ECHO_N "(cached) $ECHO_C" >&6
1954
if test -n "$db_cv_path_ln"; then
1955
ac_cv_prog_db_cv_path_ln="$db_cv_path_ln" # Let the user override the test.
1957
ac_save_IFS=$IFS; IFS=$ac_path_separator
1959
for ac_dir in $ac_dummy; do
1961
test -z "$ac_dir" && ac_dir=.
1962
$as_executable_p "$ac_dir/$ac_word" || continue
1963
ac_cv_prog_db_cv_path_ln="${ac_tool_prefix}ln"
1964
echo "$as_me:1964: found $ac_dir/$ac_word" >&5
1970
db_cv_path_ln=$ac_cv_prog_db_cv_path_ln
1971
if test -n "$db_cv_path_ln"; then
1972
echo "$as_me:1972: result: $db_cv_path_ln" >&5
1973
echo "${ECHO_T}$db_cv_path_ln" >&6
1975
echo "$as_me:1975: result: no" >&5
1976
echo "${ECHO_T}no" >&6
1980
if test -z "$ac_cv_prog_db_cv_path_ln"; then
1981
ac_ct_db_cv_path_ln=$db_cv_path_ln
1982
# Extract the first word of "ln", so it can be a program name with args.
1983
set dummy ln; ac_word=$2
1984
echo "$as_me:1984: checking for $ac_word" >&5
1985
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986
if test "${ac_cv_prog_ac_ct_db_cv_path_ln+set}" = set; then
1987
echo $ECHO_N "(cached) $ECHO_C" >&6
1989
if test -n "$ac_ct_db_cv_path_ln"; then
1990
ac_cv_prog_ac_ct_db_cv_path_ln="$ac_ct_db_cv_path_ln" # Let the user override the test.
1992
ac_save_IFS=$IFS; IFS=$ac_path_separator
1994
for ac_dir in $ac_dummy; do
1996
test -z "$ac_dir" && ac_dir=.
1997
$as_executable_p "$ac_dir/$ac_word" || continue
1998
ac_cv_prog_ac_ct_db_cv_path_ln="ln"
1999
echo "$as_me:1999: found $ac_dir/$ac_word" >&5
2003
test -z "$ac_cv_prog_ac_ct_db_cv_path_ln" && ac_cv_prog_ac_ct_db_cv_path_ln="missing_ln"
2006
ac_ct_db_cv_path_ln=$ac_cv_prog_ac_ct_db_cv_path_ln
2007
if test -n "$ac_ct_db_cv_path_ln"; then
2008
echo "$as_me:2008: result: $ac_ct_db_cv_path_ln" >&5
2009
echo "${ECHO_T}$ac_ct_db_cv_path_ln" >&6
2011
echo "$as_me:2011: result: no" >&5
2012
echo "${ECHO_T}no" >&6
2015
db_cv_path_ln=$ac_ct_db_cv_path_ln
2017
db_cv_path_ln="$ac_cv_prog_db_cv_path_ln"
2020
if test "$db_cv_path_ln" = missing_ln; then
2021
{ { echo "$as_me:2021: error: No ln utility found." >&5
2022
echo "$as_me: error: No ln utility found." >&2;}
2023
{ (exit 1); exit 1; }; }
2026
if test -n "$ac_tool_prefix"; then
2027
# Extract the first word of "${ac_tool_prefix}mkdir", so it can be a program name with args.
2028
set dummy ${ac_tool_prefix}mkdir; ac_word=$2
2029
echo "$as_me:2029: checking for $ac_word" >&5
2030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031
if test "${ac_cv_prog_db_cv_path_mkdir+set}" = set; then
2032
echo $ECHO_N "(cached) $ECHO_C" >&6
2034
if test -n "$db_cv_path_mkdir"; then
2035
ac_cv_prog_db_cv_path_mkdir="$db_cv_path_mkdir" # Let the user override the test.
2037
ac_save_IFS=$IFS; IFS=$ac_path_separator
2039
for ac_dir in $ac_dummy; do
2041
test -z "$ac_dir" && ac_dir=.
2042
$as_executable_p "$ac_dir/$ac_word" || continue
2043
ac_cv_prog_db_cv_path_mkdir="${ac_tool_prefix}mkdir"
2044
echo "$as_me:2044: found $ac_dir/$ac_word" >&5
2050
db_cv_path_mkdir=$ac_cv_prog_db_cv_path_mkdir
2051
if test -n "$db_cv_path_mkdir"; then
2052
echo "$as_me:2052: result: $db_cv_path_mkdir" >&5
2053
echo "${ECHO_T}$db_cv_path_mkdir" >&6
2055
echo "$as_me:2055: result: no" >&5
2056
echo "${ECHO_T}no" >&6
2060
if test -z "$ac_cv_prog_db_cv_path_mkdir"; then
2061
ac_ct_db_cv_path_mkdir=$db_cv_path_mkdir
2062
# Extract the first word of "mkdir", so it can be a program name with args.
2063
set dummy mkdir; ac_word=$2
2064
echo "$as_me:2064: checking for $ac_word" >&5
2065
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066
if test "${ac_cv_prog_ac_ct_db_cv_path_mkdir+set}" = set; then
2067
echo $ECHO_N "(cached) $ECHO_C" >&6
2069
if test -n "$ac_ct_db_cv_path_mkdir"; then
2070
ac_cv_prog_ac_ct_db_cv_path_mkdir="$ac_ct_db_cv_path_mkdir" # Let the user override the test.
2072
ac_save_IFS=$IFS; IFS=$ac_path_separator
2074
for ac_dir in $ac_dummy; do
2076
test -z "$ac_dir" && ac_dir=.
2077
$as_executable_p "$ac_dir/$ac_word" || continue
2078
ac_cv_prog_ac_ct_db_cv_path_mkdir="mkdir"
2079
echo "$as_me:2079: found $ac_dir/$ac_word" >&5
2083
test -z "$ac_cv_prog_ac_ct_db_cv_path_mkdir" && ac_cv_prog_ac_ct_db_cv_path_mkdir="missing_mkdir"
2086
ac_ct_db_cv_path_mkdir=$ac_cv_prog_ac_ct_db_cv_path_mkdir
2087
if test -n "$ac_ct_db_cv_path_mkdir"; then
2088
echo "$as_me:2088: result: $ac_ct_db_cv_path_mkdir" >&5
2089
echo "${ECHO_T}$ac_ct_db_cv_path_mkdir" >&6
2091
echo "$as_me:2091: result: no" >&5
2092
echo "${ECHO_T}no" >&6
2095
db_cv_path_mkdir=$ac_ct_db_cv_path_mkdir
2097
db_cv_path_mkdir="$ac_cv_prog_db_cv_path_mkdir"
2100
if test "$db_cv_path_mkdir" = missing_mkdir; then
2101
{ { echo "$as_me:2101: error: No mkdir utility found." >&5
2102
echo "$as_me: error: No mkdir utility found." >&2;}
2103
{ (exit 1); exit 1; }; }
2106
# We need a complete path for ranlib, because it doesn't exist on some
2107
# architectures because the ar utility packages the library itself.
2108
if test -n "$ac_tool_prefix"; then
2109
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2110
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2111
echo "$as_me:2111: checking for $ac_word" >&5
2112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113
if test "${ac_cv_prog_path_ranlib+set}" = set; then
2114
echo $ECHO_N "(cached) $ECHO_C" >&6
2116
if test -n "$path_ranlib"; then
2117
ac_cv_prog_path_ranlib="$path_ranlib" # Let the user override the test.
2119
ac_save_IFS=$IFS; IFS=$ac_path_separator
2121
for ac_dir in $ac_dummy; do
2123
test -z "$ac_dir" && ac_dir=.
2124
$as_executable_p "$ac_dir/$ac_word" || continue
2125
ac_cv_prog_path_ranlib="${ac_tool_prefix}ranlib"
2126
echo "$as_me:2126: found $ac_dir/$ac_word" >&5
2132
path_ranlib=$ac_cv_prog_path_ranlib
2133
if test -n "$path_ranlib"; then
2134
echo "$as_me:2134: result: $path_ranlib" >&5
2135
echo "${ECHO_T}$path_ranlib" >&6
2137
echo "$as_me:2137: result: no" >&5
2138
echo "${ECHO_T}no" >&6
2142
if test -z "$ac_cv_prog_path_ranlib"; then
2143
ac_ct_path_ranlib=$path_ranlib
2144
# Extract the first word of "ranlib", so it can be a program name with args.
2145
set dummy ranlib; ac_word=$2
2146
echo "$as_me:2146: checking for $ac_word" >&5
2147
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148
if test "${ac_cv_prog_ac_ct_path_ranlib+set}" = set; then
2149
echo $ECHO_N "(cached) $ECHO_C" >&6
2151
if test -n "$ac_ct_path_ranlib"; then
2152
ac_cv_prog_ac_ct_path_ranlib="$ac_ct_path_ranlib" # Let the user override the test.
2154
ac_save_IFS=$IFS; IFS=$ac_path_separator
2156
for ac_dir in $ac_dummy; do
2158
test -z "$ac_dir" && ac_dir=.
2159
$as_executable_p "$ac_dir/$ac_word" || continue
2160
ac_cv_prog_ac_ct_path_ranlib="ranlib"
2161
echo "$as_me:2161: found $ac_dir/$ac_word" >&5
2165
test -z "$ac_cv_prog_ac_ct_path_ranlib" && ac_cv_prog_ac_ct_path_ranlib="missing_ranlib"
2168
ac_ct_path_ranlib=$ac_cv_prog_ac_ct_path_ranlib
2169
if test -n "$ac_ct_path_ranlib"; then
2170
echo "$as_me:2170: result: $ac_ct_path_ranlib" >&5
2171
echo "${ECHO_T}$ac_ct_path_ranlib" >&6
2173
echo "$as_me:2173: result: no" >&5
2174
echo "${ECHO_T}no" >&6
2177
path_ranlib=$ac_ct_path_ranlib
2179
path_ranlib="$ac_cv_prog_path_ranlib"
2182
# Extract the first word of "$path_ranlib", so it can be a program name with args.
2183
set dummy $path_ranlib; ac_word=$2
2184
echo "$as_me:2184: checking for $ac_word" >&5
2185
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186
if test "${ac_cv_path_db_cv_path_ranlib+set}" = set; then
2187
echo $ECHO_N "(cached) $ECHO_C" >&6
2189
case $db_cv_path_ranlib in
2191
ac_cv_path_db_cv_path_ranlib="$db_cv_path_ranlib" # Let the user override the test with a path.
2194
ac_save_IFS=$IFS; IFS=$ac_path_separator
2196
for ac_dir in $ac_dummy; do
2198
test -z "$ac_dir" && ac_dir=.
2199
if $as_executable_p "$ac_dir/$ac_word"; then
2200
ac_cv_path_db_cv_path_ranlib="$ac_dir/$ac_word"
2201
echo "$as_me:2201: found $ac_dir/$ac_word" >&5
2206
test -z "$ac_cv_path_db_cv_path_ranlib" && ac_cv_path_db_cv_path_ranlib="missing_ranlib"
2210
db_cv_path_ranlib=$ac_cv_path_db_cv_path_ranlib
2212
if test -n "$db_cv_path_ranlib"; then
2213
echo "$as_me:2213: result: $db_cv_path_ranlib" >&5
2214
echo "${ECHO_T}$db_cv_path_ranlib" >&6
2216
echo "$as_me:2216: result: no" >&5
2217
echo "${ECHO_T}no" >&6
2220
if test -n "$ac_tool_prefix"; then
2221
# Extract the first word of "${ac_tool_prefix}rm", so it can be a program name with args.
2222
set dummy ${ac_tool_prefix}rm; ac_word=$2
2223
echo "$as_me:2223: checking for $ac_word" >&5
2224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225
if test "${ac_cv_prog_db_cv_path_rm+set}" = set; then
2226
echo $ECHO_N "(cached) $ECHO_C" >&6
2228
if test -n "$db_cv_path_rm"; then
2229
ac_cv_prog_db_cv_path_rm="$db_cv_path_rm" # Let the user override the test.
2231
ac_save_IFS=$IFS; IFS=$ac_path_separator
2233
for ac_dir in $ac_dummy; do
2235
test -z "$ac_dir" && ac_dir=.
2236
$as_executable_p "$ac_dir/$ac_word" || continue
2237
ac_cv_prog_db_cv_path_rm="${ac_tool_prefix}rm"
2238
echo "$as_me:2238: found $ac_dir/$ac_word" >&5
2244
db_cv_path_rm=$ac_cv_prog_db_cv_path_rm
2245
if test -n "$db_cv_path_rm"; then
2246
echo "$as_me:2246: result: $db_cv_path_rm" >&5
2247
echo "${ECHO_T}$db_cv_path_rm" >&6
2249
echo "$as_me:2249: result: no" >&5
2250
echo "${ECHO_T}no" >&6
2254
if test -z "$ac_cv_prog_db_cv_path_rm"; then
2255
ac_ct_db_cv_path_rm=$db_cv_path_rm
2256
# Extract the first word of "rm", so it can be a program name with args.
2257
set dummy rm; ac_word=$2
2258
echo "$as_me:2258: checking for $ac_word" >&5
2259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260
if test "${ac_cv_prog_ac_ct_db_cv_path_rm+set}" = set; then
2261
echo $ECHO_N "(cached) $ECHO_C" >&6
2263
if test -n "$ac_ct_db_cv_path_rm"; then
2264
ac_cv_prog_ac_ct_db_cv_path_rm="$ac_ct_db_cv_path_rm" # Let the user override the test.
2266
ac_save_IFS=$IFS; IFS=$ac_path_separator
2268
for ac_dir in $ac_dummy; do
2270
test -z "$ac_dir" && ac_dir=.
2271
$as_executable_p "$ac_dir/$ac_word" || continue
2272
ac_cv_prog_ac_ct_db_cv_path_rm="rm"
2273
echo "$as_me:2273: found $ac_dir/$ac_word" >&5
2277
test -z "$ac_cv_prog_ac_ct_db_cv_path_rm" && ac_cv_prog_ac_ct_db_cv_path_rm="missing_rm"
2280
ac_ct_db_cv_path_rm=$ac_cv_prog_ac_ct_db_cv_path_rm
2281
if test -n "$ac_ct_db_cv_path_rm"; then
2282
echo "$as_me:2282: result: $ac_ct_db_cv_path_rm" >&5
2283
echo "${ECHO_T}$ac_ct_db_cv_path_rm" >&6
2285
echo "$as_me:2285: result: no" >&5
2286
echo "${ECHO_T}no" >&6
2289
db_cv_path_rm=$ac_ct_db_cv_path_rm
2291
db_cv_path_rm="$ac_cv_prog_db_cv_path_rm"
2294
if test "$db_cv_path_rm" = missing_rm; then
2295
{ { echo "$as_me:2295: error: No rm utility found." >&5
2296
echo "$as_me: error: No rm utility found." >&2;}
2297
{ (exit 1); exit 1; }; }
2300
if test "$db_cv_rpm" = "yes"; then
2301
if test -n "$ac_tool_prefix"; then
2302
# Extract the first word of "${ac_tool_prefix}rpm", so it can be a program name with args.
2303
set dummy ${ac_tool_prefix}rpm; ac_word=$2
2304
echo "$as_me:2304: checking for $ac_word" >&5
2305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306
if test "${ac_cv_prog_db_cv_path_rpm+set}" = set; then
2307
echo $ECHO_N "(cached) $ECHO_C" >&6
2309
if test -n "$db_cv_path_rpm"; then
2310
ac_cv_prog_db_cv_path_rpm="$db_cv_path_rpm" # Let the user override the test.
2312
ac_save_IFS=$IFS; IFS=$ac_path_separator
2314
for ac_dir in $ac_dummy; do
2316
test -z "$ac_dir" && ac_dir=.
2317
$as_executable_p "$ac_dir/$ac_word" || continue
2318
ac_cv_prog_db_cv_path_rpm="${ac_tool_prefix}rpm"
2319
echo "$as_me:2319: found $ac_dir/$ac_word" >&5
2325
db_cv_path_rpm=$ac_cv_prog_db_cv_path_rpm
2326
if test -n "$db_cv_path_rpm"; then
2327
echo "$as_me:2327: result: $db_cv_path_rpm" >&5
2328
echo "${ECHO_T}$db_cv_path_rpm" >&6
2330
echo "$as_me:2330: result: no" >&5
2331
echo "${ECHO_T}no" >&6
2335
if test -z "$ac_cv_prog_db_cv_path_rpm"; then
2336
ac_ct_db_cv_path_rpm=$db_cv_path_rpm
2337
# Extract the first word of "rpm", so it can be a program name with args.
2338
set dummy rpm; ac_word=$2
2339
echo "$as_me:2339: checking for $ac_word" >&5
2340
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341
if test "${ac_cv_prog_ac_ct_db_cv_path_rpm+set}" = set; then
2342
echo $ECHO_N "(cached) $ECHO_C" >&6
2344
if test -n "$ac_ct_db_cv_path_rpm"; then
2345
ac_cv_prog_ac_ct_db_cv_path_rpm="$ac_ct_db_cv_path_rpm" # Let the user override the test.
2347
ac_save_IFS=$IFS; IFS=$ac_path_separator
2349
for ac_dir in $ac_dummy; do
2351
test -z "$ac_dir" && ac_dir=.
2352
$as_executable_p "$ac_dir/$ac_word" || continue
2353
ac_cv_prog_ac_ct_db_cv_path_rpm="rpm"
2354
echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2358
test -z "$ac_cv_prog_ac_ct_db_cv_path_rpm" && ac_cv_prog_ac_ct_db_cv_path_rpm="missing_rpm"
2361
ac_ct_db_cv_path_rpm=$ac_cv_prog_ac_ct_db_cv_path_rpm
2362
if test -n "$ac_ct_db_cv_path_rpm"; then
2363
echo "$as_me:2363: result: $ac_ct_db_cv_path_rpm" >&5
2364
echo "${ECHO_T}$ac_ct_db_cv_path_rpm" >&6
2366
echo "$as_me:2366: result: no" >&5
2367
echo "${ECHO_T}no" >&6
2370
db_cv_path_rpm=$ac_ct_db_cv_path_rpm
2372
db_cv_path_rpm="$ac_cv_prog_db_cv_path_rpm"
2375
if test "$db_cv_path_rpm" = missing_rpm; then
2376
{ { echo "$as_me:2376: error: No rpm utility found." >&5
2377
echo "$as_me: error: No rpm utility found." >&2;}
2378
{ (exit 1); exit 1; }; }
2382
# We need a complete path for sh, because some implementations of make
2383
# get upset if SHELL is set to just the command name.
2384
if test -n "$ac_tool_prefix"; then
2385
# Extract the first word of "${ac_tool_prefix}sh", so it can be a program name with args.
2386
set dummy ${ac_tool_prefix}sh; ac_word=$2
2387
echo "$as_me:2387: checking for $ac_word" >&5
2388
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389
if test "${ac_cv_prog_path_sh+set}" = set; then
2390
echo $ECHO_N "(cached) $ECHO_C" >&6
2392
if test -n "$path_sh"; then
2393
ac_cv_prog_path_sh="$path_sh" # Let the user override the test.
2395
ac_save_IFS=$IFS; IFS=$ac_path_separator
2397
for ac_dir in $ac_dummy; do
2399
test -z "$ac_dir" && ac_dir=.
2400
$as_executable_p "$ac_dir/$ac_word" || continue
2401
ac_cv_prog_path_sh="${ac_tool_prefix}sh"
2402
echo "$as_me:2402: found $ac_dir/$ac_word" >&5
2408
path_sh=$ac_cv_prog_path_sh
2409
if test -n "$path_sh"; then
2410
echo "$as_me:2410: result: $path_sh" >&5
2411
echo "${ECHO_T}$path_sh" >&6
2413
echo "$as_me:2413: result: no" >&5
2414
echo "${ECHO_T}no" >&6
2418
if test -z "$ac_cv_prog_path_sh"; then
2419
ac_ct_path_sh=$path_sh
2420
# Extract the first word of "sh", so it can be a program name with args.
2421
set dummy sh; ac_word=$2
2422
echo "$as_me:2422: checking for $ac_word" >&5
2423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424
if test "${ac_cv_prog_ac_ct_path_sh+set}" = set; then
2425
echo $ECHO_N "(cached) $ECHO_C" >&6
2427
if test -n "$ac_ct_path_sh"; then
2428
ac_cv_prog_ac_ct_path_sh="$ac_ct_path_sh" # Let the user override the test.
2430
ac_save_IFS=$IFS; IFS=$ac_path_separator
2432
for ac_dir in $ac_dummy; do
2434
test -z "$ac_dir" && ac_dir=.
2435
$as_executable_p "$ac_dir/$ac_word" || continue
2436
ac_cv_prog_ac_ct_path_sh="sh"
2437
echo "$as_me:2437: found $ac_dir/$ac_word" >&5
2441
test -z "$ac_cv_prog_ac_ct_path_sh" && ac_cv_prog_ac_ct_path_sh="missing_sh"
2444
ac_ct_path_sh=$ac_cv_prog_ac_ct_path_sh
2445
if test -n "$ac_ct_path_sh"; then
2446
echo "$as_me:2446: result: $ac_ct_path_sh" >&5
2447
echo "${ECHO_T}$ac_ct_path_sh" >&6
2449
echo "$as_me:2449: result: no" >&5
2450
echo "${ECHO_T}no" >&6
2453
path_sh=$ac_ct_path_sh
2455
path_sh="$ac_cv_prog_path_sh"
2458
# Extract the first word of "$path_sh", so it can be a program name with args.
2459
set dummy $path_sh; ac_word=$2
2460
echo "$as_me:2460: checking for $ac_word" >&5
2461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462
if test "${ac_cv_path_db_cv_path_sh+set}" = set; then
2463
echo $ECHO_N "(cached) $ECHO_C" >&6
2465
case $db_cv_path_sh in
2467
ac_cv_path_db_cv_path_sh="$db_cv_path_sh" # Let the user override the test with a path.
2470
ac_save_IFS=$IFS; IFS=$ac_path_separator
2472
for ac_dir in $ac_dummy; do
2474
test -z "$ac_dir" && ac_dir=.
2475
if $as_executable_p "$ac_dir/$ac_word"; then
2476
ac_cv_path_db_cv_path_sh="$ac_dir/$ac_word"
2477
echo "$as_me:2477: found $ac_dir/$ac_word" >&5
2482
test -z "$ac_cv_path_db_cv_path_sh" && ac_cv_path_db_cv_path_sh="missing_sh"
2486
db_cv_path_sh=$ac_cv_path_db_cv_path_sh
2488
if test -n "$db_cv_path_sh"; then
2489
echo "$as_me:2489: result: $db_cv_path_sh" >&5
2490
echo "${ECHO_T}$db_cv_path_sh" >&6
2492
echo "$as_me:2492: result: no" >&5
2493
echo "${ECHO_T}no" >&6
2496
if test "$db_cv_path_sh" = missing_sh; then
2497
{ { echo "$as_me:2497: error: No sh utility found." >&5
2498
echo "$as_me: error: No sh utility found." >&2;}
2499
{ (exit 1); exit 1; }; }
2502
# We need a complete path for ranlib, because it doesn't exist on some
2503
# architectures because the ar utility packages the library itself.
2504
if test -n "$ac_tool_prefix"; then
2505
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2506
set dummy ${ac_tool_prefix}strip; ac_word=$2
2507
echo "$as_me:2507: checking for $ac_word" >&5
2508
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2509
if test "${ac_cv_prog_path_strip+set}" = set; then
2510
echo $ECHO_N "(cached) $ECHO_C" >&6
2512
if test -n "$path_strip"; then
2513
ac_cv_prog_path_strip="$path_strip" # Let the user override the test.
2515
ac_save_IFS=$IFS; IFS=$ac_path_separator
2517
for ac_dir in $ac_dummy; do
2519
test -z "$ac_dir" && ac_dir=.
2520
$as_executable_p "$ac_dir/$ac_word" || continue
2521
ac_cv_prog_path_strip="${ac_tool_prefix}strip"
2522
echo "$as_me:2522: found $ac_dir/$ac_word" >&5
2528
path_strip=$ac_cv_prog_path_strip
2529
if test -n "$path_strip"; then
2530
echo "$as_me:2530: result: $path_strip" >&5
2531
echo "${ECHO_T}$path_strip" >&6
2533
echo "$as_me:2533: result: no" >&5
2534
echo "${ECHO_T}no" >&6
2538
if test -z "$ac_cv_prog_path_strip"; then
2539
ac_ct_path_strip=$path_strip
2540
# Extract the first word of "strip", so it can be a program name with args.
2541
set dummy strip; ac_word=$2
2542
echo "$as_me:2542: checking for $ac_word" >&5
2543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2544
if test "${ac_cv_prog_ac_ct_path_strip+set}" = set; then
2545
echo $ECHO_N "(cached) $ECHO_C" >&6
2547
if test -n "$ac_ct_path_strip"; then
2548
ac_cv_prog_ac_ct_path_strip="$ac_ct_path_strip" # Let the user override the test.
2550
ac_save_IFS=$IFS; IFS=$ac_path_separator
2552
for ac_dir in $ac_dummy; do
2554
test -z "$ac_dir" && ac_dir=.
2555
$as_executable_p "$ac_dir/$ac_word" || continue
2556
ac_cv_prog_ac_ct_path_strip="strip"
2557
echo "$as_me:2557: found $ac_dir/$ac_word" >&5
2561
test -z "$ac_cv_prog_ac_ct_path_strip" && ac_cv_prog_ac_ct_path_strip="missing_strip"
2564
ac_ct_path_strip=$ac_cv_prog_ac_ct_path_strip
2565
if test -n "$ac_ct_path_strip"; then
2566
echo "$as_me:2566: result: $ac_ct_path_strip" >&5
2567
echo "${ECHO_T}$ac_ct_path_strip" >&6
2569
echo "$as_me:2569: result: no" >&5
2570
echo "${ECHO_T}no" >&6
2573
path_strip=$ac_ct_path_strip
2575
path_strip="$ac_cv_prog_path_strip"
2578
# Extract the first word of "$path_strip", so it can be a program name with args.
2579
set dummy $path_strip; ac_word=$2
2580
echo "$as_me:2580: checking for $ac_word" >&5
2581
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582
if test "${ac_cv_path_db_cv_path_strip+set}" = set; then
2583
echo $ECHO_N "(cached) $ECHO_C" >&6
2585
case $db_cv_path_strip in
2587
ac_cv_path_db_cv_path_strip="$db_cv_path_strip" # Let the user override the test with a path.
2590
ac_save_IFS=$IFS; IFS=$ac_path_separator
2592
for ac_dir in $ac_dummy; do
2594
test -z "$ac_dir" && ac_dir=.
2595
if $as_executable_p "$ac_dir/$ac_word"; then
2596
ac_cv_path_db_cv_path_strip="$ac_dir/$ac_word"
2597
echo "$as_me:2597: found $ac_dir/$ac_word" >&5
2602
test -z "$ac_cv_path_db_cv_path_strip" && ac_cv_path_db_cv_path_strip="missing_strip"
2606
db_cv_path_strip=$ac_cv_path_db_cv_path_strip
2608
if test -n "$db_cv_path_strip"; then
2609
echo "$as_me:2609: result: $db_cv_path_strip" >&5
2610
echo "${ECHO_T}$db_cv_path_strip" >&6
2612
echo "$as_me:2612: result: no" >&5
2613
echo "${ECHO_T}no" >&6
2616
if test "$db_cv_path_strip" = missing_strip; then
2617
{ { echo "$as_me:2617: error: No strip utility found." >&5
2618
echo "$as_me: error: No strip utility found." >&2;}
2619
{ (exit 1); exit 1; }; }
2622
if test "$db_cv_test" = "yes"; then
2623
if test -n "$ac_tool_prefix"; then
2624
# Extract the first word of "${ac_tool_prefix}kill", so it can be a program name with args.
2625
set dummy ${ac_tool_prefix}kill; ac_word=$2
2626
echo "$as_me:2626: checking for $ac_word" >&5
2627
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628
if test "${ac_cv_prog_db_cv_path_kill+set}" = set; then
2629
echo $ECHO_N "(cached) $ECHO_C" >&6
2631
if test -n "$db_cv_path_kill"; then
2632
ac_cv_prog_db_cv_path_kill="$db_cv_path_kill" # Let the user override the test.
2634
ac_save_IFS=$IFS; IFS=$ac_path_separator
2636
for ac_dir in $ac_dummy; do
2638
test -z "$ac_dir" && ac_dir=.
2639
$as_executable_p "$ac_dir/$ac_word" || continue
2640
ac_cv_prog_db_cv_path_kill="${ac_tool_prefix}kill"
2641
echo "$as_me:2641: found $ac_dir/$ac_word" >&5
2647
db_cv_path_kill=$ac_cv_prog_db_cv_path_kill
2648
if test -n "$db_cv_path_kill"; then
2649
echo "$as_me:2649: result: $db_cv_path_kill" >&5
2650
echo "${ECHO_T}$db_cv_path_kill" >&6
2652
echo "$as_me:2652: result: no" >&5
2653
echo "${ECHO_T}no" >&6
2657
if test -z "$ac_cv_prog_db_cv_path_kill"; then
2658
ac_ct_db_cv_path_kill=$db_cv_path_kill
2659
# Extract the first word of "kill", so it can be a program name with args.
2660
set dummy kill; ac_word=$2
2661
echo "$as_me:2661: checking for $ac_word" >&5
2662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2663
if test "${ac_cv_prog_ac_ct_db_cv_path_kill+set}" = set; then
2664
echo $ECHO_N "(cached) $ECHO_C" >&6
2666
if test -n "$ac_ct_db_cv_path_kill"; then
2667
ac_cv_prog_ac_ct_db_cv_path_kill="$ac_ct_db_cv_path_kill" # Let the user override the test.
2669
ac_save_IFS=$IFS; IFS=$ac_path_separator
2671
for ac_dir in $ac_dummy; do
2673
test -z "$ac_dir" && ac_dir=.
2674
$as_executable_p "$ac_dir/$ac_word" || continue
2675
ac_cv_prog_ac_ct_db_cv_path_kill="kill"
2676
echo "$as_me:2676: found $ac_dir/$ac_word" >&5
2680
test -z "$ac_cv_prog_ac_ct_db_cv_path_kill" && ac_cv_prog_ac_ct_db_cv_path_kill="missing_kill"
2683
ac_ct_db_cv_path_kill=$ac_cv_prog_ac_ct_db_cv_path_kill
2684
if test -n "$ac_ct_db_cv_path_kill"; then
2685
echo "$as_me:2685: result: $ac_ct_db_cv_path_kill" >&5
2686
echo "${ECHO_T}$ac_ct_db_cv_path_kill" >&6
2688
echo "$as_me:2688: result: no" >&5
2689
echo "${ECHO_T}no" >&6
2692
db_cv_path_kill=$ac_ct_db_cv_path_kill
2694
db_cv_path_kill="$ac_cv_prog_db_cv_path_kill"
2697
if test "$db_cv_path_kill" = missing_kill; then
2698
{ { echo "$as_me:2698: error: No kill utility found." >&5
2699
echo "$as_me: error: No kill utility found." >&2;}
2700
{ (exit 1); exit 1; }; }
2704
# Find a good install program. We prefer a C program (faster),
2705
# so one script is as good as another. But avoid the broken or
2706
# incompatible versions:
2707
# SysV /etc/install, /usr/sbin/install
2708
# SunOS /usr/etc/install
2709
# IRIX /sbin/install
2711
# AmigaOS /C/install, which installs bootblocks on floppy discs
2712
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2713
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2714
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2715
# ./install, which can be erroneously created by make from ./install.sh.
2716
echo "$as_me:2716: checking for a BSD compatible install" >&5
2717
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2718
if test -z "$INSTALL"; then
2719
if test "${ac_cv_path_install+set}" = set; then
2720
echo $ECHO_N "(cached) $ECHO_C" >&6
2722
ac_save_IFS=$IFS; IFS=$ac_path_separator
2723
for ac_dir in $PATH; do
2725
# Account for people who put trailing slashes in PATH elements.
2727
/ | ./ | .// | /cC/* \
2728
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2731
# OSF1 and SCO ODT 3.0 have their own names for install.
2732
# Don't use installbsd from OSF since it installs stuff as root
2734
for ac_prog in ginstall scoinst install; do
2735
if $as_executable_p "$ac_dir/$ac_prog"; then
2736
if test $ac_prog = install &&
2737
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2738
# AIX install. It has an incompatible calling convention.
2740
elif test $ac_prog = install &&
2741
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2742
# program-specific install script used by HP pwplus--don't use.
2745
ac_cv_path_install="$ac_dir/$ac_prog -c"
2755
if test "${ac_cv_path_install+set}" = set; then
2756
INSTALL=$ac_cv_path_install
2758
# As a last resort, use the slow shell script. We don't cache a
2759
# path for INSTALL within a source directory, because that will
2760
# break other packages using the cache if that directory is
2761
# removed, or if the path is relative.
2762
INSTALL=$ac_install_sh
2765
echo "$as_me:2765: result: $INSTALL" >&5
2766
echo "${ECHO_T}$INSTALL" >&6
2768
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2769
# It thinks the first close brace ends the variable substitution.
2770
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2772
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2774
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2776
# RPM/Embedix support: change the standard make and install targets
2777
if test "$db_cv_rpm" = "yes"; then
2778
BUILD_TARGET="rpm_build"
2779
echo "topdir: $CONFIGURATION_PATH" > rpmrc
2780
if test "$db_cv_embedix" = "yes"; then
2782
INSTALL_TARGET="embedix_install"
2784
INSTALL_TARGET="rpm_install"
2787
BUILD_TARGET="library_build"
2788
INSTALL_TARGET="library_install"
2791
# This is where we handle stuff that autoconf can't handle: compiler,
2792
# preprocessor and load flags, libraries that the standard tests don't
2793
# look for. The default optimization is -O. We would like to set the
2794
# default optimization for systems using gcc to -O2, but we can't. By
2795
# the time we know we're using gcc, it's too late to set optimization
2798
# There are additional libraries we need for some compiler/architecture
2801
# Some architectures require DB to be compiled with special flags and/or
2802
# libraries for threaded applications
2804
# The makefile CC may be different than the CC used in config testing,
2805
# because the makefile CC may be set to use $(LIBTOOL).
2808
# Don't override anything if it's already set from the environment.
2811
aix4.*) optimize_def="-O2"
2813
CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
2814
LIBTSO_LIBS="\$(LIBS)";;
2815
bsdi3*) CC=${CC-"shlicc2"}
2817
LIBS="-lipc $LIBS";;
2818
bsdi*) optimize_def="-O2";;
2819
freebsd*) optimize_def="-O2"
2820
CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
2822
hpux*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
2823
irix*) optimize_def="-O2"
2824
CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
2825
linux*) optimize_def="-O2"
2826
CPPFLAGS="-D_GNU_SOURCE -D_REENTRANT $CPPFLAGS";;
2827
mpeix*) CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS"
2828
LIBS="-lsocket -lsvipc $LIBS";;
2829
osf*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
2830
*qnx) cat >>confdefs.h <<\EOF
2835
sco3.2v4*) CC=${CC-"cc -belf"}
2836
LIBS="-lsocket -lnsl_s $LIBS";;
2837
sco*) CC=${CC-"cc -belf"}
2838
LIBS="-lsocket -lnsl $LIBS";;
2839
solaris*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
2842
# Set CFLAGS/CXXFLAGS. We MUST set the flags before we call autoconf
2843
# compiler configuration macros, because if we don't, they set CFLAGS
2844
# to no optimization and -g, which isn't what we want.
2845
CFLAGS=${CFLAGS-$optimize_def}
2846
CXXFLAGS=${CXXFLAGS-"$CFLAGS"}
2848
# If the user wants a debugging environment, add -g to the CFLAGS value.
2851
# Some compilers can't mix optimizing and debug flags. The only way to
2852
# handle this is to specify CFLAGS in the environment before configuring.
2853
if test "$db_cv_debug" = yes; then
2854
cat >>confdefs.h <<\EOF
2859
CXXFLAGS="$CXXFLAGS -g"
2862
# The default compiler is cc (NOT gcc), the default CFLAGS is as specified
2863
# above, NOT what is set by AC_PROG_CC, as it won't set optimization flags.
2864
# We still call AC_PROG_CC so that we get the other side-effects.
2865
if test -n "$ac_tool_prefix"; then
2866
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2867
set dummy ${ac_tool_prefix}cc; ac_word=$2
2868
echo "$as_me:2868: checking for $ac_word" >&5
2869
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870
if test "${ac_cv_prog_CC+set}" = set; then
2871
echo $ECHO_N "(cached) $ECHO_C" >&6
2873
if test -n "$CC"; then
2874
ac_cv_prog_CC="$CC" # Let the user override the test.
2876
ac_save_IFS=$IFS; IFS=$ac_path_separator
2878
for ac_dir in $ac_dummy; do
2880
test -z "$ac_dir" && ac_dir=.
2881
$as_executable_p "$ac_dir/$ac_word" || continue
2882
ac_cv_prog_CC="${ac_tool_prefix}cc"
2883
echo "$as_me:2883: found $ac_dir/$ac_word" >&5
2890
if test -n "$CC"; then
2891
echo "$as_me:2891: result: $CC" >&5
2892
echo "${ECHO_T}$CC" >&6
2894
echo "$as_me:2894: result: no" >&5
2895
echo "${ECHO_T}no" >&6
2899
if test -z "$ac_cv_prog_CC"; then
2901
# Extract the first word of "cc", so it can be a program name with args.
2902
set dummy cc; ac_word=$2
2903
echo "$as_me:2903: checking for $ac_word" >&5
2904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2906
echo $ECHO_N "(cached) $ECHO_C" >&6
2908
if test -n "$ac_ct_CC"; then
2909
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2911
ac_save_IFS=$IFS; IFS=$ac_path_separator
2913
for ac_dir in $ac_dummy; do
2915
test -z "$ac_dir" && ac_dir=.
2916
$as_executable_p "$ac_dir/$ac_word" || continue
2917
ac_cv_prog_ac_ct_CC="cc"
2918
echo "$as_me:2918: found $ac_dir/$ac_word" >&5
2924
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925
if test -n "$ac_ct_CC"; then
2926
echo "$as_me:2926: result: $ac_ct_CC" >&5
2927
echo "${ECHO_T}$ac_ct_CC" >&6
2929
echo "$as_me:2929: result: no" >&5
2930
echo "${ECHO_T}no" >&6
2938
if test -n "$ac_tool_prefix"; then
2939
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941
echo "$as_me:2941: checking for $ac_word" >&5
2942
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943
if test "${ac_cv_prog_CC+set}" = set; then
2944
echo $ECHO_N "(cached) $ECHO_C" >&6
2946
if test -n "$CC"; then
2947
ac_cv_prog_CC="$CC" # Let the user override the test.
2949
ac_save_IFS=$IFS; IFS=$ac_path_separator
2951
for ac_dir in $ac_dummy; do
2953
test -z "$ac_dir" && ac_dir=.
2954
$as_executable_p "$ac_dir/$ac_word" || continue
2955
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2956
echo "$as_me:2956: found $ac_dir/$ac_word" >&5
2963
if test -n "$CC"; then
2964
echo "$as_me:2964: result: $CC" >&5
2965
echo "${ECHO_T}$CC" >&6
2967
echo "$as_me:2967: result: no" >&5
2968
echo "${ECHO_T}no" >&6
2972
if test -z "$ac_cv_prog_CC"; then
2974
# Extract the first word of "gcc", so it can be a program name with args.
2975
set dummy gcc; ac_word=$2
2976
echo "$as_me:2976: checking for $ac_word" >&5
2977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2979
echo $ECHO_N "(cached) $ECHO_C" >&6
2981
if test -n "$ac_ct_CC"; then
2982
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984
ac_save_IFS=$IFS; IFS=$ac_path_separator
2986
for ac_dir in $ac_dummy; do
2988
test -z "$ac_dir" && ac_dir=.
2989
$as_executable_p "$ac_dir/$ac_word" || continue
2990
ac_cv_prog_ac_ct_CC="gcc"
2991
echo "$as_me:2991: found $ac_dir/$ac_word" >&5
2997
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2998
if test -n "$ac_ct_CC"; then
2999
echo "$as_me:2999: result: $ac_ct_CC" >&5
3000
echo "${ECHO_T}$ac_ct_CC" >&6
3002
echo "$as_me:3002: result: no" >&5
3003
echo "${ECHO_T}no" >&6
3012
ac_cpp='$CPP $CPPFLAGS'
3013
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016
if test -n "$ac_tool_prefix"; then
3017
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3018
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3019
echo "$as_me:3019: checking for $ac_word" >&5
3020
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021
if test "${ac_cv_prog_CC+set}" = set; then
3022
echo $ECHO_N "(cached) $ECHO_C" >&6
3024
if test -n "$CC"; then
3025
ac_cv_prog_CC="$CC" # Let the user override the test.
3027
ac_save_IFS=$IFS; IFS=$ac_path_separator
3029
for ac_dir in $ac_dummy; do
3031
test -z "$ac_dir" && ac_dir=.
3032
$as_executable_p "$ac_dir/$ac_word" || continue
3033
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3034
echo "$as_me:3034: found $ac_dir/$ac_word" >&5
3041
if test -n "$CC"; then
3042
echo "$as_me:3042: result: $CC" >&5
3043
echo "${ECHO_T}$CC" >&6
3045
echo "$as_me:3045: result: no" >&5
3046
echo "${ECHO_T}no" >&6
3050
if test -z "$ac_cv_prog_CC"; then
3052
# Extract the first word of "gcc", so it can be a program name with args.
3053
set dummy gcc; ac_word=$2
3054
echo "$as_me:3054: checking for $ac_word" >&5
3055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3057
echo $ECHO_N "(cached) $ECHO_C" >&6
3059
if test -n "$ac_ct_CC"; then
3060
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062
ac_save_IFS=$IFS; IFS=$ac_path_separator
3064
for ac_dir in $ac_dummy; do
3066
test -z "$ac_dir" && ac_dir=.
3067
$as_executable_p "$ac_dir/$ac_word" || continue
3068
ac_cv_prog_ac_ct_CC="gcc"
3069
echo "$as_me:3069: found $ac_dir/$ac_word" >&5
3075
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3076
if test -n "$ac_ct_CC"; then
3077
echo "$as_me:3077: result: $ac_ct_CC" >&5
3078
echo "${ECHO_T}$ac_ct_CC" >&6
3080
echo "$as_me:3080: result: no" >&5
3081
echo "${ECHO_T}no" >&6
3089
if test -z "$CC"; then
3090
if test -n "$ac_tool_prefix"; then
3091
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3092
set dummy ${ac_tool_prefix}cc; ac_word=$2
3093
echo "$as_me:3093: checking for $ac_word" >&5
3094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3095
if test "${ac_cv_prog_CC+set}" = set; then
3096
echo $ECHO_N "(cached) $ECHO_C" >&6
3098
if test -n "$CC"; then
3099
ac_cv_prog_CC="$CC" # Let the user override the test.
3101
ac_save_IFS=$IFS; IFS=$ac_path_separator
3103
for ac_dir in $ac_dummy; do
3105
test -z "$ac_dir" && ac_dir=.
3106
$as_executable_p "$ac_dir/$ac_word" || continue
3107
ac_cv_prog_CC="${ac_tool_prefix}cc"
3108
echo "$as_me:3108: found $ac_dir/$ac_word" >&5
3115
if test -n "$CC"; then
3116
echo "$as_me:3116: result: $CC" >&5
3117
echo "${ECHO_T}$CC" >&6
3119
echo "$as_me:3119: result: no" >&5
3120
echo "${ECHO_T}no" >&6
3124
if test -z "$ac_cv_prog_CC"; then
3126
# Extract the first word of "cc", so it can be a program name with args.
3127
set dummy cc; ac_word=$2
3128
echo "$as_me:3128: checking for $ac_word" >&5
3129
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3130
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3131
echo $ECHO_N "(cached) $ECHO_C" >&6
3133
if test -n "$ac_ct_CC"; then
3134
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136
ac_save_IFS=$IFS; IFS=$ac_path_separator
3138
for ac_dir in $ac_dummy; do
3140
test -z "$ac_dir" && ac_dir=.
3141
$as_executable_p "$ac_dir/$ac_word" || continue
3142
ac_cv_prog_ac_ct_CC="cc"
3143
echo "$as_me:3143: found $ac_dir/$ac_word" >&5
3149
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150
if test -n "$ac_ct_CC"; then
3151
echo "$as_me:3151: result: $ac_ct_CC" >&5
3152
echo "${ECHO_T}$ac_ct_CC" >&6
3154
echo "$as_me:3154: result: no" >&5
3155
echo "${ECHO_T}no" >&6
3164
if test -z "$CC"; then
3165
# Extract the first word of "cc", so it can be a program name with args.
3166
set dummy cc; ac_word=$2
3167
echo "$as_me:3167: checking for $ac_word" >&5
3168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169
if test "${ac_cv_prog_CC+set}" = set; then
3170
echo $ECHO_N "(cached) $ECHO_C" >&6
3172
if test -n "$CC"; then
3173
ac_cv_prog_CC="$CC" # Let the user override the test.
3176
ac_save_IFS=$IFS; IFS=$ac_path_separator
3178
for ac_dir in $ac_dummy; do
3180
test -z "$ac_dir" && ac_dir=.
3181
$as_executable_p "$ac_dir/$ac_word" || continue
3182
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3183
ac_prog_rejected=yes
3187
echo "$as_me:3187: found $ac_dir/$ac_word" >&5
3191
if test $ac_prog_rejected = yes; then
3192
# We found a bogon in the path, so make sure we never use it.
3193
set dummy $ac_cv_prog_CC
3195
if test $# != 0; then
3196
# We chose a different compiler from the bogus one.
3197
# However, it has the same basename, so the bogon will be chosen
3198
# first if we set CC to just the basename; use the full file name.
3200
set dummy "$ac_dir/$ac_word" ${1+"$@"}
3208
if test -n "$CC"; then
3209
echo "$as_me:3209: result: $CC" >&5
3210
echo "${ECHO_T}$CC" >&6
3212
echo "$as_me:3212: result: no" >&5
3213
echo "${ECHO_T}no" >&6
3217
if test -z "$CC"; then
3218
if test -n "$ac_tool_prefix"; then
3221
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3223
echo "$as_me:3223: checking for $ac_word" >&5
3224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3225
if test "${ac_cv_prog_CC+set}" = set; then
3226
echo $ECHO_N "(cached) $ECHO_C" >&6
3228
if test -n "$CC"; then
3229
ac_cv_prog_CC="$CC" # Let the user override the test.
3231
ac_save_IFS=$IFS; IFS=$ac_path_separator
3233
for ac_dir in $ac_dummy; do
3235
test -z "$ac_dir" && ac_dir=.
3236
$as_executable_p "$ac_dir/$ac_word" || continue
3237
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3238
echo "$as_me:3238: found $ac_dir/$ac_word" >&5
3245
if test -n "$CC"; then
3246
echo "$as_me:3246: result: $CC" >&5
3247
echo "${ECHO_T}$CC" >&6
3249
echo "$as_me:3249: result: no" >&5
3250
echo "${ECHO_T}no" >&6
3253
test -n "$CC" && break
3256
if test -z "$CC"; then
3260
# Extract the first word of "$ac_prog", so it can be a program name with args.
3261
set dummy $ac_prog; ac_word=$2
3262
echo "$as_me:3262: checking for $ac_word" >&5
3263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3265
echo $ECHO_N "(cached) $ECHO_C" >&6
3267
if test -n "$ac_ct_CC"; then
3268
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3270
ac_save_IFS=$IFS; IFS=$ac_path_separator
3272
for ac_dir in $ac_dummy; do
3274
test -z "$ac_dir" && ac_dir=.
3275
$as_executable_p "$ac_dir/$ac_word" || continue
3276
ac_cv_prog_ac_ct_CC="$ac_prog"
3277
echo "$as_me:3277: found $ac_dir/$ac_word" >&5
3283
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284
if test -n "$ac_ct_CC"; then
3285
echo "$as_me:3285: result: $ac_ct_CC" >&5
3286
echo "${ECHO_T}$ac_ct_CC" >&6
3288
echo "$as_me:3288: result: no" >&5
3289
echo "${ECHO_T}no" >&6
3292
test -n "$ac_ct_CC" && break
3300
test -z "$CC" && { { echo "$as_me:3300: error: no acceptable cc found in \$PATH" >&5
3301
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3302
{ (exit 1); exit 1; }; }
3304
cat >conftest.$ac_ext <<_ACEOF
3305
#line 3305 "configure"
3306
#include "confdefs.h"
3316
ac_clean_files_save=$ac_clean_files
3317
ac_clean_files="$ac_clean_files a.out a.exe"
3318
# Try to create an executable without -o first, disregard a.out.
3319
# It will help us diagnose broken compiler, and finding out an intuition
3321
echo "$as_me:3321: checking for C compiler default output" >&5
3322
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3323
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324
if { (eval echo "$as_me:3324: \"$ac_link_default\"") >&5
3325
(eval $ac_link_default) 2>&5
3327
echo "$as_me:3327: \$? = $ac_status" >&5
3328
(exit $ac_status); }; then
3329
for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
3331
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3332
a.out ) # We found the default executable, but exeext='' is most
3335
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342
echo "$as_me: failed program was:" >&5
3343
cat conftest.$ac_ext >&5
3344
{ { echo "$as_me:3344: error: C compiler cannot create executables" >&5
3345
echo "$as_me: error: C compiler cannot create executables" >&2;}
3346
{ (exit 77); exit 77; }; }
3349
ac_exeext=$ac_cv_exeext
3350
echo "$as_me:3350: result: $ac_file" >&5
3351
echo "${ECHO_T}$ac_file" >&6
3353
# Check the compiler produces executables we can run. If not, either
3354
# the compiler is broken, or we cross compile.
3355
echo "$as_me:3355: checking whether the C compiler works" >&5
3356
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3357
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3358
# If not cross compiling, check that we can run a simple program.
3359
if test "$cross_compiling" != yes; then
3360
if { ac_try='./$ac_file'
3361
{ (eval echo "$as_me:3361: \"$ac_try\"") >&5
3364
echo "$as_me:3364: \$? = $ac_status" >&5
3365
(exit $ac_status); }; }; then
3368
if test "$cross_compiling" = maybe; then
3371
{ { echo "$as_me:3371: error: cannot run C compiled programs.
3372
If you meant to cross compile, use \`--host'." >&5
3373
echo "$as_me: error: cannot run C compiled programs.
3374
If you meant to cross compile, use \`--host'." >&2;}
3375
{ (exit 1); exit 1; }; }
3379
echo "$as_me:3379: result: yes" >&5
3380
echo "${ECHO_T}yes" >&6
3382
rm -f a.out a.exe conftest$ac_cv_exeext
3383
ac_clean_files=$ac_clean_files_save
3384
# Check the compiler produces executables we can run. If not, either
3385
# the compiler is broken, or we cross compile.
3386
echo "$as_me:3386: checking whether we are cross compiling" >&5
3387
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3388
echo "$as_me:3388: result: $cross_compiling" >&5
3389
echo "${ECHO_T}$cross_compiling" >&6
3391
echo "$as_me:3391: checking for executable suffix" >&5
3392
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
3393
if { (eval echo "$as_me:3393: \"$ac_link\"") >&5
3394
(eval $ac_link) 2>&5
3396
echo "$as_me:3396: \$? = $ac_status" >&5
3397
(exit $ac_status); }; then
3398
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3399
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3400
# work properly (i.e., refer to `conftest.exe'), while it won't with
3402
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
3404
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3405
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412
{ { echo "$as_me:3412: error: cannot compute EXEEXT: cannot compile and link" >&5
3413
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
3414
{ (exit 1); exit 1; }; }
3417
rm -f conftest$ac_cv_exeext
3418
echo "$as_me:3418: result: $ac_cv_exeext" >&5
3419
echo "${ECHO_T}$ac_cv_exeext" >&6
3421
rm -f conftest.$ac_ext
3422
EXEEXT=$ac_cv_exeext
3424
echo "$as_me:3424: checking for object suffix" >&5
3425
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
3426
if test "${ac_cv_objext+set}" = set; then
3427
echo $ECHO_N "(cached) $ECHO_C" >&6
3429
cat >conftest.$ac_ext <<_ACEOF
3430
#line 3430 "configure"
3431
#include "confdefs.h"
3441
rm -f conftest.o conftest.obj
3442
if { (eval echo "$as_me:3442: \"$ac_compile\"") >&5
3443
(eval $ac_compile) 2>&5
3445
echo "$as_me:3445: \$? = $ac_status" >&5
3446
(exit $ac_status); }; then
3447
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3449
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3450
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455
echo "$as_me: failed program was:" >&5
3456
cat conftest.$ac_ext >&5
3457
{ { echo "$as_me:3457: error: cannot compute OBJEXT: cannot compile" >&5
3458
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
3459
{ (exit 1); exit 1; }; }
3462
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3464
echo "$as_me:3464: result: $ac_cv_objext" >&5
3465
echo "${ECHO_T}$ac_cv_objext" >&6
3466
OBJEXT=$ac_cv_objext
3468
echo "$as_me:3468: checking whether we are using the GNU C compiler" >&5
3469
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3470
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3471
echo $ECHO_N "(cached) $ECHO_C" >&6
3473
cat >conftest.$ac_ext <<_ACEOF
3474
#line 3474 "configure"
3475
#include "confdefs.h"
3488
rm -f conftest.$ac_objext
3489
if { (eval echo "$as_me:3489: \"$ac_compile\"") >&5
3490
(eval $ac_compile) 2>&5
3492
echo "$as_me:3492: \$? = $ac_status" >&5
3493
(exit $ac_status); } &&
3494
{ ac_try='test -s conftest.$ac_objext'
3495
{ (eval echo "$as_me:3495: \"$ac_try\"") >&5
3498
echo "$as_me:3498: \$? = $ac_status" >&5
3499
(exit $ac_status); }; }; then
3502
echo "$as_me: failed program was:" >&5
3503
cat conftest.$ac_ext >&5
3506
rm -f conftest.$ac_objext conftest.$ac_ext
3507
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510
echo "$as_me:3510: result: $ac_cv_c_compiler_gnu" >&5
3511
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3512
GCC=`test $ac_compiler_gnu = yes && echo yes`
3513
ac_test_CFLAGS=${CFLAGS+set}
3514
ac_save_CFLAGS=$CFLAGS
3516
echo "$as_me:3516: checking whether $CC accepts -g" >&5
3517
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3518
if test "${ac_cv_prog_cc_g+set}" = set; then
3519
echo $ECHO_N "(cached) $ECHO_C" >&6
3521
cat >conftest.$ac_ext <<_ACEOF
3522
#line 3522 "configure"
3523
#include "confdefs.h"
3533
rm -f conftest.$ac_objext
3534
if { (eval echo "$as_me:3534: \"$ac_compile\"") >&5
3535
(eval $ac_compile) 2>&5
3537
echo "$as_me:3537: \$? = $ac_status" >&5
3538
(exit $ac_status); } &&
3539
{ ac_try='test -s conftest.$ac_objext'
3540
{ (eval echo "$as_me:3540: \"$ac_try\"") >&5
3543
echo "$as_me:3543: \$? = $ac_status" >&5
3544
(exit $ac_status); }; }; then
3547
echo "$as_me: failed program was:" >&5
3548
cat conftest.$ac_ext >&5
3551
rm -f conftest.$ac_objext conftest.$ac_ext
3553
echo "$as_me:3553: result: $ac_cv_prog_cc_g" >&5
3554
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3555
if test "$ac_test_CFLAGS" = set; then
3556
CFLAGS=$ac_save_CFLAGS
3557
elif test $ac_cv_prog_cc_g = yes; then
3558
if test "$GCC" = yes; then
3564
if test "$GCC" = yes; then
3570
# Some people use a C++ compiler to compile C. Since we use `exit',
3571
# in C++ we need to declare it. In case someone uses the same compiler
3572
# for both compiling C and C++ we need to have the C++ compiler decide
3573
# the declaration of exit, since it's the most demanding environment.
3574
cat >conftest.$ac_ext <<_ACEOF
3579
rm -f conftest.$ac_objext
3580
if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5
3581
(eval $ac_compile) 2>&5
3583
echo "$as_me:3583: \$? = $ac_status" >&5
3584
(exit $ac_status); } &&
3585
{ ac_try='test -s conftest.$ac_objext'
3586
{ (eval echo "$as_me:3586: \"$ac_try\"") >&5
3589
echo "$as_me:3589: \$? = $ac_status" >&5
3590
(exit $ac_status); }; }; then
3591
for ac_declaration in \
3593
'#include <stdlib.h>' \
3594
'extern "C" void std::exit (int) throw (); using std::exit;' \
3595
'extern "C" void std::exit (int); using std::exit;' \
3596
'extern "C" void exit (int) throw ();' \
3597
'extern "C" void exit (int);' \
3600
cat >conftest.$ac_ext <<_ACEOF
3601
#line 3601 "configure"
3602
#include "confdefs.h"
3613
rm -f conftest.$ac_objext
3614
if { (eval echo "$as_me:3614: \"$ac_compile\"") >&5
3615
(eval $ac_compile) 2>&5
3617
echo "$as_me:3617: \$? = $ac_status" >&5
3618
(exit $ac_status); } &&
3619
{ ac_try='test -s conftest.$ac_objext'
3620
{ (eval echo "$as_me:3620: \"$ac_try\"") >&5
3623
echo "$as_me:3623: \$? = $ac_status" >&5
3624
(exit $ac_status); }; }; then
3627
echo "$as_me: failed program was:" >&5
3628
cat conftest.$ac_ext >&5
3631
rm -f conftest.$ac_objext conftest.$ac_ext
3632
cat >conftest.$ac_ext <<_ACEOF
3633
#line 3633 "configure"
3634
#include "confdefs.h"
3644
rm -f conftest.$ac_objext
3645
if { (eval echo "$as_me:3645: \"$ac_compile\"") >&5
3646
(eval $ac_compile) 2>&5
3648
echo "$as_me:3648: \$? = $ac_status" >&5
3649
(exit $ac_status); } &&
3650
{ ac_try='test -s conftest.$ac_objext'
3651
{ (eval echo "$as_me:3651: \"$ac_try\"") >&5
3654
echo "$as_me:3654: \$? = $ac_status" >&5
3655
(exit $ac_status); }; }; then
3658
echo "$as_me: failed program was:" >&5
3659
cat conftest.$ac_ext >&5
3661
rm -f conftest.$ac_objext conftest.$ac_ext
3663
echo '#ifdef __cplusplus' >>confdefs.h
3664
echo $ac_declaration >>confdefs.h
3665
echo '#endif' >>confdefs.h
3668
echo "$as_me: failed program was:" >&5
3669
cat conftest.$ac_ext >&5
3671
rm -f conftest.$ac_objext conftest.$ac_ext
3673
ac_cpp='$CPP $CPPFLAGS'
3674
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678
# Because of shared library building, the ${CC} used for config tests
3679
# may be different than the ${CC} we want to put in the Makefile.
3680
# The latter is known as ${MAKEFILE_CC} in this script.
3682
MAKEFILE_CCLINK="\$(CC)"
3683
MAKEFILE_CXX="nocxx"
3684
MAKEFILE_CXXLINK="nocxx"
3686
# See if we need the C++ compiler at all. If so, we'd like to find one that
3687
# interoperates with the C compiler we chose. Since we prefered cc over gcc,
3688
# we'll also prefer the vendor's compiler over g++/gcc. If we're wrong, the
3689
# user can set CC and CXX in their environment before running configure.
3691
# AC_PROG_CXX sets CXX, but it uses $CXX and $CCC (in that order) as its
3693
if test "$db_cv_cxx" = "yes"; then
3694
if test "$GCC" != "yes"; then
3696
aix*) if test -n "$ac_tool_prefix"; then
3697
# Extract the first word of "${ac_tool_prefix}xlC_r", so it can be a program name with args.
3698
set dummy ${ac_tool_prefix}xlC_r; ac_word=$2
3699
echo "$as_me:3699: checking for $ac_word" >&5
3700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701
if test "${ac_cv_prog_CCC+set}" = set; then
3702
echo $ECHO_N "(cached) $ECHO_C" >&6
3704
if test -n "$CCC"; then
3705
ac_cv_prog_CCC="$CCC" # Let the user override the test.
3707
ac_save_IFS=$IFS; IFS=$ac_path_separator
3709
for ac_dir in $ac_dummy; do
3711
test -z "$ac_dir" && ac_dir=.
3712
$as_executable_p "$ac_dir/$ac_word" || continue
3713
ac_cv_prog_CCC="${ac_tool_prefix}xlC_r"
3714
echo "$as_me:3714: found $ac_dir/$ac_word" >&5
3721
if test -n "$CCC"; then
3722
echo "$as_me:3722: result: $CCC" >&5
3723
echo "${ECHO_T}$CCC" >&6
3725
echo "$as_me:3725: result: no" >&5
3726
echo "${ECHO_T}no" >&6
3730
if test -z "$ac_cv_prog_CCC"; then
3732
# Extract the first word of "xlC_r", so it can be a program name with args.
3733
set dummy xlC_r; ac_word=$2
3734
echo "$as_me:3734: checking for $ac_word" >&5
3735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
3737
echo $ECHO_N "(cached) $ECHO_C" >&6
3739
if test -n "$ac_ct_CCC"; then
3740
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
3742
ac_save_IFS=$IFS; IFS=$ac_path_separator
3744
for ac_dir in $ac_dummy; do
3746
test -z "$ac_dir" && ac_dir=.
3747
$as_executable_p "$ac_dir/$ac_word" || continue
3748
ac_cv_prog_ac_ct_CCC="xlC_r"
3749
echo "$as_me:3749: found $ac_dir/$ac_word" >&5
3755
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
3756
if test -n "$ac_ct_CCC"; then
3757
echo "$as_me:3757: result: $ac_ct_CCC" >&5
3758
echo "${ECHO_T}$ac_ct_CCC" >&6
3760
echo "$as_me:3760: result: no" >&5
3761
echo "${ECHO_T}no" >&6
3766
CCC="$ac_cv_prog_CCC"
3769
hpux*) if test -n "$ac_tool_prefix"; then
3770
# Extract the first word of "${ac_tool_prefix}aCC", so it can be a program name with args.
3771
set dummy ${ac_tool_prefix}aCC; ac_word=$2
3772
echo "$as_me:3772: checking for $ac_word" >&5
3773
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774
if test "${ac_cv_prog_CCC+set}" = set; then
3775
echo $ECHO_N "(cached) $ECHO_C" >&6
3777
if test -n "$CCC"; then
3778
ac_cv_prog_CCC="$CCC" # Let the user override the test.
3780
ac_save_IFS=$IFS; IFS=$ac_path_separator
3782
for ac_dir in $ac_dummy; do
3784
test -z "$ac_dir" && ac_dir=.
3785
$as_executable_p "$ac_dir/$ac_word" || continue
3786
ac_cv_prog_CCC="${ac_tool_prefix}aCC"
3787
echo "$as_me:3787: found $ac_dir/$ac_word" >&5
3794
if test -n "$CCC"; then
3795
echo "$as_me:3795: result: $CCC" >&5
3796
echo "${ECHO_T}$CCC" >&6
3798
echo "$as_me:3798: result: no" >&5
3799
echo "${ECHO_T}no" >&6
3803
if test -z "$ac_cv_prog_CCC"; then
3805
# Extract the first word of "aCC", so it can be a program name with args.
3806
set dummy aCC; ac_word=$2
3807
echo "$as_me:3807: checking for $ac_word" >&5
3808
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
3810
echo $ECHO_N "(cached) $ECHO_C" >&6
3812
if test -n "$ac_ct_CCC"; then
3813
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
3815
ac_save_IFS=$IFS; IFS=$ac_path_separator
3817
for ac_dir in $ac_dummy; do
3819
test -z "$ac_dir" && ac_dir=.
3820
$as_executable_p "$ac_dir/$ac_word" || continue
3821
ac_cv_prog_ac_ct_CCC="aCC"
3822
echo "$as_me:3822: found $ac_dir/$ac_word" >&5
3828
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
3829
if test -n "$ac_ct_CCC"; then
3830
echo "$as_me:3830: result: $ac_ct_CCC" >&5
3831
echo "${ECHO_T}$ac_ct_CCC" >&6
3833
echo "$as_me:3833: result: no" >&5
3834
echo "${ECHO_T}no" >&6
3839
CCC="$ac_cv_prog_CCC"
3842
osf*) if test -n "$ac_tool_prefix"; then
3843
# Extract the first word of "${ac_tool_prefix}cxx", so it can be a program name with args.
3844
set dummy ${ac_tool_prefix}cxx; ac_word=$2
3845
echo "$as_me:3845: checking for $ac_word" >&5
3846
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847
if test "${ac_cv_prog_CCC+set}" = set; then
3848
echo $ECHO_N "(cached) $ECHO_C" >&6
3850
if test -n "$CCC"; then
3851
ac_cv_prog_CCC="$CCC" # Let the user override the test.
3853
ac_save_IFS=$IFS; IFS=$ac_path_separator
3855
for ac_dir in $ac_dummy; do
3857
test -z "$ac_dir" && ac_dir=.
3858
$as_executable_p "$ac_dir/$ac_word" || continue
3859
ac_cv_prog_CCC="${ac_tool_prefix}cxx"
3860
echo "$as_me:3860: found $ac_dir/$ac_word" >&5
3867
if test -n "$CCC"; then
3868
echo "$as_me:3868: result: $CCC" >&5
3869
echo "${ECHO_T}$CCC" >&6
3871
echo "$as_me:3871: result: no" >&5
3872
echo "${ECHO_T}no" >&6
3876
if test -z "$ac_cv_prog_CCC"; then
3878
# Extract the first word of "cxx", so it can be a program name with args.
3879
set dummy cxx; ac_word=$2
3880
echo "$as_me:3880: checking for $ac_word" >&5
3881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
3883
echo $ECHO_N "(cached) $ECHO_C" >&6
3885
if test -n "$ac_ct_CCC"; then
3886
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
3888
ac_save_IFS=$IFS; IFS=$ac_path_separator
3890
for ac_dir in $ac_dummy; do
3892
test -z "$ac_dir" && ac_dir=.
3893
$as_executable_p "$ac_dir/$ac_word" || continue
3894
ac_cv_prog_ac_ct_CCC="cxx"
3895
echo "$as_me:3895: found $ac_dir/$ac_word" >&5
3901
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
3902
if test -n "$ac_ct_CCC"; then
3903
echo "$as_me:3903: result: $ac_ct_CCC" >&5
3904
echo "${ECHO_T}$ac_ct_CCC" >&6
3906
echo "$as_me:3906: result: no" >&5
3907
echo "${ECHO_T}no" >&6
3912
CCC="$ac_cv_prog_CCC"
3915
solaris*) if test -n "$ac_tool_prefix"; then
3916
# Extract the first word of "${ac_tool_prefix}CC", so it can be a program name with args.
3917
set dummy ${ac_tool_prefix}CC; ac_word=$2
3918
echo "$as_me:3918: checking for $ac_word" >&5
3919
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920
if test "${ac_cv_prog_CCC+set}" = set; then
3921
echo $ECHO_N "(cached) $ECHO_C" >&6
3923
if test -n "$CCC"; then
3924
ac_cv_prog_CCC="$CCC" # Let the user override the test.
3926
ac_save_IFS=$IFS; IFS=$ac_path_separator
3928
for ac_dir in $ac_dummy; do
3930
test -z "$ac_dir" && ac_dir=.
3931
$as_executable_p "$ac_dir/$ac_word" || continue
3932
ac_cv_prog_CCC="${ac_tool_prefix}CC"
3933
echo "$as_me:3933: found $ac_dir/$ac_word" >&5
3940
if test -n "$CCC"; then
3941
echo "$as_me:3941: result: $CCC" >&5
3942
echo "${ECHO_T}$CCC" >&6
3944
echo "$as_me:3944: result: no" >&5
3945
echo "${ECHO_T}no" >&6
3949
if test -z "$ac_cv_prog_CCC"; then
3951
# Extract the first word of "CC", so it can be a program name with args.
3952
set dummy CC; ac_word=$2
3953
echo "$as_me:3953: checking for $ac_word" >&5
3954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955
if test "${ac_cv_prog_ac_ct_CCC+set}" = set; then
3956
echo $ECHO_N "(cached) $ECHO_C" >&6
3958
if test -n "$ac_ct_CCC"; then
3959
ac_cv_prog_ac_ct_CCC="$ac_ct_CCC" # Let the user override the test.
3961
ac_save_IFS=$IFS; IFS=$ac_path_separator
3963
for ac_dir in $ac_dummy; do
3965
test -z "$ac_dir" && ac_dir=.
3966
$as_executable_p "$ac_dir/$ac_word" || continue
3967
ac_cv_prog_ac_ct_CCC="CC"
3968
echo "$as_me:3968: found $ac_dir/$ac_word" >&5
3974
ac_ct_CCC=$ac_cv_prog_ac_ct_CCC
3975
if test -n "$ac_ct_CCC"; then
3976
echo "$as_me:3976: result: $ac_ct_CCC" >&5
3977
echo "${ECHO_T}$ac_ct_CCC" >&6
3979
echo "$as_me:3979: result: no" >&5
3980
echo "${ECHO_T}no" >&6
3985
CCC="$ac_cv_prog_CCC"
3991
ac_cpp='$CXXCPP $CPPFLAGS'
3992
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3995
if test -n "$ac_tool_prefix"; then
3996
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
3998
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3999
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4000
echo "$as_me:4000: checking for $ac_word" >&5
4001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4002
if test "${ac_cv_prog_CXX+set}" = set; then
4003
echo $ECHO_N "(cached) $ECHO_C" >&6
4005
if test -n "$CXX"; then
4006
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4008
ac_save_IFS=$IFS; IFS=$ac_path_separator
4010
for ac_dir in $ac_dummy; do
4012
test -z "$ac_dir" && ac_dir=.
4013
$as_executable_p "$ac_dir/$ac_word" || continue
4014
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4015
echo "$as_me:4015: found $ac_dir/$ac_word" >&5
4022
if test -n "$CXX"; then
4023
echo "$as_me:4023: result: $CXX" >&5
4024
echo "${ECHO_T}$CXX" >&6
4026
echo "$as_me:4026: result: no" >&5
4027
echo "${ECHO_T}no" >&6
4030
test -n "$CXX" && break
4033
if test -z "$CXX"; then
4035
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
4037
# Extract the first word of "$ac_prog", so it can be a program name with args.
4038
set dummy $ac_prog; ac_word=$2
4039
echo "$as_me:4039: checking for $ac_word" >&5
4040
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4042
echo $ECHO_N "(cached) $ECHO_C" >&6
4044
if test -n "$ac_ct_CXX"; then
4045
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4047
ac_save_IFS=$IFS; IFS=$ac_path_separator
4049
for ac_dir in $ac_dummy; do
4051
test -z "$ac_dir" && ac_dir=.
4052
$as_executable_p "$ac_dir/$ac_word" || continue
4053
ac_cv_prog_ac_ct_CXX="$ac_prog"
4054
echo "$as_me:4054: found $ac_dir/$ac_word" >&5
4060
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4061
if test -n "$ac_ct_CXX"; then
4062
echo "$as_me:4062: result: $ac_ct_CXX" >&5
4063
echo "${ECHO_T}$ac_ct_CXX" >&6
4065
echo "$as_me:4065: result: no" >&5
4066
echo "${ECHO_T}no" >&6
4069
test -n "$ac_ct_CXX" && break
4071
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4076
echo "$as_me:4076: checking whether we are using the GNU C++ compiler" >&5
4077
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4078
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4079
echo $ECHO_N "(cached) $ECHO_C" >&6
4081
cat >conftest.$ac_ext <<_ACEOF
4082
#line 4082 "configure"
4083
#include "confdefs.h"
4096
rm -f conftest.$ac_objext
4097
if { (eval echo "$as_me:4097: \"$ac_compile\"") >&5
4098
(eval $ac_compile) 2>&5
4100
echo "$as_me:4100: \$? = $ac_status" >&5
4101
(exit $ac_status); } &&
4102
{ ac_try='test -s conftest.$ac_objext'
4103
{ (eval echo "$as_me:4103: \"$ac_try\"") >&5
4106
echo "$as_me:4106: \$? = $ac_status" >&5
4107
(exit $ac_status); }; }; then
4110
echo "$as_me: failed program was:" >&5
4111
cat conftest.$ac_ext >&5
4114
rm -f conftest.$ac_objext conftest.$ac_ext
4115
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4118
echo "$as_me:4118: result: $ac_cv_cxx_compiler_gnu" >&5
4119
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4120
GXX=`test $ac_compiler_gnu = yes && echo yes`
4121
ac_test_CXXFLAGS=${CXXFLAGS+set}
4122
ac_save_CXXFLAGS=$CXXFLAGS
4124
echo "$as_me:4124: checking whether $CXX accepts -g" >&5
4125
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4126
if test "${ac_cv_prog_cxx_g+set}" = set; then
4127
echo $ECHO_N "(cached) $ECHO_C" >&6
4129
cat >conftest.$ac_ext <<_ACEOF
4130
#line 4130 "configure"
4131
#include "confdefs.h"
4141
rm -f conftest.$ac_objext
4142
if { (eval echo "$as_me:4142: \"$ac_compile\"") >&5
4143
(eval $ac_compile) 2>&5
4145
echo "$as_me:4145: \$? = $ac_status" >&5
4146
(exit $ac_status); } &&
4147
{ ac_try='test -s conftest.$ac_objext'
4148
{ (eval echo "$as_me:4148: \"$ac_try\"") >&5
4151
echo "$as_me:4151: \$? = $ac_status" >&5
4152
(exit $ac_status); }; }; then
4153
ac_cv_prog_cxx_g=yes
4155
echo "$as_me: failed program was:" >&5
4156
cat conftest.$ac_ext >&5
4159
rm -f conftest.$ac_objext conftest.$ac_ext
4161
echo "$as_me:4161: result: $ac_cv_prog_cxx_g" >&5
4162
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4163
if test "$ac_test_CXXFLAGS" = set; then
4164
CXXFLAGS=$ac_save_CXXFLAGS
4165
elif test $ac_cv_prog_cxx_g = yes; then
4166
if test "$GXX" = yes; then
4172
if test "$GXX" = yes; then
4178
for ac_declaration in \
4180
'#include <stdlib.h>' \
4181
'extern "C" void std::exit (int) throw (); using std::exit;' \
4182
'extern "C" void std::exit (int); using std::exit;' \
4183
'extern "C" void exit (int) throw ();' \
4184
'extern "C" void exit (int);' \
4187
cat >conftest.$ac_ext <<_ACEOF
4188
#line 4188 "configure"
4189
#include "confdefs.h"
4200
rm -f conftest.$ac_objext
4201
if { (eval echo "$as_me:4201: \"$ac_compile\"") >&5
4202
(eval $ac_compile) 2>&5
4204
echo "$as_me:4204: \$? = $ac_status" >&5
4205
(exit $ac_status); } &&
4206
{ ac_try='test -s conftest.$ac_objext'
4207
{ (eval echo "$as_me:4207: \"$ac_try\"") >&5
4210
echo "$as_me:4210: \$? = $ac_status" >&5
4211
(exit $ac_status); }; }; then
4214
echo "$as_me: failed program was:" >&5
4215
cat conftest.$ac_ext >&5
4218
rm -f conftest.$ac_objext conftest.$ac_ext
4219
cat >conftest.$ac_ext <<_ACEOF
4220
#line 4220 "configure"
4221
#include "confdefs.h"
4231
rm -f conftest.$ac_objext
4232
if { (eval echo "$as_me:4232: \"$ac_compile\"") >&5
4233
(eval $ac_compile) 2>&5
4235
echo "$as_me:4235: \$? = $ac_status" >&5
4236
(exit $ac_status); } &&
4237
{ ac_try='test -s conftest.$ac_objext'
4238
{ (eval echo "$as_me:4238: \"$ac_try\"") >&5
4241
echo "$as_me:4241: \$? = $ac_status" >&5
4242
(exit $ac_status); }; }; then
4245
echo "$as_me: failed program was:" >&5
4246
cat conftest.$ac_ext >&5
4248
rm -f conftest.$ac_objext conftest.$ac_ext
4250
echo '#ifdef __cplusplus' >>confdefs.h
4251
echo $ac_declaration >>confdefs.h
4252
echo '#endif' >>confdefs.h
4255
ac_cpp='$CPP $CPPFLAGS'
4256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
MAKEFILE_CXXLINK="\$(CXX)"
4264
# Do some gcc specific configuration.
4266
if test "$GCC" = "yes"; then
4267
echo "$as_me:4267: checking for gcc 2.96 for-loop bug" >&5
4268
echo $ECHO_N "checking for gcc 2.96 for-loop bug... $ECHO_C" >&6
4269
if test "${db_cv_gcc_2_96_forloop_bug+set}" = set; then
4270
echo $ECHO_N "(cached) $ECHO_C" >&6
4273
if test "$cross_compiling" = yes; then
4274
{ { echo "$as_me:4274: error: cannot run test program while cross compiling" >&5
4275
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4276
{ (exit 1); exit 1; }; }
4278
cat >conftest.$ac_ext <<_ACEOF
4279
#line 4279 "configure"
4280
#include "confdefs.h"
4281
void bug(unsigned int n) {
4284
for (i=0; ((i < 10) && (shift < 0)) ; i++) {
4285
if ((1UL << i) == n)
4296
rm -f conftest$ac_exeext
4297
if { (eval echo "$as_me:4297: \"$ac_link\"") >&5
4298
(eval $ac_link) 2>&5
4300
echo "$as_me:4300: \$? = $ac_status" >&5
4301
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4302
{ (eval echo "$as_me:4302: \"$ac_try\"") >&5
4305
echo "$as_me:4305: \$? = $ac_status" >&5
4306
(exit $ac_status); }; }; then
4307
db_cv_gcc_2_96_forloop_bug=no
4309
echo "$as_me: program exited with status $ac_status" >&5
4310
echo "$as_me: failed program was:" >&5
4311
cat conftest.$ac_ext >&5
4312
db_cv_gcc_2_96_forloop_bug=yes
4314
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4317
echo "$as_me:4317: result: $db_cv_gcc_2_96_forloop_bug" >&5
4318
echo "${ECHO_T}$db_cv_gcc_2_96_forloop_bug" >&6
4319
if test "$db_cv_gcc_2_96_forloop_bug" = "yes"; then
4320
CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
4321
CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
4322
{ echo "$as_me:4322: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&5
4323
echo "$as_me: WARNING: INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE." >&2;}
4324
{ echo "$as_me:4324: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&5
4325
echo "$as_me: WARNING: GCC OPTIMIZATION LEVEL SET TO -O." >&2;}
4329
if test "$GXX" = "yes"; then
4330
CXXVERSION=`${MAKEFILE_CXX} --version`
4331
case ${CXXVERSION} in
4332
1.*|2.[01234567].*|*-1.*|*-2.[01234567].*)
4333
CXXFLAGS="-fhandle-exceptions $CXXFLAGS";;
4335
CXXFLAGS="-fexceptions $CXXFLAGS";;
4339
# Export our compiler preferences for the libtool configuration.
4343
# Libtool configuration.
4344
# Check whether --enable-shared or --disable-shared was given.
4345
if test "${enable_shared+set}" = set; then
4346
enableval="$enable_shared"
4347
p=${PACKAGE-default}
4349
yes) enable_shared=yes ;;
4350
no) enable_shared=no ;;
4353
# Look at the argument we got. We use all the common list separators.
4354
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4355
for pkg in $enableval; do
4356
if test "X$pkg" = "X$p"; then
4366
# Check whether --enable-static or --disable-static was given.
4367
if test "${enable_static+set}" = set; then
4368
enableval="$enable_static"
4369
p=${PACKAGE-default}
4371
yes) enable_static=yes ;;
4372
no) enable_static=no ;;
4375
# Look at the argument we got. We use all the common list separators.
4376
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4377
for pkg in $enableval; do
4378
if test "X$pkg" = "X$p"; then
4388
# Check whether --enable-fast-install or --disable-fast-install was given.
4389
if test "${enable_fast_install+set}" = set; then
4390
enableval="$enable_fast_install"
4391
p=${PACKAGE-default}
4393
yes) enable_fast_install=yes ;;
4394
no) enable_fast_install=no ;;
4396
enable_fast_install=no
4397
# Look at the argument we got. We use all the common list separators.
4398
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4399
for pkg in $enableval; do
4400
if test "X$pkg" = "X$p"; then
4401
enable_fast_install=yes
4408
enable_fast_install=yes
4411
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4412
if test "${with_gnu_ld+set}" = set; then
4413
withval="$with_gnu_ld"
4414
test "$withval" = no || with_gnu_ld=yes
4419
if test "$GCC" = yes; then
4420
# Check if gcc -print-prog-name=ld gives a path.
4421
echo "$as_me:4421: checking for ld used by GCC" >&5
4422
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4425
# gcc leaves a trailing carriage return which upsets mingw
4426
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4428
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4431
# Accept absolute paths.
4432
[\\/]* | [A-Za-z]:[\\/]*)
4433
re_direlt='/[^/][^/]*/\.\./'
4434
# Canonicalize the path of ld
4435
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4436
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4437
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4439
test -z "$LD" && LD="$ac_prog"
4442
# If it fails, then pretend we aren't using GCC.
4446
# If it is relative, then search for the first ld in PATH.
4450
elif test "$with_gnu_ld" = yes; then
4451
echo "$as_me:4451: checking for GNU ld" >&5
4452
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4454
echo "$as_me:4454: checking for non-GNU ld" >&5
4455
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4457
if test "${lt_cv_path_LD+set}" = set; then
4458
echo $ECHO_N "(cached) $ECHO_C" >&6
4460
if test -z "$LD"; then
4461
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4462
for ac_dir in $PATH; do
4463
test -z "$ac_dir" && ac_dir=.
4464
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4465
lt_cv_path_LD="$ac_dir/$ac_prog"
4466
# Check to see if the program is GNU ld. I'd rather use --version,
4467
# but apparently some GNU ld's only accept -v.
4468
# Break only if it was the GNU/non-GNU ld that we prefer.
4469
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4470
test "$with_gnu_ld" != no && break
4472
test "$with_gnu_ld" != yes && break
4478
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4483
if test -n "$LD"; then
4484
echo "$as_me:4484: result: $LD" >&5
4485
echo "${ECHO_T}$LD" >&6
4487
echo "$as_me:4487: result: no" >&5
4488
echo "${ECHO_T}no" >&6
4490
test -z "$LD" && { { echo "$as_me:4490: error: no acceptable ld found in \$PATH" >&5
4491
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4492
{ (exit 1); exit 1; }; }
4493
echo "$as_me:4493: checking if the linker ($LD) is GNU ld" >&5
4494
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4495
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4496
echo $ECHO_N "(cached) $ECHO_C" >&6
4498
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4499
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4500
lt_cv_prog_gnu_ld=yes
4502
lt_cv_prog_gnu_ld=no
4505
echo "$as_me:4505: result: $lt_cv_prog_gnu_ld" >&5
4506
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4507
with_gnu_ld=$lt_cv_prog_gnu_ld
4509
echo "$as_me:4509: checking for $LD option to reload object files" >&5
4510
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4511
if test "${lt_cv_ld_reload_flag+set}" = set; then
4512
echo $ECHO_N "(cached) $ECHO_C" >&6
4514
lt_cv_ld_reload_flag='-r'
4516
echo "$as_me:4516: result: $lt_cv_ld_reload_flag" >&5
4517
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4518
reload_flag=$lt_cv_ld_reload_flag
4519
test -n "$reload_flag" && reload_flag=" $reload_flag"
4521
echo "$as_me:4521: checking for BSD-compatible nm" >&5
4522
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4523
if test "${lt_cv_path_NM+set}" = set; then
4524
echo $ECHO_N "(cached) $ECHO_C" >&6
4526
if test -n "$NM"; then
4527
# Let the user override the test.
4530
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4531
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4532
test -z "$ac_dir" && ac_dir=.
4533
tmp_nm=$ac_dir/${ac_tool_prefix}nm
4534
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4535
# Check to see if the nm accepts a BSD-compat flag.
4536
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4537
# nm: unknown option "B" ignored
4538
# Tru64's nm complains that /dev/null is an invalid object file
4539
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4540
lt_cv_path_NM="$tmp_nm -B"
4542
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4543
lt_cv_path_NM="$tmp_nm -p"
4546
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4547
continue # so that we can try to find one that supports BSD flags
4552
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4557
echo "$as_me:4557: result: $NM" >&5
4558
echo "${ECHO_T}$NM" >&6
4560
echo "$as_me:4560: checking whether ln -s works" >&5
4561
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4563
if test "$LN_S" = "ln -s"; then
4564
echo "$as_me:4564: result: yes" >&5
4565
echo "${ECHO_T}yes" >&6
4567
echo "$as_me:4567: result: no, using $LN_S" >&5
4568
echo "${ECHO_T}no, using $LN_S" >&6
4571
echo "$as_me:4571: checking how to recognise dependant libraries" >&5
4572
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4573
if test "${lt_cv_deplibs_check_method+set}" = set; then
4574
echo $ECHO_N "(cached) $ECHO_C" >&6
4576
lt_cv_file_magic_cmd='$MAGIC_CMD'
4577
lt_cv_file_magic_test_file=
4578
lt_cv_deplibs_check_method='unknown'
4579
# Need to set the preceding variable on all platforms that support
4580
# interlibrary dependencies.
4581
# 'none' -- dependencies not supported.
4582
# `unknown' -- same as none, but documents that we really don't know.
4583
# 'pass_all' -- all dependencies passed with no checks.
4584
# 'test_compile' -- check by making test program.
4585
# ['file_magic [regex]'] -- check by looking for files in library path
4586
# which responds to the $file_magic_cmd with a given egrep regex.
4587
# If you have `file' or equivalent on your system and you're not sure
4588
# whether `pass_all' will *always* work, you probably want this one.
4592
lt_cv_deplibs_check_method=pass_all
4596
lt_cv_deplibs_check_method=pass_all
4600
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4601
lt_cv_file_magic_cmd='/usr/bin/file -L'
4602
lt_cv_file_magic_test_file=/shlib/libc.so
4605
cygwin* | mingw* | pw32*)
4606
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4607
lt_cv_file_magic_cmd='$OBJDUMP -f'
4610
darwin* | rhapsody*)
4611
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4612
lt_cv_file_magic_cmd='/usr/bin/file -L'
4614
rhapsody* | darwin1.012)
4615
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4618
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4624
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4627
# Not sure whether the presence of OpenBSD here was a mistake.
4628
# Let's accept both of them until this is cleared up.
4629
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4630
lt_cv_file_magic_cmd=/usr/bin/file
4631
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4635
lt_cv_deplibs_check_method=pass_all
4640
lt_cv_deplibs_check_method=pass_all
4644
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4645
lt_cv_file_magic_cmd=/usr/bin/file
4646
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4652
# this will be overridden with pass_all, but let us keep it just in case
4653
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4657
*-32|*"-32 ") libmagic=32-bit;;
4658
*-n32|*"-n32 ") libmagic=N32;;
4659
*-64|*"-64 ") libmagic=64-bit;;
4660
*) libmagic=never-match;;
4662
# this will be overridden with pass_all, but let us keep it just in case
4663
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4666
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4667
lt_cv_deplibs_check_method=pass_all
4670
# This must be Linux ELF.
4673
alpha* | i*86 | powerpc* | sparc* | ia64* )
4674
lt_cv_deplibs_check_method=pass_all ;;
4676
# glibc up to 2.1.1 does not perform some relocations on ARM
4677
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4679
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4683
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4684
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4686
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4691
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4692
lt_cv_file_magic_cmd=/usr/bin/file
4693
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4696
#### local change for Sleepycat DB:
4697
# Add in the QNX support from QNX.
4699
lt_cv_deplibs_check_method=pass_all
4702
osf3* | osf4* | osf5*)
4703
# this will be overridden with pass_all, but let us keep it just in case
4704
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4705
lt_cv_file_magic_test_file=/shlib/libc.so
4706
lt_cv_deplibs_check_method=pass_all
4710
lt_cv_deplibs_check_method=pass_all
4714
lt_cv_deplibs_check_method=pass_all
4715
lt_cv_file_magic_test_file=/lib/libc.so
4718
sysv5uw[78]* | sysv4*uw2*)
4719
lt_cv_deplibs_check_method=pass_all
4722
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4723
case $host_vendor in
4725
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]'
4726
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4729
lt_cv_deplibs_check_method=pass_all
4732
lt_cv_file_magic_cmd='/bin/file'
4733
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4736
lt_cv_file_magic_cmd='/bin/file'
4737
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4738
lt_cv_file_magic_test_file=/lib/libc.so
4745
echo "$as_me:4745: result: $lt_cv_deplibs_check_method" >&5
4746
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4747
file_magic_cmd=$lt_cv_file_magic_cmd
4748
deplibs_check_method=$lt_cv_deplibs_check_method
4750
# Check for command to grab the raw symbol name followed by C symbol from nm.
4751
echo "$as_me:4751: checking command to parse $NM output" >&5
4752
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4753
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4754
echo $ECHO_N "(cached) $ECHO_C" >&6
4757
# These are sane defaults that work on at least a few old systems.
4758
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4760
# Character class describing NM global symbol codes.
4761
symcode='[BCDEGRST]'
4763
# Regexp to match symbols that can be accessed directly from C.
4764
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4766
# Transform the above into a raw symbol and a C symbol.
4767
symxfrm='\1 \2\3 \3'
4769
# Transform an extracted symbol line into a proper C declaration
4770
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4772
# Define system-specific variables.
4777
cygwin* | mingw* | pw32*)
4778
symcode='[ABCDGISTW]'
4780
hpux*) # Its linker distinguishes data from code symbols
4781
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4784
symcode='[BCDEGRST]'
4794
# Handle CRLF in mingw tool chain
4798
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4802
# If we're using GNU nm, then use its standard symbol codes.
4803
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4804
symcode='[ABCDGISTW]'
4807
# Try without a prefix undercore, then with it.
4808
for ac_symprfx in "" "_"; do
4810
# Write the raw and C identifiers.
4811
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4813
# Check to see that the pipe works correctly.
4816
cat > conftest.$ac_ext <<EOF
4821
void nm_test_func(){}
4825
int main(){nm_test_var='a';nm_test_func();return(0);}
4828
if { (eval echo "$as_me:4828: \"$ac_compile\"") >&5
4829
(eval $ac_compile) 2>&5
4831
echo "$as_me:4831: \$? = $ac_status" >&5
4832
(exit $ac_status); }; then
4833
# Now try to grab the symbols.
4835
if { (eval echo "$as_me:4835: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4836
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4838
echo "$as_me:4838: \$? = $ac_status" >&5
4839
(exit $ac_status); } && test -s "$nlist"; then
4840
# Try sorting and uniquifying the output.
4841
if sort "$nlist" | uniq > "$nlist"T; then
4842
mv -f "$nlist"T "$nlist"
4847
# Make sure that we snagged all the symbols we need.
4848
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4849
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4850
cat <<EOF > conftest.$ac_ext
4856
# Now generate the symbol file.
4857
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4859
cat <<EOF >> conftest.$ac_ext
4860
#if defined (__STDC__) && __STDC__
4861
# define lt_ptr_t void *
4863
# define lt_ptr_t char *
4867
/* The mapping between symbol names and symbols. */
4872
lt_preloaded_symbols[] =
4875
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
4876
cat <<\EOF >> conftest.$ac_ext
4884
# Now try linking the two files.
4885
mv conftest.$ac_objext conftstm.$ac_objext
4887
save_CFLAGS="$CFLAGS"
4888
LIBS="conftstm.$ac_objext"
4889
CFLAGS="$CFLAGS$no_builtin_flag"
4890
if { (eval echo "$as_me:4890: \"$ac_link\"") >&5
4891
(eval $ac_link) 2>&5
4893
echo "$as_me:4893: \$? = $ac_status" >&5
4894
(exit $ac_status); } && test -s conftest; then
4898
CFLAGS="$save_CFLAGS"
4900
echo "cannot find nm_test_func in $nlist" >&5
4903
echo "cannot find nm_test_var in $nlist" >&5
4906
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4909
echo "$progname: failed program was:" >&5
4910
cat conftest.$ac_ext >&5
4912
rm -f conftest* conftst*
4914
# Do not use the global_symbol_pipe unless it works.
4915
if test "$pipe_works" = yes; then
4918
lt_cv_sys_global_symbol_pipe=
4924
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4925
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4926
global_symbol_to_cdecl=
4928
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4930
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4931
echo "$as_me:4931: result: failed" >&5
4932
echo "${ECHO_T}failed" >&6
4934
echo "$as_me:4934: result: ok" >&5
4935
echo "${ECHO_T}ok" >&6
4939
ac_cpp='$CPP $CPPFLAGS'
4940
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
echo "$as_me:4943: checking how to run the C preprocessor" >&5
4944
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4945
# On Suns, sometimes $CPP names a directory.
4946
if test -n "$CPP" && test -d "$CPP"; then
4949
if test -z "$CPP"; then
4950
if test "${ac_cv_prog_CPP+set}" = set; then
4951
echo $ECHO_N "(cached) $ECHO_C" >&6
4953
# Double quotes because CPP needs to be expanded
4954
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4956
# break 2 since there is a loop in there.
4958
for ac_c_preproc_warn_flag in '' yes
4960
# Use a header file that comes with gcc, so configuring glibc
4961
# with a fresh cross-compiler works.
4962
# On the NeXT, cc -E runs the code through the compiler's parser,
4963
# not just through cpp. "Syntax error" is here to catch this case.
4964
cat >conftest.$ac_ext <<_ACEOF
4965
#line 4965 "configure"
4966
#include "confdefs.h"
4970
if { (eval echo "$as_me:4970: \"$ac_cpp conftest.$ac_ext\"") >&5
4971
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4973
egrep -v '^ *\+' conftest.er1 >conftest.err
4975
cat conftest.err >&5
4976
echo "$as_me:4976: \$? = $ac_status" >&5
4977
(exit $ac_status); } >/dev/null; then
4978
if test -s conftest.err; then
4979
ac_cpp_err=$ac_c_preproc_warn_flag
4986
if test -z "$ac_cpp_err"; then
4989
echo "$as_me: failed program was:" >&5
4990
cat conftest.$ac_ext >&5
4991
# Broken: fails on valid input.
4994
rm -f conftest.err conftest.$ac_ext
4996
# OK, works on sane cases. Now check whether non-existent headers
4997
# can be detected and how.
4998
cat >conftest.$ac_ext <<_ACEOF
4999
#line 4999 "configure"
5000
#include "confdefs.h"
5001
#include <ac_nonexistent.h>
5003
if { (eval echo "$as_me:5003: \"$ac_cpp conftest.$ac_ext\"") >&5
5004
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5006
egrep -v '^ *\+' conftest.er1 >conftest.err
5008
cat conftest.err >&5
5009
echo "$as_me:5009: \$? = $ac_status" >&5
5010
(exit $ac_status); } >/dev/null; then
5011
if test -s conftest.err; then
5012
ac_cpp_err=$ac_c_preproc_warn_flag
5019
if test -z "$ac_cpp_err"; then
5020
# Broken: success on invalid input.
5023
echo "$as_me: failed program was:" >&5
5024
cat conftest.$ac_ext >&5
5025
# Passes both tests.
5029
rm -f conftest.err conftest.$ac_ext
5032
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5033
rm -f conftest.err conftest.$ac_ext
5034
if $ac_preproc_ok; then
5046
echo "$as_me:5046: result: $CPP" >&5
5047
echo "${ECHO_T}$CPP" >&6
5049
for ac_c_preproc_warn_flag in '' yes
5051
# Use a header file that comes with gcc, so configuring glibc
5052
# with a fresh cross-compiler works.
5053
# On the NeXT, cc -E runs the code through the compiler's parser,
5054
# not just through cpp. "Syntax error" is here to catch this case.
5055
cat >conftest.$ac_ext <<_ACEOF
5056
#line 5056 "configure"
5057
#include "confdefs.h"
5061
if { (eval echo "$as_me:5061: \"$ac_cpp conftest.$ac_ext\"") >&5
5062
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5064
egrep -v '^ *\+' conftest.er1 >conftest.err
5066
cat conftest.err >&5
5067
echo "$as_me:5067: \$? = $ac_status" >&5
5068
(exit $ac_status); } >/dev/null; then
5069
if test -s conftest.err; then
5070
ac_cpp_err=$ac_c_preproc_warn_flag
5077
if test -z "$ac_cpp_err"; then
5080
echo "$as_me: failed program was:" >&5
5081
cat conftest.$ac_ext >&5
5082
# Broken: fails on valid input.
5085
rm -f conftest.err conftest.$ac_ext
5087
# OK, works on sane cases. Now check whether non-existent headers
5088
# can be detected and how.
5089
cat >conftest.$ac_ext <<_ACEOF
5090
#line 5090 "configure"
5091
#include "confdefs.h"
5092
#include <ac_nonexistent.h>
5094
if { (eval echo "$as_me:5094: \"$ac_cpp conftest.$ac_ext\"") >&5
5095
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5097
egrep -v '^ *\+' conftest.er1 >conftest.err
5099
cat conftest.err >&5
5100
echo "$as_me:5100: \$? = $ac_status" >&5
5101
(exit $ac_status); } >/dev/null; then
5102
if test -s conftest.err; then
5103
ac_cpp_err=$ac_c_preproc_warn_flag
5110
if test -z "$ac_cpp_err"; then
5111
# Broken: success on invalid input.
5114
echo "$as_me: failed program was:" >&5
5115
cat conftest.$ac_ext >&5
5116
# Passes both tests.
5120
rm -f conftest.err conftest.$ac_ext
5123
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124
rm -f conftest.err conftest.$ac_ext
5125
if $ac_preproc_ok; then
5128
{ { echo "$as_me:5128: error: C preprocessor \"$CPP\" fails sanity check" >&5
5129
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5130
{ (exit 1); exit 1; }; }
5134
ac_cpp='$CPP $CPPFLAGS'
5135
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
for ac_header in dlfcn.h
5141
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5142
echo "$as_me:5142: checking for $ac_header" >&5
5143
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5144
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5145
echo $ECHO_N "(cached) $ECHO_C" >&6
5147
cat >conftest.$ac_ext <<_ACEOF
5148
#line 5148 "configure"
5149
#include "confdefs.h"
5150
#include <$ac_header>
5152
if { (eval echo "$as_me:5152: \"$ac_cpp conftest.$ac_ext\"") >&5
5153
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5155
egrep -v '^ *\+' conftest.er1 >conftest.err
5157
cat conftest.err >&5
5158
echo "$as_me:5158: \$? = $ac_status" >&5
5159
(exit $ac_status); } >/dev/null; then
5160
if test -s conftest.err; then
5161
ac_cpp_err=$ac_c_preproc_warn_flag
5168
if test -z "$ac_cpp_err"; then
5169
eval "$ac_ac_Header=yes"
5171
echo "$as_me: failed program was:" >&5
5172
cat conftest.$ac_ext >&5
5173
eval "$ac_ac_Header=no"
5175
rm -f conftest.err conftest.$ac_ext
5177
echo "$as_me:5177: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5178
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5179
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5180
cat >>confdefs.h <<EOF
5181
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5187
# Only perform the check for file, if the check method requires it
5188
case $deplibs_check_method in
5190
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5191
echo "$as_me:5191: checking for ${ac_tool_prefix}file" >&5
5192
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5193
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5194
echo $ECHO_N "(cached) $ECHO_C" >&6
5198
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5201
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5204
ac_save_MAGIC_CMD="$MAGIC_CMD"
5205
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5206
ac_dummy="/usr/bin:$PATH"
5207
for ac_dir in $ac_dummy; do
5208
test -z "$ac_dir" && ac_dir=.
5209
if test -f $ac_dir/${ac_tool_prefix}file; then
5210
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5211
if test -n "$file_magic_test_file"; then
5212
case $deplibs_check_method in
5214
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5215
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5216
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5217
egrep "$file_magic_regex" > /dev/null; then
5222
*** Warning: the command libtool uses to detect shared libraries,
5223
*** $file_magic_cmd, produces output that libtool cannot recognize.
5224
*** The result is that libtool may fail to recognize shared libraries
5225
*** as such. This will affect the creation of libtool libraries that
5226
*** depend on shared libraries, but programs linked with such libtool
5227
*** libraries will work regardless of this problem. Nevertheless, you
5228
*** may want to report the problem to your system manager and/or to
5229
*** bug-libtool@gnu.org
5239
MAGIC_CMD="$ac_save_MAGIC_CMD"
5244
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5245
if test -n "$MAGIC_CMD"; then
5246
echo "$as_me:5246: result: $MAGIC_CMD" >&5
5247
echo "${ECHO_T}$MAGIC_CMD" >&6
5249
echo "$as_me:5249: result: no" >&5
5250
echo "${ECHO_T}no" >&6
5253
if test -z "$lt_cv_path_MAGIC_CMD"; then
5254
if test -n "$ac_tool_prefix"; then
5255
echo "$as_me:5255: checking for file" >&5
5256
echo $ECHO_N "checking for file... $ECHO_C" >&6
5257
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5258
echo $ECHO_N "(cached) $ECHO_C" >&6
5262
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5265
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5268
ac_save_MAGIC_CMD="$MAGIC_CMD"
5269
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5270
ac_dummy="/usr/bin:$PATH"
5271
for ac_dir in $ac_dummy; do
5272
test -z "$ac_dir" && ac_dir=.
5273
if test -f $ac_dir/file; then
5274
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5275
if test -n "$file_magic_test_file"; then
5276
case $deplibs_check_method in
5278
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5279
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5280
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5281
egrep "$file_magic_regex" > /dev/null; then
5286
*** Warning: the command libtool uses to detect shared libraries,
5287
*** $file_magic_cmd, produces output that libtool cannot recognize.
5288
*** The result is that libtool may fail to recognize shared libraries
5289
*** as such. This will affect the creation of libtool libraries that
5290
*** depend on shared libraries, but programs linked with such libtool
5291
*** libraries will work regardless of this problem. Nevertheless, you
5292
*** may want to report the problem to your system manager and/or to
5293
*** bug-libtool@gnu.org
5303
MAGIC_CMD="$ac_save_MAGIC_CMD"
5308
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5309
if test -n "$MAGIC_CMD"; then
5310
echo "$as_me:5310: result: $MAGIC_CMD" >&5
5311
echo "${ECHO_T}$MAGIC_CMD" >&6
5313
echo "$as_me:5313: result: no" >&5
5314
echo "${ECHO_T}no" >&6
5326
if test -n "$ac_tool_prefix"; then
5327
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5328
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5329
echo "$as_me:5329: checking for $ac_word" >&5
5330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5331
if test "${ac_cv_prog_RANLIB+set}" = set; then
5332
echo $ECHO_N "(cached) $ECHO_C" >&6
5334
if test -n "$RANLIB"; then
5335
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5337
ac_save_IFS=$IFS; IFS=$ac_path_separator
5339
for ac_dir in $ac_dummy; do
5341
test -z "$ac_dir" && ac_dir=.
5342
$as_executable_p "$ac_dir/$ac_word" || continue
5343
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5344
echo "$as_me:5344: found $ac_dir/$ac_word" >&5
5350
RANLIB=$ac_cv_prog_RANLIB
5351
if test -n "$RANLIB"; then
5352
echo "$as_me:5352: result: $RANLIB" >&5
5353
echo "${ECHO_T}$RANLIB" >&6
5355
echo "$as_me:5355: result: no" >&5
5356
echo "${ECHO_T}no" >&6
5360
if test -z "$ac_cv_prog_RANLIB"; then
5361
ac_ct_RANLIB=$RANLIB
5362
# Extract the first word of "ranlib", so it can be a program name with args.
5363
set dummy ranlib; ac_word=$2
5364
echo "$as_me:5364: checking for $ac_word" >&5
5365
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5367
echo $ECHO_N "(cached) $ECHO_C" >&6
5369
if test -n "$ac_ct_RANLIB"; then
5370
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5372
ac_save_IFS=$IFS; IFS=$ac_path_separator
5374
for ac_dir in $ac_dummy; do
5376
test -z "$ac_dir" && ac_dir=.
5377
$as_executable_p "$ac_dir/$ac_word" || continue
5378
ac_cv_prog_ac_ct_RANLIB="ranlib"
5379
echo "$as_me:5379: found $ac_dir/$ac_word" >&5
5383
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5386
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5387
if test -n "$ac_ct_RANLIB"; then
5388
echo "$as_me:5388: result: $ac_ct_RANLIB" >&5
5389
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5391
echo "$as_me:5391: result: no" >&5
5392
echo "${ECHO_T}no" >&6
5395
RANLIB=$ac_ct_RANLIB
5397
RANLIB="$ac_cv_prog_RANLIB"
5400
if test -n "$ac_tool_prefix"; then
5401
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5402
set dummy ${ac_tool_prefix}strip; ac_word=$2
5403
echo "$as_me:5403: checking for $ac_word" >&5
5404
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5405
if test "${ac_cv_prog_STRIP+set}" = set; then
5406
echo $ECHO_N "(cached) $ECHO_C" >&6
5408
if test -n "$STRIP"; then
5409
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5411
ac_save_IFS=$IFS; IFS=$ac_path_separator
5413
for ac_dir in $ac_dummy; do
5415
test -z "$ac_dir" && ac_dir=.
5416
$as_executable_p "$ac_dir/$ac_word" || continue
5417
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5418
echo "$as_me:5418: found $ac_dir/$ac_word" >&5
5424
STRIP=$ac_cv_prog_STRIP
5425
if test -n "$STRIP"; then
5426
echo "$as_me:5426: result: $STRIP" >&5
5427
echo "${ECHO_T}$STRIP" >&6
5429
echo "$as_me:5429: result: no" >&5
5430
echo "${ECHO_T}no" >&6
5434
if test -z "$ac_cv_prog_STRIP"; then
5436
# Extract the first word of "strip", so it can be a program name with args.
5437
set dummy strip; ac_word=$2
5438
echo "$as_me:5438: checking for $ac_word" >&5
5439
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5440
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5441
echo $ECHO_N "(cached) $ECHO_C" >&6
5443
if test -n "$ac_ct_STRIP"; then
5444
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5446
ac_save_IFS=$IFS; IFS=$ac_path_separator
5448
for ac_dir in $ac_dummy; do
5450
test -z "$ac_dir" && ac_dir=.
5451
$as_executable_p "$ac_dir/$ac_word" || continue
5452
ac_cv_prog_ac_ct_STRIP="strip"
5453
echo "$as_me:5453: found $ac_dir/$ac_word" >&5
5457
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5460
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5461
if test -n "$ac_ct_STRIP"; then
5462
echo "$as_me:5462: result: $ac_ct_STRIP" >&5
5463
echo "${ECHO_T}$ac_ct_STRIP" >&6
5465
echo "$as_me:5465: result: no" >&5
5466
echo "${ECHO_T}no" >&6
5471
STRIP="$ac_cv_prog_STRIP"
5477
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5478
if test "${enable_libtool_lock+set}" = set; then
5479
enableval="$enable_libtool_lock"
5482
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5484
# Some flags need to be propagated to the compiler or linker for good
5488
# Find out which ABI we are using.
5489
echo '#line 5489 "configure"' > conftest.$ac_ext
5490
if { (eval echo "$as_me:5490: \"$ac_compile\"") >&5
5491
(eval $ac_compile) 2>&5
5493
echo "$as_me:5493: \$? = $ac_status" >&5
5494
(exit $ac_status); }; then
5495
case `/usr/bin/file conftest.$ac_objext` in
5511
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5512
SAVE_CFLAGS="$CFLAGS"
5513
CFLAGS="$CFLAGS -belf"
5514
echo "$as_me:5514: checking whether the C compiler needs -belf" >&5
5515
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5516
if test "${lt_cv_cc_needs_belf+set}" = set; then
5517
echo $ECHO_N "(cached) $ECHO_C" >&6
5521
ac_cpp='$CPP $CPPFLAGS'
5522
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5523
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5524
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5526
cat >conftest.$ac_ext <<_ACEOF
5527
#line 5527 "configure"
5528
#include "confdefs.h"
5538
rm -f conftest.$ac_objext conftest$ac_exeext
5539
if { (eval echo "$as_me:5539: \"$ac_link\"") >&5
5540
(eval $ac_link) 2>&5
5542
echo "$as_me:5542: \$? = $ac_status" >&5
5543
(exit $ac_status); } &&
5544
{ ac_try='test -s conftest$ac_exeext'
5545
{ (eval echo "$as_me:5545: \"$ac_try\"") >&5
5548
echo "$as_me:5548: \$? = $ac_status" >&5
5549
(exit $ac_status); }; }; then
5550
lt_cv_cc_needs_belf=yes
5552
echo "$as_me: failed program was:" >&5
5553
cat conftest.$ac_ext >&5
5554
lt_cv_cc_needs_belf=no
5556
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5558
ac_cpp='$CPP $CPPFLAGS'
5559
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564
echo "$as_me:5564: result: $lt_cv_cc_needs_belf" >&5
5565
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5566
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5567
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5568
CFLAGS="$SAVE_CFLAGS"
5574
# Sed substitution that helps us do robust quoting. It backslashifies
5575
# metacharacters that are still active within double-quoted strings.
5576
Xsed='sed -e s/^X//'
5577
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5579
# Same as above, but do not quote variable references.
5580
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5582
# Sed substitution to delay expansion of an escaped shell variable in a
5583
# double_quote_subst'ed string.
5584
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5590
default_ofile=libtool
5591
can_build_shared=yes
5593
# All known linkers require a `.a' archive for static linking (except M$VC,
5594
# which needs '.lib').
5596
ltmain="$ac_aux_dir/ltmain.sh"
5597
ofile="$default_ofile"
5598
with_gnu_ld="$lt_cv_prog_gnu_ld"
5599
need_locks="$enable_libtool_lock"
5602
old_CFLAGS="$CFLAGS"
5604
# Set sane defaults for various variables
5605
test -z "$AR" && AR=ar
5606
test -z "$AR_FLAGS" && AR_FLAGS=cru
5607
test -z "$AS" && AS=as
5608
test -z "$CC" && CC=cc
5609
test -z "$DLLTOOL" && DLLTOOL=dlltool
5610
test -z "$LD" && LD=ld
5611
test -z "$LN_S" && LN_S="ln -s"
5612
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5613
test -z "$NM" && NM=nm
5614
test -z "$OBJDUMP" && OBJDUMP=objdump
5615
test -z "$RANLIB" && RANLIB=:
5616
test -z "$STRIP" && STRIP=:
5617
test -z "$ac_objext" && ac_objext=o
5619
if test x"$host" != x"$build"; then
5620
ac_tool_prefix=${host_alias}-
5625
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5628
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5633
# AIX sometimes has problems with the GCC collect2 program. For some
5634
# reason, if we set the COLLECT_NAMES environment variable, the problems
5635
# vanish in a puff of smoke.
5636
if test "X${COLLECT_NAMES+set}" != Xset; then
5638
export COLLECT_NAMES
5643
# Determine commands to create old-style static archives.
5644
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5645
old_postinstall_cmds='chmod 644 $oldlib'
5646
old_postuninstall_cmds=
5648
if test -n "$RANLIB"; then
5649
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5650
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5653
# Allow CC to be a program name with arguments.
5657
## FIXME: this should be a separate macro
5659
echo "$as_me:5659: checking for objdir" >&5
5660
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5661
rm -f .libs 2>/dev/null
5662
mkdir .libs 2>/dev/null
5663
if test -d .libs; then
5666
# MS-DOS does not allow filenames that begin with a dot.
5669
rmdir .libs 2>/dev/null
5670
echo "$as_me:5670: result: $objdir" >&5
5671
echo "${ECHO_T}$objdir" >&6
5675
## FIXME: this should be a separate macro
5678
# Check whether --with-pic or --without-pic was given.
5679
if test "${with_pic+set}" = set; then
5685
test -z "$pic_mode" && pic_mode=default
5687
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5688
# in isolation, and that seeing it set (from the cache) indicates that
5689
# the associated values are set (in the cache) correctly too.
5690
echo "$as_me:5690: checking for $compiler option to produce PIC" >&5
5691
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5692
if test "${lt_cv_prog_cc_pic+set}" = set; then
5693
echo $ECHO_N "(cached) $ECHO_C" >&6
5696
lt_cv_prog_cc_shlib=
5698
lt_cv_prog_cc_static=
5699
lt_cv_prog_cc_no_builtin=
5700
lt_cv_prog_cc_can_build_shared=$can_build_shared
5702
if test "$GCC" = yes; then
5703
lt_cv_prog_cc_wl='-Wl,'
5704
lt_cv_prog_cc_static='-static'
5708
# Below there is a dirty hack to force normal static linking with -ldl
5709
# The problem is because libdl dynamically linked with both libc and
5710
# libC (AIX C++ library), which obviously doesn't included in libraries
5711
# list by gcc. This cause undefined symbols with -static flags.
5712
# This hack allows C programs to be linked with "-static -ldl", but
5713
# we not sure about C++ programs.
5714
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5717
# FIXME: we need at least 68020 code to build shared libraries, but
5718
# adding the `-m68020' flag to GCC prevents building anything better,
5720
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5722
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5723
# PIC is the default for these OSes.
5725
darwin* | rhapsody*)
5726
# PIC is the default on this platform
5727
# Common symbols not allowed in MH_DYLIB files
5728
lt_cv_prog_cc_pic='-fno-common'
5730
cygwin* | mingw* | pw32* | os2*)
5731
# This hack is so that the source file can tell whether it is being
5732
# built for inclusion in a dll (and should export symbols for example).
5733
lt_cv_prog_cc_pic='-DDLL_EXPORT'
5736
if test -d /usr/nec; then
5737
lt_cv_prog_cc_pic=-Kconform_pic
5741
lt_cv_prog_cc_pic='-fPIC'
5745
# PORTME Check for PIC flags for the system compiler.
5747
aix3* | aix4* | aix5*)
5748
# All AIX code is PIC.
5749
if test "$host_cpu" = ia64; then
5750
# AIX 5 now supports IA64 processor
5751
lt_cv_prog_cc_static='-Bstatic'
5752
lt_cv_prog_cc_wl='-Wl,'
5754
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5758
hpux9* | hpux10* | hpux11*)
5759
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5760
lt_cv_prog_cc_wl='-Wl,'
5761
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5762
lt_cv_prog_cc_pic='+Z'
5766
lt_cv_prog_cc_wl='-Wl,'
5767
lt_cv_prog_cc_static='-non_shared'
5768
# PIC (with -KPIC) is the default.
5771
cygwin* | mingw* | pw32* | os2*)
5772
# This hack is so that the source file can tell whether it is being
5773
# built for inclusion in a dll (and should export symbols for example).
5774
lt_cv_prog_cc_pic='-DDLL_EXPORT'
5778
lt_cv_prog_cc_pic='-KPIC'
5779
lt_cv_prog_cc_static='-Bstatic'
5782
osf3* | osf4* | osf5*)
5783
# All OSF/1 code is PIC.
5784
lt_cv_prog_cc_wl='-Wl,'
5785
lt_cv_prog_cc_static='-non_shared'
5789
lt_cv_prog_cc_pic='-Kpic'
5790
lt_cv_prog_cc_static='-dn'
5791
lt_cv_prog_cc_shlib='-belf'
5795
lt_cv_prog_cc_pic='-KPIC'
5796
lt_cv_prog_cc_static='-Bstatic'
5797
lt_cv_prog_cc_wl='-Wl,'
5801
lt_cv_prog_cc_pic='-PIC'
5802
lt_cv_prog_cc_static='-Bstatic'
5803
lt_cv_prog_cc_wl='-Qoption ld '
5806
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5807
lt_cv_prog_cc_pic='-KPIC'
5808
lt_cv_prog_cc_static='-Bstatic'
5809
if test "x$host_vendor" = xsni; then
5810
lt_cv_prog_cc_wl='-LD'
5812
lt_cv_prog_cc_wl='-Wl,'
5817
lt_cv_prog_cc_pic='-pic'
5818
lt_cv_prog_cc_static='-Bstatic'
5822
if test -d /usr/nec ;then
5823
lt_cv_prog_cc_pic='-Kconform_pic'
5824
lt_cv_prog_cc_static='-Bstatic'
5829
lt_cv_prog_cc_can_build_shared=no
5836
if test -z "$lt_cv_prog_cc_pic"; then
5837
echo "$as_me:5837: result: none" >&5
5838
echo "${ECHO_T}none" >&6
5840
echo "$as_me:5840: result: $lt_cv_prog_cc_pic" >&5
5841
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5843
# Check to make sure the pic_flag actually works.
5844
echo "$as_me:5844: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5845
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5846
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5847
echo $ECHO_N "(cached) $ECHO_C" >&6
5849
save_CFLAGS="$CFLAGS"
5850
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5851
cat >conftest.$ac_ext <<_ACEOF
5852
#line 5852 "configure"
5853
#include "confdefs.h"
5863
rm -f conftest.$ac_objext
5864
if { (eval echo "$as_me:5864: \"$ac_compile\"") >&5
5865
(eval $ac_compile) 2>&5
5867
echo "$as_me:5867: \$? = $ac_status" >&5
5868
(exit $ac_status); } &&
5869
{ ac_try='test -s conftest.$ac_objext'
5870
{ (eval echo "$as_me:5870: \"$ac_try\"") >&5
5873
echo "$as_me:5873: \$? = $ac_status" >&5
5874
(exit $ac_status); }; }; then
5876
hpux9* | hpux10* | hpux11*)
5877
# On HP-UX, both CC and GCC only warn that PIC is supported... then
5878
# they create non-PIC objects. So, if there were any warnings, we
5879
# assume that PIC is not supported.
5880
if test -s conftest.err; then
5881
lt_cv_prog_cc_pic_works=no
5883
lt_cv_prog_cc_pic_works=yes
5887
lt_cv_prog_cc_pic_works=yes
5892
echo "$as_me: failed program was:" >&5
5893
cat conftest.$ac_ext >&5
5894
lt_cv_prog_cc_pic_works=no
5897
rm -f conftest.$ac_objext conftest.$ac_ext
5898
CFLAGS="$save_CFLAGS"
5902
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5904
lt_cv_prog_cc_can_build_shared=no
5906
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5909
echo "$as_me:5909: result: $lt_cv_prog_cc_pic_works" >&5
5910
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5915
# Check for any special shared library compilation flags.
5916
if test -n "$lt_cv_prog_cc_shlib"; then
5917
{ echo "$as_me:5917: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5918
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5919
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5921
{ echo "$as_me:5921: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5922
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5923
lt_cv_prog_cc_can_build_shared=no
5927
## FIXME: this should be a separate macro
5929
echo "$as_me:5929: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5930
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5931
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5932
echo $ECHO_N "(cached) $ECHO_C" >&6
5934
lt_cv_prog_cc_static_works=no
5935
save_LDFLAGS="$LDFLAGS"
5936
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5937
cat >conftest.$ac_ext <<_ACEOF
5938
#line 5938 "configure"
5939
#include "confdefs.h"
5949
rm -f conftest.$ac_objext conftest$ac_exeext
5950
if { (eval echo "$as_me:5950: \"$ac_link\"") >&5
5951
(eval $ac_link) 2>&5
5953
echo "$as_me:5953: \$? = $ac_status" >&5
5954
(exit $ac_status); } &&
5955
{ ac_try='test -s conftest$ac_exeext'
5956
{ (eval echo "$as_me:5956: \"$ac_try\"") >&5
5959
echo "$as_me:5959: \$? = $ac_status" >&5
5960
(exit $ac_status); }; }; then
5961
lt_cv_prog_cc_static_works=yes
5963
echo "$as_me: failed program was:" >&5
5964
cat conftest.$ac_ext >&5
5966
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967
LDFLAGS="$save_LDFLAGS"
5971
# Belt *and* braces to stop my trousers falling down:
5972
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5973
echo "$as_me:5973: result: $lt_cv_prog_cc_static_works" >&5
5974
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5976
pic_flag="$lt_cv_prog_cc_pic"
5977
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5978
wl="$lt_cv_prog_cc_wl"
5979
link_static_flag="$lt_cv_prog_cc_static"
5980
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5981
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5985
## FIXME: this should be a separate macro
5987
# Check to see if options -o and -c are simultaneously supported by compiler
5988
echo "$as_me:5988: checking if $compiler supports -c -o file.$ac_objext" >&5
5989
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5990
if test "${lt_cv_compiler_c_o+set}" = set; then
5991
echo $ECHO_N "(cached) $ECHO_C" >&6
5994
$rm -r conftest 2>/dev/null
5997
echo "int some_variable = 0;" > conftest.$ac_ext
5999
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6000
# that will create temporary files in the current directory regardless of
6001
# the output directory. Thus, making CWD read-only will cause this test
6002
# to fail, enabling locking or at least warning the user not to do parallel
6005
save_CFLAGS="$CFLAGS"
6006
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6008
if { (eval echo configure:6008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6009
# The compiler can only warn and ignore the option if not recognized
6010
# So say no if there are warnings
6011
if test -s out/conftest.err; then
6012
lt_cv_compiler_c_o=no
6014
lt_cv_compiler_c_o=yes
6017
# Append any errors to the config.log.
6018
cat out/conftest.err 1>&5
6019
lt_cv_compiler_c_o=no
6021
CFLAGS="$save_CFLAGS"
6027
$rm -r conftest 2>/dev/null
6031
compiler_c_o=$lt_cv_compiler_c_o
6032
echo "$as_me:6032: result: $compiler_c_o" >&5
6033
echo "${ECHO_T}$compiler_c_o" >&6
6035
if test x"$compiler_c_o" = x"yes"; then
6036
# Check to see if we can write to a .lo
6037
echo "$as_me:6037: checking if $compiler supports -c -o file.lo" >&5
6038
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6039
if test "${lt_cv_compiler_o_lo+set}" = set; then
6040
echo $ECHO_N "(cached) $ECHO_C" >&6
6043
lt_cv_compiler_o_lo=no
6044
save_CFLAGS="$CFLAGS"
6045
CFLAGS="$CFLAGS -c -o conftest.lo"
6046
cat >conftest.$ac_ext <<_ACEOF
6047
#line 6047 "configure"
6048
#include "confdefs.h"
6053
int some_variable = 0;
6058
rm -f conftest.$ac_objext
6059
if { (eval echo "$as_me:6059: \"$ac_compile\"") >&5
6060
(eval $ac_compile) 2>&5
6062
echo "$as_me:6062: \$? = $ac_status" >&5
6063
(exit $ac_status); } &&
6064
{ ac_try='test -s conftest.$ac_objext'
6065
{ (eval echo "$as_me:6065: \"$ac_try\"") >&5
6068
echo "$as_me:6068: \$? = $ac_status" >&5
6069
(exit $ac_status); }; }; then
6070
# The compiler can only warn and ignore the option if not recognized
6071
# So say no if there are warnings
6072
if test -s conftest.err; then
6073
lt_cv_compiler_o_lo=no
6075
lt_cv_compiler_o_lo=yes
6079
echo "$as_me: failed program was:" >&5
6080
cat conftest.$ac_ext >&5
6082
rm -f conftest.$ac_objext conftest.$ac_ext
6083
CFLAGS="$save_CFLAGS"
6087
compiler_o_lo=$lt_cv_compiler_o_lo
6088
echo "$as_me:6088: result: $compiler_c_lo" >&5
6089
echo "${ECHO_T}$compiler_c_lo" >&6
6096
## FIXME: this should be a separate macro
6098
# Check to see if we can do hard links to lock some files if needed
6099
hard_links="nottested"
6100
if test "$compiler_c_o" = no && test "$need_locks" != no; then
6101
# do not overwrite the value of need_locks provided by the user
6102
echo "$as_me:6102: checking if we can lock with hard links" >&5
6103
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6106
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6108
ln conftest.a conftest.b 2>&5 || hard_links=no
6109
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6110
echo "$as_me:6110: result: $hard_links" >&5
6111
echo "${ECHO_T}$hard_links" >&6
6112
if test "$hard_links" = no; then
6113
{ echo "$as_me:6113: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6114
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6123
## FIXME: this should be a separate macro
6125
if test "$GCC" = yes; then
6126
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6127
echo "$as_me:6127: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6128
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6129
echo "int some_variable = 0;" > conftest.$ac_ext
6130
save_CFLAGS="$CFLAGS"
6131
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6132
compiler_rtti_exceptions=no
6133
cat >conftest.$ac_ext <<_ACEOF
6134
#line 6134 "configure"
6135
#include "confdefs.h"
6140
int some_variable = 0;
6145
rm -f conftest.$ac_objext
6146
if { (eval echo "$as_me:6146: \"$ac_compile\"") >&5
6147
(eval $ac_compile) 2>&5
6149
echo "$as_me:6149: \$? = $ac_status" >&5
6150
(exit $ac_status); } &&
6151
{ ac_try='test -s conftest.$ac_objext'
6152
{ (eval echo "$as_me:6152: \"$ac_try\"") >&5
6155
echo "$as_me:6155: \$? = $ac_status" >&5
6156
(exit $ac_status); }; }; then
6157
# The compiler can only warn and ignore the option if not recognized
6158
# So say no if there are warnings
6159
if test -s conftest.err; then
6160
compiler_rtti_exceptions=no
6162
compiler_rtti_exceptions=yes
6166
echo "$as_me: failed program was:" >&5
6167
cat conftest.$ac_ext >&5
6169
rm -f conftest.$ac_objext conftest.$ac_ext
6170
CFLAGS="$save_CFLAGS"
6171
echo "$as_me:6171: result: $compiler_rtti_exceptions" >&5
6172
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6174
if test "$compiler_rtti_exceptions" = "yes"; then
6175
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6177
no_builtin_flag=' -fno-builtin'
6183
## FIXME: this should be a separate macro
6185
# See if the linker supports building shared libraries.
6186
echo "$as_me:6186: checking whether the linker ($LD) supports shared libraries" >&5
6187
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6189
allow_undefined_flag=
6191
need_lib_prefix=unknown
6192
need_version=unknown
6193
# when you set need_version to no, make sure it does not cause -set_version
6194
# flags to be left without arguments
6196
archive_expsym_cmds=
6197
old_archive_from_new_cmds=
6198
old_archive_from_expsyms_cmds=
6199
export_dynamic_flag_spec=
6200
whole_archive_flag_spec=
6201
thread_safe_flag_spec=
6202
hardcode_into_libs=no
6203
hardcode_libdir_flag_spec=
6204
hardcode_libdir_separator=
6207
hardcode_shlibpath_var=unsupported
6209
link_all_deplibs=unknown
6210
always_export_symbols=no
6211
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6212
# include_expsyms should be a list of space-separated symbols to be *always*
6213
# included in the symbol list
6215
# exclude_expsyms can be an egrep regular expression of symbols to exclude
6216
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6217
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6218
# as well as any symbol that contains `d'.
6219
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6220
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6221
# platforms (ab)use it in PIC code, but their linkers get confused if
6222
# the symbol is explicitly referenced. Since portable code cannot
6223
# rely on this symbol name, it's probably fine to never include it in
6224
# preloaded symbol tables.
6225
extract_expsyms_cmds=
6228
cygwin* | mingw* | pw32* )
6229
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6230
# When not using gcc, we currently assume that we are using
6231
# Microsoft Visual C++.
6232
if test "$GCC" != yes; then
6240
if test "$with_gnu_ld" = yes; then
6241
# If archive_cmds runs LD, not CC, wlarc should be empty
6244
# See if GNU ld supports shared libraries.
6246
aix3* | aix4* | aix5*)
6247
# On AIX, the GNU linker is very broken
6248
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6252
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6253
*** to be unable to reliably create shared libraries on AIX.
6254
*** Therefore, libtool is disabling shared libraries support. If you
6255
*** really care for shared libraries, you may want to modify your PATH
6256
*** so that a non-GNU linker is found, and then restart.
6262
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)'
6263
hardcode_libdir_flag_spec='-L$libdir'
6264
hardcode_minus_L=yes
6266
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6267
# that the semantics of dynamic libraries on AmigaOS, at least up
6268
# to version 4, is to share data among multiple programs linked
6269
# with the same dynamic library. Since this doesn't match the
6270
# behavior of shared libraries on other platforms, we can use
6276
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6277
allow_undefined_flag=unsupported
6278
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6279
# support --undefined. This deserves some investigation. FIXME
6280
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6286
cygwin* | mingw* | pw32*)
6287
# hardcode_libdir_flag_spec is actually meaningless, as there is
6288
# no search path for DLLs.
6289
hardcode_libdir_flag_spec='-L$libdir'
6290
allow_undefined_flag=unsupported
6291
always_export_symbols=yes
6293
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6294
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6295
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6296
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6297
else $CC -o impgen impgen.c ; fi)~
6298
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6300
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6302
# cygwin and mingw dlls have different entry points and sets of symbols
6304
# FIXME: what about values for MSVC?
6305
dll_entry=__cygwin_dll_entry@12
6306
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6310
dll_entry=_DllMainCRTStartup@12
6311
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6315
# mingw and cygwin differ, and it's simplest to just exclude the union
6316
# of the two symbol sets.
6317
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6319
# recent cygwin and mingw systems supply a stub DllMain which the user
6320
# can override, but on older systems we have to supply one (in ltdll.c)
6321
if test "x$lt_cv_need_dllmain" = "xyes"; then
6322
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6323
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
6324
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6330
# Extract the symbol export list from an `--export-all' def file,
6331
# then regenerate the def file from the symbol export list, so that
6332
# the compiled dll only exports the symbol export list.
6333
# Be careful not to strip the DATA tag left be newer dlltools.
6334
export_symbols_cmds="$ltdll_cmds"'
6335
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6336
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6338
# If the export-symbols file already is a .def file (1st line
6339
# is EXPORTS), use it as is.
6340
# If DATA tags from a recent dlltool are present, honour them!
6341
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6342
cp $export_symbols $output_objdir/$soname-def;
6344
echo EXPORTS > $output_objdir/$soname-def;
6346
cat $export_symbols | while read symbol; do
6349
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6350
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6352
_lt_hint=`expr 1 + \$_lt_hint`;
6356
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6357
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6358
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6359
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6360
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6364
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6368
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6369
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6374
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6378
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6379
*** create shared libraries on Solaris systems. Therefore, libtool
6380
*** is disabling shared libraries support. We urge you to upgrade GNU
6381
*** binutils to release 2.9.1 or newer. Another option is to modify
6382
*** your PATH or compiler configuration so that the native linker is
6383
*** used, and then restart.
6386
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6387
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6388
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6395
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6398
hardcode_shlibpath_var=no
6402
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6403
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6404
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6411
if test "$ld_shlibs" = yes; then
6412
runpath_var=LD_RUN_PATH
6413
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6414
export_dynamic_flag_spec='${wl}--export-dynamic'
6416
cygwin* | mingw* | pw32*)
6417
# dlltool doesn't understand --whole-archive et. al.
6418
whole_archive_flag_spec=
6421
# ancient GNU ld didn't support --whole-archive et. al.
6422
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6423
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6425
whole_archive_flag_spec=
6431
# PORTME fill in a description of your system's linker (not GNU ld)
6434
allow_undefined_flag=unsupported
6435
always_export_symbols=yes
6436
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'
6437
# Note: this linker hardcodes the directories in LIBPATH if there
6438
# are no directories specified by -L.
6439
hardcode_minus_L=yes
6440
if test "$GCC" = yes && test -z "$link_static_flag"; then
6441
# Neither direct hardcoding nor static linking is supported with a
6443
hardcode_direct=unsupported
6448
# When large executables or shared objects are built, AIX ld can
6449
# have problems creating the table of contents. If linking a library
6450
# or program results in "error TOC overflow" add -mminimal-toc to
6451
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6452
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6455
hardcode_libdir_separator=':'
6456
if test "$GCC" = yes; then
6457
collect2name=`${CC} -print-prog-name=collect2`
6458
if test -f "$collect2name" && \
6459
strings "$collect2name" | grep resolve_lib_name >/dev/null
6461
# We have reworked collect2
6464
# We have old collect2
6465
hardcode_direct=unsupported
6466
# It fails to find uninstalled libraries when the uninstalled
6467
# path is not listed in the libpath. Setting hardcode_minus_L
6468
# to unsupported forces relinking
6469
hardcode_minus_L=yes
6470
hardcode_libdir_flag_spec='-L$libdir'
6471
hardcode_libdir_separator=
6473
shared_flag='-shared'
6475
if test "$host_cpu" = ia64; then
6478
shared_flag='${wl}-bM:SRE'
6483
if test "$host_cpu" = ia64; then
6484
# On IA64, the linker does run time linking by default, so we don't
6485
# have to do anything special.
6486
aix_use_runtimelinking=no
6487
exp_sym_flag='-Bexport'
6490
# Test if we are trying to use run time linking, or normal AIX style linking.
6491
# If -brtl is somewhere in LDFLAGS, we need to do run time linking.
6492
aix_use_runtimelinking=no
6493
for ld_flag in $LDFLAGS; do
6494
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
6495
aix_use_runtimelinking=yes
6499
exp_sym_flag='-bexport'
6500
no_entry_flag='-bnoentry'
6502
# It seems that -bexpall can do strange things, so it is better to
6503
# generate a list of symbols to export.
6504
always_export_symbols=yes
6505
if test "$aix_use_runtimelinking" = yes; then
6506
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6507
allow_undefined_flag=' -Wl,-G'
6508
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6510
if test "$host_cpu" = ia64; then
6511
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6512
allow_undefined_flag="-znodefs"
6513
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6515
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6516
# Warning - without using the other run time loading flags, -berok will
6517
# link without error, but may produce a broken library.
6518
allow_undefined_flag='${wl}-berok"
6519
# This is a bit strange, but is similar to how AIX traditionally builds
6520
# it's shared libraries.
6521
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6527
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)'
6528
hardcode_libdir_flag_spec='-L$libdir'
6529
hardcode_minus_L=yes
6530
# see comment about different semantics on the GNU ld section
6534
cygwin* | mingw* | pw32*)
6535
# When not using gcc, we currently assume that we are using
6536
# Microsoft Visual C++.
6537
# hardcode_libdir_flag_spec is actually meaningless, as there is
6538
# no search path for DLLs.
6539
hardcode_libdir_flag_spec=' '
6540
allow_undefined_flag=unsupported
6541
# Tell ltmain to make .lib files, not .a files.
6543
# FIXME: Setting linknames here is a bad hack.
6544
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6545
# The linker will automatically build a .lib file if we build a DLL.
6546
old_archive_from_new_cmds='true'
6547
# FIXME: Should let the user specify the lib program.
6548
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6549
fix_srcfile_path='`cygpath -w "$srcfile"`'
6552
darwin* | rhapsody*)
6553
allow_undefined_flag='-undefined suppress'
6554
# FIXME: Relying on posixy $() will cause problems for
6555
# cross-compilation, but unfortunately the echo tests do not
6556
# yet detect zsh echo's removal of \ escapes.
6557
archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
6558
# We need to add '_' to the symbols in $export_symbols first
6559
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6561
hardcode_shlibpath_var=no
6562
whole_archive_flag_spec='-all_load $convenience'
6569
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6570
# support. Future versions do this automatically, but an explicit c++rt0.o
6571
# does not break anything, and helps significantly (at the cost of a little
6574
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6575
hardcode_libdir_flag_spec='-R$libdir'
6577
hardcode_shlibpath_var=no
6580
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6582
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6584
hardcode_minus_L=yes
6585
hardcode_shlibpath_var=no
6588
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6590
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6591
hardcode_libdir_flag_spec='-R$libdir'
6593
hardcode_shlibpath_var=no
6596
hpux9* | hpux10* | hpux11*)
6598
hpux9*) 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' ;;
6599
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6601
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6602
hardcode_libdir_separator=:
6604
hardcode_minus_L=yes # Not in the search PATH, but as the default
6605
# location of the library.
6606
export_dynamic_flag_spec='${wl}-E'
6610
if test "$GCC" = yes; then
6611
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'
6613
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'
6615
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6616
hardcode_libdir_separator=:
6617
link_all_deplibs=yes
6621
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6622
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6624
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6626
hardcode_libdir_flag_spec='-R$libdir'
6628
hardcode_shlibpath_var=no
6632
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6634
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6635
hardcode_libdir_separator=:
6636
hardcode_shlibpath_var=no
6640
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6641
hardcode_libdir_flag_spec='-R$libdir'
6643
hardcode_shlibpath_var=no
6647
hardcode_libdir_flag_spec='-L$libdir'
6648
hardcode_minus_L=yes
6649
allow_undefined_flag=unsupported
6650
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'
6651
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6655
if test "$GCC" = yes; then
6656
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6657
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'
6659
allow_undefined_flag=' -expect_unresolved \*'
6660
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'
6662
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6663
hardcode_libdir_separator=:
6666
osf4* | osf5*) # as osf3* with the addition of -msym flag
6667
if test "$GCC" = yes; then
6668
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6669
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'
6670
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6672
allow_undefined_flag=' -expect_unresolved \*'
6673
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'
6674
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6675
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6677
#Both c and cxx compiler support -rpath directly
6678
hardcode_libdir_flag_spec='-rpath $libdir'
6680
hardcode_libdir_separator=:
6684
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6685
hardcode_shlibpath_var=no
6686
runpath_var=LD_RUN_PATH
6687
hardcode_runpath_var=yes
6691
no_undefined_flag=' -z defs'
6692
# $CC -shared without GNU ld will not create a library from C++
6693
# object files and a static libstdc++, better avoid it by now
6694
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6695
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6696
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6697
hardcode_libdir_flag_spec='-R$libdir'
6698
hardcode_shlibpath_var=no
6700
solaris2.[0-5] | solaris2.[0-5].*) ;;
6701
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6702
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6704
link_all_deplibs=yes
6708
if test "x$host_vendor" = xsequent; then
6709
# Use $CC to link under sequent, because it throws in some extra .o
6710
# files that make .init and .fini sections work.
6711
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6713
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6715
hardcode_libdir_flag_spec='-L$libdir'
6717
hardcode_minus_L=yes
6718
hardcode_shlibpath_var=no
6722
if test "x$host_vendor" = xsno; then
6723
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6724
hardcode_direct=yes # is this really true???
6726
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6727
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6729
runpath_var='LD_RUN_PATH'
6730
hardcode_shlibpath_var=no
6734
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6735
hardcode_shlibpath_var=no
6736
export_dynamic_flag_spec='-Bexport'
6740
no_undefined_flag=' -z text'
6741
# $CC -shared without GNU ld will not create a library from C++
6742
# object files and a static libstdc++, better avoid it by now
6743
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6744
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6745
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6746
hardcode_libdir_flag_spec=
6747
hardcode_shlibpath_var=no
6748
runpath_var='LD_RUN_PATH'
6752
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6753
hardcode_libdir_flag_spec='-L$libdir'
6754
hardcode_shlibpath_var=no
6758
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6759
hardcode_libdir_flag_spec='-L$libdir'
6760
hardcode_shlibpath_var=no
6764
if test -d /usr/nec; then
6765
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6766
hardcode_shlibpath_var=no
6767
runpath_var=LD_RUN_PATH
6768
hardcode_runpath_var=yes
6774
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6777
hardcode_shlibpath_var=no
6778
hardcode_runpath_var=yes
6779
runpath_var=LD_RUN_PATH
6782
sysv5uw7* | unixware7*)
6783
no_undefined_flag='${wl}-z ${wl}text'
6784
if test "$GCC" = yes; then
6785
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6787
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6789
runpath_var='LD_RUN_PATH'
6790
hardcode_shlibpath_var=no
6798
echo "$as_me:6798: result: $ld_shlibs" >&5
6799
echo "${ECHO_T}$ld_shlibs" >&6
6800
test "$ld_shlibs" = no && can_build_shared=no
6804
## FIXME: this should be a separate macro
6806
# Check hardcoding attributes.
6807
echo "$as_me:6807: checking how to hardcode library paths into programs" >&5
6808
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6810
if test -n "$hardcode_libdir_flag_spec" || \
6811
test -n "$runpath_var"; then
6813
# We can hardcode non-existant directories.
6814
if test "$hardcode_direct" != no &&
6815
# If the only mechanism to avoid hardcoding is shlibpath_var, we
6816
# have to relink, otherwise we might link with an installed library
6817
# when we should be linking with a yet-to-be-installed one
6818
## test "$hardcode_shlibpath_var" != no &&
6819
test "$hardcode_minus_L" != no; then
6820
# Linking always hardcodes the temporary library directory.
6821
hardcode_action=relink
6823
# We can link without hardcoding, and we can hardcode nonexisting dirs.
6824
hardcode_action=immediate
6827
# We cannot hardcode anything, or else we can only hardcode existing
6829
hardcode_action=unsupported
6831
echo "$as_me:6831: result: $hardcode_action" >&5
6832
echo "${ECHO_T}$hardcode_action" >&6
6836
## FIXME: this should be a separate macro
6840
echo "$as_me:6840: checking whether stripping libraries is possible" >&5
6841
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6842
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6843
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6844
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6845
echo "$as_me:6845: result: yes" >&5
6846
echo "${ECHO_T}yes" >&6
6848
echo "$as_me:6848: result: no" >&5
6849
echo "${ECHO_T}no" >&6
6854
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6855
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6857
## FIXME: this should be a separate macro
6859
# PORTME Fill in your ld.so characteristics
6860
echo "$as_me:6860: checking dynamic linker characteristics" >&5
6861
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6863
libname_spec='lib$name'
6870
shlibpath_overrides_runpath=unknown
6872
dynamic_linker="$host_os ld.so"
6873
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6874
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6879
library_names_spec='${libname}${release}.so$versuffix $libname.a'
6880
shlibpath_var=LIBPATH
6882
# AIX has no versioning support, so we append a major version to the name.
6883
soname_spec='${libname}${release}.so$major'
6888
if test "$host_cpu" = ia64; then
6889
# AIX 5 supports IA64
6890
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6891
shlibpath_var=LD_LIBRARY_PATH
6893
# With GCC up to 2.95.x, collect2 would create an import file
6894
# for dependence libraries. The import file would start with
6895
# the line `#! .'. This would cause the generated library to
6896
# depend on `.', always an invalid library. This was fixed in
6897
# development snapshots of GCC prior to 3.0.
6899
aix4 | aix4.[01] | aix4.[01].*)
6900
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6902
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6909
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6910
# soname into executable. Probably we can add versioning support to
6911
# collect2, so additional links can be useful in future.
6912
if test "$aix_use_runtimelinking" = yes; then
6913
# If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
6914
# lib<name>.a to let people know that these are not typical AIX shared libraries.
6915
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6917
# We preserve .a as extension for shared libraries through AIX4.2
6918
# and later when we are not doing run time linking.
6919
library_names_spec='${libname}${release}.a $libname.a'
6920
soname_spec='${libname}${release}.so$major'
6922
shlibpath_var=LIBPATH
6923
deplibs_check_method=pass_all
6928
library_names_spec='$libname.ixlibrary $libname.a'
6929
# Create ${libname}_ixlibrary.a entries in /sys/libs.
6930
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'
6934
library_names_spec='${libname}.so'
6935
dynamic_linker="$host_os ld.so"
6936
shlibpath_var=LIBRARY_PATH
6942
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6943
soname_spec='${libname}${release}.so$major'
6944
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6945
shlibpath_var=LD_LIBRARY_PATH
6946
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6947
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6948
export_dynamic_flag_spec=-rdynamic
6949
# the default ld.so.conf also contains /usr/contrib/lib and
6950
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6951
# libtool to hard-code these into programs
6954
cygwin* | mingw* | pw32*)
6955
version_type=windows
6958
case $GCC,$host_os in
6960
library_names_spec='$libname.dll.a'
6961
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6962
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6963
dldir=$destdir/`dirname \$dlpath`~
6964
test -d \$dldir || mkdir -p \$dldir~
6965
$install_prog .libs/$dlname \$dldir/$dlname'
6966
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6967
dlpath=$dir/\$dldll~
6971
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6972
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6975
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6978
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6981
dynamic_linker='Win32 ld.exe'
6982
# FIXME: first we should search . and the directory the executable is in
6986
darwin* | rhapsody*)
6987
dynamic_linker="$host_os dyld"
6991
# FIXME: Relying on posixy $() will cause problems for
6992
# cross-compilation, but unfortunately the echo tests do not
6993
# yet detect zsh echo's removal of \ escapes.
6994
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6995
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6996
shlibpath_overrides_runpath=yes
6997
shlibpath_var=DYLD_LIBRARY_PATH
7005
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7006
version_type=freebsd-$objformat
7007
case $version_type in
7009
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7014
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7018
shlibpath_var=LD_LIBRARY_PATH
7021
shlibpath_overrides_runpath=yes
7024
shlibpath_overrides_runpath=no
7025
hardcode_into_libs=yes
7034
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7035
soname_spec='${libname}${release}.so$major'
7036
shlibpath_var=LD_LIBRARY_PATH
7037
hardcode_into_libs=yes
7040
hpux9* | hpux10* | hpux11*)
7041
# Give a soname corresponding to the major version so that dld.sl refuses to
7042
# link against other versions.
7043
dynamic_linker="$host_os dld.sl"
7047
shlibpath_var=SHLIB_PATH
7048
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7049
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7050
soname_spec='${libname}${release}.sl$major'
7051
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7052
postinstall_cmds='chmod 555 $lib'
7059
soname_spec='${libname}${release}.so$major'
7060
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7066
case $LD in # libtool.m4 will add one of these switches to LD
7067
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7068
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7069
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7070
*) libsuff= shlibsuff= libmagic=never-match;;
7074
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7075
shlibpath_overrides_runpath=no
7076
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7077
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7080
# No shared lib support for Linux oldld, aout, or coff.
7081
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7085
# This must be Linux ELF.
7090
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7091
soname_spec='${libname}${release}.so$major'
7092
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7093
shlibpath_var=LD_LIBRARY_PATH
7094
shlibpath_overrides_runpath=no
7095
# This implies no fast_install, which is unacceptable.
7096
# Some rework will be needed to allow for fast_install
7097
# before this can be enabled.
7098
hardcode_into_libs=yes
7100
# We used to test for /lib/ld.so.1 and disable shared libraries on
7101
# powerpc, because MkLinux only supported shared libraries with the
7102
# GNU dynamic linker. Since this was broken with cross compilers,
7103
# most powerpc-linux boxes support dynamic linking these days and
7104
# people can always --disable-shared, the test was removed, and we
7105
# assume the GNU/Linux dynamic linker is in use.
7106
dynamic_linker='GNU/Linux ld.so'
7113
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7114
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7115
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7116
dynamic_linker='NetBSD (a.out) ld.so'
7118
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7119
soname_spec='${libname}${release}.so$major'
7120
dynamic_linker='NetBSD ld.elf_so'
7122
shlibpath_var=LD_LIBRARY_PATH
7123
shlibpath_overrides_runpath=yes
7124
hardcode_into_libs=yes
7129
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7130
shlibpath_var=LD_LIBRARY_PATH
7131
shlibpath_overrides_runpath=yes
7136
if test "$with_gnu_ld" = yes; then
7140
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7141
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7142
shlibpath_var=LD_LIBRARY_PATH
7146
libname_spec='$name'
7148
library_names_spec='$libname.dll $libname.a'
7149
dynamic_linker='OS/2 ld.exe'
7150
shlibpath_var=LIBPATH
7153
osf3* | osf4* | osf5*)
7156
soname_spec='${libname}${release}.so'
7157
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7158
shlibpath_var=LD_LIBRARY_PATH
7159
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7160
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7165
soname_spec='${libname}${release}.so$major'
7166
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7167
shlibpath_var=LD_LIBRARY_PATH
7174
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7175
soname_spec='${libname}${release}.so$major'
7176
shlibpath_var=LD_LIBRARY_PATH
7177
shlibpath_overrides_runpath=yes
7178
hardcode_into_libs=yes
7179
# ldd complains unless libraries are executable
7180
postinstall_cmds='chmod +x $lib'
7185
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7186
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7187
shlibpath_var=LD_LIBRARY_PATH
7188
shlibpath_overrides_runpath=yes
7189
if test "$with_gnu_ld" = yes; then
7195
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7197
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7198
soname_spec='${libname}${release}.so$major'
7199
shlibpath_var=LD_LIBRARY_PATH
7200
case $host_vendor in
7202
shlibpath_overrides_runpath=no
7207
shlibpath_overrides_runpath=no
7208
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7215
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7216
soname_spec='${libname}${release}.so$major'
7217
shlibpath_var=LD_LIBRARY_PATH
7224
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7225
soname_spec='${libname}${release}.so$major'
7226
shlibpath_var=LD_LIBRARY_PATH
7230
if test -d /usr/nec ;then
7232
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7233
soname_spec='$libname.so.$major'
7234
shlibpath_var=LD_LIBRARY_PATH
7238
#### local change for Sleepycat DB:
7239
# Add in the QNX support from QNX.
7244
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7245
soname_spec='${libname}${release}.so$major'
7246
shlibpath_var=LD_LIBRARY_PATH
7247
shlibpath_overrides_runpath=yes
7254
echo "$as_me:7254: result: $dynamic_linker" >&5
7255
echo "${ECHO_T}$dynamic_linker" >&6
7256
test "$dynamic_linker" = no && can_build_shared=no
7260
## FIXME: this should be a separate macro
7262
# Report the final consequences.
7263
echo "$as_me:7263: checking if libtool supports shared libraries" >&5
7264
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7265
echo "$as_me:7265: result: $can_build_shared" >&5
7266
echo "${ECHO_T}$can_build_shared" >&6
7270
if test "$hardcode_action" = relink; then
7271
# Fast installation is not supported
7272
enable_fast_install=no
7273
elif test "$shlibpath_overrides_runpath" = yes ||
7274
test "$enable_shared" = no; then
7275
# Fast installation is not necessary
7276
enable_fast_install=needless
7279
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7280
if test "$GCC" = yes; then
7281
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7284
if test "x$enable_dlopen" != xyes; then
7285
enable_dlopen=unknown
7286
enable_dlopen_self=unknown
7287
enable_dlopen_self_static=unknown
7294
lt_cv_dlopen="load_add_on"
7296
lt_cv_dlopen_self=yes
7299
cygwin* | mingw* | pw32*)
7300
lt_cv_dlopen="LoadLibrary"
7305
echo "$as_me:7305: checking for dlopen in -ldl" >&5
7306
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7307
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7308
echo $ECHO_N "(cached) $ECHO_C" >&6
7310
ac_check_lib_save_LIBS=$LIBS
7312
cat >conftest.$ac_ext <<_ACEOF
7313
#line 7313 "configure"
7314
#include "confdefs.h"
7316
/* Override any gcc2 internal prototype to avoid an error. */
7320
/* We use char because int might match the return type of a gcc2
7321
builtin and then its argument prototype would still apply. */
7331
rm -f conftest.$ac_objext conftest$ac_exeext
7332
if { (eval echo "$as_me:7332: \"$ac_link\"") >&5
7333
(eval $ac_link) 2>&5
7335
echo "$as_me:7335: \$? = $ac_status" >&5
7336
(exit $ac_status); } &&
7337
{ ac_try='test -s conftest$ac_exeext'
7338
{ (eval echo "$as_me:7338: \"$ac_try\"") >&5
7341
echo "$as_me:7341: \$? = $ac_status" >&5
7342
(exit $ac_status); }; }; then
7343
ac_cv_lib_dl_dlopen=yes
7345
echo "$as_me: failed program was:" >&5
7346
cat conftest.$ac_ext >&5
7347
ac_cv_lib_dl_dlopen=no
7349
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7350
LIBS=$ac_check_lib_save_LIBS
7352
echo "$as_me:7352: result: $ac_cv_lib_dl_dlopen" >&5
7353
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7354
if test $ac_cv_lib_dl_dlopen = yes; then
7355
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7357
echo "$as_me:7357: checking for dlopen" >&5
7358
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7359
if test "${ac_cv_func_dlopen+set}" = set; then
7360
echo $ECHO_N "(cached) $ECHO_C" >&6
7362
cat >conftest.$ac_ext <<_ACEOF
7363
#line 7363 "configure"
7364
#include "confdefs.h"
7365
/* System header to define __stub macros and hopefully few prototypes,
7366
which can conflict with char dlopen (); below. */
7368
/* Override any gcc2 internal prototype to avoid an error. */
7372
/* We use char because int might match the return type of a gcc2
7373
builtin and then its argument prototype would still apply. */
7380
/* The GNU C library defines this for functions which it implements
7381
to always fail with ENOSYS. Some functions are actually named
7382
something starting with __ and the normal name is an alias. */
7383
#if defined (__stub_dlopen) || defined (__stub___dlopen)
7393
rm -f conftest.$ac_objext conftest$ac_exeext
7394
if { (eval echo "$as_me:7394: \"$ac_link\"") >&5
7395
(eval $ac_link) 2>&5
7397
echo "$as_me:7397: \$? = $ac_status" >&5
7398
(exit $ac_status); } &&
7399
{ ac_try='test -s conftest$ac_exeext'
7400
{ (eval echo "$as_me:7400: \"$ac_try\"") >&5
7403
echo "$as_me:7403: \$? = $ac_status" >&5
7404
(exit $ac_status); }; }; then
7405
ac_cv_func_dlopen=yes
7407
echo "$as_me: failed program was:" >&5
7408
cat conftest.$ac_ext >&5
7409
ac_cv_func_dlopen=no
7411
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7413
echo "$as_me:7413: result: $ac_cv_func_dlopen" >&5
7414
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7415
if test $ac_cv_func_dlopen = yes; then
7416
lt_cv_dlopen="dlopen"
7418
echo "$as_me:7418: checking for shl_load" >&5
7419
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7420
if test "${ac_cv_func_shl_load+set}" = set; then
7421
echo $ECHO_N "(cached) $ECHO_C" >&6
7423
cat >conftest.$ac_ext <<_ACEOF
7424
#line 7424 "configure"
7425
#include "confdefs.h"
7426
/* System header to define __stub macros and hopefully few prototypes,
7427
which can conflict with char shl_load (); below. */
7429
/* Override any gcc2 internal prototype to avoid an error. */
7433
/* We use char because int might match the return type of a gcc2
7434
builtin and then its argument prototype would still apply. */
7441
/* The GNU C library defines this for functions which it implements
7442
to always fail with ENOSYS. Some functions are actually named
7443
something starting with __ and the normal name is an alias. */
7444
#if defined (__stub_shl_load) || defined (__stub___shl_load)
7454
rm -f conftest.$ac_objext conftest$ac_exeext
7455
if { (eval echo "$as_me:7455: \"$ac_link\"") >&5
7456
(eval $ac_link) 2>&5
7458
echo "$as_me:7458: \$? = $ac_status" >&5
7459
(exit $ac_status); } &&
7460
{ ac_try='test -s conftest$ac_exeext'
7461
{ (eval echo "$as_me:7461: \"$ac_try\"") >&5
7464
echo "$as_me:7464: \$? = $ac_status" >&5
7465
(exit $ac_status); }; }; then
7466
ac_cv_func_shl_load=yes
7468
echo "$as_me: failed program was:" >&5
7469
cat conftest.$ac_ext >&5
7470
ac_cv_func_shl_load=no
7472
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7474
echo "$as_me:7474: result: $ac_cv_func_shl_load" >&5
7475
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7476
if test $ac_cv_func_shl_load = yes; then
7477
lt_cv_dlopen="shl_load"
7479
echo "$as_me:7479: checking for dlopen in -lsvld" >&5
7480
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7481
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7482
echo $ECHO_N "(cached) $ECHO_C" >&6
7484
ac_check_lib_save_LIBS=$LIBS
7486
cat >conftest.$ac_ext <<_ACEOF
7487
#line 7487 "configure"
7488
#include "confdefs.h"
7490
/* Override any gcc2 internal prototype to avoid an error. */
7494
/* We use char because int might match the return type of a gcc2
7495
builtin and then its argument prototype would still apply. */
7505
rm -f conftest.$ac_objext conftest$ac_exeext
7506
if { (eval echo "$as_me:7506: \"$ac_link\"") >&5
7507
(eval $ac_link) 2>&5
7509
echo "$as_me:7509: \$? = $ac_status" >&5
7510
(exit $ac_status); } &&
7511
{ ac_try='test -s conftest$ac_exeext'
7512
{ (eval echo "$as_me:7512: \"$ac_try\"") >&5
7515
echo "$as_me:7515: \$? = $ac_status" >&5
7516
(exit $ac_status); }; }; then
7517
ac_cv_lib_svld_dlopen=yes
7519
echo "$as_me: failed program was:" >&5
7520
cat conftest.$ac_ext >&5
7521
ac_cv_lib_svld_dlopen=no
7523
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7524
LIBS=$ac_check_lib_save_LIBS
7526
echo "$as_me:7526: result: $ac_cv_lib_svld_dlopen" >&5
7527
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7528
if test $ac_cv_lib_svld_dlopen = yes; then
7529
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7531
echo "$as_me:7531: checking for shl_load in -ldld" >&5
7532
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7533
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7534
echo $ECHO_N "(cached) $ECHO_C" >&6
7536
ac_check_lib_save_LIBS=$LIBS
7538
cat >conftest.$ac_ext <<_ACEOF
7539
#line 7539 "configure"
7540
#include "confdefs.h"
7542
/* Override any gcc2 internal prototype to avoid an error. */
7546
/* We use char because int might match the return type of a gcc2
7547
builtin and then its argument prototype would still apply. */
7557
rm -f conftest.$ac_objext conftest$ac_exeext
7558
if { (eval echo "$as_me:7558: \"$ac_link\"") >&5
7559
(eval $ac_link) 2>&5
7561
echo "$as_me:7561: \$? = $ac_status" >&5
7562
(exit $ac_status); } &&
7563
{ ac_try='test -s conftest$ac_exeext'
7564
{ (eval echo "$as_me:7564: \"$ac_try\"") >&5
7567
echo "$as_me:7567: \$? = $ac_status" >&5
7568
(exit $ac_status); }; }; then
7569
ac_cv_lib_dld_shl_load=yes
7571
echo "$as_me: failed program was:" >&5
7572
cat conftest.$ac_ext >&5
7573
ac_cv_lib_dld_shl_load=no
7575
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7576
LIBS=$ac_check_lib_save_LIBS
7578
echo "$as_me:7578: result: $ac_cv_lib_dld_shl_load" >&5
7579
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7580
if test $ac_cv_lib_dld_shl_load = yes; then
7581
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7595
if test "x$lt_cv_dlopen" != xno; then
7601
case $lt_cv_dlopen in
7603
save_CPPFLAGS="$CPPFLAGS"
7604
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7606
save_LDFLAGS="$LDFLAGS"
7607
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7610
LIBS="$lt_cv_dlopen_libs $LIBS"
7612
echo "$as_me:7612: checking whether a program can dlopen itself" >&5
7613
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7614
if test "${lt_cv_dlopen_self+set}" = set; then
7615
echo $ECHO_N "(cached) $ECHO_C" >&6
7617
if test "$cross_compiling" = yes; then :
7618
lt_cv_dlopen_self=cross
7620
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7621
lt_status=$lt_dlunknown
7622
cat > conftest.$ac_ext <<EOF
7623
#line 7623 "configure"
7624
#include "confdefs.h"
7633
# define LT_DLGLOBAL RTLD_GLOBAL
7636
# define LT_DLGLOBAL DL_GLOBAL
7638
# define LT_DLGLOBAL 0
7642
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7643
find out it does not work in some platform. */
7644
#ifndef LT_DLLAZY_OR_NOW
7646
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7649
# define LT_DLLAZY_OR_NOW DL_LAZY
7652
# define LT_DLLAZY_OR_NOW RTLD_NOW
7655
# define LT_DLLAZY_OR_NOW DL_NOW
7657
# define LT_DLLAZY_OR_NOW 0
7665
extern "C" void exit (int);
7668
void fnord() { int i=42;}
7671
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7672
int status = $lt_dlunknown;
7676
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7677
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7678
/* dlclose (self); */
7684
if { (eval echo "$as_me:7684: \"$ac_link\"") >&5
7685
(eval $ac_link) 2>&5
7687
echo "$as_me:7687: \$? = $ac_status" >&5
7688
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7689
(./conftest; exit; ) 2>/dev/null
7692
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7693
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7694
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7697
# compilation failed
7698
lt_cv_dlopen_self=no
7704
echo "$as_me:7704: result: $lt_cv_dlopen_self" >&5
7705
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7707
if test "x$lt_cv_dlopen_self" = xyes; then
7708
LDFLAGS="$LDFLAGS $link_static_flag"
7709
echo "$as_me:7709: checking whether a statically linked program can dlopen itself" >&5
7710
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7711
if test "${lt_cv_dlopen_self_static+set}" = set; then
7712
echo $ECHO_N "(cached) $ECHO_C" >&6
7714
if test "$cross_compiling" = yes; then :
7715
lt_cv_dlopen_self_static=cross
7717
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7718
lt_status=$lt_dlunknown
7719
cat > conftest.$ac_ext <<EOF
7720
#line 7720 "configure"
7721
#include "confdefs.h"
7730
# define LT_DLGLOBAL RTLD_GLOBAL
7733
# define LT_DLGLOBAL DL_GLOBAL
7735
# define LT_DLGLOBAL 0
7739
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7740
find out it does not work in some platform. */
7741
#ifndef LT_DLLAZY_OR_NOW
7743
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7746
# define LT_DLLAZY_OR_NOW DL_LAZY
7749
# define LT_DLLAZY_OR_NOW RTLD_NOW
7752
# define LT_DLLAZY_OR_NOW DL_NOW
7754
# define LT_DLLAZY_OR_NOW 0
7762
extern "C" void exit (int);
7765
void fnord() { int i=42;}
7768
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7769
int status = $lt_dlunknown;
7773
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7774
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7775
/* dlclose (self); */
7781
if { (eval echo "$as_me:7781: \"$ac_link\"") >&5
7782
(eval $ac_link) 2>&5
7784
echo "$as_me:7784: \$? = $ac_status" >&5
7785
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7786
(./conftest; exit; ) 2>/dev/null
7789
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7790
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7791
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7794
# compilation failed
7795
lt_cv_dlopen_self_static=no
7801
echo "$as_me:7801: result: $lt_cv_dlopen_self_static" >&5
7802
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7805
CPPFLAGS="$save_CPPFLAGS"
7806
LDFLAGS="$save_LDFLAGS"
7811
case $lt_cv_dlopen_self in
7812
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7813
*) enable_dlopen_self=unknown ;;
7816
case $lt_cv_dlopen_self_static in
7817
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7818
*) enable_dlopen_self_static=unknown ;;
7822
## FIXME: this should be a separate macro
7824
if test "$enable_shared" = yes && test "$GCC" = yes; then
7825
case $archive_cmds in
7827
# FIXME: we may have to deal with multi-command sequences.
7830
# Test whether the compiler implicitly links with -lc since on some
7831
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7832
# to ld, don't add -lc before -lgcc.
7833
echo "$as_me:7833: checking whether -lc should be explicitly linked in" >&5
7834
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7835
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7836
echo $ECHO_N "(cached) $ECHO_C" >&6
7839
echo 'static int dummy;' > conftest.$ac_ext
7841
if { (eval echo "$as_me:7841: \"$ac_compile\"") >&5
7842
(eval $ac_compile) 2>&5
7844
echo "$as_me:7844: \$? = $ac_status" >&5
7845
(exit $ac_status); }; then
7848
libobjs=conftest.$ac_objext
7850
wl=$lt_cv_prog_cc_wl
7856
save_allow_undefined_flag=$allow_undefined_flag
7857
allow_undefined_flag=
7858
if { (eval echo "$as_me:7858: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7859
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7861
echo "$as_me:7861: \$? = $ac_status" >&5
7862
(exit $ac_status); }
7864
lt_cv_archive_cmds_need_lc=no
7866
lt_cv_archive_cmds_need_lc=yes
7868
allow_undefined_flag=$save_allow_undefined_flag
7870
cat conftest.err 1>&5
7874
echo "$as_me:7874: result: $lt_cv_archive_cmds_need_lc" >&5
7875
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7879
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7883
## FIXME: this should be a separate macro
7885
# The second clause should only fire when bootstrapping the
7886
# libtool distribution, otherwise you forgot to ship ltmain.sh
7887
# with your package, and you will get complaints that there are
7888
# no rules to generate ltmain.sh.
7889
if test -f "$ltmain"; then
7892
# If there is no Makefile yet, we rely on a make rule to execute
7893
# `config.status --recheck' to rerun these tests and create the
7894
# libtool script then.
7895
test -f Makefile && make "$ltmain"
7898
if test -f "$ltmain"; then
7899
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7902
echo creating $ofile
7904
# Now quote all the things that may contain metacharacters while being
7905
# careful not to overquote the AC_SUBSTed values. We take copies of the
7906
# variables and quote the copies for generation of the libtool script.
7907
for var in echo old_CC old_CFLAGS \
7908
AR AR_FLAGS CC LD LN_S NM SHELL \
7909
reload_flag reload_cmds wl \
7910
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7911
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7912
library_names_spec soname_spec \
7913
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7914
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7915
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7916
old_striplib striplib file_magic_cmd export_symbols_cmds \
7917
deplibs_check_method allow_undefined_flag no_undefined_flag \
7918
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7919
hardcode_libdir_flag_spec hardcode_libdir_separator \
7920
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7921
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7924
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7925
old_postinstall_cmds | old_postuninstall_cmds | \
7926
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7927
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7928
postinstall_cmds | postuninstall_cmds | \
7929
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7930
# Double-quote double-evaled strings.
7931
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7934
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7939
cat <<__EOF__ > "${ofile}T"
7942
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7943
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7944
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7946
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7947
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7949
# This program is free software; you can redistribute it and/or modify
7950
# it under the terms of the GNU General Public License as published by
7951
# the Free Software Foundation; either version 2 of the License, or
7952
# (at your option) any later version.
7954
# This program is distributed in the hope that it will be useful, but
7955
# WITHOUT ANY WARRANTY; without even the implied warranty of
7956
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7957
# General Public License for more details.
7959
# You should have received a copy of the GNU General Public License
7960
# along with this program; if not, write to the Free Software
7961
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7963
# As a special exception to the GNU General Public License, if you
7964
# distribute this file as part of a program that contains a
7965
# configuration script generated by Autoconf, you may include it under
7966
# the same distribution terms that you use for the rest of that program.
7968
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7969
Xsed="sed -e s/^X//"
7971
# The HP-UX ksh and POSIX shell print the target directory to stdout
7973
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7975
# ### BEGIN LIBTOOL CONFIG
7977
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7979
# Shell to use when invoking shell scripts.
7982
# Whether or not to build shared libraries.
7983
build_libtool_libs=$enable_shared
7985
# Whether or not to add -lc for building shared libraries.
7986
build_libtool_need_lc=$need_lc
7988
# Whether or not to build static libraries.
7989
build_old_libs=$enable_static
7991
# Whether or not to optimize for fast installation.
7992
fast_install=$enable_fast_install
7995
host_alias=$host_alias
7998
# An echo program that does not interpret backslashes.
8003
AR_FLAGS=$lt_AR_FLAGS
8005
# The default C compiler.
8008
# Is the compiler the GNU C compiler?
8011
# The linker used to build libraries.
8014
# Whether we need hard or soft links.
8017
# A BSD-compatible nm program.
8020
# A symbol stripping program
8023
# Used to examine libraries when file_magic_cmd begins "file"
8024
MAGIC_CMD=$MAGIC_CMD
8026
# Used on cygwin: DLL creation program.
8029
# Used on cygwin: object dumper.
8032
# Used on cygwin: assembler.
8035
# The name of the directory that contains temporary libtool files.
8038
# How to create reloadable object files.
8039
reload_flag=$lt_reload_flag
8040
reload_cmds=$lt_reload_cmds
8042
# How to pass a linker flag through the compiler.
8045
# Object file suffix (normally "o").
8048
# Old archive suffix (normally "a").
8051
# Executable file suffix (normally "").
8054
# Additional compiler flags for building library objects.
8055
pic_flag=$lt_pic_flag
8058
# Does compiler simultaneously support -c and -o options?
8059
compiler_c_o=$lt_compiler_c_o
8061
# Can we write directly to a .lo ?
8062
compiler_o_lo=$lt_compiler_o_lo
8064
# Must we lock files when doing compilation ?
8065
need_locks=$lt_need_locks
8067
# Do we need the lib prefix for modules?
8068
need_lib_prefix=$need_lib_prefix
8070
# Do we need a version for libraries?
8071
need_version=$need_version
8073
# Whether dlopen is supported.
8074
dlopen_support=$enable_dlopen
8076
# Whether dlopen of programs is supported.
8077
dlopen_self=$enable_dlopen_self
8079
# Whether dlopen of statically linked programs is supported.
8080
dlopen_self_static=$enable_dlopen_self_static
8082
# Compiler flag to prevent dynamic linking.
8083
link_static_flag=$lt_link_static_flag
8085
# Compiler flag to turn off builtin functions.
8086
no_builtin_flag=$lt_no_builtin_flag
8088
# Compiler flag to allow reflexive dlopens.
8089
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8091
# Compiler flag to generate shared objects directly from archives.
8092
whole_archive_flag_spec=$lt_whole_archive_flag_spec
8094
# Compiler flag to generate thread-safe objects.
8095
thread_safe_flag_spec=$lt_thread_safe_flag_spec
8097
# Library versioning type.
8098
version_type=$version_type
8100
# Format of library name prefix.
8101
libname_spec=$lt_libname_spec
8103
# List of archive names. First name is the real one, the rest are links.
8104
# The last name is the one that the linker finds with -lNAME.
8105
library_names_spec=$lt_library_names_spec
8107
# The coded name of the library, if different from the real name.
8108
soname_spec=$lt_soname_spec
8110
# Commands used to build and install an old-style archive.
8112
old_archive_cmds=$lt_old_archive_cmds
8113
old_postinstall_cmds=$lt_old_postinstall_cmds
8114
old_postuninstall_cmds=$lt_old_postuninstall_cmds
8116
# Create an old-style archive from a shared archive.
8117
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8119
# Create a temporary old-style archive to link instead of a shared archive.
8120
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8122
# Commands used to build and install a shared archive.
8123
archive_cmds=$lt_archive_cmds
8124
archive_expsym_cmds=$lt_archive_expsym_cmds
8125
postinstall_cmds=$lt_postinstall_cmds
8126
postuninstall_cmds=$lt_postuninstall_cmds
8128
# Commands to strip libraries.
8129
old_striplib=$lt_old_striplib
8130
striplib=$lt_striplib
8132
# Method to check whether dependent libraries are shared objects.
8133
deplibs_check_method=$lt_deplibs_check_method
8135
# Command to use when deplibs_check_method == file_magic.
8136
file_magic_cmd=$lt_file_magic_cmd
8138
# Flag that allows shared libraries with undefined symbols to be built.
8139
allow_undefined_flag=$lt_allow_undefined_flag
8141
# Flag that forces no undefined symbols.
8142
no_undefined_flag=$lt_no_undefined_flag
8144
# Commands used to finish a libtool library installation in a directory.
8145
finish_cmds=$lt_finish_cmds
8147
# Same as above, but a single script fragment to be evaled but not shown.
8148
finish_eval=$lt_finish_eval
8150
# Take the output of nm and produce a listing of raw symbols and C names.
8151
global_symbol_pipe=$lt_global_symbol_pipe
8153
# Transform the output of nm in a proper C declaration
8154
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8156
# This is the shared library runtime path variable.
8157
runpath_var=$runpath_var
8159
# This is the shared library path variable.
8160
shlibpath_var=$shlibpath_var
8162
# Is shlibpath searched before the hard-coded library search path?
8163
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8165
# How to hardcode a shared library path into an executable.
8166
hardcode_action=$hardcode_action
8168
# Whether we should hardcode library paths into libraries.
8169
hardcode_into_libs=$hardcode_into_libs
8171
# Flag to hardcode \$libdir into a binary during linking.
8172
# This must work even if \$libdir does not exist.
8173
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8175
# Whether we need a single -rpath flag with a separated argument.
8176
hardcode_libdir_separator=$lt_hardcode_libdir_separator
8178
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8180
hardcode_direct=$hardcode_direct
8182
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8184
hardcode_minus_L=$hardcode_minus_L
8186
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8187
# the resulting binary.
8188
hardcode_shlibpath_var=$hardcode_shlibpath_var
8190
# Variables whose values should be saved in libtool wrapper scripts and
8191
# restored at relink time.
8192
variables_saved_for_relink="$variables_saved_for_relink"
8194
# Whether libtool must link a program against all its dependency libraries.
8195
link_all_deplibs=$link_all_deplibs
8197
# Compile-time system search path for libraries
8198
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8200
# Run-time system search path for libraries
8201
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8203
# Fix the shell variable \$srcfile for the compiler.
8204
fix_srcfile_path="$fix_srcfile_path"
8206
# Set to yes if exported symbols are required.
8207
always_export_symbols=$always_export_symbols
8209
# The commands to list exported symbols.
8210
export_symbols_cmds=$lt_export_symbols_cmds
8212
# The commands to extract the exported symbol list from a shared archive.
8213
extract_expsyms_cmds=$lt_extract_expsyms_cmds
8215
# Symbols that should not be listed in the preloaded symbols.
8216
exclude_expsyms=$lt_exclude_expsyms
8218
# Symbols that must always be exported.
8219
include_expsyms=$lt_include_expsyms
8221
# ### END LIBTOOL CONFIG
8227
cat <<\EOF >> "${ofile}T"
8229
# AIX sometimes has problems with the GCC collect2 program. For some
8230
# reason, if we set the COLLECT_NAMES environment variable, the problems
8231
# vanish in a puff of smoke.
8232
if test "X${COLLECT_NAMES+set}" != Xset; then
8234
export COLLECT_NAMES
8241
cygwin* | mingw* | pw32* | os2*)
8242
cat <<'EOF' >> "${ofile}T"
8243
# This is a source program that is used to create dlls on Windows
8244
# Don't remove nor modify the starting and closing comments
8245
# /* ltdll.c starts here */
8246
# #define WIN32_LEAN_AND_MEAN
8247
# #include <windows.h>
8248
# #undef WIN32_LEAN_AND_MEAN
8249
# #include <stdio.h>
8251
# #ifndef __CYGWIN__
8252
# # ifdef __CYGWIN32__
8253
# # define __CYGWIN__ __CYGWIN32__
8257
# #ifdef __cplusplus
8260
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8261
# #ifdef __cplusplus
8266
# #include <cygwin/cygwin_dll.h>
8267
# DECLARE_CYGWIN_DLL( DllMain );
8269
# HINSTANCE __hDllInstance_base;
8272
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8274
# __hDllInstance_base = hInst;
8277
# /* ltdll.c ends here */
8278
# This is a source program that is used to create import libraries
8279
# on Windows for dlls which lack them. Don't remove nor modify the
8280
# starting and closing comments
8281
# /* impgen.c starts here */
8282
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8284
# This file is part of GNU libtool.
8286
# This program is free software; you can redistribute it and/or modify
8287
# it under the terms of the GNU General Public License as published by
8288
# the Free Software Foundation; either version 2 of the License, or
8289
# (at your option) any later version.
8291
# This program is distributed in the hope that it will be useful,
8292
# but WITHOUT ANY WARRANTY; without even the implied warranty of
8293
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8294
# GNU General Public License for more details.
8296
# You should have received a copy of the GNU General Public License
8297
# along with this program; if not, write to the Free Software
8298
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8301
# #include <stdio.h> /* for printf() */
8302
# #include <unistd.h> /* for open(), lseek(), read() */
8303
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8304
# #include <string.h> /* for strdup() */
8306
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8308
# #define O_BINARY 0
8311
# static unsigned int
8312
# pe_get16 (fd, offset)
8316
# unsigned char b[2];
8317
# lseek (fd, offset, SEEK_SET);
8319
# return b[0] + (b[1]<<8);
8322
# static unsigned int
8323
# pe_get32 (fd, offset)
8327
# unsigned char b[4];
8328
# lseek (fd, offset, SEEK_SET);
8330
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8333
# static unsigned int
8337
# unsigned char *b = ptr;
8338
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8347
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8348
# unsigned long export_rva, export_size, nsections, secptr, expptr;
8349
# unsigned long name_rvas, nexp;
8350
# unsigned char *expdata, *erva;
8351
# char *filename, *dll_name;
8353
# filename = argv[1];
8355
# dll = open(filename, O_RDONLY|O_BINARY);
8359
# dll_name = filename;
8361
# for (i=0; filename[i]; i++)
8362
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8363
# dll_name = filename + i +1;
8365
# pe_header_offset = pe_get32 (dll, 0x3c);
8366
# opthdr_ofs = pe_header_offset + 4 + 20;
8367
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8369
# if (num_entries < 1) /* no exports */
8372
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8373
# export_size = pe_get32 (dll, opthdr_ofs + 100);
8374
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8375
# secptr = (pe_header_offset + 4 + 20 +
8376
# pe_get16 (dll, pe_header_offset + 4 + 16));
8379
# for (i = 0; i < nsections; i++)
8382
# unsigned long secptr1 = secptr + 40 * i;
8383
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8384
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8385
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8386
# lseek(dll, secptr1, SEEK_SET);
8387
# read(dll, sname, 8);
8388
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8390
# expptr = fptr + (export_rva - vaddr);
8391
# if (export_rva + export_size > vaddr + vsize)
8392
# export_size = vsize - (export_rva - vaddr);
8397
# expdata = (unsigned char*)malloc(export_size);
8398
# lseek (dll, expptr, SEEK_SET);
8399
# read (dll, expdata, export_size);
8400
# erva = expdata - export_rva;
8402
# nexp = pe_as32 (expdata+24);
8403
# name_rvas = pe_as32 (expdata+32);
8405
# printf ("EXPORTS\n");
8406
# for (i = 0; i<nexp; i++)
8408
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8409
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8414
# /* impgen.c ends here */
8420
# We use sed instead of cat because bash on DJGPP gets confused if
8421
# if finds mixed CR/LF and LF-only lines. Since sed operates in
8422
# text mode, it properly converts lines to CR/LF. This bash problem
8423
# is reportedly fixed, but why not run on old versions too?
8424
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8426
mv -f "${ofile}T" "$ofile" || \
8427
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8433
# This can be used to rebuild libtool when needed
8434
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8436
# Always use our own libtool.
8437
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8439
# Prevent multiple expansion
8441
LIBTOOL="\$(SHELL) ./libtool"
8442
SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([a-zA-Z0-9_]*\).*/\1/' ./libtool`
8443
SOFLAGS="-rpath \$(libdir)"
8445
SAVE_CC="${MAKEFILE_CC}"
8446
SAVE_CXX="${MAKEFILE_CXX}"
8447
MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${SAVE_CC}"
8448
MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${SAVE_CXX}"
8449
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
8450
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${SAVE_CXX}"
8452
SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version"
8453
INSTALLER="\$(LIBTOOL) --mode=install cp"
8455
# Configure for shared libraries, static libraries, or both. If both are
8456
# configured, build the utilities and example programs with shared versions.
8458
# $o is set to ".o" or ".lo", and is the file suffix used in the Makefile
8460
if test "$enable_shared" = "no"; then
8461
DEFAULT_LIB="\$(libdb)"
8462
DEFAULT_LIB_CXX="\$(libcxx)"
8463
DEFAULT_INSTALL="install_static"
8467
if test "$enable_shared" = "yes"; then
8468
DEFAULT_LIB="\$(libso_target)"
8469
DEFAULT_LIB_CXX="\$(libxso_target)"
8470
DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared"
8471
POSTLINK="\$(LIBTOOL) --mode=execute true"
8476
if test "$db_cv_cxx" = "yes"; then
8477
if test "$enable_shared" = "no"; then
8478
DEFAULT_INSTALL="${DEFAULT_INSTALL} install_static_cxx"
8480
if test "$enable_shared" = "yes"; then
8481
ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libxso_target)"
8482
DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared_cxx"
8485
# Fill in C++ library for Embedix.
8486
EMBEDIX_ECD_CXX='<OPTION db-extra>\
8489
PROMPT=Include BerkeleyDB C++ library?\
8491
/usr/include/db_cxx.h\
8492
/usr/lib/libdb_cxx-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.so\
8495
libdb_cxx-@DB_VERSION_MAJOR@.@DB_VERSION_MINOR@.so\
8502
STORAGE_SIZE=523612\
8507
# Optional Java API.
8508
if test "$db_cv_java" = "yes"; then
8509
# Java requires shared libraries.
8510
if test "$enable_shared" = "no"; then
8511
{ { echo "$as_me:8511: error: Java requires shared libraries" >&5
8512
echo "$as_me: error: Java requires shared libraries" >&2;}
8513
{ (exit 1); exit 1; }; }
8516
if test -n "$ac_tool_prefix"; then
8517
# Extract the first word of "${ac_tool_prefix}javac", so it can be a program name with args.
8518
set dummy ${ac_tool_prefix}javac; ac_word=$2
8519
echo "$as_me:8519: checking for $ac_word" >&5
8520
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8521
if test "${ac_cv_prog_JAVAC+set}" = set; then
8522
echo $ECHO_N "(cached) $ECHO_C" >&6
8524
if test -n "$JAVAC"; then
8525
ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
8527
ac_save_IFS=$IFS; IFS=$ac_path_separator
8529
for ac_dir in $ac_dummy; do
8531
test -z "$ac_dir" && ac_dir=.
8532
$as_executable_p "$ac_dir/$ac_word" || continue
8533
ac_cv_prog_JAVAC="${ac_tool_prefix}javac"
8534
echo "$as_me:8534: found $ac_dir/$ac_word" >&5
8540
JAVAC=$ac_cv_prog_JAVAC
8541
if test -n "$JAVAC"; then
8542
echo "$as_me:8542: result: $JAVAC" >&5
8543
echo "${ECHO_T}$JAVAC" >&6
8545
echo "$as_me:8545: result: no" >&5
8546
echo "${ECHO_T}no" >&6
8550
if test -z "$ac_cv_prog_JAVAC"; then
8552
# Extract the first word of "javac", so it can be a program name with args.
8553
set dummy javac; ac_word=$2
8554
echo "$as_me:8554: checking for $ac_word" >&5
8555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8556
if test "${ac_cv_prog_ac_ct_JAVAC+set}" = set; then
8557
echo $ECHO_N "(cached) $ECHO_C" >&6
8559
if test -n "$ac_ct_JAVAC"; then
8560
ac_cv_prog_ac_ct_JAVAC="$ac_ct_JAVAC" # Let the user override the test.
8562
ac_save_IFS=$IFS; IFS=$ac_path_separator
8564
for ac_dir in $ac_dummy; do
8566
test -z "$ac_dir" && ac_dir=.
8567
$as_executable_p "$ac_dir/$ac_word" || continue
8568
ac_cv_prog_ac_ct_JAVAC="javac"
8569
echo "$as_me:8569: found $ac_dir/$ac_word" >&5
8573
test -z "$ac_cv_prog_ac_ct_JAVAC" && ac_cv_prog_ac_ct_JAVAC="nojavac"
8576
ac_ct_JAVAC=$ac_cv_prog_ac_ct_JAVAC
8577
if test -n "$ac_ct_JAVAC"; then
8578
echo "$as_me:8578: result: $ac_ct_JAVAC" >&5
8579
echo "${ECHO_T}$ac_ct_JAVAC" >&6
8581
echo "$as_me:8581: result: no" >&5
8582
echo "${ECHO_T}no" >&6
8587
JAVAC="$ac_cv_prog_JAVAC"
8590
if test "$JAVAC" = "nojavac"; then
8591
{ { echo "$as_me:8591: error: no javac compiler in PATH" >&5
8592
echo "$as_me: error: no javac compiler in PATH" >&2;}
8593
{ (exit 1); exit 1; }; }
8595
if test -n "$ac_tool_prefix"; then
8596
# Extract the first word of "${ac_tool_prefix}jar", so it can be a program name with args.
8597
set dummy ${ac_tool_prefix}jar; ac_word=$2
8598
echo "$as_me:8598: checking for $ac_word" >&5
8599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8600
if test "${ac_cv_prog_JAR+set}" = set; then
8601
echo $ECHO_N "(cached) $ECHO_C" >&6
8603
if test -n "$JAR"; then
8604
ac_cv_prog_JAR="$JAR" # Let the user override the test.
8606
ac_save_IFS=$IFS; IFS=$ac_path_separator
8608
for ac_dir in $ac_dummy; do
8610
test -z "$ac_dir" && ac_dir=.
8611
$as_executable_p "$ac_dir/$ac_word" || continue
8612
ac_cv_prog_JAR="${ac_tool_prefix}jar"
8613
echo "$as_me:8613: found $ac_dir/$ac_word" >&5
8620
if test -n "$JAR"; then
8621
echo "$as_me:8621: result: $JAR" >&5
8622
echo "${ECHO_T}$JAR" >&6
8624
echo "$as_me:8624: result: no" >&5
8625
echo "${ECHO_T}no" >&6
8629
if test -z "$ac_cv_prog_JAR"; then
8631
# Extract the first word of "jar", so it can be a program name with args.
8632
set dummy jar; ac_word=$2
8633
echo "$as_me:8633: checking for $ac_word" >&5
8634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8635
if test "${ac_cv_prog_ac_ct_JAR+set}" = set; then
8636
echo $ECHO_N "(cached) $ECHO_C" >&6
8638
if test -n "$ac_ct_JAR"; then
8639
ac_cv_prog_ac_ct_JAR="$ac_ct_JAR" # Let the user override the test.
8641
ac_save_IFS=$IFS; IFS=$ac_path_separator
8643
for ac_dir in $ac_dummy; do
8645
test -z "$ac_dir" && ac_dir=.
8646
$as_executable_p "$ac_dir/$ac_word" || continue
8647
ac_cv_prog_ac_ct_JAR="jar"
8648
echo "$as_me:8648: found $ac_dir/$ac_word" >&5
8652
test -z "$ac_cv_prog_ac_ct_JAR" && ac_cv_prog_ac_ct_JAR="nojar"
8655
ac_ct_JAR=$ac_cv_prog_ac_ct_JAR
8656
if test -n "$ac_ct_JAR"; then
8657
echo "$as_me:8657: result: $ac_ct_JAR" >&5
8658
echo "${ECHO_T}$ac_ct_JAR" >&6
8660
echo "$as_me:8660: result: no" >&5
8661
echo "${ECHO_T}no" >&6
8666
JAR="$ac_cv_prog_JAR"
8669
if test "$JAR" = "nojar"; then
8670
{ { echo "$as_me:8670: error: no jar utility in PATH" >&5
8671
echo "$as_me: error: no jar utility in PATH" >&2;}
8672
{ (exit 1); exit 1; }; }
8674
# Extract the first word of "javac", so it can be a program name with args.
8675
set dummy javac; ac_word=$2
8676
echo "$as_me:8676: checking for $ac_word" >&5
8677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8678
if test "${ac_cv_path_JAVACABS+set}" = set; then
8679
echo $ECHO_N "(cached) $ECHO_C" >&6
8683
ac_cv_path_JAVACABS="$JAVACABS" # Let the user override the test with a path.
8686
ac_save_IFS=$IFS; IFS=$ac_path_separator
8688
for ac_dir in $ac_dummy; do
8690
test -z "$ac_dir" && ac_dir=.
8691
if $as_executable_p "$ac_dir/$ac_word"; then
8692
ac_cv_path_JAVACABS="$ac_dir/$ac_word"
8693
echo "$as_me:8693: found $ac_dir/$ac_word" >&5
8698
test -z "$ac_cv_path_JAVACABS" && ac_cv_path_JAVACABS="nojavac"
8702
JAVACABS=$ac_cv_path_JAVACABS
8704
if test -n "$JAVACABS"; then
8705
echo "$as_me:8705: result: $JAVACABS" >&5
8706
echo "${ECHO_T}$JAVACABS" >&6
8708
echo "$as_me:8708: result: no" >&5
8709
echo "${ECHO_T}no" >&6
8712
ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libjso_target)"
8713
ADDITIONAL_LANG="$ADDITIONAL_LANG java"
8714
DEFAULT_INSTALL="${DEFAULT_INSTALL} install_java"
8716
# find the include directory relative to the javac executable
8717
while ls -ld "$JAVACABS" 2>/dev/null | grep " -> " >/dev/null; do
8718
echo "$as_me:8718: checking symlink for $JAVACABS" >&5
8719
echo $ECHO_N "checking symlink for $JAVACABS... $ECHO_C" >&6
8720
JAVACLINK=`ls -ld $JAVACABS | sed 's/.* -> //'`
8721
case "$JAVACLINK" in
8722
/*) JAVACABS="$JAVACLINK";;
8723
# 'X' avoids triggering unwanted echo options.
8724
*) JAVACABS=`echo "X$JAVACABS" | sed -e 's/^X//' -e 's:[^/]*$::'`"$JAVACLINK";;
8726
echo "$as_me:8726: result: $JAVACABS" >&5
8727
echo "${ECHO_T}$JAVACABS" >&6
8729
JTOPDIR=`echo "$JAVACABS" | sed -e 's://*:/:g' -e 's:/[^/]*$::'`
8731
darwin*) JTOPDIR=`echo "$JTOPDIR" | sed -e s:/[^/]*$::'`
8732
JNIHEADERDIR="$JTOPDIR/Headers";;
8733
*) JNIHEADERDIR="$JTOPDIR/include";;
8735
if test -f "$JNIHEADERDIR/jni.h"; then
8736
CPPFLAGS="$CPPFLAGSS -I$JNIHEADERDIR"
8738
JTOPDIR=`echo "$JTOPDIR" | sed -e 's:/[^/]*$::'`
8739
if test -f "$JTOPDIR/include/jni.h"; then
8740
CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include"
8742
{ { echo "$as_me:8742: error: cannot find java include files" >&5
8743
echo "$as_me: error: cannot find java include files" >&2;}
8744
{ (exit 1); exit 1; }; }
8748
# get the likely subdirectories for system specific java includes
8750
solaris*) JINCSUBDIRS="solaris";;
8751
linux*) JINCSUBDIRS="linux genunix";;
8752
*) JINCSUBDIRS="genunix";;
8755
for JINCSUBDIR in $JINCSUBDIRS
8757
if test -d "$JTOPDIR/include/$JINCSUBDIR"; then
8758
CPPFLAGS="$CPPFLAGS -I$JTOPDIR/include/$JINCSUBDIR"
8765
# Optional RPC client/server.
8766
if test "$db_cv_rpc" = "yes"; then
8767
cat >>confdefs.h <<\EOF
8771
RPC_CLIENT_OBJS="\$(RPC_CLIENT_OBJS)"
8772
ADDITIONAL_PROGS="berkeley_db_svc $ADDITIONAL_PROGS"
8774
EMBEDIX_ECD_RPC="/usr/bin/berkeley_db_svc"
8778
echo "$as_me:8778: checking for svc_run" >&5
8779
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
8780
if test "${ac_cv_func_svc_run+set}" = set; then
8781
echo $ECHO_N "(cached) $ECHO_C" >&6
8783
cat >conftest.$ac_ext <<_ACEOF
8784
#line 8784 "configure"
8785
#include "confdefs.h"
8786
/* System header to define __stub macros and hopefully few prototypes,
8787
which can conflict with char svc_run (); below. */
8789
/* Override any gcc2 internal prototype to avoid an error. */
8793
/* We use char because int might match the return type of a gcc2
8794
builtin and then its argument prototype would still apply. */
8801
/* The GNU C library defines this for functions which it implements
8802
to always fail with ENOSYS. Some functions are actually named
8803
something starting with __ and the normal name is an alias. */
8804
#if defined (__stub_svc_run) || defined (__stub___svc_run)
8814
rm -f conftest.$ac_objext conftest$ac_exeext
8815
if { (eval echo "$as_me:8815: \"$ac_link\"") >&5
8816
(eval $ac_link) 2>&5
8818
echo "$as_me:8818: \$? = $ac_status" >&5
8819
(exit $ac_status); } &&
8820
{ ac_try='test -s conftest$ac_exeext'
8821
{ (eval echo "$as_me:8821: \"$ac_try\"") >&5
8824
echo "$as_me:8824: \$? = $ac_status" >&5
8825
(exit $ac_status); }; }; then
8826
ac_cv_func_svc_run=yes
8828
echo "$as_me: failed program was:" >&5
8829
cat conftest.$ac_ext >&5
8830
ac_cv_func_svc_run=no
8832
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8834
echo "$as_me:8834: result: $ac_cv_func_svc_run" >&5
8835
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
8836
if test $ac_cv_func_svc_run = yes; then
8839
echo "$as_me:8839: checking for svc_run in -lnsl" >&5
8840
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
8841
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
8842
echo $ECHO_N "(cached) $ECHO_C" >&6
8844
ac_check_lib_save_LIBS=$LIBS
8846
cat >conftest.$ac_ext <<_ACEOF
8847
#line 8847 "configure"
8848
#include "confdefs.h"
8850
/* Override any gcc2 internal prototype to avoid an error. */
8854
/* We use char because int might match the return type of a gcc2
8855
builtin and then its argument prototype would still apply. */
8865
rm -f conftest.$ac_objext conftest$ac_exeext
8866
if { (eval echo "$as_me:8866: \"$ac_link\"") >&5
8867
(eval $ac_link) 2>&5
8869
echo "$as_me:8869: \$? = $ac_status" >&5
8870
(exit $ac_status); } &&
8871
{ ac_try='test -s conftest$ac_exeext'
8872
{ (eval echo "$as_me:8872: \"$ac_try\"") >&5
8875
echo "$as_me:8875: \$? = $ac_status" >&5
8876
(exit $ac_status); }; }; then
8877
ac_cv_lib_nsl_svc_run=yes
8879
echo "$as_me: failed program was:" >&5
8880
cat conftest.$ac_ext >&5
8881
ac_cv_lib_nsl_svc_run=no
8883
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8884
LIBS=$ac_check_lib_save_LIBS
8886
echo "$as_me:8886: result: $ac_cv_lib_nsl_svc_run" >&5
8887
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
8888
if test $ac_cv_lib_nsl_svc_run = yes; then
8889
LIBS="-lnsl $LIBS"; LIBTSO_LIBS="-lnsl $LIBTSO_LIBS"
8895
echo "$as_me:8895: checking for svc_run" >&5
8896
echo $ECHO_N "checking for svc_run... $ECHO_C" >&6
8897
if test "${ac_cv_func_svc_run+set}" = set; then
8898
echo $ECHO_N "(cached) $ECHO_C" >&6
8900
cat >conftest.$ac_ext <<_ACEOF
8901
#line 8901 "configure"
8902
#include "confdefs.h"
8903
/* System header to define __stub macros and hopefully few prototypes,
8904
which can conflict with char svc_run (); below. */
8906
/* Override any gcc2 internal prototype to avoid an error. */
8910
/* We use char because int might match the return type of a gcc2
8911
builtin and then its argument prototype would still apply. */
8918
/* The GNU C library defines this for functions which it implements
8919
to always fail with ENOSYS. Some functions are actually named
8920
something starting with __ and the normal name is an alias. */
8921
#if defined (__stub_svc_run) || defined (__stub___svc_run)
8931
rm -f conftest.$ac_objext conftest$ac_exeext
8932
if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
8933
(eval $ac_link) 2>&5
8935
echo "$as_me:8935: \$? = $ac_status" >&5
8936
(exit $ac_status); } &&
8937
{ ac_try='test -s conftest$ac_exeext'
8938
{ (eval echo "$as_me:8938: \"$ac_try\"") >&5
8941
echo "$as_me:8941: \$? = $ac_status" >&5
8942
(exit $ac_status); }; }; then
8943
ac_cv_func_svc_run=yes
8945
echo "$as_me: failed program was:" >&5
8946
cat conftest.$ac_ext >&5
8947
ac_cv_func_svc_run=no
8949
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8951
echo "$as_me:8951: result: $ac_cv_func_svc_run" >&5
8952
echo "${ECHO_T}$ac_cv_func_svc_run" >&6
8953
if test $ac_cv_func_svc_run = yes; then
8957
echo "$as_me:8957: checking for svc_run in -lnsl" >&5
8958
echo $ECHO_N "checking for svc_run in -lnsl... $ECHO_C" >&6
8959
if test "${ac_cv_lib_nsl_svc_run+set}" = set; then
8960
echo $ECHO_N "(cached) $ECHO_C" >&6
8962
ac_check_lib_save_LIBS=$LIBS
8964
cat >conftest.$ac_ext <<_ACEOF
8965
#line 8965 "configure"
8966
#include "confdefs.h"
8968
/* Override any gcc2 internal prototype to avoid an error. */
8972
/* We use char because int might match the return type of a gcc2
8973
builtin and then its argument prototype would still apply. */
8983
rm -f conftest.$ac_objext conftest$ac_exeext
8984
if { (eval echo "$as_me:8984: \"$ac_link\"") >&5
8985
(eval $ac_link) 2>&5
8987
echo "$as_me:8987: \$? = $ac_status" >&5
8988
(exit $ac_status); } &&
8989
{ ac_try='test -s conftest$ac_exeext'
8990
{ (eval echo "$as_me:8990: \"$ac_try\"") >&5
8993
echo "$as_me:8993: \$? = $ac_status" >&5
8994
(exit $ac_status); }; }; then
8995
ac_cv_lib_nsl_svc_run=yes
8997
echo "$as_me: failed program was:" >&5
8998
cat conftest.$ac_ext >&5
8999
ac_cv_lib_nsl_svc_run=no
9001
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9002
LIBS=$ac_check_lib_save_LIBS
9004
echo "$as_me:9004: result: $ac_cv_lib_nsl_svc_run" >&5
9005
echo "${ECHO_T}$ac_cv_lib_nsl_svc_run" >&6
9006
if test $ac_cv_lib_nsl_svc_run = yes; then
9007
cat >>confdefs.h <<EOF
9008
#define HAVE_LIBNSL 1
9020
if test "$db_cv_tcl" = "yes"; then
9021
if test "$enable_shared" = "no"; then
9022
{ { echo "$as_me:9022: error: Tcl requires shared libraries" >&5
9023
echo "$as_me: error: Tcl requires shared libraries" >&2;}
9024
{ (exit 1); exit 1; }; }
9027
if test "${ac_cv_c_tclconfig+set}" = set; then
9028
echo $ECHO_N "(cached) $ECHO_C" >&6
9031
# First check to see if --with-tclconfig was specified.
9032
if test "${with_tclconfig}" != no; then
9033
if test -f "${with_tclconfig}/tclConfig.sh" ; then
9034
ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
9036
{ { echo "$as_me:9036: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
9037
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
9038
{ (exit 1); exit 1; }; }
9042
# check in a few common install locations
9043
if test x"${ac_cv_c_tclconfig}" = x ; then
9044
for i in `ls -d /usr/local/lib 2>/dev/null` ; do
9045
if test -f "$i/tclConfig.sh" ; then
9046
ac_cv_c_tclconfig=`(cd $i; pwd)`
9054
if test x"${ac_cv_c_tclconfig}" = x ; then
9055
TCL_BIN_DIR="# no Tcl configs found"
9056
{ { echo "$as_me:9056: error: can't find Tcl configuration definitions" >&5
9057
echo "$as_me: error: can't find Tcl configuration definitions" >&2;}
9058
{ (exit 1); exit 1; }; }
9060
TCL_BIN_DIR=${ac_cv_c_tclconfig}
9063
echo "$as_me:9063: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
9064
echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
9066
if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
9067
echo "$as_me:9067: result: loading" >&5
9068
echo "${ECHO_T}loading" >&6
9069
. $TCL_BIN_DIR/tclConfig.sh
9071
echo "$as_me:9071: result: file not found" >&5
9072
echo "${ECHO_T}file not found" >&6
9076
# The eval is required to do the TCL_DBGX substitution in the
9077
# TCL_LIB_FILE variable
9079
eval TCL_LIB_FILE="${TCL_LIB_FILE}"
9080
eval TCL_LIB_FLAG="${TCL_LIB_FLAG}"
9081
eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
9083
TCL_TCLSH="${TCL_PREFIX}/bin/tclsh${TCL_VERSION}"
9085
if test x"$TCL_PREFIX" != x && test -f "$TCL_PREFIX/include/tcl.h"; then
9086
TCFLAGS="-I$TCL_PREFIX/include"
9089
LIBS="$LIBS $TCL_LIB_SPEC $TCL_LIBS"
9091
ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libtso_target)"
9092
DEFAULT_INSTALL="${DEFAULT_INSTALL} install_tcl"
9095
# Optional DB 1.85 compatibility API.
9096
if test "$db_cv_compat185" = "yes"; then
9097
ADDITIONAL_INCS="db_185.h $ADDITIONAL_INCS"
9098
ADDITIONAL_OBJS="db185${o} $ADDITIONAL_OBJS"
9101
# Optional utilities.
9102
if test "$db_cv_dump185" = "yes"; then
9103
ADDITIONAL_PROGS="db_dump185 $ADDITIONAL_PROGS"
9106
# test servers, example programs.
9107
# Include -lpthread if the library exists.
9108
echo "$as_me:9108: checking for sched_yield in -lrt" >&5
9109
echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
9110
if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
9111
echo $ECHO_N "(cached) $ECHO_C" >&6
9113
ac_check_lib_save_LIBS=$LIBS
9115
cat >conftest.$ac_ext <<_ACEOF
9116
#line 9116 "configure"
9117
#include "confdefs.h"
9119
/* Override any gcc2 internal prototype to avoid an error. */
9123
/* We use char because int might match the return type of a gcc2
9124
builtin and then its argument prototype would still apply. */
9125
char sched_yield ();
9134
rm -f conftest.$ac_objext conftest$ac_exeext
9135
if { (eval echo "$as_me:9135: \"$ac_link\"") >&5
9136
(eval $ac_link) 2>&5
9138
echo "$as_me:9138: \$? = $ac_status" >&5
9139
(exit $ac_status); } &&
9140
{ ac_try='test -s conftest$ac_exeext'
9141
{ (eval echo "$as_me:9141: \"$ac_try\"") >&5
9144
echo "$as_me:9144: \$? = $ac_status" >&5
9145
(exit $ac_status); }; }; then
9146
ac_cv_lib_rt_sched_yield=yes
9148
echo "$as_me: failed program was:" >&5
9149
cat conftest.$ac_ext >&5
9150
ac_cv_lib_rt_sched_yield=no
9152
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9153
LIBS=$ac_check_lib_save_LIBS
9155
echo "$as_me:9155: result: $ac_cv_lib_rt_sched_yield" >&5
9156
echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
9157
if test $ac_cv_lib_rt_sched_yield = yes; then
9158
TEST_LIBS="-lrt $TEST_LIBS"
9161
echo "$as_me:9161: checking for pthread_create in -lpthread" >&5
9162
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
9163
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
9164
echo $ECHO_N "(cached) $ECHO_C" >&6
9166
ac_check_lib_save_LIBS=$LIBS
9167
LIBS="-lpthread $LIBS"
9168
cat >conftest.$ac_ext <<_ACEOF
9169
#line 9169 "configure"
9170
#include "confdefs.h"
9172
/* Override any gcc2 internal prototype to avoid an error. */
9176
/* We use char because int might match the return type of a gcc2
9177
builtin and then its argument prototype would still apply. */
9178
char pthread_create ();
9187
rm -f conftest.$ac_objext conftest$ac_exeext
9188
if { (eval echo "$as_me:9188: \"$ac_link\"") >&5
9189
(eval $ac_link) 2>&5
9191
echo "$as_me:9191: \$? = $ac_status" >&5
9192
(exit $ac_status); } &&
9193
{ ac_try='test -s conftest$ac_exeext'
9194
{ (eval echo "$as_me:9194: \"$ac_try\"") >&5
9197
echo "$as_me:9197: \$? = $ac_status" >&5
9198
(exit $ac_status); }; }; then
9199
ac_cv_lib_pthread_pthread_create=yes
9201
echo "$as_me: failed program was:" >&5
9202
cat conftest.$ac_ext >&5
9203
ac_cv_lib_pthread_pthread_create=no
9205
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9206
LIBS=$ac_check_lib_save_LIBS
9208
echo "$as_me:9208: result: $ac_cv_lib_pthread_pthread_create" >&5
9209
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
9210
if test $ac_cv_lib_pthread_pthread_create = yes; then
9211
TEST_LIBS="-lpthread $TEST_LIBS"
9214
# Checks for system/compiler characteristics.
9215
echo "$as_me:9215: checking whether byte ordering is bigendian" >&5
9216
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9217
if test "${ac_cv_c_bigendian+set}" = set; then
9218
echo $ECHO_N "(cached) $ECHO_C" >&6
9220
ac_cv_c_bigendian=unknown
9221
# See if sys/param.h defines the BYTE_ORDER macro.
9222
cat >conftest.$ac_ext <<_ACEOF
9223
#line 9223 "configure"
9224
#include "confdefs.h"
9225
#include <sys/types.h>
9226
#include <sys/param.h>
9231
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9239
rm -f conftest.$ac_objext
9240
if { (eval echo "$as_me:9240: \"$ac_compile\"") >&5
9241
(eval $ac_compile) 2>&5
9243
echo "$as_me:9243: \$? = $ac_status" >&5
9244
(exit $ac_status); } &&
9245
{ ac_try='test -s conftest.$ac_objext'
9246
{ (eval echo "$as_me:9246: \"$ac_try\"") >&5
9249
echo "$as_me:9249: \$? = $ac_status" >&5
9250
(exit $ac_status); }; }; then
9251
# It does; now see whether it defined to BIG_ENDIAN or not.
9252
cat >conftest.$ac_ext <<_ACEOF
9253
#line 9253 "configure"
9254
#include "confdefs.h"
9255
#include <sys/types.h>
9256
#include <sys/param.h>
9261
#if BYTE_ORDER != BIG_ENDIAN
9269
rm -f conftest.$ac_objext
9270
if { (eval echo "$as_me:9270: \"$ac_compile\"") >&5
9271
(eval $ac_compile) 2>&5
9273
echo "$as_me:9273: \$? = $ac_status" >&5
9274
(exit $ac_status); } &&
9275
{ ac_try='test -s conftest.$ac_objext'
9276
{ (eval echo "$as_me:9276: \"$ac_try\"") >&5
9279
echo "$as_me:9279: \$? = $ac_status" >&5
9280
(exit $ac_status); }; }; then
9281
ac_cv_c_bigendian=yes
9283
echo "$as_me: failed program was:" >&5
9284
cat conftest.$ac_ext >&5
9285
ac_cv_c_bigendian=no
9287
rm -f conftest.$ac_objext conftest.$ac_ext
9289
echo "$as_me: failed program was:" >&5
9290
cat conftest.$ac_ext >&5
9292
rm -f conftest.$ac_objext conftest.$ac_ext
9293
if test $ac_cv_c_bigendian = unknown; then
9294
if test "$cross_compiling" = yes; then
9295
{ { echo "$as_me:9295: error: cannot run test program while cross compiling" >&5
9296
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9297
{ (exit 1); exit 1; }; }
9299
cat >conftest.$ac_ext <<_ACEOF
9300
#line 9300 "configure"
9301
#include "confdefs.h"
9305
/* Are we little or big endian? From Harbison&Steele. */
9309
char c[sizeof (long)];
9312
exit (u.c[sizeof (long) - 1] == 1);
9315
rm -f conftest$ac_exeext
9316
if { (eval echo "$as_me:9316: \"$ac_link\"") >&5
9317
(eval $ac_link) 2>&5
9319
echo "$as_me:9319: \$? = $ac_status" >&5
9320
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9321
{ (eval echo "$as_me:9321: \"$ac_try\"") >&5
9324
echo "$as_me:9324: \$? = $ac_status" >&5
9325
(exit $ac_status); }; }; then
9326
ac_cv_c_bigendian=no
9328
echo "$as_me: program exited with status $ac_status" >&5
9329
echo "$as_me: failed program was:" >&5
9330
cat conftest.$ac_ext >&5
9331
ac_cv_c_bigendian=yes
9333
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
9337
echo "$as_me:9337: result: $ac_cv_c_bigendian" >&5
9338
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9339
if test $ac_cv_c_bigendian = yes; then
9341
cat >>confdefs.h <<\EOF
9342
#define WORDS_BIGENDIAN 1
9347
echo "$as_me:9347: checking for $CC option to accept ANSI C" >&5
9348
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9349
if test "${ac_cv_prog_cc_stdc+set}" = set; then
9350
echo $ECHO_N "(cached) $ECHO_C" >&6
9352
ac_cv_prog_cc_stdc=no
9354
cat >conftest.$ac_ext <<_ACEOF
9355
#line 9355 "configure"
9356
#include "confdefs.h"
9359
#include <sys/types.h>
9360
#include <sys/stat.h>
9361
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9362
struct buf { int x; };
9363
FILE * (*rcsopen) (struct buf *, struct stat *, int);
9364
static char *e (p, i)
9370
static char *f (char * (*g) (char **, int), char **p, ...)
9375
s = g (p, va_arg (v,int));
9379
int test (int i, double x);
9380
struct s1 {int (*f) (int a);};
9381
struct s2 {int (*f) (double a);};
9382
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9388
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9393
# Don't try gcc -ansi; that turns off useful extensions and
9394
# breaks some systems' header files.
9395
# AIX -qlanglvl=ansi
9396
# Ultrix and OSF/1 -std1
9397
# HP-UX 10.20 and later -Ae
9398
# HP-UX older versions -Aa -D_HPUX_SOURCE
9399
# SVR4 -Xc -D__EXTENSIONS__
9400
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9402
CC="$ac_save_CC $ac_arg"
9403
rm -f conftest.$ac_objext
9404
if { (eval echo "$as_me:9404: \"$ac_compile\"") >&5
9405
(eval $ac_compile) 2>&5
9407
echo "$as_me:9407: \$? = $ac_status" >&5
9408
(exit $ac_status); } &&
9409
{ ac_try='test -s conftest.$ac_objext'
9410
{ (eval echo "$as_me:9410: \"$ac_try\"") >&5
9413
echo "$as_me:9413: \$? = $ac_status" >&5
9414
(exit $ac_status); }; }; then
9415
ac_cv_prog_cc_stdc=$ac_arg
9418
echo "$as_me: failed program was:" >&5
9419
cat conftest.$ac_ext >&5
9421
rm -f conftest.$ac_objext
9423
rm -f conftest.$ac_ext conftest.$ac_objext
9428
case "x$ac_cv_prog_cc_stdc" in
9430
echo "$as_me:9430: result: none needed" >&5
9431
echo "${ECHO_T}none needed" >&6 ;;
9433
echo "$as_me:9433: result: $ac_cv_prog_cc_stdc" >&5
9434
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9435
CC="$CC $ac_cv_prog_cc_stdc" ;;
9438
echo "$as_me:9438: checking for an ANSI C-conforming const" >&5
9439
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9440
if test "${ac_cv_c_const+set}" = set; then
9441
echo $ECHO_N "(cached) $ECHO_C" >&6
9443
cat >conftest.$ac_ext <<_ACEOF
9444
#line 9444 "configure"
9445
#include "confdefs.h"
9450
/* FIXME: Include the comments suggested by Paul. */
9452
/* Ultrix mips cc rejects this. */
9453
typedef int charset[2];
9455
/* SunOS 4.1.1 cc rejects this. */
9456
char const *const *ccp;
9458
/* NEC SVR4.0.2 mips cc rejects this. */
9459
struct point {int x, y;};
9460
static struct point const zero = {0,0};
9461
/* AIX XL C 1.02.0.0 rejects this.
9462
It does not let you subtract one const X* pointer from another in
9463
an arm of an if-expression whose if-part is not a constant
9465
const char *g = "string";
9466
ccp = &g + (g ? g-g : 0);
9467
/* HPUX 7.0 cc rejects these. */
9470
ccp = (char const *const *) p;
9471
{ /* SCO 3.2v4 cc rejects this. */
9473
char const *s = 0 ? (char *) 0 : (char const *) 0;
9477
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9479
const int *foo = &x[0];
9482
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9483
typedef const int *iptr;
9487
{ /* AIX XL C 1.02.0.0 rejects this saying
9488
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9489
struct s { int j; const int *ap[3]; };
9490
struct s *b; b->j = 5;
9492
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9501
rm -f conftest.$ac_objext
9502
if { (eval echo "$as_me:9502: \"$ac_compile\"") >&5
9503
(eval $ac_compile) 2>&5
9505
echo "$as_me:9505: \$? = $ac_status" >&5
9506
(exit $ac_status); } &&
9507
{ ac_try='test -s conftest.$ac_objext'
9508
{ (eval echo "$as_me:9508: \"$ac_try\"") >&5
9511
echo "$as_me:9511: \$? = $ac_status" >&5
9512
(exit $ac_status); }; }; then
9515
echo "$as_me: failed program was:" >&5
9516
cat conftest.$ac_ext >&5
9519
rm -f conftest.$ac_objext conftest.$ac_ext
9521
echo "$as_me:9521: result: $ac_cv_c_const" >&5
9522
echo "${ECHO_T}$ac_cv_c_const" >&6
9523
if test $ac_cv_c_const = no; then
9525
cat >>confdefs.h <<\EOF
9531
# Checks for include files, structures.
9532
echo "$as_me:9532: checking whether stat file-mode macros are broken" >&5
9533
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9534
if test "${ac_cv_header_stat_broken+set}" = set; then
9535
echo $ECHO_N "(cached) $ECHO_C" >&6
9537
cat >conftest.$ac_ext <<_ACEOF
9538
#line 9538 "configure"
9539
#include "confdefs.h"
9540
#include <sys/types.h>
9541
#include <sys/stat.h>
9543
#if defined(S_ISBLK) && defined(S_IFDIR)
9544
# if S_ISBLK (S_IFDIR)
9549
#if defined(S_ISBLK) && defined(S_IFCHR)
9550
# if S_ISBLK (S_IFCHR)
9555
#if defined(S_ISLNK) && defined(S_IFREG)
9556
# if S_ISLNK (S_IFREG)
9561
#if defined(S_ISSOCK) && defined(S_IFREG)
9562
# if S_ISSOCK (S_IFREG)
9568
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9569
egrep "You lose" >/dev/null 2>&1; then
9570
ac_cv_header_stat_broken=yes
9572
ac_cv_header_stat_broken=no
9577
echo "$as_me:9577: result: $ac_cv_header_stat_broken" >&5
9578
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9579
if test $ac_cv_header_stat_broken = yes; then
9581
cat >>confdefs.h <<\EOF
9582
#define STAT_MACROS_BROKEN 1
9587
echo "$as_me:9587: checking whether time.h and sys/time.h may both be included" >&5
9588
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9589
if test "${ac_cv_header_time+set}" = set; then
9590
echo $ECHO_N "(cached) $ECHO_C" >&6
9592
cat >conftest.$ac_ext <<_ACEOF
9593
#line 9593 "configure"
9594
#include "confdefs.h"
9595
#include <sys/types.h>
9596
#include <sys/time.h>
9607
rm -f conftest.$ac_objext
9608
if { (eval echo "$as_me:9608: \"$ac_compile\"") >&5
9609
(eval $ac_compile) 2>&5
9611
echo "$as_me:9611: \$? = $ac_status" >&5
9612
(exit $ac_status); } &&
9613
{ ac_try='test -s conftest.$ac_objext'
9614
{ (eval echo "$as_me:9614: \"$ac_try\"") >&5
9617
echo "$as_me:9617: \$? = $ac_status" >&5
9618
(exit $ac_status); }; }; then
9619
ac_cv_header_time=yes
9621
echo "$as_me: failed program was:" >&5
9622
cat conftest.$ac_ext >&5
9623
ac_cv_header_time=no
9625
rm -f conftest.$ac_objext conftest.$ac_ext
9627
echo "$as_me:9627: result: $ac_cv_header_time" >&5
9628
echo "${ECHO_T}$ac_cv_header_time" >&6
9629
if test $ac_cv_header_time = yes; then
9631
cat >>confdefs.h <<\EOF
9632
#define TIME_WITH_SYS_TIME 1
9638
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9639
ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
9640
echo "$as_me:9640: checking for $ac_hdr that defines DIR" >&5
9641
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9642
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9643
echo $ECHO_N "(cached) $ECHO_C" >&6
9645
cat >conftest.$ac_ext <<_ACEOF
9646
#line 9646 "configure"
9647
#include "confdefs.h"
9648
#include <sys/types.h>
9659
rm -f conftest.$ac_objext
9660
if { (eval echo "$as_me:9660: \"$ac_compile\"") >&5
9661
(eval $ac_compile) 2>&5
9663
echo "$as_me:9663: \$? = $ac_status" >&5
9664
(exit $ac_status); } &&
9665
{ ac_try='test -s conftest.$ac_objext'
9666
{ (eval echo "$as_me:9666: \"$ac_try\"") >&5
9669
echo "$as_me:9669: \$? = $ac_status" >&5
9670
(exit $ac_status); }; }; then
9671
eval "$ac_ac_Header=yes"
9673
echo "$as_me: failed program was:" >&5
9674
cat conftest.$ac_ext >&5
9675
eval "$ac_ac_Header=no"
9677
rm -f conftest.$ac_objext conftest.$ac_ext
9679
echo "$as_me:9679: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9680
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9681
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9682
cat >>confdefs.h <<EOF
9683
#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
9686
ac_header_dirent=$ac_hdr; break
9690
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9691
if test $ac_header_dirent = dirent.h; then
9692
echo "$as_me:9692: checking for opendir in -ldir" >&5
9693
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
9694
if test "${ac_cv_lib_dir_opendir+set}" = set; then
9695
echo $ECHO_N "(cached) $ECHO_C" >&6
9697
ac_check_lib_save_LIBS=$LIBS
9699
cat >conftest.$ac_ext <<_ACEOF
9700
#line 9700 "configure"
9701
#include "confdefs.h"
9703
/* Override any gcc2 internal prototype to avoid an error. */
9707
/* We use char because int might match the return type of a gcc2
9708
builtin and then its argument prototype would still apply. */
9718
rm -f conftest.$ac_objext conftest$ac_exeext
9719
if { (eval echo "$as_me:9719: \"$ac_link\"") >&5
9720
(eval $ac_link) 2>&5
9722
echo "$as_me:9722: \$? = $ac_status" >&5
9723
(exit $ac_status); } &&
9724
{ ac_try='test -s conftest$ac_exeext'
9725
{ (eval echo "$as_me:9725: \"$ac_try\"") >&5
9728
echo "$as_me:9728: \$? = $ac_status" >&5
9729
(exit $ac_status); }; }; then
9730
ac_cv_lib_dir_opendir=yes
9732
echo "$as_me: failed program was:" >&5
9733
cat conftest.$ac_ext >&5
9734
ac_cv_lib_dir_opendir=no
9736
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9737
LIBS=$ac_check_lib_save_LIBS
9739
echo "$as_me:9739: result: $ac_cv_lib_dir_opendir" >&5
9740
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
9741
if test $ac_cv_lib_dir_opendir = yes; then
9746
echo "$as_me:9746: checking for opendir in -lx" >&5
9747
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
9748
if test "${ac_cv_lib_x_opendir+set}" = set; then
9749
echo $ECHO_N "(cached) $ECHO_C" >&6
9751
ac_check_lib_save_LIBS=$LIBS
9753
cat >conftest.$ac_ext <<_ACEOF
9754
#line 9754 "configure"
9755
#include "confdefs.h"
9757
/* Override any gcc2 internal prototype to avoid an error. */
9761
/* We use char because int might match the return type of a gcc2
9762
builtin and then its argument prototype would still apply. */
9772
rm -f conftest.$ac_objext conftest$ac_exeext
9773
if { (eval echo "$as_me:9773: \"$ac_link\"") >&5
9774
(eval $ac_link) 2>&5
9776
echo "$as_me:9776: \$? = $ac_status" >&5
9777
(exit $ac_status); } &&
9778
{ ac_try='test -s conftest$ac_exeext'
9779
{ (eval echo "$as_me:9779: \"$ac_try\"") >&5
9782
echo "$as_me:9782: \$? = $ac_status" >&5
9783
(exit $ac_status); }; }; then
9784
ac_cv_lib_x_opendir=yes
9786
echo "$as_me: failed program was:" >&5
9787
cat conftest.$ac_ext >&5
9788
ac_cv_lib_x_opendir=no
9790
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9791
LIBS=$ac_check_lib_save_LIBS
9793
echo "$as_me:9793: result: $ac_cv_lib_x_opendir" >&5
9794
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
9795
if test $ac_cv_lib_x_opendir = yes; then
9801
for ac_header in sys/select.h
9803
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9804
echo "$as_me:9804: checking for $ac_header" >&5
9805
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9806
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9807
echo $ECHO_N "(cached) $ECHO_C" >&6
9809
cat >conftest.$ac_ext <<_ACEOF
9810
#line 9810 "configure"
9811
#include "confdefs.h"
9812
#include <$ac_header>
9814
if { (eval echo "$as_me:9814: \"$ac_cpp conftest.$ac_ext\"") >&5
9815
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9817
egrep -v '^ *\+' conftest.er1 >conftest.err
9819
cat conftest.err >&5
9820
echo "$as_me:9820: \$? = $ac_status" >&5
9821
(exit $ac_status); } >/dev/null; then
9822
if test -s conftest.err; then
9823
ac_cpp_err=$ac_c_preproc_warn_flag
9830
if test -z "$ac_cpp_err"; then
9831
eval "$ac_ac_Header=yes"
9833
echo "$as_me: failed program was:" >&5
9834
cat conftest.$ac_ext >&5
9835
eval "$ac_ac_Header=no"
9837
rm -f conftest.err conftest.$ac_ext
9839
echo "$as_me:9839: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9840
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9841
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9842
cat >>confdefs.h <<EOF
9843
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9849
for ac_header in sys/time.h
9851
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9852
echo "$as_me:9852: checking for $ac_header" >&5
9853
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9854
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9855
echo $ECHO_N "(cached) $ECHO_C" >&6
9857
cat >conftest.$ac_ext <<_ACEOF
9858
#line 9858 "configure"
9859
#include "confdefs.h"
9860
#include <$ac_header>
9862
if { (eval echo "$as_me:9862: \"$ac_cpp conftest.$ac_ext\"") >&5
9863
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9865
egrep -v '^ *\+' conftest.er1 >conftest.err
9867
cat conftest.err >&5
9868
echo "$as_me:9868: \$? = $ac_status" >&5
9869
(exit $ac_status); } >/dev/null; then
9870
if test -s conftest.err; then
9871
ac_cpp_err=$ac_c_preproc_warn_flag
9878
if test -z "$ac_cpp_err"; then
9879
eval "$ac_ac_Header=yes"
9881
echo "$as_me: failed program was:" >&5
9882
cat conftest.$ac_ext >&5
9883
eval "$ac_ac_Header=no"
9885
rm -f conftest.err conftest.$ac_ext
9887
echo "$as_me:9887: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9888
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9889
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9890
cat >>confdefs.h <<EOF
9891
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9897
echo "$as_me:9897: checking for ANSI C header files" >&5
9898
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9899
if test "${ac_cv_header_stdc+set}" = set; then
9900
echo $ECHO_N "(cached) $ECHO_C" >&6
9902
cat >conftest.$ac_ext <<_ACEOF
9903
#line 9903 "configure"
9904
#include "confdefs.h"
9911
if { (eval echo "$as_me:9911: \"$ac_cpp conftest.$ac_ext\"") >&5
9912
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9914
egrep -v '^ *\+' conftest.er1 >conftest.err
9916
cat conftest.err >&5
9917
echo "$as_me:9917: \$? = $ac_status" >&5
9918
(exit $ac_status); } >/dev/null; then
9919
if test -s conftest.err; then
9920
ac_cpp_err=$ac_c_preproc_warn_flag
9927
if test -z "$ac_cpp_err"; then
9928
ac_cv_header_stdc=yes
9930
echo "$as_me: failed program was:" >&5
9931
cat conftest.$ac_ext >&5
9932
ac_cv_header_stdc=no
9934
rm -f conftest.err conftest.$ac_ext
9936
if test $ac_cv_header_stdc = yes; then
9937
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9938
cat >conftest.$ac_ext <<_ACEOF
9939
#line 9939 "configure"
9940
#include "confdefs.h"
9944
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9945
egrep "memchr" >/dev/null 2>&1; then
9948
ac_cv_header_stdc=no
9954
if test $ac_cv_header_stdc = yes; then
9955
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9956
cat >conftest.$ac_ext <<_ACEOF
9957
#line 9957 "configure"
9958
#include "confdefs.h"
9962
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9963
egrep "free" >/dev/null 2>&1; then
9966
ac_cv_header_stdc=no
9972
if test $ac_cv_header_stdc = yes; then
9973
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9974
if test "$cross_compiling" = yes; then
9977
cat >conftest.$ac_ext <<_ACEOF
9978
#line 9978 "configure"
9979
#include "confdefs.h"
9981
#if ((' ' & 0x0FF) == 0x020)
9982
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9983
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9985
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9986
|| ('j' <= (c) && (c) <= 'r') \
9987
|| ('s' <= (c) && (c) <= 'z'))
9988
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9991
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9996
for (i = 0; i < 256; i++)
9997
if (XOR (islower (i), ISLOWER (i))
9998
|| toupper (i) != TOUPPER (i))
10003
rm -f conftest$ac_exeext
10004
if { (eval echo "$as_me:10004: \"$ac_link\"") >&5
10005
(eval $ac_link) 2>&5
10007
echo "$as_me:10007: \$? = $ac_status" >&5
10008
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10009
{ (eval echo "$as_me:10009: \"$ac_try\"") >&5
10010
(eval $ac_try) 2>&5
10012
echo "$as_me:10012: \$? = $ac_status" >&5
10013
(exit $ac_status); }; }; then
10016
echo "$as_me: program exited with status $ac_status" >&5
10017
echo "$as_me: failed program was:" >&5
10018
cat conftest.$ac_ext >&5
10019
ac_cv_header_stdc=no
10021
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10025
echo "$as_me:10025: result: $ac_cv_header_stdc" >&5
10026
echo "${ECHO_T}$ac_cv_header_stdc" >&6
10027
if test $ac_cv_header_stdc = yes; then
10029
cat >>confdefs.h <<\EOF
10030
#define STDC_HEADERS 1
10035
for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
10037
ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10038
echo "$as_me:10038: checking for $ac_header" >&5
10039
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10040
if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10041
echo $ECHO_N "(cached) $ECHO_C" >&6
10043
cat >conftest.$ac_ext <<_ACEOF
10044
#line 10044 "configure"
10045
#include "confdefs.h"
10046
#include <$ac_header>
10048
if { (eval echo "$as_me:10048: \"$ac_cpp conftest.$ac_ext\"") >&5
10049
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10051
egrep -v '^ *\+' conftest.er1 >conftest.err
10053
cat conftest.err >&5
10054
echo "$as_me:10054: \$? = $ac_status" >&5
10055
(exit $ac_status); } >/dev/null; then
10056
if test -s conftest.err; then
10057
ac_cpp_err=$ac_c_preproc_warn_flag
10064
if test -z "$ac_cpp_err"; then
10065
eval "$ac_ac_Header=yes"
10067
echo "$as_me: failed program was:" >&5
10068
cat conftest.$ac_ext >&5
10069
eval "$ac_ac_Header=no"
10071
rm -f conftest.err conftest.$ac_ext
10073
echo "$as_me:10073: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10074
echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10075
if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10076
cat >>confdefs.h <<EOF
10077
#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10083
echo "$as_me:10083: checking for struct stat.st_blksize" >&5
10084
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10085
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10086
echo $ECHO_N "(cached) $ECHO_C" >&6
10088
cat >conftest.$ac_ext <<_ACEOF
10089
#line 10089 "configure"
10090
#include "confdefs.h"
10091
$ac_includes_default
10101
rm -f conftest.$ac_objext
10102
if { (eval echo "$as_me:10102: \"$ac_compile\"") >&5
10103
(eval $ac_compile) 2>&5
10105
echo "$as_me:10105: \$? = $ac_status" >&5
10106
(exit $ac_status); } &&
10107
{ ac_try='test -s conftest.$ac_objext'
10108
{ (eval echo "$as_me:10108: \"$ac_try\"") >&5
10109
(eval $ac_try) 2>&5
10111
echo "$as_me:10111: \$? = $ac_status" >&5
10112
(exit $ac_status); }; }; then
10113
ac_cv_member_struct_stat_st_blksize=yes
10115
echo "$as_me: failed program was:" >&5
10116
cat conftest.$ac_ext >&5
10117
ac_cv_member_struct_stat_st_blksize=no
10119
rm -f conftest.$ac_objext conftest.$ac_ext
10121
echo "$as_me:10121: result: $ac_cv_member_struct_stat_st_blksize" >&5
10122
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10123
if test $ac_cv_member_struct_stat_st_blksize = yes; then
10125
cat >>confdefs.h <<EOF
10126
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10131
# Check for C types.
10133
echo "$as_me:10133: checking for mode_t" >&5
10134
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10135
if test "${ac_cv_type_mode_t+set}" = set; then
10136
echo $ECHO_N "(cached) $ECHO_C" >&6
10138
cat >conftest.$ac_ext <<_ACEOF
10139
#line 10139 "configure"
10140
#include "confdefs.h"
10141
$ac_includes_default
10147
if (sizeof (mode_t))
10153
rm -f conftest.$ac_objext
10154
if { (eval echo "$as_me:10154: \"$ac_compile\"") >&5
10155
(eval $ac_compile) 2>&5
10157
echo "$as_me:10157: \$? = $ac_status" >&5
10158
(exit $ac_status); } &&
10159
{ ac_try='test -s conftest.$ac_objext'
10160
{ (eval echo "$as_me:10160: \"$ac_try\"") >&5
10161
(eval $ac_try) 2>&5
10163
echo "$as_me:10163: \$? = $ac_status" >&5
10164
(exit $ac_status); }; }; then
10165
ac_cv_type_mode_t=yes
10167
echo "$as_me: failed program was:" >&5
10168
cat conftest.$ac_ext >&5
10169
ac_cv_type_mode_t=no
10171
rm -f conftest.$ac_objext conftest.$ac_ext
10173
echo "$as_me:10173: result: $ac_cv_type_mode_t" >&5
10174
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10175
if test $ac_cv_type_mode_t = yes; then
10179
cat >>confdefs.h <<EOF
10185
echo "$as_me:10185: checking for off_t" >&5
10186
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10187
if test "${ac_cv_type_off_t+set}" = set; then
10188
echo $ECHO_N "(cached) $ECHO_C" >&6
10190
cat >conftest.$ac_ext <<_ACEOF
10191
#line 10191 "configure"
10192
#include "confdefs.h"
10193
$ac_includes_default
10199
if (sizeof (off_t))
10205
rm -f conftest.$ac_objext
10206
if { (eval echo "$as_me:10206: \"$ac_compile\"") >&5
10207
(eval $ac_compile) 2>&5
10209
echo "$as_me:10209: \$? = $ac_status" >&5
10210
(exit $ac_status); } &&
10211
{ ac_try='test -s conftest.$ac_objext'
10212
{ (eval echo "$as_me:10212: \"$ac_try\"") >&5
10213
(eval $ac_try) 2>&5
10215
echo "$as_me:10215: \$? = $ac_status" >&5
10216
(exit $ac_status); }; }; then
10217
ac_cv_type_off_t=yes
10219
echo "$as_me: failed program was:" >&5
10220
cat conftest.$ac_ext >&5
10221
ac_cv_type_off_t=no
10223
rm -f conftest.$ac_objext conftest.$ac_ext
10225
echo "$as_me:10225: result: $ac_cv_type_off_t" >&5
10226
echo "${ECHO_T}$ac_cv_type_off_t" >&6
10227
if test $ac_cv_type_off_t = yes; then
10231
cat >>confdefs.h <<EOF
10237
echo "$as_me:10237: checking for pid_t" >&5
10238
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10239
if test "${ac_cv_type_pid_t+set}" = set; then
10240
echo $ECHO_N "(cached) $ECHO_C" >&6
10242
cat >conftest.$ac_ext <<_ACEOF
10243
#line 10243 "configure"
10244
#include "confdefs.h"
10245
$ac_includes_default
10251
if (sizeof (pid_t))
10257
rm -f conftest.$ac_objext
10258
if { (eval echo "$as_me:10258: \"$ac_compile\"") >&5
10259
(eval $ac_compile) 2>&5
10261
echo "$as_me:10261: \$? = $ac_status" >&5
10262
(exit $ac_status); } &&
10263
{ ac_try='test -s conftest.$ac_objext'
10264
{ (eval echo "$as_me:10264: \"$ac_try\"") >&5
10265
(eval $ac_try) 2>&5
10267
echo "$as_me:10267: \$? = $ac_status" >&5
10268
(exit $ac_status); }; }; then
10269
ac_cv_type_pid_t=yes
10271
echo "$as_me: failed program was:" >&5
10272
cat conftest.$ac_ext >&5
10273
ac_cv_type_pid_t=no
10275
rm -f conftest.$ac_objext conftest.$ac_ext
10277
echo "$as_me:10277: result: $ac_cv_type_pid_t" >&5
10278
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10279
if test $ac_cv_type_pid_t = yes; then
10283
cat >>confdefs.h <<EOF
10289
echo "$as_me:10289: checking for size_t" >&5
10290
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10291
if test "${ac_cv_type_size_t+set}" = set; then
10292
echo $ECHO_N "(cached) $ECHO_C" >&6
10294
cat >conftest.$ac_ext <<_ACEOF
10295
#line 10295 "configure"
10296
#include "confdefs.h"
10297
$ac_includes_default
10303
if (sizeof (size_t))
10309
rm -f conftest.$ac_objext
10310
if { (eval echo "$as_me:10310: \"$ac_compile\"") >&5
10311
(eval $ac_compile) 2>&5
10313
echo "$as_me:10313: \$? = $ac_status" >&5
10314
(exit $ac_status); } &&
10315
{ ac_try='test -s conftest.$ac_objext'
10316
{ (eval echo "$as_me:10316: \"$ac_try\"") >&5
10317
(eval $ac_try) 2>&5
10319
echo "$as_me:10319: \$? = $ac_status" >&5
10320
(exit $ac_status); }; }; then
10321
ac_cv_type_size_t=yes
10323
echo "$as_me: failed program was:" >&5
10324
cat conftest.$ac_ext >&5
10325
ac_cv_type_size_t=no
10327
rm -f conftest.$ac_objext conftest.$ac_ext
10329
echo "$as_me:10329: result: $ac_cv_type_size_t" >&5
10330
echo "${ECHO_T}$ac_cv_type_size_t" >&6
10331
if test $ac_cv_type_size_t = yes; then
10335
cat >>confdefs.h <<EOF
10336
#define size_t unsigned
10341
echo "$as_me:10341: checking for u_char" >&5
10342
echo $ECHO_N "checking for u_char... $ECHO_C" >&6
10343
if test "${db_cv_uchar+set}" = set; then
10344
echo $ECHO_N "(cached) $ECHO_C" >&6
10347
cat >conftest.$ac_ext <<_ACEOF
10348
#line 10348 "configure"
10349
#include "confdefs.h"
10350
#include <sys/types.h>
10359
rm -f conftest.$ac_objext
10360
if { (eval echo "$as_me:10360: \"$ac_compile\"") >&5
10361
(eval $ac_compile) 2>&5
10363
echo "$as_me:10363: \$? = $ac_status" >&5
10364
(exit $ac_status); } &&
10365
{ ac_try='test -s conftest.$ac_objext'
10366
{ (eval echo "$as_me:10366: \"$ac_try\"") >&5
10367
(eval $ac_try) 2>&5
10369
echo "$as_me:10369: \$? = $ac_status" >&5
10370
(exit $ac_status); }; }; then
10373
echo "$as_me: failed program was:" >&5
10374
cat conftest.$ac_ext >&5
10377
rm -f conftest.$ac_objext conftest.$ac_ext
10379
echo "$as_me:10379: result: $db_cv_uchar" >&5
10380
echo "${ECHO_T}$db_cv_uchar" >&6
10381
if test "$db_cv_uchar" = no; then
10382
u_char_decl="typedef unsigned char u_char;"
10385
echo "$as_me:10385: checking for u_short" >&5
10386
echo $ECHO_N "checking for u_short... $ECHO_C" >&6
10387
if test "${db_cv_ushort+set}" = set; then
10388
echo $ECHO_N "(cached) $ECHO_C" >&6
10391
cat >conftest.$ac_ext <<_ACEOF
10392
#line 10392 "configure"
10393
#include "confdefs.h"
10394
#include <sys/types.h>
10403
rm -f conftest.$ac_objext
10404
if { (eval echo "$as_me:10404: \"$ac_compile\"") >&5
10405
(eval $ac_compile) 2>&5
10407
echo "$as_me:10407: \$? = $ac_status" >&5
10408
(exit $ac_status); } &&
10409
{ ac_try='test -s conftest.$ac_objext'
10410
{ (eval echo "$as_me:10410: \"$ac_try\"") >&5
10411
(eval $ac_try) 2>&5
10413
echo "$as_me:10413: \$? = $ac_status" >&5
10414
(exit $ac_status); }; }; then
10417
echo "$as_me: failed program was:" >&5
10418
cat conftest.$ac_ext >&5
10421
rm -f conftest.$ac_objext conftest.$ac_ext
10423
echo "$as_me:10423: result: $db_cv_ushort" >&5
10424
echo "${ECHO_T}$db_cv_ushort" >&6
10425
if test "$db_cv_ushort" = no; then
10426
u_short_decl="typedef unsigned short u_short;"
10429
echo "$as_me:10429: checking for u_int" >&5
10430
echo $ECHO_N "checking for u_int... $ECHO_C" >&6
10431
if test "${db_cv_uint+set}" = set; then
10432
echo $ECHO_N "(cached) $ECHO_C" >&6
10435
cat >conftest.$ac_ext <<_ACEOF
10436
#line 10436 "configure"
10437
#include "confdefs.h"
10438
#include <sys/types.h>
10447
rm -f conftest.$ac_objext
10448
if { (eval echo "$as_me:10448: \"$ac_compile\"") >&5
10449
(eval $ac_compile) 2>&5
10451
echo "$as_me:10451: \$? = $ac_status" >&5
10452
(exit $ac_status); } &&
10453
{ ac_try='test -s conftest.$ac_objext'
10454
{ (eval echo "$as_me:10454: \"$ac_try\"") >&5
10455
(eval $ac_try) 2>&5
10457
echo "$as_me:10457: \$? = $ac_status" >&5
10458
(exit $ac_status); }; }; then
10461
echo "$as_me: failed program was:" >&5
10462
cat conftest.$ac_ext >&5
10465
rm -f conftest.$ac_objext conftest.$ac_ext
10467
echo "$as_me:10467: result: $db_cv_uint" >&5
10468
echo "${ECHO_T}$db_cv_uint" >&6
10469
if test "$db_cv_uint" = no; then
10470
u_int_decl="typedef unsigned int u_int;"
10473
echo "$as_me:10473: checking for u_long" >&5
10474
echo $ECHO_N "checking for u_long... $ECHO_C" >&6
10475
if test "${db_cv_ulong+set}" = set; then
10476
echo $ECHO_N "(cached) $ECHO_C" >&6
10479
cat >conftest.$ac_ext <<_ACEOF
10480
#line 10480 "configure"
10481
#include "confdefs.h"
10482
#include <sys/types.h>
10491
rm -f conftest.$ac_objext
10492
if { (eval echo "$as_me:10492: \"$ac_compile\"") >&5
10493
(eval $ac_compile) 2>&5
10495
echo "$as_me:10495: \$? = $ac_status" >&5
10496
(exit $ac_status); } &&
10497
{ ac_try='test -s conftest.$ac_objext'
10498
{ (eval echo "$as_me:10498: \"$ac_try\"") >&5
10499
(eval $ac_try) 2>&5
10501
echo "$as_me:10501: \$? = $ac_status" >&5
10502
(exit $ac_status); }; }; then
10505
echo "$as_me: failed program was:" >&5
10506
cat conftest.$ac_ext >&5
10509
rm -f conftest.$ac_objext conftest.$ac_ext
10511
echo "$as_me:10511: result: $db_cv_ulong" >&5
10512
echo "${ECHO_T}$db_cv_ulong" >&6
10513
if test "$db_cv_ulong" = no; then
10514
u_long_decl="typedef unsigned long u_long;"
10517
# DB/Vi use specific integer sizes.
10519
echo "$as_me:10519: checking for u_int8_t" >&5
10520
echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
10521
if test "${db_cv_uint8+set}" = set; then
10522
echo $ECHO_N "(cached) $ECHO_C" >&6
10525
cat >conftest.$ac_ext <<_ACEOF
10526
#line 10526 "configure"
10527
#include "confdefs.h"
10528
#include <sys/types.h>
10537
rm -f conftest.$ac_objext
10538
if { (eval echo "$as_me:10538: \"$ac_compile\"") >&5
10539
(eval $ac_compile) 2>&5
10541
echo "$as_me:10541: \$? = $ac_status" >&5
10542
(exit $ac_status); } &&
10543
{ ac_try='test -s conftest.$ac_objext'
10544
{ (eval echo "$as_me:10544: \"$ac_try\"") >&5
10545
(eval $ac_try) 2>&5
10547
echo "$as_me:10547: \$? = $ac_status" >&5
10548
(exit $ac_status); }; }; then
10551
echo "$as_me: failed program was:" >&5
10552
cat conftest.$ac_ext >&5
10553
if test "$cross_compiling" = yes; then
10554
{ { echo "$as_me:10554: error: cannot run test program while cross compiling" >&5
10555
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10556
{ (exit 1); exit 1; }; }
10558
cat >conftest.$ac_ext <<_ACEOF
10559
#line 10559 "configure"
10560
#include "confdefs.h"
10561
main(){exit(sizeof(unsigned char) != 1);}
10563
rm -f conftest$ac_exeext
10564
if { (eval echo "$as_me:10564: \"$ac_link\"") >&5
10565
(eval $ac_link) 2>&5
10567
echo "$as_me:10567: \$? = $ac_status" >&5
10568
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10569
{ (eval echo "$as_me:10569: \"$ac_try\"") >&5
10570
(eval $ac_try) 2>&5
10572
echo "$as_me:10572: \$? = $ac_status" >&5
10573
(exit $ac_status); }; }; then
10574
db_cv_uint8="unsigned char"
10576
echo "$as_me: program exited with status $ac_status" >&5
10577
echo "$as_me: failed program was:" >&5
10578
cat conftest.$ac_ext >&5
10581
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10584
rm -f conftest.$ac_objext conftest.$ac_ext
10586
echo "$as_me:10586: result: $db_cv_uint8" >&5
10587
echo "${ECHO_T}$db_cv_uint8" >&6
10588
if test "$db_cv_uint8" = no; then
10589
{ { echo "$as_me:10589: error: No unsigned 8-bit integral type." >&5
10590
echo "$as_me: error: No unsigned 8-bit integral type." >&2;}
10591
{ (exit 1); exit 1; }; }
10593
if test "$db_cv_uint8" != yes; then
10594
u_int8_decl="typedef $db_cv_uint8 u_int8_t;"
10597
echo "$as_me:10597: checking for u_int16_t" >&5
10598
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
10599
if test "${db_cv_uint16+set}" = set; then
10600
echo $ECHO_N "(cached) $ECHO_C" >&6
10603
cat >conftest.$ac_ext <<_ACEOF
10604
#line 10604 "configure"
10605
#include "confdefs.h"
10606
#include <sys/types.h>
10615
rm -f conftest.$ac_objext
10616
if { (eval echo "$as_me:10616: \"$ac_compile\"") >&5
10617
(eval $ac_compile) 2>&5
10619
echo "$as_me:10619: \$? = $ac_status" >&5
10620
(exit $ac_status); } &&
10621
{ ac_try='test -s conftest.$ac_objext'
10622
{ (eval echo "$as_me:10622: \"$ac_try\"") >&5
10623
(eval $ac_try) 2>&5
10625
echo "$as_me:10625: \$? = $ac_status" >&5
10626
(exit $ac_status); }; }; then
10629
echo "$as_me: failed program was:" >&5
10630
cat conftest.$ac_ext >&5
10631
if test "$cross_compiling" = yes; then
10632
{ { echo "$as_me:10632: error: cannot run test program while cross compiling" >&5
10633
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10634
{ (exit 1); exit 1; }; }
10636
cat >conftest.$ac_ext <<_ACEOF
10637
#line 10637 "configure"
10638
#include "confdefs.h"
10639
main(){exit(sizeof(unsigned short) != 2);}
10641
rm -f conftest$ac_exeext
10642
if { (eval echo "$as_me:10642: \"$ac_link\"") >&5
10643
(eval $ac_link) 2>&5
10645
echo "$as_me:10645: \$? = $ac_status" >&5
10646
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10647
{ (eval echo "$as_me:10647: \"$ac_try\"") >&5
10648
(eval $ac_try) 2>&5
10650
echo "$as_me:10650: \$? = $ac_status" >&5
10651
(exit $ac_status); }; }; then
10652
db_cv_uint16="unsigned short"
10654
echo "$as_me: program exited with status $ac_status" >&5
10655
echo "$as_me: failed program was:" >&5
10656
cat conftest.$ac_ext >&5
10657
if test "$cross_compiling" = yes; then
10658
{ { echo "$as_me:10658: error: cannot run test program while cross compiling" >&5
10659
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10660
{ (exit 1); exit 1; }; }
10662
cat >conftest.$ac_ext <<_ACEOF
10663
#line 10663 "configure"
10664
#include "confdefs.h"
10665
main(){exit(sizeof(unsigned int) != 2);}
10667
rm -f conftest$ac_exeext
10668
if { (eval echo "$as_me:10668: \"$ac_link\"") >&5
10669
(eval $ac_link) 2>&5
10671
echo "$as_me:10671: \$? = $ac_status" >&5
10672
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10673
{ (eval echo "$as_me:10673: \"$ac_try\"") >&5
10674
(eval $ac_try) 2>&5
10676
echo "$as_me:10676: \$? = $ac_status" >&5
10677
(exit $ac_status); }; }; then
10678
db_cv_uint16="unsigned int"
10680
echo "$as_me: program exited with status $ac_status" >&5
10681
echo "$as_me: failed program was:" >&5
10682
cat conftest.$ac_ext >&5
10685
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10688
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10691
rm -f conftest.$ac_objext conftest.$ac_ext
10693
echo "$as_me:10693: result: $db_cv_uint16" >&5
10694
echo "${ECHO_T}$db_cv_uint16" >&6
10695
if test "$db_cv_uint16" = no; then
10696
{ { echo "$as_me:10696: error: No unsigned 16-bit integral type." >&5
10697
echo "$as_me: error: No unsigned 16-bit integral type." >&2;}
10698
{ (exit 1); exit 1; }; }
10700
if test "$db_cv_uint16" != yes; then
10701
u_int16_decl="typedef $db_cv_uint16 u_int16_t;"
10704
echo "$as_me:10704: checking for int16_t" >&5
10705
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
10706
if test "${db_cv_int16+set}" = set; then
10707
echo $ECHO_N "(cached) $ECHO_C" >&6
10710
cat >conftest.$ac_ext <<_ACEOF
10711
#line 10711 "configure"
10712
#include "confdefs.h"
10713
#include <sys/types.h>
10722
rm -f conftest.$ac_objext
10723
if { (eval echo "$as_me:10723: \"$ac_compile\"") >&5
10724
(eval $ac_compile) 2>&5
10726
echo "$as_me:10726: \$? = $ac_status" >&5
10727
(exit $ac_status); } &&
10728
{ ac_try='test -s conftest.$ac_objext'
10729
{ (eval echo "$as_me:10729: \"$ac_try\"") >&5
10730
(eval $ac_try) 2>&5
10732
echo "$as_me:10732: \$? = $ac_status" >&5
10733
(exit $ac_status); }; }; then
10736
echo "$as_me: failed program was:" >&5
10737
cat conftest.$ac_ext >&5
10738
if test "$cross_compiling" = yes; then
10739
{ { echo "$as_me:10739: error: cannot run test program while cross compiling" >&5
10740
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10741
{ (exit 1); exit 1; }; }
10743
cat >conftest.$ac_ext <<_ACEOF
10744
#line 10744 "configure"
10745
#include "confdefs.h"
10746
main(){exit(sizeof(short) != 2);}
10748
rm -f conftest$ac_exeext
10749
if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
10750
(eval $ac_link) 2>&5
10752
echo "$as_me:10752: \$? = $ac_status" >&5
10753
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10754
{ (eval echo "$as_me:10754: \"$ac_try\"") >&5
10755
(eval $ac_try) 2>&5
10757
echo "$as_me:10757: \$? = $ac_status" >&5
10758
(exit $ac_status); }; }; then
10759
db_cv_int16="short"
10761
echo "$as_me: program exited with status $ac_status" >&5
10762
echo "$as_me: failed program was:" >&5
10763
cat conftest.$ac_ext >&5
10764
if test "$cross_compiling" = yes; then
10765
{ { echo "$as_me:10765: error: cannot run test program while cross compiling" >&5
10766
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10767
{ (exit 1); exit 1; }; }
10769
cat >conftest.$ac_ext <<_ACEOF
10770
#line 10770 "configure"
10771
#include "confdefs.h"
10772
main(){exit(sizeof(int) != 2);}
10774
rm -f conftest$ac_exeext
10775
if { (eval echo "$as_me:10775: \"$ac_link\"") >&5
10776
(eval $ac_link) 2>&5
10778
echo "$as_me:10778: \$? = $ac_status" >&5
10779
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10780
{ (eval echo "$as_me:10780: \"$ac_try\"") >&5
10781
(eval $ac_try) 2>&5
10783
echo "$as_me:10783: \$? = $ac_status" >&5
10784
(exit $ac_status); }; }; then
10787
echo "$as_me: program exited with status $ac_status" >&5
10788
echo "$as_me: failed program was:" >&5
10789
cat conftest.$ac_ext >&5
10792
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10795
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10798
rm -f conftest.$ac_objext conftest.$ac_ext
10800
echo "$as_me:10800: result: $db_cv_int16" >&5
10801
echo "${ECHO_T}$db_cv_int16" >&6
10802
if test "$db_cv_int16" = no; then
10803
{ { echo "$as_me:10803: error: No signed 16-bit integral type." >&5
10804
echo "$as_me: error: No signed 16-bit integral type." >&2;}
10805
{ (exit 1); exit 1; }; }
10807
if test "$db_cv_int16" != yes; then
10808
int16_decl="typedef $db_cv_int16 int16_t;"
10811
echo "$as_me:10811: checking for u_int32_t" >&5
10812
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10813
if test "${db_cv_uint32+set}" = set; then
10814
echo $ECHO_N "(cached) $ECHO_C" >&6
10817
cat >conftest.$ac_ext <<_ACEOF
10818
#line 10818 "configure"
10819
#include "confdefs.h"
10820
#include <sys/types.h>
10829
rm -f conftest.$ac_objext
10830
if { (eval echo "$as_me:10830: \"$ac_compile\"") >&5
10831
(eval $ac_compile) 2>&5
10833
echo "$as_me:10833: \$? = $ac_status" >&5
10834
(exit $ac_status); } &&
10835
{ ac_try='test -s conftest.$ac_objext'
10836
{ (eval echo "$as_me:10836: \"$ac_try\"") >&5
10837
(eval $ac_try) 2>&5
10839
echo "$as_me:10839: \$? = $ac_status" >&5
10840
(exit $ac_status); }; }; then
10843
echo "$as_me: failed program was:" >&5
10844
cat conftest.$ac_ext >&5
10845
if test "$cross_compiling" = yes; then
10846
{ { echo "$as_me:10846: error: cannot run test program while cross compiling" >&5
10847
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10848
{ (exit 1); exit 1; }; }
10850
cat >conftest.$ac_ext <<_ACEOF
10851
#line 10851 "configure"
10852
#include "confdefs.h"
10853
main(){exit(sizeof(unsigned int) != 4);}
10855
rm -f conftest$ac_exeext
10856
if { (eval echo "$as_me:10856: \"$ac_link\"") >&5
10857
(eval $ac_link) 2>&5
10859
echo "$as_me:10859: \$? = $ac_status" >&5
10860
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10861
{ (eval echo "$as_me:10861: \"$ac_try\"") >&5
10862
(eval $ac_try) 2>&5
10864
echo "$as_me:10864: \$? = $ac_status" >&5
10865
(exit $ac_status); }; }; then
10866
db_cv_uint32="unsigned int"
10868
echo "$as_me: program exited with status $ac_status" >&5
10869
echo "$as_me: failed program was:" >&5
10870
cat conftest.$ac_ext >&5
10871
if test "$cross_compiling" = yes; then
10872
{ { echo "$as_me:10872: error: cannot run test program while cross compiling" >&5
10873
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10874
{ (exit 1); exit 1; }; }
10876
cat >conftest.$ac_ext <<_ACEOF
10877
#line 10877 "configure"
10878
#include "confdefs.h"
10879
main(){exit(sizeof(unsigned long) != 4);}
10881
rm -f conftest$ac_exeext
10882
if { (eval echo "$as_me:10882: \"$ac_link\"") >&5
10883
(eval $ac_link) 2>&5
10885
echo "$as_me:10885: \$? = $ac_status" >&5
10886
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10887
{ (eval echo "$as_me:10887: \"$ac_try\"") >&5
10888
(eval $ac_try) 2>&5
10890
echo "$as_me:10890: \$? = $ac_status" >&5
10891
(exit $ac_status); }; }; then
10892
db_cv_uint32="unsigned long"
10894
echo "$as_me: program exited with status $ac_status" >&5
10895
echo "$as_me: failed program was:" >&5
10896
cat conftest.$ac_ext >&5
10899
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10902
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10905
rm -f conftest.$ac_objext conftest.$ac_ext
10907
echo "$as_me:10907: result: $db_cv_uint32" >&5
10908
echo "${ECHO_T}$db_cv_uint32" >&6
10909
if test "$db_cv_uint32" = no; then
10910
{ { echo "$as_me:10910: error: No unsigned 32-bit integral type." >&5
10911
echo "$as_me: error: No unsigned 32-bit integral type." >&2;}
10912
{ (exit 1); exit 1; }; }
10914
if test "$db_cv_uint32" != yes; then
10915
u_int32_decl="typedef $db_cv_uint32 u_int32_t;"
10918
echo "$as_me:10918: checking for int32_t" >&5
10919
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10920
if test "${db_cv_int32+set}" = set; then
10921
echo $ECHO_N "(cached) $ECHO_C" >&6
10924
cat >conftest.$ac_ext <<_ACEOF
10925
#line 10925 "configure"
10926
#include "confdefs.h"
10927
#include <sys/types.h>
10936
rm -f conftest.$ac_objext
10937
if { (eval echo "$as_me:10937: \"$ac_compile\"") >&5
10938
(eval $ac_compile) 2>&5
10940
echo "$as_me:10940: \$? = $ac_status" >&5
10941
(exit $ac_status); } &&
10942
{ ac_try='test -s conftest.$ac_objext'
10943
{ (eval echo "$as_me:10943: \"$ac_try\"") >&5
10944
(eval $ac_try) 2>&5
10946
echo "$as_me:10946: \$? = $ac_status" >&5
10947
(exit $ac_status); }; }; then
10950
echo "$as_me: failed program was:" >&5
10951
cat conftest.$ac_ext >&5
10952
if test "$cross_compiling" = yes; then
10953
{ { echo "$as_me:10953: error: cannot run test program while cross compiling" >&5
10954
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10955
{ (exit 1); exit 1; }; }
10957
cat >conftest.$ac_ext <<_ACEOF
10958
#line 10958 "configure"
10959
#include "confdefs.h"
10960
main(){exit(sizeof(int) != 4);}
10962
rm -f conftest$ac_exeext
10963
if { (eval echo "$as_me:10963: \"$ac_link\"") >&5
10964
(eval $ac_link) 2>&5
10966
echo "$as_me:10966: \$? = $ac_status" >&5
10967
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10968
{ (eval echo "$as_me:10968: \"$ac_try\"") >&5
10969
(eval $ac_try) 2>&5
10971
echo "$as_me:10971: \$? = $ac_status" >&5
10972
(exit $ac_status); }; }; then
10975
echo "$as_me: program exited with status $ac_status" >&5
10976
echo "$as_me: failed program was:" >&5
10977
cat conftest.$ac_ext >&5
10978
if test "$cross_compiling" = yes; then
10979
{ { echo "$as_me:10979: error: cannot run test program while cross compiling" >&5
10980
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
10981
{ (exit 1); exit 1; }; }
10983
cat >conftest.$ac_ext <<_ACEOF
10984
#line 10984 "configure"
10985
#include "confdefs.h"
10986
main(){exit(sizeof(long) != 4);}
10988
rm -f conftest$ac_exeext
10989
if { (eval echo "$as_me:10989: \"$ac_link\"") >&5
10990
(eval $ac_link) 2>&5
10992
echo "$as_me:10992: \$? = $ac_status" >&5
10993
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10994
{ (eval echo "$as_me:10994: \"$ac_try\"") >&5
10995
(eval $ac_try) 2>&5
10997
echo "$as_me:10997: \$? = $ac_status" >&5
10998
(exit $ac_status); }; }; then
11001
echo "$as_me: program exited with status $ac_status" >&5
11002
echo "$as_me: failed program was:" >&5
11003
cat conftest.$ac_ext >&5
11006
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11009
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11012
rm -f conftest.$ac_objext conftest.$ac_ext
11014
echo "$as_me:11014: result: $db_cv_int32" >&5
11015
echo "${ECHO_T}$db_cv_int32" >&6
11016
if test "$db_cv_int32" = no; then
11017
{ { echo "$as_me:11017: error: No signed 32-bit integral type." >&5
11018
echo "$as_me: error: No signed 32-bit integral type." >&2;}
11019
{ (exit 1); exit 1; }; }
11021
if test "$db_cv_int32" != yes; then
11022
int32_decl="typedef $db_cv_int32 int32_t;"
11025
# Check for ssize_t -- if none exists, find a signed integral type that's
11026
# the same size as a size_t. Prefer int over long, because it read/write
11027
# and others historically returned an int.
11029
echo "$as_me:11029: checking for ssize_t" >&5
11030
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11031
if test "${db_cv_ssize_t+set}" = set; then
11032
echo $ECHO_N "(cached) $ECHO_C" >&6
11035
cat >conftest.$ac_ext <<_ACEOF
11036
#line 11036 "configure"
11037
#include "confdefs.h"
11038
#include <sys/types.h>
11047
rm -f conftest.$ac_objext
11048
if { (eval echo "$as_me:11048: \"$ac_compile\"") >&5
11049
(eval $ac_compile) 2>&5
11051
echo "$as_me:11051: \$? = $ac_status" >&5
11052
(exit $ac_status); } &&
11053
{ ac_try='test -s conftest.$ac_objext'
11054
{ (eval echo "$as_me:11054: \"$ac_try\"") >&5
11055
(eval $ac_try) 2>&5
11057
echo "$as_me:11057: \$? = $ac_status" >&5
11058
(exit $ac_status); }; }; then
11061
echo "$as_me: failed program was:" >&5
11062
cat conftest.$ac_ext >&5
11063
if test "$cross_compiling" = yes; then
11064
{ { echo "$as_me:11064: error: cannot run test program while cross compiling" >&5
11065
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11066
{ (exit 1); exit 1; }; }
11068
cat >conftest.$ac_ext <<_ACEOF
11069
#line 11069 "configure"
11070
#include "confdefs.h"
11072
#include <sys/types.h>
11073
main(){exit(sizeof(size_t) != sizeof(int));}
11075
rm -f conftest$ac_exeext
11076
if { (eval echo "$as_me:11076: \"$ac_link\"") >&5
11077
(eval $ac_link) 2>&5
11079
echo "$as_me:11079: \$? = $ac_status" >&5
11080
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11081
{ (eval echo "$as_me:11081: \"$ac_try\"") >&5
11082
(eval $ac_try) 2>&5
11084
echo "$as_me:11084: \$? = $ac_status" >&5
11085
(exit $ac_status); }; }; then
11086
db_cv_ssize_t="int"
11088
echo "$as_me: program exited with status $ac_status" >&5
11089
echo "$as_me: failed program was:" >&5
11090
cat conftest.$ac_ext >&5
11091
if test "$cross_compiling" = yes; then
11092
{ { echo "$as_me:11092: error: cannot run test program while cross compiling" >&5
11093
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11094
{ (exit 1); exit 1; }; }
11096
cat >conftest.$ac_ext <<_ACEOF
11097
#line 11097 "configure"
11098
#include "confdefs.h"
11100
#include <sys/types.h>
11101
main(){exit(sizeof(size_t) != sizeof(long long));}
11103
rm -f conftest$ac_exeext
11104
if { (eval echo "$as_me:11104: \"$ac_link\"") >&5
11105
(eval $ac_link) 2>&5
11107
echo "$as_me:11107: \$? = $ac_status" >&5
11108
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11109
{ (eval echo "$as_me:11109: \"$ac_try\"") >&5
11110
(eval $ac_try) 2>&5
11112
echo "$as_me:11112: \$? = $ac_status" >&5
11113
(exit $ac_status); }; }; then
11114
db_cv_ssize_t="long long"
11116
echo "$as_me: program exited with status $ac_status" >&5
11117
echo "$as_me: failed program was:" >&5
11118
cat conftest.$ac_ext >&5
11119
if test "$cross_compiling" = yes; then
11120
{ { echo "$as_me:11120: error: cannot run test program while cross compiling" >&5
11121
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11122
{ (exit 1); exit 1; }; }
11124
cat >conftest.$ac_ext <<_ACEOF
11125
#line 11125 "configure"
11126
#include "confdefs.h"
11128
#include <sys/types.h>
11129
main(){exit(sizeof(size_t) != sizeof(long));}
11131
rm -f conftest$ac_exeext
11132
if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
11133
(eval $ac_link) 2>&5
11135
echo "$as_me:11135: \$? = $ac_status" >&5
11136
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11137
{ (eval echo "$as_me:11137: \"$ac_try\"") >&5
11138
(eval $ac_try) 2>&5
11140
echo "$as_me:11140: \$? = $ac_status" >&5
11141
(exit $ac_status); }; }; then
11142
db_cv_ssize_t="long"
11144
echo "$as_me: program exited with status $ac_status" >&5
11145
echo "$as_me: failed program was:" >&5
11146
cat conftest.$ac_ext >&5
11147
db_cv_ssize_t="int"
11149
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11152
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11155
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11158
rm -f conftest.$ac_objext conftest.$ac_ext
11160
echo "$as_me:11160: result: $db_cv_ssize_t" >&5
11161
echo "${ECHO_T}$db_cv_ssize_t" >&6
11162
if test "$db_cv_ssize_t" != yes; then
11163
ssize_t_decl="typedef $db_cv_ssize_t ssize_t;"
11166
# Find the largest integral type.
11168
echo "$as_me:11168: checking for largest integral type" >&5
11169
echo $ECHO_N "checking for largest integral type... $ECHO_C" >&6
11170
if test "${db_cv_align_t+set}" = set; then
11171
echo $ECHO_N "(cached) $ECHO_C" >&6
11174
cat >conftest.$ac_ext <<_ACEOF
11175
#line 11175 "configure"
11176
#include "confdefs.h"
11177
#include <sys/types.h>
11186
rm -f conftest.$ac_objext
11187
if { (eval echo "$as_me:11187: \"$ac_compile\"") >&5
11188
(eval $ac_compile) 2>&5
11190
echo "$as_me:11190: \$? = $ac_status" >&5
11191
(exit $ac_status); } &&
11192
{ ac_try='test -s conftest.$ac_objext'
11193
{ (eval echo "$as_me:11193: \"$ac_try\"") >&5
11194
(eval $ac_try) 2>&5
11196
echo "$as_me:11196: \$? = $ac_status" >&5
11197
(exit $ac_status); }; }; then
11198
db_cv_align_t="unsigned long long"
11200
echo "$as_me: failed program was:" >&5
11201
cat conftest.$ac_ext >&5
11202
db_cv_align_t="unsigned long"
11204
rm -f conftest.$ac_objext conftest.$ac_ext
11206
echo "$as_me:11206: result: $db_cv_align_t" >&5
11207
echo "${ECHO_T}$db_cv_align_t" >&6
11208
db_align_t_decl="typedef $db_cv_align_t db_align_t;"
11210
# Find the integral type which is the same size as a pointer.
11212
echo "$as_me:11212: checking for integral type equal to pointer size" >&5
11213
echo $ECHO_N "checking for integral type equal to pointer size... $ECHO_C" >&6
11214
if test "${db_cv_alignp_t+set}" = set; then
11215
echo $ECHO_N "(cached) $ECHO_C" >&6
11218
db_cv_alignp_t=$db_cv_align_t
11219
if test "$cross_compiling" = yes; then
11220
{ { echo "$as_me:11220: error: cannot run test program while cross compiling" >&5
11221
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11222
{ (exit 1); exit 1; }; }
11224
cat >conftest.$ac_ext <<_ACEOF
11225
#line 11225 "configure"
11226
#include "confdefs.h"
11227
main(){exit(sizeof(unsigned int) != sizeof(char *));}
11229
rm -f conftest$ac_exeext
11230
if { (eval echo "$as_me:11230: \"$ac_link\"") >&5
11231
(eval $ac_link) 2>&5
11233
echo "$as_me:11233: \$? = $ac_status" >&5
11234
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11235
{ (eval echo "$as_me:11235: \"$ac_try\"") >&5
11236
(eval $ac_try) 2>&5
11238
echo "$as_me:11238: \$? = $ac_status" >&5
11239
(exit $ac_status); }; }; then
11240
db_cv_alignp_t="unsigned int"
11242
echo "$as_me: program exited with status $ac_status" >&5
11243
echo "$as_me: failed program was:" >&5
11244
cat conftest.$ac_ext >&5
11246
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11248
if test "$cross_compiling" = yes; then
11249
{ { echo "$as_me:11249: error: cannot run test program while cross compiling" >&5
11250
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11251
{ (exit 1); exit 1; }; }
11253
cat >conftest.$ac_ext <<_ACEOF
11254
#line 11254 "configure"
11255
#include "confdefs.h"
11256
main(){exit(sizeof(unsigned long) != sizeof(char *));}
11258
rm -f conftest$ac_exeext
11259
if { (eval echo "$as_me:11259: \"$ac_link\"") >&5
11260
(eval $ac_link) 2>&5
11262
echo "$as_me:11262: \$? = $ac_status" >&5
11263
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11264
{ (eval echo "$as_me:11264: \"$ac_try\"") >&5
11265
(eval $ac_try) 2>&5
11267
echo "$as_me:11267: \$? = $ac_status" >&5
11268
(exit $ac_status); }; }; then
11269
db_cv_alignp_t="unsigned long"
11271
echo "$as_me: program exited with status $ac_status" >&5
11272
echo "$as_me: failed program was:" >&5
11273
cat conftest.$ac_ext >&5
11275
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11277
if test "$cross_compiling" = yes; then
11278
{ { echo "$as_me:11278: error: cannot run test program while cross compiling" >&5
11279
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11280
{ (exit 1); exit 1; }; }
11282
cat >conftest.$ac_ext <<_ACEOF
11283
#line 11283 "configure"
11284
#include "confdefs.h"
11285
main(){exit(sizeof(unsigned long long) != sizeof(char *));}
11287
rm -f conftest$ac_exeext
11288
if { (eval echo "$as_me:11288: \"$ac_link\"") >&5
11289
(eval $ac_link) 2>&5
11291
echo "$as_me:11291: \$? = $ac_status" >&5
11292
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11293
{ (eval echo "$as_me:11293: \"$ac_try\"") >&5
11294
(eval $ac_try) 2>&5
11296
echo "$as_me:11296: \$? = $ac_status" >&5
11297
(exit $ac_status); }; }; then
11298
db_cv_alignp_t="unsigned long long"
11300
echo "$as_me: program exited with status $ac_status" >&5
11301
echo "$as_me: failed program was:" >&5
11302
cat conftest.$ac_ext >&5
11304
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11307
echo "$as_me:11307: result: $db_cv_alignp_t" >&5
11308
echo "${ECHO_T}$db_cv_alignp_t" >&6
11309
db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;"
11311
# Check for ANSI C exit success/failure values.
11312
cat >conftest.$ac_ext <<_ACEOF
11313
#line 11313 "configure"
11314
#include "confdefs.h"
11316
#include <stdlib.h>
11317
#ifdef EXIT_SUCCESS
11321
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11322
egrep "yes" >/dev/null 2>&1; then
11324
cat >>confdefs.h <<\EOF
11325
#define HAVE_EXIT_SUCCESS 1
11331
# Check for mutexes. We do this here because it changes $LIBS.
11333
# Mutexes we don't test for, but want the #defines to exist for
11336
echo "$as_me:11336: checking for mutexes" >&5
11337
echo $ECHO_N "checking for mutexes... $ECHO_C" >&6
11338
if test "${db_cv_mutex+set}" = set; then
11339
echo $ECHO_N "(cached) $ECHO_C" >&6
11346
# User-specified POSIX mutexes.
11348
# Assume that -lpthread exists when the user specifies POSIX mutexes. (I
11349
# only expect this option to be used on Solaris, which has -lpthread.)
11350
if test "$db_cv_posixmutexes" = yes; then
11351
db_cv_mutex="posix_only"
11354
# User-specified UI mutexes.
11356
# Assume that -lthread exists when the user specifies UI mutexes. (I only
11357
# expect this option to be used on Solaris, which has -lthread.)
11358
if test "$db_cv_uimutexes" = yes; then
11359
db_cv_mutex="ui_only"
11362
# LWP threads: _lwp_XXX
11364
# Test for LWP threads before testing for UI/POSIX threads, we prefer them
11365
# on Solaris. There are two reasons: the Solaris C library has UI/POSIX
11366
# interface stubs, but they're broken, configuring them for inter-process
11367
# mutexes doesn't return an error, but it doesn't work either. Second,
11368
# there's a bug in SunOS 5.7 where applications get pwrite, not pwrite64,
11369
# if they load the C library before the appropriate threads library, e.g.,
11370
# tclsh using dlopen to load the DB library. Anyway, by using LWP threads
11371
# we avoid answering lots of user questions, not to mention the bugs.
11372
if test "$db_cv_mutex" = no; then
11373
if test "$cross_compiling" = yes; then
11374
{ { echo "$as_me:11374: error: cannot run test program while cross compiling" >&5
11375
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11376
{ (exit 1); exit 1; }; }
11378
cat >conftest.$ac_ext <<_ACEOF
11379
#line 11379 "configure"
11380
#include "confdefs.h"
11384
static lwp_mutex_t mi = SHAREDMUTEX;
11385
static lwp_cond_t ci = SHAREDCV;
11386
lwp_mutex_t mutex = mi;
11387
lwp_cond_t cond = ci;
11389
_lwp_mutex_lock(&mutex) ||
11390
_lwp_mutex_unlock(&mutex));
11393
rm -f conftest$ac_exeext
11394
if { (eval echo "$as_me:11394: \"$ac_link\"") >&5
11395
(eval $ac_link) 2>&5
11397
echo "$as_me:11397: \$? = $ac_status" >&5
11398
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11399
{ (eval echo "$as_me:11399: \"$ac_try\"") >&5
11400
(eval $ac_try) 2>&5
11402
echo "$as_me:11402: \$? = $ac_status" >&5
11403
(exit $ac_status); }; }; then
11404
db_cv_mutex="Solaris/lwp"
11406
echo "$as_me: program exited with status $ac_status" >&5
11407
echo "$as_me: failed program was:" >&5
11408
cat conftest.$ac_ext >&5
11410
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11414
# UI threads: thr_XXX
11416
# Try with and without the -lthread library.
11417
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
11418
LIBS="-lthread $LIBS"
11419
if test "$cross_compiling" = yes; then
11420
{ { echo "$as_me:11420: error: cannot run test program while cross compiling" >&5
11421
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11422
{ (exit 1); exit 1; }; }
11424
cat >conftest.$ac_ext <<_ACEOF
11425
#line 11425 "configure"
11426
#include "confdefs.h"
11428
#include <thread.h>
11433
int type = USYNC_PROCESS;
11435
mutex_init(&mutex, type, NULL) ||
11436
cond_init(&cond, type, NULL) ||
11437
mutex_lock(&mutex) ||
11438
mutex_unlock(&mutex));
11441
rm -f conftest$ac_exeext
11442
if { (eval echo "$as_me:11442: \"$ac_link\"") >&5
11443
(eval $ac_link) 2>&5
11445
echo "$as_me:11445: \$? = $ac_status" >&5
11446
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11447
{ (eval echo "$as_me:11447: \"$ac_try\"") >&5
11448
(eval $ac_try) 2>&5
11450
echo "$as_me:11450: \$? = $ac_status" >&5
11451
(exit $ac_status); }; }; then
11452
db_cv_mutex="UI/threads/library"
11454
echo "$as_me: program exited with status $ac_status" >&5
11455
echo "$as_me: failed program was:" >&5
11456
cat conftest.$ac_ext >&5
11458
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11462
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "ui_only"; then
11463
if test "$cross_compiling" = yes; then
11464
{ { echo "$as_me:11464: error: cannot run test program while cross compiling" >&5
11465
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11466
{ (exit 1); exit 1; }; }
11468
cat >conftest.$ac_ext <<_ACEOF
11469
#line 11469 "configure"
11470
#include "confdefs.h"
11472
#include <thread.h>
11477
int type = USYNC_PROCESS;
11479
mutex_init(&mutex, type, NULL) ||
11480
cond_init(&cond, type, NULL) ||
11481
mutex_lock(&mutex) ||
11482
mutex_unlock(&mutex));
11485
rm -f conftest$ac_exeext
11486
if { (eval echo "$as_me:11486: \"$ac_link\"") >&5
11487
(eval $ac_link) 2>&5
11489
echo "$as_me:11489: \$? = $ac_status" >&5
11490
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11491
{ (eval echo "$as_me:11491: \"$ac_try\"") >&5
11492
(eval $ac_try) 2>&5
11494
echo "$as_me:11494: \$? = $ac_status" >&5
11495
(exit $ac_status); }; }; then
11496
db_cv_mutex="UI/threads"
11498
echo "$as_me: program exited with status $ac_status" >&5
11499
echo "$as_me: failed program was:" >&5
11500
cat conftest.$ac_ext >&5
11502
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11505
if test "$db_cv_mutex" = "ui_only"; then
11506
{ { echo "$as_me:11506: error: unable to find UI mutex interfaces" >&5
11507
echo "$as_me: error: unable to find UI mutex interfaces" >&2;}
11508
{ (exit 1); exit 1; }; }
11511
# POSIX.1 pthreads: pthread_XXX
11513
# Try with and without the -lpthread library.
11514
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
11515
if test "$cross_compiling" = yes; then
11516
{ { echo "$as_me:11516: error: cannot run test program while cross compiling" >&5
11517
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11518
{ (exit 1); exit 1; }; }
11520
cat >conftest.$ac_ext <<_ACEOF
11521
#line 11521 "configure"
11522
#include "confdefs.h"
11524
#include <pthread.h>
11526
pthread_cond_t cond;
11527
pthread_mutex_t mutex;
11528
pthread_condattr_t condattr;
11529
pthread_mutexattr_t mutexattr;
11531
pthread_condattr_init(&condattr) ||
11532
pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
11533
pthread_mutexattr_init(&mutexattr) ||
11534
pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
11535
pthread_cond_init(&cond, &condattr) ||
11536
pthread_mutex_init(&mutex, &mutexattr) ||
11537
pthread_mutex_lock(&mutex) ||
11538
pthread_mutex_unlock(&mutex) ||
11539
pthread_mutex_destroy(&mutex) ||
11540
pthread_cond_destroy(&cond) ||
11541
pthread_condattr_destroy(&condattr) ||
11542
pthread_mutexattr_destroy(&mutexattr));
11545
rm -f conftest$ac_exeext
11546
if { (eval echo "$as_me:11546: \"$ac_link\"") >&5
11547
(eval $ac_link) 2>&5
11549
echo "$as_me:11549: \$? = $ac_status" >&5
11550
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11551
{ (eval echo "$as_me:11551: \"$ac_try\"") >&5
11552
(eval $ac_try) 2>&5
11554
echo "$as_me:11554: \$? = $ac_status" >&5
11555
(exit $ac_status); }; }; then
11556
db_cv_mutex="POSIX/pthreads"
11558
echo "$as_me: program exited with status $ac_status" >&5
11559
echo "$as_me: failed program was:" >&5
11560
cat conftest.$ac_ext >&5
11562
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11565
if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
11566
LIBS="-lpthread $LIBS"
11567
if test "$cross_compiling" = yes; then
11568
{ { echo "$as_me:11568: error: cannot run test program while cross compiling" >&5
11569
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11570
{ (exit 1); exit 1; }; }
11572
cat >conftest.$ac_ext <<_ACEOF
11573
#line 11573 "configure"
11574
#include "confdefs.h"
11576
#include <pthread.h>
11578
pthread_cond_t cond;
11579
pthread_mutex_t mutex;
11580
pthread_condattr_t condattr;
11581
pthread_mutexattr_t mutexattr;
11583
pthread_condattr_init(&condattr) ||
11584
pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) ||
11585
pthread_mutexattr_init(&mutexattr) ||
11586
pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) ||
11587
pthread_cond_init(&cond, &condattr) ||
11588
pthread_mutex_init(&mutex, &mutexattr) ||
11589
pthread_mutex_lock(&mutex) ||
11590
pthread_mutex_unlock(&mutex) ||
11591
pthread_mutex_destroy(&mutex) ||
11592
pthread_cond_destroy(&cond) ||
11593
pthread_condattr_destroy(&condattr) ||
11594
pthread_mutexattr_destroy(&mutexattr));
11597
rm -f conftest$ac_exeext
11598
if { (eval echo "$as_me:11598: \"$ac_link\"") >&5
11599
(eval $ac_link) 2>&5
11601
echo "$as_me:11601: \$? = $ac_status" >&5
11602
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11603
{ (eval echo "$as_me:11603: \"$ac_try\"") >&5
11604
(eval $ac_try) 2>&5
11606
echo "$as_me:11606: \$? = $ac_status" >&5
11607
(exit $ac_status); }; }; then
11608
db_cv_mutex="POSIX/pthreads/library"
11610
echo "$as_me: program exited with status $ac_status" >&5
11611
echo "$as_me: failed program was:" >&5
11612
cat conftest.$ac_ext >&5
11614
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11618
if test "$db_cv_mutex" = "posix_only"; then
11619
{ { echo "$as_me:11619: error: unable to find POSIX mutex interfaces" >&5
11620
echo "$as_me: error: unable to find POSIX mutex interfaces" >&2;}
11621
{ (exit 1); exit 1; }; }
11624
# msemaphore: HPPA only
11625
# Try HPPA before general msem test, it needs special alignment.
11626
if test "$db_cv_mutex" = no; then
11627
if test "$cross_compiling" = yes; then
11628
{ { echo "$as_me:11628: error: cannot run test program while cross compiling" >&5
11629
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11630
{ (exit 1); exit 1; }; }
11632
cat >conftest.$ac_ext <<_ACEOF
11633
#line 11633 "configure"
11634
#include "confdefs.h"
11636
#include <sys/mman.h>
11638
#if defined(__hppa)
11639
typedef msemaphore tsl_t;
11643
msem_unlock(&x, 0);
11650
rm -f conftest$ac_exeext
11651
if { (eval echo "$as_me:11651: \"$ac_link\"") >&5
11652
(eval $ac_link) 2>&5
11654
echo "$as_me:11654: \$? = $ac_status" >&5
11655
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11656
{ (eval echo "$as_me:11656: \"$ac_try\"") >&5
11657
(eval $ac_try) 2>&5
11659
echo "$as_me:11659: \$? = $ac_status" >&5
11660
(exit $ac_status); }; }; then
11661
db_cv_mutex="HP/msem_init"
11663
echo "$as_me: program exited with status $ac_status" >&5
11664
echo "$as_me: failed program was:" >&5
11665
cat conftest.$ac_ext >&5
11667
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11671
# msemaphore: AIX, OSF/1
11672
if test "$db_cv_mutex" = no; then
11673
if test "$cross_compiling" = yes; then
11674
{ { echo "$as_me:11674: error: cannot run test program while cross compiling" >&5
11675
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11676
{ (exit 1); exit 1; }; }
11678
cat >conftest.$ac_ext <<_ACEOF
11679
#line 11679 "configure"
11680
#include "confdefs.h"
11682
#include <sys/types.h>
11683
#include <sys/mman.h>;
11685
typedef msemaphore tsl_t;
11689
msem_unlock(&x, 0);
11693
rm -f conftest$ac_exeext
11694
if { (eval echo "$as_me:11694: \"$ac_link\"") >&5
11695
(eval $ac_link) 2>&5
11697
echo "$as_me:11697: \$? = $ac_status" >&5
11698
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11699
{ (eval echo "$as_me:11699: \"$ac_try\"") >&5
11700
(eval $ac_try) 2>&5
11702
echo "$as_me:11702: \$? = $ac_status" >&5
11703
(exit $ac_status); }; }; then
11704
db_cv_mutex="UNIX/msem_init"
11706
echo "$as_me: program exited with status $ac_status" >&5
11707
echo "$as_me: failed program was:" >&5
11708
cat conftest.$ac_ext >&5
11710
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11715
if test "$db_cv_mutex" = no; then
11716
LIBS="$LIBS -lmproc"
11717
cat >conftest.$ac_ext <<_ACEOF
11718
#line 11718 "configure"
11719
#include "confdefs.h"
11720
#include <ulocks.h>
11724
typedef spinlock_t tsl_t;
11725
spinlock_t x; initspin(&x, 1); cspinlock(&x); spinunlock(&x);
11730
rm -f conftest.$ac_objext conftest$ac_exeext
11731
if { (eval echo "$as_me:11731: \"$ac_link\"") >&5
11732
(eval $ac_link) 2>&5
11734
echo "$as_me:11734: \$? = $ac_status" >&5
11735
(exit $ac_status); } &&
11736
{ ac_try='test -s conftest$ac_exeext'
11737
{ (eval echo "$as_me:11737: \"$ac_try\"") >&5
11738
(eval $ac_try) 2>&5
11740
echo "$as_me:11740: \$? = $ac_status" >&5
11741
(exit $ac_status); }; }; then
11742
db_cv_mutex="ReliantUNIX/initspin"
11744
echo "$as_me: failed program was:" >&5
11745
cat conftest.$ac_ext >&5
11747
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11751
# SCO: UnixWare has threads in libthread, but OpenServer doesn't.
11752
if test "$db_cv_mutex" = no; then
11753
if test "$cross_compiling" = yes; then
11754
{ { echo "$as_me:11754: error: cannot run test program while cross compiling" >&5
11755
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11756
{ (exit 1); exit 1; }; }
11758
cat >conftest.$ac_ext <<_ACEOF
11759
#line 11759 "configure"
11760
#include "confdefs.h"
11763
#if defined(__USLC__)
11769
rm -f conftest$ac_exeext
11770
if { (eval echo "$as_me:11770: \"$ac_link\"") >&5
11771
(eval $ac_link) 2>&5
11773
echo "$as_me:11773: \$? = $ac_status" >&5
11774
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11775
{ (eval echo "$as_me:11775: \"$ac_try\"") >&5
11776
(eval $ac_try) 2>&5
11778
echo "$as_me:11778: \$? = $ac_status" >&5
11779
(exit $ac_status); }; }; then
11780
db_cv_mutex="SCO/x86/cc-assembly"
11782
echo "$as_me: program exited with status $ac_status" >&5
11783
echo "$as_me: failed program was:" >&5
11784
cat conftest.$ac_ext >&5
11786
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11791
if test "$db_cv_mutex" = no; then
11792
cat >conftest.$ac_ext <<_ACEOF
11793
#line 11793 "configure"
11794
#include "confdefs.h"
11795
#include <abi_mutex.h>
11799
typedef abilock_t tsl_t;
11800
abilock_t x; init_lock(&x); acquire_lock(&x); release_lock(&x);
11805
rm -f conftest.$ac_objext conftest$ac_exeext
11806
if { (eval echo "$as_me:11806: \"$ac_link\"") >&5
11807
(eval $ac_link) 2>&5
11809
echo "$as_me:11809: \$? = $ac_status" >&5
11810
(exit $ac_status); } &&
11811
{ ac_try='test -s conftest$ac_exeext'
11812
{ (eval echo "$as_me:11812: \"$ac_try\"") >&5
11813
(eval $ac_try) 2>&5
11815
echo "$as_me:11815: \$? = $ac_status" >&5
11816
(exit $ac_status); }; }; then
11817
db_cv_mutex="SGI/init_lock"
11819
echo "$as_me: failed program was:" >&5
11820
cat conftest.$ac_ext >&5
11822
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11826
# The sema_XXX calls do not work on Solaris 5.5. I see no reason to ever
11827
# turn this test on, unless we find some other platform that uses the old
11828
# POSIX.1 interfaces. (I plan to move directly to pthreads on Solaris.)
11829
if test "$db_cv_mutex" = DOESNT_WORK; then
11830
cat >conftest.$ac_ext <<_ACEOF
11831
#line 11831 "configure"
11832
#include "confdefs.h"
11837
typedef sema_t tsl_t;
11839
sema_init(&x, 1, USYNC_PROCESS, NULL); sema_wait(&x); sema_post(&x);
11844
rm -f conftest.$ac_objext conftest$ac_exeext
11845
if { (eval echo "$as_me:11845: \"$ac_link\"") >&5
11846
(eval $ac_link) 2>&5
11848
echo "$as_me:11848: \$? = $ac_status" >&5
11849
(exit $ac_status); } &&
11850
{ ac_try='test -s conftest$ac_exeext'
11851
{ (eval echo "$as_me:11851: \"$ac_try\"") >&5
11852
(eval $ac_try) 2>&5
11854
echo "$as_me:11854: \$? = $ac_status" >&5
11855
(exit $ac_status); }; }; then
11856
db_cv_mutex="UNIX/sema_init"
11858
echo "$as_me: failed program was:" >&5
11859
cat conftest.$ac_ext >&5
11861
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11864
# _lock_try/_lock_clear: Solaris
11865
# On Solaris systems without Pthread or UI mutex interfaces, DB uses the
11866
# undocumented _lock_try _lock_clear function calls instead of either the
11867
# sema_trywait(3T) or sema_wait(3T) function calls. This is because of
11868
# problems in those interfaces in some releases of the Solaris C library.
11869
if test "$db_cv_mutex" = no; then
11870
cat >conftest.$ac_ext <<_ACEOF
11871
#line 11871 "configure"
11872
#include "confdefs.h"
11873
#include <sys/machlock.h>
11877
typedef lock_t tsl_t;
11879
_lock_try(&x); _lock_clear(&x);
11884
rm -f conftest.$ac_objext conftest$ac_exeext
11885
if { (eval echo "$as_me:11885: \"$ac_link\"") >&5
11886
(eval $ac_link) 2>&5
11888
echo "$as_me:11888: \$? = $ac_status" >&5
11889
(exit $ac_status); } &&
11890
{ ac_try='test -s conftest$ac_exeext'
11891
{ (eval echo "$as_me:11891: \"$ac_try\"") >&5
11892
(eval $ac_try) 2>&5
11894
echo "$as_me:11894: \$? = $ac_status" >&5
11895
(exit $ac_status); }; }; then
11896
db_cv_mutex="Solaris/_lock_try"
11898
echo "$as_me: failed program was:" >&5
11899
cat conftest.$ac_ext >&5
11901
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11904
# _check_lock/_clear_lock: AIX
11905
if test "$db_cv_mutex" = no; then
11906
cat >conftest.$ac_ext <<_ACEOF
11907
#line 11907 "configure"
11908
#include "confdefs.h"
11909
#include <sys/atomic_op.h>
11913
int x; _check_lock(&x,0,1); _clear_lock(&x,0);
11918
rm -f conftest.$ac_objext conftest$ac_exeext
11919
if { (eval echo "$as_me:11919: \"$ac_link\"") >&5
11920
(eval $ac_link) 2>&5
11922
echo "$as_me:11922: \$? = $ac_status" >&5
11923
(exit $ac_status); } &&
11924
{ ac_try='test -s conftest$ac_exeext'
11925
{ (eval echo "$as_me:11925: \"$ac_try\"") >&5
11926
(eval $ac_try) 2>&5
11928
echo "$as_me:11928: \$? = $ac_status" >&5
11929
(exit $ac_status); }; }; then
11930
db_cv_mutex="AIX/_check_lock"
11932
echo "$as_me: failed program was:" >&5
11933
cat conftest.$ac_ext >&5
11935
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11939
if test "$db_cv_mutex" = no; then
11940
if test "$cross_compiling" = yes; then
11941
{ { echo "$as_me:11941: error: cannot run test program while cross compiling" >&5
11942
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11943
{ (exit 1); exit 1; }; }
11945
cat >conftest.$ac_ext <<_ACEOF
11946
#line 11946 "configure"
11947
#include "confdefs.h"
11949
#if defined(__alpha)
11950
#if defined(__GNUC__)
11956
rm -f conftest$ac_exeext
11957
if { (eval echo "$as_me:11957: \"$ac_link\"") >&5
11958
(eval $ac_link) 2>&5
11960
echo "$as_me:11960: \$? = $ac_status" >&5
11961
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11962
{ (eval echo "$as_me:11962: \"$ac_try\"") >&5
11963
(eval $ac_try) 2>&5
11965
echo "$as_me:11965: \$? = $ac_status" >&5
11966
(exit $ac_status); }; }; then
11967
db_cv_mutex="ALPHA/gcc-assembly"
11969
echo "$as_me: program exited with status $ac_status" >&5
11970
echo "$as_me: failed program was:" >&5
11971
cat conftest.$ac_ext >&5
11973
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11977
# PaRisc/gcc: HP/UX
11978
if test "$db_cv_mutex" = no; then
11979
if test "$cross_compiling" = yes; then
11980
{ { echo "$as_me:11980: error: cannot run test program while cross compiling" >&5
11981
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
11982
{ (exit 1); exit 1; }; }
11984
cat >conftest.$ac_ext <<_ACEOF
11985
#line 11985 "configure"
11986
#include "confdefs.h"
11988
#if defined(__hppa)
11989
#if defined(__GNUC__)
11995
rm -f conftest$ac_exeext
11996
if { (eval echo "$as_me:11996: \"$ac_link\"") >&5
11997
(eval $ac_link) 2>&5
11999
echo "$as_me:11999: \$? = $ac_status" >&5
12000
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12001
{ (eval echo "$as_me:12001: \"$ac_try\"") >&5
12002
(eval $ac_try) 2>&5
12004
echo "$as_me:12004: \$? = $ac_status" >&5
12005
(exit $ac_status); }; }; then
12006
db_cv_mutex="HPPA/gcc-assembly"
12008
echo "$as_me: program exited with status $ac_status" >&5
12009
echo "$as_me: failed program was:" >&5
12010
cat conftest.$ac_ext >&5
12012
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12017
if test "$db_cv_mutex" = no; then
12018
if test "$cross_compiling" = yes; then
12019
{ { echo "$as_me:12019: error: cannot run test program while cross compiling" >&5
12020
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12021
{ (exit 1); exit 1; }; }
12023
cat >conftest.$ac_ext <<_ACEOF
12024
#line 12024 "configure"
12025
#include "confdefs.h"
12027
#if defined(__powerpc__) || defined(__ppc__)
12028
#if defined(__GNUC__)
12034
rm -f conftest$ac_exeext
12035
if { (eval echo "$as_me:12035: \"$ac_link\"") >&5
12036
(eval $ac_link) 2>&5
12038
echo "$as_me:12038: \$? = $ac_status" >&5
12039
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12040
{ (eval echo "$as_me:12040: \"$ac_try\"") >&5
12041
(eval $ac_try) 2>&5
12043
echo "$as_me:12043: \$? = $ac_status" >&5
12044
(exit $ac_status); }; }; then
12045
db_cv_mutex="PPC/gcc-assembly"
12047
echo "$as_me: program exited with status $ac_status" >&5
12048
echo "$as_me: failed program was:" >&5
12049
cat conftest.$ac_ext >&5
12051
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12055
# Sparc/gcc: SunOS, Solaris
12056
if test "$db_cv_mutex" = no; then
12057
if test "$cross_compiling" = yes; then
12058
{ { echo "$as_me:12058: error: cannot run test program while cross compiling" >&5
12059
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12060
{ (exit 1); exit 1; }; }
12062
cat >conftest.$ac_ext <<_ACEOF
12063
#line 12063 "configure"
12064
#include "confdefs.h"
12066
#if defined(__sparc__)
12067
#if defined(__GNUC__)
12074
rm -f conftest$ac_exeext
12075
if { (eval echo "$as_me:12075: \"$ac_link\"") >&5
12076
(eval $ac_link) 2>&5
12078
echo "$as_me:12078: \$? = $ac_status" >&5
12079
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12080
{ (eval echo "$as_me:12080: \"$ac_try\"") >&5
12081
(eval $ac_try) 2>&5
12083
echo "$as_me:12083: \$? = $ac_status" >&5
12084
(exit $ac_status); }; }; then
12085
db_cv_mutex="Sparc/gcc-assembly"
12087
echo "$as_me: program exited with status $ac_status" >&5
12088
echo "$as_me: failed program was:" >&5
12089
cat conftest.$ac_ext >&5
12091
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12096
if test "$db_cv_mutex" = no; then
12097
if test "$cross_compiling" = yes; then
12098
{ { echo "$as_me:12098: error: cannot run test program while cross compiling" >&5
12099
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12100
{ (exit 1); exit 1; }; }
12102
cat >conftest.$ac_ext <<_ACEOF
12103
#line 12103 "configure"
12104
#include "confdefs.h"
12106
#if (defined(mc68020) || defined(sun3))
12107
#if defined(__GNUC__)
12114
rm -f conftest$ac_exeext
12115
if { (eval echo "$as_me:12115: \"$ac_link\"") >&5
12116
(eval $ac_link) 2>&5
12118
echo "$as_me:12118: \$? = $ac_status" >&5
12119
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12120
{ (eval echo "$as_me:12120: \"$ac_try\"") >&5
12121
(eval $ac_try) 2>&5
12123
echo "$as_me:12123: \$? = $ac_status" >&5
12124
(exit $ac_status); }; }; then
12125
db_cv_mutex="68K/gcc-assembly"
12127
echo "$as_me: program exited with status $ac_status" >&5
12128
echo "$as_me: failed program was:" >&5
12129
cat conftest.$ac_ext >&5
12131
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12135
# x86/gcc: FreeBSD, NetBSD, BSD/OS, Linux
12136
if test "$db_cv_mutex" = no; then
12137
if test "$cross_compiling" = yes; then
12138
{ { echo "$as_me:12138: error: cannot run test program while cross compiling" >&5
12139
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12140
{ (exit 1); exit 1; }; }
12142
cat >conftest.$ac_ext <<_ACEOF
12143
#line 12143 "configure"
12144
#include "confdefs.h"
12146
#if defined(i386) || defined(__i386__)
12147
#if defined(__GNUC__)
12154
rm -f conftest$ac_exeext
12155
if { (eval echo "$as_me:12155: \"$ac_link\"") >&5
12156
(eval $ac_link) 2>&5
12158
echo "$as_me:12158: \$? = $ac_status" >&5
12159
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12160
{ (eval echo "$as_me:12160: \"$ac_try\"") >&5
12161
(eval $ac_try) 2>&5
12163
echo "$as_me:12163: \$? = $ac_status" >&5
12164
(exit $ac_status); }; }; then
12165
db_cv_mutex="x86/gcc-assembly"
12167
echo "$as_me: program exited with status $ac_status" >&5
12168
echo "$as_me: failed program was:" >&5
12169
cat conftest.$ac_ext >&5
12171
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12176
if test "$db_cv_mutex" = no; then
12177
if test "$cross_compiling" = yes; then
12178
{ { echo "$as_me:12178: error: cannot run test program while cross compiling" >&5
12179
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12180
{ (exit 1); exit 1; }; }
12182
cat >conftest.$ac_ext <<_ACEOF
12183
#line 12183 "configure"
12184
#include "confdefs.h"
12186
#if defined(__ia64)
12187
#if defined(__GNUC__)
12194
rm -f conftest$ac_exeext
12195
if { (eval echo "$as_me:12195: \"$ac_link\"") >&5
12196
(eval $ac_link) 2>&5
12198
echo "$as_me:12198: \$? = $ac_status" >&5
12199
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12200
{ (eval echo "$as_me:12200: \"$ac_try\"") >&5
12201
(eval $ac_try) 2>&5
12203
echo "$as_me:12203: \$? = $ac_status" >&5
12204
(exit $ac_status); }; }; then
12205
db_cv_mutex="ia64/gcc-assembly"
12207
echo "$as_me: program exited with status $ac_status" >&5
12208
echo "$as_me: failed program was:" >&5
12209
cat conftest.$ac_ext >&5
12211
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12216
if test "$db_cv_mutex" = no; then
12217
if test "$cross_compiling" = yes; then
12218
{ { echo "$as_me:12218: error: cannot run test program while cross compiling" >&5
12219
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12220
{ (exit 1); exit 1; }; }
12222
cat >conftest.$ac_ext <<_ACEOF
12223
#line 12223 "configure"
12224
#include "confdefs.h"
12232
rm -f conftest$ac_exeext
12233
if { (eval echo "$as_me:12233: \"$ac_link\"") >&5
12234
(eval $ac_link) 2>&5
12236
echo "$as_me:12236: \$? = $ac_status" >&5
12237
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12238
{ (eval echo "$as_me:12238: \"$ac_try\"") >&5
12239
(eval $ac_try) 2>&5
12241
echo "$as_me:12241: \$? = $ac_status" >&5
12242
(exit $ac_status); }; }; then
12243
db_cv_mutex="UTS/cc-assembly"
12245
echo "$as_me: program exited with status $ac_status" >&5
12246
echo "$as_me: failed program was:" >&5
12247
cat conftest.$ac_ext >&5
12249
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12254
echo "$as_me:12254: result: $db_cv_mutex" >&5
12255
echo "${ECHO_T}$db_cv_mutex" >&6
12257
if test "$db_cv_mutex" = no; then
12258
{ echo "$as_me:12258: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5
12259
echo "$as_me: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&2;}
12260
ADDITIONAL_OBJS="mut_fcntl${o} $ADDITIONAL_OBJS"
12262
cat >>confdefs.h <<\EOF
12263
#define HAVE_MUTEX_THREADS 1
12268
case "$db_cv_mutex" in
12269
68K/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12270
cat >>confdefs.h <<\EOF
12271
#define HAVE_MUTEX_68K_GCC_ASSEMBLY 1
12275
AIX/_check_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12276
cat >>confdefs.h <<\EOF
12277
#define HAVE_MUTEX_AIX_CHECK_LOCK 1
12281
ALPHA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12282
cat >>confdefs.h <<\EOF
12283
#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY 1
12287
HP/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12288
cat >>confdefs.h <<\EOF
12289
#define HAVE_MUTEX_HPPA_MSEM_INIT 1
12293
HPPA/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12294
cat >>confdefs.h <<\EOF
12295
#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY 1
12299
ia64/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12300
cat >>confdefs.h <<\EOF
12301
#define HAVE_MUTEX_IA64_GCC_ASSEMBLY 1
12305
POSIX/pthreads) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
12306
cat >>confdefs.h <<\EOF
12307
#define HAVE_MUTEX_PTHREADS 1
12311
POSIX/pthreads/library) LIBS="-lpthread $LIBS"
12312
ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
12313
cat >>confdefs.h <<\EOF
12314
#define HAVE_MUTEX_PTHREADS 1
12318
PPC/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12319
cat >>confdefs.h <<\EOF
12320
#define HAVE_MUTEX_PPC_GCC_ASSEMBLY 1
12324
ReliantUNIX/initspin) LIBS="$LIBS -lmproc"
12325
ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12326
cat >>confdefs.h <<\EOF
12327
#define HAVE_MUTEX_RELIANTUNIX_INITSPIN 1
12331
SCO/x86/cc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12332
cat >>confdefs.h <<\EOF
12333
#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY 1
12337
SGI/init_lock) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12338
cat >>confdefs.h <<\EOF
12339
#define HAVE_MUTEX_SGI_INIT_LOCK 1
12343
Solaris/_lock_try) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12344
cat >>confdefs.h <<\EOF
12345
#define HAVE_MUTEX_SOLARIS_LOCK_TRY 1
12349
Solaris/lwp) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
12350
cat >>confdefs.h <<\EOF
12351
#define HAVE_MUTEX_SOLARIS_LWP 1
12355
Sparc/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12356
cat >>confdefs.h <<\EOF
12357
#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY 1
12361
UI/threads) ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
12362
cat >>confdefs.h <<\EOF
12363
#define HAVE_MUTEX_UI_THREADS 1
12367
UI/threads/library) LIBS="-lthread $LIBS"
12368
ADDITIONAL_OBJS="mut_pthread${o} $ADDITIONAL_OBJS"
12369
cat >>confdefs.h <<\EOF
12370
#define HAVE_MUTEX_UI_THREADS 1
12374
UNIX/msem_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12375
cat >>confdefs.h <<\EOF
12376
#define HAVE_MUTEX_MSEM_INIT 1
12380
UNIX/sema_init) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12381
cat >>confdefs.h <<\EOF
12382
#define HAVE_MUTEX_SEMA_INIT 1
12386
UTS/cc-assembly) ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}"
12387
cat >>confdefs.h <<\EOF
12388
#define HAVE_MUTEX_UTS_CC_ASSEMBLY 1
12392
x86/gcc-assembly) ADDITIONAL_OBJS="mut_tas${o} $ADDITIONAL_OBJS"
12393
cat >>confdefs.h <<\EOF
12394
#define HAVE_MUTEX_X86_GCC_ASSEMBLY 1
12400
# Checks for system functions for which we have replacements.
12403
# The only portable getcwd call is getcwd(char *, size_t), where the
12404
# buffer is non-NULL -- Solaris can't handle a NULL buffer, and they
12407
for ac_func in getcwd getopt memcmp memcpy memmove
12409
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12410
echo "$as_me:12410: checking for $ac_func" >&5
12411
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12412
if eval "test \"\${$ac_ac_var+set}\" = set"; then
12413
echo $ECHO_N "(cached) $ECHO_C" >&6
12415
cat >conftest.$ac_ext <<_ACEOF
12416
#line 12416 "configure"
12417
#include "confdefs.h"
12418
/* System header to define __stub macros and hopefully few prototypes,
12419
which can conflict with char $ac_func (); below. */
12420
#include <assert.h>
12421
/* Override any gcc2 internal prototype to avoid an error. */
12425
/* We use char because int might match the return type of a gcc2
12426
builtin and then its argument prototype would still apply. */
12433
/* The GNU C library defines this for functions which it implements
12434
to always fail with ENOSYS. Some functions are actually named
12435
something starting with __ and the normal name is an alias. */
12436
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12446
rm -f conftest.$ac_objext conftest$ac_exeext
12447
if { (eval echo "$as_me:12447: \"$ac_link\"") >&5
12448
(eval $ac_link) 2>&5
12450
echo "$as_me:12450: \$? = $ac_status" >&5
12451
(exit $ac_status); } &&
12452
{ ac_try='test -s conftest$ac_exeext'
12453
{ (eval echo "$as_me:12453: \"$ac_try\"") >&5
12454
(eval $ac_try) 2>&5
12456
echo "$as_me:12456: \$? = $ac_status" >&5
12457
(exit $ac_status); }; }; then
12458
eval "$ac_ac_var=yes"
12460
echo "$as_me: failed program was:" >&5
12461
cat conftest.$ac_ext >&5
12462
eval "$ac_ac_var=no"
12464
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12466
echo "$as_me:12466: result: `eval echo '${'$ac_ac_var'}'`" >&5
12467
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12468
if test `eval echo '${'$ac_ac_var'}'` = yes; then
12469
cat >>confdefs.h <<EOF
12470
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12474
LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12478
for ac_func in raise snprintf strcasecmp strerror vsnprintf
12480
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12481
echo "$as_me:12481: checking for $ac_func" >&5
12482
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12483
if eval "test \"\${$ac_ac_var+set}\" = set"; then
12484
echo $ECHO_N "(cached) $ECHO_C" >&6
12486
cat >conftest.$ac_ext <<_ACEOF
12487
#line 12487 "configure"
12488
#include "confdefs.h"
12489
/* System header to define __stub macros and hopefully few prototypes,
12490
which can conflict with char $ac_func (); below. */
12491
#include <assert.h>
12492
/* Override any gcc2 internal prototype to avoid an error. */
12496
/* We use char because int might match the return type of a gcc2
12497
builtin and then its argument prototype would still apply. */
12504
/* The GNU C library defines this for functions which it implements
12505
to always fail with ENOSYS. Some functions are actually named
12506
something starting with __ and the normal name is an alias. */
12507
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12517
rm -f conftest.$ac_objext conftest$ac_exeext
12518
if { (eval echo "$as_me:12518: \"$ac_link\"") >&5
12519
(eval $ac_link) 2>&5
12521
echo "$as_me:12521: \$? = $ac_status" >&5
12522
(exit $ac_status); } &&
12523
{ ac_try='test -s conftest$ac_exeext'
12524
{ (eval echo "$as_me:12524: \"$ac_try\"") >&5
12525
(eval $ac_try) 2>&5
12527
echo "$as_me:12527: \$? = $ac_status" >&5
12528
(exit $ac_status); }; }; then
12529
eval "$ac_ac_var=yes"
12531
echo "$as_me: failed program was:" >&5
12532
cat conftest.$ac_ext >&5
12533
eval "$ac_ac_var=no"
12535
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12537
echo "$as_me:12537: result: `eval echo '${'$ac_ac_var'}'`" >&5
12538
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12539
if test `eval echo '${'$ac_ac_var'}'` = yes; then
12540
cat >>confdefs.h <<EOF
12541
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12545
LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12550
# Nasty hack. AC_REPLACE_FUNCS added entries of the form xxx.o to the
12551
# LIBOBJS variable. They have to be xxx.lo if we are building shared
12552
# libraries. Use sed, configure already requires it.
12553
tmp="`echo \"$LIBOBJS\" | sed \"s/\.o/${o}/g\"`"
12556
# Check for system functions we optionally use.
12558
for ac_func in _fstati64 getuid pstat_getdynamic sched_yield select strtoul
12560
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12561
echo "$as_me:12561: checking for $ac_func" >&5
12562
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12563
if eval "test \"\${$ac_ac_var+set}\" = set"; then
12564
echo $ECHO_N "(cached) $ECHO_C" >&6
12566
cat >conftest.$ac_ext <<_ACEOF
12567
#line 12567 "configure"
12568
#include "confdefs.h"
12569
/* System header to define __stub macros and hopefully few prototypes,
12570
which can conflict with char $ac_func (); below. */
12571
#include <assert.h>
12572
/* Override any gcc2 internal prototype to avoid an error. */
12576
/* We use char because int might match the return type of a gcc2
12577
builtin and then its argument prototype would still apply. */
12584
/* The GNU C library defines this for functions which it implements
12585
to always fail with ENOSYS. Some functions are actually named
12586
something starting with __ and the normal name is an alias. */
12587
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12597
rm -f conftest.$ac_objext conftest$ac_exeext
12598
if { (eval echo "$as_me:12598: \"$ac_link\"") >&5
12599
(eval $ac_link) 2>&5
12601
echo "$as_me:12601: \$? = $ac_status" >&5
12602
(exit $ac_status); } &&
12603
{ ac_try='test -s conftest$ac_exeext'
12604
{ (eval echo "$as_me:12604: \"$ac_try\"") >&5
12605
(eval $ac_try) 2>&5
12607
echo "$as_me:12607: \$? = $ac_status" >&5
12608
(exit $ac_status); }; }; then
12609
eval "$ac_ac_var=yes"
12611
echo "$as_me: failed program was:" >&5
12612
cat conftest.$ac_ext >&5
12613
eval "$ac_ac_var=no"
12615
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12617
echo "$as_me:12617: result: `eval echo '${'$ac_ac_var'}'`" >&5
12618
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12619
if test `eval echo '${'$ac_ac_var'}'` = yes; then
12620
cat >>confdefs.h <<EOF
12621
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12627
for ac_func in sysconf yield
12629
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12630
echo "$as_me:12630: checking for $ac_func" >&5
12631
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12632
if eval "test \"\${$ac_ac_var+set}\" = set"; then
12633
echo $ECHO_N "(cached) $ECHO_C" >&6
12635
cat >conftest.$ac_ext <<_ACEOF
12636
#line 12636 "configure"
12637
#include "confdefs.h"
12638
/* System header to define __stub macros and hopefully few prototypes,
12639
which can conflict with char $ac_func (); below. */
12640
#include <assert.h>
12641
/* Override any gcc2 internal prototype to avoid an error. */
12645
/* We use char because int might match the return type of a gcc2
12646
builtin and then its argument prototype would still apply. */
12653
/* The GNU C library defines this for functions which it implements
12654
to always fail with ENOSYS. Some functions are actually named
12655
something starting with __ and the normal name is an alias. */
12656
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12666
rm -f conftest.$ac_objext conftest$ac_exeext
12667
if { (eval echo "$as_me:12667: \"$ac_link\"") >&5
12668
(eval $ac_link) 2>&5
12670
echo "$as_me:12670: \$? = $ac_status" >&5
12671
(exit $ac_status); } &&
12672
{ ac_try='test -s conftest$ac_exeext'
12673
{ (eval echo "$as_me:12673: \"$ac_try\"") >&5
12674
(eval $ac_try) 2>&5
12676
echo "$as_me:12676: \$? = $ac_status" >&5
12677
(exit $ac_status); }; }; then
12678
eval "$ac_ac_var=yes"
12680
echo "$as_me: failed program was:" >&5
12681
cat conftest.$ac_ext >&5
12682
eval "$ac_ac_var=no"
12684
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12686
echo "$as_me:12686: result: `eval echo '${'$ac_ac_var'}'`" >&5
12687
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12688
if test `eval echo '${'$ac_ac_var'}'` = yes; then
12689
cat >>confdefs.h <<EOF
12690
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12698
# HP-UX has pread/pwrite, but it doesn't work with bigfile support.
12701
{ echo "$as_me:12701: WARNING: pread/pwrite interfaces ignored on $host_os." >&5
12702
echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os." >&2;};;
12705
for ac_func in pread pwrite
12707
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12708
echo "$as_me:12708: checking for $ac_func" >&5
12709
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12710
if eval "test \"\${$ac_ac_var+set}\" = set"; then
12711
echo $ECHO_N "(cached) $ECHO_C" >&6
12713
cat >conftest.$ac_ext <<_ACEOF
12714
#line 12714 "configure"
12715
#include "confdefs.h"
12716
/* System header to define __stub macros and hopefully few prototypes,
12717
which can conflict with char $ac_func (); below. */
12718
#include <assert.h>
12719
/* Override any gcc2 internal prototype to avoid an error. */
12723
/* We use char because int might match the return type of a gcc2
12724
builtin and then its argument prototype would still apply. */
12731
/* The GNU C library defines this for functions which it implements
12732
to always fail with ENOSYS. Some functions are actually named
12733
something starting with __ and the normal name is an alias. */
12734
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12744
rm -f conftest.$ac_objext conftest$ac_exeext
12745
if { (eval echo "$as_me:12745: \"$ac_link\"") >&5
12746
(eval $ac_link) 2>&5
12748
echo "$as_me:12748: \$? = $ac_status" >&5
12749
(exit $ac_status); } &&
12750
{ ac_try='test -s conftest$ac_exeext'
12751
{ (eval echo "$as_me:12751: \"$ac_try\"") >&5
12752
(eval $ac_try) 2>&5
12754
echo "$as_me:12754: \$? = $ac_status" >&5
12755
(exit $ac_status); }; }; then
12756
eval "$ac_ac_var=yes"
12758
echo "$as_me: failed program was:" >&5
12759
cat conftest.$ac_ext >&5
12760
eval "$ac_ac_var=no"
12762
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12764
echo "$as_me:12764: result: `eval echo '${'$ac_ac_var'}'`" >&5
12765
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12766
if test `eval echo '${'$ac_ac_var'}'` = yes; then
12767
cat >>confdefs.h <<EOF
12768
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12776
# Check for fcntl(2) to deny child process access to file descriptors.
12777
echo "$as_me:12777: checking for fcntl/F_SETFD" >&5
12778
echo $ECHO_N "checking for fcntl/F_SETFD... $ECHO_C" >&6
12779
if test "${db_cv_fcntl_f_setfd+set}" = set; then
12780
echo $ECHO_N "(cached) $ECHO_C" >&6
12783
if test "$cross_compiling" = yes; then
12784
{ { echo "$as_me:12784: error: cannot run test program while cross compiling" >&5
12785
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12786
{ (exit 1); exit 1; }; }
12788
cat >conftest.$ac_ext <<_ACEOF
12789
#line 12789 "configure"
12790
#include "confdefs.h"
12792
#include <sys/types.h>
12794
main(){exit(fcntl(1, F_SETFD, 1) == -1);}
12796
rm -f conftest$ac_exeext
12797
if { (eval echo "$as_me:12797: \"$ac_link\"") >&5
12798
(eval $ac_link) 2>&5
12800
echo "$as_me:12800: \$? = $ac_status" >&5
12801
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12802
{ (eval echo "$as_me:12802: \"$ac_try\"") >&5
12803
(eval $ac_try) 2>&5
12805
echo "$as_me:12805: \$? = $ac_status" >&5
12806
(exit $ac_status); }; }; then
12807
db_cv_fcntl_f_setfd=yes
12809
echo "$as_me: program exited with status $ac_status" >&5
12810
echo "$as_me: failed program was:" >&5
12811
cat conftest.$ac_ext >&5
12812
db_cv_fcntl_f_setfd=no
12814
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12817
echo "$as_me:12817: result: $db_cv_fcntl_f_setfd" >&5
12818
echo "${ECHO_T}$db_cv_fcntl_f_setfd" >&6
12819
if test "$db_cv_fcntl_f_setfd" = yes; then
12820
cat >>confdefs.h <<\EOF
12821
#define HAVE_FCNTL_F_SETFD 1
12826
# A/UX has a broken getopt(3).
12828
aux*) ADDITIONAL_OBJS="getopt${o} $ADDITIONAL_OBJS";;
12831
# Checks for system functions for which we don't have replacements.
12832
# We require qsort(3).
12834
for ac_func in qsort
12836
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12837
echo "$as_me:12837: checking for $ac_func" >&5
12838
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12839
if eval "test \"\${$ac_ac_var+set}\" = set"; then
12840
echo $ECHO_N "(cached) $ECHO_C" >&6
12842
cat >conftest.$ac_ext <<_ACEOF
12843
#line 12843 "configure"
12844
#include "confdefs.h"
12845
/* System header to define __stub macros and hopefully few prototypes,
12846
which can conflict with char $ac_func (); below. */
12847
#include <assert.h>
12848
/* Override any gcc2 internal prototype to avoid an error. */
12852
/* We use char because int might match the return type of a gcc2
12853
builtin and then its argument prototype would still apply. */
12860
/* The GNU C library defines this for functions which it implements
12861
to always fail with ENOSYS. Some functions are actually named
12862
something starting with __ and the normal name is an alias. */
12863
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12873
rm -f conftest.$ac_objext conftest$ac_exeext
12874
if { (eval echo "$as_me:12874: \"$ac_link\"") >&5
12875
(eval $ac_link) 2>&5
12877
echo "$as_me:12877: \$? = $ac_status" >&5
12878
(exit $ac_status); } &&
12879
{ ac_try='test -s conftest$ac_exeext'
12880
{ (eval echo "$as_me:12880: \"$ac_try\"") >&5
12881
(eval $ac_try) 2>&5
12883
echo "$as_me:12883: \$? = $ac_status" >&5
12884
(exit $ac_status); }; }; then
12885
eval "$ac_ac_var=yes"
12887
echo "$as_me: failed program was:" >&5
12888
cat conftest.$ac_ext >&5
12889
eval "$ac_ac_var=no"
12891
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12893
echo "$as_me:12893: result: `eval echo '${'$ac_ac_var'}'`" >&5
12894
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12895
if test `eval echo '${'$ac_ac_var'}'` = yes; then
12896
cat >>confdefs.h <<EOF
12897
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12901
{ { echo "$as_me:12901: error: No qsort library function." >&5
12902
echo "$as_me: error: No qsort library function." >&2;}
12903
{ (exit 1); exit 1; }; }
12907
# Some versions of sprintf return a pointer to the first argument instead
12908
# of a character count. We assume that the return value of snprintf and
12909
# vsprintf etc. will be the same as sprintf, and check the easy one.
12910
echo "$as_me:12910: checking for int type sprintf return value" >&5
12911
echo $ECHO_N "checking for int type sprintf return value... $ECHO_C" >&6
12912
if test "${db_cv_sprintf_count+set}" = set; then
12913
echo $ECHO_N "(cached) $ECHO_C" >&6
12916
if test "$cross_compiling" = yes; then
12917
{ { echo "$as_me:12917: error: cannot run test program while cross compiling" >&5
12918
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12919
{ (exit 1); exit 1; }; }
12921
cat >conftest.$ac_ext <<_ACEOF
12922
#line 12922 "configure"
12923
#include "confdefs.h"
12924
main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);}
12926
rm -f conftest$ac_exeext
12927
if { (eval echo "$as_me:12927: \"$ac_link\"") >&5
12928
(eval $ac_link) 2>&5
12930
echo "$as_me:12930: \$? = $ac_status" >&5
12931
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12932
{ (eval echo "$as_me:12932: \"$ac_try\"") >&5
12933
(eval $ac_try) 2>&5
12935
echo "$as_me:12935: \$? = $ac_status" >&5
12936
(exit $ac_status); }; }; then
12937
db_cv_sprintf_count=yes
12939
echo "$as_me: program exited with status $ac_status" >&5
12940
echo "$as_me: failed program was:" >&5
12941
cat conftest.$ac_ext >&5
12942
db_cv_sprintf_count=no
12944
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12947
echo "$as_me:12947: result: $db_cv_sprintf_count" >&5
12948
echo "${ECHO_T}$db_cv_sprintf_count" >&6
12949
if test "$db_cv_sprintf_count" = no; then
12950
cat >>confdefs.h <<\EOF
12951
#define SPRINTF_RET_CHARPNT 1
12956
# You can't build C++ with big-file support on HP-UX, the include files
12957
# are wrong. On Solaris 8, the <fcntl.h> included with big-file support
12958
# is not compatible with C++.
12962
if test "$db_cv_cxx" = "yes"; then
12963
{ echo "$as_me:12963: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5
12964
echo "$as_me: WARNING: Large file and C++ API support are incompatible on HP-UX" >&2;}
12965
{ echo "$as_me:12965: WARNING: and Solaris 8; large file support has been turned off." >&5
12966
echo "$as_me: WARNING: and Solaris 8; large file support has been turned off." >&2;}
12970
if test "$largefile_ok" = yes; then
12971
# Check whether --enable-largefile or --disable-largefile was given.
12972
if test "${enable_largefile+set}" = set; then
12973
enableval="$enable_largefile"
12976
if test "$enable_largefile" != no; then
12978
echo "$as_me:12978: checking for special C compiler options needed for large files" >&5
12979
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
12980
if test "${ac_cv_sys_largefile_CC+set}" = set; then
12981
echo $ECHO_N "(cached) $ECHO_C" >&6
12983
ac_cv_sys_largefile_CC=no
12984
if test "$GCC" != yes; then
12987
# IRIX 6.2 and later do not support large files by default,
12988
# so use the C compiler's -n32 option if that helps.
12989
cat >conftest.$ac_ext <<_ACEOF
12990
#line 12990 "configure"
12991
#include "confdefs.h"
12992
#include <sys/types.h>
12993
/* Check that off_t can represent 2**63 - 1 correctly.
12994
We can't simply define LARGE_OFF_T to be 9223372036854775807,
12995
since some C++ compilers masquerading as C compilers
12996
incorrectly reject 9223372036854775807. */
12997
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12998
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12999
&& LARGE_OFF_T % 2147483647 == 1)
13009
rm -f conftest.$ac_objext
13010
if { (eval echo "$as_me:13010: \"$ac_compile\"") >&5
13011
(eval $ac_compile) 2>&5
13013
echo "$as_me:13013: \$? = $ac_status" >&5
13014
(exit $ac_status); } &&
13015
{ ac_try='test -s conftest.$ac_objext'
13016
{ (eval echo "$as_me:13016: \"$ac_try\"") >&5
13017
(eval $ac_try) 2>&5
13019
echo "$as_me:13019: \$? = $ac_status" >&5
13020
(exit $ac_status); }; }; then
13023
echo "$as_me: failed program was:" >&5
13024
cat conftest.$ac_ext >&5
13026
rm -f conftest.$ac_objext
13028
rm -f conftest.$ac_objext
13029
if { (eval echo "$as_me:13029: \"$ac_compile\"") >&5
13030
(eval $ac_compile) 2>&5
13032
echo "$as_me:13032: \$? = $ac_status" >&5
13033
(exit $ac_status); } &&
13034
{ ac_try='test -s conftest.$ac_objext'
13035
{ (eval echo "$as_me:13035: \"$ac_try\"") >&5
13036
(eval $ac_try) 2>&5
13038
echo "$as_me:13038: \$? = $ac_status" >&5
13039
(exit $ac_status); }; }; then
13040
ac_cv_sys_largefile_CC=' -n32'; break
13042
echo "$as_me: failed program was:" >&5
13043
cat conftest.$ac_ext >&5
13045
rm -f conftest.$ac_objext
13049
rm -f conftest.$ac_ext
13052
echo "$as_me:13052: result: $ac_cv_sys_largefile_CC" >&5
13053
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13054
if test "$ac_cv_sys_largefile_CC" != no; then
13055
CC=$CC$ac_cv_sys_largefile_CC
13058
echo "$as_me:13058: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13059
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13060
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13061
echo $ECHO_N "(cached) $ECHO_C" >&6
13064
ac_cv_sys_file_offset_bits=no
13065
cat >conftest.$ac_ext <<_ACEOF
13066
#line 13066 "configure"
13067
#include "confdefs.h"
13068
#include <sys/types.h>
13069
/* Check that off_t can represent 2**63 - 1 correctly.
13070
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13071
since some C++ compilers masquerading as C compilers
13072
incorrectly reject 9223372036854775807. */
13073
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13074
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13075
&& LARGE_OFF_T % 2147483647 == 1)
13085
rm -f conftest.$ac_objext
13086
if { (eval echo "$as_me:13086: \"$ac_compile\"") >&5
13087
(eval $ac_compile) 2>&5
13089
echo "$as_me:13089: \$? = $ac_status" >&5
13090
(exit $ac_status); } &&
13091
{ ac_try='test -s conftest.$ac_objext'
13092
{ (eval echo "$as_me:13092: \"$ac_try\"") >&5
13093
(eval $ac_try) 2>&5
13095
echo "$as_me:13095: \$? = $ac_status" >&5
13096
(exit $ac_status); }; }; then
13099
echo "$as_me: failed program was:" >&5
13100
cat conftest.$ac_ext >&5
13102
rm -f conftest.$ac_objext conftest.$ac_ext
13103
cat >conftest.$ac_ext <<_ACEOF
13104
#line 13104 "configure"
13105
#include "confdefs.h"
13106
#define _FILE_OFFSET_BITS 64
13107
#include <sys/types.h>
13108
/* Check that off_t can represent 2**63 - 1 correctly.
13109
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13110
since some C++ compilers masquerading as C compilers
13111
incorrectly reject 9223372036854775807. */
13112
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13113
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13114
&& LARGE_OFF_T % 2147483647 == 1)
13124
rm -f conftest.$ac_objext
13125
if { (eval echo "$as_me:13125: \"$ac_compile\"") >&5
13126
(eval $ac_compile) 2>&5
13128
echo "$as_me:13128: \$? = $ac_status" >&5
13129
(exit $ac_status); } &&
13130
{ ac_try='test -s conftest.$ac_objext'
13131
{ (eval echo "$as_me:13131: \"$ac_try\"") >&5
13132
(eval $ac_try) 2>&5
13134
echo "$as_me:13134: \$? = $ac_status" >&5
13135
(exit $ac_status); }; }; then
13136
ac_cv_sys_file_offset_bits=64; break
13138
echo "$as_me: failed program was:" >&5
13139
cat conftest.$ac_ext >&5
13141
rm -f conftest.$ac_objext conftest.$ac_ext
13145
echo "$as_me:13145: result: $ac_cv_sys_file_offset_bits" >&5
13146
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13147
if test "$ac_cv_sys_file_offset_bits" != no; then
13149
cat >>confdefs.h <<EOF
13150
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13155
echo "$as_me:13155: checking for _LARGE_FILES value needed for large files" >&5
13156
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13157
if test "${ac_cv_sys_large_files+set}" = set; then
13158
echo $ECHO_N "(cached) $ECHO_C" >&6
13161
ac_cv_sys_large_files=no
13162
cat >conftest.$ac_ext <<_ACEOF
13163
#line 13163 "configure"
13164
#include "confdefs.h"
13165
#include <sys/types.h>
13166
/* Check that off_t can represent 2**63 - 1 correctly.
13167
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13168
since some C++ compilers masquerading as C compilers
13169
incorrectly reject 9223372036854775807. */
13170
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13171
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13172
&& LARGE_OFF_T % 2147483647 == 1)
13182
rm -f conftest.$ac_objext
13183
if { (eval echo "$as_me:13183: \"$ac_compile\"") >&5
13184
(eval $ac_compile) 2>&5
13186
echo "$as_me:13186: \$? = $ac_status" >&5
13187
(exit $ac_status); } &&
13188
{ ac_try='test -s conftest.$ac_objext'
13189
{ (eval echo "$as_me:13189: \"$ac_try\"") >&5
13190
(eval $ac_try) 2>&5
13192
echo "$as_me:13192: \$? = $ac_status" >&5
13193
(exit $ac_status); }; }; then
13196
echo "$as_me: failed program was:" >&5
13197
cat conftest.$ac_ext >&5
13199
rm -f conftest.$ac_objext conftest.$ac_ext
13200
cat >conftest.$ac_ext <<_ACEOF
13201
#line 13201 "configure"
13202
#include "confdefs.h"
13203
#define _LARGE_FILES 1
13204
#include <sys/types.h>
13205
/* Check that off_t can represent 2**63 - 1 correctly.
13206
We can't simply define LARGE_OFF_T to be 9223372036854775807,
13207
since some C++ compilers masquerading as C compilers
13208
incorrectly reject 9223372036854775807. */
13209
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13210
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13211
&& LARGE_OFF_T % 2147483647 == 1)
13221
rm -f conftest.$ac_objext
13222
if { (eval echo "$as_me:13222: \"$ac_compile\"") >&5
13223
(eval $ac_compile) 2>&5
13225
echo "$as_me:13225: \$? = $ac_status" >&5
13226
(exit $ac_status); } &&
13227
{ ac_try='test -s conftest.$ac_objext'
13228
{ (eval echo "$as_me:13228: \"$ac_try\"") >&5
13229
(eval $ac_try) 2>&5
13231
echo "$as_me:13231: \$? = $ac_status" >&5
13232
(exit $ac_status); }; }; then
13233
ac_cv_sys_large_files=1; break
13235
echo "$as_me: failed program was:" >&5
13236
cat conftest.$ac_ext >&5
13238
rm -f conftest.$ac_objext conftest.$ac_ext
13242
echo "$as_me:13242: result: $ac_cv_sys_large_files" >&5
13243
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13244
if test "$ac_cv_sys_large_files" != no; then
13246
cat >>confdefs.h <<EOF
13247
#define _LARGE_FILES $ac_cv_sys_large_files
13256
# Figure out how to create shared regions.
13258
# First, we look for mmap.
13260
# BSD/OS has mlock(2), but it doesn't work until the 4.1 release.
13262
# Nextstep (version 3.3) apparently supports mmap(2) (the mmap symbol
13263
# is defined in the C library) but does not support munmap(2). Don't
13264
# try to use mmap if we can't find munmap.
13266
# Ultrix has mmap(2), but it doesn't work.
13270
{ echo "$as_me:13270: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&5
13271
echo "$as_me: WARNING: mlock(2) interface ignored on BSD/OS 3.X and 4.0." >&2;}
13274
for ac_func in mmap munmap
13276
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13277
echo "$as_me:13277: checking for $ac_func" >&5
13278
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13279
if eval "test \"\${$ac_ac_var+set}\" = set"; then
13280
echo $ECHO_N "(cached) $ECHO_C" >&6
13282
cat >conftest.$ac_ext <<_ACEOF
13283
#line 13283 "configure"
13284
#include "confdefs.h"
13285
/* System header to define __stub macros and hopefully few prototypes,
13286
which can conflict with char $ac_func (); below. */
13287
#include <assert.h>
13288
/* Override any gcc2 internal prototype to avoid an error. */
13292
/* We use char because int might match the return type of a gcc2
13293
builtin and then its argument prototype would still apply. */
13300
/* The GNU C library defines this for functions which it implements
13301
to always fail with ENOSYS. Some functions are actually named
13302
something starting with __ and the normal name is an alias. */
13303
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13313
rm -f conftest.$ac_objext conftest$ac_exeext
13314
if { (eval echo "$as_me:13314: \"$ac_link\"") >&5
13315
(eval $ac_link) 2>&5
13317
echo "$as_me:13317: \$? = $ac_status" >&5
13318
(exit $ac_status); } &&
13319
{ ac_try='test -s conftest$ac_exeext'
13320
{ (eval echo "$as_me:13320: \"$ac_try\"") >&5
13321
(eval $ac_try) 2>&5
13323
echo "$as_me:13323: \$? = $ac_status" >&5
13324
(exit $ac_status); }; }; then
13325
eval "$ac_ac_var=yes"
13327
echo "$as_me: failed program was:" >&5
13328
cat conftest.$ac_ext >&5
13329
eval "$ac_ac_var=no"
13331
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13333
echo "$as_me:13333: result: `eval echo '${'$ac_ac_var'}'`" >&5
13334
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13335
if test `eval echo '${'$ac_ac_var'}'` = yes; then
13336
cat >>confdefs.h <<EOF
13337
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13346
{ echo "$as_me:13346: WARNING: mmap(2) interface ignored on Ultrix." >&5
13347
echo "$as_me: WARNING: mmap(2) interface ignored on Ultrix." >&2;};;
13351
for ac_func in mlock munlock
13353
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13354
echo "$as_me:13354: checking for $ac_func" >&5
13355
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13356
if eval "test \"\${$ac_ac_var+set}\" = set"; then
13357
echo $ECHO_N "(cached) $ECHO_C" >&6
13359
cat >conftest.$ac_ext <<_ACEOF
13360
#line 13360 "configure"
13361
#include "confdefs.h"
13362
/* System header to define __stub macros and hopefully few prototypes,
13363
which can conflict with char $ac_func (); below. */
13364
#include <assert.h>
13365
/* Override any gcc2 internal prototype to avoid an error. */
13369
/* We use char because int might match the return type of a gcc2
13370
builtin and then its argument prototype would still apply. */
13377
/* The GNU C library defines this for functions which it implements
13378
to always fail with ENOSYS. Some functions are actually named
13379
something starting with __ and the normal name is an alias. */
13380
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13390
rm -f conftest.$ac_objext conftest$ac_exeext
13391
if { (eval echo "$as_me:13391: \"$ac_link\"") >&5
13392
(eval $ac_link) 2>&5
13394
echo "$as_me:13394: \$? = $ac_status" >&5
13395
(exit $ac_status); } &&
13396
{ ac_try='test -s conftest$ac_exeext'
13397
{ (eval echo "$as_me:13397: \"$ac_try\"") >&5
13398
(eval $ac_try) 2>&5
13400
echo "$as_me:13400: \$? = $ac_status" >&5
13401
(exit $ac_status); }; }; then
13402
eval "$ac_ac_var=yes"
13404
echo "$as_me: failed program was:" >&5
13405
cat conftest.$ac_ext >&5
13406
eval "$ac_ac_var=no"
13408
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13410
echo "$as_me:13410: result: `eval echo '${'$ac_ac_var'}'`" >&5
13411
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13412
if test `eval echo '${'$ac_ac_var'}'` = yes; then
13413
cat >>confdefs.h <<EOF
13414
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13420
for ac_func in mmap munmap
13422
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13423
echo "$as_me:13423: checking for $ac_func" >&5
13424
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13425
if eval "test \"\${$ac_ac_var+set}\" = set"; then
13426
echo $ECHO_N "(cached) $ECHO_C" >&6
13428
cat >conftest.$ac_ext <<_ACEOF
13429
#line 13429 "configure"
13430
#include "confdefs.h"
13431
/* System header to define __stub macros and hopefully few prototypes,
13432
which can conflict with char $ac_func (); below. */
13433
#include <assert.h>
13434
/* Override any gcc2 internal prototype to avoid an error. */
13438
/* We use char because int might match the return type of a gcc2
13439
builtin and then its argument prototype would still apply. */
13446
/* The GNU C library defines this for functions which it implements
13447
to always fail with ENOSYS. Some functions are actually named
13448
something starting with __ and the normal name is an alias. */
13449
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13459
rm -f conftest.$ac_objext conftest$ac_exeext
13460
if { (eval echo "$as_me:13460: \"$ac_link\"") >&5
13461
(eval $ac_link) 2>&5
13463
echo "$as_me:13463: \$? = $ac_status" >&5
13464
(exit $ac_status); } &&
13465
{ ac_try='test -s conftest$ac_exeext'
13466
{ (eval echo "$as_me:13466: \"$ac_try\"") >&5
13467
(eval $ac_try) 2>&5
13469
echo "$as_me:13469: \$? = $ac_status" >&5
13470
(exit $ac_status); }; }; then
13471
eval "$ac_ac_var=yes"
13473
echo "$as_me: failed program was:" >&5
13474
cat conftest.$ac_ext >&5
13475
eval "$ac_ac_var=no"
13477
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13479
echo "$as_me:13479: result: `eval echo '${'$ac_ac_var'}'`" >&5
13480
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13481
if test `eval echo '${'$ac_ac_var'}'` = yes; then
13482
cat >>confdefs.h <<EOF
13483
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13493
# Second, we look for shmget.
13495
# SunOS has the shmget(2) interfaces, but there appears to be a missing
13496
# #include <debug/debug.h> file, so we ignore them.
13500
{ echo "$as_me:13500: WARNING: shmget(2) interface ignored on SunOS." >&5
13501
echo "$as_me: WARNING: shmget(2) interface ignored on SunOS." >&2;};;
13505
for ac_func in shmget
13507
ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13508
echo "$as_me:13508: checking for $ac_func" >&5
13509
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13510
if eval "test \"\${$ac_ac_var+set}\" = set"; then
13511
echo $ECHO_N "(cached) $ECHO_C" >&6
13513
cat >conftest.$ac_ext <<_ACEOF
13514
#line 13514 "configure"
13515
#include "confdefs.h"
13516
/* System header to define __stub macros and hopefully few prototypes,
13517
which can conflict with char $ac_func (); below. */
13518
#include <assert.h>
13519
/* Override any gcc2 internal prototype to avoid an error. */
13523
/* We use char because int might match the return type of a gcc2
13524
builtin and then its argument prototype would still apply. */
13531
/* The GNU C library defines this for functions which it implements
13532
to always fail with ENOSYS. Some functions are actually named
13533
something starting with __ and the normal name is an alias. */
13534
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13544
rm -f conftest.$ac_objext conftest$ac_exeext
13545
if { (eval echo "$as_me:13545: \"$ac_link\"") >&5
13546
(eval $ac_link) 2>&5
13548
echo "$as_me:13548: \$? = $ac_status" >&5
13549
(exit $ac_status); } &&
13550
{ ac_try='test -s conftest$ac_exeext'
13551
{ (eval echo "$as_me:13551: \"$ac_try\"") >&5
13552
(eval $ac_try) 2>&5
13554
echo "$as_me:13554: \$? = $ac_status" >&5
13555
(exit $ac_status); }; }; then
13556
eval "$ac_ac_var=yes"
13558
echo "$as_me: failed program was:" >&5
13559
cat conftest.$ac_ext >&5
13560
eval "$ac_ac_var=no"
13562
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13564
echo "$as_me:13564: result: `eval echo '${'$ac_ac_var'}'`" >&5
13565
echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13566
if test `eval echo '${'$ac_ac_var'}'` = yes; then
13567
cat >>confdefs.h <<EOF
13568
#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13578
# We require either mmap/munmap(2) or shmget(2).
13579
if test "$mmap_ok" = no -a "$shmget_ok" = no; then
13580
{ echo "$as_me:13580: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&5
13581
echo "$as_me: WARNING: Neither mmap/munmap(2) or shmget(2) library functions." >&2;}
13584
# Initial output file list.
13585
CREATE_LIST="Makefile
13586
include.tcl:$srcdir/../test/include.tcl
13587
db_int.h:$srcdir/../include/db_int.in"
13589
# Create the db.h file -- append the global function prototypes to the
13590
# file. If the user has requested unique names, use the file that does
13591
# DB_VERSION_UNIQUE_NAME substitution.
13592
if test "$db_cv_uniquename" = "yes"; then
13593
CREATE_LIST="${CREATE_LIST}
13594
db.h:$srcdir/../include/db.in:$srcdir/../include_auto/rpc_defs.in:$srcdir/../include_auto/global_uext.in"
13596
CREATE_LIST="${CREATE_LIST}
13597
db.h:$srcdir/../include/db.in:$srcdir/../include_auto/rpc_defs.in:$srcdir/../include_auto/global_ext.in"
13600
# Create the function prototype include files. If the user has requested
13601
# unique names, use the files that do DB_VERSION_UNIQUE_NAME substitution.
13602
if test "$db_cv_uniquename" = "yes"; then
13603
CREATE_LIST="${CREATE_LIST}
13604
db_ext.h:$srcdir/../include_auto/db_ext.in
13605
btree_ext.h:$srcdir/../include_auto/btree_ext.in
13606
clib_ext.h:$srcdir/../include_auto/clib_ext.in
13607
common_ext.h:$srcdir/../include_auto/common_ext.in
13608
db_server.h:$srcdir/../include_auto/db_server.in
13609
env_ext.h:$srcdir/../include_auto/env_ext.in
13610
hash_ext.h:$srcdir/../include_auto/hash_ext.in
13611
lock_ext.h:$srcdir/../include_auto/lock_ext.in
13612
log_ext.h:$srcdir/../include_auto/log_ext.in
13613
mp_ext.h:$srcdir/../include_auto/mp_ext.in
13614
mutex_ext.h:$srcdir/../include_auto/mutex_ext.in
13615
os_ext.h:$srcdir/../include_auto/os_ext.in
13616
qam_ext.h:$srcdir/../include_auto/qam_ext.in
13617
rpc_client_ext.h:$srcdir/../include_auto/rpc_client_ext.in
13618
rpc_server_ext.h:$srcdir/../include_auto/rpc_server_ext.in
13619
tcl_ext.h:$srcdir/../include_auto/tcl_ext.in
13620
txn_ext.h:$srcdir/../include_auto/txn_ext.in
13621
xa_ext.h:$srcdir/../include_auto/xa_ext.in"
13623
if test "$db_cv_compat185" = "yes"; then
13624
if test "$db_cv_uniquename" = "yes"; then
13625
CREATE_LIST="${CREATE_LIST}
13626
db_185.h:$srcdir/../include/db_185.in:$srcdir/../include_auto/db185_uext.in
13627
db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../include_auto/db185_uext.in"
13629
CREATE_LIST="${CREATE_LIST}
13630
db_185.h:$srcdir/../include/db_185.in:$srcdir/../include_auto/db185_ext.in
13631
db185_int.h:$srcdir/../db185/db185_int.in:$srcdir/../include_auto/db185_ext.in"
13634
if test "$db_cv_embedix" = "yes"; then
13635
CREATE_LIST="${CREATE_LIST} db.ecd:../dist/db.ecd.in"
13637
if test "$db_cv_rpm" = "yes"; then
13638
CREATE_LIST="${CREATE_LIST} db.spec:../dist/db.spec.in"
13641
ac_config_files="$ac_config_files ${CREATE_LIST}"
13643
cat >confcache <<\_ACEOF
13644
# This file is a shell script that caches the results of configure
13645
# tests run on this system so they can be shared between configure
13646
# scripts and configure runs, see configure's option --config-cache.
13647
# It is not useful on other systems. If it contains results you don't
13648
# want to keep, you may remove or edit it.
13650
# config.status only pays attention to the cache file if you give it
13651
# the --recheck option to rerun configure.
13653
# `ac_cv_env_foo' variables (set or unset) will be overriden when
13654
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13655
# following values.
13659
# The following way of writing the cache mishandles newlines in values,
13660
# but we know of no workaround that is simple, portable, and efficient.
13661
# So, don't put newlines in cache variables' values.
13662
# Ultrix sh set writes to stderr and can't be redirected directly,
13663
# and sets the high bit in the cache file unless we assign to the vars.
13666
case `(ac_space=' '; set | grep ac_space) 2>&1` in
13668
# `set' does not quote correctly, so add quotes (double-quote
13669
# substitution turns \\\\ into \\, and sed turns \\ into \).
13672
s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13675
# `set' quotes correctly as required by POSIX, so do not add quotes.
13677
"s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13684
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13686
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13688
if cmp -s $cache_file confcache; then :; else
13689
if test -w $cache_file; then
13690
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13691
cat confcache >$cache_file
13693
echo "not updating unwritable cache $cache_file"
13698
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13699
# Let make expand exec_prefix.
13700
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13702
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13703
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13704
# trailing colons and then remove the whole line if VPATH becomes empty
13705
# (actually we leave an empty line to preserve line numbers).
13706
if test "x$srcdir" = x.; then
13707
ac_vpsub='/^[ ]*VPATH[ ]*=/{
13708
s/:*\$(srcdir):*/:/;
13709
s/:*\${srcdir}:*/:/;
13711
s/^\([^=]*=[ ]*\):*/\1/;
13717
DEFS=-DHAVE_CONFIG_H
13719
: ${CONFIG_STATUS=./config.status}
13720
ac_clean_files_save=$ac_clean_files
13721
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13722
{ echo "$as_me:13722: creating $CONFIG_STATUS" >&5
13723
echo "$as_me: creating $CONFIG_STATUS" >&6;}
13724
cat >$CONFIG_STATUS <<_ACEOF
13726
# Generated automatically by configure.
13727
# Run this file to recreate the current configuration.
13728
# Compiler output produced by configure, useful for debugging
13729
# configure, is in config.log if it exists.
13732
SHELL=\${CONFIG_SHELL-$SHELL}
13733
ac_cs_invocation="\$0 \$@"
13737
cat >>$CONFIG_STATUS <<\_ACEOF
13738
# Be Bourne compatible
13739
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13742
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13746
# Name of the executable.
13747
as_me=`echo "$0" |sed 's,.*[\\/],,'`
13749
if expr a : '\(a\)' >/dev/null 2>&1; then
13755
rm -f conf$$ conf$$.exe conf$$.file
13757
if ln -s conf$$.file conf$$ 2>/dev/null; then
13758
# We could just check for DJGPP; but this test a) works b) is more generic
13759
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13760
if test -f conf$$.exe; then
13761
# Don't use ln at all; we don't have any links
13766
elif ln conf$$.file conf$$ 2>/dev/null; then
13771
rm -f conf$$ conf$$.exe conf$$.file
13773
as_executable_p="test -f"
13775
# Support unset when possible.
13776
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13783
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
13784
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
13785
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
13786
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
13787
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
13788
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
13789
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
13790
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
13793
# We need space, tab and new line, in precisely that order.
13799
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
13805
# Files that config.status was made for.
13806
if test -n "$ac_config_files"; then
13807
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13810
if test -n "$ac_config_headers"; then
13811
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13814
if test -n "$ac_config_links"; then
13815
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13818
if test -n "$ac_config_commands"; then
13819
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13822
cat >>$CONFIG_STATUS <<\EOF
13825
\`$as_me' instantiates files from templates according to the
13826
current configuration.
13828
Usage: $0 [OPTIONS] [FILE]...
13830
-h, --help print this help, then exit
13831
-V, --version print version number, then exit
13832
-d, --debug don't remove temporary files
13833
--recheck update $as_me by reconfiguring in the same conditions
13834
--file=FILE[:TEMPLATE]
13835
instantiate the configuration file FILE
13836
--header=FILE[:TEMPLATE]
13837
instantiate the configuration header FILE
13839
Configuration files:
13842
Configuration headers:
13845
Report bugs to <bug-autoconf@gnu.org>."
13848
cat >>$CONFIG_STATUS <<EOF
13851
configured by $0, generated by GNU Autoconf 2.50,
13852
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13854
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13855
Free Software Foundation, Inc.
13856
This config.status script is free software; the Free Software Foundation
13857
gives unlimited permission to copy, distribute and modify it."
13862
cat >>$CONFIG_STATUS <<\EOF
13863
# If no file are specified by the user, then we need to provide default
13864
# value. By we need to know if files were specified by the user.
13870
ac_option=`expr "x$1" : 'x\([^=]*\)='`
13871
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13873
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13877
*) # This is not an option, so the user has probably given explicit
13879
ac_need_defaults=false;;
13883
# Handling of the options.
13885
cat >>$CONFIG_STATUS <<EOF
13886
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13887
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13888
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13890
cat >>$CONFIG_STATUS <<\EOF
13891
--version | --vers* | -V )
13892
echo "$ac_cs_version"; exit 0 ;;
13894
# Conflict between --help and --header
13895
{ { echo "$as_me:13895: error: ambiguous option: $1
13896
Try \`$0 --help' for more information." >&5
13897
echo "$as_me: error: ambiguous option: $1
13898
Try \`$0 --help' for more information." >&2;}
13899
{ (exit 1); exit 1; }; };;
13900
--help | --hel | -h )
13901
echo "$ac_cs_usage"; exit 0 ;;
13902
--debug | --d* | -d )
13904
--file | --fil | --fi | --f )
13906
CONFIG_FILES="$CONFIG_FILES $1"
13907
ac_need_defaults=false;;
13908
--header | --heade | --head | --hea )
13910
CONFIG_HEADERS="$CONFIG_HEADERS $1"
13911
ac_need_defaults=false;;
13913
# Handling of arguments.
13914
'${CREATE_LIST}' ) CONFIG_FILES="$CONFIG_FILES ${CREATE_LIST}" ;;
13915
'db_config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS db_config.h:config.hin" ;;
13917
# This is an error.
13918
-*) { { echo "$as_me:13918: error: unrecognized option: $1
13919
Try \`$0 --help' for more information." >&5
13920
echo "$as_me: error: unrecognized option: $1
13921
Try \`$0 --help' for more information." >&2;}
13922
{ (exit 1); exit 1; }; } ;;
13923
*) { { echo "$as_me:13923: error: invalid argument: $1" >&5
13924
echo "$as_me: error: invalid argument: $1" >&2;}
13925
{ (exit 1); exit 1; }; };;
13933
## ----------------------- ##
13934
## Running config.status. ##
13935
## ----------------------- ##
13937
This file was extended by $as_me 2.50, executed with
13938
> $ac_cs_invocation
13939
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13944
cat >>$CONFIG_STATUS <<\EOF
13945
# If the user did not use the arguments to specify the items to instantiate,
13946
# then the envvar interface is used. Set only those that are not.
13947
# We use the long form for the default assignment because of an extremely
13948
# bizarre bug on SunOS 4.1.3.
13949
if $ac_need_defaults; then
13950
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13951
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13954
# Create a temporary directory, and hook for its removal unless debugging.
13957
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13958
trap '{ (exit $?); exit $?; }' 1 2 13 15
13961
# Create a (secure) tmp directory for tmp files.
13964
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13965
test -n "$tmp" && test -d "$tmp"
13968
tmp=$TMPDIR/cs$$-$RANDOM
13969
(umask 077 && mkdir $tmp)
13972
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13973
{ (exit 1); exit 1; }
13978
cat >>$CONFIG_STATUS <<EOF
13981
# CONFIG_FILES section.
13984
# No need to generate the scripts if there are no CONFIG_FILES.
13985
# This happens for instance when ./config.status config.h
13986
if test -n "\$CONFIG_FILES"; then
13987
# Protect against being on the right side of a sed subst in config.status.
13988
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13989
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13990
s,@SHELL@,$SHELL,;t t
13991
s,@exec_prefix@,$exec_prefix,;t t
13992
s,@prefix@,$prefix,;t t
13993
s,@program_transform_name@,$program_transform_name,;t t
13994
s,@bindir@,$bindir,;t t
13995
s,@sbindir@,$sbindir,;t t
13996
s,@libexecdir@,$libexecdir,;t t
13997
s,@datadir@,$datadir,;t t
13998
s,@sysconfdir@,$sysconfdir,;t t
13999
s,@sharedstatedir@,$sharedstatedir,;t t
14000
s,@localstatedir@,$localstatedir,;t t
14001
s,@libdir@,$libdir,;t t
14002
s,@includedir@,$includedir,;t t
14003
s,@oldincludedir@,$oldincludedir,;t t
14004
s,@infodir@,$infodir,;t t
14005
s,@mandir@,$mandir,;t t
14006
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14007
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14008
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14009
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14010
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14011
s,@ECHO_C@,$ECHO_C,;t t
14012
s,@ECHO_N@,$ECHO_N,;t t
14013
s,@ECHO_T@,$ECHO_T,;t t
14014
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14015
s,@DEFS@,$DEFS,;t t
14016
s,@LIBS@,$LIBS,;t t
14017
s,@build@,$build,;t t
14018
s,@build_cpu@,$build_cpu,;t t
14019
s,@build_vendor@,$build_vendor,;t t
14020
s,@build_os@,$build_os,;t t
14021
s,@host@,$host,;t t
14022
s,@host_cpu@,$host_cpu,;t t
14023
s,@host_vendor@,$host_vendor,;t t
14024
s,@host_os@,$host_os,;t t
14025
s,@ADDITIONAL_INCS@,$ADDITIONAL_INCS,;t t
14026
s,@ADDITIONAL_LANG@,$ADDITIONAL_LANG,;t t
14027
s,@ADDITIONAL_LIBS@,$ADDITIONAL_LIBS,;t t
14028
s,@ADDITIONAL_OBJS@,$ADDITIONAL_OBJS,;t t
14029
s,@ADDITIONAL_PROGS@,$ADDITIONAL_PROGS,;t t
14030
s,@BUILD_TARGET@,$BUILD_TARGET,;t t
14031
s,@CFLAGS@,$CFLAGS,;t t
14032
s,@CONFIGURATION_ARGS@,$CONFIGURATION_ARGS,;t t
14033
s,@CONFIGURATION_PATH@,$CONFIGURATION_PATH,;t t
14034
s,@CPPFLAGS@,$CPPFLAGS,;t t
14036
s,@CXXFLAGS@,$CXXFLAGS,;t t
14037
s,@DEFAULT_INSTALL@,$DEFAULT_INSTALL,;t t
14038
s,@DEFAULT_LIB@,$DEFAULT_LIB,;t t
14039
s,@DEFAULT_LIB_CXX@,$DEFAULT_LIB_CXX,;t t
14040
s,@EMBEDIX_ECD_CXX@,$EMBEDIX_ECD_CXX,;t t
14041
s,@EMBEDIX_ECD_RPC@,$EMBEDIX_ECD_RPC,;t t
14042
s,@EMBEDIX_ROOT@,$EMBEDIX_ROOT,;t t
14043
s,@INSTALLER@,$INSTALLER,;t t
14044
s,@INSTALL_LIBS@,$INSTALL_LIBS,;t t
14045
s,@INSTALL_TARGET@,$INSTALL_TARGET,;t t
14047
s,@JAVAC@,$JAVAC,;t t
14048
s,@JAVACFLAGS@,$JAVACFLAGS,;t t
14049
s,@LDFLAGS@,$LDFLAGS,;t t
14050
s,@LIBJSO_LIBS@,$LIBJSO_LIBS,;t t
14051
s,@LIBSO_LIBS@,$LIBSO_LIBS,;t t
14052
s,@LIBTOOL@,$LIBTOOL,;t t
14053
s,@LIBTSO_LIBS@,$LIBTSO_LIBS,;t t
14054
s,@LIBXSO_LIBS@,$LIBXSO_LIBS,;t t
14055
s,@MAKEFILE_CC@,$MAKEFILE_CC,;t t
14056
s,@MAKEFILE_CCLINK@,$MAKEFILE_CCLINK,;t t
14057
s,@MAKEFILE_CXX@,$MAKEFILE_CXX,;t t
14058
s,@MAKEFILE_CXXLINK@,$MAKEFILE_CXXLINK,;t t
14059
s,@POSTLINK@,$POSTLINK,;t t
14060
s,@RPC_CLIENT_OBJS@,$RPC_CLIENT_OBJS,;t t
14061
s,@RPM_POST_INSTALL@,$RPM_POST_INSTALL,;t t
14062
s,@RPM_POST_UNINSTALL@,$RPM_POST_UNINSTALL,;t t
14063
s,@SOFLAGS@,$SOFLAGS,;t t
14064
s,@SOLINK@,$SOLINK,;t t
14065
s,@SOSUFFIX@,$SOSUFFIX,;t t
14066
s,@TEST_LIBS@,$TEST_LIBS,;t t
14067
s,@db_cv_path_embedix_install@,$db_cv_path_embedix_install,;t t
14068
s,@db_cv_path_rpm_archive@,$db_cv_path_rpm_archive,;t t
14070
s,@DB_VERSION_MAJOR@,$DB_VERSION_MAJOR,;t t
14071
s,@DB_VERSION_MINOR@,$DB_VERSION_MINOR,;t t
14072
s,@DB_VERSION_PATCH@,$DB_VERSION_PATCH,;t t
14073
s,@DB_VERSION_UNIQUE_NAME@,$DB_VERSION_UNIQUE_NAME,;t t
14074
s,@DB_VERSION_STRING@,$DB_VERSION_STRING,;t t
14075
s,@db_cv_path_ar@,$db_cv_path_ar,;t t
14076
s,@ac_ct_db_cv_path_ar@,$ac_ct_db_cv_path_ar,;t t
14077
s,@db_cv_path_chmod@,$db_cv_path_chmod,;t t
14078
s,@ac_ct_db_cv_path_chmod@,$ac_ct_db_cv_path_chmod,;t t
14079
s,@db_cv_path_cp@,$db_cv_path_cp,;t t
14080
s,@ac_ct_db_cv_path_cp@,$ac_ct_db_cv_path_cp,;t t
14081
s,@path_ldconfig@,$path_ldconfig,;t t
14082
s,@ac_ct_path_ldconfig@,$ac_ct_path_ldconfig,;t t
14083
s,@db_cv_path_ldconfig@,$db_cv_path_ldconfig,;t t
14084
s,@db_cv_path_ln@,$db_cv_path_ln,;t t
14085
s,@ac_ct_db_cv_path_ln@,$ac_ct_db_cv_path_ln,;t t
14086
s,@db_cv_path_mkdir@,$db_cv_path_mkdir,;t t
14087
s,@ac_ct_db_cv_path_mkdir@,$ac_ct_db_cv_path_mkdir,;t t
14088
s,@path_ranlib@,$path_ranlib,;t t
14089
s,@ac_ct_path_ranlib@,$ac_ct_path_ranlib,;t t
14090
s,@db_cv_path_ranlib@,$db_cv_path_ranlib,;t t
14091
s,@db_cv_path_rm@,$db_cv_path_rm,;t t
14092
s,@ac_ct_db_cv_path_rm@,$ac_ct_db_cv_path_rm,;t t
14093
s,@db_cv_path_rpm@,$db_cv_path_rpm,;t t
14094
s,@ac_ct_db_cv_path_rpm@,$ac_ct_db_cv_path_rpm,;t t
14095
s,@path_sh@,$path_sh,;t t
14096
s,@ac_ct_path_sh@,$ac_ct_path_sh,;t t
14097
s,@db_cv_path_sh@,$db_cv_path_sh,;t t
14098
s,@path_strip@,$path_strip,;t t
14099
s,@ac_ct_path_strip@,$ac_ct_path_strip,;t t
14100
s,@db_cv_path_strip@,$db_cv_path_strip,;t t
14101
s,@db_cv_path_kill@,$db_cv_path_kill,;t t
14102
s,@ac_ct_db_cv_path_kill@,$ac_ct_db_cv_path_kill,;t t
14103
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14104
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14105
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14107
s,@ac_ct_CC@,$ac_ct_CC,;t t
14108
s,@EXEEXT@,$EXEEXT,;t t
14109
s,@OBJEXT@,$OBJEXT,;t t
14111
s,@ac_ct_CCC@,$ac_ct_CCC,;t t
14112
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14113
s,@LN_S@,$LN_S,;t t
14114
s,@ECHO@,$ECHO,;t t
14115
s,@RANLIB@,$RANLIB,;t t
14116
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14117
s,@STRIP@,$STRIP,;t t
14118
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14120
s,@ac_ct_JAVAC@,$ac_ct_JAVAC,;t t
14121
s,@ac_ct_JAR@,$ac_ct_JAR,;t t
14122
s,@JAVACABS@,$JAVACABS,;t t
14123
s,@TCFLAGS@,$TCFLAGS,;t t
14124
s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
14125
s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
14126
s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
14127
s,@TCL_TCLSH@,$TCL_TCLSH,;t t
14128
s,@u_char_decl@,$u_char_decl,;t t
14129
s,@u_short_decl@,$u_short_decl,;t t
14130
s,@u_int_decl@,$u_int_decl,;t t
14131
s,@u_long_decl@,$u_long_decl,;t t
14132
s,@u_int8_decl@,$u_int8_decl,;t t
14133
s,@u_int16_decl@,$u_int16_decl,;t t
14134
s,@int16_decl@,$int16_decl,;t t
14135
s,@u_int32_decl@,$u_int32_decl,;t t
14136
s,@int32_decl@,$int32_decl,;t t
14137
s,@ssize_t_decl@,$ssize_t_decl,;t t
14138
s,@db_align_t_decl@,$db_align_t_decl,;t t
14139
s,@db_alignp_t_decl@,$db_alignp_t_decl,;t t
14140
s,@LIBOBJS@,$LIBOBJS,;t t
14145
cat >>$CONFIG_STATUS <<\EOF
14146
# Split the substitutions into bite-sized pieces for seds with
14147
# small command number limits, like on Digital OSF/1 and HP-UX.
14148
ac_max_sed_lines=48
14149
ac_sed_frag=1 # Number of current file.
14150
ac_beg=1 # First line for current file.
14151
ac_end=$ac_max_sed_lines # Line after last line for current file.
14154
while $ac_more_lines; do
14155
if test $ac_beg -gt 1; then
14156
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14158
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14160
if test ! -s $tmp/subs.frag; then
14161
ac_more_lines=false
14163
# The purpose of the label and of the branching condition is to
14164
# speed up the sed processing (if there are no `@' at all, there
14165
# is no need to browse any of the substitutions).
14166
# These are the two extra sed commands mentioned above.
14168
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14169
if test -z "$ac_sed_cmds"; then
14170
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14172
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14174
ac_sed_frag=`expr $ac_sed_frag + 1`
14176
ac_end=`expr $ac_end + $ac_max_sed_lines`
14179
if test -z "$ac_sed_cmds"; then
14182
fi # test -n "$CONFIG_FILES"
14185
cat >>$CONFIG_STATUS <<\EOF
14186
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14187
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14189
- | *:- | *:-:* ) # input from stdin
14191
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14192
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14193
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14194
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14195
* ) ac_file_in=$ac_file.in ;;
14198
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14199
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14200
X"$ac_file" : 'X\(//\)[^/]' \| \
14201
X"$ac_file" : 'X\(//\)$' \| \
14202
X"$ac_file" : 'X\(/\)' \| \
14203
. : '\(.\)' 2>/dev/null ||
14205
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14206
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14207
/^X\(\/\/\)$/{ s//\1/; q; }
14208
/^X\(\/\).*/{ s//\1/; q; }
14210
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14211
{ case "$ac_dir" in
14212
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
14216
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14217
case $as_mkdir_dir in
14218
# Skip DOS drivespec
14219
?:) as_incr_dir=$as_mkdir_dir ;;
14221
as_incr_dir=$as_incr_dir/$as_mkdir_dir
14222
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14227
ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
14228
# A "../" for each directory in $ac_dir_suffix.
14229
ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
14231
ac_dir_suffix= ac_dots=
14236
if test -z "$ac_dots"; then
14239
ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
14241
[\\/]* | ?:[\\/]* )
14242
ac_srcdir=$srcdir$ac_dir_suffix;
14243
ac_top_srcdir=$srcdir ;;
14244
*) # Relative path.
14245
ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
14246
ac_top_srcdir=$ac_dots$srcdir ;;
14250
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14251
*) ac_INSTALL=$ac_dots$INSTALL ;;
14254
if test x"$ac_file" != x-; then
14255
{ echo "$as_me:14255: creating $ac_file" >&5
14256
echo "$as_me: creating $ac_file" >&6;}
14259
# Let's still pretend it is `configure' which instantiates (i.e., don't
14260
# use $as_me), people would be surprised to read:
14261
# /* config.h. Generated automatically by config.status. */
14262
configure_input="Generated automatically from `echo $ac_file_in |
14263
sed 's,.*/,,'` by configure."
14265
# First look for the input files in the build tree, otherwise in the
14267
ac_file_inputs=`IFS=:
14268
for f in $ac_file_in; do
14270
-) echo $tmp/stdin ;;
14272
# Absolute (can't be DOS-style, as IFS=:)
14273
test -f "$f" || { { echo "$as_me:14273: error: cannot find input file: $f" >&5
14274
echo "$as_me: error: cannot find input file: $f" >&2;}
14275
{ (exit 1); exit 1; }; }
14278
if test -f "$f"; then
14281
elif test -f "$srcdir/$f"; then
14286
{ { echo "$as_me:14286: error: cannot find input file: $f" >&5
14287
echo "$as_me: error: cannot find input file: $f" >&2;}
14288
{ (exit 1); exit 1; }; }
14291
done` || { (exit 1); exit 1; }
14293
cat >>$CONFIG_STATUS <<EOF
14297
cat >>$CONFIG_STATUS <<\EOF
14299
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14300
s,@configure_input@,$configure_input,;t t
14301
s,@srcdir@,$ac_srcdir,;t t
14302
s,@top_srcdir@,$ac_top_srcdir,;t t
14303
s,@INSTALL@,$ac_INSTALL,;t t
14304
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14306
if test x"$ac_file" != x-; then
14307
mv $tmp/out $ac_file
14315
cat >>$CONFIG_STATUS <<\EOF
14318
# CONFIG_HEADER section.
14321
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14322
# NAME is the cpp macro being defined and VALUE is the value it is being given.
14324
# ac_d sets the value in "#define NAME VALUE" lines.
14325
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14326
ac_dB='[ ].*$,\1#\2'
14329
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14330
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14331
ac_uB='$,\1#\2define\3'
14335
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14336
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14338
- | *:- | *:-:* ) # input from stdin
14340
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14341
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14342
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14343
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14344
* ) ac_file_in=$ac_file.in ;;
14347
test x"$ac_file" != x- && { echo "$as_me:14347: creating $ac_file" >&5
14348
echo "$as_me: creating $ac_file" >&6;}
14350
# First look for the input files in the build tree, otherwise in the
14352
ac_file_inputs=`IFS=:
14353
for f in $ac_file_in; do
14355
-) echo $tmp/stdin ;;
14357
# Absolute (can't be DOS-style, as IFS=:)
14358
test -f "$f" || { { echo "$as_me:14358: error: cannot find input file: $f" >&5
14359
echo "$as_me: error: cannot find input file: $f" >&2;}
14360
{ (exit 1); exit 1; }; }
14363
if test -f "$f"; then
14366
elif test -f "$srcdir/$f"; then
14371
{ { echo "$as_me:14371: error: cannot find input file: $f" >&5
14372
echo "$as_me: error: cannot find input file: $f" >&2;}
14373
{ (exit 1); exit 1; }; }
14376
done` || { (exit 1); exit 1; }
14377
# Remove the trailing spaces.
14378
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14382
# Transform confdefs.h into two sed scripts, `conftest.defines' and
14383
# `conftest.undefs', that substitutes the proper values into
14384
# config.h.in to produce config.h. The first handles `#define'
14385
# templates, and the second `#undef' templates.
14386
# And first: Protect against being on the right side of a sed subst in
14387
# config.status. Protect against being in an unquoted here document
14388
# in config.status.
14389
rm -f conftest.defines conftest.undefs
14390
# Using a here document instead of a string reduces the quoting nightmare.
14391
# Putting comments in sed scripts is not portable.
14393
# `end' is used to avoid that the second main sed command (meant for
14394
# 0-ary CPP macros) applies to n-ary macro definitions.
14395
# See the Autoconf documentation for `clear'.
14396
cat >confdef2sed.sed <<\EOF
14401
s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
14403
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14406
# If some macros were called several times there might be several times
14407
# the same #defines, which is useless. Nevertheless, we may not want to
14408
# sort them, since we want the *last* AC-DEFINE to be honored.
14409
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14410
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14411
rm -f confdef2sed.sed
14413
# This sed command replaces #undef with comments. This is necessary, for
14414
# example, in the case of _POSIX_SOURCE, which is predefined and required
14415
# on some systems where configure will not decide to define it.
14416
cat >>conftest.undefs <<\EOF
14417
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14420
# Break up conftest.defines because some shells have a limit on the size
14421
# of here documents, and old seds have small limits too (100 cmds).
14422
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14423
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14424
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14425
echo ' :' >>$CONFIG_STATUS
14426
rm -f conftest.tail
14427
while grep . conftest.defines >/dev/null
14429
# Write a limited-size here document to $tmp/defines.sed.
14430
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14431
# Speed up: don't consider the non `#define' lines.
14432
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14433
# Work around the forget-to-reset-the-flag bug.
14434
echo 't clr' >>$CONFIG_STATUS
14435
echo ': clr' >>$CONFIG_STATUS
14436
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14438
sed -f $tmp/defines.sed $tmp/in >$tmp/out
14440
mv $tmp/out $tmp/in
14442
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14443
rm -f conftest.defines
14444
mv conftest.tail conftest.defines
14446
rm -f conftest.defines
14447
echo ' fi # egrep' >>$CONFIG_STATUS
14448
echo >>$CONFIG_STATUS
14450
# Break up conftest.undefs because some shells have a limit on the size
14451
# of here documents, and old seds have small limits too (100 cmds).
14452
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14453
rm -f conftest.tail
14454
while grep . conftest.undefs >/dev/null
14456
# Write a limited-size here document to $tmp/undefs.sed.
14457
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14458
# Speed up: don't consider the non `#undef'
14459
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14460
# Work around the forget-to-reset-the-flag bug.
14461
echo 't clr' >>$CONFIG_STATUS
14462
echo ': clr' >>$CONFIG_STATUS
14463
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14465
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14467
mv $tmp/out $tmp/in
14469
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14470
rm -f conftest.undefs
14471
mv conftest.tail conftest.undefs
14473
rm -f conftest.undefs
14475
cat >>$CONFIG_STATUS <<\EOF
14476
# Let's still pretend it is `configure' which instantiates (i.e., don't
14477
# use $as_me), people would be surprised to read:
14478
# /* config.h. Generated automatically by config.status. */
14479
if test x"$ac_file" = x-; then
14480
echo "/* Generated automatically by configure. */" >$tmp/config.h
14482
echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
14484
cat $tmp/in >>$tmp/config.h
14486
if test x"$ac_file" != x-; then
14487
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14488
{ echo "$as_me:14488: $ac_file is unchanged" >&5
14489
echo "$as_me: $ac_file is unchanged" >&6;}
14491
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14492
X"$ac_file" : 'X\(//\)[^/]' \| \
14493
X"$ac_file" : 'X\(//\)$' \| \
14494
X"$ac_file" : 'X\(/\)' \| \
14495
. : '\(.\)' 2>/dev/null ||
14497
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14498
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14499
/^X\(\/\/\)$/{ s//\1/; q; }
14500
/^X\(\/\).*/{ s//\1/; q; }
14502
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14503
{ case "$ac_dir" in
14504
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
14508
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14509
case $as_mkdir_dir in
14510
# Skip DOS drivespec
14511
?:) as_incr_dir=$as_mkdir_dir ;;
14513
as_incr_dir=$as_incr_dir/$as_mkdir_dir
14514
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14521
mv $tmp/config.h $ac_file
14525
rm -f $tmp/config.h
14530
cat >>$CONFIG_STATUS <<\EOF
14532
{ (exit 0); exit 0; }
14534
chmod +x $CONFIG_STATUS
14535
ac_clean_files=$ac_clean_files_save
14537
# configure is writing to config.log, and then calls config.status.
14538
# config.status does its own redirection, appending to config.log.
14539
# Unfortunately, on DOS this fails, as config.log is still kept open
14540
# by configure, so config.status won't be able to write to it; its
14541
# output is simply discarded. So we exec the FD to /dev/null,
14542
# effectively closing config.log, so it can be properly (re)opened and
14543
# appended to by config.status. When coming back to configure, we
14544
# need to make the FD available again.
14545
if test "$no_create" != yes; then
14548
$SHELL $CONFIG_STATUS || ac_cs_success=false
14550
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
14551
# would make configure fail if this is the last instruction.
14552
$ac_cs_success || { (exit 1); exit 1; }