380
1091
ac_prev=x_includes ;;
381
1092
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382
1093
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383
x_includes="$ac_optarg" ;;
1094
x_includes=$ac_optarg ;;
385
1096
-x-libraries | --x-libraries | --x-librarie | --x-librari \
386
1097
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387
1098
ac_prev=x_libraries ;;
388
1099
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389
1100
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390
x_libraries="$ac_optarg" ;;
1101
x_libraries=$ac_optarg ;;
392
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1103
-*) { echo "$as_me: error: unrecognized option: $ac_option
1104
Try \`$0 --help' for more information." >&2
1105
{ (exit 1); exit 1; }; }
1109
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110
# Reject names that are not valid shell variable names.
1111
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113
{ (exit 1); exit 1; }; }
1114
eval $ac_envvar=\$ac_optarg
1115
export $ac_envvar ;;
396
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397
echo "configure: warning: $ac_option: invalid host type" 1>&2
399
if test "x$nonopt" != xNONE; then
400
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1118
# FIXME: should be removed in autoconf 3.0.
1119
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
408
1128
if test -n "$ac_prev"; then
409
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414
# File descriptor usage:
417
# 2 errors and warnings
418
# 3 some systems may open it to /dev/tty
419
# 4 used on the Kubota Titan
420
# 6 checking for... messages and results
421
# 5 compiler messages saved in config.log
422
if test "$silent" = yes; then
430
This file contains any messages produced by compilers while
431
running configure, to aid debugging if configure makes a mistake.
434
# Strip out --no-create and --no-recursion so they do not pile up.
435
# Also quote any args containing shell metacharacters.
1129
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130
{ echo "$as_me: error: missing argument to $ac_option" >&2
1131
{ (exit 1); exit 1; }; }
1134
# Be sure to have absolute directory names.
1135
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136
datadir sysconfdir sharedstatedir localstatedir includedir \
1137
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138
libdir localedir mandir
440
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
441
| --no-cr | --no-c) ;;
442
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
443
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
1140
eval ac_val=\$$ac_var
1142
[\\/$]* | ?:[\\/]* ) continue;;
1143
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146
{ (exit 1); exit 1; }; }
451
# Only set these to C if already set. These must not be set unconditionally
452
# because not all systems understand e.g. LANG=C (notably SCO).
453
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454
# Non-C LC_CTYPE values break the ctype check.
455
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460
# confdefs.h avoids OS command line length limits that DEFS can exceed.
461
rm -rf conftest* confdefs.h
462
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
465
# A filename unique to this package, relative to the directory that
466
# configure is in, which we can look for to find out if srcdir is correct.
467
ac_unique_file=.root-dir
1149
# There might be people who depend on the old broken behavior: `$host'
1150
# used to hold the argument of --host etc.
1151
# FIXME: To remove some day.
1154
target=$target_alias
1156
# FIXME: To remove some day.
1157
if test "x$host_alias" != x; then
1158
if test "x$build_alias" = x; then
1159
cross_compiling=maybe
1160
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161
If a cross compiler is detected then cross compile mode will be used." >&2
1162
elif test "x$build_alias" != "x$host_alias"; then
1168
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
test "$silent" = yes && exec 6>/dev/null
1173
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174
ac_ls_di=`ls -di .` &&
1175
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176
{ echo "$as_me: error: Working directory cannot be determined" >&2
1177
{ (exit 1); exit 1; }; }
1178
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1180
{ (exit 1); exit 1; }; }
469
1183
# Find the source files, if location was not specified.
470
1184
if test -z "$srcdir"; then
471
1185
ac_srcdir_defaulted=yes
472
# Try the directory containing this script, then its parent.
474
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1186
# Try the directory containing this script, then the parent directory.
1187
ac_confdir=`$as_dirname -- "$0" ||
1188
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189
X"$0" : 'X\(//\)[^/]' \| \
1190
X"$0" : 'X\(//\)$' \| \
1191
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
476
1210
srcdir=$ac_confdir
477
if test ! -r $srcdir/$ac_unique_file; then
1211
if test ! -r "$srcdir/$ac_unique_file"; then
481
1215
ac_srcdir_defaulted=no
483
if test ! -r $srcdir/$ac_unique_file; then
484
if test "$ac_srcdir_defaulted" = yes; then
485
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1217
if test ! -r "$srcdir/$ac_unique_file"; then
1218
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220
{ (exit 1); exit 1; }; }
1222
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225
{ (exit 1); exit 1; }; }
1227
# When building in place, set srcdir=.
1228
if test "$ac_abs_confdir" = "$ac_pwd"; then
1231
# Remove unnecessary trailing slashes from srcdir.
1232
# Double slashes in file names in object file debugging info
1233
# mess up M-x gdb in Emacs.
1235
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237
for ac_var in $ac_precious_vars; do
1238
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239
eval ac_env_${ac_var}_value=\$${ac_var}
1240
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245
# Report the --help message.
1247
if test "$ac_init_help" = "long"; then
1248
# Omit some internal or obsolete options to make the list less imposing.
1249
# This message is too long to be a string in the A/UX 3.1 sh.
1251
\`configure' configures this package to adapt to many kinds of systems.
1253
Usage: $0 [OPTION]... [VAR=VALUE]...
1255
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256
VAR=VALUE. See below for descriptions of some of the useful variables.
1258
Defaults for the options are specified in brackets.
1261
-h, --help display this help and exit
1262
--help=short display options specific to this package
1263
--help=recursive display the short help of all the included packages
1264
-V, --version display version information and exit
1265
-q, --quiet, --silent do not print \`checking...' messages
1266
--cache-file=FILE cache test results in FILE [disabled]
1267
-C, --config-cache alias for \`--cache-file=config.cache'
1268
-n, --no-create do not create output files
1269
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1271
Installation directories:
1272
--prefix=PREFIX install architecture-independent files in PREFIX
1273
[$ac_default_prefix]
1274
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277
By default, \`make install' will install all the files in
1278
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280
for instance \`--prefix=\$HOME'.
1282
For better control, use the options below.
1284
Fine tuning of the installation directories:
1285
--bindir=DIR user executables [EPREFIX/bin]
1286
--sbindir=DIR system admin executables [EPREFIX/sbin]
1287
--libexecdir=DIR program executables [EPREFIX/libexec]
1288
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291
--libdir=DIR object code libraries [EPREFIX/lib]
1292
--includedir=DIR C header files [PREFIX/include]
1293
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1294
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296
--infodir=DIR info documentation [DATAROOTDIR/info]
1297
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298
--mandir=DIR man documentation [DATAROOTDIR/man]
1299
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1300
--htmldir=DIR html documentation [DOCDIR]
1301
--dvidir=DIR dvi documentation [DOCDIR]
1302
--pdfdir=DIR pdf documentation [DOCDIR]
1303
--psdir=DIR ps documentation [DOCDIR]
1309
--x-includes=DIR X include files are in DIR
1310
--x-libraries=DIR X library files are in DIR
1313
--build=BUILD configure for building on BUILD [guessed]
1314
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1318
if test -n "$ac_init_help"; then
1323
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1324
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1325
--enable-release set the compiler flags to -O6
1326
--enable-debug set the compiler flags to -g
1327
--enable-install=user for debugging, install as non-root user
1328
--enable-syslog log messages via syslog()
1329
--enable-tcpwrappers use the libwrap.a library
1330
--disable-largefile omit support for large files
1333
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1334
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335
--with-x use the X Window System
1337
Some influential environment variables:
1338
CC C compiler command
1339
CFLAGS C compiler flags
1340
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1341
nonstandard directory <lib dir>
1342
LIBS libraries to pass to the linker, e.g. -l<library>
1343
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1344
you have headers in a nonstandard directory <include dir>
1345
PKG_CONFIG path to pkg-config utility
1346
GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1347
GLIB_LIBS linker flags for GLIB, overriding pkg-config
1349
XMKMF Path to xmkmf, Makefile generator for X Window System
1351
Use these variables to override the choices made by `configure' or to help
1352
it to find libraries and programs with nonstandard names/locations.
1358
if test "$ac_init_help" = "recursive"; then
1359
# If there are subdirs, report their specific --help.
1360
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1361
test -d "$ac_dir" || continue
1365
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1368
# A ".." for each directory in $ac_dir_suffix.
1369
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1370
case $ac_top_builddir_sub in
1371
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375
ac_abs_top_builddir=$ac_pwd
1376
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377
# for backward compatibility:
1378
ac_top_builddir=$ac_top_build_prefix
1381
.) # We are building in place.
1383
ac_top_srcdir=$ac_top_builddir_sub
1384
ac_abs_top_srcdir=$ac_pwd ;;
1385
[\\/]* | ?:[\\/]* ) # Absolute name.
1386
ac_srcdir=$srcdir$ac_dir_suffix;
1387
ac_top_srcdir=$srcdir
1388
ac_abs_top_srcdir=$srcdir ;;
1390
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391
ac_top_srcdir=$ac_top_build_prefix$srcdir
1392
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396
cd "$ac_dir" || { ac_status=$?; continue; }
1397
# Check for guested configure.
1398
if test -f "$ac_srcdir/configure.gnu"; then
1400
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401
elif test -f "$ac_srcdir/configure"; then
1403
$SHELL "$ac_srcdir/configure" --help=recursive
1405
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407
cd "$ac_pwd" || { ac_status=$?; break; }
1411
test -n "$ac_init_help" && exit $ac_status
1412
if $ac_init_version; then
1415
generated by GNU Autoconf 2.61
1417
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1418
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1419
This configure script is free software; the Free Software Foundation
1420
gives unlimited permission to copy, distribute and modify it.
1424
cat >config.log <<_ACEOF
1425
This file contains any messages produced by compilers while
1426
running configure, to aid debugging if configure makes a mistake.
1428
It was created by $as_me, which was
1429
generated by GNU Autoconf 2.61. Invocation command line was
1441
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1442
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1443
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1444
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1445
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1447
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1448
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1450
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1451
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1452
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1453
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1454
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1455
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1456
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464
test -z "$as_dir" && as_dir=.
1465
echo "PATH: $as_dir"
1481
# Keep a trace of the command line.
1482
# Strip out --no-create and --no-recursion so they do not pile up.
1483
# Strip out --silent because we don't want to record it for future runs.
1484
# Also quote any args containing shell meta-characters.
1485
# Make two passes to allow for proper duplicate-argument suppression.
1489
ac_must_keep_next=false
1495
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1496
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1497
| -silent | --silent | --silen | --sile | --sil)
1500
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1503
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1505
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1506
if test $ac_must_keep_next = true; then
1507
ac_must_keep_next=false # Got value, back to normal.
1510
*=* | --config-cache | -C | -disable-* | --disable-* \
1511
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1512
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1513
| -with-* | --with-* | -without-* | --without-* | --x)
1514
case "$ac_configure_args0 " in
1515
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1518
-* ) ac_must_keep_next=true ;;
1521
ac_configure_args="$ac_configure_args '$ac_arg'"
1526
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1527
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1529
# When interrupted or exit'd, cleanup temporary files, and complete
1530
# config.log. We remove comments because anyway the quotes in there
1531
# would cause problems or look ugly.
1532
# WARNING: Use '\'' to represent an apostrophe within the trap.
1533
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1534
trap 'exit_status=$?
1535
# Save into config.log some information that might help in debugging.
1540
## ---------------- ##
1541
## Cache variables. ##
1542
## ---------------- ##
1545
# The following way of writing the cache mishandles newlines in values,
1547
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1548
eval ac_val=\$$ac_var
1552
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1553
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1556
_ | IFS | as_nl) ;; #(
1557
*) $as_unset $ac_var ;;
1562
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1563
*${as_nl}ac_space=\ *)
1565
"s/'\''/'\''\\\\'\'''\''/g;
1566
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1569
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1577
## ----------------- ##
1578
## Output variables. ##
1579
## ----------------- ##
1582
for ac_var in $ac_subst_vars
1584
eval ac_val=\$$ac_var
1586
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588
echo "$ac_var='\''$ac_val'\''"
1592
if test -n "$ac_subst_files"; then
1594
## ------------------- ##
1595
## File substitutions. ##
1596
## ------------------- ##
1599
for ac_var in $ac_subst_files
1601
eval ac_val=\$$ac_var
1603
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605
echo "$ac_var='\''$ac_val'\''"
1610
if test -s confdefs.h; then
1620
test "$ac_signal" != 0 &&
1621
echo "$as_me: caught signal $ac_signal"
1622
echo "$as_me: exit $exit_status"
1624
rm -f core *.core core.conftest.* &&
1625
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1628
for ac_signal in 1 2 13 15; do
1629
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1633
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1634
rm -f -r conftest* confdefs.h
1636
# Predefined preprocessor variables.
1638
cat >>confdefs.h <<_ACEOF
1639
#define PACKAGE_NAME "$PACKAGE_NAME"
1643
cat >>confdefs.h <<_ACEOF
1644
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1648
cat >>confdefs.h <<_ACEOF
1649
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1653
cat >>confdefs.h <<_ACEOF
1654
#define PACKAGE_STRING "$PACKAGE_STRING"
1658
cat >>confdefs.h <<_ACEOF
1659
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1663
# Let the site file select an alternate cache file if it wants to.
492
1664
# Prefer explicitly selected file to automatically selected ones.
493
if test -z "$CONFIG_SITE"; then
494
if test "x$prefix" != xNONE; then
495
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1665
if test -n "$CONFIG_SITE"; then
1666
set x "$CONFIG_SITE"
1667
elif test "x$prefix" != xNONE; then
1668
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1670
set x "$ac_default_prefix/share/config.site" \
1671
"$ac_default_prefix/etc/config.site"
500
for ac_site_file in $CONFIG_SITE; do
501
1676
if test -r "$ac_site_file"; then
502
echo "loading site script $ac_site_file"
1677
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1678
echo "$as_me: loading site script $ac_site_file" >&6;}
1679
sed 's/^/| /' "$ac_site_file" >&5
503
1680
. "$ac_site_file"
507
1684
if test -r "$cache_file"; then
508
echo "loading cache $cache_file"
1685
# Some versions of bash will fail to source /dev/null (special
1686
# files actually), so we avoid doing that.
1687
if test -f "$cache_file"; then
1688
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1689
echo "$as_me: loading cache $cache_file" >&6;}
1691
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1692
*) . "./$cache_file";;
511
echo "creating cache $cache_file"
1696
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1697
echo "$as_me: creating cache $cache_file" >&6;}
1701
# Check that the precious variables saved in the cache have kept the same
1703
ac_cache_corrupted=false
1704
for ac_var in $ac_precious_vars; do
1705
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1706
eval ac_new_set=\$ac_env_${ac_var}_set
1707
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1708
eval ac_new_val=\$ac_env_${ac_var}_value
1709
case $ac_old_set,$ac_new_set in
1711
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1712
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1713
ac_cache_corrupted=: ;;
1715
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1716
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1717
ac_cache_corrupted=: ;;
1720
if test "x$ac_old_val" != "x$ac_new_val"; then
1721
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1722
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1723
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1724
echo "$as_me: former value: $ac_old_val" >&2;}
1725
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1726
echo "$as_me: current value: $ac_new_val" >&2;}
1727
ac_cache_corrupted=:
1730
# Pass precious variables to config.status.
1731
if test "$ac_new_set" = set; then
1733
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1734
*) ac_arg=$ac_var=$ac_new_val ;;
1736
case " $ac_configure_args " in
1737
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1738
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1742
if $ac_cache_corrupted; then
1743
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1744
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1745
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1746
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1747
{ (exit 1); exit 1; }; }
516
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517
1767
ac_cpp='$CPP $CPPFLAGS'
518
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520
cross_compiling=$ac_cv_prog_cc_cross
524
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533
ac_n= ac_c='\c' ac_t=
537
# From configure.in Revision: 1008
538
NEED_OPENVASLIBS_VERSION=1.0.2
539
NEED_OPENVASLIBNASL_VERSION=1.0.1
1768
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1775
NEED_OPENVASLIBS_VERSION=2.0.0
1776
NEED_OPENVASLIBNASL_VERSION=2.0.0
541
1778
save_IFS="${IFS}"
544
1781
IFS="${save_IFS}"
545
1782
OPENVASD_DATE=\"`date '+%b %d, %Y'`\"
546
1783
expr 0 + $OPENVASD_MAJOR + $OPENVASD_MINOR + $OPENVASD_PATCH + 0 >/dev/null ||
547
{ echo "configure: error: *** Panic: Corrupt version file" 1>&2; exit 1; }
1784
{ { echo "$as_me:$LINENO: error: *** Panic: Corrupt version file" >&5
1785
echo "$as_me: error: *** Panic: Corrupt version file" >&2;}
1786
{ (exit 1); exit 1; }; }
548
1787
version=$OPENVASD_MAJOR.$OPENVASD_MINOR.$OPENVASD_PATCH
550
1789
test "x$prefix" != "xNONE" || prefix=/usr/local
1792
ac_config_headers="$ac_config_headers include/config.h"
556
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
557
if test -f $ac_dir/install-sh; then
1796
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1797
if test -f "$ac_dir/install-sh"; then
558
1798
ac_aux_dir=$ac_dir
559
1799
ac_install_sh="$ac_aux_dir/install-sh -c"
561
elif test -f $ac_dir/install.sh; then
1801
elif test -f "$ac_dir/install.sh"; then
562
1802
ac_aux_dir=$ac_dir
563
1803
ac_install_sh="$ac_aux_dir/install.sh -c"
1805
elif test -f "$ac_dir/shtool"; then
1807
ac_install_sh="$ac_aux_dir/shtool install -c"
567
1811
if test -z "$ac_aux_dir"; then
568
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1812
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1813
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1814
{ (exit 1); exit 1; }; }
570
ac_config_guess=$ac_aux_dir/config.guess
571
ac_config_sub=$ac_aux_dir/config.sub
572
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1817
# These three variables are undocumented and unsupported,
1818
# and are intended to be withdrawn in a future Autoconf release.
1819
# They can cause serious problems if a builder's source tree is in a directory
1820
# whose full name contains unusual characters.
1821
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1822
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1823
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
575
1826
# Make sure we can run config.sub.
576
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
577
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580
echo $ac_n "checking host system type""... $ac_c" 1>&6
581
echo "configure:582: checking host system type" >&5
584
case "$host_alias" in
588
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
589
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
591
*) host_alias=$nonopt ;;
595
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
596
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
597
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
598
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
599
echo "$ac_t""$host" 1>&6
602
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
603
ac_cpp='$CPP $CPPFLAGS'
604
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
605
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
606
cross_compiling=$ac_cv_prog_cc_cross
609
# Extract the first word of "gcc", so it can be a program name with args.
1827
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1828
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1829
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1830
{ (exit 1); exit 1; }; }
1832
{ echo "$as_me:$LINENO: checking build system type" >&5
1833
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1834
if test "${ac_cv_build+set}" = set; then
1835
echo $ECHO_N "(cached) $ECHO_C" >&6
1837
ac_build_alias=$build_alias
1838
test "x$ac_build_alias" = x &&
1839
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1840
test "x$ac_build_alias" = x &&
1841
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1842
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1843
{ (exit 1); exit 1; }; }
1844
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1845
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1846
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1847
{ (exit 1); exit 1; }; }
1850
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1851
echo "${ECHO_T}$ac_cv_build" >&6; }
1852
case $ac_cv_build in
1854
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1855
echo "$as_me: error: invalid value of canonical build" >&2;}
1856
{ (exit 1); exit 1; }; };;
1859
ac_save_IFS=$IFS; IFS='-'
1865
# Remember, the first character of IFS is used to create $*,
1866
# except with old shells:
1869
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1872
{ echo "$as_me:$LINENO: checking host system type" >&5
1873
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1874
if test "${ac_cv_host+set}" = set; then
1875
echo $ECHO_N "(cached) $ECHO_C" >&6
1877
if test "x$host_alias" = x; then
1878
ac_cv_host=$ac_cv_build
1880
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1881
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1882
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1883
{ (exit 1); exit 1; }; }
1887
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1888
echo "${ECHO_T}$ac_cv_host" >&6; }
1891
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1892
echo "$as_me: error: invalid value of canonical host" >&2;}
1893
{ (exit 1); exit 1; }; };;
1896
ac_save_IFS=$IFS; IFS='-'
1902
# Remember, the first character of IFS is used to create $*,
1903
# except with old shells:
1906
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1910
ac_cpp='$CPP $CPPFLAGS'
1911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917
ac_cpp='$CPP $CPPFLAGS'
1918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
if test -n "$ac_tool_prefix"; then
1922
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1923
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1924
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1926
if test "${ac_cv_prog_CC+set}" = set; then
1927
echo $ECHO_N "(cached) $ECHO_C" >&6
1929
if test -n "$CC"; then
1930
ac_cv_prog_CC="$CC" # Let the user override the test.
1932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936
test -z "$as_dir" && as_dir=.
1937
for ac_exec_ext in '' $ac_executable_extensions; do
1938
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1939
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1940
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950
if test -n "$CC"; then
1951
{ echo "$as_me:$LINENO: result: $CC" >&5
1952
echo "${ECHO_T}$CC" >&6; }
1954
{ echo "$as_me:$LINENO: result: no" >&5
1955
echo "${ECHO_T}no" >&6; }
1960
if test -z "$ac_cv_prog_CC"; then
1962
# Extract the first word of "gcc", so it can be a program name with args.
610
1963
set dummy gcc; ac_word=$2
611
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
612
echo "configure:613: checking for $ac_word" >&5
613
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
614
echo $ac_n "(cached) $ac_c" 1>&6
1964
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967
echo $ECHO_N "(cached) $ECHO_C" >&6
1969
if test -n "$ac_ct_CC"; then
1970
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976
test -z "$as_dir" && as_dir=.
1977
for ac_exec_ext in '' $ac_executable_extensions; do
1978
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979
ac_cv_prog_ac_ct_CC="gcc"
1980
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1990
if test -n "$ac_ct_CC"; then
1991
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1992
echo "${ECHO_T}$ac_ct_CC" >&6; }
1994
{ echo "$as_me:$LINENO: result: no" >&5
1995
echo "${ECHO_T}no" >&6; }
1998
if test "x$ac_ct_CC" = x; then
2001
case $cross_compiling:$ac_tool_warned in
2003
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2004
whose name does not start with the host triplet. If you think this
2005
configuration is useful to you, please write to autoconf@gnu.org." >&5
2006
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2007
whose name does not start with the host triplet. If you think this
2008
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2009
ac_tool_warned=yes ;;
2017
if test -z "$CC"; then
2018
if test -n "$ac_tool_prefix"; then
2019
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2020
set dummy ${ac_tool_prefix}cc; ac_word=$2
2021
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2023
if test "${ac_cv_prog_CC+set}" = set; then
2024
echo $ECHO_N "(cached) $ECHO_C" >&6
616
2026
if test -n "$CC"; then
617
2027
ac_cv_prog_CC="$CC" # Let the user override the test.
619
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
621
for ac_dir in $ac_dummy; do
622
test -z "$ac_dir" && ac_dir=.
623
if test -f $ac_dir/$ac_word; then
2029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033
test -z "$as_dir" && as_dir=.
2034
for ac_exec_ext in '' $ac_executable_extensions; do
2035
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2036
ac_cv_prog_CC="${ac_tool_prefix}cc"
2037
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
632
2047
if test -n "$CC"; then
633
echo "$ac_t""$CC" 1>&6
2048
{ echo "$as_me:$LINENO: result: $CC" >&5
2049
echo "${ECHO_T}$CC" >&6; }
635
echo "$ac_t""no" 1>&6
2051
{ echo "$as_me:$LINENO: result: no" >&5
2052
echo "${ECHO_T}no" >&6; }
638
2058
if test -z "$CC"; then
639
2059
# Extract the first word of "cc", so it can be a program name with args.
640
2060
set dummy cc; ac_word=$2
641
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
642
echo "configure:643: checking for $ac_word" >&5
643
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
644
echo $ac_n "(cached) $ac_c" 1>&6
2061
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2063
if test "${ac_cv_prog_CC+set}" = set; then
2064
echo $ECHO_N "(cached) $ECHO_C" >&6
646
2066
if test -n "$CC"; then
647
2067
ac_cv_prog_CC="$CC" # Let the user override the test.
649
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
650
2069
ac_prog_rejected=no
652
for ac_dir in $ac_dummy; do
653
test -z "$ac_dir" && ac_dir=.
654
if test -f $ac_dir/$ac_word; then
655
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074
test -z "$as_dir" && as_dir=.
2075
for ac_exec_ext in '' $ac_executable_extensions; do
2076
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2077
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2078
ac_prog_rejected=yes
2082
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
664
2089
if test $ac_prog_rejected = yes; then
665
2090
# We found a bogon in the path, so make sure we never use it.
666
2091
set dummy $ac_cv_prog_CC
668
if test $# -gt 0; then
2093
if test $# != 0; then
669
2094
# We chose a different compiler from the bogus one.
670
2095
# However, it has the same basename, so the bogon will be chosen
671
2096
# first if we set CC to just the basename; use the full file name.
673
set dummy "$ac_dir/$ac_word" "$@"
2098
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
681
2104
if test -n "$CC"; then
682
echo "$ac_t""$CC" 1>&6
2105
{ echo "$as_me:$LINENO: result: $CC" >&5
2106
echo "${ECHO_T}$CC" >&6; }
684
echo "$ac_t""no" 1>&6
687
if test -z "$CC"; then
690
# Extract the first word of "cl", so it can be a program name with args.
691
set dummy cl; ac_word=$2
692
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693
echo "configure:694: checking for $ac_word" >&5
694
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
695
echo $ac_n "(cached) $ac_c" 1>&6
2108
{ echo "$as_me:$LINENO: result: no" >&5
2109
echo "${ECHO_T}no" >&6; }
2114
if test -z "$CC"; then
2115
if test -n "$ac_tool_prefix"; then
2116
for ac_prog in cl.exe
2118
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2119
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2120
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2122
if test "${ac_cv_prog_CC+set}" = set; then
2123
echo $ECHO_N "(cached) $ECHO_C" >&6
697
2125
if test -n "$CC"; then
698
2126
ac_cv_prog_CC="$CC" # Let the user override the test.
700
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
702
for ac_dir in $ac_dummy; do
703
test -z "$ac_dir" && ac_dir=.
704
if test -f $ac_dir/$ac_word; then
2128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132
test -z "$as_dir" && as_dir=.
2133
for ac_exec_ext in '' $ac_executable_extensions; do
2134
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2136
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146
if test -n "$CC"; then
2147
{ echo "$as_me:$LINENO: result: $CC" >&5
2148
echo "${ECHO_T}$CC" >&6; }
2150
{ echo "$as_me:$LINENO: result: no" >&5
2151
echo "${ECHO_T}no" >&6; }
2155
test -n "$CC" && break
2158
if test -z "$CC"; then
2160
for ac_prog in cl.exe
2162
# Extract the first word of "$ac_prog", so it can be a program name with args.
2163
set dummy $ac_prog; ac_word=$2
2164
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2165
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167
echo $ECHO_N "(cached) $ECHO_C" >&6
2169
if test -n "$ac_ct_CC"; then
2170
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176
test -z "$as_dir" && as_dir=.
2177
for ac_exec_ext in '' $ac_executable_extensions; do
2178
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179
ac_cv_prog_ac_ct_CC="$ac_prog"
2180
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2190
if test -n "$ac_ct_CC"; then
2191
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2192
echo "${ECHO_T}$ac_ct_CC" >&6; }
2194
{ echo "$as_me:$LINENO: result: no" >&5
2195
echo "${ECHO_T}no" >&6; }
2199
test -n "$ac_ct_CC" && break
2202
if test "x$ac_ct_CC" = x; then
2205
case $cross_compiling:$ac_tool_warned in
2207
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2208
whose name does not start with the host triplet. If you think this
2209
configuration is useful to you, please write to autoconf@gnu.org." >&5
2210
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2211
whose name does not start with the host triplet. If you think this
2212
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2213
ac_tool_warned=yes ;;
2222
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2223
See \`config.log' for more details." >&5
2224
echo "$as_me: error: no acceptable C compiler found in \$PATH
2225
See \`config.log' for more details." >&2;}
2226
{ (exit 1); exit 1; }; }
2228
# Provide some information about the compiler.
2229
echo "$as_me:$LINENO: checking for C compiler version" >&5
2230
ac_compiler=`set X $ac_compile; echo $2`
2231
{ (ac_try="$ac_compiler --version >&5"
2233
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234
*) ac_try_echo=$ac_try;;
2236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237
(eval "$ac_compiler --version >&5") 2>&5
2239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240
(exit $ac_status); }
2241
{ (ac_try="$ac_compiler -v >&5"
2243
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2244
*) ac_try_echo=$ac_try;;
2246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2247
(eval "$ac_compiler -v >&5") 2>&5
2249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250
(exit $ac_status); }
2251
{ (ac_try="$ac_compiler -V >&5"
2253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254
*) ac_try_echo=$ac_try;;
2256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257
(eval "$ac_compiler -V >&5") 2>&5
2259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260
(exit $ac_status); }
2262
cat >conftest.$ac_ext <<_ACEOF
2265
cat confdefs.h >>conftest.$ac_ext
2266
cat >>conftest.$ac_ext <<_ACEOF
2267
/* end confdefs.h. */
2277
ac_clean_files_save=$ac_clean_files
2278
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2279
# Try to create an executable without -o first, disregard a.out.
2280
# It will help us diagnose broken compilers, and finding out an intuition
2282
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2283
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2284
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2286
# List of possible output files, starting from the most likely.
2287
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2288
# only as a last resort. b.out is created by i960 compilers.
2289
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2291
# The IRIX 6 linker writes into existing files which may not be
2292
# executable, retaining their permissions. Remove them first so a
2293
# subsequent execution test works.
2295
for ac_file in $ac_files
2298
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2304
if { (ac_try="$ac_link_default"
2306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307
*) ac_try_echo=$ac_try;;
2309
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310
(eval "$ac_link_default") 2>&5
2312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313
(exit $ac_status); }; then
2314
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2315
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2316
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2317
# so that the user can short-circuit this test for compilers unknown to
2319
for ac_file in $ac_files ''
2321
test -f "$ac_file" || continue
2323
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2326
# We found the default executable, but exeext='' is most
2330
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2332
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2334
# We set ac_cv_exeext here because the later test for it is not
2335
# safe: cross compilers may not add the suffix if given an `-o'
2336
# argument, so we may need to know it at that point already.
2337
# Even if this section looks crufty: it has the advantage of
2344
test "$ac_cv_exeext" = no && ac_cv_exeext=
2350
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2351
echo "${ECHO_T}$ac_file" >&6; }
2352
if test -z "$ac_file"; then
2353
echo "$as_me: failed program was:" >&5
2354
sed 's/^/| /' conftest.$ac_ext >&5
2356
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2357
See \`config.log' for more details." >&5
2358
echo "$as_me: error: C compiler cannot create executables
2359
See \`config.log' for more details." >&2;}
2360
{ (exit 77); exit 77; }; }
2363
ac_exeext=$ac_cv_exeext
2365
# Check that the compiler produces executables we can run. If not, either
2366
# the compiler is broken, or we cross compile.
2367
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2368
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2369
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2370
# If not cross compiling, check that we can run a simple program.
2371
if test "$cross_compiling" != yes; then
2372
if { ac_try='./$ac_file'
2373
{ (case "(($ac_try" in
2374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375
*) ac_try_echo=$ac_try;;
2377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378
(eval "$ac_try") 2>&5
2380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381
(exit $ac_status); }; }; then
2384
if test "$cross_compiling" = maybe; then
2387
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2388
If you meant to cross compile, use \`--host'.
2389
See \`config.log' for more details." >&5
2390
echo "$as_me: error: cannot run C compiled programs.
2391
If you meant to cross compile, use \`--host'.
2392
See \`config.log' for more details." >&2;}
2393
{ (exit 1); exit 1; }; }
713
if test -n "$CC"; then
714
echo "$ac_t""$CC" 1>&6
716
echo "$ac_t""no" 1>&6
721
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
724
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
725
echo "configure:726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
728
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
729
ac_cpp='$CPP $CPPFLAGS'
730
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
731
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
732
cross_compiling=$ac_cv_prog_cc_cross
734
cat > conftest.$ac_ext << EOF
736
#line 737 "configure"
737
#include "confdefs.h"
741
if { (eval echo configure:742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
742
ac_cv_prog_cc_works=yes
743
# If we can't run a trivial program, we are probably using a cross compiler.
744
if (./conftest; exit) 2>/dev/null; then
745
ac_cv_prog_cc_cross=no
747
ac_cv_prog_cc_cross=yes
750
echo "configure: failed program was:" >&5
751
cat conftest.$ac_ext >&5
752
ac_cv_prog_cc_works=no
756
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
757
ac_cpp='$CPP $CPPFLAGS'
758
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
759
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
760
cross_compiling=$ac_cv_prog_cc_cross
762
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
763
if test $ac_cv_prog_cc_works = no; then
764
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
766
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
767
echo "configure:768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
768
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
769
cross_compiling=$ac_cv_prog_cc_cross
771
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
772
echo "configure:773: checking whether we are using GNU C" >&5
773
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
774
echo $ac_n "(cached) $ac_c" 1>&6
776
cat > conftest.c <<EOF
2397
{ echo "$as_me:$LINENO: result: yes" >&5
2398
echo "${ECHO_T}yes" >&6; }
2400
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2401
ac_clean_files=$ac_clean_files_save
2402
# Check that the compiler produces executables we can run. If not, either
2403
# the compiler is broken, or we cross compile.
2404
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2405
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2406
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2407
echo "${ECHO_T}$cross_compiling" >&6; }
2409
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2410
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2411
if { (ac_try="$ac_link"
2413
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414
*) ac_try_echo=$ac_try;;
2416
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417
(eval "$ac_link") 2>&5
2419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420
(exit $ac_status); }; then
2421
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2422
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2423
# work properly (i.e., refer to `conftest.exe'), while it won't with
2425
for ac_file in conftest.exe conftest conftest.*; do
2426
test -f "$ac_file" || continue
2428
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2429
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2435
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2436
See \`config.log' for more details." >&5
2437
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2438
See \`config.log' for more details." >&2;}
2439
{ (exit 1); exit 1; }; }
2442
rm -f conftest$ac_cv_exeext
2443
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2444
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2446
rm -f conftest.$ac_ext
2447
EXEEXT=$ac_cv_exeext
2449
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2450
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2451
if test "${ac_cv_objext+set}" = set; then
2452
echo $ECHO_N "(cached) $ECHO_C" >&6
2454
cat >conftest.$ac_ext <<_ACEOF
2457
cat confdefs.h >>conftest.$ac_ext
2458
cat >>conftest.$ac_ext <<_ACEOF
2459
/* end confdefs.h. */
2469
rm -f conftest.o conftest.obj
2470
if { (ac_try="$ac_compile"
2472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473
*) ac_try_echo=$ac_try;;
2475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476
(eval "$ac_compile") 2>&5
2478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479
(exit $ac_status); }; then
2480
for ac_file in conftest.o conftest.obj conftest.*; do
2481
test -f "$ac_file" || continue;
2483
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2484
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2489
echo "$as_me: failed program was:" >&5
2490
sed 's/^/| /' conftest.$ac_ext >&5
2492
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2493
See \`config.log' for more details." >&5
2494
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2495
See \`config.log' for more details." >&2;}
2496
{ (exit 1); exit 1; }; }
2499
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2501
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2502
echo "${ECHO_T}$ac_cv_objext" >&6; }
2503
OBJEXT=$ac_cv_objext
2505
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2506
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2507
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2508
echo $ECHO_N "(cached) $ECHO_C" >&6
2510
cat >conftest.$ac_ext <<_ACEOF
2513
cat confdefs.h >>conftest.$ac_ext
2514
cat >>conftest.$ac_ext <<_ACEOF
2515
/* end confdefs.h. */
781
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
788
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
790
if test $ac_cv_prog_gcc = yes; then
796
ac_test_CFLAGS="${CFLAGS+set}"
797
ac_save_CFLAGS="$CFLAGS"
799
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
800
echo "configure:801: checking whether ${CC-cc} accepts -g" >&5
801
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
802
echo $ac_n "(cached) $ac_c" 1>&6
804
echo 'void f(){}' > conftest.c
805
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
814
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2528
rm -f conftest.$ac_objext
2529
if { (ac_try="$ac_compile"
2531
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532
*) ac_try_echo=$ac_try;;
2534
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535
(eval "$ac_compile") 2>conftest.er1
2537
grep -v '^ *+' conftest.er1 >conftest.err
2539
cat conftest.err >&5
2540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541
(exit $ac_status); } && {
2542
test -z "$ac_c_werror_flag" ||
2543
test ! -s conftest.err
2544
} && test -s conftest.$ac_objext; then
2547
echo "$as_me: failed program was:" >&5
2548
sed 's/^/| /' conftest.$ac_ext >&5
2553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2557
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2558
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2559
GCC=`test $ac_compiler_gnu = yes && echo yes`
2560
ac_test_CFLAGS=${CFLAGS+set}
2561
ac_save_CFLAGS=$CFLAGS
2562
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2563
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2564
if test "${ac_cv_prog_cc_g+set}" = set; then
2565
echo $ECHO_N "(cached) $ECHO_C" >&6
2567
ac_save_c_werror_flag=$ac_c_werror_flag
2568
ac_c_werror_flag=yes
2571
cat >conftest.$ac_ext <<_ACEOF
2574
cat confdefs.h >>conftest.$ac_ext
2575
cat >>conftest.$ac_ext <<_ACEOF
2576
/* end confdefs.h. */
2586
rm -f conftest.$ac_objext
2587
if { (ac_try="$ac_compile"
2589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590
*) ac_try_echo=$ac_try;;
2592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593
(eval "$ac_compile") 2>conftest.er1
2595
grep -v '^ *+' conftest.er1 >conftest.err
2597
cat conftest.err >&5
2598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599
(exit $ac_status); } && {
2600
test -z "$ac_c_werror_flag" ||
2601
test ! -s conftest.err
2602
} && test -s conftest.$ac_objext; then
2605
echo "$as_me: failed program was:" >&5
2606
sed 's/^/| /' conftest.$ac_ext >&5
2609
cat >conftest.$ac_ext <<_ACEOF
2612
cat confdefs.h >>conftest.$ac_ext
2613
cat >>conftest.$ac_ext <<_ACEOF
2614
/* end confdefs.h. */
2624
rm -f conftest.$ac_objext
2625
if { (ac_try="$ac_compile"
2627
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628
*) ac_try_echo=$ac_try;;
2630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631
(eval "$ac_compile") 2>conftest.er1
2633
grep -v '^ *+' conftest.er1 >conftest.err
2635
cat conftest.err >&5
2636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637
(exit $ac_status); } && {
2638
test -z "$ac_c_werror_flag" ||
2639
test ! -s conftest.err
2640
} && test -s conftest.$ac_objext; then
2643
echo "$as_me: failed program was:" >&5
2644
sed 's/^/| /' conftest.$ac_ext >&5
2646
ac_c_werror_flag=$ac_save_c_werror_flag
2648
cat >conftest.$ac_ext <<_ACEOF
2651
cat confdefs.h >>conftest.$ac_ext
2652
cat >>conftest.$ac_ext <<_ACEOF
2653
/* end confdefs.h. */
2663
rm -f conftest.$ac_objext
2664
if { (ac_try="$ac_compile"
2666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667
*) ac_try_echo=$ac_try;;
2669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670
(eval "$ac_compile") 2>conftest.er1
2672
grep -v '^ *+' conftest.er1 >conftest.err
2674
cat conftest.err >&5
2675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676
(exit $ac_status); } && {
2677
test -z "$ac_c_werror_flag" ||
2678
test ! -s conftest.err
2679
} && test -s conftest.$ac_objext; then
2682
echo "$as_me: failed program was:" >&5
2683
sed 's/^/| /' conftest.$ac_ext >&5
2688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695
ac_c_werror_flag=$ac_save_c_werror_flag
2697
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2698
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
815
2699
if test "$ac_test_CFLAGS" = set; then
816
CFLAGS="$ac_save_CFLAGS"
2700
CFLAGS=$ac_save_CFLAGS
817
2701
elif test $ac_cv_prog_cc_g = yes; then
818
2702
if test "$GCC" = yes; then
1293
3880
if test $ac_cv_header_stdc = yes; then
1294
3881
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1295
if test "$cross_compiling" = yes; then
3882
if test "$cross_compiling" = yes; then
1298
cat > conftest.$ac_ext <<EOF
1299
#line 1300 "configure"
1300
#include "confdefs.h"
3885
cat >conftest.$ac_ext <<_ACEOF
3888
cat confdefs.h >>conftest.$ac_ext
3889
cat >>conftest.$ac_ext <<_ACEOF
3890
/* end confdefs.h. */
1301
3891
#include <ctype.h>
1302
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1303
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3893
#if ((' ' & 0x0FF) == 0x020)
3894
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3895
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3897
# define ISLOWER(c) \
3898
(('a' <= (c) && (c) <= 'i') \
3899
|| ('j' <= (c) && (c) <= 'r') \
3900
|| ('s' <= (c) && (c) <= 'z'))
3901
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1304
3904
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1305
int main () { int i; for (i = 0; i < 256; i++)
1306
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1310
if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3909
for (i = 0; i < 256; i++)
3910
if (XOR (islower (i), ISLOWER (i))
3911
|| toupper (i) != TOUPPER (i))
3916
rm -f conftest$ac_exeext
3917
if { (ac_try="$ac_link"
3919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920
*) ac_try_echo=$ac_try;;
3922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3923
(eval "$ac_link") 2>&5
3925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3927
{ (case "(($ac_try" in
3928
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929
*) ac_try_echo=$ac_try;;
3931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932
(eval "$ac_try") 2>&5
3934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935
(exit $ac_status); }; }; then
1314
echo "configure: failed program was:" >&5
1315
cat conftest.$ac_ext >&5
1317
ac_cv_header_stdc=no
1325
echo "$ac_t""$ac_cv_header_stdc" 1>&6
3938
echo "$as_me: program exited with status $ac_status" >&5
3939
echo "$as_me: failed program was:" >&5
3940
sed 's/^/| /' conftest.$ac_ext >&5
3943
ac_cv_header_stdc=no
3945
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3951
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3952
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1326
3953
if test $ac_cv_header_stdc = yes; then
1327
cat >> confdefs.h <<\EOF
3955
cat >>confdefs.h <<\_ACEOF
1328
3956
#define STDC_HEADERS 1
1333
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1334
echo "configure:1335: checking for sys/wait.h that is POSIX.1 compatible" >&5
1335
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1336
echo $ac_n "(cached) $ac_c" 1>&6
3961
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3962
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3963
if test "${ac_cv_header_sys_wait_h+set}" = set; then
3964
echo $ECHO_N "(cached) $ECHO_C" >&6
1338
cat > conftest.$ac_ext <<EOF
1339
#line 1340 "configure"
1340
#include "confdefs.h"
3966
cat >conftest.$ac_ext <<_ACEOF
3969
cat confdefs.h >>conftest.$ac_ext
3970
cat >>conftest.$ac_ext <<_ACEOF
3971
/* end confdefs.h. */
1341
3972
#include <sys/types.h>
1342
3973
#include <sys/wait.h>
1343
3974
#ifndef WEXITSTATUS
1344
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3975
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
1346
3977
#ifndef WIFEXITED
1347
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3978
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1352
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1355
if { (eval echo configure:1356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3986
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3991
rm -f conftest.$ac_objext
3992
if { (ac_try="$ac_compile"
3994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995
*) ac_try_echo=$ac_try;;
3997
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998
(eval "$ac_compile") 2>conftest.er1
4000
grep -v '^ *+' conftest.er1 >conftest.err
4002
cat conftest.err >&5
4003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004
(exit $ac_status); } && {
4005
test -z "$ac_c_werror_flag" ||
4006
test ! -s conftest.err
4007
} && test -s conftest.$ac_objext; then
1357
4008
ac_cv_header_sys_wait_h=yes
1359
echo "configure: failed program was:" >&5
1360
cat conftest.$ac_ext >&5
1362
ac_cv_header_sys_wait_h=no
1367
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4010
echo "$as_me: failed program was:" >&5
4011
sed 's/^/| /' conftest.$ac_ext >&5
4013
ac_cv_header_sys_wait_h=no
4016
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4019
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
1368
4020
if test $ac_cv_header_sys_wait_h = yes; then
1369
cat >> confdefs.h <<\EOF
4022
cat >>confdefs.h <<\_ACEOF
1370
4023
#define HAVE_SYS_WAIT_H 1
1375
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1376
echo "configure:1377: checking whether time.h and sys/time.h may both be included" >&5
1377
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1378
echo $ac_n "(cached) $ac_c" 1>&6
4028
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4029
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4030
if test "${ac_cv_header_time+set}" = set; then
4031
echo $ECHO_N "(cached) $ECHO_C" >&6
1380
cat > conftest.$ac_ext <<EOF
1381
#line 1382 "configure"
1382
#include "confdefs.h"
4033
cat >conftest.$ac_ext <<_ACEOF
4036
cat confdefs.h >>conftest.$ac_ext
4037
cat >>conftest.$ac_ext <<_ACEOF
4038
/* end confdefs.h. */
1383
4039
#include <sys/types.h>
1384
4040
#include <sys/time.h>
1385
4041
#include <time.h>
1390
if { (eval echo configure:1391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4046
if ((struct tm *) 0)
4052
rm -f conftest.$ac_objext
4053
if { (ac_try="$ac_compile"
4055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056
*) ac_try_echo=$ac_try;;
4058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059
(eval "$ac_compile") 2>conftest.er1
4061
grep -v '^ *+' conftest.er1 >conftest.err
4063
cat conftest.err >&5
4064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065
(exit $ac_status); } && {
4066
test -z "$ac_c_werror_flag" ||
4067
test ! -s conftest.err
4068
} && test -s conftest.$ac_objext; then
1392
4069
ac_cv_header_time=yes
1394
echo "configure: failed program was:" >&5
1395
cat conftest.$ac_ext >&5
1397
ac_cv_header_time=no
1402
echo "$ac_t""$ac_cv_header_time" 1>&6
4071
echo "$as_me: failed program was:" >&5
4072
sed 's/^/| /' conftest.$ac_ext >&5
4074
ac_cv_header_time=no
4077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4080
echo "${ECHO_T}$ac_cv_header_time" >&6; }
1403
4081
if test $ac_cv_header_time = yes; then
1404
cat >> confdefs.h <<\EOF
4083
cat >>confdefs.h <<\_ACEOF
1405
4084
#define TIME_WITH_SYS_TIME 1
1410
4094
ac_header_dirent=no
1411
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1413
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1414
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1415
echo "configure:1416: checking for $ac_hdr that defines DIR" >&5
1416
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1417
echo $ac_n "(cached) $ac_c" 1>&6
4095
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4096
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4097
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4098
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4099
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4100
echo $ECHO_N "(cached) $ECHO_C" >&6
1419
cat > conftest.$ac_ext <<EOF
1420
#line 1421 "configure"
1421
#include "confdefs.h"
4102
cat >conftest.$ac_ext <<_ACEOF
4105
cat confdefs.h >>conftest.$ac_ext
4106
cat >>conftest.$ac_ext <<_ACEOF
4107
/* end confdefs.h. */
1422
4108
#include <sys/types.h>
1423
4109
#include <$ac_hdr>
1428
if { (eval echo configure:1429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1430
eval "ac_cv_header_dirent_$ac_safe=yes"
1432
echo "configure: failed program was:" >&5
1433
cat conftest.$ac_ext >&5
1435
eval "ac_cv_header_dirent_$ac_safe=no"
1439
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1440
echo "$ac_t""yes" 1>&6
1441
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1442
cat >> confdefs.h <<EOF
1443
#define $ac_tr_hdr 1
1445
ac_header_dirent=$ac_hdr; break
1447
echo "$ac_t""no" 1>&6
4120
rm -f conftest.$ac_objext
4121
if { (ac_try="$ac_compile"
4123
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124
*) ac_try_echo=$ac_try;;
4126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127
(eval "$ac_compile") 2>conftest.er1
4129
grep -v '^ *+' conftest.er1 >conftest.err
4131
cat conftest.err >&5
4132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133
(exit $ac_status); } && {
4134
test -z "$ac_c_werror_flag" ||
4135
test ! -s conftest.err
4136
} && test -s conftest.$ac_objext; then
4137
eval "$as_ac_Header=yes"
4139
echo "$as_me: failed program was:" >&5
4140
sed 's/^/| /' conftest.$ac_ext >&5
4142
eval "$as_ac_Header=no"
4145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147
ac_res=`eval echo '${'$as_ac_Header'}'`
4148
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4149
echo "${ECHO_T}$ac_res" >&6; }
4150
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4151
cat >>confdefs.h <<_ACEOF
4152
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4155
ac_header_dirent=$ac_hdr; break
1450
4159
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1451
4160
if test $ac_header_dirent = dirent.h; then
1452
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1453
echo "configure:1454: checking for opendir in -ldir" >&5
1454
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1455
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1456
echo $ac_n "(cached) $ac_c" 1>&6
1458
ac_save_LIBS="$LIBS"
1460
cat > conftest.$ac_ext <<EOF
1461
#line 1462 "configure"
1462
#include "confdefs.h"
1463
/* Override any gcc2 internal prototype to avoid an error. */
1464
/* We use char because int might match the return type of a gcc2
1465
builtin and then its argument prototype would still apply. */
1472
if { (eval echo configure:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1474
eval "ac_cv_lib_$ac_lib_var=yes"
1476
echo "configure: failed program was:" >&5
1477
cat conftest.$ac_ext >&5
1479
eval "ac_cv_lib_$ac_lib_var=no"
1482
LIBS="$ac_save_LIBS"
1485
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1486
echo "$ac_t""yes" 1>&6
1489
echo "$ac_t""no" 1>&6
1493
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1494
echo "configure:1495: checking for opendir in -lx" >&5
1495
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1496
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1497
echo $ac_n "(cached) $ac_c" 1>&6
1499
ac_save_LIBS="$LIBS"
1501
cat > conftest.$ac_ext <<EOF
1502
#line 1503 "configure"
1503
#include "confdefs.h"
1504
/* Override any gcc2 internal prototype to avoid an error. */
1505
/* We use char because int might match the return type of a gcc2
1506
builtin and then its argument prototype would still apply. */
1513
if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1515
eval "ac_cv_lib_$ac_lib_var=yes"
1517
echo "configure: failed program was:" >&5
1518
cat conftest.$ac_ext >&5
1520
eval "ac_cv_lib_$ac_lib_var=no"
1523
LIBS="$ac_save_LIBS"
1526
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1527
echo "$ac_t""yes" 1>&6
1530
echo "$ac_t""no" 1>&6
1535
for ac_hdr in unistd.h getopt.h string.h strings.h sys/sockio.h sys/socketio.h
1537
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1538
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1539
echo "configure:1540: checking for $ac_hdr" >&5
1540
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1541
echo $ac_n "(cached) $ac_c" 1>&6
1543
cat > conftest.$ac_ext <<EOF
1544
#line 1545 "configure"
1545
#include "confdefs.h"
1548
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549
{ (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1551
if test -z "$ac_err"; then
1553
eval "ac_cv_header_$ac_safe=yes"
1556
echo "configure: failed program was:" >&5
1557
cat conftest.$ac_ext >&5
1559
eval "ac_cv_header_$ac_safe=no"
1563
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1564
echo "$ac_t""yes" 1>&6
1565
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1566
cat >> confdefs.h <<EOF
1567
#define $ac_tr_hdr 1
1571
echo "$ac_t""no" 1>&6
1575
for ac_hdr in sys/param.h netinet/tcpip.h netinet/in_systm.h
1577
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1578
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1579
echo "configure:1580: checking for $ac_hdr" >&5
1580
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1581
echo $ac_n "(cached) $ac_c" 1>&6
1583
cat > conftest.$ac_ext <<EOF
1584
#line 1585 "configure"
1585
#include "confdefs.h"
1588
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1589
{ (eval echo configure:1590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1590
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1591
if test -z "$ac_err"; then
1593
eval "ac_cv_header_$ac_safe=yes"
1596
echo "configure: failed program was:" >&5
1597
cat conftest.$ac_ext >&5
1599
eval "ac_cv_header_$ac_safe=no"
1603
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1604
echo "$ac_t""yes" 1>&6
1605
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1606
cat >> confdefs.h <<EOF
1607
#define $ac_tr_hdr 1
1611
echo "$ac_t""no" 1>&6
1615
for ac_hdr in netinet/ip_udp.h netinet/protocols.h sys/ioctl.h netinet/ip_icmp.h
1617
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1618
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1619
echo "configure:1620: checking for $ac_hdr" >&5
1620
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1621
echo $ac_n "(cached) $ac_c" 1>&6
1623
cat > conftest.$ac_ext <<EOF
1624
#line 1625 "configure"
1625
#include "confdefs.h"
1628
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1629
{ (eval echo configure:1630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1630
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1631
if test -z "$ac_err"; then
1633
eval "ac_cv_header_$ac_safe=yes"
1636
echo "configure: failed program was:" >&5
1637
cat conftest.$ac_ext >&5
1639
eval "ac_cv_header_$ac_safe=no"
1643
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1644
echo "$ac_t""yes" 1>&6
1645
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1646
cat >> confdefs.h <<EOF
1647
#define $ac_tr_hdr 1
1651
echo "$ac_t""no" 1>&6
1655
for ac_hdr in rpc/rpc.h netinet/udp.h dlfcn.h sys/un.h memory.h ctype.h errno.h
1657
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1658
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1659
echo "configure:1660: checking for $ac_hdr" >&5
1660
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1661
echo $ac_n "(cached) $ac_c" 1>&6
1663
cat > conftest.$ac_ext <<EOF
1664
#line 1665 "configure"
1665
#include "confdefs.h"
1668
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1669
{ (eval echo configure:1670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1670
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1671
if test -z "$ac_err"; then
1673
eval "ac_cv_header_$ac_safe=yes"
1676
echo "configure: failed program was:" >&5
1677
cat conftest.$ac_ext >&5
1679
eval "ac_cv_header_$ac_safe=no"
1683
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1684
echo "$ac_t""yes" 1>&6
1685
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1686
cat >> confdefs.h <<EOF
1687
#define $ac_tr_hdr 1
1691
echo "$ac_t""no" 1>&6
1695
for ac_hdr in sys/types.h stdlib.h stdio.h sys/filio.h pwd.h
1697
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1698
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1699
echo "configure:1700: checking for $ac_hdr" >&5
1700
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1701
echo $ac_n "(cached) $ac_c" 1>&6
1703
cat > conftest.$ac_ext <<EOF
1704
#line 1705 "configure"
1705
#include "confdefs.h"
1708
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1709
{ (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1710
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1711
if test -z "$ac_err"; then
1713
eval "ac_cv_header_$ac_safe=yes"
1716
echo "configure: failed program was:" >&5
1717
cat conftest.$ac_ext >&5
1719
eval "ac_cv_header_$ac_safe=no"
1723
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1724
echo "$ac_t""yes" 1>&6
1725
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1726
cat >> confdefs.h <<EOF
1727
#define $ac_tr_hdr 1
1731
echo "$ac_t""no" 1>&6
1735
for ac_hdr in assert.h netdb.h netinet/in.h arpa/inet.h
1737
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1738
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1739
echo "configure:1740: checking for $ac_hdr" >&5
1740
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1741
echo $ac_n "(cached) $ac_c" 1>&6
1743
cat > conftest.$ac_ext <<EOF
1744
#line 1745 "configure"
1745
#include "confdefs.h"
1748
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1749
{ (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1750
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1751
if test -z "$ac_err"; then
1753
eval "ac_cv_header_$ac_safe=yes"
1756
echo "configure: failed program was:" >&5
1757
cat conftest.$ac_ext >&5
1759
eval "ac_cv_header_$ac_safe=no"
1763
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1764
echo "$ac_t""yes" 1>&6
1765
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1766
cat >> confdefs.h <<EOF
1767
#define $ac_tr_hdr 1
1771
echo "$ac_t""no" 1>&6
1775
for ac_hdr in poll.h sys/poll.h netinet/ip_tcp.h fcntl.h signal.h limits.h
1777
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1778
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1779
echo "configure:1780: checking for $ac_hdr" >&5
1780
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1781
echo $ac_n "(cached) $ac_c" 1>&6
1783
cat > conftest.$ac_ext <<EOF
1784
#line 1785 "configure"
1785
#include "confdefs.h"
1788
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1789
{ (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1790
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1791
if test -z "$ac_err"; then
1793
eval "ac_cv_header_$ac_safe=yes"
1796
echo "configure: failed program was:" >&5
1797
cat conftest.$ac_ext >&5
1799
eval "ac_cv_header_$ac_safe=no"
1803
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1804
echo "$ac_t""yes" 1>&6
1805
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1806
cat >> confdefs.h <<EOF
1807
#define $ac_tr_hdr 1
1811
echo "$ac_t""no" 1>&6
1815
for ac_hdr in sys/stat.h stat.h net/if.h sys/mman.h sys/resource.h dl.h
1817
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1818
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1819
echo "configure:1820: checking for $ac_hdr" >&5
1820
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1821
echo $ac_n "(cached) $ac_c" 1>&6
1823
cat > conftest.$ac_ext <<EOF
1824
#line 1825 "configure"
1825
#include "confdefs.h"
1828
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1829
{ (eval echo configure:1830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1830
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1831
if test -z "$ac_err"; then
1833
eval "ac_cv_header_$ac_safe=yes"
1836
echo "configure: failed program was:" >&5
1837
cat conftest.$ac_ext >&5
1839
eval "ac_cv_header_$ac_safe=no"
1843
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1844
echo "$ac_t""yes" 1>&6
1845
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1846
cat >> confdefs.h <<EOF
1847
#define $ac_tr_hdr 1
1851
echo "$ac_t""no" 1>&6
1855
for ac_hdr in pty.h termio.h termios.h sgtty.h libutil.h setjmp.h values.h
1857
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1858
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1859
echo "configure:1860: checking for $ac_hdr" >&5
1860
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1861
echo $ac_n "(cached) $ac_c" 1>&6
1863
cat > conftest.$ac_ext <<EOF
1864
#line 1865 "configure"
1865
#include "confdefs.h"
1868
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869
{ (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871
if test -z "$ac_err"; then
1873
eval "ac_cv_header_$ac_safe=yes"
1876
echo "configure: failed program was:" >&5
1877
cat conftest.$ac_ext >&5
1879
eval "ac_cv_header_$ac_safe=no"
1883
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1884
echo "$ac_t""yes" 1>&6
1885
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1886
cat >> confdefs.h <<EOF
1887
#define $ac_tr_hdr 1
1891
echo "$ac_t""no" 1>&6
4161
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
4162
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4163
if test "${ac_cv_search_opendir+set}" = set; then
4164
echo $ECHO_N "(cached) $ECHO_C" >&6
4166
ac_func_search_save_LIBS=$LIBS
4167
cat >conftest.$ac_ext <<_ACEOF
4170
cat confdefs.h >>conftest.$ac_ext
4171
cat >>conftest.$ac_ext <<_ACEOF
4172
/* end confdefs.h. */
4174
/* Override any GCC internal prototype to avoid an error.
4175
Use char because int might match the return type of a GCC
4176
builtin and then its argument prototype would still apply. */
4189
for ac_lib in '' dir; do
4190
if test -z "$ac_lib"; then
4191
ac_res="none required"
4194
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4196
rm -f conftest.$ac_objext conftest$ac_exeext
4197
if { (ac_try="$ac_link"
4199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200
*) ac_try_echo=$ac_try;;
4202
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203
(eval "$ac_link") 2>conftest.er1
4205
grep -v '^ *+' conftest.er1 >conftest.err
4207
cat conftest.err >&5
4208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
(exit $ac_status); } && {
4210
test -z "$ac_c_werror_flag" ||
4211
test ! -s conftest.err
4212
} && test -s conftest$ac_exeext &&
4213
$as_test_x conftest$ac_exeext; then
4214
ac_cv_search_opendir=$ac_res
4216
echo "$as_me: failed program was:" >&5
4217
sed 's/^/| /' conftest.$ac_ext >&5
4222
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4224
if test "${ac_cv_search_opendir+set}" = set; then
4228
if test "${ac_cv_search_opendir+set}" = set; then
4231
ac_cv_search_opendir=no
4234
LIBS=$ac_func_search_save_LIBS
4236
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4237
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4238
ac_res=$ac_cv_search_opendir
4239
if test "$ac_res" != no; then
4240
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4245
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
4246
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4247
if test "${ac_cv_search_opendir+set}" = set; then
4248
echo $ECHO_N "(cached) $ECHO_C" >&6
4250
ac_func_search_save_LIBS=$LIBS
4251
cat >conftest.$ac_ext <<_ACEOF
4254
cat confdefs.h >>conftest.$ac_ext
4255
cat >>conftest.$ac_ext <<_ACEOF
4256
/* end confdefs.h. */
4258
/* Override any GCC internal prototype to avoid an error.
4259
Use char because int might match the return type of a GCC
4260
builtin and then its argument prototype would still apply. */
4273
for ac_lib in '' x; do
4274
if test -z "$ac_lib"; then
4275
ac_res="none required"
4278
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4280
rm -f conftest.$ac_objext conftest$ac_exeext
4281
if { (ac_try="$ac_link"
4283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284
*) ac_try_echo=$ac_try;;
4286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287
(eval "$ac_link") 2>conftest.er1
4289
grep -v '^ *+' conftest.er1 >conftest.err
4291
cat conftest.err >&5
4292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293
(exit $ac_status); } && {
4294
test -z "$ac_c_werror_flag" ||
4295
test ! -s conftest.err
4296
} && test -s conftest$ac_exeext &&
4297
$as_test_x conftest$ac_exeext; then
4298
ac_cv_search_opendir=$ac_res
4300
echo "$as_me: failed program was:" >&5
4301
sed 's/^/| /' conftest.$ac_ext >&5
4306
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4308
if test "${ac_cv_search_opendir+set}" = set; then
4312
if test "${ac_cv_search_opendir+set}" = set; then
4315
ac_cv_search_opendir=no
4318
LIBS=$ac_func_search_save_LIBS
4320
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4321
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4322
ac_res=$ac_cv_search_opendir
4323
if test "$ac_res" != no; then
4324
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4330
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4340
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4341
inttypes.h stdint.h unistd.h
4343
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4344
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4345
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4346
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4347
echo $ECHO_N "(cached) $ECHO_C" >&6
4349
cat >conftest.$ac_ext <<_ACEOF
4352
cat confdefs.h >>conftest.$ac_ext
4353
cat >>conftest.$ac_ext <<_ACEOF
4354
/* end confdefs.h. */
4355
$ac_includes_default
4357
#include <$ac_header>
4359
rm -f conftest.$ac_objext
4360
if { (ac_try="$ac_compile"
4362
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363
*) ac_try_echo=$ac_try;;
4365
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366
(eval "$ac_compile") 2>conftest.er1
4368
grep -v '^ *+' conftest.er1 >conftest.err
4370
cat conftest.err >&5
4371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372
(exit $ac_status); } && {
4373
test -z "$ac_c_werror_flag" ||
4374
test ! -s conftest.err
4375
} && test -s conftest.$ac_objext; then
4376
eval "$as_ac_Header=yes"
4378
echo "$as_me: failed program was:" >&5
4379
sed 's/^/| /' conftest.$ac_ext >&5
4381
eval "$as_ac_Header=no"
4384
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386
ac_res=`eval echo '${'$as_ac_Header'}'`
4387
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4388
echo "${ECHO_T}$ac_res" >&6; }
4389
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4390
cat >>confdefs.h <<_ACEOF
4391
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4404
for ac_header in unistd.h string.h strings.h sys/sockio.h sys/socketio.h
4406
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4407
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4408
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4409
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4410
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4411
echo $ECHO_N "(cached) $ECHO_C" >&6
4413
ac_res=`eval echo '${'$as_ac_Header'}'`
4414
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4415
echo "${ECHO_T}$ac_res" >&6; }
4417
# Is the header compilable?
4418
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4419
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4420
cat >conftest.$ac_ext <<_ACEOF
4423
cat confdefs.h >>conftest.$ac_ext
4424
cat >>conftest.$ac_ext <<_ACEOF
4425
/* end confdefs.h. */
4426
$ac_includes_default
4427
#include <$ac_header>
4429
rm -f conftest.$ac_objext
4430
if { (ac_try="$ac_compile"
4432
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433
*) ac_try_echo=$ac_try;;
4435
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436
(eval "$ac_compile") 2>conftest.er1
4438
grep -v '^ *+' conftest.er1 >conftest.err
4440
cat conftest.err >&5
4441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442
(exit $ac_status); } && {
4443
test -z "$ac_c_werror_flag" ||
4444
test ! -s conftest.err
4445
} && test -s conftest.$ac_objext; then
4446
ac_header_compiler=yes
4448
echo "$as_me: failed program was:" >&5
4449
sed 's/^/| /' conftest.$ac_ext >&5
4451
ac_header_compiler=no
4454
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4456
echo "${ECHO_T}$ac_header_compiler" >&6; }
4458
# Is the header present?
4459
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4460
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4461
cat >conftest.$ac_ext <<_ACEOF
4464
cat confdefs.h >>conftest.$ac_ext
4465
cat >>conftest.$ac_ext <<_ACEOF
4466
/* end confdefs.h. */
4467
#include <$ac_header>
4469
if { (ac_try="$ac_cpp conftest.$ac_ext"
4471
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472
*) ac_try_echo=$ac_try;;
4474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4477
grep -v '^ *+' conftest.er1 >conftest.err
4479
cat conftest.err >&5
4480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481
(exit $ac_status); } >/dev/null && {
4482
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4483
test ! -s conftest.err
4485
ac_header_preproc=yes
4487
echo "$as_me: failed program was:" >&5
4488
sed 's/^/| /' conftest.$ac_ext >&5
4490
ac_header_preproc=no
4493
rm -f conftest.err conftest.$ac_ext
4494
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4495
echo "${ECHO_T}$ac_header_preproc" >&6; }
4497
# So? What about this header?
4498
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4500
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4501
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4502
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4503
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4504
ac_header_preproc=yes
4507
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4508
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4509
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4510
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4511
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4512
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4513
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4514
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4515
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4516
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4517
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4518
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4522
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4523
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4524
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4525
echo $ECHO_N "(cached) $ECHO_C" >&6
4527
eval "$as_ac_Header=\$ac_header_preproc"
4529
ac_res=`eval echo '${'$as_ac_Header'}'`
4530
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4531
echo "${ECHO_T}$ac_res" >&6; }
4534
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535
cat >>confdefs.h <<_ACEOF
4536
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4546
for ac_header in sys/param.h netinet/tcpip.h netinet/in_systm.h
4548
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4549
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4550
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4551
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4552
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4553
echo $ECHO_N "(cached) $ECHO_C" >&6
4555
ac_res=`eval echo '${'$as_ac_Header'}'`
4556
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4557
echo "${ECHO_T}$ac_res" >&6; }
4559
# Is the header compilable?
4560
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4561
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4562
cat >conftest.$ac_ext <<_ACEOF
4565
cat confdefs.h >>conftest.$ac_ext
4566
cat >>conftest.$ac_ext <<_ACEOF
4567
/* end confdefs.h. */
4568
$ac_includes_default
4569
#include <$ac_header>
4571
rm -f conftest.$ac_objext
4572
if { (ac_try="$ac_compile"
4574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575
*) ac_try_echo=$ac_try;;
4577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578
(eval "$ac_compile") 2>conftest.er1
4580
grep -v '^ *+' conftest.er1 >conftest.err
4582
cat conftest.err >&5
4583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584
(exit $ac_status); } && {
4585
test -z "$ac_c_werror_flag" ||
4586
test ! -s conftest.err
4587
} && test -s conftest.$ac_objext; then
4588
ac_header_compiler=yes
4590
echo "$as_me: failed program was:" >&5
4591
sed 's/^/| /' conftest.$ac_ext >&5
4593
ac_header_compiler=no
4596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4598
echo "${ECHO_T}$ac_header_compiler" >&6; }
4600
# Is the header present?
4601
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4602
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4603
cat >conftest.$ac_ext <<_ACEOF
4606
cat confdefs.h >>conftest.$ac_ext
4607
cat >>conftest.$ac_ext <<_ACEOF
4608
/* end confdefs.h. */
4609
#include <$ac_header>
4611
if { (ac_try="$ac_cpp conftest.$ac_ext"
4613
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614
*) ac_try_echo=$ac_try;;
4616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4619
grep -v '^ *+' conftest.er1 >conftest.err
4621
cat conftest.err >&5
4622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623
(exit $ac_status); } >/dev/null && {
4624
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4625
test ! -s conftest.err
4627
ac_header_preproc=yes
4629
echo "$as_me: failed program was:" >&5
4630
sed 's/^/| /' conftest.$ac_ext >&5
4632
ac_header_preproc=no
4635
rm -f conftest.err conftest.$ac_ext
4636
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4637
echo "${ECHO_T}$ac_header_preproc" >&6; }
4639
# So? What about this header?
4640
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4642
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4643
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4644
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4645
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4646
ac_header_preproc=yes
4649
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4650
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4651
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4652
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4653
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4654
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4655
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4656
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4657
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4658
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4659
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4660
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4664
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4665
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4666
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4667
echo $ECHO_N "(cached) $ECHO_C" >&6
4669
eval "$as_ac_Header=\$ac_header_preproc"
4671
ac_res=`eval echo '${'$as_ac_Header'}'`
4672
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4673
echo "${ECHO_T}$ac_res" >&6; }
4676
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4677
cat >>confdefs.h <<_ACEOF
4678
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4689
for ac_header in netinet/ip_udp.h netinet/protocols.h sys/ioctl.h netinet/ip_icmp.h
4691
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4692
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4693
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4694
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4695
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4696
echo $ECHO_N "(cached) $ECHO_C" >&6
4698
ac_res=`eval echo '${'$as_ac_Header'}'`
4699
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4700
echo "${ECHO_T}$ac_res" >&6; }
4702
# Is the header compilable?
4703
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4704
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4705
cat >conftest.$ac_ext <<_ACEOF
4708
cat confdefs.h >>conftest.$ac_ext
4709
cat >>conftest.$ac_ext <<_ACEOF
4710
/* end confdefs.h. */
4711
$ac_includes_default
4712
#include <$ac_header>
4714
rm -f conftest.$ac_objext
4715
if { (ac_try="$ac_compile"
4717
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718
*) ac_try_echo=$ac_try;;
4720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4721
(eval "$ac_compile") 2>conftest.er1
4723
grep -v '^ *+' conftest.er1 >conftest.err
4725
cat conftest.err >&5
4726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727
(exit $ac_status); } && {
4728
test -z "$ac_c_werror_flag" ||
4729
test ! -s conftest.err
4730
} && test -s conftest.$ac_objext; then
4731
ac_header_compiler=yes
4733
echo "$as_me: failed program was:" >&5
4734
sed 's/^/| /' conftest.$ac_ext >&5
4736
ac_header_compiler=no
4739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4741
echo "${ECHO_T}$ac_header_compiler" >&6; }
4743
# Is the header present?
4744
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4745
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4746
cat >conftest.$ac_ext <<_ACEOF
4749
cat confdefs.h >>conftest.$ac_ext
4750
cat >>conftest.$ac_ext <<_ACEOF
4751
/* end confdefs.h. */
4752
#include <$ac_header>
4754
if { (ac_try="$ac_cpp conftest.$ac_ext"
4756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757
*) ac_try_echo=$ac_try;;
4759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762
grep -v '^ *+' conftest.er1 >conftest.err
4764
cat conftest.err >&5
4765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766
(exit $ac_status); } >/dev/null && {
4767
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4768
test ! -s conftest.err
4770
ac_header_preproc=yes
4772
echo "$as_me: failed program was:" >&5
4773
sed 's/^/| /' conftest.$ac_ext >&5
4775
ac_header_preproc=no
4778
rm -f conftest.err conftest.$ac_ext
4779
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4780
echo "${ECHO_T}$ac_header_preproc" >&6; }
4782
# So? What about this header?
4783
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4785
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4786
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4787
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4788
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4789
ac_header_preproc=yes
4792
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4793
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4794
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4795
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4796
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4797
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4798
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4799
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4800
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4801
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4802
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4803
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4807
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4808
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4809
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4810
echo $ECHO_N "(cached) $ECHO_C" >&6
4812
eval "$as_ac_Header=\$ac_header_preproc"
4814
ac_res=`eval echo '${'$as_ac_Header'}'`
4815
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4816
echo "${ECHO_T}$ac_res" >&6; }
4819
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820
cat >>confdefs.h <<_ACEOF
4821
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4835
for ac_header in rpc/rpc.h netinet/udp.h dlfcn.h sys/un.h memory.h ctype.h errno.h
4837
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4838
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4839
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4840
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4841
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4842
echo $ECHO_N "(cached) $ECHO_C" >&6
4844
ac_res=`eval echo '${'$as_ac_Header'}'`
4845
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4846
echo "${ECHO_T}$ac_res" >&6; }
4848
# Is the header compilable?
4849
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4850
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4851
cat >conftest.$ac_ext <<_ACEOF
4854
cat confdefs.h >>conftest.$ac_ext
4855
cat >>conftest.$ac_ext <<_ACEOF
4856
/* end confdefs.h. */
4857
$ac_includes_default
4858
#include <$ac_header>
4860
rm -f conftest.$ac_objext
4861
if { (ac_try="$ac_compile"
4863
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864
*) ac_try_echo=$ac_try;;
4866
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867
(eval "$ac_compile") 2>conftest.er1
4869
grep -v '^ *+' conftest.er1 >conftest.err
4871
cat conftest.err >&5
4872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873
(exit $ac_status); } && {
4874
test -z "$ac_c_werror_flag" ||
4875
test ! -s conftest.err
4876
} && test -s conftest.$ac_objext; then
4877
ac_header_compiler=yes
4879
echo "$as_me: failed program was:" >&5
4880
sed 's/^/| /' conftest.$ac_ext >&5
4882
ac_header_compiler=no
4885
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4887
echo "${ECHO_T}$ac_header_compiler" >&6; }
4889
# Is the header present?
4890
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4891
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4892
cat >conftest.$ac_ext <<_ACEOF
4895
cat confdefs.h >>conftest.$ac_ext
4896
cat >>conftest.$ac_ext <<_ACEOF
4897
/* end confdefs.h. */
4898
#include <$ac_header>
4900
if { (ac_try="$ac_cpp conftest.$ac_ext"
4902
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903
*) ac_try_echo=$ac_try;;
4905
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4908
grep -v '^ *+' conftest.er1 >conftest.err
4910
cat conftest.err >&5
4911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912
(exit $ac_status); } >/dev/null && {
4913
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4914
test ! -s conftest.err
4916
ac_header_preproc=yes
4918
echo "$as_me: failed program was:" >&5
4919
sed 's/^/| /' conftest.$ac_ext >&5
4921
ac_header_preproc=no
4924
rm -f conftest.err conftest.$ac_ext
4925
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926
echo "${ECHO_T}$ac_header_preproc" >&6; }
4928
# So? What about this header?
4929
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4931
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935
ac_header_preproc=yes
4938
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4939
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4940
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4946
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4947
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4953
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4954
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4955
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4956
echo $ECHO_N "(cached) $ECHO_C" >&6
4958
eval "$as_ac_Header=\$ac_header_preproc"
4960
ac_res=`eval echo '${'$as_ac_Header'}'`
4961
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4962
echo "${ECHO_T}$ac_res" >&6; }
4965
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4966
cat >>confdefs.h <<_ACEOF
4967
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4979
for ac_header in sys/types.h stdlib.h stdio.h sys/filio.h pwd.h
4981
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4983
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4984
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4985
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4986
echo $ECHO_N "(cached) $ECHO_C" >&6
4988
ac_res=`eval echo '${'$as_ac_Header'}'`
4989
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4990
echo "${ECHO_T}$ac_res" >&6; }
4992
# Is the header compilable?
4993
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4994
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4995
cat >conftest.$ac_ext <<_ACEOF
4998
cat confdefs.h >>conftest.$ac_ext
4999
cat >>conftest.$ac_ext <<_ACEOF
5000
/* end confdefs.h. */
5001
$ac_includes_default
5002
#include <$ac_header>
5004
rm -f conftest.$ac_objext
5005
if { (ac_try="$ac_compile"
5007
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008
*) ac_try_echo=$ac_try;;
5010
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011
(eval "$ac_compile") 2>conftest.er1
5013
grep -v '^ *+' conftest.er1 >conftest.err
5015
cat conftest.err >&5
5016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017
(exit $ac_status); } && {
5018
test -z "$ac_c_werror_flag" ||
5019
test ! -s conftest.err
5020
} && test -s conftest.$ac_objext; then
5021
ac_header_compiler=yes
5023
echo "$as_me: failed program was:" >&5
5024
sed 's/^/| /' conftest.$ac_ext >&5
5026
ac_header_compiler=no
5029
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5031
echo "${ECHO_T}$ac_header_compiler" >&6; }
5033
# Is the header present?
5034
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5035
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5036
cat >conftest.$ac_ext <<_ACEOF
5039
cat confdefs.h >>conftest.$ac_ext
5040
cat >>conftest.$ac_ext <<_ACEOF
5041
/* end confdefs.h. */
5042
#include <$ac_header>
5044
if { (ac_try="$ac_cpp conftest.$ac_ext"
5046
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047
*) ac_try_echo=$ac_try;;
5049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5052
grep -v '^ *+' conftest.er1 >conftest.err
5054
cat conftest.err >&5
5055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056
(exit $ac_status); } >/dev/null && {
5057
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5058
test ! -s conftest.err
5060
ac_header_preproc=yes
5062
echo "$as_me: failed program was:" >&5
5063
sed 's/^/| /' conftest.$ac_ext >&5
5065
ac_header_preproc=no
5068
rm -f conftest.err conftest.$ac_ext
5069
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5070
echo "${ECHO_T}$ac_header_preproc" >&6; }
5072
# So? What about this header?
5073
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5075
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5076
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5077
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5078
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5079
ac_header_preproc=yes
5082
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5083
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5084
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5085
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5086
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5087
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5088
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5089
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5090
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5091
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5092
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5093
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5097
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5098
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5099
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5100
echo $ECHO_N "(cached) $ECHO_C" >&6
5102
eval "$as_ac_Header=\$ac_header_preproc"
5104
ac_res=`eval echo '${'$as_ac_Header'}'`
5105
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5106
echo "${ECHO_T}$ac_res" >&6; }
5109
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5110
cat >>confdefs.h <<_ACEOF
5111
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5122
for ac_header in assert.h netdb.h netinet/in.h arpa/inet.h
5124
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5125
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5126
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5127
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5128
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5129
echo $ECHO_N "(cached) $ECHO_C" >&6
5131
ac_res=`eval echo '${'$as_ac_Header'}'`
5132
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5133
echo "${ECHO_T}$ac_res" >&6; }
5135
# Is the header compilable?
5136
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5137
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5138
cat >conftest.$ac_ext <<_ACEOF
5141
cat confdefs.h >>conftest.$ac_ext
5142
cat >>conftest.$ac_ext <<_ACEOF
5143
/* end confdefs.h. */
5144
$ac_includes_default
5145
#include <$ac_header>
5147
rm -f conftest.$ac_objext
5148
if { (ac_try="$ac_compile"
5150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151
*) ac_try_echo=$ac_try;;
5153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154
(eval "$ac_compile") 2>conftest.er1
5156
grep -v '^ *+' conftest.er1 >conftest.err
5158
cat conftest.err >&5
5159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160
(exit $ac_status); } && {
5161
test -z "$ac_c_werror_flag" ||
5162
test ! -s conftest.err
5163
} && test -s conftest.$ac_objext; then
5164
ac_header_compiler=yes
5166
echo "$as_me: failed program was:" >&5
5167
sed 's/^/| /' conftest.$ac_ext >&5
5169
ac_header_compiler=no
5172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5174
echo "${ECHO_T}$ac_header_compiler" >&6; }
5176
# Is the header present?
5177
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5178
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5179
cat >conftest.$ac_ext <<_ACEOF
5182
cat confdefs.h >>conftest.$ac_ext
5183
cat >>conftest.$ac_ext <<_ACEOF
5184
/* end confdefs.h. */
5185
#include <$ac_header>
5187
if { (ac_try="$ac_cpp conftest.$ac_ext"
5189
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190
*) ac_try_echo=$ac_try;;
5192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5195
grep -v '^ *+' conftest.er1 >conftest.err
5197
cat conftest.err >&5
5198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199
(exit $ac_status); } >/dev/null && {
5200
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5201
test ! -s conftest.err
5203
ac_header_preproc=yes
5205
echo "$as_me: failed program was:" >&5
5206
sed 's/^/| /' conftest.$ac_ext >&5
5208
ac_header_preproc=no
5211
rm -f conftest.err conftest.$ac_ext
5212
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5213
echo "${ECHO_T}$ac_header_preproc" >&6; }
5215
# So? What about this header?
5216
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5218
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5219
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5220
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5221
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5222
ac_header_preproc=yes
5225
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5226
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5227
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5228
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5229
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5230
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5231
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5232
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5233
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5234
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5235
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5236
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5240
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5241
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5242
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5243
echo $ECHO_N "(cached) $ECHO_C" >&6
5245
eval "$as_ac_Header=\$ac_header_preproc"
5247
ac_res=`eval echo '${'$as_ac_Header'}'`
5248
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5249
echo "${ECHO_T}$ac_res" >&6; }
5252
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5253
cat >>confdefs.h <<_ACEOF
5254
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5267
for ac_header in poll.h sys/poll.h netinet/ip_tcp.h fcntl.h signal.h limits.h
5269
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5270
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5271
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5272
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5273
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5274
echo $ECHO_N "(cached) $ECHO_C" >&6
5276
ac_res=`eval echo '${'$as_ac_Header'}'`
5277
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5278
echo "${ECHO_T}$ac_res" >&6; }
5280
# Is the header compilable?
5281
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5282
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5283
cat >conftest.$ac_ext <<_ACEOF
5286
cat confdefs.h >>conftest.$ac_ext
5287
cat >>conftest.$ac_ext <<_ACEOF
5288
/* end confdefs.h. */
5289
$ac_includes_default
5290
#include <$ac_header>
5292
rm -f conftest.$ac_objext
5293
if { (ac_try="$ac_compile"
5295
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296
*) ac_try_echo=$ac_try;;
5298
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299
(eval "$ac_compile") 2>conftest.er1
5301
grep -v '^ *+' conftest.er1 >conftest.err
5303
cat conftest.err >&5
5304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305
(exit $ac_status); } && {
5306
test -z "$ac_c_werror_flag" ||
5307
test ! -s conftest.err
5308
} && test -s conftest.$ac_objext; then
5309
ac_header_compiler=yes
5311
echo "$as_me: failed program was:" >&5
5312
sed 's/^/| /' conftest.$ac_ext >&5
5314
ac_header_compiler=no
5317
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5319
echo "${ECHO_T}$ac_header_compiler" >&6; }
5321
# Is the header present?
5322
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5323
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5324
cat >conftest.$ac_ext <<_ACEOF
5327
cat confdefs.h >>conftest.$ac_ext
5328
cat >>conftest.$ac_ext <<_ACEOF
5329
/* end confdefs.h. */
5330
#include <$ac_header>
5332
if { (ac_try="$ac_cpp conftest.$ac_ext"
5334
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335
*) ac_try_echo=$ac_try;;
5337
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5340
grep -v '^ *+' conftest.er1 >conftest.err
5342
cat conftest.err >&5
5343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344
(exit $ac_status); } >/dev/null && {
5345
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5346
test ! -s conftest.err
5348
ac_header_preproc=yes
5350
echo "$as_me: failed program was:" >&5
5351
sed 's/^/| /' conftest.$ac_ext >&5
5353
ac_header_preproc=no
5356
rm -f conftest.err conftest.$ac_ext
5357
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5358
echo "${ECHO_T}$ac_header_preproc" >&6; }
5360
# So? What about this header?
5361
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5363
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5364
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5365
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5366
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5367
ac_header_preproc=yes
5370
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5371
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5372
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5373
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5374
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5375
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5376
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5377
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5378
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5379
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5380
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5381
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5385
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5386
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5387
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5388
echo $ECHO_N "(cached) $ECHO_C" >&6
5390
eval "$as_ac_Header=\$ac_header_preproc"
5392
ac_res=`eval echo '${'$as_ac_Header'}'`
5393
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5394
echo "${ECHO_T}$ac_res" >&6; }
5397
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5398
cat >>confdefs.h <<_ACEOF
5399
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5412
for ac_header in sys/stat.h stat.h net/if.h sys/mman.h sys/resource.h dl.h
5414
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5416
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5417
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5418
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5419
echo $ECHO_N "(cached) $ECHO_C" >&6
5421
ac_res=`eval echo '${'$as_ac_Header'}'`
5422
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5423
echo "${ECHO_T}$ac_res" >&6; }
5425
# Is the header compilable?
5426
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5427
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5428
cat >conftest.$ac_ext <<_ACEOF
5431
cat confdefs.h >>conftest.$ac_ext
5432
cat >>conftest.$ac_ext <<_ACEOF
5433
/* end confdefs.h. */
5434
$ac_includes_default
5435
#include <$ac_header>
5437
rm -f conftest.$ac_objext
5438
if { (ac_try="$ac_compile"
5440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441
*) ac_try_echo=$ac_try;;
5443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444
(eval "$ac_compile") 2>conftest.er1
5446
grep -v '^ *+' conftest.er1 >conftest.err
5448
cat conftest.err >&5
5449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450
(exit $ac_status); } && {
5451
test -z "$ac_c_werror_flag" ||
5452
test ! -s conftest.err
5453
} && test -s conftest.$ac_objext; then
5454
ac_header_compiler=yes
5456
echo "$as_me: failed program was:" >&5
5457
sed 's/^/| /' conftest.$ac_ext >&5
5459
ac_header_compiler=no
5462
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5464
echo "${ECHO_T}$ac_header_compiler" >&6; }
5466
# Is the header present?
5467
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5468
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5469
cat >conftest.$ac_ext <<_ACEOF
5472
cat confdefs.h >>conftest.$ac_ext
5473
cat >>conftest.$ac_ext <<_ACEOF
5474
/* end confdefs.h. */
5475
#include <$ac_header>
5477
if { (ac_try="$ac_cpp conftest.$ac_ext"
5479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480
*) ac_try_echo=$ac_try;;
5482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5485
grep -v '^ *+' conftest.er1 >conftest.err
5487
cat conftest.err >&5
5488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489
(exit $ac_status); } >/dev/null && {
5490
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5491
test ! -s conftest.err
5493
ac_header_preproc=yes
5495
echo "$as_me: failed program was:" >&5
5496
sed 's/^/| /' conftest.$ac_ext >&5
5498
ac_header_preproc=no
5501
rm -f conftest.err conftest.$ac_ext
5502
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5503
echo "${ECHO_T}$ac_header_preproc" >&6; }
5505
# So? What about this header?
5506
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5508
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5509
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5510
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5511
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5512
ac_header_preproc=yes
5515
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5516
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5517
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5518
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5519
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5520
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5521
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5522
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5523
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5524
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5525
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5526
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5530
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5531
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5532
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5533
echo $ECHO_N "(cached) $ECHO_C" >&6
5535
eval "$as_ac_Header=\$ac_header_preproc"
5537
ac_res=`eval echo '${'$as_ac_Header'}'`
5538
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5539
echo "${ECHO_T}$ac_res" >&6; }
5542
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5543
cat >>confdefs.h <<_ACEOF
5544
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558
for ac_header in pty.h termio.h termios.h sgtty.h libutil.h setjmp.h values.h
5560
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5561
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5563
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5564
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565
echo $ECHO_N "(cached) $ECHO_C" >&6
5567
ac_res=`eval echo '${'$as_ac_Header'}'`
5568
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5569
echo "${ECHO_T}$ac_res" >&6; }
5571
# Is the header compilable?
5572
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5573
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5574
cat >conftest.$ac_ext <<_ACEOF
5577
cat confdefs.h >>conftest.$ac_ext
5578
cat >>conftest.$ac_ext <<_ACEOF
5579
/* end confdefs.h. */
5580
$ac_includes_default
5581
#include <$ac_header>
5583
rm -f conftest.$ac_objext
5584
if { (ac_try="$ac_compile"
5586
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587
*) ac_try_echo=$ac_try;;
5589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590
(eval "$ac_compile") 2>conftest.er1
5592
grep -v '^ *+' conftest.er1 >conftest.err
5594
cat conftest.err >&5
5595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596
(exit $ac_status); } && {
5597
test -z "$ac_c_werror_flag" ||
5598
test ! -s conftest.err
5599
} && test -s conftest.$ac_objext; then
5600
ac_header_compiler=yes
5602
echo "$as_me: failed program was:" >&5
5603
sed 's/^/| /' conftest.$ac_ext >&5
5605
ac_header_compiler=no
5608
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5610
echo "${ECHO_T}$ac_header_compiler" >&6; }
5612
# Is the header present?
5613
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5614
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5615
cat >conftest.$ac_ext <<_ACEOF
5618
cat confdefs.h >>conftest.$ac_ext
5619
cat >>conftest.$ac_ext <<_ACEOF
5620
/* end confdefs.h. */
5621
#include <$ac_header>
5623
if { (ac_try="$ac_cpp conftest.$ac_ext"
5625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626
*) ac_try_echo=$ac_try;;
5628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5631
grep -v '^ *+' conftest.er1 >conftest.err
5633
cat conftest.err >&5
5634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635
(exit $ac_status); } >/dev/null && {
5636
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5637
test ! -s conftest.err
5639
ac_header_preproc=yes
5641
echo "$as_me: failed program was:" >&5
5642
sed 's/^/| /' conftest.$ac_ext >&5
5644
ac_header_preproc=no
5647
rm -f conftest.err conftest.$ac_ext
5648
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5649
echo "${ECHO_T}$ac_header_preproc" >&6; }
5651
# So? What about this header?
5652
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5654
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5655
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5656
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5657
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5658
ac_header_preproc=yes
5661
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5662
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5663
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5664
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5665
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5666
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5667
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5668
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5669
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5670
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5671
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5672
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5676
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5677
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5678
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5679
echo $ECHO_N "(cached) $ECHO_C" >&6
5681
eval "$as_ac_Header=\$ac_header_preproc"
5683
ac_res=`eval echo '${'$as_ac_Header'}'`
5684
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5685
echo "${ECHO_T}$ac_res" >&6; }
5688
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5689
cat >>confdefs.h <<_ACEOF
5690
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1897
5699
case "$host" in
1899
cat >> confdefs.h <<\EOF
5701
cat >>confdefs.h <<\_ACEOF
1900
5702
#define HAVE_SYS_SOCKET_H 1
1903
cat >> confdefs.h <<\EOF
5705
cat >>confdefs.h <<\_ACEOF
1904
5706
#define HAVE_NETINET_IP_H 1
1907
cat >> confdefs.h <<\EOF
5709
cat >>confdefs.h <<\_ACEOF
1908
5710
#define HAVE_NETINET_TCP_H 1
1913
for ac_hdr in sys/socket.h netinet/ip.h netinet/tcp.h
5718
for ac_header in sys/socket.h netinet/ip.h netinet/tcp.h
1915
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1916
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1917
echo "configure:1918: checking for $ac_hdr" >&5
1918
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1919
echo $ac_n "(cached) $ac_c" 1>&6
1921
cat > conftest.$ac_ext <<EOF
1922
#line 1923 "configure"
1923
#include "confdefs.h"
1926
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927
{ (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929
if test -z "$ac_err"; then
1931
eval "ac_cv_header_$ac_safe=yes"
1934
echo "configure: failed program was:" >&5
1935
cat conftest.$ac_ext >&5
1937
eval "ac_cv_header_$ac_safe=no"
1941
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1942
echo "$ac_t""yes" 1>&6
1943
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1944
cat >> confdefs.h <<EOF
1945
#define $ac_tr_hdr 1
1949
echo "$ac_t""no" 1>&6
5720
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5721
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5722
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5723
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5724
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5725
echo $ECHO_N "(cached) $ECHO_C" >&6
5727
ac_res=`eval echo '${'$as_ac_Header'}'`
5728
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5729
echo "${ECHO_T}$ac_res" >&6; }
5731
# Is the header compilable?
5732
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5733
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5734
cat >conftest.$ac_ext <<_ACEOF
5737
cat confdefs.h >>conftest.$ac_ext
5738
cat >>conftest.$ac_ext <<_ACEOF
5739
/* end confdefs.h. */
5740
$ac_includes_default
5741
#include <$ac_header>
5743
rm -f conftest.$ac_objext
5744
if { (ac_try="$ac_compile"
5746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747
*) ac_try_echo=$ac_try;;
5749
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750
(eval "$ac_compile") 2>conftest.er1
5752
grep -v '^ *+' conftest.er1 >conftest.err
5754
cat conftest.err >&5
5755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756
(exit $ac_status); } && {
5757
test -z "$ac_c_werror_flag" ||
5758
test ! -s conftest.err
5759
} && test -s conftest.$ac_objext; then
5760
ac_header_compiler=yes
5762
echo "$as_me: failed program was:" >&5
5763
sed 's/^/| /' conftest.$ac_ext >&5
5765
ac_header_compiler=no
5768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5770
echo "${ECHO_T}$ac_header_compiler" >&6; }
5772
# Is the header present?
5773
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5774
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5775
cat >conftest.$ac_ext <<_ACEOF
5778
cat confdefs.h >>conftest.$ac_ext
5779
cat >>conftest.$ac_ext <<_ACEOF
5780
/* end confdefs.h. */
5781
#include <$ac_header>
5783
if { (ac_try="$ac_cpp conftest.$ac_ext"
5785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786
*) ac_try_echo=$ac_try;;
5788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5791
grep -v '^ *+' conftest.er1 >conftest.err
5793
cat conftest.err >&5
5794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795
(exit $ac_status); } >/dev/null && {
5796
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5797
test ! -s conftest.err
5799
ac_header_preproc=yes
5801
echo "$as_me: failed program was:" >&5
5802
sed 's/^/| /' conftest.$ac_ext >&5
5804
ac_header_preproc=no
5807
rm -f conftest.err conftest.$ac_ext
5808
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5809
echo "${ECHO_T}$ac_header_preproc" >&6; }
5811
# So? What about this header?
5812
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5814
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5815
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5816
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5817
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5818
ac_header_preproc=yes
5821
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5822
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5823
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5824
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5825
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5826
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5827
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5828
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5829
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5830
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5831
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5832
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5836
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5837
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5838
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5839
echo $ECHO_N "(cached) $ECHO_C" >&6
5841
eval "$as_ac_Header=\$ac_header_preproc"
5843
ac_res=`eval echo '${'$as_ac_Header'}'`
5844
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5845
echo "${ECHO_T}$ac_res" >&6; }
5848
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5849
cat >>confdefs.h <<_ACEOF
5850
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2215
6249
r.ru_stime.tv_sec = 0;
2216
6250
r.ru_stime.tv_usec = 0;
2217
6251
r.ru_majflt = r.ru_minflt = 0;
2219
case 0: /* Child. */
2220
sleep(1); /* Give up the CPU. */
2222
case -1: _exit(0); /* What can we do? */
2223
default: /* Parent. */
2225
sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2226
exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2227
&& r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6254
case 0: /* Child. */
6255
sleep(1); /* Give up the CPU. */
6258
case -1: /* What can we do? */
6261
default: /* Parent. */
6263
/* Avoid "text file busy" from rm on fast HP-UX machines. */
6265
return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6266
&& r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2231
if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6270
rm -f conftest$ac_exeext
6271
if { (ac_try="$ac_link"
6273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274
*) ac_try_echo=$ac_try;;
6276
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277
(eval "$ac_link") 2>&5
6279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6281
{ (case "(($ac_try" in
6282
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283
*) ac_try_echo=$ac_try;;
6285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286
(eval "$ac_try") 2>&5
6288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289
(exit $ac_status); }; }; then
2233
6290
ac_cv_func_wait3_rusage=yes
2235
echo "configure: failed program was:" >&5
2236
cat conftest.$ac_ext >&5
2238
ac_cv_func_wait3_rusage=no
2245
echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
6292
echo "$as_me: program exited with status $ac_status" >&5
6293
echo "$as_me: failed program was:" >&5
6294
sed 's/^/| /' conftest.$ac_ext >&5
6297
ac_cv_func_wait3_rusage=no
6299
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6304
{ echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
6305
echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6; }
2246
6306
if test $ac_cv_func_wait3_rusage = yes; then
2247
cat >> confdefs.h <<\EOF
6308
cat >>confdefs.h <<\_ACEOF
2248
6309
#define HAVE_WAIT3 1
2253
6318
for ac_func in waitpid wait4 mmap atexit
2255
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2256
echo "configure:2257: checking for $ac_func" >&5
2257
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2258
echo $ac_n "(cached) $ac_c" 1>&6
6320
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6321
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6322
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6323
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6324
echo $ECHO_N "(cached) $ECHO_C" >&6
2260
cat > conftest.$ac_ext <<EOF
2261
#line 2262 "configure"
2262
#include "confdefs.h"
6326
cat >conftest.$ac_ext <<_ACEOF
6329
cat confdefs.h >>conftest.$ac_ext
6330
cat >>conftest.$ac_ext <<_ACEOF
6331
/* end confdefs.h. */
6332
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6333
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6334
#define $ac_func innocuous_$ac_func
2263
6336
/* System header to define __stub macros and hopefully few prototypes,
2264
which can conflict with char $ac_func(); below. */
2266
/* Override any gcc2 internal prototype to avoid an error. */
2267
/* We use char because int might match the return type of a gcc2
2268
builtin and then its argument prototype would still apply. */
6337
which can conflict with char $ac_func (); below.
6338
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339
<limits.h> exists even on freestanding compilers. */
6342
# include <limits.h>
6344
# include <assert.h>
6349
/* Override any GCC internal prototype to avoid an error.
6350
Use char because int might match the return type of a GCC
6351
builtin and then its argument prototype would still apply. */
2273
6356
/* The GNU C library defines this for functions which it implements
2274
6357
to always fail with ENOSYS. Some functions are actually named
2275
6358
something starting with __ and the normal name is an alias. */
2276
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6359
#if defined __stub_$ac_func || defined __stub___$ac_func
2284
if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2286
eval "ac_cv_func_$ac_func=yes"
2288
echo "configure: failed program was:" >&5
2289
cat conftest.$ac_ext >&5
2291
eval "ac_cv_func_$ac_func=no"
2296
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2297
echo "$ac_t""yes" 1>&6
2298
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2299
cat >> confdefs.h <<EOF
2300
#define $ac_tr_func 1
2304
echo "$ac_t""no" 1>&6
6371
rm -f conftest.$ac_objext conftest$ac_exeext
6372
if { (ac_try="$ac_link"
6374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375
*) ac_try_echo=$ac_try;;
6377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378
(eval "$ac_link") 2>conftest.er1
6380
grep -v '^ *+' conftest.er1 >conftest.err
6382
cat conftest.err >&5
6383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384
(exit $ac_status); } && {
6385
test -z "$ac_c_werror_flag" ||
6386
test ! -s conftest.err
6387
} && test -s conftest$ac_exeext &&
6388
$as_test_x conftest$ac_exeext; then
6389
eval "$as_ac_var=yes"
6391
echo "$as_me: failed program was:" >&5
6392
sed 's/^/| /' conftest.$ac_ext >&5
6394
eval "$as_ac_var=no"
6397
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6398
conftest$ac_exeext conftest.$ac_ext
6400
ac_res=`eval echo '${'$as_ac_var'}'`
6401
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6402
echo "${ECHO_T}$ac_res" >&6; }
6403
if test `eval echo '${'$as_ac_var'}'` = yes; then
6404
cat >>confdefs.h <<_ACEOF
6405
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2308
6417
for ac_func in lstat memmove gettimeofday gethrtime getrusage rand
2310
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2311
echo "configure:2312: checking for $ac_func" >&5
2312
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2313
echo $ac_n "(cached) $ac_c" 1>&6
6419
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6420
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6421
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6422
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6423
echo $ECHO_N "(cached) $ECHO_C" >&6
2315
cat > conftest.$ac_ext <<EOF
2316
#line 2317 "configure"
2317
#include "confdefs.h"
6425
cat >conftest.$ac_ext <<_ACEOF
6428
cat confdefs.h >>conftest.$ac_ext
6429
cat >>conftest.$ac_ext <<_ACEOF
6430
/* end confdefs.h. */
6431
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6432
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6433
#define $ac_func innocuous_$ac_func
2318
6435
/* System header to define __stub macros and hopefully few prototypes,
2319
which can conflict with char $ac_func(); below. */
2321
/* Override any gcc2 internal prototype to avoid an error. */
2322
/* We use char because int might match the return type of a gcc2
2323
builtin and then its argument prototype would still apply. */
6436
which can conflict with char $ac_func (); below.
6437
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6438
<limits.h> exists even on freestanding compilers. */
6441
# include <limits.h>
6443
# include <assert.h>
6448
/* Override any GCC internal prototype to avoid an error.
6449
Use char because int might match the return type of a GCC
6450
builtin and then its argument prototype would still apply. */
2328
6455
/* The GNU C library defines this for functions which it implements
2329
6456
to always fail with ENOSYS. Some functions are actually named
2330
6457
something starting with __ and the normal name is an alias. */
2331
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6458
#if defined __stub_$ac_func || defined __stub___$ac_func
2339
if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2341
eval "ac_cv_func_$ac_func=yes"
2343
echo "configure: failed program was:" >&5
2344
cat conftest.$ac_ext >&5
2346
eval "ac_cv_func_$ac_func=no"
2351
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2352
echo "$ac_t""yes" 1>&6
2353
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2354
cat >> confdefs.h <<EOF
2355
#define $ac_tr_func 1
2359
echo "$ac_t""no" 1>&6
6470
rm -f conftest.$ac_objext conftest$ac_exeext
6471
if { (ac_try="$ac_link"
6473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474
*) ac_try_echo=$ac_try;;
6476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477
(eval "$ac_link") 2>conftest.er1
6479
grep -v '^ *+' conftest.er1 >conftest.err
6481
cat conftest.err >&5
6482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483
(exit $ac_status); } && {
6484
test -z "$ac_c_werror_flag" ||
6485
test ! -s conftest.err
6486
} && test -s conftest$ac_exeext &&
6487
$as_test_x conftest$ac_exeext; then
6488
eval "$as_ac_var=yes"
6490
echo "$as_me: failed program was:" >&5
6491
sed 's/^/| /' conftest.$ac_ext >&5
6493
eval "$as_ac_var=no"
6496
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6497
conftest$ac_exeext conftest.$ac_ext
6499
ac_res=`eval echo '${'$as_ac_var'}'`
6500
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6501
echo "${ECHO_T}$ac_res" >&6; }
6502
if test `eval echo '${'$as_ac_var'}'` = yes; then
6503
cat >>confdefs.h <<_ACEOF
6504
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2363
6514
for ac_func in strchr memcpy select poll
2365
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2366
echo "configure:2367: checking for $ac_func" >&5
2367
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2368
echo $ac_n "(cached) $ac_c" 1>&6
6516
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6517
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6518
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6519
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6520
echo $ECHO_N "(cached) $ECHO_C" >&6
2370
cat > conftest.$ac_ext <<EOF
2371
#line 2372 "configure"
2372
#include "confdefs.h"
6522
cat >conftest.$ac_ext <<_ACEOF
6525
cat confdefs.h >>conftest.$ac_ext
6526
cat >>conftest.$ac_ext <<_ACEOF
6527
/* end confdefs.h. */
6528
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6529
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6530
#define $ac_func innocuous_$ac_func
2373
6532
/* System header to define __stub macros and hopefully few prototypes,
2374
which can conflict with char $ac_func(); below. */
2376
/* Override any gcc2 internal prototype to avoid an error. */
2377
/* We use char because int might match the return type of a gcc2
2378
builtin and then its argument prototype would still apply. */
6533
which can conflict with char $ac_func (); below.
6534
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6535
<limits.h> exists even on freestanding compilers. */
6538
# include <limits.h>
6540
# include <assert.h>
6545
/* Override any GCC internal prototype to avoid an error.
6546
Use char because int might match the return type of a GCC
6547
builtin and then its argument prototype would still apply. */
2383
6552
/* The GNU C library defines this for functions which it implements
2384
6553
to always fail with ENOSYS. Some functions are actually named
2385
6554
something starting with __ and the normal name is an alias. */
2386
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555
#if defined __stub_$ac_func || defined __stub___$ac_func
2394
if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2396
eval "ac_cv_func_$ac_func=yes"
2398
echo "configure: failed program was:" >&5
2399
cat conftest.$ac_ext >&5
2401
eval "ac_cv_func_$ac_func=no"
2406
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2407
echo "$ac_t""yes" 1>&6
2408
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2409
cat >> confdefs.h <<EOF
2410
#define $ac_tr_func 1
2414
echo "$ac_t""no" 1>&6
6567
rm -f conftest.$ac_objext conftest$ac_exeext
6568
if { (ac_try="$ac_link"
6570
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571
*) ac_try_echo=$ac_try;;
6573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574
(eval "$ac_link") 2>conftest.er1
6576
grep -v '^ *+' conftest.er1 >conftest.err
6578
cat conftest.err >&5
6579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
(exit $ac_status); } && {
6581
test -z "$ac_c_werror_flag" ||
6582
test ! -s conftest.err
6583
} && test -s conftest$ac_exeext &&
6584
$as_test_x conftest$ac_exeext; then
6585
eval "$as_ac_var=yes"
6587
echo "$as_me: failed program was:" >&5
6588
sed 's/^/| /' conftest.$ac_ext >&5
6590
eval "$as_ac_var=no"
6593
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6594
conftest$ac_exeext conftest.$ac_ext
6596
ac_res=`eval echo '${'$as_ac_var'}'`
6597
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6598
echo "${ECHO_T}$ac_res" >&6; }
6599
if test `eval echo '${'$as_ac_var'}'` = yes; then
6600
cat >>confdefs.h <<_ACEOF
6601
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2418
echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
2419
echo "configure:2420: checking for vsnprintf" >&5
2420
if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
2421
echo $ac_n "(cached) $ac_c" 1>&6
6607
{ echo "$as_me:$LINENO: checking for vsnprintf" >&5
6608
echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; }
6609
if test "${ac_cv_func_vsnprintf+set}" = set; then
6610
echo $ECHO_N "(cached) $ECHO_C" >&6
2423
cat > conftest.$ac_ext <<EOF
2424
#line 2425 "configure"
2425
#include "confdefs.h"
6612
cat >conftest.$ac_ext <<_ACEOF
6615
cat confdefs.h >>conftest.$ac_ext
6616
cat >>conftest.$ac_ext <<_ACEOF
6617
/* end confdefs.h. */
6618
/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
6619
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6620
#define vsnprintf innocuous_vsnprintf
2426
6622
/* System header to define __stub macros and hopefully few prototypes,
2427
which can conflict with char vsnprintf(); below. */
2429
/* Override any gcc2 internal prototype to avoid an error. */
2430
/* We use char because int might match the return type of a gcc2
2431
builtin and then its argument prototype would still apply. */
6623
which can conflict with char vsnprintf (); below.
6624
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6625
<limits.h> exists even on freestanding compilers. */
6628
# include <limits.h>
6630
# include <assert.h>
6635
/* Override any GCC internal prototype to avoid an error.
6636
Use char because int might match the return type of a GCC
6637
builtin and then its argument prototype would still apply. */
2436
6642
/* The GNU C library defines this for functions which it implements
2437
6643
to always fail with ENOSYS. Some functions are actually named
2438
6644
something starting with __ and the normal name is an alias. */
2439
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6645
#if defined __stub_vsnprintf || defined __stub___vsnprintf
2447
if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2449
eval "ac_cv_func_vsnprintf=yes"
6652
return vsnprintf ();
6657
rm -f conftest.$ac_objext conftest$ac_exeext
6658
if { (ac_try="$ac_link"
6660
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661
*) ac_try_echo=$ac_try;;
6663
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664
(eval "$ac_link") 2>conftest.er1
6666
grep -v '^ *+' conftest.er1 >conftest.err
6668
cat conftest.err >&5
6669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670
(exit $ac_status); } && {
6671
test -z "$ac_c_werror_flag" ||
6672
test ! -s conftest.err
6673
} && test -s conftest$ac_exeext &&
6674
$as_test_x conftest$ac_exeext; then
6675
ac_cv_func_vsnprintf=yes
2451
echo "configure: failed program was:" >&5
2452
cat conftest.$ac_ext >&5
2454
eval "ac_cv_func_vsnprintf=no"
2459
if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
2460
echo "$ac_t""yes" 1>&6
2461
cat >> confdefs.h <<\EOF
6677
echo "$as_me: failed program was:" >&5
6678
sed 's/^/| /' conftest.$ac_ext >&5
6680
ac_cv_func_vsnprintf=no
6683
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6684
conftest$ac_exeext conftest.$ac_ext
6686
{ echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
6687
echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; }
6688
if test $ac_cv_func_vsnprintf = yes; then
6689
cat >>confdefs.h <<\_ACEOF
2462
6690
#define HAVE_VSNPRINTF 1
2466
echo "$ac_t""no" 1>&6
2469
6700
for ac_func in bzero bcopy setsid rint mkstemp
2471
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2472
echo "configure:2473: checking for $ac_func" >&5
2473
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2474
echo $ac_n "(cached) $ac_c" 1>&6
6702
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6704
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6705
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6706
echo $ECHO_N "(cached) $ECHO_C" >&6
2476
cat > conftest.$ac_ext <<EOF
2477
#line 2478 "configure"
2478
#include "confdefs.h"
6708
cat >conftest.$ac_ext <<_ACEOF
6711
cat confdefs.h >>conftest.$ac_ext
6712
cat >>conftest.$ac_ext <<_ACEOF
6713
/* end confdefs.h. */
6714
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6715
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6716
#define $ac_func innocuous_$ac_func
2479
6718
/* System header to define __stub macros and hopefully few prototypes,
2480
which can conflict with char $ac_func(); below. */
2482
/* Override any gcc2 internal prototype to avoid an error. */
2483
/* We use char because int might match the return type of a gcc2
2484
builtin and then its argument prototype would still apply. */
6719
which can conflict with char $ac_func (); below.
6720
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721
<limits.h> exists even on freestanding compilers. */
6724
# include <limits.h>
6726
# include <assert.h>
6731
/* Override any GCC internal prototype to avoid an error.
6732
Use char because int might match the return type of a GCC
6733
builtin and then its argument prototype would still apply. */
2489
6738
/* The GNU C library defines this for functions which it implements
2490
6739
to always fail with ENOSYS. Some functions are actually named
2491
6740
something starting with __ and the normal name is an alias. */
2492
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6741
#if defined __stub_$ac_func || defined __stub___$ac_func
2500
if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2502
eval "ac_cv_func_$ac_func=yes"
2504
echo "configure: failed program was:" >&5
2505
cat conftest.$ac_ext >&5
2507
eval "ac_cv_func_$ac_func=no"
2512
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2513
echo "$ac_t""yes" 1>&6
2514
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2515
cat >> confdefs.h <<EOF
2516
#define $ac_tr_func 1
2520
echo "$ac_t""no" 1>&6
6753
rm -f conftest.$ac_objext conftest$ac_exeext
6754
if { (ac_try="$ac_link"
6756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757
*) ac_try_echo=$ac_try;;
6759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760
(eval "$ac_link") 2>conftest.er1
6762
grep -v '^ *+' conftest.er1 >conftest.err
6764
cat conftest.err >&5
6765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766
(exit $ac_status); } && {
6767
test -z "$ac_c_werror_flag" ||
6768
test ! -s conftest.err
6769
} && test -s conftest$ac_exeext &&
6770
$as_test_x conftest$ac_exeext; then
6771
eval "$as_ac_var=yes"
6773
echo "$as_me: failed program was:" >&5
6774
sed 's/^/| /' conftest.$ac_ext >&5
6776
eval "$as_ac_var=no"
6779
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780
conftest$ac_exeext conftest.$ac_ext
6782
ac_res=`eval echo '${'$as_ac_var'}'`
6783
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6784
echo "${ECHO_T}$ac_res" >&6; }
6785
if test `eval echo '${'$as_ac_var'}'` = yes; then
6786
cat >>confdefs.h <<_ACEOF
6787
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2524
6797
for ac_func in addr2ascii inet_neta setproctitle _exit
2526
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2527
echo "configure:2528: checking for $ac_func" >&5
2528
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2529
echo $ac_n "(cached) $ac_c" 1>&6
6799
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6800
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6801
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6802
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6803
echo $ECHO_N "(cached) $ECHO_C" >&6
2531
cat > conftest.$ac_ext <<EOF
2532
#line 2533 "configure"
2533
#include "confdefs.h"
6805
cat >conftest.$ac_ext <<_ACEOF
6808
cat confdefs.h >>conftest.$ac_ext
6809
cat >>conftest.$ac_ext <<_ACEOF
6810
/* end confdefs.h. */
6811
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6812
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6813
#define $ac_func innocuous_$ac_func
2534
6815
/* System header to define __stub macros and hopefully few prototypes,
2535
which can conflict with char $ac_func(); below. */
2537
/* Override any gcc2 internal prototype to avoid an error. */
2538
/* We use char because int might match the return type of a gcc2
2539
builtin and then its argument prototype would still apply. */
6816
which can conflict with char $ac_func (); below.
6817
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6818
<limits.h> exists even on freestanding compilers. */
6821
# include <limits.h>
6823
# include <assert.h>
6828
/* Override any GCC internal prototype to avoid an error.
6829
Use char because int might match the return type of a GCC
6830
builtin and then its argument prototype would still apply. */
2544
6835
/* The GNU C library defines this for functions which it implements
2545
6836
to always fail with ENOSYS. Some functions are actually named
2546
6837
something starting with __ and the normal name is an alias. */
2547
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6838
#if defined __stub_$ac_func || defined __stub___$ac_func
2555
if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2557
eval "ac_cv_func_$ac_func=yes"
2559
echo "configure: failed program was:" >&5
2560
cat conftest.$ac_ext >&5
2562
eval "ac_cv_func_$ac_func=no"
2567
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2568
echo "$ac_t""yes" 1>&6
2569
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2570
cat >> confdefs.h <<EOF
2571
#define $ac_tr_func 1
2575
echo "$ac_t""no" 1>&6
6850
rm -f conftest.$ac_objext conftest$ac_exeext
6851
if { (ac_try="$ac_link"
6853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854
*) ac_try_echo=$ac_try;;
6856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857
(eval "$ac_link") 2>conftest.er1
6859
grep -v '^ *+' conftest.er1 >conftest.err
6861
cat conftest.err >&5
6862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863
(exit $ac_status); } && {
6864
test -z "$ac_c_werror_flag" ||
6865
test ! -s conftest.err
6866
} && test -s conftest$ac_exeext &&
6867
$as_test_x conftest$ac_exeext; then
6868
eval "$as_ac_var=yes"
6870
echo "$as_me: failed program was:" >&5
6871
sed 's/^/| /' conftest.$ac_ext >&5
6873
eval "$as_ac_var=no"
6876
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6877
conftest$ac_exeext conftest.$ac_ext
6879
ac_res=`eval echo '${'$as_ac_var'}'`
6880
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6881
echo "${ECHO_T}$ac_res" >&6; }
6882
if test `eval echo '${'$as_ac_var'}'` = yes; then
6883
cat >>confdefs.h <<_ACEOF
6884
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2580
echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
2581
echo "configure:2582: checking size of unsigned int" >&5
2582
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
2583
echo $ac_n "(cached) $ac_c" 1>&6
6891
{ echo "$as_me:$LINENO: checking for unsigned int" >&5
6892
echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
6893
if test "${ac_cv_type_unsigned_int+set}" = set; then
6894
echo $ECHO_N "(cached) $ECHO_C" >&6
6896
cat >conftest.$ac_ext <<_ACEOF
6899
cat confdefs.h >>conftest.$ac_ext
6900
cat >>conftest.$ac_ext <<_ACEOF
6901
/* end confdefs.h. */
6902
$ac_includes_default
6903
typedef unsigned int ac__type_new_;
6907
if ((ac__type_new_ *) 0)
6909
if (sizeof (ac__type_new_))
6915
rm -f conftest.$ac_objext
6916
if { (ac_try="$ac_compile"
6918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919
*) ac_try_echo=$ac_try;;
6921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922
(eval "$ac_compile") 2>conftest.er1
6924
grep -v '^ *+' conftest.er1 >conftest.err
6926
cat conftest.err >&5
6927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928
(exit $ac_status); } && {
6929
test -z "$ac_c_werror_flag" ||
6930
test ! -s conftest.err
6931
} && test -s conftest.$ac_objext; then
6932
ac_cv_type_unsigned_int=yes
6934
echo "$as_me: failed program was:" >&5
6935
sed 's/^/| /' conftest.$ac_ext >&5
6937
ac_cv_type_unsigned_int=no
6940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
6943
echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
6945
# The cast to long int works around a bug in the HP C Compiler
6946
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6947
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6948
# This bug is HP SR number 8606223364.
6949
{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
6950
echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
6951
if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
6952
echo $ECHO_N "(cached) $ECHO_C" >&6
2585
6954
if test "$cross_compiling" = yes; then
2586
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2588
cat > conftest.$ac_ext <<EOF
2589
#line 2590 "configure"
2590
#include "confdefs.h"
6955
# Depending upon the size, compute the lo and hi bounds.
6956
cat >conftest.$ac_ext <<_ACEOF
6959
cat confdefs.h >>conftest.$ac_ext
6960
cat >>conftest.$ac_ext <<_ACEOF
6961
/* end confdefs.h. */
6962
$ac_includes_default
6963
typedef unsigned int ac__type_sizeof_;
6967
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6974
rm -f conftest.$ac_objext
6975
if { (ac_try="$ac_compile"
6977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978
*) ac_try_echo=$ac_try;;
6980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981
(eval "$ac_compile") 2>conftest.er1
6983
grep -v '^ *+' conftest.er1 >conftest.err
6985
cat conftest.err >&5
6986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987
(exit $ac_status); } && {
6988
test -z "$ac_c_werror_flag" ||
6989
test ! -s conftest.err
6990
} && test -s conftest.$ac_objext; then
6993
cat >conftest.$ac_ext <<_ACEOF
6996
cat confdefs.h >>conftest.$ac_ext
6997
cat >>conftest.$ac_ext <<_ACEOF
6998
/* end confdefs.h. */
6999
$ac_includes_default
7000
typedef unsigned int ac__type_sizeof_;
7004
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7011
rm -f conftest.$ac_objext
7012
if { (ac_try="$ac_compile"
7014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015
*) ac_try_echo=$ac_try;;
7017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018
(eval "$ac_compile") 2>conftest.er1
7020
grep -v '^ *+' conftest.er1 >conftest.err
7022
cat conftest.err >&5
7023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024
(exit $ac_status); } && {
7025
test -z "$ac_c_werror_flag" ||
7026
test ! -s conftest.err
7027
} && test -s conftest.$ac_objext; then
7028
ac_hi=$ac_mid; break
7030
echo "$as_me: failed program was:" >&5
7031
sed 's/^/| /' conftest.$ac_ext >&5
7033
ac_lo=`expr $ac_mid + 1`
7034
if test $ac_lo -le $ac_mid; then
7038
ac_mid=`expr 2 '*' $ac_mid + 1`
7041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044
echo "$as_me: failed program was:" >&5
7045
sed 's/^/| /' conftest.$ac_ext >&5
7047
cat >conftest.$ac_ext <<_ACEOF
7050
cat confdefs.h >>conftest.$ac_ext
7051
cat >>conftest.$ac_ext <<_ACEOF
7052
/* end confdefs.h. */
7053
$ac_includes_default
7054
typedef unsigned int ac__type_sizeof_;
7058
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7065
rm -f conftest.$ac_objext
7066
if { (ac_try="$ac_compile"
7068
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069
*) ac_try_echo=$ac_try;;
7071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072
(eval "$ac_compile") 2>conftest.er1
7074
grep -v '^ *+' conftest.er1 >conftest.err
7076
cat conftest.err >&5
7077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078
(exit $ac_status); } && {
7079
test -z "$ac_c_werror_flag" ||
7080
test ! -s conftest.err
7081
} && test -s conftest.$ac_objext; then
7084
cat >conftest.$ac_ext <<_ACEOF
7087
cat confdefs.h >>conftest.$ac_ext
7088
cat >>conftest.$ac_ext <<_ACEOF
7089
/* end confdefs.h. */
7090
$ac_includes_default
7091
typedef unsigned int ac__type_sizeof_;
7095
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7102
rm -f conftest.$ac_objext
7103
if { (ac_try="$ac_compile"
7105
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106
*) ac_try_echo=$ac_try;;
7108
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109
(eval "$ac_compile") 2>conftest.er1
7111
grep -v '^ *+' conftest.er1 >conftest.err
7113
cat conftest.err >&5
7114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115
(exit $ac_status); } && {
7116
test -z "$ac_c_werror_flag" ||
7117
test ! -s conftest.err
7118
} && test -s conftest.$ac_objext; then
7119
ac_lo=$ac_mid; break
7121
echo "$as_me: failed program was:" >&5
7122
sed 's/^/| /' conftest.$ac_ext >&5
7124
ac_hi=`expr '(' $ac_mid ')' - 1`
7125
if test $ac_mid -le $ac_hi; then
7129
ac_mid=`expr 2 '*' $ac_mid`
7132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135
echo "$as_me: failed program was:" >&5
7136
sed 's/^/| /' conftest.$ac_ext >&5
7141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145
# Binary search between lo and hi bounds.
7146
while test "x$ac_lo" != "x$ac_hi"; do
7147
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7148
cat >conftest.$ac_ext <<_ACEOF
7151
cat confdefs.h >>conftest.$ac_ext
7152
cat >>conftest.$ac_ext <<_ACEOF
7153
/* end confdefs.h. */
7154
$ac_includes_default
7155
typedef unsigned int ac__type_sizeof_;
7159
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7166
rm -f conftest.$ac_objext
7167
if { (ac_try="$ac_compile"
7169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170
*) ac_try_echo=$ac_try;;
7172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173
(eval "$ac_compile") 2>conftest.er1
7175
grep -v '^ *+' conftest.er1 >conftest.err
7177
cat conftest.err >&5
7178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179
(exit $ac_status); } && {
7180
test -z "$ac_c_werror_flag" ||
7181
test ! -s conftest.err
7182
} && test -s conftest.$ac_objext; then
7185
echo "$as_me: failed program was:" >&5
7186
sed 's/^/| /' conftest.$ac_ext >&5
7188
ac_lo=`expr '(' $ac_mid ')' + 1`
7191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194
?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
7195
'') if test "$ac_cv_type_unsigned_int" = yes; then
7196
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
7197
See \`config.log' for more details." >&5
7198
echo "$as_me: error: cannot compute sizeof (unsigned int)
7199
See \`config.log' for more details." >&2;}
7200
{ (exit 77); exit 77; }; }
7202
ac_cv_sizeof_unsigned_int=0
7206
cat >conftest.$ac_ext <<_ACEOF
7209
cat confdefs.h >>conftest.$ac_ext
7210
cat >>conftest.$ac_ext <<_ACEOF
7211
/* end confdefs.h. */
7212
$ac_includes_default
7213
typedef unsigned int ac__type_sizeof_;
7214
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7215
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
2591
7216
#include <stdio.h>
2592
#include <sys/types.h>
2595
FILE *f=fopen("conftestval", "w");
2597
fprintf(f, "%d\n", sizeof(unsigned int));
7222
FILE *f = fopen ("conftest.val", "w");
7225
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7227
long int i = longval ();
7228
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7230
fprintf (f, "%ld\n", i);
7234
unsigned long int i = ulongval ();
7235
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7237
fprintf (f, "%lu\n", i);
7239
return ferror (f) || fclose (f) != 0;
2601
if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2603
ac_cv_sizeof_unsigned_int=`cat conftestval`
7245
rm -f conftest$ac_exeext
7246
if { (ac_try="$ac_link"
7248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249
*) ac_try_echo=$ac_try;;
7251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252
(eval "$ac_link") 2>&5
7254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7256
{ (case "(($ac_try" in
7257
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258
*) ac_try_echo=$ac_try;;
7260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261
(eval "$ac_try") 2>&5
7263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264
(exit $ac_status); }; }; then
7265
ac_cv_sizeof_unsigned_int=`cat conftest.val`
2605
echo "configure: failed program was:" >&5
2606
cat conftest.$ac_ext >&5
2608
ac_cv_sizeof_unsigned_int=0
2614
echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
2615
cat >> confdefs.h <<EOF
7267
echo "$as_me: program exited with status $ac_status" >&5
7268
echo "$as_me: failed program was:" >&5
7269
sed 's/^/| /' conftest.$ac_ext >&5
7272
if test "$ac_cv_type_unsigned_int" = yes; then
7273
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
7274
See \`config.log' for more details." >&5
7275
echo "$as_me: error: cannot compute sizeof (unsigned int)
7276
See \`config.log' for more details." >&2;}
7277
{ (exit 77); exit 77; }; }
7279
ac_cv_sizeof_unsigned_int=0
7282
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7286
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
7287
echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
7291
cat >>confdefs.h <<_ACEOF
2616
7292
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
2620
echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
2621
echo "configure:2622: checking size of unsigned long" >&5
2622
if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
2623
echo $ac_n "(cached) $ac_c" 1>&6
7296
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
7297
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7298
if test "${ac_cv_type_unsigned_long+set}" = set; then
7299
echo $ECHO_N "(cached) $ECHO_C" >&6
7301
cat >conftest.$ac_ext <<_ACEOF
7304
cat confdefs.h >>conftest.$ac_ext
7305
cat >>conftest.$ac_ext <<_ACEOF
7306
/* end confdefs.h. */
7307
$ac_includes_default
7308
typedef unsigned long ac__type_new_;
7312
if ((ac__type_new_ *) 0)
7314
if (sizeof (ac__type_new_))
7320
rm -f conftest.$ac_objext
7321
if { (ac_try="$ac_compile"
7323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324
*) ac_try_echo=$ac_try;;
7326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327
(eval "$ac_compile") 2>conftest.er1
7329
grep -v '^ *+' conftest.er1 >conftest.err
7331
cat conftest.err >&5
7332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333
(exit $ac_status); } && {
7334
test -z "$ac_c_werror_flag" ||
7335
test ! -s conftest.err
7336
} && test -s conftest.$ac_objext; then
7337
ac_cv_type_unsigned_long=yes
7339
echo "$as_me: failed program was:" >&5
7340
sed 's/^/| /' conftest.$ac_ext >&5
7342
ac_cv_type_unsigned_long=no
7345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7348
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7350
# The cast to long int works around a bug in the HP C Compiler
7351
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7352
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7353
# This bug is HP SR number 8606223364.
7354
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
7355
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7356
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7357
echo $ECHO_N "(cached) $ECHO_C" >&6
2625
7359
if test "$cross_compiling" = yes; then
2626
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2628
cat > conftest.$ac_ext <<EOF
2629
#line 2630 "configure"
2630
#include "confdefs.h"
7360
# Depending upon the size, compute the lo and hi bounds.
7361
cat >conftest.$ac_ext <<_ACEOF
7364
cat confdefs.h >>conftest.$ac_ext
7365
cat >>conftest.$ac_ext <<_ACEOF
7366
/* end confdefs.h. */
7367
$ac_includes_default
7368
typedef unsigned long ac__type_sizeof_;
7372
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7379
rm -f conftest.$ac_objext
7380
if { (ac_try="$ac_compile"
7382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383
*) ac_try_echo=$ac_try;;
7385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386
(eval "$ac_compile") 2>conftest.er1
7388
grep -v '^ *+' conftest.er1 >conftest.err
7390
cat conftest.err >&5
7391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392
(exit $ac_status); } && {
7393
test -z "$ac_c_werror_flag" ||
7394
test ! -s conftest.err
7395
} && test -s conftest.$ac_objext; then
7398
cat >conftest.$ac_ext <<_ACEOF
7401
cat confdefs.h >>conftest.$ac_ext
7402
cat >>conftest.$ac_ext <<_ACEOF
7403
/* end confdefs.h. */
7404
$ac_includes_default
7405
typedef unsigned long ac__type_sizeof_;
7409
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7416
rm -f conftest.$ac_objext
7417
if { (ac_try="$ac_compile"
7419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420
*) ac_try_echo=$ac_try;;
7422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423
(eval "$ac_compile") 2>conftest.er1
7425
grep -v '^ *+' conftest.er1 >conftest.err
7427
cat conftest.err >&5
7428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429
(exit $ac_status); } && {
7430
test -z "$ac_c_werror_flag" ||
7431
test ! -s conftest.err
7432
} && test -s conftest.$ac_objext; then
7433
ac_hi=$ac_mid; break
7435
echo "$as_me: failed program was:" >&5
7436
sed 's/^/| /' conftest.$ac_ext >&5
7438
ac_lo=`expr $ac_mid + 1`
7439
if test $ac_lo -le $ac_mid; then
7443
ac_mid=`expr 2 '*' $ac_mid + 1`
7446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449
echo "$as_me: failed program was:" >&5
7450
sed 's/^/| /' conftest.$ac_ext >&5
7452
cat >conftest.$ac_ext <<_ACEOF
7455
cat confdefs.h >>conftest.$ac_ext
7456
cat >>conftest.$ac_ext <<_ACEOF
7457
/* end confdefs.h. */
7458
$ac_includes_default
7459
typedef unsigned long ac__type_sizeof_;
7463
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7470
rm -f conftest.$ac_objext
7471
if { (ac_try="$ac_compile"
7473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474
*) ac_try_echo=$ac_try;;
7476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477
(eval "$ac_compile") 2>conftest.er1
7479
grep -v '^ *+' conftest.er1 >conftest.err
7481
cat conftest.err >&5
7482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483
(exit $ac_status); } && {
7484
test -z "$ac_c_werror_flag" ||
7485
test ! -s conftest.err
7486
} && test -s conftest.$ac_objext; then
7489
cat >conftest.$ac_ext <<_ACEOF
7492
cat confdefs.h >>conftest.$ac_ext
7493
cat >>conftest.$ac_ext <<_ACEOF
7494
/* end confdefs.h. */
7495
$ac_includes_default
7496
typedef unsigned long ac__type_sizeof_;
7500
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7507
rm -f conftest.$ac_objext
7508
if { (ac_try="$ac_compile"
7510
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511
*) ac_try_echo=$ac_try;;
7513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7514
(eval "$ac_compile") 2>conftest.er1
7516
grep -v '^ *+' conftest.er1 >conftest.err
7518
cat conftest.err >&5
7519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520
(exit $ac_status); } && {
7521
test -z "$ac_c_werror_flag" ||
7522
test ! -s conftest.err
7523
} && test -s conftest.$ac_objext; then
7524
ac_lo=$ac_mid; break
7526
echo "$as_me: failed program was:" >&5
7527
sed 's/^/| /' conftest.$ac_ext >&5
7529
ac_hi=`expr '(' $ac_mid ')' - 1`
7530
if test $ac_mid -le $ac_hi; then
7534
ac_mid=`expr 2 '*' $ac_mid`
7537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540
echo "$as_me: failed program was:" >&5
7541
sed 's/^/| /' conftest.$ac_ext >&5
7546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550
# Binary search between lo and hi bounds.
7551
while test "x$ac_lo" != "x$ac_hi"; do
7552
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7553
cat >conftest.$ac_ext <<_ACEOF
7556
cat confdefs.h >>conftest.$ac_ext
7557
cat >>conftest.$ac_ext <<_ACEOF
7558
/* end confdefs.h. */
7559
$ac_includes_default
7560
typedef unsigned long ac__type_sizeof_;
7564
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7571
rm -f conftest.$ac_objext
7572
if { (ac_try="$ac_compile"
7574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575
*) ac_try_echo=$ac_try;;
7577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578
(eval "$ac_compile") 2>conftest.er1
7580
grep -v '^ *+' conftest.er1 >conftest.err
7582
cat conftest.err >&5
7583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584
(exit $ac_status); } && {
7585
test -z "$ac_c_werror_flag" ||
7586
test ! -s conftest.err
7587
} && test -s conftest.$ac_objext; then
7590
echo "$as_me: failed program was:" >&5
7591
sed 's/^/| /' conftest.$ac_ext >&5
7593
ac_lo=`expr '(' $ac_mid ')' + 1`
7596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7600
'') if test "$ac_cv_type_unsigned_long" = yes; then
7601
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7602
See \`config.log' for more details." >&5
7603
echo "$as_me: error: cannot compute sizeof (unsigned long)
7604
See \`config.log' for more details." >&2;}
7605
{ (exit 77); exit 77; }; }
7607
ac_cv_sizeof_unsigned_long=0
7611
cat >conftest.$ac_ext <<_ACEOF
7614
cat confdefs.h >>conftest.$ac_ext
7615
cat >>conftest.$ac_ext <<_ACEOF
7616
/* end confdefs.h. */
7617
$ac_includes_default
7618
typedef unsigned long ac__type_sizeof_;
7619
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7620
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
2631
7621
#include <stdio.h>
2632
#include <sys/types.h>
2635
FILE *f=fopen("conftestval", "w");
2637
fprintf(f, "%d\n", sizeof(unsigned long));
7627
FILE *f = fopen ("conftest.val", "w");
7630
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7632
long int i = longval ();
7633
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7635
fprintf (f, "%ld\n", i);
7639
unsigned long int i = ulongval ();
7640
if (i != ((long int) (sizeof (ac__type_sizeof_))))
7642
fprintf (f, "%lu\n", i);
7644
return ferror (f) || fclose (f) != 0;
2641
if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2643
ac_cv_sizeof_unsigned_long=`cat conftestval`
7650
rm -f conftest$ac_exeext
7651
if { (ac_try="$ac_link"
7653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654
*) ac_try_echo=$ac_try;;
7656
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657
(eval "$ac_link") 2>&5
7659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7661
{ (case "(($ac_try" in
7662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663
*) ac_try_echo=$ac_try;;
7665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666
(eval "$ac_try") 2>&5
7668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669
(exit $ac_status); }; }; then
7670
ac_cv_sizeof_unsigned_long=`cat conftest.val`
2645
echo "configure: failed program was:" >&5
2646
cat conftest.$ac_ext >&5
2648
ac_cv_sizeof_unsigned_long=0
2654
echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
2655
cat >> confdefs.h <<EOF
7672
echo "$as_me: program exited with status $ac_status" >&5
7673
echo "$as_me: failed program was:" >&5
7674
sed 's/^/| /' conftest.$ac_ext >&5
7677
if test "$ac_cv_type_unsigned_long" = yes; then
7678
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7679
See \`config.log' for more details." >&5
7680
echo "$as_me: error: cannot compute sizeof (unsigned long)
7681
See \`config.log' for more details." >&2;}
7682
{ (exit 77); exit 77; }; }
7684
ac_cv_sizeof_unsigned_long=0
7687
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7691
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7692
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7696
cat >>confdefs.h <<_ACEOF
2656
7697
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
2660
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2661
echo "configure:2662: checking whether byte ordering is bigendian" >&5
2662
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2663
echo $ac_n "(cached) $ac_c" 1>&6
7701
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7702
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7703
if test "${ac_cv_c_bigendian+set}" = set; then
7704
echo $ECHO_N "(cached) $ECHO_C" >&6
2665
ac_cv_c_bigendian=unknown
2666
# See if sys/param.h defines the BYTE_ORDER macro.
2667
cat > conftest.$ac_ext <<EOF
2668
#line 2669 "configure"
2669
#include "confdefs.h"
7706
# See if sys/param.h defines the BYTE_ORDER macro.
7707
cat >conftest.$ac_ext <<_ACEOF
7710
cat confdefs.h >>conftest.$ac_ext
7711
cat >>conftest.$ac_ext <<_ACEOF
7712
/* end confdefs.h. */
2670
7713
#include <sys/types.h>
2671
7714
#include <sys/param.h>
2674
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7719
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7720
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
2675
7721
bogus endian macros
2679
if { (eval echo configure:2680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7728
rm -f conftest.$ac_objext
7729
if { (ac_try="$ac_compile"
7731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732
*) ac_try_echo=$ac_try;;
7734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735
(eval "$ac_compile") 2>conftest.er1
7737
grep -v '^ *+' conftest.er1 >conftest.err
7739
cat conftest.err >&5
7740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741
(exit $ac_status); } && {
7742
test -z "$ac_c_werror_flag" ||
7743
test ! -s conftest.err
7744
} && test -s conftest.$ac_objext; then
2681
7745
# It does; now see whether it defined to BIG_ENDIAN or not.
2682
cat > conftest.$ac_ext <<EOF
2683
#line 2684 "configure"
2684
#include "confdefs.h"
7746
cat >conftest.$ac_ext <<_ACEOF
7749
cat confdefs.h >>conftest.$ac_ext
7750
cat >>conftest.$ac_ext <<_ACEOF
7751
/* end confdefs.h. */
2685
7752
#include <sys/types.h>
2686
7753
#include <sys/param.h>
2689
7758
#if BYTE_ORDER != BIG_ENDIAN
2694
if { (eval echo configure:2695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7766
rm -f conftest.$ac_objext
7767
if { (ac_try="$ac_compile"
7769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770
*) ac_try_echo=$ac_try;;
7772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773
(eval "$ac_compile") 2>conftest.er1
7775
grep -v '^ *+' conftest.er1 >conftest.err
7777
cat conftest.err >&5
7778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779
(exit $ac_status); } && {
7780
test -z "$ac_c_werror_flag" ||
7781
test ! -s conftest.err
7782
} && test -s conftest.$ac_objext; then
2696
7783
ac_cv_c_bigendian=yes
2698
echo "configure: failed program was:" >&5
2699
cat conftest.$ac_ext >&5
2701
ac_cv_c_bigendian=no
7785
echo "$as_me: failed program was:" >&5
7786
sed 's/^/| /' conftest.$ac_ext >&5
7788
ac_cv_c_bigendian=no
7791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705
echo "configure: failed program was:" >&5
2706
cat conftest.$ac_ext >&5
2709
if test $ac_cv_c_bigendian = unknown; then
7793
echo "$as_me: failed program was:" >&5
7794
sed 's/^/| /' conftest.$ac_ext >&5
7796
# It does not; compile a test program.
2710
7797
if test "$cross_compiling" = yes; then
2711
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2713
cat > conftest.$ac_ext <<EOF
2714
#line 2715 "configure"
2715
#include "confdefs.h"
7798
# try to guess the endianness by grepping values into an object file
7799
ac_cv_c_bigendian=unknown
7800
cat >conftest.$ac_ext <<_ACEOF
7803
cat confdefs.h >>conftest.$ac_ext
7804
cat >>conftest.$ac_ext <<_ACEOF
7805
/* end confdefs.h. */
7806
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7807
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7808
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7809
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7810
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7811
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7815
_ascii (); _ebcdic ();
7820
rm -f conftest.$ac_objext
7821
if { (ac_try="$ac_compile"
7823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824
*) ac_try_echo=$ac_try;;
7826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827
(eval "$ac_compile") 2>conftest.er1
7829
grep -v '^ *+' conftest.er1 >conftest.err
7831
cat conftest.err >&5
7832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833
(exit $ac_status); } && {
7834
test -z "$ac_c_werror_flag" ||
7835
test ! -s conftest.err
7836
} && test -s conftest.$ac_objext; then
7837
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7838
ac_cv_c_bigendian=yes
7840
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7841
if test "$ac_cv_c_bigendian" = unknown; then
7842
ac_cv_c_bigendian=no
7844
# finding both strings is unlikely to happen, but who knows?
7845
ac_cv_c_bigendian=unknown
7849
echo "$as_me: failed program was:" >&5
7850
sed 's/^/| /' conftest.$ac_ext >&5
7855
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857
cat >conftest.$ac_ext <<_ACEOF
7860
cat confdefs.h >>conftest.$ac_ext
7861
cat >>conftest.$ac_ext <<_ACEOF
7862
/* end confdefs.h. */
7863
$ac_includes_default
2717
7868
/* Are we little or big endian? From Harbison&Steele. */
2721
char c[sizeof (long)];
7872
char c[sizeof (long int)];
2724
exit (u.c[sizeof (long) - 1] == 1);
7875
return u.c[sizeof (long int) - 1] == 1;
2727
if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7881
rm -f conftest$ac_exeext
7882
if { (ac_try="$ac_link"
7884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885
*) ac_try_echo=$ac_try;;
7887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888
(eval "$ac_link") 2>&5
7890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7892
{ (case "(($ac_try" in
7893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894
*) ac_try_echo=$ac_try;;
7896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897
(eval "$ac_try") 2>&5
7899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900
(exit $ac_status); }; }; then
2729
7901
ac_cv_c_bigendian=no
2731
echo "configure: failed program was:" >&5
2732
cat conftest.$ac_ext >&5
2734
ac_cv_c_bigendian=yes
2742
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2743
if test $ac_cv_c_bigendian = yes; then
2744
cat >> confdefs.h <<\EOF
7903
echo "$as_me: program exited with status $ac_status" >&5
7904
echo "$as_me: failed program was:" >&5
7905
sed 's/^/| /' conftest.$ac_ext >&5
7908
ac_cv_c_bigendian=yes
7910
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7916
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7919
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7920
case $ac_cv_c_bigendian in
7923
cat >>confdefs.h <<\_ACEOF
2745
7924
#define WORDS_BIGENDIAN 1
2750
echo $ac_n "checking for time_t""... $ac_c" 1>&6
2751
echo "configure:2752: checking for time_t" >&5
2752
if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
2753
echo $ac_n "(cached) $ac_c" 1>&6
7930
{ { echo "$as_me:$LINENO: error: unknown endianness
7931
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7932
echo "$as_me: error: unknown endianness
7933
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7934
{ (exit 1); exit 1; }; } ;;
7937
{ echo "$as_me:$LINENO: checking for time_t" >&5
7938
echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
7939
if test "${ac_cv_type_time_t+set}" = set; then
7940
echo $ECHO_N "(cached) $ECHO_C" >&6
2755
cat > conftest.$ac_ext <<EOF
2756
#line 2757 "configure"
2757
#include "confdefs.h"
2758
#include <sys/types.h>
2764
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2765
egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7942
cat >conftest.$ac_ext <<_ACEOF
7945
cat confdefs.h >>conftest.$ac_ext
7946
cat >>conftest.$ac_ext <<_ACEOF
7947
/* end confdefs.h. */
7948
$ac_includes_default
7949
typedef time_t ac__type_new_;
7953
if ((ac__type_new_ *) 0)
7955
if (sizeof (ac__type_new_))
7961
rm -f conftest.$ac_objext
7962
if { (ac_try="$ac_compile"
7964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965
*) ac_try_echo=$ac_try;;
7967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968
(eval "$ac_compile") 2>conftest.er1
7970
grep -v '^ *+' conftest.er1 >conftest.err
7972
cat conftest.err >&5
7973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974
(exit $ac_status); } && {
7975
test -z "$ac_c_werror_flag" ||
7976
test ! -s conftest.err
7977
} && test -s conftest.$ac_objext; then
2767
7978
ac_cv_type_time_t=yes
2770
ac_cv_type_time_t=no
2775
echo "$ac_t""$ac_cv_type_time_t" 1>&6
2776
if test $ac_cv_type_time_t = no; then
2777
cat >> confdefs.h <<\EOF
7980
echo "$as_me: failed program was:" >&5
7981
sed 's/^/| /' conftest.$ac_ext >&5
7983
ac_cv_type_time_t=no
7986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988
{ echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
7989
echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
7990
if test $ac_cv_type_time_t = yes; then
7994
cat >>confdefs.h <<_ACEOF
2778
7995
#define time_t int
2783
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2784
echo "configure:2785: checking for pid_t" >&5
2785
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2786
echo $ac_n "(cached) $ac_c" 1>&6
8000
{ echo "$as_me:$LINENO: checking for pid_t" >&5
8001
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8002
if test "${ac_cv_type_pid_t+set}" = set; then
8003
echo $ECHO_N "(cached) $ECHO_C" >&6
2788
cat > conftest.$ac_ext <<EOF
2789
#line 2790 "configure"
2790
#include "confdefs.h"
2791
#include <sys/types.h>
2797
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2798
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8005
cat >conftest.$ac_ext <<_ACEOF
8008
cat confdefs.h >>conftest.$ac_ext
8009
cat >>conftest.$ac_ext <<_ACEOF
8010
/* end confdefs.h. */
8011
$ac_includes_default
8012
typedef pid_t ac__type_new_;
8016
if ((ac__type_new_ *) 0)
8018
if (sizeof (ac__type_new_))
8024
rm -f conftest.$ac_objext
8025
if { (ac_try="$ac_compile"
8027
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028
*) ac_try_echo=$ac_try;;
8030
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031
(eval "$ac_compile") 2>conftest.er1
8033
grep -v '^ *+' conftest.er1 >conftest.err
8035
cat conftest.err >&5
8036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037
(exit $ac_status); } && {
8038
test -z "$ac_c_werror_flag" ||
8039
test ! -s conftest.err
8040
} && test -s conftest.$ac_objext; then
2800
8041
ac_cv_type_pid_t=yes
2808
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2809
if test $ac_cv_type_pid_t = no; then
2810
cat >> confdefs.h <<\EOF
8043
echo "$as_me: failed program was:" >&5
8044
sed 's/^/| /' conftest.$ac_ext >&5
8049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8052
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8053
if test $ac_cv_type_pid_t = yes; then
8057
cat >>confdefs.h <<_ACEOF
2811
8058
#define pid_t int
2816
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2817
echo "configure:2818: checking for size_t" >&5
2818
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2819
echo $ac_n "(cached) $ac_c" 1>&6
8063
{ echo "$as_me:$LINENO: checking for size_t" >&5
8064
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8065
if test "${ac_cv_type_size_t+set}" = set; then
8066
echo $ECHO_N "(cached) $ECHO_C" >&6
2821
cat > conftest.$ac_ext <<EOF
2822
#line 2823 "configure"
2823
#include "confdefs.h"
2824
#include <sys/types.h>
2830
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2831
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8068
cat >conftest.$ac_ext <<_ACEOF
8071
cat confdefs.h >>conftest.$ac_ext
8072
cat >>conftest.$ac_ext <<_ACEOF
8073
/* end confdefs.h. */
8074
$ac_includes_default
8075
typedef size_t ac__type_new_;
8079
if ((ac__type_new_ *) 0)
8081
if (sizeof (ac__type_new_))
8087
rm -f conftest.$ac_objext
8088
if { (ac_try="$ac_compile"
8090
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091
*) ac_try_echo=$ac_try;;
8093
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094
(eval "$ac_compile") 2>conftest.er1
8096
grep -v '^ *+' conftest.er1 >conftest.err
8098
cat conftest.err >&5
8099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100
(exit $ac_status); } && {
8101
test -z "$ac_c_werror_flag" ||
8102
test ! -s conftest.err
8103
} && test -s conftest.$ac_objext; then
2833
8104
ac_cv_type_size_t=yes
2836
ac_cv_type_size_t=no
2841
echo "$ac_t""$ac_cv_type_size_t" 1>&6
2842
if test $ac_cv_type_size_t = no; then
2843
cat >> confdefs.h <<\EOF
2844
#define size_t unsigned
2849
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2850
echo "configure:2851: checking for uid_t in sys/types.h" >&5
2851
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2852
echo $ac_n "(cached) $ac_c" 1>&6
2854
cat > conftest.$ac_ext <<EOF
2855
#line 2856 "configure"
2856
#include "confdefs.h"
8106
echo "$as_me: failed program was:" >&5
8107
sed 's/^/| /' conftest.$ac_ext >&5
8109
ac_cv_type_size_t=no
8112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8115
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8116
if test $ac_cv_type_size_t = yes; then
8120
cat >>confdefs.h <<_ACEOF
8121
#define size_t unsigned int
8126
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8127
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8128
if test "${ac_cv_type_uid_t+set}" = set; then
8129
echo $ECHO_N "(cached) $ECHO_C" >&6
8131
cat >conftest.$ac_ext <<_ACEOF
8134
cat confdefs.h >>conftest.$ac_ext
8135
cat >>conftest.$ac_ext <<_ACEOF
8136
/* end confdefs.h. */
2857
8137
#include <sys/types.h>
2859
8140
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860
egrep "uid_t" >/dev/null 2>&1; then
8141
$EGREP "uid_t" >/dev/null 2>&1; then
2862
8142
ac_cv_type_uid_t=yes
2865
8144
ac_cv_type_uid_t=no
2867
8146
rm -f conftest*
2871
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8149
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8150
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
2872
8151
if test $ac_cv_type_uid_t = no; then
2873
cat >> confdefs.h <<\EOF
8153
cat >>confdefs.h <<\_ACEOF
2874
8154
#define uid_t int
2877
cat >> confdefs.h <<\EOF
8158
cat >>confdefs.h <<\_ACEOF
2878
8159
#define gid_t int
2884
echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2885
echo "configure:2886: checking for struct timeval" >&5
2886
cat > conftest.$ac_ext <<EOF
2887
#line 2888 "configure"
2888
#include "confdefs.h"
8165
# Check whether --enable-largefile was given.
8166
if test "${enable_largefile+set}" = set; then
8167
enableval=$enable_largefile;
8170
if test "$enable_largefile" != no; then
8172
{ echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8173
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
8174
if test "${ac_cv_sys_largefile_CC+set}" = set; then
8175
echo $ECHO_N "(cached) $ECHO_C" >&6
8177
ac_cv_sys_largefile_CC=no
8178
if test "$GCC" != yes; then
8181
# IRIX 6.2 and later do not support large files by default,
8182
# so use the C compiler's -n32 option if that helps.
8183
cat >conftest.$ac_ext <<_ACEOF
8186
cat confdefs.h >>conftest.$ac_ext
8187
cat >>conftest.$ac_ext <<_ACEOF
8188
/* end confdefs.h. */
8189
#include <sys/types.h>
8190
/* Check that off_t can represent 2**63 - 1 correctly.
8191
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8192
since some C++ compilers masquerading as C compilers
8193
incorrectly reject 9223372036854775807. */
8194
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8195
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8196
&& LARGE_OFF_T % 2147483647 == 1)
8206
rm -f conftest.$ac_objext
8207
if { (ac_try="$ac_compile"
8209
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210
*) ac_try_echo=$ac_try;;
8212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213
(eval "$ac_compile") 2>conftest.er1
8215
grep -v '^ *+' conftest.er1 >conftest.err
8217
cat conftest.err >&5
8218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219
(exit $ac_status); } && {
8220
test -z "$ac_c_werror_flag" ||
8221
test ! -s conftest.err
8222
} && test -s conftest.$ac_objext; then
8225
echo "$as_me: failed program was:" >&5
8226
sed 's/^/| /' conftest.$ac_ext >&5
8231
rm -f core conftest.err conftest.$ac_objext
8233
rm -f conftest.$ac_objext
8234
if { (ac_try="$ac_compile"
8236
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237
*) ac_try_echo=$ac_try;;
8239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240
(eval "$ac_compile") 2>conftest.er1
8242
grep -v '^ *+' conftest.er1 >conftest.err
8244
cat conftest.err >&5
8245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246
(exit $ac_status); } && {
8247
test -z "$ac_c_werror_flag" ||
8248
test ! -s conftest.err
8249
} && test -s conftest.$ac_objext; then
8250
ac_cv_sys_largefile_CC=' -n32'; break
8252
echo "$as_me: failed program was:" >&5
8253
sed 's/^/| /' conftest.$ac_ext >&5
8258
rm -f core conftest.err conftest.$ac_objext
8262
rm -f conftest.$ac_ext
8265
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8266
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8267
if test "$ac_cv_sys_largefile_CC" != no; then
8268
CC=$CC$ac_cv_sys_largefile_CC
8271
{ echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8272
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8273
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8274
echo $ECHO_N "(cached) $ECHO_C" >&6
8277
cat >conftest.$ac_ext <<_ACEOF
8280
cat confdefs.h >>conftest.$ac_ext
8281
cat >>conftest.$ac_ext <<_ACEOF
8282
/* end confdefs.h. */
8283
#include <sys/types.h>
8284
/* Check that off_t can represent 2**63 - 1 correctly.
8285
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8286
since some C++ compilers masquerading as C compilers
8287
incorrectly reject 9223372036854775807. */
8288
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8289
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8290
&& LARGE_OFF_T % 2147483647 == 1)
8300
rm -f conftest.$ac_objext
8301
if { (ac_try="$ac_compile"
8303
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304
*) ac_try_echo=$ac_try;;
8306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307
(eval "$ac_compile") 2>conftest.er1
8309
grep -v '^ *+' conftest.er1 >conftest.err
8311
cat conftest.err >&5
8312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313
(exit $ac_status); } && {
8314
test -z "$ac_c_werror_flag" ||
8315
test ! -s conftest.err
8316
} && test -s conftest.$ac_objext; then
8317
ac_cv_sys_file_offset_bits=no; break
8319
echo "$as_me: failed program was:" >&5
8320
sed 's/^/| /' conftest.$ac_ext >&5
8325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326
cat >conftest.$ac_ext <<_ACEOF
8329
cat confdefs.h >>conftest.$ac_ext
8330
cat >>conftest.$ac_ext <<_ACEOF
8331
/* end confdefs.h. */
8332
#define _FILE_OFFSET_BITS 64
8333
#include <sys/types.h>
8334
/* Check that off_t can represent 2**63 - 1 correctly.
8335
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8336
since some C++ compilers masquerading as C compilers
8337
incorrectly reject 9223372036854775807. */
8338
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8339
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8340
&& LARGE_OFF_T % 2147483647 == 1)
8350
rm -f conftest.$ac_objext
8351
if { (ac_try="$ac_compile"
8353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354
*) ac_try_echo=$ac_try;;
8356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357
(eval "$ac_compile") 2>conftest.er1
8359
grep -v '^ *+' conftest.er1 >conftest.err
8361
cat conftest.err >&5
8362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363
(exit $ac_status); } && {
8364
test -z "$ac_c_werror_flag" ||
8365
test ! -s conftest.err
8366
} && test -s conftest.$ac_objext; then
8367
ac_cv_sys_file_offset_bits=64; break
8369
echo "$as_me: failed program was:" >&5
8370
sed 's/^/| /' conftest.$ac_ext >&5
8375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376
ac_cv_sys_file_offset_bits=unknown
8380
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8381
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8382
case $ac_cv_sys_file_offset_bits in #(
8385
cat >>confdefs.h <<_ACEOF
8386
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8391
if test $ac_cv_sys_file_offset_bits = unknown; then
8392
{ echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8393
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8394
if test "${ac_cv_sys_large_files+set}" = set; then
8395
echo $ECHO_N "(cached) $ECHO_C" >&6
8398
cat >conftest.$ac_ext <<_ACEOF
8401
cat confdefs.h >>conftest.$ac_ext
8402
cat >>conftest.$ac_ext <<_ACEOF
8403
/* end confdefs.h. */
8404
#include <sys/types.h>
8405
/* Check that off_t can represent 2**63 - 1 correctly.
8406
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8407
since some C++ compilers masquerading as C compilers
8408
incorrectly reject 9223372036854775807. */
8409
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8410
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8411
&& LARGE_OFF_T % 2147483647 == 1)
8421
rm -f conftest.$ac_objext
8422
if { (ac_try="$ac_compile"
8424
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425
*) ac_try_echo=$ac_try;;
8427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428
(eval "$ac_compile") 2>conftest.er1
8430
grep -v '^ *+' conftest.er1 >conftest.err
8432
cat conftest.err >&5
8433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434
(exit $ac_status); } && {
8435
test -z "$ac_c_werror_flag" ||
8436
test ! -s conftest.err
8437
} && test -s conftest.$ac_objext; then
8438
ac_cv_sys_large_files=no; break
8440
echo "$as_me: failed program was:" >&5
8441
sed 's/^/| /' conftest.$ac_ext >&5
8446
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447
cat >conftest.$ac_ext <<_ACEOF
8450
cat confdefs.h >>conftest.$ac_ext
8451
cat >>conftest.$ac_ext <<_ACEOF
8452
/* end confdefs.h. */
8453
#define _LARGE_FILES 1
8454
#include <sys/types.h>
8455
/* Check that off_t can represent 2**63 - 1 correctly.
8456
We can't simply define LARGE_OFF_T to be 9223372036854775807,
8457
since some C++ compilers masquerading as C compilers
8458
incorrectly reject 9223372036854775807. */
8459
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8460
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8461
&& LARGE_OFF_T % 2147483647 == 1)
8471
rm -f conftest.$ac_objext
8472
if { (ac_try="$ac_compile"
8474
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475
*) ac_try_echo=$ac_try;;
8477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478
(eval "$ac_compile") 2>conftest.er1
8480
grep -v '^ *+' conftest.er1 >conftest.err
8482
cat conftest.err >&5
8483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484
(exit $ac_status); } && {
8485
test -z "$ac_c_werror_flag" ||
8486
test ! -s conftest.err
8487
} && test -s conftest.$ac_objext; then
8488
ac_cv_sys_large_files=1; break
8490
echo "$as_me: failed program was:" >&5
8491
sed 's/^/| /' conftest.$ac_ext >&5
8496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497
ac_cv_sys_large_files=unknown
8501
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8502
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8503
case $ac_cv_sys_large_files in #(
8506
cat >>confdefs.h <<_ACEOF
8507
#define _LARGE_FILES $ac_cv_sys_large_files
8515
{ echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8516
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
8517
if test "${ac_cv_sys_largefile_source+set}" = set; then
8518
echo $ECHO_N "(cached) $ECHO_C" >&6
8521
cat >conftest.$ac_ext <<_ACEOF
8524
cat confdefs.h >>conftest.$ac_ext
8525
cat >>conftest.$ac_ext <<_ACEOF
8526
/* end confdefs.h. */
8527
#include <sys/types.h> /* for off_t */
8532
int (*fp) (FILE *, off_t, int) = fseeko;
8533
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8538
rm -f conftest.$ac_objext conftest$ac_exeext
8539
if { (ac_try="$ac_link"
8541
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542
*) ac_try_echo=$ac_try;;
8544
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545
(eval "$ac_link") 2>conftest.er1
8547
grep -v '^ *+' conftest.er1 >conftest.err
8549
cat conftest.err >&5
8550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551
(exit $ac_status); } && {
8552
test -z "$ac_c_werror_flag" ||
8553
test ! -s conftest.err
8554
} && test -s conftest$ac_exeext &&
8555
$as_test_x conftest$ac_exeext; then
8556
ac_cv_sys_largefile_source=no; break
8558
echo "$as_me: failed program was:" >&5
8559
sed 's/^/| /' conftest.$ac_ext >&5
8564
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8565
conftest$ac_exeext conftest.$ac_ext
8566
cat >conftest.$ac_ext <<_ACEOF
8569
cat confdefs.h >>conftest.$ac_ext
8570
cat >>conftest.$ac_ext <<_ACEOF
8571
/* end confdefs.h. */
8572
#define _LARGEFILE_SOURCE 1
8573
#include <sys/types.h> /* for off_t */
8578
int (*fp) (FILE *, off_t, int) = fseeko;
8579
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8584
rm -f conftest.$ac_objext conftest$ac_exeext
8585
if { (ac_try="$ac_link"
8587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588
*) ac_try_echo=$ac_try;;
8590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591
(eval "$ac_link") 2>conftest.er1
8593
grep -v '^ *+' conftest.er1 >conftest.err
8595
cat conftest.err >&5
8596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597
(exit $ac_status); } && {
8598
test -z "$ac_c_werror_flag" ||
8599
test ! -s conftest.err
8600
} && test -s conftest$ac_exeext &&
8601
$as_test_x conftest$ac_exeext; then
8602
ac_cv_sys_largefile_source=1; break
8604
echo "$as_me: failed program was:" >&5
8605
sed 's/^/| /' conftest.$ac_ext >&5
8610
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8611
conftest$ac_exeext conftest.$ac_ext
8612
ac_cv_sys_largefile_source=unknown
8616
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8617
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
8618
case $ac_cv_sys_largefile_source in #(
8621
cat >>confdefs.h <<_ACEOF
8622
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8628
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8629
# in glibc 2.1.3, but that breaks too many other things.
8630
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8631
if test $ac_cv_sys_largefile_source != unknown; then
8633
cat >>confdefs.h <<\_ACEOF
8634
#define HAVE_FSEEKO 1
8639
{ echo "$as_me:$LINENO: checking for off_t" >&5
8640
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8641
if test "${ac_cv_type_off_t+set}" = set; then
8642
echo $ECHO_N "(cached) $ECHO_C" >&6
8644
cat >conftest.$ac_ext <<_ACEOF
8647
cat confdefs.h >>conftest.$ac_ext
8648
cat >>conftest.$ac_ext <<_ACEOF
8649
/* end confdefs.h. */
8650
$ac_includes_default
8651
typedef off_t ac__type_new_;
8655
if ((ac__type_new_ *) 0)
8657
if (sizeof (ac__type_new_))
8663
rm -f conftest.$ac_objext
8664
if { (ac_try="$ac_compile"
8666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667
*) ac_try_echo=$ac_try;;
8669
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670
(eval "$ac_compile") 2>conftest.er1
8672
grep -v '^ *+' conftest.er1 >conftest.err
8674
cat conftest.err >&5
8675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676
(exit $ac_status); } && {
8677
test -z "$ac_c_werror_flag" ||
8678
test ! -s conftest.err
8679
} && test -s conftest.$ac_objext; then
8680
ac_cv_type_off_t=yes
8682
echo "$as_me: failed program was:" >&5
8683
sed 's/^/| /' conftest.$ac_ext >&5
8688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8691
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8692
if test $ac_cv_type_off_t = yes; then
8696
cat >>confdefs.h <<_ACEOF
8697
#define off_t long int
8703
{ echo "$as_me:$LINENO: checking for struct timeval" >&5
8704
echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
8705
cat >conftest.$ac_ext <<_ACEOF
8708
cat confdefs.h >>conftest.$ac_ext
8709
cat >>conftest.$ac_ext <<_ACEOF
8710
/* end confdefs.h. */
2889
8711
#ifdef TIME_WITH_SYS_TIME
2890
8712
#include <sys/time.h>
2891
8713
#include <time.h>
3585
9735
if test "$ISC" = yes; then
3586
9736
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3588
# Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3589
# libraries were built with DECnet support. And karl@cs.umb.edu says
9738
# Martyn Johnson says this is needed for Ultrix, if the X
9739
# libraries were built with DECnet support. And Karl Berry says
3590
9740
# the Alpha needs dnet_stub (dnet does not exist).
3591
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3592
echo "configure:3593: checking for dnet_ntoa in -ldnet" >&5
3593
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3594
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3595
echo $ac_n "(cached) $ac_c" 1>&6
3597
ac_save_LIBS="$LIBS"
9741
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9742
cat >conftest.$ac_ext <<_ACEOF
9745
cat confdefs.h >>conftest.$ac_ext
9746
cat >>conftest.$ac_ext <<_ACEOF
9747
/* end confdefs.h. */
9749
/* Override any GCC internal prototype to avoid an error.
9750
Use char because int might match the return type of a GCC
9751
builtin and then its argument prototype would still apply. */
9755
char XOpenDisplay ();
9759
return XOpenDisplay ();
9764
rm -f conftest.$ac_objext conftest$ac_exeext
9765
if { (ac_try="$ac_link"
9767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768
*) ac_try_echo=$ac_try;;
9770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771
(eval "$ac_link") 2>conftest.er1
9773
grep -v '^ *+' conftest.er1 >conftest.err
9775
cat conftest.err >&5
9776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777
(exit $ac_status); } && {
9778
test -z "$ac_c_werror_flag" ||
9779
test ! -s conftest.err
9780
} && test -s conftest$ac_exeext &&
9781
$as_test_x conftest$ac_exeext; then
9784
echo "$as_me: failed program was:" >&5
9785
sed 's/^/| /' conftest.$ac_ext >&5
9787
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9788
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
9789
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9790
echo $ECHO_N "(cached) $ECHO_C" >&6
9792
ac_check_lib_save_LIBS=$LIBS
3598
9793
LIBS="-ldnet $LIBS"
3599
cat > conftest.$ac_ext <<EOF
3600
#line 3601 "configure"
3601
#include "confdefs.h"
3602
/* Override any gcc2 internal prototype to avoid an error. */
3603
/* We use char because int might match the return type of a gcc2
3604
builtin and then its argument prototype would still apply. */
9794
cat >conftest.$ac_ext <<_ACEOF
9797
cat confdefs.h >>conftest.$ac_ext
9798
cat >>conftest.$ac_ext <<_ACEOF
9799
/* end confdefs.h. */
3611
if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613
eval "ac_cv_lib_$ac_lib_var=yes"
9801
/* Override any GCC internal prototype to avoid an error.
9802
Use char because int might match the return type of a GCC
9803
builtin and then its argument prototype would still apply. */
9811
return dnet_ntoa ();
9816
rm -f conftest.$ac_objext conftest$ac_exeext
9817
if { (ac_try="$ac_link"
9819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820
*) ac_try_echo=$ac_try;;
9822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823
(eval "$ac_link") 2>conftest.er1
9825
grep -v '^ *+' conftest.er1 >conftest.err
9827
cat conftest.err >&5
9828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829
(exit $ac_status); } && {
9830
test -z "$ac_c_werror_flag" ||
9831
test ! -s conftest.err
9832
} && test -s conftest$ac_exeext &&
9833
$as_test_x conftest$ac_exeext; then
9834
ac_cv_lib_dnet_dnet_ntoa=yes
3615
echo "configure: failed program was:" >&5
3616
cat conftest.$ac_ext >&5
3618
eval "ac_cv_lib_$ac_lib_var=no"
3621
LIBS="$ac_save_LIBS"
3624
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3625
echo "$ac_t""yes" 1>&6
9836
echo "$as_me: failed program was:" >&5
9837
sed 's/^/| /' conftest.$ac_ext >&5
9839
ac_cv_lib_dnet_dnet_ntoa=no
9842
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843
conftest$ac_exeext conftest.$ac_ext
9844
LIBS=$ac_check_lib_save_LIBS
9846
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9847
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9848
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3626
9849
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3628
echo "$ac_t""no" 1>&6
3631
9852
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3632
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3633
echo "configure:3634: checking for dnet_ntoa in -ldnet_stub" >&5
3634
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3635
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636
echo $ac_n "(cached) $ac_c" 1>&6
9853
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9854
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
9855
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9856
echo $ECHO_N "(cached) $ECHO_C" >&6
3638
ac_save_LIBS="$LIBS"
9858
ac_check_lib_save_LIBS=$LIBS
3639
9859
LIBS="-ldnet_stub $LIBS"
3640
cat > conftest.$ac_ext <<EOF
3641
#line 3642 "configure"
3642
#include "confdefs.h"
3643
/* Override any gcc2 internal prototype to avoid an error. */
3644
/* We use char because int might match the return type of a gcc2
3645
builtin and then its argument prototype would still apply. */
9860
cat >conftest.$ac_ext <<_ACEOF
9863
cat confdefs.h >>conftest.$ac_ext
9864
cat >>conftest.$ac_ext <<_ACEOF
9865
/* end confdefs.h. */
3652
if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3654
eval "ac_cv_lib_$ac_lib_var=yes"
9867
/* Override any GCC internal prototype to avoid an error.
9868
Use char because int might match the return type of a GCC
9869
builtin and then its argument prototype would still apply. */
9877
return dnet_ntoa ();
9882
rm -f conftest.$ac_objext conftest$ac_exeext
9883
if { (ac_try="$ac_link"
9885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886
*) ac_try_echo=$ac_try;;
9888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889
(eval "$ac_link") 2>conftest.er1
9891
grep -v '^ *+' conftest.er1 >conftest.err
9893
cat conftest.err >&5
9894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895
(exit $ac_status); } && {
9896
test -z "$ac_c_werror_flag" ||
9897
test ! -s conftest.err
9898
} && test -s conftest$ac_exeext &&
9899
$as_test_x conftest$ac_exeext; then
9900
ac_cv_lib_dnet_stub_dnet_ntoa=yes
3656
echo "configure: failed program was:" >&5
3657
cat conftest.$ac_ext >&5
3659
eval "ac_cv_lib_$ac_lib_var=no"
3662
LIBS="$ac_save_LIBS"
3665
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666
echo "$ac_t""yes" 1>&6
9902
echo "$as_me: failed program was:" >&5
9903
sed 's/^/| /' conftest.$ac_ext >&5
9905
ac_cv_lib_dnet_stub_dnet_ntoa=no
9908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909
conftest$ac_exeext conftest.$ac_ext
9910
LIBS=$ac_check_lib_save_LIBS
9912
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9913
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9914
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3667
9915
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3669
echo "$ac_t""no" 1>&6
9921
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922
conftest$ac_exeext conftest.$ac_ext
9923
LIBS="$ac_xsave_LIBS"
3674
9925
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3675
9926
# to get the SysV transport functions.
3676
# chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9927
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3678
9929
# The nsl library prevents programs from opening the X display
3679
# on Irix 5.2, according to dickey@clark.net.
3680
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3681
echo "configure:3682: checking for gethostbyname" >&5
3682
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3683
echo $ac_n "(cached) $ac_c" 1>&6
9930
# on Irix 5.2, according to T.E. Dickey.
9931
# The functions gethostbyname, getservbyname, and inet_addr are
9932
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9933
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
9934
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
9935
if test "${ac_cv_func_gethostbyname+set}" = set; then
9936
echo $ECHO_N "(cached) $ECHO_C" >&6
3685
cat > conftest.$ac_ext <<EOF
3686
#line 3687 "configure"
3687
#include "confdefs.h"
9938
cat >conftest.$ac_ext <<_ACEOF
9941
cat confdefs.h >>conftest.$ac_ext
9942
cat >>conftest.$ac_ext <<_ACEOF
9943
/* end confdefs.h. */
9944
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9945
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9946
#define gethostbyname innocuous_gethostbyname
3688
9948
/* System header to define __stub macros and hopefully few prototypes,
3689
which can conflict with char gethostbyname(); below. */
3691
/* Override any gcc2 internal prototype to avoid an error. */
3692
/* We use char because int might match the return type of a gcc2
3693
builtin and then its argument prototype would still apply. */
3694
char gethostbyname();
9949
which can conflict with char gethostbyname (); below.
9950
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9951
<limits.h> exists even on freestanding compilers. */
9954
# include <limits.h>
9956
# include <assert.h>
9959
#undef gethostbyname
9961
/* Override any GCC internal prototype to avoid an error.
9962
Use char because int might match the return type of a GCC
9963
builtin and then its argument prototype would still apply. */
9967
char gethostbyname ();
3698
9968
/* The GNU C library defines this for functions which it implements
3699
9969
to always fail with ENOSYS. Some functions are actually named
3700
9970
something starting with __ and the normal name is an alias. */
3701
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9971
#if defined __stub_gethostbyname || defined __stub___gethostbyname
3709
if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711
eval "ac_cv_func_gethostbyname=yes"
3713
echo "configure: failed program was:" >&5
3714
cat conftest.$ac_ext >&5
3716
eval "ac_cv_func_gethostbyname=no"
3721
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3722
echo "$ac_t""yes" 1>&6
3725
echo "$ac_t""no" 1>&6
9978
return gethostbyname ();
9983
rm -f conftest.$ac_objext conftest$ac_exeext
9984
if { (ac_try="$ac_link"
9986
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987
*) ac_try_echo=$ac_try;;
9989
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990
(eval "$ac_link") 2>conftest.er1
9992
grep -v '^ *+' conftest.er1 >conftest.err
9994
cat conftest.err >&5
9995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996
(exit $ac_status); } && {
9997
test -z "$ac_c_werror_flag" ||
9998
test ! -s conftest.err
9999
} && test -s conftest$ac_exeext &&
10000
$as_test_x conftest$ac_exeext; then
10001
ac_cv_func_gethostbyname=yes
10003
echo "$as_me: failed program was:" >&5
10004
sed 's/^/| /' conftest.$ac_ext >&5
10006
ac_cv_func_gethostbyname=no
10009
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10010
conftest$ac_exeext conftest.$ac_ext
10012
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10013
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
3728
10015
if test $ac_cv_func_gethostbyname = no; then
3729
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3730
echo "configure:3731: checking for gethostbyname in -lnsl" >&5
3731
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3732
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3733
echo $ac_n "(cached) $ac_c" 1>&6
10016
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10017
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
10018
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10019
echo $ECHO_N "(cached) $ECHO_C" >&6
3735
ac_save_LIBS="$LIBS"
10021
ac_check_lib_save_LIBS=$LIBS
3736
10022
LIBS="-lnsl $LIBS"
3737
cat > conftest.$ac_ext <<EOF
3738
#line 3739 "configure"
3739
#include "confdefs.h"
3740
/* Override any gcc2 internal prototype to avoid an error. */
3741
/* We use char because int might match the return type of a gcc2
3742
builtin and then its argument prototype would still apply. */
3743
char gethostbyname();
10023
cat >conftest.$ac_ext <<_ACEOF
10026
cat confdefs.h >>conftest.$ac_ext
10027
cat >>conftest.$ac_ext <<_ACEOF
10028
/* end confdefs.h. */
3749
if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751
eval "ac_cv_lib_$ac_lib_var=yes"
10030
/* Override any GCC internal prototype to avoid an error.
10031
Use char because int might match the return type of a GCC
10032
builtin and then its argument prototype would still apply. */
10036
char gethostbyname ();
10040
return gethostbyname ();
10045
rm -f conftest.$ac_objext conftest$ac_exeext
10046
if { (ac_try="$ac_link"
10047
case "(($ac_try" in
10048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049
*) ac_try_echo=$ac_try;;
10051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052
(eval "$ac_link") 2>conftest.er1
10054
grep -v '^ *+' conftest.er1 >conftest.err
10056
cat conftest.err >&5
10057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058
(exit $ac_status); } && {
10059
test -z "$ac_c_werror_flag" ||
10060
test ! -s conftest.err
10061
} && test -s conftest$ac_exeext &&
10062
$as_test_x conftest$ac_exeext; then
10063
ac_cv_lib_nsl_gethostbyname=yes
3753
echo "configure: failed program was:" >&5
3754
cat conftest.$ac_ext >&5
3756
eval "ac_cv_lib_$ac_lib_var=no"
3759
LIBS="$ac_save_LIBS"
3762
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3763
echo "$ac_t""yes" 1>&6
10065
echo "$as_me: failed program was:" >&5
10066
sed 's/^/| /' conftest.$ac_ext >&5
10068
ac_cv_lib_nsl_gethostbyname=no
10071
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10072
conftest$ac_exeext conftest.$ac_ext
10073
LIBS=$ac_check_lib_save_LIBS
10075
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10076
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
10077
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3764
10078
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3766
echo "$ac_t""no" 1>&6
10081
if test $ac_cv_lib_nsl_gethostbyname = no; then
10082
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10083
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
10084
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10085
echo $ECHO_N "(cached) $ECHO_C" >&6
10087
ac_check_lib_save_LIBS=$LIBS
10089
cat >conftest.$ac_ext <<_ACEOF
10092
cat confdefs.h >>conftest.$ac_ext
10093
cat >>conftest.$ac_ext <<_ACEOF
10094
/* end confdefs.h. */
10096
/* Override any GCC internal prototype to avoid an error.
10097
Use char because int might match the return type of a GCC
10098
builtin and then its argument prototype would still apply. */
10102
char gethostbyname ();
10106
return gethostbyname ();
10111
rm -f conftest.$ac_objext conftest$ac_exeext
10112
if { (ac_try="$ac_link"
10113
case "(($ac_try" in
10114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115
*) ac_try_echo=$ac_try;;
10117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118
(eval "$ac_link") 2>conftest.er1
10120
grep -v '^ *+' conftest.er1 >conftest.err
10122
cat conftest.err >&5
10123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124
(exit $ac_status); } && {
10125
test -z "$ac_c_werror_flag" ||
10126
test ! -s conftest.err
10127
} && test -s conftest$ac_exeext &&
10128
$as_test_x conftest$ac_exeext; then
10129
ac_cv_lib_bsd_gethostbyname=yes
10131
echo "$as_me: failed program was:" >&5
10132
sed 's/^/| /' conftest.$ac_ext >&5
10134
ac_cv_lib_bsd_gethostbyname=no
10137
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10138
conftest$ac_exeext conftest.$ac_ext
10139
LIBS=$ac_check_lib_save_LIBS
10141
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10142
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
10143
if test $ac_cv_lib_bsd_gethostbyname = yes; then
10144
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3771
10150
# lieder@skyler.mavd.honeywell.com says without -lsocket,
3772
10151
# socket/setsockopt and other routines are undefined under SCO ODT
3773
10152
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3774
# on later versions), says simon@lia.di.epfl.ch: it contains
3775
# gethostby* variants that don't use the nameserver (or something).
3776
# -lsocket must be given before -lnsl if both are needed.
3777
# We assume that if connect needs -lnsl, so does gethostbyname.
3778
echo $ac_n "checking for connect""... $ac_c" 1>&6
3779
echo "configure:3780: checking for connect" >&5
3780
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3781
echo $ac_n "(cached) $ac_c" 1>&6
10153
# on later versions), says Simon Leinen: it contains gethostby*
10154
# variants that don't use the name server (or something). -lsocket
10155
# must be given before -lnsl if both are needed. We assume that
10156
# if connect needs -lnsl, so does gethostbyname.
10157
{ echo "$as_me:$LINENO: checking for connect" >&5
10158
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
10159
if test "${ac_cv_func_connect+set}" = set; then
10160
echo $ECHO_N "(cached) $ECHO_C" >&6
3783
cat > conftest.$ac_ext <<EOF
3784
#line 3785 "configure"
3785
#include "confdefs.h"
10162
cat >conftest.$ac_ext <<_ACEOF
10165
cat confdefs.h >>conftest.$ac_ext
10166
cat >>conftest.$ac_ext <<_ACEOF
10167
/* end confdefs.h. */
10168
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
10169
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10170
#define connect innocuous_connect
3786
10172
/* System header to define __stub macros and hopefully few prototypes,
3787
which can conflict with char connect(); below. */
3789
/* Override any gcc2 internal prototype to avoid an error. */
3790
/* We use char because int might match the return type of a gcc2
3791
builtin and then its argument prototype would still apply. */
10173
which can conflict with char connect (); below.
10174
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10175
<limits.h> exists even on freestanding compilers. */
10178
# include <limits.h>
10180
# include <assert.h>
10185
/* Override any GCC internal prototype to avoid an error.
10186
Use char because int might match the return type of a GCC
10187
builtin and then its argument prototype would still apply. */
3796
10192
/* The GNU C library defines this for functions which it implements
3797
10193
to always fail with ENOSYS. Some functions are actually named
3798
10194
something starting with __ and the normal name is an alias. */
3799
#if defined (__stub_connect) || defined (__stub___connect)
10195
#if defined __stub_connect || defined __stub___connect
3807
if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809
eval "ac_cv_func_connect=yes"
3811
echo "configure: failed program was:" >&5
3812
cat conftest.$ac_ext >&5
3814
eval "ac_cv_func_connect=no"
3819
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3820
echo "$ac_t""yes" 1>&6
3823
echo "$ac_t""no" 1>&6
10207
rm -f conftest.$ac_objext conftest$ac_exeext
10208
if { (ac_try="$ac_link"
10209
case "(($ac_try" in
10210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211
*) ac_try_echo=$ac_try;;
10213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214
(eval "$ac_link") 2>conftest.er1
10216
grep -v '^ *+' conftest.er1 >conftest.err
10218
cat conftest.err >&5
10219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220
(exit $ac_status); } && {
10221
test -z "$ac_c_werror_flag" ||
10222
test ! -s conftest.err
10223
} && test -s conftest$ac_exeext &&
10224
$as_test_x conftest$ac_exeext; then
10225
ac_cv_func_connect=yes
10227
echo "$as_me: failed program was:" >&5
10228
sed 's/^/| /' conftest.$ac_ext >&5
10230
ac_cv_func_connect=no
10233
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10234
conftest$ac_exeext conftest.$ac_ext
10236
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10237
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
3826
10239
if test $ac_cv_func_connect = no; then
3827
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3828
echo "configure:3829: checking for connect in -lsocket" >&5
3829
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3830
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3831
echo $ac_n "(cached) $ac_c" 1>&6
10240
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10241
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
10242
if test "${ac_cv_lib_socket_connect+set}" = set; then
10243
echo $ECHO_N "(cached) $ECHO_C" >&6
3833
ac_save_LIBS="$LIBS"
10245
ac_check_lib_save_LIBS=$LIBS
3834
10246
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3835
cat > conftest.$ac_ext <<EOF
3836
#line 3837 "configure"
3837
#include "confdefs.h"
3838
/* Override any gcc2 internal prototype to avoid an error. */
3839
/* We use char because int might match the return type of a gcc2
3840
builtin and then its argument prototype would still apply. */
10247
cat >conftest.$ac_ext <<_ACEOF
10250
cat confdefs.h >>conftest.$ac_ext
10251
cat >>conftest.$ac_ext <<_ACEOF
10252
/* end confdefs.h. */
3847
if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849
eval "ac_cv_lib_$ac_lib_var=yes"
10254
/* Override any GCC internal prototype to avoid an error.
10255
Use char because int might match the return type of a GCC
10256
builtin and then its argument prototype would still apply. */
10269
rm -f conftest.$ac_objext conftest$ac_exeext
10270
if { (ac_try="$ac_link"
10271
case "(($ac_try" in
10272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273
*) ac_try_echo=$ac_try;;
10275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276
(eval "$ac_link") 2>conftest.er1
10278
grep -v '^ *+' conftest.er1 >conftest.err
10280
cat conftest.err >&5
10281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282
(exit $ac_status); } && {
10283
test -z "$ac_c_werror_flag" ||
10284
test ! -s conftest.err
10285
} && test -s conftest$ac_exeext &&
10286
$as_test_x conftest$ac_exeext; then
10287
ac_cv_lib_socket_connect=yes
3851
echo "configure: failed program was:" >&5
3852
cat conftest.$ac_ext >&5
3854
eval "ac_cv_lib_$ac_lib_var=no"
3857
LIBS="$ac_save_LIBS"
3860
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3861
echo "$ac_t""yes" 1>&6
10289
echo "$as_me: failed program was:" >&5
10290
sed 's/^/| /' conftest.$ac_ext >&5
10292
ac_cv_lib_socket_connect=no
10295
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10296
conftest$ac_exeext conftest.$ac_ext
10297
LIBS=$ac_check_lib_save_LIBS
10299
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10300
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
10301
if test $ac_cv_lib_socket_connect = yes; then
3862
10302
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3864
echo "$ac_t""no" 1>&6
3869
# gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3870
echo $ac_n "checking for remove""... $ac_c" 1>&6
3871
echo "configure:3872: checking for remove" >&5
3872
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3873
echo $ac_n "(cached) $ac_c" 1>&6
10307
# Guillermo Gomez says -lposix is necessary on A/UX.
10308
{ echo "$as_me:$LINENO: checking for remove" >&5
10309
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
10310
if test "${ac_cv_func_remove+set}" = set; then
10311
echo $ECHO_N "(cached) $ECHO_C" >&6
3875
cat > conftest.$ac_ext <<EOF
3876
#line 3877 "configure"
3877
#include "confdefs.h"
10313
cat >conftest.$ac_ext <<_ACEOF
10316
cat confdefs.h >>conftest.$ac_ext
10317
cat >>conftest.$ac_ext <<_ACEOF
10318
/* end confdefs.h. */
10319
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
10320
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10321
#define remove innocuous_remove
3878
10323
/* System header to define __stub macros and hopefully few prototypes,
3879
which can conflict with char remove(); below. */
3881
/* Override any gcc2 internal prototype to avoid an error. */
3882
/* We use char because int might match the return type of a gcc2
3883
builtin and then its argument prototype would still apply. */
10324
which can conflict with char remove (); below.
10325
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10326
<limits.h> exists even on freestanding compilers. */
10329
# include <limits.h>
10331
# include <assert.h>
10336
/* Override any GCC internal prototype to avoid an error.
10337
Use char because int might match the return type of a GCC
10338
builtin and then its argument prototype would still apply. */
3888
10343
/* The GNU C library defines this for functions which it implements
3889
10344
to always fail with ENOSYS. Some functions are actually named
3890
10345
something starting with __ and the normal name is an alias. */
3891
#if defined (__stub_remove) || defined (__stub___remove)
10346
#if defined __stub_remove || defined __stub___remove
3899
if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3901
eval "ac_cv_func_remove=yes"
3903
echo "configure: failed program was:" >&5
3904
cat conftest.$ac_ext >&5
3906
eval "ac_cv_func_remove=no"
3911
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3912
echo "$ac_t""yes" 1>&6
3915
echo "$ac_t""no" 1>&6
10358
rm -f conftest.$ac_objext conftest$ac_exeext
10359
if { (ac_try="$ac_link"
10360
case "(($ac_try" in
10361
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362
*) ac_try_echo=$ac_try;;
10364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365
(eval "$ac_link") 2>conftest.er1
10367
grep -v '^ *+' conftest.er1 >conftest.err
10369
cat conftest.err >&5
10370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371
(exit $ac_status); } && {
10372
test -z "$ac_c_werror_flag" ||
10373
test ! -s conftest.err
10374
} && test -s conftest$ac_exeext &&
10375
$as_test_x conftest$ac_exeext; then
10376
ac_cv_func_remove=yes
10378
echo "$as_me: failed program was:" >&5
10379
sed 's/^/| /' conftest.$ac_ext >&5
10381
ac_cv_func_remove=no
10384
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385
conftest$ac_exeext conftest.$ac_ext
10387
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10388
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
3918
10390
if test $ac_cv_func_remove = no; then
3919
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3920
echo "configure:3921: checking for remove in -lposix" >&5
3921
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3922
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3923
echo $ac_n "(cached) $ac_c" 1>&6
10391
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10392
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
10393
if test "${ac_cv_lib_posix_remove+set}" = set; then
10394
echo $ECHO_N "(cached) $ECHO_C" >&6
3925
ac_save_LIBS="$LIBS"
10396
ac_check_lib_save_LIBS=$LIBS
3926
10397
LIBS="-lposix $LIBS"
3927
cat > conftest.$ac_ext <<EOF
3928
#line 3929 "configure"
3929
#include "confdefs.h"
3930
/* Override any gcc2 internal prototype to avoid an error. */
3931
/* We use char because int might match the return type of a gcc2
3932
builtin and then its argument prototype would still apply. */
10398
cat >conftest.$ac_ext <<_ACEOF
10401
cat confdefs.h >>conftest.$ac_ext
10402
cat >>conftest.$ac_ext <<_ACEOF
10403
/* end confdefs.h. */
3939
if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3941
eval "ac_cv_lib_$ac_lib_var=yes"
10405
/* Override any GCC internal prototype to avoid an error.
10406
Use char because int might match the return type of a GCC
10407
builtin and then its argument prototype would still apply. */
10420
rm -f conftest.$ac_objext conftest$ac_exeext
10421
if { (ac_try="$ac_link"
10422
case "(($ac_try" in
10423
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424
*) ac_try_echo=$ac_try;;
10426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427
(eval "$ac_link") 2>conftest.er1
10429
grep -v '^ *+' conftest.er1 >conftest.err
10431
cat conftest.err >&5
10432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433
(exit $ac_status); } && {
10434
test -z "$ac_c_werror_flag" ||
10435
test ! -s conftest.err
10436
} && test -s conftest$ac_exeext &&
10437
$as_test_x conftest$ac_exeext; then
10438
ac_cv_lib_posix_remove=yes
3943
echo "configure: failed program was:" >&5
3944
cat conftest.$ac_ext >&5
3946
eval "ac_cv_lib_$ac_lib_var=no"
3949
LIBS="$ac_save_LIBS"
3952
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3953
echo "$ac_t""yes" 1>&6
10440
echo "$as_me: failed program was:" >&5
10441
sed 's/^/| /' conftest.$ac_ext >&5
10443
ac_cv_lib_posix_remove=no
10446
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447
conftest$ac_exeext conftest.$ac_ext
10448
LIBS=$ac_check_lib_save_LIBS
10450
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10451
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
10452
if test $ac_cv_lib_posix_remove = yes; then
3954
10453
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3956
echo "$ac_t""no" 1>&6
3961
10458
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3962
echo $ac_n "checking for shmat""... $ac_c" 1>&6
3963
echo "configure:3964: checking for shmat" >&5
3964
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3965
echo $ac_n "(cached) $ac_c" 1>&6
10459
{ echo "$as_me:$LINENO: checking for shmat" >&5
10460
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
10461
if test "${ac_cv_func_shmat+set}" = set; then
10462
echo $ECHO_N "(cached) $ECHO_C" >&6
3967
cat > conftest.$ac_ext <<EOF
3968
#line 3969 "configure"
3969
#include "confdefs.h"
10464
cat >conftest.$ac_ext <<_ACEOF
10467
cat confdefs.h >>conftest.$ac_ext
10468
cat >>conftest.$ac_ext <<_ACEOF
10469
/* end confdefs.h. */
10470
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10471
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10472
#define shmat innocuous_shmat
3970
10474
/* System header to define __stub macros and hopefully few prototypes,
3971
which can conflict with char shmat(); below. */
3973
/* Override any gcc2 internal prototype to avoid an error. */
3974
/* We use char because int might match the return type of a gcc2
3975
builtin and then its argument prototype would still apply. */
10475
which can conflict with char shmat (); below.
10476
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10477
<limits.h> exists even on freestanding compilers. */
10480
# include <limits.h>
10482
# include <assert.h>
10487
/* Override any GCC internal prototype to avoid an error.
10488
Use char because int might match the return type of a GCC
10489
builtin and then its argument prototype would still apply. */
3980
10494
/* The GNU C library defines this for functions which it implements
3981
10495
to always fail with ENOSYS. Some functions are actually named
3982
10496
something starting with __ and the normal name is an alias. */
3983
#if defined (__stub_shmat) || defined (__stub___shmat)
10497
#if defined __stub_shmat || defined __stub___shmat
3991
if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3993
eval "ac_cv_func_shmat=yes"
3995
echo "configure: failed program was:" >&5
3996
cat conftest.$ac_ext >&5
3998
eval "ac_cv_func_shmat=no"
4003
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4004
echo "$ac_t""yes" 1>&6
4007
echo "$ac_t""no" 1>&6
10509
rm -f conftest.$ac_objext conftest$ac_exeext
10510
if { (ac_try="$ac_link"
10511
case "(($ac_try" in
10512
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513
*) ac_try_echo=$ac_try;;
10515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516
(eval "$ac_link") 2>conftest.er1
10518
grep -v '^ *+' conftest.er1 >conftest.err
10520
cat conftest.err >&5
10521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522
(exit $ac_status); } && {
10523
test -z "$ac_c_werror_flag" ||
10524
test ! -s conftest.err
10525
} && test -s conftest$ac_exeext &&
10526
$as_test_x conftest$ac_exeext; then
10527
ac_cv_func_shmat=yes
10529
echo "$as_me: failed program was:" >&5
10530
sed 's/^/| /' conftest.$ac_ext >&5
10532
ac_cv_func_shmat=no
10535
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10536
conftest$ac_exeext conftest.$ac_ext
10538
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10539
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4010
10541
if test $ac_cv_func_shmat = no; then
4011
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4012
echo "configure:4013: checking for shmat in -lipc" >&5
4013
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4014
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4015
echo $ac_n "(cached) $ac_c" 1>&6
10542
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10543
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
10544
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10545
echo $ECHO_N "(cached) $ECHO_C" >&6
4017
ac_save_LIBS="$LIBS"
10547
ac_check_lib_save_LIBS=$LIBS
4018
10548
LIBS="-lipc $LIBS"
4019
cat > conftest.$ac_ext <<EOF
4020
#line 4021 "configure"
4021
#include "confdefs.h"
4022
/* Override any gcc2 internal prototype to avoid an error. */
4023
/* We use char because int might match the return type of a gcc2
4024
builtin and then its argument prototype would still apply. */
10549
cat >conftest.$ac_ext <<_ACEOF
10552
cat confdefs.h >>conftest.$ac_ext
10553
cat >>conftest.$ac_ext <<_ACEOF
10554
/* end confdefs.h. */
4031
if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4033
eval "ac_cv_lib_$ac_lib_var=yes"
10556
/* Override any GCC internal prototype to avoid an error.
10557
Use char because int might match the return type of a GCC
10558
builtin and then its argument prototype would still apply. */
10571
rm -f conftest.$ac_objext conftest$ac_exeext
10572
if { (ac_try="$ac_link"
10573
case "(($ac_try" in
10574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575
*) ac_try_echo=$ac_try;;
10577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578
(eval "$ac_link") 2>conftest.er1
10580
grep -v '^ *+' conftest.er1 >conftest.err
10582
cat conftest.err >&5
10583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584
(exit $ac_status); } && {
10585
test -z "$ac_c_werror_flag" ||
10586
test ! -s conftest.err
10587
} && test -s conftest$ac_exeext &&
10588
$as_test_x conftest$ac_exeext; then
10589
ac_cv_lib_ipc_shmat=yes
4035
echo "configure: failed program was:" >&5
4036
cat conftest.$ac_ext >&5
4038
eval "ac_cv_lib_$ac_lib_var=no"
4041
LIBS="$ac_save_LIBS"
4044
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4045
echo "$ac_t""yes" 1>&6
10591
echo "$as_me: failed program was:" >&5
10592
sed 's/^/| /' conftest.$ac_ext >&5
10594
ac_cv_lib_ipc_shmat=no
10597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10598
conftest$ac_exeext conftest.$ac_ext
10599
LIBS=$ac_check_lib_save_LIBS
10601
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10602
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
10603
if test $ac_cv_lib_ipc_shmat = yes; then
4046
10604
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4048
echo "$ac_t""no" 1>&6
4054
10610
# Check for libraries that X11R6 Xt/Xaw programs need.
4055
ac_save_LDFLAGS="$LDFLAGS"
10611
ac_save_LDFLAGS=$LDFLAGS
4056
10612
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4057
10613
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4058
10614
# check for ICE first), but we must link in the order -lSM -lICE or
4059
10615
# we get undefined symbols. So assume we have SM if we have ICE.
4060
10616
# These have to be linked with before -lX11, unlike the other
4061
10617
# libraries we check for below, so use a different variable.
4062
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4063
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4064
echo "configure:4065: checking for IceConnectionNumber in -lICE" >&5
4065
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4066
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4067
echo $ac_n "(cached) $ac_c" 1>&6
10618
# John Interrante, Karl Berry
10619
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10620
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
10621
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10622
echo $ECHO_N "(cached) $ECHO_C" >&6
4069
ac_save_LIBS="$LIBS"
10624
ac_check_lib_save_LIBS=$LIBS
4070
10625
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4071
cat > conftest.$ac_ext <<EOF
4072
#line 4073 "configure"
4073
#include "confdefs.h"
4074
/* Override any gcc2 internal prototype to avoid an error. */
4075
/* We use char because int might match the return type of a gcc2
4076
builtin and then its argument prototype would still apply. */
4077
char IceConnectionNumber();
10626
cat >conftest.$ac_ext <<_ACEOF
10629
cat confdefs.h >>conftest.$ac_ext
10630
cat >>conftest.$ac_ext <<_ACEOF
10631
/* end confdefs.h. */
4080
IceConnectionNumber()
4083
if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4085
eval "ac_cv_lib_$ac_lib_var=yes"
10633
/* Override any GCC internal prototype to avoid an error.
10634
Use char because int might match the return type of a GCC
10635
builtin and then its argument prototype would still apply. */
10639
char IceConnectionNumber ();
10643
return IceConnectionNumber ();
10648
rm -f conftest.$ac_objext conftest$ac_exeext
10649
if { (ac_try="$ac_link"
10650
case "(($ac_try" in
10651
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652
*) ac_try_echo=$ac_try;;
10654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655
(eval "$ac_link") 2>conftest.er1
10657
grep -v '^ *+' conftest.er1 >conftest.err
10659
cat conftest.err >&5
10660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661
(exit $ac_status); } && {
10662
test -z "$ac_c_werror_flag" ||
10663
test ! -s conftest.err
10664
} && test -s conftest$ac_exeext &&
10665
$as_test_x conftest$ac_exeext; then
10666
ac_cv_lib_ICE_IceConnectionNumber=yes
4087
echo "configure: failed program was:" >&5
4088
cat conftest.$ac_ext >&5
4090
eval "ac_cv_lib_$ac_lib_var=no"
4093
LIBS="$ac_save_LIBS"
4096
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4097
echo "$ac_t""yes" 1>&6
10668
echo "$as_me: failed program was:" >&5
10669
sed 's/^/| /' conftest.$ac_ext >&5
10671
ac_cv_lib_ICE_IceConnectionNumber=no
10674
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10675
conftest$ac_exeext conftest.$ac_ext
10676
LIBS=$ac_check_lib_save_LIBS
10678
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10679
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
10680
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4098
10681
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4100
echo "$ac_t""no" 1>&6
4103
LDFLAGS="$ac_save_LDFLAGS"
4108
echo $ac_n "checking for long file names""... $ac_c" 1>&6
4109
echo "configure:4110: checking for long file names" >&5
4110
if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4111
echo $ac_n "(cached) $ac_c" 1>&6
10684
LDFLAGS=$ac_save_LDFLAGS
10689
{ echo "$as_me:$LINENO: checking for long file names" >&5
10690
echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
10691
if test "${ac_cv_sys_long_file_names+set}" = set; then
10692
echo $ECHO_N "(cached) $ECHO_C" >&6
4113
10694
ac_cv_sys_long_file_names=yes
4114
10695
# Test for long file names in all the places we know might matter:
4115
10696
# . the current directory, where building will happen
4116
10697
# $prefix/lib where we will be installing things
4117
10698
# $exec_prefix/lib likewise
4118
# eval it to expand exec_prefix.
4119
10699
# $TMPDIR if set, where it might want to write temporary files
4120
# if $TMPDIR is not set:
4121
10700
# /tmp where it might want to write temporary files
4122
10701
# /var/tmp likewise
4123
10702
# /usr/tmp likewise
4124
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4125
ac_tmpdirs="$TMPDIR"
4127
ac_tmpdirs='/tmp /var/tmp /usr/tmp'
4129
for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4130
test -d $ac_dir || continue
4131
test -w $ac_dir || continue # It is less confusing to not echo anything here.
4132
(echo 1 > $ac_dir/conftest9012345) 2>/dev/null
4133
(echo 2 > $ac_dir/conftest9012346) 2>/dev/null
4134
val=`cat $ac_dir/conftest9012345 2>/dev/null`
4135
if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
10703
for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10704
# Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10705
# in the usual case where exec_prefix is '${prefix}'.
10707
. | /* | ?:[\\/]*) ;; #(
10710
test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10711
ac_xdir=$ac_dir/cf$$
10712
(umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10713
ac_tf1=$ac_xdir/conftest9012345
10714
ac_tf2=$ac_xdir/conftest9012346
10715
touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
4136
10716
ac_cv_sys_long_file_names=no
4137
rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
4140
rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
10717
rm -f -r "$ac_xdir" 2>/dev/null
10718
test $ac_cv_sys_long_file_names = no && break
4144
echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
10721
{ echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10722
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
4145
10723
if test $ac_cv_sys_long_file_names = yes; then
4146
cat >> confdefs.h <<\EOF
10725
cat >>confdefs.h <<\_ACEOF
4147
10726
#define HAVE_LONG_FILE_NAMES 1
4153
echo $ac_n "checking for -lrpcsvc""... $ac_c" 1>&6
4154
echo "configure:4155: checking for -lrpcsvc" >&5
4155
if eval "test \"`echo '$''{'ac_cv_lib_rpcsvc'+set}'`\" = set"; then
4156
echo $ac_n "(cached) $ac_c" 1>&6
10732
{ echo "$as_me:$LINENO: checking for main in -lrpcsvc" >&5
10733
echo $ECHO_N "checking for main in -lrpcsvc... $ECHO_C" >&6; }
10734
if test "${ac_cv_lib_rpcsvc_main+set}" = set; then
10735
echo $ECHO_N "(cached) $ECHO_C" >&6
4158
ac_save_LIBS="$LIBS"
10737
ac_check_lib_save_LIBS=$LIBS
4159
10738
LIBS="-lrpcsvc $LIBS"
4160
cat > conftest.$ac_ext <<EOF
4161
#line 4162 "configure"
4162
#include "confdefs.h"
4168
if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4170
ac_cv_lib_rpcsvc=yes
10739
cat >conftest.$ac_ext <<_ACEOF
10742
cat confdefs.h >>conftest.$ac_ext
10743
cat >>conftest.$ac_ext <<_ACEOF
10744
/* end confdefs.h. */
10755
rm -f conftest.$ac_objext conftest$ac_exeext
10756
if { (ac_try="$ac_link"
10757
case "(($ac_try" in
10758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759
*) ac_try_echo=$ac_try;;
10761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762
(eval "$ac_link") 2>conftest.er1
10764
grep -v '^ *+' conftest.er1 >conftest.err
10766
cat conftest.err >&5
10767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768
(exit $ac_status); } && {
10769
test -z "$ac_c_werror_flag" ||
10770
test ! -s conftest.err
10771
} && test -s conftest$ac_exeext &&
10772
$as_test_x conftest$ac_exeext; then
10773
ac_cv_lib_rpcsvc_main=yes
4172
echo "configure: failed program was:" >&5
4173
cat conftest.$ac_ext >&5
4178
LIBS="$ac_save_LIBS"
4181
echo "$ac_t""$ac_cv_lib_rpcsvc" 1>&6
4182
if test "$ac_cv_lib_rpcsvc" = yes; then
10775
echo "$as_me: failed program was:" >&5
10776
sed 's/^/| /' conftest.$ac_ext >&5
10778
ac_cv_lib_rpcsvc_main=no
10781
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10782
conftest$ac_exeext conftest.$ac_ext
10783
LIBS=$ac_check_lib_save_LIBS
10785
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsvc_main" >&5
10786
echo "${ECHO_T}$ac_cv_lib_rpcsvc_main" >&6; }
10787
if test $ac_cv_lib_rpcsvc_main = yes; then
4183
10788
rpcsvc_lib="-lrpcsvc"
4186
echo $ac_n "checking for xdr_mon in -lrpcsvc""... $ac_c" 1>&6
4187
echo "configure:4188: checking for xdr_mon in -lrpcsvc" >&5
4188
ac_lib_var=`echo rpcsvc'_'xdr_mon | sed 'y%./+-%__p_%'`
4189
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190
echo $ac_n "(cached) $ac_c" 1>&6
10790
ac_cv_lib_rpcsvc=ac_cv_lib_rpcsvc_main
10792
{ echo "$as_me:$LINENO: checking for xdr_mon in -lrpcsvc" >&5
10793
echo $ECHO_N "checking for xdr_mon in -lrpcsvc... $ECHO_C" >&6; }
10794
if test "${ac_cv_lib_rpcsvc_xdr_mon+set}" = set; then
10795
echo $ECHO_N "(cached) $ECHO_C" >&6
4192
ac_save_LIBS="$LIBS"
10797
ac_check_lib_save_LIBS=$LIBS
4193
10798
LIBS="-lrpcsvc $LIBS"
4194
cat > conftest.$ac_ext <<EOF
4195
#line 4196 "configure"
4196
#include "confdefs.h"
4197
/* Override any gcc2 internal prototype to avoid an error. */
4198
/* We use char because int might match the return type of a gcc2
4199
builtin and then its argument prototype would still apply. */
10799
cat >conftest.$ac_ext <<_ACEOF
10802
cat confdefs.h >>conftest.$ac_ext
10803
cat >>conftest.$ac_ext <<_ACEOF
10804
/* end confdefs.h. */
4206
if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208
eval "ac_cv_lib_$ac_lib_var=yes"
10806
/* Override any GCC internal prototype to avoid an error.
10807
Use char because int might match the return type of a GCC
10808
builtin and then its argument prototype would still apply. */
10821
rm -f conftest.$ac_objext conftest$ac_exeext
10822
if { (ac_try="$ac_link"
10823
case "(($ac_try" in
10824
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825
*) ac_try_echo=$ac_try;;
10827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828
(eval "$ac_link") 2>conftest.er1
10830
grep -v '^ *+' conftest.er1 >conftest.err
10832
cat conftest.err >&5
10833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834
(exit $ac_status); } && {
10835
test -z "$ac_c_werror_flag" ||
10836
test ! -s conftest.err
10837
} && test -s conftest$ac_exeext &&
10838
$as_test_x conftest$ac_exeext; then
10839
ac_cv_lib_rpcsvc_xdr_mon=yes
4210
echo "configure: failed program was:" >&5
4211
cat conftest.$ac_ext >&5
4213
eval "ac_cv_lib_$ac_lib_var=no"
4216
LIBS="$ac_save_LIBS"
4219
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220
echo "$ac_t""yes" 1>&6
4221
cat >> confdefs.h <<\EOF
10841
echo "$as_me: failed program was:" >&5
10842
sed 's/^/| /' conftest.$ac_ext >&5
10844
ac_cv_lib_rpcsvc_xdr_mon=no
10847
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10848
conftest$ac_exeext conftest.$ac_ext
10849
LIBS=$ac_check_lib_save_LIBS
10851
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsvc_xdr_mon" >&5
10852
echo "${ECHO_T}$ac_cv_lib_rpcsvc_xdr_mon" >&6; }
10853
if test $ac_cv_lib_rpcsvc_xdr_mon = yes; then
10854
cat >>confdefs.h <<\_ACEOF
4222
10855
#define HAVE_XDR_MON 1
4226
echo "$ac_t""no" 1>&6
4231
echo $ac_n "checking for lfind in -lcompat""... $ac_c" 1>&6
4232
echo "configure:4233: checking for lfind in -lcompat" >&5
4233
ac_lib_var=`echo compat'_'lfind | sed 'y%./+-%__p_%'`
4234
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4235
echo $ac_n "(cached) $ac_c" 1>&6
10862
{ echo "$as_me:$LINENO: checking for lfind in -lcompat" >&5
10863
echo $ECHO_N "checking for lfind in -lcompat... $ECHO_C" >&6; }
10864
if test "${ac_cv_lib_compat_lfind+set}" = set; then
10865
echo $ECHO_N "(cached) $ECHO_C" >&6
4237
ac_save_LIBS="$LIBS"
10867
ac_check_lib_save_LIBS=$LIBS
4238
10868
LIBS="-lcompat $LIBS"
4239
cat > conftest.$ac_ext <<EOF
4240
#line 4241 "configure"
4241
#include "confdefs.h"
4242
/* Override any gcc2 internal prototype to avoid an error. */
4243
/* We use char because int might match the return type of a gcc2
4244
builtin and then its argument prototype would still apply. */
10869
cat >conftest.$ac_ext <<_ACEOF
10872
cat confdefs.h >>conftest.$ac_ext
10873
cat >>conftest.$ac_ext <<_ACEOF
10874
/* end confdefs.h. */
4251
if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253
eval "ac_cv_lib_$ac_lib_var=yes"
10876
/* Override any GCC internal prototype to avoid an error.
10877
Use char because int might match the return type of a GCC
10878
builtin and then its argument prototype would still apply. */
10891
rm -f conftest.$ac_objext conftest$ac_exeext
10892
if { (ac_try="$ac_link"
10893
case "(($ac_try" in
10894
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895
*) ac_try_echo=$ac_try;;
10897
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898
(eval "$ac_link") 2>conftest.er1
10900
grep -v '^ *+' conftest.er1 >conftest.err
10902
cat conftest.err >&5
10903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904
(exit $ac_status); } && {
10905
test -z "$ac_c_werror_flag" ||
10906
test ! -s conftest.err
10907
} && test -s conftest$ac_exeext &&
10908
$as_test_x conftest$ac_exeext; then
10909
ac_cv_lib_compat_lfind=yes
4255
echo "configure: failed program was:" >&5
4256
cat conftest.$ac_ext >&5
4258
eval "ac_cv_lib_$ac_lib_var=no"
4261
LIBS="$ac_save_LIBS"
4264
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4265
echo "$ac_t""yes" 1>&6
10911
echo "$as_me: failed program was:" >&5
10912
sed 's/^/| /' conftest.$ac_ext >&5
10914
ac_cv_lib_compat_lfind=no
10917
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918
conftest$ac_exeext conftest.$ac_ext
10919
LIBS=$ac_check_lib_save_LIBS
10921
{ echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lfind" >&5
10922
echo "${ECHO_T}$ac_cv_lib_compat_lfind" >&6; }
10923
if test $ac_cv_lib_compat_lfind = yes; then
4266
10924
compat_lib="-lcompat"
4268
echo "$ac_t""no" 1>&6
4274
test -n "$resolv_lib" && (echo $ac_n "checking for inet_neta in -lresolv""... $ac_c" 1>&6
4275
echo "configure:4276: checking for inet_neta in -lresolv" >&5
4276
ac_lib_var=`echo resolv'_'inet_neta | sed 'y%./+-%__p_%'`
4277
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4278
echo $ac_n "(cached) $ac_c" 1>&6
10930
test -n "$resolv_lib" && ({ echo "$as_me:$LINENO: checking for inet_neta in -lresolv" >&5
10931
echo $ECHO_N "checking for inet_neta in -lresolv... $ECHO_C" >&6; }
10932
if test "${ac_cv_lib_resolv_inet_neta+set}" = set; then
10933
echo $ECHO_N "(cached) $ECHO_C" >&6
4280
ac_save_LIBS="$LIBS"
10935
ac_check_lib_save_LIBS=$LIBS
4281
10936
LIBS="-lresolv $LIBS"
4282
cat > conftest.$ac_ext <<EOF
4283
#line 4284 "configure"
4284
#include "confdefs.h"
4285
/* Override any gcc2 internal prototype to avoid an error. */
4286
/* We use char because int might match the return type of a gcc2
4287
builtin and then its argument prototype would still apply. */
10937
cat >conftest.$ac_ext <<_ACEOF
10940
cat confdefs.h >>conftest.$ac_ext
10941
cat >>conftest.$ac_ext <<_ACEOF
10942
/* end confdefs.h. */
4294
if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4296
eval "ac_cv_lib_$ac_lib_var=yes"
10944
/* Override any GCC internal prototype to avoid an error.
10945
Use char because int might match the return type of a GCC
10946
builtin and then its argument prototype would still apply. */
10954
return inet_neta ();
10959
rm -f conftest.$ac_objext conftest$ac_exeext
10960
if { (ac_try="$ac_link"
10961
case "(($ac_try" in
10962
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963
*) ac_try_echo=$ac_try;;
10965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966
(eval "$ac_link") 2>conftest.er1
10968
grep -v '^ *+' conftest.er1 >conftest.err
10970
cat conftest.err >&5
10971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972
(exit $ac_status); } && {
10973
test -z "$ac_c_werror_flag" ||
10974
test ! -s conftest.err
10975
} && test -s conftest$ac_exeext &&
10976
$as_test_x conftest$ac_exeext; then
10977
ac_cv_lib_resolv_inet_neta=yes
4298
echo "configure: failed program was:" >&5
4299
cat conftest.$ac_ext >&5
4301
eval "ac_cv_lib_$ac_lib_var=no"
4304
LIBS="$ac_save_LIBS"
4307
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308
echo "$ac_t""yes" 1>&6
4309
cat >> confdefs.h <<\EOF
10979
echo "$as_me: failed program was:" >&5
10980
sed 's/^/| /' conftest.$ac_ext >&5
10982
ac_cv_lib_resolv_inet_neta=no
10985
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10986
conftest$ac_exeext conftest.$ac_ext
10987
LIBS=$ac_check_lib_save_LIBS
10989
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_neta" >&5
10990
echo "${ECHO_T}$ac_cv_lib_resolv_inet_neta" >&6; }
10991
if test $ac_cv_lib_resolv_inet_neta = yes; then
10992
cat >>confdefs.h <<\_ACEOF
4310
10993
#define HAVE_INET_NETA 1
4314
echo "$ac_t""no" 1>&6
4319
11000
test -n "$libwrap" && {
4320
echo $ac_n "checking for -lwrap""... $ac_c" 1>&6
4321
echo "configure:4322: checking for -lwrap" >&5
4322
if eval "test \"`echo '$''{'ac_cv_lib_wrap'+set}'`\" = set"; then
4323
echo $ac_n "(cached) $ac_c" 1>&6
11002
{ echo "$as_me:$LINENO: checking for main in -lwrap" >&5
11003
echo $ECHO_N "checking for main in -lwrap... $ECHO_C" >&6; }
11004
if test "${ac_cv_lib_wrap_main+set}" = set; then
11005
echo $ECHO_N "(cached) $ECHO_C" >&6
4325
ac_save_LIBS="$LIBS"
11007
ac_check_lib_save_LIBS=$LIBS
4326
11008
LIBS="-lwrap $LIBS"
4327
cat > conftest.$ac_ext <<EOF
4328
#line 4329 "configure"
4329
#include "confdefs.h"
4335
if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11009
cat >conftest.$ac_ext <<_ACEOF
11012
cat confdefs.h >>conftest.$ac_ext
11013
cat >>conftest.$ac_ext <<_ACEOF
11014
/* end confdefs.h. */
11025
rm -f conftest.$ac_objext conftest$ac_exeext
11026
if { (ac_try="$ac_link"
11027
case "(($ac_try" in
11028
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029
*) ac_try_echo=$ac_try;;
11031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032
(eval "$ac_link") 2>conftest.er1
11034
grep -v '^ *+' conftest.er1 >conftest.err
11036
cat conftest.err >&5
11037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038
(exit $ac_status); } && {
11039
test -z "$ac_c_werror_flag" ||
11040
test ! -s conftest.err
11041
} && test -s conftest$ac_exeext &&
11042
$as_test_x conftest$ac_exeext; then
11043
ac_cv_lib_wrap_main=yes
4339
echo "configure: failed program was:" >&5
4340
cat conftest.$ac_ext >&5
4345
LIBS="$ac_save_LIBS"
4348
echo "$ac_t""$ac_cv_lib_wrap" 1>&6
4349
if test "$ac_cv_lib_wrap" = yes; then
4350
cat >> confdefs.h <<\EOF
11045
echo "$as_me: failed program was:" >&5
11046
sed 's/^/| /' conftest.$ac_ext >&5
11048
ac_cv_lib_wrap_main=no
11051
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052
conftest$ac_exeext conftest.$ac_ext
11053
LIBS=$ac_check_lib_save_LIBS
11055
{ echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_main" >&5
11056
echo "${ECHO_T}$ac_cv_lib_wrap_main" >&6; }
11057
if test $ac_cv_lib_wrap_main = yes; then
11058
cat >>confdefs.h <<_ACEOF
4351
11059
#define HAVE_LIBWRAP 1
4354
11062
LIBS="-lwrap $LIBS"
4357
{ echo "configure: error: "The switch --enable-tcpwrappers has been set but your system lacks libwrap !"" 1>&2; exit 1; }
4360
ac_safe=`echo "tcpd.h" | sed 'y%./+-%__p_%'`
4361
echo $ac_n "checking for tcpd.h""... $ac_c" 1>&6
4362
echo "configure:4363: checking for tcpd.h" >&5
4363
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4364
echo $ac_n "(cached) $ac_c" 1>&6
4366
cat > conftest.$ac_ext <<EOF
4367
#line 4368 "configure"
4368
#include "confdefs.h"
4371
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4372
{ (eval echo configure:4373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4373
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4374
if test -z "$ac_err"; then
4376
eval "ac_cv_header_$ac_safe=yes"
4379
echo "configure: failed program was:" >&5
4380
cat conftest.$ac_ext >&5
4382
eval "ac_cv_header_$ac_safe=no"
4386
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4387
echo "$ac_t""yes" 1>&6
11065
{ { echo "$as_me:$LINENO: error: \"The switch --enable-tcpwrappers has been set but your system lacks libwrap !\"" >&5
11066
echo "$as_me: error: \"The switch --enable-tcpwrappers has been set but your system lacks libwrap !\"" >&2;}
11067
{ (exit 1); exit 1; }; }
11069
ac_cv_lib_wrap=ac_cv_lib_wrap_main
11071
if test "${ac_cv_header_tcpd_h+set}" = set; then
11072
{ echo "$as_me:$LINENO: checking for tcpd.h" >&5
11073
echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6; }
11074
if test "${ac_cv_header_tcpd_h+set}" = set; then
11075
echo $ECHO_N "(cached) $ECHO_C" >&6
11077
{ echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
11078
echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6; }
11080
# Is the header compilable?
11081
{ echo "$as_me:$LINENO: checking tcpd.h usability" >&5
11082
echo $ECHO_N "checking tcpd.h usability... $ECHO_C" >&6; }
11083
cat >conftest.$ac_ext <<_ACEOF
11086
cat confdefs.h >>conftest.$ac_ext
11087
cat >>conftest.$ac_ext <<_ACEOF
11088
/* end confdefs.h. */
11089
$ac_includes_default
11092
rm -f conftest.$ac_objext
11093
if { (ac_try="$ac_compile"
11094
case "(($ac_try" in
11095
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096
*) ac_try_echo=$ac_try;;
11098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099
(eval "$ac_compile") 2>conftest.er1
11101
grep -v '^ *+' conftest.er1 >conftest.err
11103
cat conftest.err >&5
11104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105
(exit $ac_status); } && {
11106
test -z "$ac_c_werror_flag" ||
11107
test ! -s conftest.err
11108
} && test -s conftest.$ac_objext; then
11109
ac_header_compiler=yes
11111
echo "$as_me: failed program was:" >&5
11112
sed 's/^/| /' conftest.$ac_ext >&5
11114
ac_header_compiler=no
11117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11119
echo "${ECHO_T}$ac_header_compiler" >&6; }
11121
# Is the header present?
11122
{ echo "$as_me:$LINENO: checking tcpd.h presence" >&5
11123
echo $ECHO_N "checking tcpd.h presence... $ECHO_C" >&6; }
11124
cat >conftest.$ac_ext <<_ACEOF
11127
cat confdefs.h >>conftest.$ac_ext
11128
cat >>conftest.$ac_ext <<_ACEOF
11129
/* end confdefs.h. */
11132
if { (ac_try="$ac_cpp conftest.$ac_ext"
11133
case "(($ac_try" in
11134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135
*) ac_try_echo=$ac_try;;
11137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11140
grep -v '^ *+' conftest.er1 >conftest.err
11142
cat conftest.err >&5
11143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144
(exit $ac_status); } >/dev/null && {
11145
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11146
test ! -s conftest.err
11148
ac_header_preproc=yes
11150
echo "$as_me: failed program was:" >&5
11151
sed 's/^/| /' conftest.$ac_ext >&5
11153
ac_header_preproc=no
11156
rm -f conftest.err conftest.$ac_ext
11157
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11158
echo "${ECHO_T}$ac_header_preproc" >&6; }
11160
# So? What about this header?
11161
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11163
{ echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
11164
echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11165
{ echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
11166
echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
11167
ac_header_preproc=yes
11170
{ echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
11171
echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
11172
{ echo "$as_me:$LINENO: WARNING: tcpd.h: check for missing prerequisite headers?" >&5
11173
echo "$as_me: WARNING: tcpd.h: check for missing prerequisite headers?" >&2;}
11174
{ echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
11175
echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
11176
{ echo "$as_me:$LINENO: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&5
11177
echo "$as_me: WARNING: tcpd.h: section \"Present But Cannot Be Compiled\"" >&2;}
11178
{ echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
11179
echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
11180
{ echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
11181
echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
11185
{ echo "$as_me:$LINENO: checking for tcpd.h" >&5
11186
echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6; }
11187
if test "${ac_cv_header_tcpd_h+set}" = set; then
11188
echo $ECHO_N "(cached) $ECHO_C" >&6
11190
ac_cv_header_tcpd_h=$ac_header_preproc
11192
{ echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
11193
echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6; }
11196
if test $ac_cv_header_tcpd_h = yes; then
4390
echo "$ac_t""no" 1>&6
4391
{ echo "configure: error: "The switch --enable-tcpwrappers has been set but your system lacks tcpd.h !"" 1>&2; exit 1; }
11199
{ { echo "$as_me:$LINENO: error: \"The switch --enable-tcpwrappers has been set but your system lacks tcpd.h !\"" >&5
11200
echo "$as_me: error: \"The switch --enable-tcpwrappers has been set but your system lacks tcpd.h !\"" >&2;}
11201
{ (exit 1); exit 1; }; }
4394
11205
uselibwrap="-DUSE_LIBWRAP"
4396
echo $ac_n "checking for inet_aton in -lc""... $ac_c" 1>&6
4397
echo "configure:4398: checking for inet_aton in -lc" >&5
4398
ac_lib_var=`echo c'_'inet_aton | sed 'y%./+-%__p_%'`
4399
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4400
echo $ac_n "(cached) $ac_c" 1>&6
11207
{ echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
11208
echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
11209
if test "${ac_cv_lib_c_inet_aton+set}" = set; then
11210
echo $ECHO_N "(cached) $ECHO_C" >&6
4402
ac_save_LIBS="$LIBS"
11212
ac_check_lib_save_LIBS=$LIBS
4403
11213
LIBS="-lc $LIBS"
4404
cat > conftest.$ac_ext <<EOF
4405
#line 4406 "configure"
4406
#include "confdefs.h"
4407
/* Override any gcc2 internal prototype to avoid an error. */
4408
/* We use char because int might match the return type of a gcc2
4409
builtin and then its argument prototype would still apply. */
11214
cat >conftest.$ac_ext <<_ACEOF
11217
cat confdefs.h >>conftest.$ac_ext
11218
cat >>conftest.$ac_ext <<_ACEOF
11219
/* end confdefs.h. */
4416
if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4418
eval "ac_cv_lib_$ac_lib_var=yes"
11221
/* Override any GCC internal prototype to avoid an error.
11222
Use char because int might match the return type of a GCC
11223
builtin and then its argument prototype would still apply. */
11231
return inet_aton ();
11236
rm -f conftest.$ac_objext conftest$ac_exeext
11237
if { (ac_try="$ac_link"
11238
case "(($ac_try" in
11239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240
*) ac_try_echo=$ac_try;;
11242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243
(eval "$ac_link") 2>conftest.er1
11245
grep -v '^ *+' conftest.er1 >conftest.err
11247
cat conftest.err >&5
11248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249
(exit $ac_status); } && {
11250
test -z "$ac_c_werror_flag" ||
11251
test ! -s conftest.err
11252
} && test -s conftest$ac_exeext &&
11253
$as_test_x conftest$ac_exeext; then
11254
ac_cv_lib_c_inet_aton=yes
4420
echo "configure: failed program was:" >&5
4421
cat conftest.$ac_ext >&5
4423
eval "ac_cv_lib_$ac_lib_var=no"
4426
LIBS="$ac_save_LIBS"
4429
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4430
echo "$ac_t""yes" 1>&6
4431
cat >> confdefs.h <<\EOF
11256
echo "$as_me: failed program was:" >&5
11257
sed 's/^/| /' conftest.$ac_ext >&5
11259
ac_cv_lib_c_inet_aton=no
11262
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11263
conftest$ac_exeext conftest.$ac_ext
11264
LIBS=$ac_check_lib_save_LIBS
11266
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
11267
echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
11268
if test $ac_cv_lib_c_inet_aton = yes; then
11269
cat >>confdefs.h <<\_ACEOF
4432
11270
#define HAVE_INET_ATON 1
4436
echo "$ac_t""no" 1>&6
4439
echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4440
echo "configure:4441: checking for inet_aton in -lresolv" >&5
4441
ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
4442
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4443
echo $ac_n "(cached) $ac_c" 1>&6
11275
{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
11276
echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
11277
if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
11278
echo $ECHO_N "(cached) $ECHO_C" >&6
4445
ac_save_LIBS="$LIBS"
11280
ac_check_lib_save_LIBS=$LIBS
4446
11281
LIBS="-lresolv $LIBS"
4447
cat > conftest.$ac_ext <<EOF
4448
#line 4449 "configure"
4449
#include "confdefs.h"
4450
/* Override any gcc2 internal prototype to avoid an error. */
4451
/* We use char because int might match the return type of a gcc2
4452
builtin and then its argument prototype would still apply. */
11282
cat >conftest.$ac_ext <<_ACEOF
11285
cat confdefs.h >>conftest.$ac_ext
11286
cat >>conftest.$ac_ext <<_ACEOF
11287
/* end confdefs.h. */
4459
if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461
eval "ac_cv_lib_$ac_lib_var=yes"
11289
/* Override any GCC internal prototype to avoid an error.
11290
Use char because int might match the return type of a GCC
11291
builtin and then its argument prototype would still apply. */
11299
return inet_aton ();
11304
rm -f conftest.$ac_objext conftest$ac_exeext
11305
if { (ac_try="$ac_link"
11306
case "(($ac_try" in
11307
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308
*) ac_try_echo=$ac_try;;
11310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311
(eval "$ac_link") 2>conftest.er1
11313
grep -v '^ *+' conftest.er1 >conftest.err
11315
cat conftest.err >&5
11316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317
(exit $ac_status); } && {
11318
test -z "$ac_c_werror_flag" ||
11319
test ! -s conftest.err
11320
} && test -s conftest$ac_exeext &&
11321
$as_test_x conftest$ac_exeext; then
11322
ac_cv_lib_resolv_inet_aton=yes
4463
echo "configure: failed program was:" >&5
4464
cat conftest.$ac_ext >&5
4466
eval "ac_cv_lib_$ac_lib_var=no"
4469
LIBS="$ac_save_LIBS"
4472
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4473
echo "$ac_t""yes" 1>&6
4474
cat >> confdefs.h <<\EOF
11324
echo "$as_me: failed program was:" >&5
11325
sed 's/^/| /' conftest.$ac_ext >&5
11327
ac_cv_lib_resolv_inet_aton=no
11330
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11331
conftest$ac_exeext conftest.$ac_ext
11332
LIBS=$ac_check_lib_save_LIBS
11334
{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
11335
echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
11336
if test $ac_cv_lib_resolv_inet_aton = yes; then
11337
cat >>confdefs.h <<\_ACEOF
4475
11338
#define HAVE_INET_ATON 1
4479
echo "$ac_t""no" 1>&6
4483
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4484
echo "configure:4485: checking for dlopen in -ldl" >&5
4485
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4486
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4487
echo $ac_n "(cached) $ac_c" 1>&6
11344
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11345
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11346
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11347
echo $ECHO_N "(cached) $ECHO_C" >&6
4489
ac_save_LIBS="$LIBS"
11349
ac_check_lib_save_LIBS=$LIBS
4490
11350
LIBS="-ldl $LIBS"
4491
cat > conftest.$ac_ext <<EOF
4492
#line 4493 "configure"
4493
#include "confdefs.h"
4494
/* Override any gcc2 internal prototype to avoid an error. */
4495
/* We use char because int might match the return type of a gcc2
4496
builtin and then its argument prototype would still apply. */
11351
cat >conftest.$ac_ext <<_ACEOF
11354
cat confdefs.h >>conftest.$ac_ext
11355
cat >>conftest.$ac_ext <<_ACEOF
11356
/* end confdefs.h. */
4503
if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505
eval "ac_cv_lib_$ac_lib_var=yes"
11358
/* Override any GCC internal prototype to avoid an error.
11359
Use char because int might match the return type of a GCC
11360
builtin and then its argument prototype would still apply. */
11373
rm -f conftest.$ac_objext conftest$ac_exeext
11374
if { (ac_try="$ac_link"
11375
case "(($ac_try" in
11376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377
*) ac_try_echo=$ac_try;;
11379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380
(eval "$ac_link") 2>conftest.er1
11382
grep -v '^ *+' conftest.er1 >conftest.err
11384
cat conftest.err >&5
11385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386
(exit $ac_status); } && {
11387
test -z "$ac_c_werror_flag" ||
11388
test ! -s conftest.err
11389
} && test -s conftest$ac_exeext &&
11390
$as_test_x conftest$ac_exeext; then
11391
ac_cv_lib_dl_dlopen=yes
4507
echo "configure: failed program was:" >&5
4508
cat conftest.$ac_ext >&5
4510
eval "ac_cv_lib_$ac_lib_var=no"
4513
LIBS="$ac_save_LIBS"
4516
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4517
echo "$ac_t""yes" 1>&6
4518
dl_lib="-ldl" ; cat >> confdefs.h <<\EOF
11393
echo "$as_me: failed program was:" >&5
11394
sed 's/^/| /' conftest.$ac_ext >&5
11396
ac_cv_lib_dl_dlopen=no
11399
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11400
conftest$ac_exeext conftest.$ac_ext
11401
LIBS=$ac_check_lib_save_LIBS
11403
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11404
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11405
if test $ac_cv_lib_dl_dlopen = yes; then
11406
dl_lib="-ldl" ; cat >>confdefs.h <<\_ACEOF
4519
11407
#define HAVE_DL_LIB 1
4523
echo "$ac_t""no" 1>&6
4526
11413
for ac_func in shl_load
4528
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4529
echo "configure:4530: checking for $ac_func" >&5
4530
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4531
echo $ac_n "(cached) $ac_c" 1>&6
11415
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11416
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11417
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11418
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11419
echo $ECHO_N "(cached) $ECHO_C" >&6
4533
cat > conftest.$ac_ext <<EOF
4534
#line 4535 "configure"
4535
#include "confdefs.h"
11421
cat >conftest.$ac_ext <<_ACEOF
11424
cat confdefs.h >>conftest.$ac_ext
11425
cat >>conftest.$ac_ext <<_ACEOF
11426
/* end confdefs.h. */
11427
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11428
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11429
#define $ac_func innocuous_$ac_func
4536
11431
/* System header to define __stub macros and hopefully few prototypes,
4537
which can conflict with char $ac_func(); below. */
4539
/* Override any gcc2 internal prototype to avoid an error. */
4540
/* We use char because int might match the return type of a gcc2
4541
builtin and then its argument prototype would still apply. */
11432
which can conflict with char $ac_func (); below.
11433
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11434
<limits.h> exists even on freestanding compilers. */
11437
# include <limits.h>
11439
# include <assert.h>
11444
/* Override any GCC internal prototype to avoid an error.
11445
Use char because int might match the return type of a GCC
11446
builtin and then its argument prototype would still apply. */
4546
11451
/* The GNU C library defines this for functions which it implements
4547
11452
to always fail with ENOSYS. Some functions are actually named
4548
11453
something starting with __ and the normal name is an alias. */
4549
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11454
#if defined __stub_$ac_func || defined __stub___$ac_func
4557
if { (eval echo configure:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4559
eval "ac_cv_func_$ac_func=yes"
4561
echo "configure: failed program was:" >&5
4562
cat conftest.$ac_ext >&5
4564
eval "ac_cv_func_$ac_func=no"
4569
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4570
echo "$ac_t""yes" 1>&6
4571
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4572
cat >> confdefs.h <<EOF
4573
#define $ac_tr_func 1
4577
echo "$ac_t""no" 1>&6
11461
return $ac_func ();
11466
rm -f conftest.$ac_objext conftest$ac_exeext
11467
if { (ac_try="$ac_link"
11468
case "(($ac_try" in
11469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470
*) ac_try_echo=$ac_try;;
11472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11473
(eval "$ac_link") 2>conftest.er1
11475
grep -v '^ *+' conftest.er1 >conftest.err
11477
cat conftest.err >&5
11478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479
(exit $ac_status); } && {
11480
test -z "$ac_c_werror_flag" ||
11481
test ! -s conftest.err
11482
} && test -s conftest$ac_exeext &&
11483
$as_test_x conftest$ac_exeext; then
11484
eval "$as_ac_var=yes"
11486
echo "$as_me: failed program was:" >&5
11487
sed 's/^/| /' conftest.$ac_ext >&5
11489
eval "$as_ac_var=no"
11492
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493
conftest$ac_exeext conftest.$ac_ext
11495
ac_res=`eval echo '${'$as_ac_var'}'`
11496
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11497
echo "${ECHO_T}$ac_res" >&6; }
11498
if test `eval echo '${'$as_ac_var'}'` = yes; then
11499
cat >>confdefs.h <<_ACEOF
11500
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4581
11507
for ac_func in NSCreateObjectFileImageFromFile
4583
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4584
echo "configure:4585: checking for $ac_func" >&5
4585
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4586
echo $ac_n "(cached) $ac_c" 1>&6
11509
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11510
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11511
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11512
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11513
echo $ECHO_N "(cached) $ECHO_C" >&6
4588
cat > conftest.$ac_ext <<EOF
4589
#line 4590 "configure"
4590
#include "confdefs.h"
11515
cat >conftest.$ac_ext <<_ACEOF
11518
cat confdefs.h >>conftest.$ac_ext
11519
cat >>conftest.$ac_ext <<_ACEOF
11520
/* end confdefs.h. */
11521
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11522
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523
#define $ac_func innocuous_$ac_func
4591
11525
/* System header to define __stub macros and hopefully few prototypes,
4592
which can conflict with char $ac_func(); below. */
4594
/* Override any gcc2 internal prototype to avoid an error. */
4595
/* We use char because int might match the return type of a gcc2
4596
builtin and then its argument prototype would still apply. */
11526
which can conflict with char $ac_func (); below.
11527
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528
<limits.h> exists even on freestanding compilers. */
11531
# include <limits.h>
11533
# include <assert.h>
11538
/* Override any GCC internal prototype to avoid an error.
11539
Use char because int might match the return type of a GCC
11540
builtin and then its argument prototype would still apply. */
4601
11545
/* The GNU C library defines this for functions which it implements
4602
11546
to always fail with ENOSYS. Some functions are actually named
4603
11547
something starting with __ and the normal name is an alias. */
4604
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11548
#if defined __stub_$ac_func || defined __stub___$ac_func
4612
if { (eval echo configure:4613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4614
eval "ac_cv_func_$ac_func=yes"
4616
echo "configure: failed program was:" >&5
4617
cat conftest.$ac_ext >&5
4619
eval "ac_cv_func_$ac_func=no"
4624
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4625
echo "$ac_t""yes" 1>&6
4626
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4627
cat >> confdefs.h <<EOF
4628
#define $ac_tr_func 1
4632
echo "$ac_t""no" 1>&6
11555
return $ac_func ();
11560
rm -f conftest.$ac_objext conftest$ac_exeext
11561
if { (ac_try="$ac_link"
11562
case "(($ac_try" in
11563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564
*) ac_try_echo=$ac_try;;
11566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567
(eval "$ac_link") 2>conftest.er1
11569
grep -v '^ *+' conftest.er1 >conftest.err
11571
cat conftest.err >&5
11572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573
(exit $ac_status); } && {
11574
test -z "$ac_c_werror_flag" ||
11575
test ! -s conftest.err
11576
} && test -s conftest$ac_exeext &&
11577
$as_test_x conftest$ac_exeext; then
11578
eval "$as_ac_var=yes"
11580
echo "$as_me: failed program was:" >&5
11581
sed 's/^/| /' conftest.$ac_ext >&5
11583
eval "$as_ac_var=no"
11586
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11587
conftest$ac_exeext conftest.$ac_ext
11589
ac_res=`eval echo '${'$as_ac_var'}'`
11590
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11591
echo "${ECHO_T}$ac_res" >&6; }
11592
if test `eval echo '${'$as_ac_var'}'` = yes; then
11593
cat >>confdefs.h <<_ACEOF
11594
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4637
11601
LIBS=`$LIBOPENVASCONFIG --libs`
4639
echo $ac_n "checking for nessuslib_pthreads_enabled in -lnessus""... $ac_c" 1>&6
4640
echo "configure:4641: checking for nessuslib_pthreads_enabled in -lnessus" >&5
4641
ac_lib_var=`echo nessus'_'nessuslib_pthreads_enabled | sed 'y%./+-%__p_%'`
4642
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4643
echo $ac_n "(cached) $ac_c" 1>&6
11603
{ echo "$as_me:$LINENO: checking for nessuslib_pthreads_enabled in -lnessus" >&5
11604
echo $ECHO_N "checking for nessuslib_pthreads_enabled in -lnessus... $ECHO_C" >&6; }
11605
if test "${ac_cv_lib_nessus_nessuslib_pthreads_enabled+set}" = set; then
11606
echo $ECHO_N "(cached) $ECHO_C" >&6
4645
ac_save_LIBS="$LIBS"
11608
ac_check_lib_save_LIBS=$LIBS
4646
11609
LIBS="-lnessus $LIBS"
4647
cat > conftest.$ac_ext <<EOF
4648
#line 4649 "configure"
4649
#include "confdefs.h"
4650
/* Override any gcc2 internal prototype to avoid an error. */
4651
/* We use char because int might match the return type of a gcc2
4652
builtin and then its argument prototype would still apply. */
4653
char nessuslib_pthreads_enabled();
11610
cat >conftest.$ac_ext <<_ACEOF
11613
cat confdefs.h >>conftest.$ac_ext
11614
cat >>conftest.$ac_ext <<_ACEOF
11615
/* end confdefs.h. */
4656
nessuslib_pthreads_enabled()
4659
if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4661
eval "ac_cv_lib_$ac_lib_var=yes"
11617
/* Override any GCC internal prototype to avoid an error.
11618
Use char because int might match the return type of a GCC
11619
builtin and then its argument prototype would still apply. */
11623
char nessuslib_pthreads_enabled ();
11627
return nessuslib_pthreads_enabled ();
11632
rm -f conftest.$ac_objext conftest$ac_exeext
11633
if { (ac_try="$ac_link"
11634
case "(($ac_try" in
11635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636
*) ac_try_echo=$ac_try;;
11638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639
(eval "$ac_link") 2>conftest.er1
11641
grep -v '^ *+' conftest.er1 >conftest.err
11643
cat conftest.err >&5
11644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645
(exit $ac_status); } && {
11646
test -z "$ac_c_werror_flag" ||
11647
test ! -s conftest.err
11648
} && test -s conftest$ac_exeext &&
11649
$as_test_x conftest$ac_exeext; then
11650
ac_cv_lib_nessus_nessuslib_pthreads_enabled=yes
4663
echo "configure: failed program was:" >&5
4664
cat conftest.$ac_ext >&5
4666
eval "ac_cv_lib_$ac_lib_var=no"
4669
LIBS="$ac_save_LIBS"
4672
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4673
echo "$ac_t""yes" 1>&6
11652
echo "$as_me: failed program was:" >&5
11653
sed 's/^/| /' conftest.$ac_ext >&5
11655
ac_cv_lib_nessus_nessuslib_pthreads_enabled=no
11658
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11659
conftest$ac_exeext conftest.$ac_ext
11660
LIBS=$ac_check_lib_save_LIBS
11662
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nessus_nessuslib_pthreads_enabled" >&5
11663
echo "${ECHO_T}$ac_cv_lib_nessus_nessuslib_pthreads_enabled" >&6; }
11664
if test $ac_cv_lib_nessus_nessuslib_pthreads_enabled = yes; then
4674
11665
use_pthreads="-DUSE_PTHREADS -DTHREADS -D_REENTRANT"
4676
echo "$ac_t""no" 1>&6
4680
11669
test "$use_pthreads" && {
4681
for ac_hdr in pthread.h
11671
for ac_header in pthread.h
4683
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4684
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4685
echo "configure:4686: checking for $ac_hdr" >&5
4686
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4687
echo $ac_n "(cached) $ac_c" 1>&6
4689
cat > conftest.$ac_ext <<EOF
4690
#line 4691 "configure"
4691
#include "confdefs.h"
4694
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4695
{ (eval echo configure:4696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4696
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4697
if test -z "$ac_err"; then
4699
eval "ac_cv_header_$ac_safe=yes"
4702
echo "configure: failed program was:" >&5
4703
cat conftest.$ac_ext >&5
4705
eval "ac_cv_header_$ac_safe=no"
4709
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4710
echo "$ac_t""yes" 1>&6
4711
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4712
cat >> confdefs.h <<EOF
4713
#define $ac_tr_hdr 1
4717
echo "$ac_t""no" 1>&6
11673
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11674
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11676
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11677
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11678
echo $ECHO_N "(cached) $ECHO_C" >&6
11680
ac_res=`eval echo '${'$as_ac_Header'}'`
11681
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11682
echo "${ECHO_T}$ac_res" >&6; }
11684
# Is the header compilable?
11685
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11686
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11687
cat >conftest.$ac_ext <<_ACEOF
11690
cat confdefs.h >>conftest.$ac_ext
11691
cat >>conftest.$ac_ext <<_ACEOF
11692
/* end confdefs.h. */
11693
$ac_includes_default
11694
#include <$ac_header>
11696
rm -f conftest.$ac_objext
11697
if { (ac_try="$ac_compile"
11698
case "(($ac_try" in
11699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700
*) ac_try_echo=$ac_try;;
11702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703
(eval "$ac_compile") 2>conftest.er1
11705
grep -v '^ *+' conftest.er1 >conftest.err
11707
cat conftest.err >&5
11708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709
(exit $ac_status); } && {
11710
test -z "$ac_c_werror_flag" ||
11711
test ! -s conftest.err
11712
} && test -s conftest.$ac_objext; then
11713
ac_header_compiler=yes
11715
echo "$as_me: failed program was:" >&5
11716
sed 's/^/| /' conftest.$ac_ext >&5
11718
ac_header_compiler=no
11721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11723
echo "${ECHO_T}$ac_header_compiler" >&6; }
11725
# Is the header present?
11726
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11727
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11728
cat >conftest.$ac_ext <<_ACEOF
11731
cat confdefs.h >>conftest.$ac_ext
11732
cat >>conftest.$ac_ext <<_ACEOF
11733
/* end confdefs.h. */
11734
#include <$ac_header>
11736
if { (ac_try="$ac_cpp conftest.$ac_ext"
11737
case "(($ac_try" in
11738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739
*) ac_try_echo=$ac_try;;
11741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11744
grep -v '^ *+' conftest.er1 >conftest.err
11746
cat conftest.err >&5
11747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748
(exit $ac_status); } >/dev/null && {
11749
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11750
test ! -s conftest.err
11752
ac_header_preproc=yes
11754
echo "$as_me: failed program was:" >&5
11755
sed 's/^/| /' conftest.$ac_ext >&5
11757
ac_header_preproc=no
11760
rm -f conftest.err conftest.$ac_ext
11761
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11762
echo "${ECHO_T}$ac_header_preproc" >&6; }
11764
# So? What about this header?
11765
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11767
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11768
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11769
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11770
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11771
ac_header_preproc=yes
11774
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11775
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11776
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11777
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11778
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11779
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11780
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11781
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11782
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11783
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11784
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11785
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11789
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11790
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11791
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11792
echo $ECHO_N "(cached) $ECHO_C" >&6
11794
eval "$as_ac_Header=\$ac_header_preproc"
11796
ac_res=`eval echo '${'$as_ac_Header'}'`
11797
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11798
echo "${ECHO_T}$ac_res" >&6; }
11801
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11802
cat >>confdefs.h <<_ACEOF
11803
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4721
echo $ac_n "checking if we have a broken pthread_cleanup_push""... $ac_c" 1>&6
4722
echo "configure:4723: checking if we have a broken pthread_cleanup_push" >&5
4723
cat > conftest.$ac_ext <<EOF
4724
#line 4725 "configure"
4725
#include "confdefs.h"
11810
{ echo "$as_me:$LINENO: checking if we have a broken pthread_cleanup_push" >&5
11811
echo $ECHO_N "checking if we have a broken pthread_cleanup_push... $ECHO_C" >&6; }
11812
cat >conftest.$ac_ext <<_ACEOF
11815
cat confdefs.h >>conftest.$ac_ext
11816
cat >>conftest.$ac_ext <<_ACEOF
11817
/* end confdefs.h. */
4726
11818
#include <pthread.h>
4729
11823
void main(){pthread_cleanup_push(NULL,NULL);}
4732
if { (eval echo configure:4733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4734
echo "$ac_t""no" 1>&6
11828
rm -f conftest.$ac_objext
11829
if { (ac_try="$ac_compile"
11830
case "(($ac_try" in
11831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832
*) ac_try_echo=$ac_try;;
11834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835
(eval "$ac_compile") 2>conftest.er1
11837
grep -v '^ *+' conftest.er1 >conftest.err
11839
cat conftest.err >&5
11840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841
(exit $ac_status); } && {
11842
test -z "$ac_c_werror_flag" ||
11843
test ! -s conftest.err
11844
} && test -s conftest.$ac_objext; then
11845
{ echo "$as_me:$LINENO: result: no" >&5
11846
echo "${ECHO_T}no" >&6; }
4736
echo "configure: failed program was:" >&5
4737
cat conftest.$ac_ext >&5
4739
echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
11848
echo "$as_me: failed program was:" >&5
11849
sed 's/^/| /' conftest.$ac_ext >&5
11851
{ echo "$as_me:$LINENO: result: yes" >&5
11852
echo "${ECHO_T}yes" >&6; };cat >>confdefs.h <<\_ACEOF
4740
11853
#define BROKEN_PTHREAD_CLEANUP_PUSH 1
4747
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4748
echo "configure:4749: checking for pthread_create in -lpthread" >&5
4749
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4750
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4751
echo $ac_n "(cached) $ac_c" 1>&6
11858
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
11862
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
11863
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
11864
echo $ECHO_N "(cached) $ECHO_C" >&6
4753
ac_save_LIBS="$LIBS"
11866
ac_check_lib_save_LIBS=$LIBS
4754
11867
LIBS="-lpthread $LIBS"
4755
cat > conftest.$ac_ext <<EOF
4756
#line 4757 "configure"
4757
#include "confdefs.h"
4758
/* Override any gcc2 internal prototype to avoid an error. */
4759
/* We use char because int might match the return type of a gcc2
4760
builtin and then its argument prototype would still apply. */
4761
char pthread_create();
11868
cat >conftest.$ac_ext <<_ACEOF
11871
cat confdefs.h >>conftest.$ac_ext
11872
cat >>conftest.$ac_ext <<_ACEOF
11873
/* end confdefs.h. */
4767
if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4769
eval "ac_cv_lib_$ac_lib_var=yes"
11875
/* Override any GCC internal prototype to avoid an error.
11876
Use char because int might match the return type of a GCC
11877
builtin and then its argument prototype would still apply. */
11881
char pthread_create ();
11885
return pthread_create ();
11890
rm -f conftest.$ac_objext conftest$ac_exeext
11891
if { (ac_try="$ac_link"
11892
case "(($ac_try" in
11893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894
*) ac_try_echo=$ac_try;;
11896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897
(eval "$ac_link") 2>conftest.er1
11899
grep -v '^ *+' conftest.er1 >conftest.err
11901
cat conftest.err >&5
11902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903
(exit $ac_status); } && {
11904
test -z "$ac_c_werror_flag" ||
11905
test ! -s conftest.err
11906
} && test -s conftest$ac_exeext &&
11907
$as_test_x conftest$ac_exeext; then
11908
ac_cv_lib_pthread_pthread_create=yes
4771
echo "configure: failed program was:" >&5
4772
cat conftest.$ac_ext >&5
4774
eval "ac_cv_lib_$ac_lib_var=no"
4777
LIBS="$ac_save_LIBS"
4780
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4781
echo "$ac_t""yes" 1>&6
11910
echo "$as_me: failed program was:" >&5
11911
sed 's/^/| /' conftest.$ac_ext >&5
11913
ac_cv_lib_pthread_pthread_create=no
11916
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11917
conftest$ac_exeext conftest.$ac_ext
11918
LIBS=$ac_check_lib_save_LIBS
11920
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
11921
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
11922
if test $ac_cv_lib_pthread_pthread_create = yes; then
4782
11923
pthread_lib="-lpthread"
4784
echo "$ac_t""no" 1>&6
4787
echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
4788
echo "configure:4789: checking for gethostbyname_r in -lc_r" >&5
4789
ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
4790
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791
echo $ac_n "(cached) $ac_c" 1>&6
4793
ac_save_LIBS="$LIBS"
4795
cat > conftest.$ac_ext <<EOF
4796
#line 4797 "configure"
4797
#include "confdefs.h"
4798
/* Override any gcc2 internal prototype to avoid an error. */
4799
/* We use char because int might match the return type of a gcc2
4800
builtin and then its argument prototype would still apply. */
4801
char gethostbyname_r();
4807
if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4809
eval "ac_cv_lib_$ac_lib_var=yes"
4811
echo "configure: failed program was:" >&5
4812
cat conftest.$ac_ext >&5
4814
eval "ac_cv_lib_$ac_lib_var=no"
4817
LIBS="$ac_save_LIBS"
4820
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4821
echo "$ac_t""yes" 1>&6
4824
echo "$ac_t""no" 1>&6
4827
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4828
echo "configure:4829: checking for pthread_create in -lc_r" >&5
4829
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4830
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4831
echo $ac_n "(cached) $ac_c" 1>&6
4833
ac_save_LIBS="$LIBS"
4835
cat > conftest.$ac_ext <<EOF
4836
#line 4837 "configure"
4837
#include "confdefs.h"
4838
/* Override any gcc2 internal prototype to avoid an error. */
4839
/* We use char because int might match the return type of a gcc2
4840
builtin and then its argument prototype would still apply. */
4841
char pthread_create();
4847
if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4849
eval "ac_cv_lib_$ac_lib_var=yes"
4851
echo "configure: failed program was:" >&5
4852
cat conftest.$ac_ext >&5
4854
eval "ac_cv_lib_$ac_lib_var=no"
4857
LIBS="$ac_save_LIBS"
4860
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4861
echo "$ac_t""yes" 1>&6
4864
echo "$ac_t""no" 1>&6
4867
echo $ac_n "checking for gethostbyname_r in -lc""... $ac_c" 1>&6
4868
echo "configure:4869: checking for gethostbyname_r in -lc" >&5
4869
ac_lib_var=`echo c'_'gethostbyname_r | sed 'y%./+-%__p_%'`
4870
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4871
echo $ac_n "(cached) $ac_c" 1>&6
4873
ac_save_LIBS="$LIBS"
11926
{ echo "$as_me:$LINENO: checking for gethostbyname_r in -lc_r" >&5
11927
echo $ECHO_N "checking for gethostbyname_r in -lc_r... $ECHO_C" >&6; }
11928
if test "${ac_cv_lib_c_r_gethostbyname_r+set}" = set; then
11929
echo $ECHO_N "(cached) $ECHO_C" >&6
11931
ac_check_lib_save_LIBS=$LIBS
11933
cat >conftest.$ac_ext <<_ACEOF
11936
cat confdefs.h >>conftest.$ac_ext
11937
cat >>conftest.$ac_ext <<_ACEOF
11938
/* end confdefs.h. */
11940
/* Override any GCC internal prototype to avoid an error.
11941
Use char because int might match the return type of a GCC
11942
builtin and then its argument prototype would still apply. */
11946
char gethostbyname_r ();
11950
return gethostbyname_r ();
11955
rm -f conftest.$ac_objext conftest$ac_exeext
11956
if { (ac_try="$ac_link"
11957
case "(($ac_try" in
11958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959
*) ac_try_echo=$ac_try;;
11961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962
(eval "$ac_link") 2>conftest.er1
11964
grep -v '^ *+' conftest.er1 >conftest.err
11966
cat conftest.err >&5
11967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968
(exit $ac_status); } && {
11969
test -z "$ac_c_werror_flag" ||
11970
test ! -s conftest.err
11971
} && test -s conftest$ac_exeext &&
11972
$as_test_x conftest$ac_exeext; then
11973
ac_cv_lib_c_r_gethostbyname_r=yes
11975
echo "$as_me: failed program was:" >&5
11976
sed 's/^/| /' conftest.$ac_ext >&5
11978
ac_cv_lib_c_r_gethostbyname_r=no
11981
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11982
conftest$ac_exeext conftest.$ac_ext
11983
LIBS=$ac_check_lib_save_LIBS
11985
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname_r" >&5
11986
echo "${ECHO_T}$ac_cv_lib_c_r_gethostbyname_r" >&6; }
11987
if test $ac_cv_lib_c_r_gethostbyname_r = yes; then
11991
{ echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
11992
echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
11993
if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
11994
echo $ECHO_N "(cached) $ECHO_C" >&6
11996
ac_check_lib_save_LIBS=$LIBS
11998
cat >conftest.$ac_ext <<_ACEOF
12001
cat confdefs.h >>conftest.$ac_ext
12002
cat >>conftest.$ac_ext <<_ACEOF
12003
/* end confdefs.h. */
12005
/* Override any GCC internal prototype to avoid an error.
12006
Use char because int might match the return type of a GCC
12007
builtin and then its argument prototype would still apply. */
12011
char pthread_create ();
12015
return pthread_create ();
12020
rm -f conftest.$ac_objext conftest$ac_exeext
12021
if { (ac_try="$ac_link"
12022
case "(($ac_try" in
12023
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024
*) ac_try_echo=$ac_try;;
12026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027
(eval "$ac_link") 2>conftest.er1
12029
grep -v '^ *+' conftest.er1 >conftest.err
12031
cat conftest.err >&5
12032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033
(exit $ac_status); } && {
12034
test -z "$ac_c_werror_flag" ||
12035
test ! -s conftest.err
12036
} && test -s conftest$ac_exeext &&
12037
$as_test_x conftest$ac_exeext; then
12038
ac_cv_lib_c_r_pthread_create=yes
12040
echo "$as_me: failed program was:" >&5
12041
sed 's/^/| /' conftest.$ac_ext >&5
12043
ac_cv_lib_c_r_pthread_create=no
12046
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12047
conftest$ac_exeext conftest.$ac_ext
12048
LIBS=$ac_check_lib_save_LIBS
12050
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
12051
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
12052
if test $ac_cv_lib_c_r_pthread_create = yes; then
12056
{ echo "$as_me:$LINENO: checking for gethostbyname_r in -lc" >&5
12057
echo $ECHO_N "checking for gethostbyname_r in -lc... $ECHO_C" >&6; }
12058
if test "${ac_cv_lib_c_gethostbyname_r+set}" = set; then
12059
echo $ECHO_N "(cached) $ECHO_C" >&6
12061
ac_check_lib_save_LIBS=$LIBS
4874
12062
LIBS="-lc $LIBS"
4875
cat > conftest.$ac_ext <<EOF
4876
#line 4877 "configure"
4877
#include "confdefs.h"
4878
/* Override any gcc2 internal prototype to avoid an error. */
4879
/* We use char because int might match the return type of a gcc2
4880
builtin and then its argument prototype would still apply. */
4881
char gethostbyname_r();
12063
cat >conftest.$ac_ext <<_ACEOF
12066
cat confdefs.h >>conftest.$ac_ext
12067
cat >>conftest.$ac_ext <<_ACEOF
12068
/* end confdefs.h. */
4887
if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4889
eval "ac_cv_lib_$ac_lib_var=yes"
12070
/* Override any GCC internal prototype to avoid an error.
12071
Use char because int might match the return type of a GCC
12072
builtin and then its argument prototype would still apply. */
12076
char gethostbyname_r ();
12080
return gethostbyname_r ();
12085
rm -f conftest.$ac_objext conftest$ac_exeext
12086
if { (ac_try="$ac_link"
12087
case "(($ac_try" in
12088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089
*) ac_try_echo=$ac_try;;
12091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092
(eval "$ac_link") 2>conftest.er1
12094
grep -v '^ *+' conftest.er1 >conftest.err
12096
cat conftest.err >&5
12097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098
(exit $ac_status); } && {
12099
test -z "$ac_c_werror_flag" ||
12100
test ! -s conftest.err
12101
} && test -s conftest$ac_exeext &&
12102
$as_test_x conftest$ac_exeext; then
12103
ac_cv_lib_c_gethostbyname_r=yes
4891
echo "configure: failed program was:" >&5
4892
cat conftest.$ac_ext >&5
4894
eval "ac_cv_lib_$ac_lib_var=no"
4897
LIBS="$ac_save_LIBS"
4900
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4901
echo "$ac_t""yes" 1>&6
4902
cat >> confdefs.h <<\EOF
12105
echo "$as_me: failed program was:" >&5
12106
sed 's/^/| /' conftest.$ac_ext >&5
12108
ac_cv_lib_c_gethostbyname_r=no
12111
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12112
conftest$ac_exeext conftest.$ac_ext
12113
LIBS=$ac_check_lib_save_LIBS
12115
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_gethostbyname_r" >&5
12116
echo "${ECHO_T}$ac_cv_lib_c_gethostbyname_r" >&6; }
12117
if test $ac_cv_lib_c_gethostbyname_r = yes; then
12118
cat >>confdefs.h <<\_ACEOF
4903
12119
#define HAVE_GETHOSTBYNAME_R 1
4907
echo "$ac_t""no" 1>&6
4910
echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
4911
echo "configure:4912: checking for gethostbyname_r in -lc_r" >&5
4912
ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
4913
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4914
echo $ac_n "(cached) $ac_c" 1>&6
12124
{ echo "$as_me:$LINENO: checking for gethostbyname_r in -lc_r" >&5
12125
echo $ECHO_N "checking for gethostbyname_r in -lc_r... $ECHO_C" >&6; }
12126
if test "${ac_cv_lib_c_r_gethostbyname_r+set}" = set; then
12127
echo $ECHO_N "(cached) $ECHO_C" >&6
4916
ac_save_LIBS="$LIBS"
12129
ac_check_lib_save_LIBS=$LIBS
4917
12130
LIBS="-lc_r $LIBS"
4918
cat > conftest.$ac_ext <<EOF
4919
#line 4920 "configure"
4920
#include "confdefs.h"
4921
/* Override any gcc2 internal prototype to avoid an error. */
4922
/* We use char because int might match the return type of a gcc2
4923
builtin and then its argument prototype would still apply. */
4924
char gethostbyname_r();
12131
cat >conftest.$ac_ext <<_ACEOF
12134
cat confdefs.h >>conftest.$ac_ext
12135
cat >>conftest.$ac_ext <<_ACEOF
12136
/* end confdefs.h. */
4930
if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4932
eval "ac_cv_lib_$ac_lib_var=yes"
12138
/* Override any GCC internal prototype to avoid an error.
12139
Use char because int might match the return type of a GCC
12140
builtin and then its argument prototype would still apply. */
12144
char gethostbyname_r ();
12148
return gethostbyname_r ();
12153
rm -f conftest.$ac_objext conftest$ac_exeext
12154
if { (ac_try="$ac_link"
12155
case "(($ac_try" in
12156
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157
*) ac_try_echo=$ac_try;;
12159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160
(eval "$ac_link") 2>conftest.er1
12162
grep -v '^ *+' conftest.er1 >conftest.err
12164
cat conftest.err >&5
12165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166
(exit $ac_status); } && {
12167
test -z "$ac_c_werror_flag" ||
12168
test ! -s conftest.err
12169
} && test -s conftest$ac_exeext &&
12170
$as_test_x conftest$ac_exeext; then
12171
ac_cv_lib_c_r_gethostbyname_r=yes
4934
echo "configure: failed program was:" >&5
4935
cat conftest.$ac_ext >&5
4937
eval "ac_cv_lib_$ac_lib_var=no"
4940
LIBS="$ac_save_LIBS"
4943
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4944
echo "$ac_t""yes" 1>&6
4945
cat >> confdefs.h <<\EOF
12173
echo "$as_me: failed program was:" >&5
12174
sed 's/^/| /' conftest.$ac_ext >&5
12176
ac_cv_lib_c_r_gethostbyname_r=no
12179
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12180
conftest$ac_exeext conftest.$ac_ext
12181
LIBS=$ac_check_lib_save_LIBS
12183
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname_r" >&5
12184
echo "${ECHO_T}$ac_cv_lib_c_r_gethostbyname_r" >&6; }
12185
if test $ac_cv_lib_c_r_gethostbyname_r = yes; then
12186
cat >>confdefs.h <<\_ACEOF
4946
12187
#define HAVE_GETHOSTBYNAME_R 1
4950
echo "$ac_t""no" 1>&6
4953
echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
4954
echo "configure:4955: checking for gethostbyname_r in -lnsl" >&5
4955
ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
4956
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4957
echo $ac_n "(cached) $ac_c" 1>&6
12192
{ echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
12193
echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
12194
if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
12195
echo $ECHO_N "(cached) $ECHO_C" >&6
4959
ac_save_LIBS="$LIBS"
12197
ac_check_lib_save_LIBS=$LIBS
4960
12198
LIBS="-lnsl $LIBS"
4961
cat > conftest.$ac_ext <<EOF
4962
#line 4963 "configure"
4963
#include "confdefs.h"
4964
/* Override any gcc2 internal prototype to avoid an error. */
4965
/* We use char because int might match the return type of a gcc2
4966
builtin and then its argument prototype would still apply. */
4967
char gethostbyname_r();
12199
cat >conftest.$ac_ext <<_ACEOF
12202
cat confdefs.h >>conftest.$ac_ext
12203
cat >>conftest.$ac_ext <<_ACEOF
12204
/* end confdefs.h. */
4973
if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975
eval "ac_cv_lib_$ac_lib_var=yes"
12206
/* Override any GCC internal prototype to avoid an error.
12207
Use char because int might match the return type of a GCC
12208
builtin and then its argument prototype would still apply. */
12212
char gethostbyname_r ();
12216
return gethostbyname_r ();
12221
rm -f conftest.$ac_objext conftest$ac_exeext
12222
if { (ac_try="$ac_link"
12223
case "(($ac_try" in
12224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225
*) ac_try_echo=$ac_try;;
12227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228
(eval "$ac_link") 2>conftest.er1
12230
grep -v '^ *+' conftest.er1 >conftest.err
12232
cat conftest.err >&5
12233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234
(exit $ac_status); } && {
12235
test -z "$ac_c_werror_flag" ||
12236
test ! -s conftest.err
12237
} && test -s conftest$ac_exeext &&
12238
$as_test_x conftest$ac_exeext; then
12239
ac_cv_lib_nsl_gethostbyname_r=yes
4977
echo "configure: failed program was:" >&5
4978
cat conftest.$ac_ext >&5
4980
eval "ac_cv_lib_$ac_lib_var=no"
4983
LIBS="$ac_save_LIBS"
4986
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4987
echo "$ac_t""yes" 1>&6
4988
cat >> confdefs.h <<\EOF
12241
echo "$as_me: failed program was:" >&5
12242
sed 's/^/| /' conftest.$ac_ext >&5
12244
ac_cv_lib_nsl_gethostbyname_r=no
12247
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12248
conftest$ac_exeext conftest.$ac_ext
12249
LIBS=$ac_check_lib_save_LIBS
12251
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
12252
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
12253
if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
12254
cat >>confdefs.h <<\_ACEOF
4989
12255
#define HAVE_GETHOSTBYNAME_R 1
4993
echo "$ac_t""no" 1>&6
4996
echo $ac_n "checking for pthread_cancel in -lpthread""... $ac_c" 1>&6
4997
echo "configure:4998: checking for pthread_cancel in -lpthread" >&5
4998
ac_lib_var=`echo pthread'_'pthread_cancel | sed 'y%./+-%__p_%'`
4999
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5000
echo $ac_n "(cached) $ac_c" 1>&6
12260
{ echo "$as_me:$LINENO: checking for pthread_cancel in -lpthread" >&5
12261
echo $ECHO_N "checking for pthread_cancel in -lpthread... $ECHO_C" >&6; }
12262
if test "${ac_cv_lib_pthread_pthread_cancel+set}" = set; then
12263
echo $ECHO_N "(cached) $ECHO_C" >&6
5002
ac_save_LIBS="$LIBS"
12265
ac_check_lib_save_LIBS=$LIBS
5003
12266
LIBS="-lpthread $LIBS"
5004
cat > conftest.$ac_ext <<EOF
5005
#line 5006 "configure"
5006
#include "confdefs.h"
5007
/* Override any gcc2 internal prototype to avoid an error. */
5008
/* We use char because int might match the return type of a gcc2
5009
builtin and then its argument prototype would still apply. */
5010
char pthread_cancel();
12267
cat >conftest.$ac_ext <<_ACEOF
12270
cat confdefs.h >>conftest.$ac_ext
12271
cat >>conftest.$ac_ext <<_ACEOF
12272
/* end confdefs.h. */
5016
if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018
eval "ac_cv_lib_$ac_lib_var=yes"
12274
/* Override any GCC internal prototype to avoid an error.
12275
Use char because int might match the return type of a GCC
12276
builtin and then its argument prototype would still apply. */
12280
char pthread_cancel ();
12284
return pthread_cancel ();
12289
rm -f conftest.$ac_objext conftest$ac_exeext
12290
if { (ac_try="$ac_link"
12291
case "(($ac_try" in
12292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293
*) ac_try_echo=$ac_try;;
12295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296
(eval "$ac_link") 2>conftest.er1
12298
grep -v '^ *+' conftest.er1 >conftest.err
12300
cat conftest.err >&5
12301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302
(exit $ac_status); } && {
12303
test -z "$ac_c_werror_flag" ||
12304
test ! -s conftest.err
12305
} && test -s conftest$ac_exeext &&
12306
$as_test_x conftest$ac_exeext; then
12307
ac_cv_lib_pthread_pthread_cancel=yes
5020
echo "configure: failed program was:" >&5
5021
cat conftest.$ac_ext >&5
5023
eval "ac_cv_lib_$ac_lib_var=no"
5026
LIBS="$ac_save_LIBS"
5029
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5030
echo "$ac_t""yes" 1>&6
5031
cat >> confdefs.h <<\EOF
12309
echo "$as_me: failed program was:" >&5
12310
sed 's/^/| /' conftest.$ac_ext >&5
12312
ac_cv_lib_pthread_pthread_cancel=no
12315
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12316
conftest$ac_exeext conftest.$ac_ext
12317
LIBS=$ac_check_lib_save_LIBS
12319
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_cancel" >&5
12320
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_cancel" >&6; }
12321
if test $ac_cv_lib_pthread_pthread_cancel = yes; then
12322
cat >>confdefs.h <<\_ACEOF
5032
12323
#define HAVE_PTHREAD_CANCEL 1
5036
echo "$ac_t""no" 1>&6
5039
echo $ac_n "checking for pthread_cancel in -lc_r""... $ac_c" 1>&6
5040
echo "configure:5041: checking for pthread_cancel in -lc_r" >&5
5041
ac_lib_var=`echo c_r'_'pthread_cancel | sed 'y%./+-%__p_%'`
5042
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5043
echo $ac_n "(cached) $ac_c" 1>&6
12328
{ echo "$as_me:$LINENO: checking for pthread_cancel in -lc_r" >&5
12329
echo $ECHO_N "checking for pthread_cancel in -lc_r... $ECHO_C" >&6; }
12330
if test "${ac_cv_lib_c_r_pthread_cancel+set}" = set; then
12331
echo $ECHO_N "(cached) $ECHO_C" >&6
5045
ac_save_LIBS="$LIBS"
12333
ac_check_lib_save_LIBS=$LIBS
5046
12334
LIBS="-lc_r $LIBS"
5047
cat > conftest.$ac_ext <<EOF
5048
#line 5049 "configure"
5049
#include "confdefs.h"
5050
/* Override any gcc2 internal prototype to avoid an error. */
5051
/* We use char because int might match the return type of a gcc2
5052
builtin and then its argument prototype would still apply. */
5053
char pthread_cancel();
12335
cat >conftest.$ac_ext <<_ACEOF
12338
cat confdefs.h >>conftest.$ac_ext
12339
cat >>conftest.$ac_ext <<_ACEOF
12340
/* end confdefs.h. */
5059
if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061
eval "ac_cv_lib_$ac_lib_var=yes"
12342
/* Override any GCC internal prototype to avoid an error.
12343
Use char because int might match the return type of a GCC
12344
builtin and then its argument prototype would still apply. */
12348
char pthread_cancel ();
12352
return pthread_cancel ();
12357
rm -f conftest.$ac_objext conftest$ac_exeext
12358
if { (ac_try="$ac_link"
12359
case "(($ac_try" in
12360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361
*) ac_try_echo=$ac_try;;
12363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364
(eval "$ac_link") 2>conftest.er1
12366
grep -v '^ *+' conftest.er1 >conftest.err
12368
cat conftest.err >&5
12369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370
(exit $ac_status); } && {
12371
test -z "$ac_c_werror_flag" ||
12372
test ! -s conftest.err
12373
} && test -s conftest$ac_exeext &&
12374
$as_test_x conftest$ac_exeext; then
12375
ac_cv_lib_c_r_pthread_cancel=yes
5063
echo "configure: failed program was:" >&5
5064
cat conftest.$ac_ext >&5
5066
eval "ac_cv_lib_$ac_lib_var=no"
5069
LIBS="$ac_save_LIBS"
5072
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5073
echo "$ac_t""yes" 1>&6
5074
cat >> confdefs.h <<\EOF
12377
echo "$as_me: failed program was:" >&5
12378
sed 's/^/| /' conftest.$ac_ext >&5
12380
ac_cv_lib_c_r_pthread_cancel=no
12383
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12384
conftest$ac_exeext conftest.$ac_ext
12385
LIBS=$ac_check_lib_save_LIBS
12387
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_cancel" >&5
12388
echo "${ECHO_T}$ac_cv_lib_c_r_pthread_cancel" >&6; }
12389
if test $ac_cv_lib_c_r_pthread_cancel = yes; then
12390
cat >>confdefs.h <<\_ACEOF
5075
12391
#define HAVE_PTHREAD_CANCEL 1
5079
echo "$ac_t""no" 1>&6
5082
echo $ac_n "checking whether gethostbyname_r takes 5 args""... $ac_c" 1>&6
5083
echo "configure:5084: checking whether gethostbyname_r takes 5 args" >&5
5084
cat > conftest.$ac_ext <<EOF
5085
#line 5086 "configure"
5086
#include "confdefs.h"
12396
{ echo "$as_me:$LINENO: checking whether gethostbyname_r takes 5 args" >&5
12397
echo $ECHO_N "checking whether gethostbyname_r takes 5 args... $ECHO_C" >&6; }
12398
cat >conftest.$ac_ext <<_ACEOF
12401
cat confdefs.h >>conftest.$ac_ext
12402
cat >>conftest.$ac_ext <<_ACEOF
12403
/* end confdefs.h. */
5088
12405
#define THREADS 1
5089
12406
#define _REENTRANT 1
5090
12407
#include <sys/types.h>
5091
12408
#include <netdb.h>
5094
12413
const char * name;
5095
12414
struct hostent * result;
5096
12415
char * buffer;
5100
12419
gethostbyname_r(name, result, buffer, buflen, h_errnop);
5105
if { (eval echo configure:5106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12426
rm -f conftest.$ac_objext
12427
if { (ac_try="$ac_compile"
12428
case "(($ac_try" in
12429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430
*) ac_try_echo=$ac_try;;
12432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433
(eval "$ac_compile") 2>conftest.er1
12435
grep -v '^ *+' conftest.er1 >conftest.err
12437
cat conftest.err >&5
12438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439
(exit $ac_status); } && {
12440
test -z "$ac_c_werror_flag" ||
12441
test ! -s conftest.err
12442
} && test -s conftest.$ac_objext; then
5107
12443
solaris_gethostbyname_r=yes
5109
echo "configure: failed program was:" >&5
5110
cat conftest.$ac_ext >&5
12445
echo "$as_me: failed program was:" >&5
12446
sed 's/^/| /' conftest.$ac_ext >&5
5114
test "x$solaris_gethostbyname_r" = "x" && echo "$ac_t""no" 1>&6
5115
test "x$solaris_gethostbyname_r" = "x" || echo "$ac_t""yes" 1>&6
5116
test "x$solaris_gethostbyname_r" = "xyes" && cat >> confdefs.h <<\EOF
12451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453
test "x$solaris_gethostbyname_r" = "x" && { echo "$as_me:$LINENO: result: no" >&5
12454
echo "${ECHO_T}no" >&6; }
12455
test "x$solaris_gethostbyname_r" = "x" || { echo "$as_me:$LINENO: result: yes" >&5
12456
echo "${ECHO_T}yes" >&6; }
12457
test "x$solaris_gethostbyname_r" = "xyes" && cat >>confdefs.h <<\_ACEOF
5117
12458
#define HAVE_SOLARIS_GETHOSTBYNAME_R 1
5121
echo $ac_n "checking whether gethostbyaddr_r takes 5 args""... $ac_c" 1>&6
5122
echo "configure:5123: checking whether gethostbyaddr_r takes 5 args" >&5
5123
cat > conftest.$ac_ext <<EOF
5124
#line 5125 "configure"
5125
#include "confdefs.h"
12462
{ echo "$as_me:$LINENO: checking whether gethostbyaddr_r takes 5 args" >&5
12463
echo $ECHO_N "checking whether gethostbyaddr_r takes 5 args... $ECHO_C" >&6; }
12464
cat >conftest.$ac_ext <<_ACEOF
12467
cat confdefs.h >>conftest.$ac_ext
12468
cat >>conftest.$ac_ext <<_ACEOF
12469
/* end confdefs.h. */
5127
12471
#define THREADS 1
5128
12472
#define _REENTRANT 1
5129
12473
#include <sys/types.h>
5130
12474
#include <netdb.h>
5133
12479
const char * addr;
5522
cat > confcache <<\EOF
12944
ac_config_files="$ac_config_files openvas.tmpl include/corevers.h openvas-adduser openvas-rmuser openvas-mkcert openvas-mkcert-client openvasd-config"
12946
cat >confcache <<\_ACEOF
5523
12947
# This file is a shell script that caches the results of configure
5524
12948
# tests run on this system so they can be shared between configure
5525
# scripts and configure runs. It is not useful on other systems.
5526
# If it contains results you don't want to keep, you may remove or edit it.
5528
# By default, configure uses ./config.cache as the cache file,
5529
# creating it if it does not exist already. You can give configure
5530
# the --cache-file=FILE option to use a different cache file; that is
5531
# what configure does when it calls configure scripts in
5532
# subdirectories, so they share the cache.
5533
# Giving --cache-file=/dev/null disables caching, for debugging configure.
5534
# config.status only pays attention to the cache file if you give it the
5535
# --recheck option to rerun configure.
12949
# scripts and configure runs, see configure's option --config-cache.
12950
# It is not useful on other systems. If it contains results you don't
12951
# want to keep, you may remove or edit it.
12953
# config.status only pays attention to the cache file if you give it
12954
# the --recheck option to rerun configure.
12956
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12957
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12958
# following values.
5538
12962
# The following way of writing the cache mishandles newlines in values,
5539
12963
# but we know of no workaround that is simple, portable, and efficient.
5540
# So, don't put newlines in cache variables' values.
12964
# So, we kill variables containing newlines.
5541
12965
# Ultrix sh set writes to stderr and can't be redirected directly,
5542
12966
# and sets the high bit in the cache file unless we assign to the vars.
5544
case `(ac_space=' '; set | grep ac_space) 2>&1` in
5546
# `set' does not quote correctly, so add quotes (double-quote substitution
5547
# turns \\\\ into \\, and sed turns \\ into \).
5549
-e "s/'/'\\\\''/g" \
5550
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5553
# `set' quotes correctly as required by POSIX, so do not add quotes.
5554
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5557
if cmp -s $cache_file confcache; then
5560
if test -w $cache_file; then
5561
echo "updating cache $cache_file"
5562
cat confcache > $cache_file
12968
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12969
eval ac_val=\$$ac_var
12973
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12974
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12977
_ | IFS | as_nl) ;; #(
12978
*) $as_unset $ac_var ;;
12984
case $as_nl`(ac_space=' '; set) 2>&1` in #(
12985
*${as_nl}ac_space=\ *)
12986
# `set' does not quote correctly, so add quotes (double-quote
12987
# substitution turns \\\\ into \\, and sed turns \\ into \).
12990
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12993
# `set' quotes correctly as required by POSIX, so do not add quotes.
12994
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13003
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13005
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13007
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13008
if test -w "$cache_file"; then
13009
test "x$cache_file" != "x/dev/null" &&
13010
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
13011
echo "$as_me: updating cache $cache_file" >&6;}
13012
cat confcache >$cache_file
5564
echo "not updating unwritable cache $cache_file"
13014
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13015
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5567
13018
rm -f confcache
5569
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5571
13020
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5572
13021
# Let make expand exec_prefix.
5573
13022
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5575
# Any assignment to VPATH causes Sun make to only execute
5576
# the first set of double-colon rules, so remove it if not needed.
5577
# If there is a colon in the path, we need to keep it.
5578
if test "x$srcdir" = x.; then
5579
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5582
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5584
13024
DEFS=-DHAVE_CONFIG_H
5586
# Without the "./", some shells look in PATH for config.status.
13028
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13029
# 1. Remove the extension, and $U if already installed.
13030
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13031
ac_i=`echo "$ac_i" | sed "$ac_script"`
13032
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13033
# will be set to the directory where LIBOBJS objects are built.
13034
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13035
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13037
LIBOBJS=$ac_libobjs
13039
LTLIBOBJS=$ac_ltlibobjs
5587
13043
: ${CONFIG_STATUS=./config.status}
5589
echo creating $CONFIG_STATUS
5590
rm -f $CONFIG_STATUS
5591
cat > $CONFIG_STATUS <<EOF
5593
# Generated automatically by configure.
13044
ac_clean_files_save=$ac_clean_files
13045
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13046
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13047
echo "$as_me: creating $CONFIG_STATUS" >&6;}
13048
cat >$CONFIG_STATUS <<_ACEOF
13050
# Generated by $as_me.
5594
13051
# Run this file to recreate the current configuration.
5595
# This directory was configured as follows,
5596
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5598
# $0 $ac_configure_args
5600
13052
# Compiler output produced by configure, useful for debugging
5601
# configure, is in ./config.log if it exists.
5603
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5606
case "\$ac_option" in
13053
# configure, is in config.log if it exists.
13056
ac_cs_recheck=false
13058
SHELL=\${CONFIG_SHELL-$SHELL}
13061
cat >>$CONFIG_STATUS <<\_ACEOF
13062
## --------------------- ##
13063
## M4sh Initialization. ##
13064
## --------------------- ##
13066
# Be more Bourne compatible
13067
DUALCASE=1; export DUALCASE # for MKS sh
13068
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13071
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13072
# is contrary to our usage. Disable this feature.
13073
alias -g '${1+"$@"}'='"$@"'
13074
setopt NO_GLOB_SUBST
13076
case `(set -o) 2>/dev/null` in
13077
*posix*) set -o posix ;;
13086
# Avoid depending upon Character Ranges.
13087
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13088
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13089
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13090
as_cr_digits='0123456789'
13091
as_cr_alnum=$as_cr_Letters$as_cr_digits
13093
# The user is always right.
13094
if test "${PATH_SEPARATOR+set}" != set; then
13095
echo "#! /bin/sh" >conf$$.sh
13096
echo "exit 0" >>conf$$.sh
13098
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13106
# Support unset when possible.
13107
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13115
# We need space, tab and new line, in precisely that order. Quoting is
13116
# there to prevent editors from complaining about space-tab.
13117
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13118
# splitting by setting IFS to empty value.)
13123
# Find who we are. Look in the path if we contain no directory separator.
13125
*[\\/]* ) as_myself=$0 ;;
13126
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127
for as_dir in $PATH
13130
test -z "$as_dir" && as_dir=.
13131
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13137
# We did not find ourselves, most probably we were run as `sh COMMAND'
13138
# in which case we are not to be found in the path.
13139
if test "x$as_myself" = x; then
13142
if test ! -f "$as_myself"; then
13143
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13144
{ (exit 1); exit 1; }
13147
# Work around bugs in pre-3.0 UWIN ksh.
13148
for as_var in ENV MAIL MAILPATH
13149
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13157
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13158
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13159
LC_TELEPHONE LC_TIME
13161
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13162
eval $as_var=C; export $as_var
13164
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13168
# Required to use basename.
13169
if expr a : '\(a\)' >/dev/null 2>&1 &&
13170
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13176
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13177
as_basename=basename
13183
# Name of the executable.
13184
as_me=`$as_basename -- "$0" ||
13185
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13186
X"$0" : 'X\(//\)$' \| \
13187
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13189
sed '/^.*\/\([^/][^/]*\)\/*$/{
13208
as_lineno_1=$LINENO
13209
as_lineno_2=$LINENO
13210
test "x$as_lineno_1" != "x$as_lineno_2" &&
13211
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13213
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13214
# uniformly replaced by the line number. The first 'sed' inserts a
13215
# line-number line after each line using $LINENO; the second 'sed'
13216
# does the real work. The second script uses 'N' to pair each
13217
# line-number line with the line containing $LINENO, and appends
13218
# trailing '-' during substitution so that $LINENO is not a special
13219
# case at line end.
13220
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13221
# scripts with optimization help from Paolo Bonzini. Blame Lee
13222
# E. McMahon (1931-1989) for sed's syntax. :-)
13234
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13237
' >$as_me.lineno &&
13238
chmod +x "$as_me.lineno" ||
13239
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13240
{ (exit 1); exit 1; }; }
13242
# Don't try to exec as it changes $[0], causing all sort of problems
13243
# (the dirname of $[0] is not the place where we might find the
13244
# original and so on. Autoconf is especially sensitive to this).
13245
. "./$as_me.lineno"
13246
# Exit status is that of the last command.
13251
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13257
ECHO_C= ECHO_N= ECHO_T=
13258
case `echo -n x` in
13260
case `echo 'x\c'` in
13261
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13268
if expr a : '\(a\)' >/dev/null 2>&1 &&
13269
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13275
rm -f conf$$ conf$$.exe conf$$.file
13276
if test -d conf$$.dir; then
13277
rm -f conf$$.dir/conf$$.file
13283
if ln -s conf$$.file conf$$ 2>/dev/null; then
13285
# ... but there are two gotchas:
13286
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13287
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13288
# In both cases, we have to default to `cp -p'.
13289
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13291
elif ln conf$$.file conf$$ 2>/dev/null; then
13296
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13297
rmdir conf$$.dir 2>/dev/null
13299
if mkdir -p . 2>/dev/null; then
13302
test -d ./-p && rmdir ./-p
13306
if test -x / >/dev/null 2>&1; then
13307
as_test_x='test -x'
13309
if ls -dL / >/dev/null 2>&1; then
13316
if test -d "$1"; then
13322
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13323
???[sx]*):;;*)false;;esac;fi
13327
as_executable_p=$as_test_x
13329
# Sed expression to map a string onto a valid CPP name.
13330
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13332
# Sed expression to map a string onto a valid variable name.
13333
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13338
# Save the log message, to keep $[0] and so on meaningful, and to
13339
# report actual input values of CONFIG_FILES etc. instead of their
13340
# values after options handling.
13342
This file was extended by $as_me, which was
13343
generated by GNU Autoconf 2.61. Invocation command line was
13345
CONFIG_FILES = $CONFIG_FILES
13346
CONFIG_HEADERS = $CONFIG_HEADERS
13347
CONFIG_LINKS = $CONFIG_LINKS
13348
CONFIG_COMMANDS = $CONFIG_COMMANDS
13351
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13356
cat >>$CONFIG_STATUS <<_ACEOF
13357
# Files that config.status was made for.
13358
config_files="$ac_config_files"
13359
config_headers="$ac_config_headers"
13363
cat >>$CONFIG_STATUS <<\_ACEOF
13365
\`$as_me' instantiates files from templates according to the
13366
current configuration.
13368
Usage: $0 [OPTIONS] [FILE]...
13370
-h, --help print this help, then exit
13371
-V, --version print version number and configuration settings, then exit
13372
-q, --quiet do not print progress messages
13373
-d, --debug don't remove temporary files
13374
--recheck update $as_me by reconfiguring in the same conditions
13375
--file=FILE[:TEMPLATE]
13376
instantiate the configuration file FILE
13377
--header=FILE[:TEMPLATE]
13378
instantiate the configuration header FILE
13380
Configuration files:
13383
Configuration headers:
13386
Report bugs to <bug-autoconf@gnu.org>."
13389
cat >>$CONFIG_STATUS <<_ACEOF
13392
configured by $0, generated by GNU Autoconf 2.61,
13393
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13395
Copyright (C) 2006 Free Software Foundation, Inc.
13396
This config.status script is free software; the Free Software Foundation
13397
gives unlimited permission to copy, distribute and modify it."
13404
cat >>$CONFIG_STATUS <<\_ACEOF
13405
# If no file are specified by the user, then we need to provide default
13406
# value. By we need to know if files were specified by the user.
13412
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13413
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13424
# Handling of the options.
5607
13425
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5608
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5609
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5610
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5611
echo "$CONFIG_STATUS generated by autoconf version 2.13"
5613
-help | --help | --hel | --he | --h)
5614
echo "\$ac_cs_usage"; exit 0 ;;
5615
*) echo "\$ac_cs_usage"; exit 1 ;;
5619
ac_given_srcdir=$srcdir
5620
ac_given_INSTALL="$INSTALL"
5622
trap 'rm -fr `echo "openvas.tmpl include/corevers.h openvas-adduser openvas-rmuser openvas-mkcert openvas-mkcert-client openvasd-config include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5624
cat >> $CONFIG_STATUS <<EOF
5626
# Protect against being on the right side of a sed subst in config.status.
5627
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5628
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13427
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13428
echo "$ac_cs_version"; exit ;;
13429
--debug | --debu | --deb | --de | --d | -d )
13431
--file | --fil | --fi | --f )
13433
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13434
ac_need_defaults=false;;
13435
--header | --heade | --head | --hea )
13437
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13438
ac_need_defaults=false;;
13440
# Conflict between --help and --header
13441
{ echo "$as_me: error: ambiguous option: $1
13442
Try \`$0 --help' for more information." >&2
13443
{ (exit 1); exit 1; }; };;
13444
--help | --hel | -h )
13445
echo "$ac_cs_usage"; exit ;;
13446
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13447
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13450
# This is an error.
13451
-*) { echo "$as_me: error: unrecognized option: $1
13452
Try \`$0 --help' for more information." >&2
13453
{ (exit 1); exit 1; }; } ;;
13455
*) ac_config_targets="$ac_config_targets $1"
13456
ac_need_defaults=false ;;
13462
ac_configure_extra_args=
13464
if $ac_cs_silent; then
13466
ac_configure_extra_args="$ac_configure_extra_args --silent"
13470
cat >>$CONFIG_STATUS <<_ACEOF
13471
if \$ac_cs_recheck; then
13472
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13473
CONFIG_SHELL=$SHELL
13474
export CONFIG_SHELL
13475
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13479
cat >>$CONFIG_STATUS <<\_ACEOF
13483
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13484
## Running $as_me. ##
13490
cat >>$CONFIG_STATUS <<_ACEOF
13493
cat >>$CONFIG_STATUS <<\_ACEOF
13495
# Handling of arguments.
13496
for ac_config_target in $ac_config_targets
13498
case $ac_config_target in
13499
"include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13500
"openvas.tmpl") CONFIG_FILES="$CONFIG_FILES openvas.tmpl" ;;
13501
"include/corevers.h") CONFIG_FILES="$CONFIG_FILES include/corevers.h" ;;
13502
"openvas-adduser") CONFIG_FILES="$CONFIG_FILES openvas-adduser" ;;
13503
"openvas-rmuser") CONFIG_FILES="$CONFIG_FILES openvas-rmuser" ;;
13504
"openvas-mkcert") CONFIG_FILES="$CONFIG_FILES openvas-mkcert" ;;
13505
"openvas-mkcert-client") CONFIG_FILES="$CONFIG_FILES openvas-mkcert-client" ;;
13506
"openvasd-config") CONFIG_FILES="$CONFIG_FILES openvasd-config" ;;
13508
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13509
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13510
{ (exit 1); exit 1; }; };;
13515
# If the user did not use the arguments to specify the items to instantiate,
13516
# then the envvar interface is used. Set only those that are not.
13517
# We use the long form for the default assignment because of an extremely
13518
# bizarre bug on SunOS 4.1.3.
13519
if $ac_need_defaults; then
13520
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13521
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13524
# Have a temporary directory for convenience. Make it in the build tree
13525
# simply because there is no reason against having it here, and in addition,
13526
# creating and moving files from /tmp can sometimes cause problems.
13527
# Hook for its removal unless debugging.
13528
# Note that there is a small window in which the directory will not be cleaned:
13529
# after its creation but before its name has been assigned to `$tmp'.
13533
trap 'exit_status=$?
13534
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13536
trap '{ (exit 1); exit 1; }' 1 2 13 15
13538
# Create a (secure) tmp directory for tmp files.
13541
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13542
test -n "$tmp" && test -d "$tmp"
13545
tmp=./conf$$-$RANDOM
13546
(umask 077 && mkdir "$tmp")
13549
echo "$me: cannot create a temporary directory in ." >&2
13550
{ (exit 1); exit 1; }
13554
# Set up the sed scripts for CONFIG_FILES section.
13557
# No need to generate the scripts if there are no CONFIG_FILES.
13558
# This happens for instance when ./config.status config.h
13559
if test -n "$CONFIG_FILES"; then
13566
for ac_last_try in false false false false false :; do
13567
cat >conf$$subs.sed <<_ACEOF
13568
SHELL!$SHELL$ac_delim
13569
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13570
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13571
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13572
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13573
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13574
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13575
exec_prefix!$exec_prefix$ac_delim
13576
prefix!$prefix$ac_delim
13577
program_transform_name!$program_transform_name$ac_delim
13578
bindir!$bindir$ac_delim
13579
sbindir!$sbindir$ac_delim
13580
libexecdir!$libexecdir$ac_delim
13581
datarootdir!$datarootdir$ac_delim
13582
datadir!$datadir$ac_delim
13583
sysconfdir!$sysconfdir$ac_delim
13584
sharedstatedir!$sharedstatedir$ac_delim
13585
localstatedir!$localstatedir$ac_delim
13586
includedir!$includedir$ac_delim
13587
oldincludedir!$oldincludedir$ac_delim
13588
docdir!$docdir$ac_delim
13589
infodir!$infodir$ac_delim
13590
htmldir!$htmldir$ac_delim
13591
dvidir!$dvidir$ac_delim
13592
pdfdir!$pdfdir$ac_delim
13593
psdir!$psdir$ac_delim
13594
libdir!$libdir$ac_delim
13595
localedir!$localedir$ac_delim
13596
mandir!$mandir$ac_delim
13597
DEFS!$DEFS$ac_delim
13598
ECHO_C!$ECHO_C$ac_delim
13599
ECHO_N!$ECHO_N$ac_delim
13600
ECHO_T!$ECHO_T$ac_delim
13601
LIBS!$LIBS$ac_delim
13602
build_alias!$build_alias$ac_delim
13603
host_alias!$host_alias$ac_delim
13604
target_alias!$target_alias$ac_delim
13605
build!$build$ac_delim
13606
build_cpu!$build_cpu$ac_delim
13607
build_vendor!$build_vendor$ac_delim
13608
build_os!$build_os$ac_delim
13609
host!$host$ac_delim
13610
host_cpu!$host_cpu$ac_delim
13611
host_vendor!$host_vendor$ac_delim
13612
host_os!$host_os$ac_delim
13614
CFLAGS!$CFLAGS$ac_delim
13615
LDFLAGS!$LDFLAGS$ac_delim
13616
CPPFLAGS!$CPPFLAGS$ac_delim
13617
ac_ct_CC!$ac_ct_CC$ac_delim
13618
EXEEXT!$EXEEXT$ac_delim
13619
OBJEXT!$OBJEXT$ac_delim
13620
SET_MAKE!$SET_MAKE$ac_delim
13621
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13622
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13623
INSTALL_DATA!$INSTALL_DATA$ac_delim
13624
LIBOPENVASCONFIG!$LIBOPENVASCONFIG$ac_delim
13625
OPENVASLIBNASLCONFIG!$OPENVASLIBNASLCONFIG$ac_delim
13626
PKG_CONFIG!$PKG_CONFIG$ac_delim
13627
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
13628
GLIB_LIBS!$GLIB_LIBS$ac_delim
13630
GREP!$GREP$ac_delim
13631
EGREP!$EGREP$ac_delim
13632
ALLOCA!$ALLOCA$ac_delim
13633
XMKMF!$XMKMF$ac_delim
13634
X_CFLAGS!$X_CFLAGS$ac_delim
13635
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13636
X_LIBS!$X_LIBS$ac_delim
13637
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13640
PWDD!$PWDD$ac_delim
13641
OVSCFLAGS!$OVSCFLAGS$ac_delim
13642
NASLCFLAGS!$NASLCFLAGS$ac_delim
13643
CWALL!$CWALL$ac_delim
13644
version!$version$ac_delim
13645
OPENVASD_MAJOR!$OPENVASD_MAJOR$ac_delim
13646
OPENVASD_MINOR!$OPENVASD_MINOR$ac_delim
13647
OPENVASD_PATCH!$OPENVASD_PATCH$ac_delim
13648
OPENVASD_RC!$OPENVASD_RC$ac_delim
13649
OPENVASD_DATE!$OPENVASD_DATE$ac_delim
13650
OVS_COMPILER!$OVS_COMPILER$ac_delim
13651
OVS_OS_NAME!$OVS_OS_NAME$ac_delim
13652
OVS_OS_VERSION!$OVS_OS_VERSION$ac_delim
13653
OPENVASD_CONFDIR!$OPENVASD_CONFDIR$ac_delim
13654
OPENVASD_STATEDIR!$OPENVASD_STATEDIR$ac_delim
13655
OPENVASD_PIDDIR!$OPENVASD_PIDDIR$ac_delim
13656
OPENVASD_SHAREDSTATEDIR!$OPENVASD_SHAREDSTATEDIR$ac_delim
13657
OPENVASD_DATADIR!$OPENVASD_DATADIR$ac_delim
13658
OPENVASD_LIBDIR!$OPENVASD_LIBDIR$ac_delim
13659
OPENVASD_PLUGINS!$OPENVASD_PLUGINS$ac_delim
13660
OPENVASD_LOGDIR!$OPENVASD_LOGDIR$ac_delim
13661
OPENVASD_REPORTS!$OPENVASD_REPORTS$ac_delim
13662
INSTALL_DIR!$INSTALL_DIR$ac_delim
13663
INSTALL!$INSTALL$ac_delim
13664
RUN_LIBS!$RUN_LIBS$ac_delim
13667
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13669
elif $ac_last_try; then
13670
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13671
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13672
{ (exit 1); exit 1; }; }
13674
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13678
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13679
if test -n "$ac_eof"; then
13680
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13681
ac_eof=`expr $ac_eof + 1`
13684
cat >>$CONFIG_STATUS <<_ACEOF
13685
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13686
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13689
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13690
s/^/s,@/; s/!/@,|#_!!_#|/
13693
s/'"$ac_delim"'$/,g/; t
13695
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13696
' >>$CONFIG_STATUS <conf$$subs.sed
13697
rm -f conf$$subs.sed
13698
cat >>$CONFIG_STATUS <<_ACEOF
13704
for ac_last_try in false false false false false :; do
13705
cat >conf$$subs.sed <<_ACEOF
13706
resolv_lib!$resolv_lib$ac_delim
13707
socket_lib!$socket_lib$ac_delim
13708
nsl_lib!$nsl_lib$ac_delim
13709
ssl_lib!$ssl_lib$ac_delim
13710
pthread_lib!$pthread_lib$ac_delim
13711
debug_flags!$debug_flags$ac_delim
13712
man_openvas_1!$man_openvas_1$ac_delim
13713
man_openvasd_8!$man_openvasd_8$ac_delim
13714
dl_lib!$dl_lib$ac_delim
13715
libwrap!$libwrap$ac_delim
13716
uselibwrap!$uselibwrap$ac_delim
13717
use_pthreads!$use_pthreads$ac_delim
13718
rpcsvc_lib!$rpcsvc_lib$ac_delim
13719
compat_lib!$compat_lib$ac_delim
13720
c_r_lib!$c_r_lib$ac_delim
13721
ac_configure_args!$ac_configure_args$ac_delim
13722
egdpath!$egdpath$ac_delim
13723
installuser!$installuser$ac_delim
13724
LIBOBJS!$LIBOBJS$ac_delim
13725
LTLIBOBJS!$LTLIBOBJS$ac_delim
13728
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
13730
elif $ac_last_try; then
13731
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13732
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13733
{ (exit 1); exit 1; }; }
13735
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13739
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13740
if test -n "$ac_eof"; then
13741
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13742
ac_eof=`expr $ac_eof + 1`
13745
cat >>$CONFIG_STATUS <<_ACEOF
13746
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13747
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13750
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13751
s/^/s,@/; s/!/@,|#_!!_#|/
13754
s/'"$ac_delim"'$/,g/; t
13756
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13757
' >>$CONFIG_STATUS <conf$$subs.sed
13758
rm -f conf$$subs.sed
13759
cat >>$CONFIG_STATUS <<_ACEOF
13766
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13767
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13768
# trailing colons and then remove the whole line if VPATH becomes empty
13769
# (actually we leave an empty line to preserve line numbers).
13770
if test "x$srcdir" = x.; then
13771
ac_vpsub='/^[ ]*VPATH[ ]*=/{
13772
s/:*\$(srcdir):*/:/
13773
s/:*\${srcdir}:*/:/
13775
s/^\([^=]*=[ ]*\):*/\1/
13781
cat >>$CONFIG_STATUS <<\_ACEOF
13782
fi # test -n "$CONFIG_FILES"
13785
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
13788
:[FHLC]) ac_mode=$ac_tag; continue;;
13790
case $ac_mode$ac_tag in
13792
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13793
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13794
{ (exit 1); exit 1; }; };;
13795
:[FH]-) ac_tag=-:-;;
13796
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13813
-) ac_f="$tmp/stdin";;
13814
*) # Look for the file first in the build tree, then in the source tree
13815
# (if the path is not absolute). The absolute path cannot be DOS-style,
13816
# because $ac_f cannot contain `:'.
13820
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13822
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13823
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13824
{ (exit 1); exit 1; }; };;
13826
ac_file_inputs="$ac_file_inputs $ac_f"
13829
# Let's still pretend it is `configure' which instantiates (i.e., don't
13830
# use $as_me), people would be surprised to read:
13831
# /* config.h. Generated by config.status. */
13832
configure_input="Generated from "`IFS=:
13833
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13834
if test x"$ac_file" != x-; then
13835
configure_input="$ac_file. $configure_input"
13836
{ echo "$as_me:$LINENO: creating $ac_file" >&5
13837
echo "$as_me: creating $ac_file" >&6;}
13841
*:-:* | *:-) cat >"$tmp/stdin";;
13846
ac_dir=`$as_dirname -- "$ac_file" ||
13847
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13848
X"$ac_file" : 'X\(//\)[^/]' \| \
13849
X"$ac_file" : 'X\(//\)$' \| \
13850
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13852
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13856
/^X\(\/\/\)[^/].*/{
13871
-*) as_dir=./$as_dir;;
13873
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13877
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13878
*) as_qdir=$as_dir;;
13880
as_dirs="'$as_qdir' $as_dirs"
13881
as_dir=`$as_dirname -- "$as_dir" ||
13882
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13883
X"$as_dir" : 'X\(//\)[^/]' \| \
13884
X"$as_dir" : 'X\(//\)$' \| \
13885
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13887
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13891
/^X\(\/\/\)[^/].*/{
13904
test -d "$as_dir" && break
13906
test -z "$as_dirs" || eval "mkdir $as_dirs"
13907
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13908
echo "$as_me: error: cannot create directory $as_dir" >&2;}
13909
{ (exit 1); exit 1; }; }; }
13913
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13915
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13916
# A ".." for each directory in $ac_dir_suffix.
13917
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13918
case $ac_top_builddir_sub in
13919
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13920
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13923
ac_abs_top_builddir=$ac_pwd
13924
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13925
# for backward compatibility:
13926
ac_top_builddir=$ac_top_build_prefix
13929
.) # We are building in place.
13931
ac_top_srcdir=$ac_top_builddir_sub
13932
ac_abs_top_srcdir=$ac_pwd ;;
13933
[\\/]* | ?:[\\/]* ) # Absolute name.
13934
ac_srcdir=$srcdir$ac_dir_suffix;
13935
ac_top_srcdir=$srcdir
13936
ac_abs_top_srcdir=$srcdir ;;
13937
*) # Relative name.
13938
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13939
ac_top_srcdir=$ac_top_build_prefix$srcdir
13940
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13942
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13952
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13953
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13957
cat >>$CONFIG_STATUS <<\_ACEOF
13958
# If the template does not know about datarootdir, expand it.
13959
# FIXME: This hack should be removed a few years after 2.60.
13960
ac_datarootdir_hack=; ac_datarootdir_seen=
13962
case `sed -n '/datarootdir/ {
13971
' $ac_file_inputs` in
13972
*datarootdir*) ac_datarootdir_seen=yes;;
13973
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13974
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13975
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13977
cat >>$CONFIG_STATUS <<_ACEOF
13978
ac_datarootdir_hack='
13979
s&@datadir@&$datadir&g
13980
s&@docdir@&$docdir&g
13981
s&@infodir@&$infodir&g
13982
s&@localedir@&$localedir&g
13983
s&@mandir@&$mandir&g
13984
s&\\\${datarootdir}&$datarootdir&g' ;;
13988
# Neutralize VPATH when `$srcdir' = `.'.
13989
# Shell code in configure.ac might set extrasub.
13990
# FIXME: do we really want to maintain this feature?
13991
cat >>$CONFIG_STATUS <<_ACEOF
5632
s%@CFLAGS@%$CFLAGS%g
5633
s%@CPPFLAGS@%$CPPFLAGS%g
5634
s%@CXXFLAGS@%$CXXFLAGS%g
5635
s%@FFLAGS@%$FFLAGS%g
5637
s%@LDFLAGS@%$LDFLAGS%g
5639
s%@exec_prefix@%$exec_prefix%g
5640
s%@prefix@%$prefix%g
5641
s%@program_transform_name@%$program_transform_name%g
5642
s%@bindir@%$bindir%g
5643
s%@sbindir@%$sbindir%g
5644
s%@libexecdir@%$libexecdir%g
5645
s%@datadir@%$datadir%g
5646
s%@sysconfdir@%$sysconfdir%g
5647
s%@sharedstatedir@%$sharedstatedir%g
5648
s%@localstatedir@%$localstatedir%g
5649
s%@libdir@%$libdir%g
5650
s%@includedir@%$includedir%g
5651
s%@oldincludedir@%$oldincludedir%g
5652
s%@infodir@%$infodir%g
5653
s%@mandir@%$mandir%g
5655
s%@host_alias@%$host_alias%g
5656
s%@host_cpu@%$host_cpu%g
5657
s%@host_vendor@%$host_vendor%g
5658
s%@host_os@%$host_os%g
5660
s%@SET_MAKE@%$SET_MAKE%g
5661
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5662
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5663
s%@INSTALL_DATA@%$INSTALL_DATA%g
5664
s%@LIBOPENVASCONFIG@%$LIBOPENVASCONFIG%g
5665
s%@OPENVASLIBNASLCONFIG@%$OPENVASLIBNASLCONFIG%g
5667
s%@ALLOCA@%$ALLOCA%g
5668
s%@X_CFLAGS@%$X_CFLAGS%g
5669
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5670
s%@X_LIBS@%$X_LIBS%g
5671
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5675
s%@OVSCFLAGS@%$OVSCFLAGS%g
5676
s%@NASLCFLAGS@%$NASLCFLAGS%g
5678
s%@version@%$version%g
5679
s%@OPENVASD_MAJOR@%$OPENVASD_MAJOR%g
5680
s%@OPENVASD_MINOR@%$OPENVASD_MINOR%g
5681
s%@OPENVASD_PATCH@%$OPENVASD_PATCH%g
5682
s%@OPENVASD_RC@%$OPENVASD_RC%g
5683
s%@OPENVASD_DATE@%$OPENVASD_DATE%g
5684
s%@OVS_COMPILER@%$OVS_COMPILER%g
5685
s%@OVS_OS_NAME@%$OVS_OS_NAME%g
5686
s%@OVS_OS_VERSION@%$OVS_OS_VERSION%g
5687
s%@OPENVASD_CONFDIR@%$OPENVASD_CONFDIR%g
5688
s%@OPENVASD_STATEDIR@%$OPENVASD_STATEDIR%g
5689
s%@OPENVASD_PIDDIR@%$OPENVASD_PIDDIR%g
5690
s%@OPENVASD_SHAREDSTATEDIR@%$OPENVASD_SHAREDSTATEDIR%g
5691
s%@OPENVASD_DATADIR@%$OPENVASD_DATADIR%g
5692
s%@OPENVASD_LIBDIR@%$OPENVASD_LIBDIR%g
5693
s%@OPENVASD_PLUGINS@%$OPENVASD_PLUGINS%g
5694
s%@OPENVASD_LOGDIR@%$OPENVASD_LOGDIR%g
5695
s%@OPENVASD_REPORTS@%$OPENVASD_REPORTS%g
5696
s%@INSTALL_DIR@%$INSTALL_DIR%g
5697
s%@INSTALL@%$INSTALL%g
5698
s%@RUN_LIBS@%$RUN_LIBS%g
5699
s%@resolv_lib@%$resolv_lib%g
5700
s%@socket_lib@%$socket_lib%g
5701
s%@nsl_lib@%$nsl_lib%g
5702
s%@ssl_lib@%$ssl_lib%g
5703
s%@pthread_lib@%$pthread_lib%g
5704
s%@debug_flags@%$debug_flags%g
5705
s%@man_openvas_1@%$man_openvas_1%g
5706
s%@man_openvasd_8@%$man_openvasd_8%g
5707
s%@dl_lib@%$dl_lib%g
5708
s%@libwrap@%$libwrap%g
5709
s%@uselibwrap@%$uselibwrap%g
5710
s%@use_pthreads@%$use_pthreads%g
5711
s%@rpcsvc_lib@%$rpcsvc_lib%g
5712
s%@compat_lib@%$compat_lib%g
5713
s%@c_r_lib@%$c_r_lib%g
5714
s%@ac_configure_args@%$ac_configure_args%g
5715
s%@egdpath@%$egdpath%g
5716
s%@installuser@%$installuser%g
5721
cat >> $CONFIG_STATUS <<\EOF
5723
# Split the substitutions into bite-sized pieces for seds with
5724
# small command number limits, like on Digital OSF/1 and HP-UX.
5725
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5726
ac_file=1 # Number of current file.
5727
ac_beg=1 # First line for current file.
5728
ac_end=$ac_max_sed_cmds # Line after last line for current file.
5731
while $ac_more_lines; do
5732
if test $ac_beg -gt 1; then
5733
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5735
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5737
if test ! -s conftest.s$ac_file; then
5739
rm -f conftest.s$ac_file
5741
if test -z "$ac_sed_cmds"; then
5742
ac_sed_cmds="sed -f conftest.s$ac_file"
5744
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5746
ac_file=`expr $ac_file + 1`
5748
ac_end=`expr $ac_end + $ac_max_sed_cmds`
5751
if test -z "$ac_sed_cmds"; then
5756
cat >> $CONFIG_STATUS <<EOF
5758
CONFIG_FILES=\${CONFIG_FILES-"openvas.tmpl include/corevers.h openvas-adduser openvas-rmuser openvas-mkcert openvas-mkcert-client openvasd-config"}
5760
cat >> $CONFIG_STATUS <<\EOF
5761
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5762
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5764
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5765
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5766
*) ac_file_in="${ac_file}.in" ;;
5769
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5771
# Remove last slash and all that follows it. Not all systems have dirname.
5772
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5773
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5774
# The file is in a subdirectory.
5775
test ! -d "$ac_dir" && mkdir "$ac_dir"
5776
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5777
# A "../" for each directory in $ac_dir_suffix.
5778
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5780
ac_dir_suffix= ac_dots=
5783
case "$ac_given_srcdir" in
5785
if test -z "$ac_dots"; then top_srcdir=.
5786
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5787
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5789
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5790
top_srcdir="$ac_dots$ac_given_srcdir" ;;
5793
case "$ac_given_INSTALL" in
5794
[/$]*) INSTALL="$ac_given_INSTALL" ;;
5795
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5798
echo creating "$ac_file"
5800
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5802
*Makefile*) ac_comsub="1i\\
5803
# $configure_input" ;;
5807
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5809
s%@configure_input@%$configure_input%g
5810
s%@srcdir@%$srcdir%g
5811
s%@top_srcdir@%$top_srcdir%g
5812
s%@INSTALL@%$INSTALL%g
5813
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5817
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5818
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5820
# ac_d sets the value in "#define NAME VALUE" lines.
5821
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5822
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5825
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5826
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5827
ac_uB='\([ ]\)%\1#\2define\3'
5830
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5831
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5832
ac_eB='$%\1#\2define\3'
5836
if test "${CONFIG_HEADERS+set}" != set; then
5838
cat >> $CONFIG_STATUS <<EOF
5839
CONFIG_HEADERS="include/config.h"
5841
cat >> $CONFIG_STATUS <<\EOF
5843
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5844
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5846
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5847
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5848
*) ac_file_in="${ac_file}.in" ;;
5851
echo creating $ac_file
5853
rm -f conftest.frag conftest.in conftest.out
5854
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5855
cat $ac_file_inputs > conftest.in
5859
# Transform confdefs.h into a sed script conftest.vals that substitutes
5860
# the proper values into config.h.in to produce config.h. And first:
5861
# Protect against being on the right side of a sed subst in config.status.
5862
# Protect against being in an unquoted here document in config.status.
5864
cat > conftest.hdr <<\EOF
5867
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5871
sed -n -f conftest.hdr confdefs.h > conftest.vals
5874
# This sed command replaces #undef with comments. This is necessary, for
13995
cat >>$CONFIG_STATUS <<\_ACEOF
13997
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13998
s&@configure_input@&$configure_input&;t t
13999
s&@top_builddir@&$ac_top_builddir_sub&;t t
14000
s&@srcdir@&$ac_srcdir&;t t
14001
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14002
s&@top_srcdir@&$ac_top_srcdir&;t t
14003
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14004
s&@builddir@&$ac_builddir&;t t
14005
s&@abs_builddir@&$ac_abs_builddir&;t t
14006
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14007
s&@INSTALL@&$ac_INSTALL&;t t
14008
$ac_datarootdir_hack
14009
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14011
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14012
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14013
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14014
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14015
which seems to be undefined. Please make sure it is defined." >&5
14016
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14017
which seems to be undefined. Please make sure it is defined." >&2;}
14021
-) cat "$tmp/out"; rm -f "$tmp/out";;
14022
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14031
# Transform confdefs.h into a sed script `conftest.defines', that
14032
# substitutes the proper values into config.h.in to produce config.h.
14033
rm -f conftest.defines conftest.tail
14034
# First, append a space to every undef/define line, to ease matching.
14035
echo 's/$/ /' >conftest.defines
14036
# Then, protect against being on the right side of a sed subst, or in
14037
# an unquoted here document, in config.status. If some macros were
14038
# called several times there might be several #defines for the same
14039
# symbol, which is useless. But do not sort them, since the last
14040
# AC_DEFINE must be honored.
14041
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14042
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14043
# NAME is the cpp macro being defined, VALUE is the value it is being given.
14044
# PARAMS is the parameter list in the macro definition--in most cases, it's
14045
# just an empty string.
14046
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14047
ac_dB='\\)[ (].*,\\1define\\2'
14055
s/^[ ]*#[ ]*define[ ][ ]*//
14060
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14061
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14062
' >>conftest.defines
14064
# Remove the space that was appended to ease matching.
14065
# Then replace #undef with comments. This is necessary, for
5875
14066
# example, in the case of _POSIX_SOURCE, which is predefined and required
5876
14067
# on some systems where configure will not decide to define it.
5877
cat >> conftest.vals <<\EOF
5878
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5881
# Break up conftest.vals because some shells have a limit on
5882
# the size of here documents, and old seds have small limits too.
14068
# (The regexp can be short, since the line contains either #define or #undef.)
14070
s,^[ #]*u.*,/* & */,' >>conftest.defines
14072
# Break up conftest.defines:
14073
ac_max_sed_lines=50
14075
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14076
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14077
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14079
ac_in='$ac_file_inputs'
14080
ac_out='"$tmp/out1"'
14081
ac_nxt='"$tmp/out2"'
5887
ac_lines=`grep -c . conftest.vals`
5888
# grep -c gives empty output for an empty file on some AIX systems.
5889
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5890
# Write a limited-size here document to conftest.frag.
5891
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5892
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14085
# Write a here document:
14086
cat >>$CONFIG_STATUS <<_ACEOF
14087
# First, check the format of the line:
14088
cat >"\$tmp/defines.sed" <<\\CEOF
14089
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14090
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14094
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5894
sed -f conftest.frag conftest.in > conftest.out
5896
mv conftest.out conftest.in
5898
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5900
mv conftest.tail conftest.vals
14096
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14097
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14098
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14099
grep . conftest.tail >/dev/null || break
14100
rm -f conftest.defines
14101
mv conftest.tail conftest.defines
14103
rm -f conftest.defines conftest.tail
5904
cat >> $CONFIG_STATUS <<\EOF
5905
rm -f conftest.frag conftest.h
5906
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5907
cat conftest.in >> conftest.h
5909
if cmp -s $ac_file conftest.h 2>/dev/null; then
5910
echo "$ac_file is unchanged"
14105
echo "ac_result=$ac_in" >>$CONFIG_STATUS
14106
cat >>$CONFIG_STATUS <<\_ACEOF
14107
if test x"$ac_file" != x-; then
14108
echo "/* $configure_input */" >"$tmp/config.h"
14109
cat "$ac_result" >>"$tmp/config.h"
14110
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14111
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14112
echo "$as_me: $ac_file is unchanged" >&6;}
14115
mv "$tmp/config.h" $ac_file
5913
# Remove last slash and all that follows it. Not all systems have dirname.
5914
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5915
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5916
# The file is in a subdirectory.
5917
test ! -d "$ac_dir" && mkdir "$ac_dir"
5920
mv conftest.h $ac_file
14118
echo "/* $configure_input */"
5925
cat >> $CONFIG_STATUS <<EOF
5928
cat >> $CONFIG_STATUS <<\EOF
14130
{ (exit 0); exit 0; }
5932
14132
chmod +x $CONFIG_STATUS
5933
rm -fr confdefs* $ac_clean_files
5934
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14133
ac_clean_files=$ac_clean_files_save
14136
# configure is writing to config.log, and then calls config.status.
14137
# config.status does its own redirection, appending to config.log.
14138
# Unfortunately, on DOS this fails, as config.log is still kept open
14139
# by configure, so config.status won't be able to write to it; its
14140
# output is simply discarded. So we exec the FD to /dev/null,
14141
# effectively closing config.log, so it can be properly (re)opened and
14142
# appended to by config.status. When coming back to configure, we
14143
# need to make the FD available again.
14144
if test "$no_create" != yes; then
14146
ac_config_status_args=
14147
test "$silent" = yes &&
14148
ac_config_status_args="$ac_config_status_args --quiet"
14150
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14152
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
14153
# would make configure fail if this is the last instruction.
14154
$ac_cs_success || { (exit 1); exit 1; }