3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 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.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--with-cpus The number of cpus to be used for building(see --with-procs, default 1)"
17
--with-getconf Enable automagical buildtime configuration"
19
--with-proc-multiply Multiply this * number of cpus for parallel making(default 2)."
21
--with-procs The number of processes to run in parallel during make(num_cpus * multiplier)."
23
# Initialize some variables set by options.
24
# The variables have the same names as the options, with
25
# dashes changed to underlines.
27
cache_file=./config.cache
36
program_transform_name=s,x,x,
44
bindir='${exec_prefix}/bin'
45
sbindir='${exec_prefix}/sbin'
46
libexecdir='${exec_prefix}/libexec'
47
datadir='${prefix}/share'
48
sysconfdir='${prefix}/etc'
49
sharedstatedir='${prefix}/com'
50
localstatedir='${prefix}/var'
51
libdir='${exec_prefix}/lib'
52
includedir='${prefix}/include'
53
oldincludedir='/usr/include'
54
infodir='${prefix}/info'
55
mandir='${prefix}/man'
57
# Initialize some other variables.
60
SHELL=${CONFIG_SHELL-/bin/sh}
61
# Maximum number of lines to put in a shell here document.
68
# If the previous option needs an argument, assign it.
69
if test -n "$ac_prev"; then
70
eval "$ac_prev=\$ac_option"
76
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
80
# Accept the important Cygnus configure options, so we can diagnose typos.
84
-bindir | --bindir | --bindi | --bind | --bin | --bi)
86
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87
bindir="$ac_optarg" ;;
89
-build | --build | --buil | --bui | --bu)
91
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
94
-cache-file | --cache-file | --cache-fil | --cache-fi \
95
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
97
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99
cache_file="$ac_optarg" ;;
101
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
103
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
105
datadir="$ac_optarg" ;;
107
-disable-* | --disable-*)
108
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109
# Reject names that are not valid shell variable names.
110
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114
eval "enable_${ac_feature}=no" ;;
116
-enable-* | --enable-*)
117
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118
# Reject names that are not valid shell variable names.
119
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127
eval "enable_${ac_feature}='$ac_optarg'" ;;
129
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131
| --exec | --exe | --ex)
132
ac_prev=exec_prefix ;;
133
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135
| --exec=* | --exe=* | --ex=*)
136
exec_prefix="$ac_optarg" ;;
138
-gas | --gas | --ga | --g)
139
# Obsolete; use --with-gas.
142
-help | --help | --hel | --he)
143
# Omit some internal or obsolete options to make the list less imposing.
144
# This message is too long to be a string in the A/UX 3.1 sh.
146
Usage: configure [options] [host]
147
Options: [defaults in brackets after descriptions]
149
--cache-file=FILE cache test results in FILE
150
--help print this message
151
--no-create do not create output files
152
--quiet, --silent do not print \`checking...' messages
153
--version print the version of autoconf that created configure
154
Directory and file names:
155
--prefix=PREFIX install architecture-independent files in PREFIX
157
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
159
--bindir=DIR user executables in DIR [EPREFIX/bin]
160
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
161
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
162
--datadir=DIR read-only architecture-independent data in DIR
164
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
165
--sharedstatedir=DIR modifiable architecture-independent data in DIR
167
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
168
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
169
--includedir=DIR C header files in DIR [PREFIX/include]
170
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
171
--infodir=DIR info documentation in DIR [PREFIX/info]
172
--mandir=DIR man documentation in DIR [PREFIX/man]
173
--srcdir=DIR find the sources in DIR [configure dir or ..]
174
--program-prefix=PREFIX prepend PREFIX to installed program names
175
--program-suffix=SUFFIX append SUFFIX to installed program names
176
--program-transform-name=PROGRAM
177
run sed PROGRAM on installed program names
181
--build=BUILD configure for building on BUILD [BUILD=HOST]
182
--host=HOST configure for HOST [guessed]
183
--target=TARGET configure for TARGET [TARGET=HOST]
184
Features and packages:
185
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
186
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
187
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
188
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
189
--x-includes=DIR X include files are in DIR
190
--x-libraries=DIR X library files are in DIR
192
if test -n "$ac_help"; then
193
echo "--enable and --with options recognized:$ac_help"
197
-host | --host | --hos | --ho)
199
-host=* | --host=* | --hos=* | --ho=*)
202
-includedir | --includedir | --includedi | --included | --include \
203
| --includ | --inclu | --incl | --inc)
204
ac_prev=includedir ;;
205
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206
| --includ=* | --inclu=* | --incl=* | --inc=*)
207
includedir="$ac_optarg" ;;
209
-infodir | --infodir | --infodi | --infod | --info | --inf)
211
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212
infodir="$ac_optarg" ;;
214
-libdir | --libdir | --libdi | --libd)
216
-libdir=* | --libdir=* | --libdi=* | --libd=*)
217
libdir="$ac_optarg" ;;
219
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220
| --libexe | --libex | --libe)
221
ac_prev=libexecdir ;;
222
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223
| --libexe=* | --libex=* | --libe=*)
224
libexecdir="$ac_optarg" ;;
226
-localstatedir | --localstatedir | --localstatedi | --localstated \
227
| --localstate | --localstat | --localsta | --localst \
228
| --locals | --local | --loca | --loc | --lo)
229
ac_prev=localstatedir ;;
230
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
232
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233
localstatedir="$ac_optarg" ;;
235
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
237
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238
mandir="$ac_optarg" ;;
241
# Obsolete; use --without-fp.
244
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
248
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
249
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254
| --oldin | --oldi | --old | --ol | --o)
255
ac_prev=oldincludedir ;;
256
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259
oldincludedir="$ac_optarg" ;;
261
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
263
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264
prefix="$ac_optarg" ;;
266
-program-prefix | --program-prefix | --program-prefi | --program-pref \
267
| --program-pre | --program-pr | --program-p)
268
ac_prev=program_prefix ;;
269
-program-prefix=* | --program-prefix=* | --program-prefi=* \
270
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271
program_prefix="$ac_optarg" ;;
273
-program-suffix | --program-suffix | --program-suffi | --program-suff \
274
| --program-suf | --program-su | --program-s)
275
ac_prev=program_suffix ;;
276
-program-suffix=* | --program-suffix=* | --program-suffi=* \
277
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278
program_suffix="$ac_optarg" ;;
280
-program-transform-name | --program-transform-name \
281
| --program-transform-nam | --program-transform-na \
282
| --program-transform-n | --program-transform- \
283
| --program-transform | --program-transfor \
284
| --program-transfo | --program-transf \
285
| --program-trans | --program-tran \
286
| --progr-tra | --program-tr | --program-t)
287
ac_prev=program_transform_name ;;
288
-program-transform-name=* | --program-transform-name=* \
289
| --program-transform-nam=* | --program-transform-na=* \
290
| --program-transform-n=* | --program-transform-=* \
291
| --program-transform=* | --program-transfor=* \
292
| --program-transfo=* | --program-transf=* \
293
| --program-trans=* | --program-tran=* \
294
| --progr-tra=* | --program-tr=* | --program-t=*)
295
program_transform_name="$ac_optarg" ;;
297
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
298
| -silent | --silent | --silen | --sile | --sil)
301
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
303
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
305
sbindir="$ac_optarg" ;;
307
-sharedstatedir | --sharedstatedir | --sharedstatedi \
308
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309
| --sharedst | --shareds | --shared | --share | --shar \
311
ac_prev=sharedstatedir ;;
312
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
316
sharedstatedir="$ac_optarg" ;;
318
-site | --site | --sit)
320
-site=* | --site=* | --sit=*)
323
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
325
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326
srcdir="$ac_optarg" ;;
328
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329
| --syscon | --sysco | --sysc | --sys | --sy)
330
ac_prev=sysconfdir ;;
331
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333
sysconfdir="$ac_optarg" ;;
335
-target | --target | --targe | --targ | --tar | --ta | --t)
337
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338
target="$ac_optarg" ;;
340
-v | -verbose | --verbose | --verbos | --verbo | --verb)
343
-version | --version | --versio | --versi | --vers)
344
echo "configure generated by autoconf version 2.13"
348
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349
# Reject names that are not valid shell variable names.
350
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
353
ac_package=`echo $ac_package| sed 's/-/_/g'`
358
eval "with_${ac_package}='$ac_optarg'" ;;
360
-without-* | --without-*)
361
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362
# Reject names that are not valid shell variable names.
363
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366
ac_package=`echo $ac_package| sed 's/-/_/g'`
367
eval "with_${ac_package}=no" ;;
370
# Obsolete; use --with-x.
373
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374
| --x-incl | --x-inc | --x-in | --x-i)
375
ac_prev=x_includes ;;
376
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378
x_includes="$ac_optarg" ;;
380
-x-libraries | --x-libraries | --x-librarie | --x-librari \
381
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382
ac_prev=x_libraries ;;
383
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385
x_libraries="$ac_optarg" ;;
387
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392
echo "configure: warning: $ac_option: invalid host type" 1>&2
394
if test "x$nonopt" != xNONE; then
395
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403
if test -n "$ac_prev"; then
404
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
409
# File descriptor usage:
412
# 2 errors and warnings
413
# 3 some systems may open it to /dev/tty
414
# 4 used on the Kubota Titan
415
# 6 checking for... messages and results
416
# 5 compiler messages saved in config.log
417
if test "$silent" = yes; then
425
This file contains any messages produced by compilers while
426
running configure, to aid debugging if configure makes a mistake.
429
# Strip out --no-create and --no-recursion so they do not pile up.
430
# Also quote any args containing shell metacharacters.
435
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
436
| --no-cr | --no-c) ;;
437
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
438
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
446
# Only set these to C if already set. These must not be set unconditionally
447
# because not all systems understand e.g. LANG=C (notably SCO).
448
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449
# Non-C LC_CTYPE values break the ctype check.
450
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
451
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
455
# confdefs.h avoids OS command line length limits that DEFS can exceed.
456
rm -rf conftest* confdefs.h
457
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
460
# A filename unique to this package, relative to the directory that
461
# configure is in, which we can look for to find out if srcdir is correct.
462
ac_unique_file=configure.in
464
# Find the source files, if location was not specified.
465
if test -z "$srcdir"; then
466
ac_srcdir_defaulted=yes
467
# Try the directory containing this script, then its parent.
469
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
472
if test ! -r $srcdir/$ac_unique_file; then
476
ac_srcdir_defaulted=no
478
if test ! -r $srcdir/$ac_unique_file; then
479
if test "$ac_srcdir_defaulted" = yes; then
480
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
482
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
487
# Prefer explicitly selected file to automatically selected ones.
488
if test -z "$CONFIG_SITE"; then
489
if test "x$prefix" != xNONE; then
490
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
492
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495
for ac_site_file in $CONFIG_SITE; do
496
if test -r "$ac_site_file"; then
497
echo "loading site script $ac_site_file"
502
if test -r "$cache_file"; then
503
echo "loading cache $cache_file"
506
echo "creating cache $cache_file"
511
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512
ac_cpp='$CPP $CPPFLAGS'
513
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515
cross_compiling=$ac_cv_prog_cc_cross
519
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
528
ac_n= ac_c='\c' ac_t=
533
for ac_dir in buildlib $srcdir/buildlib; do
534
if test -f $ac_dir/install-sh; then
536
ac_install_sh="$ac_aux_dir/install-sh -c"
538
elif test -f $ac_dir/install.sh; then
540
ac_install_sh="$ac_aux_dir/install.sh -c"
544
if test -z "$ac_aux_dir"; then
545
{ echo "configure: error: can not find install-sh or install.sh in buildlib $srcdir/buildlib" 1>&2; exit 1; }
547
ac_config_guess=$ac_aux_dir/config.guess
548
ac_config_sub=$ac_aux_dir/config.sub
549
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
553
cat >> confdefs.h <<EOF
554
#define VERSION "0.5.4"
557
cat >> confdefs.h <<EOF
558
#define PACKAGE "apt"
563
# Do some error checking and defaulting for the host and target type.
565
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
568
# 1. You are not allowed to specify --host, --target, and nonopt at the
570
# 2. Host defaults to nonopt.
571
# 3. If nonopt is not specified, then host defaults to the current host,
572
# as determined by config.guess.
573
# 4. Target and build default to nonopt.
574
# 5. If nonopt is not specified, then target and build default to host.
576
# The aliases save the names the user supplied, while $host etc.
577
# will get canonicalized.
578
case $host---$target---$nonopt in
579
NONE---*---* | *---NONE---* | *---*---NONE) ;;
580
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
584
# Make sure we can run config.sub.
585
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589
echo $ac_n "checking host system type""... $ac_c" 1>&6
590
echo "configure:591: checking host system type" >&5
593
case "$host_alias" in
597
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600
*) host_alias=$nonopt ;;
604
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608
echo "$ac_t""$host" 1>&6
610
echo $ac_n "checking target system type""... $ac_c" 1>&6
611
echo "configure:612: checking target system type" >&5
614
case "$target_alias" in
617
NONE) target_alias=$host_alias ;;
618
*) target_alias=$nonopt ;;
622
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626
echo "$ac_t""$target" 1>&6
628
echo $ac_n "checking build system type""... $ac_c" 1>&6
629
echo "configure:630: checking build system type" >&5
632
case "$build_alias" in
635
NONE) build_alias=$host_alias ;;
636
*) build_alias=$nonopt ;;
640
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644
echo "$ac_t""$build" 1>&6
646
test "$host_alias" != "$target_alias" &&
647
test "$program_prefix$program_suffix$program_transform_name" = \
649
program_prefix=${target_alias}-
652
if test $host != $build; then
653
ac_tool_prefix=${host_alias}-
658
# Extract the first word of "gcc", so it can be a program name with args.
659
set dummy gcc; ac_word=$2
660
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661
echo "configure:662: checking for $ac_word" >&5
662
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663
echo $ac_n "(cached) $ac_c" 1>&6
665
if test -n "$CC"; then
666
ac_cv_prog_CC="$CC" # Let the user override the test.
668
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670
for ac_dir in $ac_dummy; do
671
test -z "$ac_dir" && ac_dir=.
672
if test -f $ac_dir/$ac_word; then
681
if test -n "$CC"; then
682
echo "$ac_t""$CC" 1>&6
684
echo "$ac_t""no" 1>&6
687
if test -z "$CC"; then
688
# Extract the first word of "cc", so it can be a program name with args.
689
set dummy cc; ac_word=$2
690
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691
echo "configure:692: checking for $ac_word" >&5
692
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693
echo $ac_n "(cached) $ac_c" 1>&6
695
if test -n "$CC"; then
696
ac_cv_prog_CC="$CC" # Let the user override the test.
698
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
701
for ac_dir in $ac_dummy; do
702
test -z "$ac_dir" && ac_dir=.
703
if test -f $ac_dir/$ac_word; then
704
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
713
if test $ac_prog_rejected = yes; then
714
# We found a bogon in the path, so make sure we never use it.
715
set dummy $ac_cv_prog_CC
717
if test $# -gt 0; then
718
# We chose a different compiler from the bogus one.
719
# However, it has the same basename, so the bogon will be chosen
720
# first if we set CC to just the basename; use the full file name.
722
set dummy "$ac_dir/$ac_word" "$@"
730
if test -n "$CC"; then
731
echo "$ac_t""$CC" 1>&6
733
echo "$ac_t""no" 1>&6
736
if test -z "$CC"; then
739
# Extract the first word of "cl", so it can be a program name with args.
740
set dummy cl; ac_word=$2
741
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742
echo "configure:743: checking for $ac_word" >&5
743
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744
echo $ac_n "(cached) $ac_c" 1>&6
746
if test -n "$CC"; then
747
ac_cv_prog_CC="$CC" # Let the user override the test.
749
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751
for ac_dir in $ac_dummy; do
752
test -z "$ac_dir" && ac_dir=.
753
if test -f $ac_dir/$ac_word; then
762
if test -n "$CC"; then
763
echo "$ac_t""$CC" 1>&6
765
echo "$ac_t""no" 1>&6
770
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
773
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
774
echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
777
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778
ac_cpp='$CPP $CPPFLAGS'
779
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781
cross_compiling=$ac_cv_prog_cc_cross
783
cat > conftest.$ac_ext << EOF
785
#line 786 "configure"
786
#include "confdefs.h"
790
if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
791
ac_cv_prog_cc_works=yes
792
# If we can't run a trivial program, we are probably using a cross compiler.
793
if (./conftest; exit) 2>/dev/null; then
794
ac_cv_prog_cc_cross=no
796
ac_cv_prog_cc_cross=yes
799
echo "configure: failed program was:" >&5
800
cat conftest.$ac_ext >&5
801
ac_cv_prog_cc_works=no
805
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806
ac_cpp='$CPP $CPPFLAGS'
807
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809
cross_compiling=$ac_cv_prog_cc_cross
811
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812
if test $ac_cv_prog_cc_works = no; then
813
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816
echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818
cross_compiling=$ac_cv_prog_cc_cross
820
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821
echo "configure:822: checking whether we are using GNU C" >&5
822
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823
echo $ac_n "(cached) $ac_c" 1>&6
825
cat > conftest.c <<EOF
830
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
837
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839
if test $ac_cv_prog_gcc = yes; then
845
ac_test_CFLAGS="${CFLAGS+set}"
846
ac_save_CFLAGS="$CFLAGS"
848
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
849
echo "configure:850: checking whether ${CC-cc} accepts -g" >&5
850
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
851
echo $ac_n "(cached) $ac_c" 1>&6
853
echo 'void f(){}' > conftest.c
854
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
863
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
864
if test "$ac_test_CFLAGS" = set; then
865
CFLAGS="$ac_save_CFLAGS"
866
elif test $ac_cv_prog_cc_g = yes; then
867
if test "$GCC" = yes; then
873
if test "$GCC" = yes; then
880
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
881
echo "configure:882: checking for POSIXized ISC" >&5
882
if test -d /etc/conf/kconfig.d &&
883
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
885
echo "$ac_t""yes" 1>&6
886
ISC=yes # If later tests want to check for ISC.
887
cat >> confdefs.h <<\EOF
888
#define _POSIX_SOURCE 1
891
if test "$GCC" = yes; then
897
echo "$ac_t""no" 1>&6
902
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
904
# Extract the first word of "$ac_prog", so it can be a program name with args.
905
set dummy $ac_prog; ac_word=$2
906
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
907
echo "configure:908: checking for $ac_word" >&5
908
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
909
echo $ac_n "(cached) $ac_c" 1>&6
911
if test -n "$CXX"; then
912
ac_cv_prog_CXX="$CXX" # Let the user override the test.
914
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
916
for ac_dir in $ac_dummy; do
917
test -z "$ac_dir" && ac_dir=.
918
if test -f $ac_dir/$ac_word; then
919
ac_cv_prog_CXX="$ac_prog"
926
CXX="$ac_cv_prog_CXX"
927
if test -n "$CXX"; then
928
echo "$ac_t""$CXX" 1>&6
930
echo "$ac_t""no" 1>&6
933
test -n "$CXX" && break
935
test -n "$CXX" || CXX="gcc"
938
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
939
echo "configure:940: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
942
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
943
ac_cpp='$CXXCPP $CPPFLAGS'
944
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
945
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
946
cross_compiling=$ac_cv_prog_cxx_cross
948
cat > conftest.$ac_ext << EOF
950
#line 951 "configure"
951
#include "confdefs.h"
953
int main(){return(0);}
955
if { (eval echo configure:956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
956
ac_cv_prog_cxx_works=yes
957
# If we can't run a trivial program, we are probably using a cross compiler.
958
if (./conftest; exit) 2>/dev/null; then
959
ac_cv_prog_cxx_cross=no
961
ac_cv_prog_cxx_cross=yes
964
echo "configure: failed program was:" >&5
965
cat conftest.$ac_ext >&5
966
ac_cv_prog_cxx_works=no
970
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
971
ac_cpp='$CPP $CPPFLAGS'
972
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
973
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
974
cross_compiling=$ac_cv_prog_cc_cross
976
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
977
if test $ac_cv_prog_cxx_works = no; then
978
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
980
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
981
echo "configure:982: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
982
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
983
cross_compiling=$ac_cv_prog_cxx_cross
985
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
986
echo "configure:987: checking whether we are using GNU C++" >&5
987
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
988
echo $ac_n "(cached) $ac_c" 1>&6
990
cat > conftest.C <<EOF
995
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1002
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1004
if test $ac_cv_prog_gxx = yes; then
1010
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1011
ac_save_CXXFLAGS="$CXXFLAGS"
1013
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1014
echo "configure:1015: checking whether ${CXX-g++} accepts -g" >&5
1015
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1016
echo $ac_n "(cached) $ac_c" 1>&6
1018
echo 'void f(){}' > conftest.cc
1019
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1020
ac_cv_prog_cxx_g=yes
1028
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1029
if test "$ac_test_CXXFLAGS" = set; then
1030
CXXFLAGS="$ac_save_CXXFLAGS"
1031
elif test $ac_cv_prog_cxx_g = yes; then
1032
if test "$GXX" = yes; then
1038
if test "$GXX" = yes; then
1045
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1046
echo "configure:1047: checking how to run the C preprocessor" >&5
1047
# On Suns, sometimes $CPP names a directory.
1048
if test -n "$CPP" && test -d "$CPP"; then
1051
if test -z "$CPP"; then
1052
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1053
echo $ac_n "(cached) $ac_c" 1>&6
1055
# This must be in double quotes, not single quotes, because CPP may get
1056
# substituted into the Makefile and "${CC-cc}" will confuse make.
1058
# On the NeXT, cc -E runs the code through the compiler's parser,
1059
# not just through cpp.
1060
cat > conftest.$ac_ext <<EOF
1061
#line 1062 "configure"
1062
#include "confdefs.h"
1066
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1067
{ (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1068
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1069
if test -z "$ac_err"; then
1073
echo "configure: failed program was:" >&5
1074
cat conftest.$ac_ext >&5
1076
CPP="${CC-cc} -E -traditional-cpp"
1077
cat > conftest.$ac_ext <<EOF
1078
#line 1079 "configure"
1079
#include "confdefs.h"
1083
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1084
{ (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1085
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1086
if test -z "$ac_err"; then
1090
echo "configure: failed program was:" >&5
1091
cat conftest.$ac_ext >&5
1093
CPP="${CC-cc} -nologo -E"
1094
cat > conftest.$ac_ext <<EOF
1095
#line 1096 "configure"
1096
#include "confdefs.h"
1100
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1101
{ (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1102
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1103
if test -z "$ac_err"; then
1107
echo "configure: failed program was:" >&5
1108
cat conftest.$ac_ext >&5
1117
ac_cv_prog_CPP="$CPP"
1119
CPP="$ac_cv_prog_CPP"
1121
ac_cv_prog_CPP="$CPP"
1123
echo "$ac_t""$CPP" 1>&6
1125
# Extract the first word of "ranlib", so it can be a program name with args.
1126
set dummy ranlib; ac_word=$2
1127
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1128
echo "configure:1129: checking for $ac_word" >&5
1129
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1130
echo $ac_n "(cached) $ac_c" 1>&6
1132
if test -n "$RANLIB"; then
1133
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1135
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1137
for ac_dir in $ac_dummy; do
1138
test -z "$ac_dir" && ac_dir=.
1139
if test -f $ac_dir/$ac_word; then
1140
ac_cv_prog_RANLIB="ranlib"
1145
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1148
RANLIB="$ac_cv_prog_RANLIB"
1149
if test -n "$RANLIB"; then
1150
echo "$ac_t""$RANLIB" 1>&6
1152
echo "$ac_t""no" 1>&6
1155
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1156
set dummy ${ac_tool_prefix}ar; ac_word=$2
1157
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158
echo "configure:1159: checking for $ac_word" >&5
1159
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1160
echo $ac_n "(cached) $ac_c" 1>&6
1162
if test -n "$AR"; then
1163
ac_cv_prog_AR="$AR" # Let the user override the test.
1165
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1167
for ac_dir in $ac_dummy; do
1168
test -z "$ac_dir" && ac_dir=.
1169
if test -f $ac_dir/$ac_word; then
1170
ac_cv_prog_AR="${ac_tool_prefix}ar"
1178
if test -n "$AR"; then
1179
echo "$ac_t""$AR" 1>&6
1181
echo "$ac_t""no" 1>&6
1185
if test -z "$ac_cv_prog_AR"; then
1186
if test -n "$ac_tool_prefix"; then
1187
# Extract the first word of "ar", so it can be a program name with args.
1188
set dummy ar; ac_word=$2
1189
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190
echo "configure:1191: checking for $ac_word" >&5
1191
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1192
echo $ac_n "(cached) $ac_c" 1>&6
1194
if test -n "$AR"; then
1195
ac_cv_prog_AR="$AR" # Let the user override the test.
1197
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1199
for ac_dir in $ac_dummy; do
1200
test -z "$ac_dir" && ac_dir=.
1201
if test -f $ac_dir/$ac_word; then
1207
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=""ar""
1211
if test -n "$AR"; then
1212
echo "$ac_t""$AR" 1>&6
1214
echo "$ac_t""no" 1>&6
1226
echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
1227
echo "configure:1228: checking for library containing gethostbyname" >&5
1228
if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
1229
echo $ac_n "(cached) $ac_c" 1>&6
1231
ac_func_search_save_LIBS="$LIBS"
1232
ac_cv_search_gethostbyname="no"
1233
cat > conftest.$ac_ext <<EOF
1234
#line 1235 "configure"
1235
#include "confdefs.h"
1236
/* Override any gcc2 internal prototype to avoid an error. */
1237
/* We use char because int might match the return type of a gcc2
1238
builtin and then its argument prototype would still apply. */
1239
char gethostbyname();
1245
if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1247
ac_cv_search_gethostbyname="none required"
1249
echo "configure: failed program was:" >&5
1250
cat conftest.$ac_ext >&5
1253
test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
1254
LIBS="-l$i $ac_func_search_save_LIBS"
1255
cat > conftest.$ac_ext <<EOF
1256
#line 1257 "configure"
1257
#include "confdefs.h"
1258
/* Override any gcc2 internal prototype to avoid an error. */
1259
/* We use char because int might match the return type of a gcc2
1260
builtin and then its argument prototype would still apply. */
1261
char gethostbyname();
1267
if { (eval echo configure:1268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1269
ac_cv_search_gethostbyname="-l$i"
1272
echo "configure: failed program was:" >&5
1273
cat conftest.$ac_ext >&5
1277
LIBS="$ac_func_search_save_LIBS"
1280
echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
1281
if test "$ac_cv_search_gethostbyname" != "no"; then
1282
test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
1288
echo $ac_n "checking for library containing connect""... $ac_c" 1>&6
1289
echo "configure:1290: checking for library containing connect" >&5
1290
if eval "test \"`echo '$''{'ac_cv_search_connect'+set}'`\" = set"; then
1291
echo $ac_n "(cached) $ac_c" 1>&6
1293
ac_func_search_save_LIBS="$LIBS"
1294
ac_cv_search_connect="no"
1295
cat > conftest.$ac_ext <<EOF
1296
#line 1297 "configure"
1297
#include "confdefs.h"
1298
/* Override any gcc2 internal prototype to avoid an error. */
1299
/* We use char because int might match the return type of a gcc2
1300
builtin and then its argument prototype would still apply. */
1307
if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1309
ac_cv_search_connect="none required"
1311
echo "configure: failed program was:" >&5
1312
cat conftest.$ac_ext >&5
1315
test "$ac_cv_search_connect" = "no" && for i in socket; do
1316
LIBS="-l$i $ac_func_search_save_LIBS"
1317
cat > conftest.$ac_ext <<EOF
1318
#line 1319 "configure"
1319
#include "confdefs.h"
1320
/* Override any gcc2 internal prototype to avoid an error. */
1321
/* We use char because int might match the return type of a gcc2
1322
builtin and then its argument prototype would still apply. */
1329
if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1331
ac_cv_search_connect="-l$i"
1334
echo "configure: failed program was:" >&5
1335
cat conftest.$ac_ext >&5
1339
LIBS="$ac_func_search_save_LIBS"
1342
echo "$ac_t""$ac_cv_search_connect" 1>&6
1343
if test "$ac_cv_search_connect" != "no"; then
1344
test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
1355
ac_safe=`echo "db2/db.h" | sed 'y%./+-%__p_%'`
1356
echo $ac_n "checking for db2/db.h""... $ac_c" 1>&6
1357
echo "configure:1358: checking for db2/db.h" >&5
1358
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1359
echo $ac_n "(cached) $ac_c" 1>&6
1361
cat > conftest.$ac_ext <<EOF
1362
#line 1363 "configure"
1363
#include "confdefs.h"
1366
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1367
{ (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1368
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1369
if test -z "$ac_err"; then
1371
eval "ac_cv_header_$ac_safe=yes"
1374
echo "configure: failed program was:" >&5
1375
cat conftest.$ac_ext >&5
1377
eval "ac_cv_header_$ac_safe=no"
1381
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1382
echo "$ac_t""yes" 1>&6
1383
echo $ac_n "checking for db_open in -ldb2""... $ac_c" 1>&6
1384
echo "configure:1385: checking for db_open in -ldb2" >&5
1385
ac_lib_var=`echo db2'_'db_open | sed 'y%./+-%__p_%'`
1386
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387
echo $ac_n "(cached) $ac_c" 1>&6
1389
ac_save_LIBS="$LIBS"
1391
cat > conftest.$ac_ext <<EOF
1392
#line 1393 "configure"
1393
#include "confdefs.h"
1394
/* Override any gcc2 internal prototype to avoid an error. */
1395
/* We use char because int might match the return type of a gcc2
1396
builtin and then its argument prototype would still apply. */
1403
if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1405
eval "ac_cv_lib_$ac_lib_var=yes"
1407
echo "configure: failed program was:" >&5
1408
cat conftest.$ac_ext >&5
1410
eval "ac_cv_lib_$ac_lib_var=no"
1413
LIBS="$ac_save_LIBS"
1416
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417
echo "$ac_t""yes" 1>&6
1418
cat >> confdefs.h <<\EOF
1423
echo "$ac_t""no" 1>&6
1427
echo "$ac_t""no" 1>&6
1432
echo $ac_n "checking system architecture""... $ac_c" 1>&6
1433
echo "configure:1434: checking system architecture" >&5
1434
archset="`awk \" ! /^#|^\\\$/ { if(match(\\\"$target_cpu\\\",\\\"^\\\"\\\$1\\\"\\\$\\\")) {print \\\$2; exit}}\" $srcdir/buildlib/archtable`"
1435
if test "x$archset" = "x"; then
1436
{ echo "configure: error: failed: use --host=" 1>&2; exit 1; }
1438
echo "$ac_t""$archset" 1>&6
1439
cat >> confdefs.h <<EOF
1440
#define COMMON_CPU "$archset"
1444
echo $ac_n "checking system OS""... $ac_c" 1>&6
1445
echo "configure:1446: checking system OS" >&5
1446
osset="`awk \" ! /^#|^\\\$/ {if (match(\\\"$target_vendor-$target_os\\\",\\\$1)) {print \\\$2; exit}}\" $srcdir/buildlib/ostable`"
1447
echo "$ac_t""$osset" 1>&6
1448
cat >> confdefs.h <<EOF
1449
#define COMMON_OS "$osset"
1453
echo $ac_n "checking for C99 integer types""... $ac_c" 1>&6
1454
echo "configure:1455: checking for C99 integer types" >&5
1455
if eval "test \"`echo '$''{'c9x_ints'+set}'`\" = set"; then
1456
echo $ac_n "(cached) $ac_c" 1>&6
1459
cat > conftest.$ac_ext <<EOF
1460
#line 1461 "configure"
1461
#include "confdefs.h"
1462
#include <inttypes.h>
1464
uint8_t Foo1;uint16_t Foo2;uint32_t Foo3;
1467
if { (eval echo configure:1468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1471
echo "configure: failed program was:" >&5
1472
cat conftest.$ac_ext >&5
1479
echo "$ac_t""$c9x_ints" 1>&6
1481
echo $ac_n "checking for statvfs""... $ac_c" 1>&6
1482
echo "configure:1483: checking for statvfs" >&5
1483
if eval "test \"`echo '$''{'ac_cv_func_statvfs'+set}'`\" = set"; then
1484
echo $ac_n "(cached) $ac_c" 1>&6
1486
cat > conftest.$ac_ext <<EOF
1487
#line 1488 "configure"
1488
#include "confdefs.h"
1489
/* System header to define __stub macros and hopefully few prototypes,
1490
which can conflict with char statvfs(); below. */
1492
/* Override any gcc2 internal prototype to avoid an error. */
1493
/* We use char because int might match the return type of a gcc2
1494
builtin and then its argument prototype would still apply. */
1499
/* The GNU C library defines this for functions which it implements
1500
to always fail with ENOSYS. Some functions are actually named
1501
something starting with __ and the normal name is an alias. */
1502
#if defined (__stub_statvfs) || defined (__stub___statvfs)
1510
if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1512
eval "ac_cv_func_statvfs=yes"
1514
echo "configure: failed program was:" >&5
1515
cat conftest.$ac_ext >&5
1517
eval "ac_cv_func_statvfs=no"
1522
if eval "test \"`echo '$ac_cv_func_'statvfs`\" = yes"; then
1523
echo "$ac_t""yes" 1>&6
1526
echo "$ac_t""no" 1>&6
1531
if test x"$HAVE_STATVFS" != x"yes"; then
1532
cat > conftest.$ac_ext <<EOF
1533
#line 1534 "configure"
1534
#include "confdefs.h"
1535
#include <sys/vfs.h>
1537
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1538
egrep "statfs" >/dev/null 2>&1; then
1540
cat >> confdefs.h <<\EOF
1541
#define HAVE_VFS_H 1
1547
cat > conftest.$ac_ext <<EOF
1548
#line 1549 "configure"
1549
#include "confdefs.h"
1550
#include <sys/mount.h>
1552
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1553
egrep "statfs" >/dev/null 2>&1; then
1555
cat >> confdefs.h <<\EOF
1556
#define HAVE_MOUNT_H 1
1561
{ echo "configure: error: failed: Need statvfs" 1>&2; exit 1; }
1572
archline="`awk \" ! /^#|^\\\$/ {if (match(\\\"$archset\\\",\\\$1)) {print; exit}}\" $srcdir/buildlib/sizetable | cut -f 2- -d ' '`"
1573
if test "x$archline" != "x"; then
1576
if test "$1" = "little"; then
1577
ac_cv_c_bigendian=no
1579
ac_cv_c_bigendian=yes
1587
if test "$cross_compiling" = "yes" -a "x$archline" = "x"; then
1588
{ echo "configure: error: When cross compiling" 1>&2; exit 1; }
1590
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1591
echo "configure:1592: checking whether byte ordering is bigendian" >&5
1592
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1593
echo $ac_n "(cached) $ac_c" 1>&6
1595
ac_cv_c_bigendian=unknown
1596
# See if sys/param.h defines the BYTE_ORDER macro.
1597
cat > conftest.$ac_ext <<EOF
1598
#line 1599 "configure"
1599
#include "confdefs.h"
1600
#include <sys/types.h>
1601
#include <sys/param.h>
1604
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1609
if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1611
# It does; now see whether it defined to BIG_ENDIAN or not.
1612
cat > conftest.$ac_ext <<EOF
1613
#line 1614 "configure"
1614
#include "confdefs.h"
1615
#include <sys/types.h>
1616
#include <sys/param.h>
1619
#if BYTE_ORDER != BIG_ENDIAN
1624
if { (eval echo configure:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1626
ac_cv_c_bigendian=yes
1628
echo "configure: failed program was:" >&5
1629
cat conftest.$ac_ext >&5
1631
ac_cv_c_bigendian=no
1635
echo "configure: failed program was:" >&5
1636
cat conftest.$ac_ext >&5
1639
if test $ac_cv_c_bigendian = unknown; then
1640
if test "$cross_compiling" = yes; then
1641
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1643
cat > conftest.$ac_ext <<EOF
1644
#line 1645 "configure"
1645
#include "confdefs.h"
1647
/* Are we little or big endian? From Harbison&Steele. */
1651
char c[sizeof (long)];
1654
exit (u.c[sizeof (long) - 1] == 1);
1657
if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1659
ac_cv_c_bigendian=no
1661
echo "configure: failed program was:" >&5
1662
cat conftest.$ac_ext >&5
1664
ac_cv_c_bigendian=yes
1672
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1673
if test $ac_cv_c_bigendian = yes; then
1674
cat >> confdefs.h <<\EOF
1675
#define WORDS_BIGENDIAN 1
1682
if test x"$c9x_ints" = x"no"; then
1683
echo $ac_n "checking size of char""... $ac_c" 1>&6
1684
echo "configure:1685: checking size of char" >&5
1685
if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1686
echo $ac_n "(cached) $ac_c" 1>&6
1688
if test "$cross_compiling" = yes; then
1689
ac_cv_sizeof_char=$size_char
1691
cat > conftest.$ac_ext <<EOF
1692
#line 1693 "configure"
1693
#include "confdefs.h"
1695
#include <sys/types.h>
1698
FILE *f=fopen("conftestval", "w");
1700
fprintf(f, "%d\n", sizeof(char));
1704
if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1706
ac_cv_sizeof_char=`cat conftestval`
1708
echo "configure: failed program was:" >&5
1709
cat conftest.$ac_ext >&5
1717
echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1718
cat >> confdefs.h <<EOF
1719
#define SIZEOF_CHAR $ac_cv_sizeof_char
1723
echo $ac_n "checking size of int""... $ac_c" 1>&6
1724
echo "configure:1725: checking size of int" >&5
1725
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1726
echo $ac_n "(cached) $ac_c" 1>&6
1728
if test "$cross_compiling" = yes; then
1729
ac_cv_sizeof_int=$size_int
1731
cat > conftest.$ac_ext <<EOF
1732
#line 1733 "configure"
1733
#include "confdefs.h"
1735
#include <sys/types.h>
1738
FILE *f=fopen("conftestval", "w");
1740
fprintf(f, "%d\n", sizeof(int));
1744
if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1746
ac_cv_sizeof_int=`cat conftestval`
1748
echo "configure: failed program was:" >&5
1749
cat conftest.$ac_ext >&5
1757
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1758
cat >> confdefs.h <<EOF
1759
#define SIZEOF_INT $ac_cv_sizeof_int
1763
echo $ac_n "checking size of short""... $ac_c" 1>&6
1764
echo "configure:1765: checking size of short" >&5
1765
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1766
echo $ac_n "(cached) $ac_c" 1>&6
1768
if test "$cross_compiling" = yes; then
1769
ac_cv_sizeof_short=$size_short
1771
cat > conftest.$ac_ext <<EOF
1772
#line 1773 "configure"
1773
#include "confdefs.h"
1775
#include <sys/types.h>
1778
FILE *f=fopen("conftestval", "w");
1780
fprintf(f, "%d\n", sizeof(short));
1784
if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1786
ac_cv_sizeof_short=`cat conftestval`
1788
echo "configure: failed program was:" >&5
1789
cat conftest.$ac_ext >&5
1791
ac_cv_sizeof_short=0
1797
echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1798
cat >> confdefs.h <<EOF
1799
#define SIZEOF_SHORT $ac_cv_sizeof_short
1803
echo $ac_n "checking size of long""... $ac_c" 1>&6
1804
echo "configure:1805: checking size of long" >&5
1805
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1806
echo $ac_n "(cached) $ac_c" 1>&6
1808
if test "$cross_compiling" = yes; then
1809
ac_cv_sizeof_long=$size_long
1811
cat > conftest.$ac_ext <<EOF
1812
#line 1813 "configure"
1813
#include "confdefs.h"
1815
#include <sys/types.h>
1818
FILE *f=fopen("conftestval", "w");
1820
fprintf(f, "%d\n", sizeof(long));
1824
if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1826
ac_cv_sizeof_long=`cat conftestval`
1828
echo "configure: failed program was:" >&5
1829
cat conftest.$ac_ext >&5
1837
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1838
cat >> confdefs.h <<EOF
1839
#define SIZEOF_LONG $ac_cv_sizeof_long
1848
echo $ac_n "checking for missing socklen_t""... $ac_c" 1>&6
1849
echo "configure:1850: checking for missing socklen_t" >&5
1850
cat > conftest.$ac_ext <<EOF
1851
#line 1852 "configure"
1852
#include "confdefs.h"
1853
#include <sys/socket.h>
1855
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1856
egrep "socklen_t" >/dev/null 2>&1; then
1858
echo "$ac_t""no" 1>&6
1862
cat >> confdefs.h <<\EOF
1863
#define NEED_SOCKLEN_T_DEFINE 1
1866
NEED_SOCKLEN_T_DEFINE=yes
1867
echo "$ac_t""missing." 1>&6
1873
echo $ac_n "checking for h_errno""... $ac_c" 1>&6
1874
echo "configure:1875: checking for h_errno" >&5
1875
cat > conftest.$ac_ext <<EOF
1876
#line 1877 "configure"
1877
#include "confdefs.h"
1880
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1881
egrep "h_errno" >/dev/null 2>&1; then
1883
echo "$ac_t""normal" 1>&6
1886
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
1887
cat > conftest.$ac_ext <<EOF
1888
#line 1889 "configure"
1889
#include "confdefs.h"
1892
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1893
egrep "h_errno" >/dev/null 2>&1; then
1895
echo "$ac_t""needs _XOPEN_SOURCE_EXTENDED" 1>&6
1898
{ echo "configure: error: "not found."" 1>&2; exit 1; }
1907
# Extract the first word of "debiandoc2html", so it can be a program name with args.
1908
set dummy debiandoc2html; ac_word=$2
1909
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910
echo "configure:1911: checking for $ac_word" >&5
1911
if eval "test \"`echo '$''{'ac_cv_path_DEBIANDOC_HTML'+set}'`\" = set"; then
1912
echo $ac_n "(cached) $ac_c" 1>&6
1914
case "$DEBIANDOC_HTML" in
1916
ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a path.
1919
ac_cv_path_DEBIANDOC_HTML="$DEBIANDOC_HTML" # Let the user override the test with a dos path.
1922
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1924
for ac_dir in $ac_dummy; do
1925
test -z "$ac_dir" && ac_dir=.
1926
if test -f $ac_dir/$ac_word; then
1927
ac_cv_path_DEBIANDOC_HTML="$ac_dir/$ac_word"
1935
DEBIANDOC_HTML="$ac_cv_path_DEBIANDOC_HTML"
1936
if test -n "$DEBIANDOC_HTML"; then
1937
echo "$ac_t""$DEBIANDOC_HTML" 1>&6
1939
echo "$ac_t""no" 1>&6
1942
# Extract the first word of "debiandoc2text", so it can be a program name with args.
1943
set dummy debiandoc2text; ac_word=$2
1944
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1945
echo "configure:1946: checking for $ac_word" >&5
1946
if eval "test \"`echo '$''{'ac_cv_path_DEBIANDOC_TEXT'+set}'`\" = set"; then
1947
echo $ac_n "(cached) $ac_c" 1>&6
1949
case "$DEBIANDOC_TEXT" in
1951
ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a path.
1954
ac_cv_path_DEBIANDOC_TEXT="$DEBIANDOC_TEXT" # Let the user override the test with a dos path.
1957
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1959
for ac_dir in $ac_dummy; do
1960
test -z "$ac_dir" && ac_dir=.
1961
if test -f $ac_dir/$ac_word; then
1962
ac_cv_path_DEBIANDOC_TEXT="$ac_dir/$ac_word"
1970
DEBIANDOC_TEXT="$ac_cv_path_DEBIANDOC_TEXT"
1971
if test -n "$DEBIANDOC_TEXT"; then
1972
echo "$ac_t""$DEBIANDOC_TEXT" 1>&6
1974
echo "$ac_t""no" 1>&6
1978
# Extract the first word of "nsgmls", so it can be a program name with args.
1979
set dummy nsgmls; ac_word=$2
1980
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1981
echo "configure:1982: checking for $ac_word" >&5
1982
if eval "test \"`echo '$''{'ac_cv_path_NSGMLS'+set}'`\" = set"; then
1983
echo $ac_n "(cached) $ac_c" 1>&6
1987
ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a path.
1990
ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a dos path.
1993
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1995
for ac_dir in $ac_dummy; do
1996
test -z "$ac_dir" && ac_dir=.
1997
if test -f $ac_dir/$ac_word; then
1998
ac_cv_path_NSGMLS="$ac_dir/$ac_word"
2006
NSGMLS="$ac_cv_path_NSGMLS"
2007
if test -n "$NSGMLS"; then
2008
echo "$ac_t""$NSGMLS" 1>&6
2010
echo "$ac_t""no" 1>&6
2013
# Extract the first word of "sgmlspl", so it can be a program name with args.
2014
set dummy sgmlspl; ac_word=$2
2015
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2016
echo "configure:2017: checking for $ac_word" >&5
2017
if eval "test \"`echo '$''{'ac_cv_path_SGMLSPL'+set}'`\" = set"; then
2018
echo $ac_n "(cached) $ac_c" 1>&6
2022
ac_cv_path_SGMLSPL="$SGMLSPL" # Let the user override the test with a path.
2025
ac_cv_path_SGMLSPL="$SGMLSPL" # Let the user override the test with a dos path.
2028
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2030
for ac_dir in $ac_dummy; do
2031
test -z "$ac_dir" && ac_dir=.
2032
if test -f $ac_dir/$ac_word; then
2033
ac_cv_path_SGMLSPL="$ac_dir/$ac_word"
2041
SGMLSPL="$ac_cv_path_SGMLSPL"
2042
if test -n "$SGMLSPL"; then
2043
echo "$ac_t""$SGMLSPL" 1>&6
2045
echo "$ac_t""no" 1>&6
2050
# Check whether --with-getconf or --without-getconf was given.
2051
if test "${with_getconf+set}" = set; then
2052
withval="$with_getconf"
2053
if test "$withval" = "yes"; then
2054
# Extract the first word of "getconf", so it can be a program name with args.
2055
set dummy getconf; ac_word=$2
2056
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057
echo "configure:2058: checking for $ac_word" >&5
2058
if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
2059
echo $ac_n "(cached) $ac_c" 1>&6
2063
ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
2066
ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
2069
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2071
for ac_dir in $ac_dummy; do
2072
test -z "$ac_dir" && ac_dir=.
2073
if test -f $ac_dir/$ac_word; then
2074
ac_cv_path_GETCONF="$ac_dir/$ac_word"
2082
GETCONF="$ac_cv_path_GETCONF"
2083
if test -n "$GETCONF"; then
2084
echo "$ac_t""$GETCONF" 1>&6
2086
echo "$ac_t""no" 1>&6
2089
elif test ! "$withval" = "no";then
2090
echo $ac_n "checking getconf""... $ac_c" 1>&6
2091
echo "configure:2092: checking getconf" >&5
2092
echo "$ac_t""$withval" 1>&6
2096
# Extract the first word of "getconf", so it can be a program name with args.
2097
set dummy getconf; ac_word=$2
2098
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2099
echo "configure:2100: checking for $ac_word" >&5
2100
if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
2101
echo $ac_n "(cached) $ac_c" 1>&6
2105
ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
2108
ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a dos path.
2111
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2113
for ac_dir in $ac_dummy; do
2114
test -z "$ac_dir" && ac_dir=.
2115
if test -f $ac_dir/$ac_word; then
2116
ac_cv_path_GETCONF="$ac_dir/$ac_word"
2124
GETCONF="$ac_cv_path_GETCONF"
2125
if test -n "$GETCONF"; then
2126
echo "$ac_t""$GETCONF" 1>&6
2128
echo "$ac_t""no" 1>&6
2136
echo $ac_n "checking number of cpus""... $ac_c" 1>&6
2137
echo "configure:2138: checking number of cpus" >&5
2138
# Check whether --with-cpus or --without-cpus was given.
2139
if test "${with_cpus+set}" = set; then
2140
withval="$with_cpus"
2142
if test "$withval" = "yes"; then
2144
if test ! -z "$GETCONF";then
2146
set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
2147
while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
2148
eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
2152
if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
2156
elif test ! "$withval" = "no";then
2158
elif test "$withval" = "no";then
2163
if test ! -z "$GETCONF";then
2165
set -- SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN
2166
while eval test -z \"\$NUM_CPUS\" -a ! -z \"$1\";do
2167
eval NUM_CPUS=`$GETCONF "$1" 2>/dev/null`
2171
if eval test -z \"\$NUM_CPUS\" -o \"\$NUM_CPUS\" = "-1";then
2178
ah_NUM_CPUS_msg="$NUM_CPUS"
2179
if test "$NUM_CPUS" = "0"; then
2180
# broken getconf, time to bitch.
2181
ah_NUM_CPUS_msg="found 0 cpus. Has someone done a lobotomy?"
2184
if test $NUM_CPUS = 1 ;then
2185
default_PROC_MULTIPLY=1
2187
default_PROC_MULTIPLY=2
2189
echo "$ac_t""$ah_NUM_CPUS_msg" 1>&6
2193
echo $ac_n "checking processor multiplier""... $ac_c" 1>&6
2194
echo "configure:2195: checking processor multiplier" >&5
2195
# Check whether --with-proc-multiply or --without-proc-multiply was given.
2196
if test "${with_proc_multiply+set}" = set; then
2197
withval="$with_proc_multiply"
2198
if test "$withval" = "yes"; then
2199
PROC_MULTIPLY=$default_PROC_MULTIPLY
2200
elif test ! "$withval" = "no";then
2201
PROC_MULTIPLY=$withval
2204
PROC_MULTIPLY=$default_PROC_MULTIPLY
2208
echo "$ac_t""$PROC_MULTIPLY" 1>&6
2213
echo $ac_n "checking number of processes to run during make""... $ac_c" 1>&6
2214
echo "configure:2215: checking number of processes to run during make" >&5
2215
# Check whether --with-procs or --without-procs was given.
2216
if test "${with_procs+set}" = set; then
2217
withval="$with_procs"
2218
if test "$withval" = "yes"; then
2219
NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
2220
elif test ! "$withval" = "no";then
2224
NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`
2228
echo "$ac_t""$NUM_PROCS" 1>&6
2231
echo $ac_n "checking glibc version""... $ac_c" 1>&6
2232
echo "configure:2233: checking glibc version" >&5
2234
cat <<_GLIBC_>$dummy.c
2235
#include <features.h>
2238
int main(int argc, char **argv) { printf("libc6.%d",__GLIBC_MINOR__); exit(0); }
2240
${CC-cc} $dummy.c -o $dummy > /dev/null 2>&1
2241
if test "$?" = 0; then
2242
GLIBC_VER=`./$dummy`
2243
echo "$ac_t""$GLIBC_VER" 1>&6
2244
GLIBC_VER="-$GLIBC_VER"
2246
echo "configure: warning: cannot determine GNU C library minor version number" 1>&2
2248
rm -f $dummy $dummy.c
2251
echo $ac_n "checking libstdc++ version""... $ac_c" 1>&6
2252
echo "configure:2253: checking libstdc++ version" >&5
2254
cat <<_LIBSTDCPP_>$dummy.cc
2255
#include <features.h>
2258
int main(int argc, char **argv) { exit(0); }
2260
${CXX-c++} $dummy.cc -o $dummy > /dev/null 2>&1
2262
if test "$?" = 0; then
2263
soname=`objdump -p ./$dummy |grep NEEDED|grep libstd`
2264
LIBSTDCPP_VER=`echo $soname | sed -e 's/.*NEEDED.*libstdc++\(-libc.*\(-.*\)\)\?.so.\(.*\)/\3\2/'`
2266
rm -f $dummy $dummy.cc
2268
if test -z "$LIBSTDCPP_VER"; then
2269
echo "configure: warning: cannot determine standard C++ library version number" 1>&2
2271
echo "$ac_t""$LIBSTDCPP_VER" 1>&6
2272
LIBSTDCPP_VER="-$LIBSTDCPP_VER"
2277
echo $ac_n "checking if $CXX -MD works""... $ac_c" 1>&6
2278
echo "configure:2279: checking if $CXX -MD works" >&5
2280
${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc
2281
rm -f gcc3dep.cc gcc3dep_test.o
2282
if test -e gcc3dep.d; then
2286
elif test -e gcc3dep_test.d; then
2287
rm -f gcc3dep_test.d
2291
{ echo "configure: error: no" 1>&2; exit 1; }
2293
echo "$ac_t""yes, for $GCC_MD" 1>&6
2298
cat > confcache <<\EOF
2299
# This file is a shell script that caches the results of configure
2300
# tests run on this system so they can be shared between configure
2301
# scripts and configure runs. It is not useful on other systems.
2302
# If it contains results you don't want to keep, you may remove or edit it.
2304
# By default, configure uses ./config.cache as the cache file,
2305
# creating it if it does not exist already. You can give configure
2306
# the --cache-file=FILE option to use a different cache file; that is
2307
# what configure does when it calls configure scripts in
2308
# subdirectories, so they share the cache.
2309
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2310
# config.status only pays attention to the cache file if you give it the
2311
# --recheck option to rerun configure.
2314
# The following way of writing the cache mishandles newlines in values,
2315
# but we know of no workaround that is simple, portable, and efficient.
2316
# So, don't put newlines in cache variables' values.
2317
# Ultrix sh set writes to stderr and can't be redirected directly,
2318
# and sets the high bit in the cache file unless we assign to the vars.
2320
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2322
# `set' does not quote correctly, so add quotes (double-quote substitution
2323
# turns \\\\ into \\, and sed turns \\ into \).
2325
-e "s/'/'\\\\''/g" \
2326
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2329
# `set' quotes correctly as required by POSIX, so do not add quotes.
2330
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2333
if cmp -s $cache_file confcache; then
2336
if test -w $cache_file; then
2337
echo "updating cache $cache_file"
2338
cat confcache > $cache_file
2340
echo "not updating unwritable cache $cache_file"
2345
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2347
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2348
# Let make expand exec_prefix.
2349
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2351
# Any assignment to VPATH causes Sun make to only execute
2352
# the first set of double-colon rules, so remove it if not needed.
2353
# If there is a colon in the path, we need to keep it.
2354
if test "x$srcdir" = x.; then
2355
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2358
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2360
DEFS=-DHAVE_CONFIG_H
2362
# Without the "./", some shells look in PATH for config.status.
2363
: ${CONFIG_STATUS=./config.status}
2365
echo creating $CONFIG_STATUS
2366
rm -f $CONFIG_STATUS
2367
cat > $CONFIG_STATUS <<EOF
2369
# Generated automatically by configure.
2370
# Run this file to recreate the current configuration.
2371
# This directory was configured as follows,
2372
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2374
# $0 $ac_configure_args
2376
# Compiler output produced by configure, useful for debugging
2377
# configure, is in ./config.log if it exists.
2379
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2382
case "\$ac_option" in
2383
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2384
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2385
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2386
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2387
echo "$CONFIG_STATUS generated by autoconf version 2.13"
2389
-help | --help | --hel | --he | --h)
2390
echo "\$ac_cs_usage"; exit 0 ;;
2391
*) echo "\$ac_cs_usage"; exit 1 ;;
2395
ac_given_srcdir=$srcdir
2397
trap 'rm -fr `echo "environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2399
cat >> $CONFIG_STATUS <<EOF
2401
# Protect against being on the right side of a sed subst in config.status.
2402
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2403
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2407
s%@CFLAGS@%$CFLAGS%g
2408
s%@CPPFLAGS@%$CPPFLAGS%g
2409
s%@CXXFLAGS@%$CXXFLAGS%g
2410
s%@FFLAGS@%$FFLAGS%g
2412
s%@LDFLAGS@%$LDFLAGS%g
2414
s%@exec_prefix@%$exec_prefix%g
2415
s%@prefix@%$prefix%g
2416
s%@program_transform_name@%$program_transform_name%g
2417
s%@bindir@%$bindir%g
2418
s%@sbindir@%$sbindir%g
2419
s%@libexecdir@%$libexecdir%g
2420
s%@datadir@%$datadir%g
2421
s%@sysconfdir@%$sysconfdir%g
2422
s%@sharedstatedir@%$sharedstatedir%g
2423
s%@localstatedir@%$localstatedir%g
2424
s%@libdir@%$libdir%g
2425
s%@includedir@%$includedir%g
2426
s%@oldincludedir@%$oldincludedir%g
2427
s%@infodir@%$infodir%g
2428
s%@mandir@%$mandir%g
2430
s%@host_alias@%$host_alias%g
2431
s%@host_cpu@%$host_cpu%g
2432
s%@host_vendor@%$host_vendor%g
2433
s%@host_os@%$host_os%g
2434
s%@target@%$target%g
2435
s%@target_alias@%$target_alias%g
2436
s%@target_cpu@%$target_cpu%g
2437
s%@target_vendor@%$target_vendor%g
2438
s%@target_os@%$target_os%g
2440
s%@build_alias@%$build_alias%g
2441
s%@build_cpu@%$build_cpu%g
2442
s%@build_vendor@%$build_vendor%g
2443
s%@build_os@%$build_os%g
2447
s%@RANLIB@%$RANLIB%g
2449
s%@SOCKETLIBS@%$SOCKETLIBS%g
2450
s%@PTHREADLIB@%$PTHREADLIB%g
2451
s%@DB2LIB@%$DB2LIB%g
2452
s%@HAVE_STATVFS@%$HAVE_STATVFS%g
2453
s%@HAVE_C9X@%$HAVE_C9X%g
2454
s%@NEED_SOCKLEN_T_DEFINE@%$NEED_SOCKLEN_T_DEFINE%g
2455
s%@DEBIANDOC_HTML@%$DEBIANDOC_HTML%g
2456
s%@DEBIANDOC_TEXT@%$DEBIANDOC_TEXT%g
2457
s%@NSGMLS@%$NSGMLS%g
2458
s%@SGMLSPL@%$SGMLSPL%g
2459
s%@GETCONF@%$GETCONF%g
2460
s%@NUM_CPUS@%$NUM_CPUS%g
2461
s%@PROC_MULTIPLY@%$PROC_MULTIPLY%g
2462
s%@NUM_PROCS@%$NUM_PROCS%g
2463
s%@GLIBC_VER@%$GLIBC_VER%g
2464
s%@LIBSTDCPP_VER@%$LIBSTDCPP_VER%g
2465
s%@GCC3DEP@%$GCC3DEP%g
2470
cat >> $CONFIG_STATUS <<\EOF
2472
# Split the substitutions into bite-sized pieces for seds with
2473
# small command number limits, like on Digital OSF/1 and HP-UX.
2474
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2475
ac_file=1 # Number of current file.
2476
ac_beg=1 # First line for current file.
2477
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2480
while $ac_more_lines; do
2481
if test $ac_beg -gt 1; then
2482
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2484
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2486
if test ! -s conftest.s$ac_file; then
2488
rm -f conftest.s$ac_file
2490
if test -z "$ac_sed_cmds"; then
2491
ac_sed_cmds="sed -f conftest.s$ac_file"
2493
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2495
ac_file=`expr $ac_file + 1`
2497
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2500
if test -z "$ac_sed_cmds"; then
2505
cat >> $CONFIG_STATUS <<EOF
2507
CONFIG_FILES=\${CONFIG_FILES-"environment.mak:buildlib/environment.mak.in makefile:buildlib/makefile.in"}
2509
cat >> $CONFIG_STATUS <<\EOF
2510
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2511
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2513
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2514
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2515
*) ac_file_in="${ac_file}.in" ;;
2518
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2520
# Remove last slash and all that follows it. Not all systems have dirname.
2521
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2522
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2523
# The file is in a subdirectory.
2524
test ! -d "$ac_dir" && mkdir "$ac_dir"
2525
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2526
# A "../" for each directory in $ac_dir_suffix.
2527
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2529
ac_dir_suffix= ac_dots=
2532
case "$ac_given_srcdir" in
2534
if test -z "$ac_dots"; then top_srcdir=.
2535
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2536
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2538
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2539
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2543
echo creating "$ac_file"
2545
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2547
*Makefile*) ac_comsub="1i\\
2548
# $configure_input" ;;
2552
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2554
s%@configure_input@%$configure_input%g
2555
s%@srcdir@%$srcdir%g
2556
s%@top_srcdir@%$top_srcdir%g
2557
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2561
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2562
# NAME is the cpp macro being defined and VALUE is the value it is being given.
2564
# ac_d sets the value in "#define NAME VALUE" lines.
2565
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2566
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2569
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2570
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2571
ac_uB='\([ ]\)%\1#\2define\3'
2574
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2575
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2576
ac_eB='$%\1#\2define\3'
2580
if test "${CONFIG_HEADERS+set}" != set; then
2582
cat >> $CONFIG_STATUS <<EOF
2583
CONFIG_HEADERS="include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in"
2585
cat >> $CONFIG_STATUS <<\EOF
2587
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2588
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2590
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2591
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2592
*) ac_file_in="${ac_file}.in" ;;
2595
echo creating $ac_file
2597
rm -f conftest.frag conftest.in conftest.out
2598
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2599
cat $ac_file_inputs > conftest.in
2603
# Transform confdefs.h into a sed script conftest.vals that substitutes
2604
# the proper values into config.h.in to produce config.h. And first:
2605
# Protect against being on the right side of a sed subst in config.status.
2606
# Protect against being in an unquoted here document in config.status.
2608
cat > conftest.hdr <<\EOF
2611
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2615
sed -n -f conftest.hdr confdefs.h > conftest.vals
2618
# This sed command replaces #undef with comments. This is necessary, for
2619
# example, in the case of _POSIX_SOURCE, which is predefined and required
2620
# on some systems where configure will not decide to define it.
2621
cat >> conftest.vals <<\EOF
2622
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2625
# Break up conftest.vals because some shells have a limit on
2626
# the size of here documents, and old seds have small limits too.
2631
ac_lines=`grep -c . conftest.vals`
2632
# grep -c gives empty output for an empty file on some AIX systems.
2633
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2634
# Write a limited-size here document to conftest.frag.
2635
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2636
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2638
sed -f conftest.frag conftest.in > conftest.out
2640
mv conftest.out conftest.in
2642
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2644
mv conftest.tail conftest.vals
2648
cat >> $CONFIG_STATUS <<\EOF
2649
rm -f conftest.frag conftest.h
2650
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2651
cat conftest.in >> conftest.h
2653
if cmp -s $ac_file conftest.h 2>/dev/null; then
2654
echo "$ac_file is unchanged"
2657
# Remove last slash and all that follows it. Not all systems have dirname.
2658
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2659
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2660
# The file is in a subdirectory.
2661
test ! -d "$ac_dir" && mkdir "$ac_dir"
2664
mv conftest.h $ac_file
2669
cat >> $CONFIG_STATUS <<EOF
2672
cat >> $CONFIG_STATUS <<\EOF
2676
chmod +x $CONFIG_STATUS
2677
rm -fr confdefs* $ac_clean_files
2678
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1