552
1289
CFLAGS=${CFLAGS-"-O"}
1292
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1293
if test -f $ac_dir/install-sh; then
1295
ac_install_sh="$ac_aux_dir/install-sh -c"
1297
elif test -f $ac_dir/install.sh; then
1299
ac_install_sh="$ac_aux_dir/install.sh -c"
1301
elif test -f $ac_dir/shtool; then
1303
ac_install_sh="$ac_aux_dir/shtool install -c"
1307
if test -z "$ac_aux_dir"; then
1308
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1309
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1310
{ (exit 1); exit 1; }; }
1312
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1313
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1314
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1316
# Make sure we can run config.sub.
1317
$ac_config_sub sun4 >/dev/null 2>&1 ||
1318
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1319
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1320
{ (exit 1); exit 1; }; }
1322
echo "$as_me:$LINENO: checking build system type" >&5
1323
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1324
if test "${ac_cv_build+set}" = set; then
1325
echo $ECHO_N "(cached) $ECHO_C" >&6
1327
ac_cv_build_alias=$build_alias
1328
test -z "$ac_cv_build_alias" &&
1329
ac_cv_build_alias=`$ac_config_guess`
1330
test -z "$ac_cv_build_alias" &&
1331
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1332
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1333
{ (exit 1); exit 1; }; }
1334
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1335
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1336
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1337
{ (exit 1); exit 1; }; }
1340
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1341
echo "${ECHO_T}$ac_cv_build" >&6
1343
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348
echo "$as_me:$LINENO: checking host system type" >&5
1349
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1350
if test "${ac_cv_host+set}" = set; then
1351
echo $ECHO_N "(cached) $ECHO_C" >&6
1353
ac_cv_host_alias=$host_alias
1354
test -z "$ac_cv_host_alias" &&
1355
ac_cv_host_alias=$ac_cv_build_alias
1356
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1357
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1358
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1359
{ (exit 1); exit 1; }; }
1362
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1363
echo "${ECHO_T}$ac_cv_host" >&6
1365
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370
echo "$as_me:$LINENO: checking target system type" >&5
1371
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1372
if test "${ac_cv_target+set}" = set; then
1373
echo $ECHO_N "(cached) $ECHO_C" >&6
1375
ac_cv_target_alias=$target_alias
1376
test "x$ac_cv_target_alias" = "x" &&
1377
ac_cv_target_alias=$ac_cv_host_alias
1378
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1379
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1380
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1381
{ (exit 1); exit 1; }; }
1384
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1385
echo "${ECHO_T}$ac_cv_target" >&6
1386
target=$ac_cv_target
1387
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392
# The aliases save the names the user supplied, while $host etc.
1393
# will get canonicalized.
1394
test -n "$target_alias" &&
1395
test "$program_prefix$program_suffix$program_transform_name" = \
1397
program_prefix=${target_alias}-
555
1400
STATEPATH="/var/state/ups"
556
MODELPATH="$prefix/bin"
557
CGIPATH="$prefix/cgi-bin"
1402
DRVPATH='${prefix}/bin'
1403
CGIPATH='${prefix}/cgi-bin'
558
1405
RUN_AS_USER="nobody"
559
RUN_AS_GROUP="nogroup"
560
1406
PIDPATH="/var/run"
561
1407
LIBOBJ=../common/common.o
562
1408
BUILDOBJ=common.o
565
# Extract the first word of "gcc", so it can be a program name with args.
1412
GD_LIBS="-L/usr/X11R6/lib -lgd -lpng -lz -ljpeg -lfreetype -lm -lXpm -lX11"
1416
ac_cpp='$CPP $CPPFLAGS'
1417
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1418
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1419
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1420
if test -n "$ac_tool_prefix"; then
1421
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1422
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1423
echo "$as_me:$LINENO: checking for $ac_word" >&5
1424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425
if test "${ac_cv_prog_CC+set}" = set; then
1426
echo $ECHO_N "(cached) $ECHO_C" >&6
1428
if test -n "$CC"; then
1429
ac_cv_prog_CC="$CC" # Let the user override the test.
1431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435
test -z "$as_dir" && as_dir=.
1436
for ac_exec_ext in '' $ac_executable_extensions; do
1437
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1439
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448
if test -n "$CC"; then
1449
echo "$as_me:$LINENO: result: $CC" >&5
1450
echo "${ECHO_T}$CC" >&6
1452
echo "$as_me:$LINENO: result: no" >&5
1453
echo "${ECHO_T}no" >&6
1457
if test -z "$ac_cv_prog_CC"; then
1459
# Extract the first word of "gcc", so it can be a program name with args.
566
1460
set dummy gcc; ac_word=$2
567
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
568
echo "configure:569: checking for $ac_word" >&5
569
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
570
echo $ac_n "(cached) $ac_c" 1>&6
1461
echo "$as_me:$LINENO: checking for $ac_word" >&5
1462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1464
echo $ECHO_N "(cached) $ECHO_C" >&6
1466
if test -n "$ac_ct_CC"; then
1467
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473
test -z "$as_dir" && as_dir=.
1474
for ac_exec_ext in '' $ac_executable_extensions; do
1475
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476
ac_cv_prog_ac_ct_CC="gcc"
1477
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1486
if test -n "$ac_ct_CC"; then
1487
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1488
echo "${ECHO_T}$ac_ct_CC" >&6
1490
echo "$as_me:$LINENO: result: no" >&5
1491
echo "${ECHO_T}no" >&6
1499
if test -z "$CC"; then
1500
if test -n "$ac_tool_prefix"; then
1501
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1502
set dummy ${ac_tool_prefix}cc; ac_word=$2
1503
echo "$as_me:$LINENO: checking for $ac_word" >&5
1504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505
if test "${ac_cv_prog_CC+set}" = set; then
1506
echo $ECHO_N "(cached) $ECHO_C" >&6
572
1508
if test -n "$CC"; then
573
1509
ac_cv_prog_CC="$CC" # Let the user override the test.
575
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
577
for ac_dir in $ac_dummy; do
578
test -z "$ac_dir" && ac_dir=.
579
if test -f $ac_dir/$ac_word; then
1511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515
test -z "$as_dir" && as_dir=.
1516
for ac_exec_ext in '' $ac_executable_extensions; do
1517
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518
ac_cv_prog_CC="${ac_tool_prefix}cc"
1519
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
588
1528
if test -n "$CC"; then
589
echo "$ac_t""$CC" 1>&6
591
echo "$ac_t""no" 1>&6
1529
echo "$as_me:$LINENO: result: $CC" >&5
1530
echo "${ECHO_T}$CC" >&6
1532
echo "$as_me:$LINENO: result: no" >&5
1533
echo "${ECHO_T}no" >&6
1537
if test -z "$ac_cv_prog_CC"; then
1539
# Extract the first word of "cc", so it can be a program name with args.
1540
set dummy cc; ac_word=$2
1541
echo "$as_me:$LINENO: checking for $ac_word" >&5
1542
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1544
echo $ECHO_N "(cached) $ECHO_C" >&6
1546
if test -n "$ac_ct_CC"; then
1547
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553
test -z "$as_dir" && as_dir=.
1554
for ac_exec_ext in '' $ac_executable_extensions; do
1555
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556
ac_cv_prog_ac_ct_CC="cc"
1557
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1566
if test -n "$ac_ct_CC"; then
1567
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1568
echo "${ECHO_T}$ac_ct_CC" >&6
1570
echo "$as_me:$LINENO: result: no" >&5
1571
echo "${ECHO_T}no" >&6
594
1580
if test -z "$CC"; then
595
1581
# Extract the first word of "cc", so it can be a program name with args.
596
1582
set dummy cc; ac_word=$2
597
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598
echo "configure:599: checking for $ac_word" >&5
599
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
600
echo $ac_n "(cached) $ac_c" 1>&6
1583
echo "$as_me:$LINENO: checking for $ac_word" >&5
1584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585
if test "${ac_cv_prog_CC+set}" = set; then
1586
echo $ECHO_N "(cached) $ECHO_C" >&6
602
1588
if test -n "$CC"; then
603
1589
ac_cv_prog_CC="$CC" # Let the user override the test.
605
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
606
1591
ac_prog_rejected=no
608
for ac_dir in $ac_dummy; do
609
test -z "$ac_dir" && ac_dir=.
610
if test -f $ac_dir/$ac_word; then
611
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596
test -z "$as_dir" && as_dir=.
1597
for ac_exec_ext in '' $ac_executable_extensions; do
1598
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1600
ac_prog_rejected=yes
1604
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
620
1610
if test $ac_prog_rejected = yes; then
621
1611
# We found a bogon in the path, so make sure we never use it.
622
1612
set dummy $ac_cv_prog_CC
624
if test $# -gt 0; then
1614
if test $# != 0; then
625
1615
# We chose a different compiler from the bogus one.
626
1616
# However, it has the same basename, so the bogon will be chosen
627
1617
# first if we set CC to just the basename; use the full file name.
629
set dummy "$ac_dir/$ac_word" "$@"
1619
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
637
1625
if test -n "$CC"; then
638
echo "$ac_t""$CC" 1>&6
1626
echo "$as_me:$LINENO: result: $CC" >&5
1627
echo "${ECHO_T}$CC" >&6
640
echo "$ac_t""no" 1>&6
1629
echo "$as_me:$LINENO: result: no" >&5
1630
echo "${ECHO_T}no" >&6
643
if test -z "$CC"; then
646
# Extract the first word of "cl", so it can be a program name with args.
647
set dummy cl; ac_word=$2
648
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649
echo "configure:650: checking for $ac_word" >&5
650
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651
echo $ac_n "(cached) $ac_c" 1>&6
1634
if test -z "$CC"; then
1635
if test -n "$ac_tool_prefix"; then
1638
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1639
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1640
echo "$as_me:$LINENO: checking for $ac_word" >&5
1641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642
if test "${ac_cv_prog_CC+set}" = set; then
1643
echo $ECHO_N "(cached) $ECHO_C" >&6
653
1645
if test -n "$CC"; then
654
1646
ac_cv_prog_CC="$CC" # Let the user override the test.
656
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658
for ac_dir in $ac_dummy; do
659
test -z "$ac_dir" && ac_dir=.
660
if test -f $ac_dir/$ac_word; then
1648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652
test -z "$as_dir" && as_dir=.
1653
for ac_exec_ext in '' $ac_executable_extensions; do
1654
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1656
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665
if test -n "$CC"; then
1666
echo "$as_me:$LINENO: result: $CC" >&5
1667
echo "${ECHO_T}$CC" >&6
1669
echo "$as_me:$LINENO: result: no" >&5
1670
echo "${ECHO_T}no" >&6
1673
test -n "$CC" && break
669
if test -n "$CC"; then
670
echo "$ac_t""$CC" 1>&6
672
echo "$ac_t""no" 1>&6
1676
if test -z "$CC"; then
1680
# Extract the first word of "$ac_prog", so it can be a program name with args.
1681
set dummy $ac_prog; ac_word=$2
1682
echo "$as_me:$LINENO: checking for $ac_word" >&5
1683
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1685
echo $ECHO_N "(cached) $ECHO_C" >&6
1687
if test -n "$ac_ct_CC"; then
1688
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694
test -z "$as_dir" && as_dir=.
1695
for ac_exec_ext in '' $ac_executable_extensions; do
1696
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697
ac_cv_prog_ac_ct_CC="$ac_prog"
1698
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
677
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
680
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
681
echo "configure:682: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
684
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685
ac_cpp='$CPP $CPPFLAGS'
686
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688
cross_compiling=$ac_cv_prog_cc_cross
690
cat > conftest.$ac_ext << EOF
692
#line 693 "configure"
693
#include "confdefs.h"
697
if { (eval echo configure:698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698
ac_cv_prog_cc_works=yes
699
# If we can't run a trivial program, we are probably using a cross compiler.
700
if (./conftest; exit) 2>/dev/null; then
701
ac_cv_prog_cc_cross=no
1706
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1707
if test -n "$ac_ct_CC"; then
1708
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1709
echo "${ECHO_T}$ac_ct_CC" >&6
1711
echo "$as_me:$LINENO: result: no" >&5
1712
echo "${ECHO_T}no" >&6
1715
test -n "$ac_ct_CC" && break
1724
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1725
See \`config.log' for more details." >&5
1726
echo "$as_me: error: no acceptable C compiler found in \$PATH
1727
See \`config.log' for more details." >&2;}
1728
{ (exit 1); exit 1; }; }
1730
# Provide some information about the compiler.
1731
echo "$as_me:$LINENO:" \
1732
"checking for C compiler version" >&5
1733
ac_compiler=`set X $ac_compile; echo $2`
1734
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1735
(eval $ac_compiler --version </dev/null >&5) 2>&5
1737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1738
(exit $ac_status); }
1739
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1740
(eval $ac_compiler -v </dev/null >&5) 2>&5
1742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1743
(exit $ac_status); }
1744
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1745
(eval $ac_compiler -V </dev/null >&5) 2>&5
1747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748
(exit $ac_status); }
1750
cat >conftest.$ac_ext <<_ACEOF
1751
#line $LINENO "configure"
1754
cat confdefs.h >>conftest.$ac_ext
1755
cat >>conftest.$ac_ext <<_ACEOF
1756
/* end confdefs.h. */
1766
ac_clean_files_save=$ac_clean_files
1767
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1768
# Try to create an executable without -o first, disregard a.out.
1769
# It will help us diagnose broken compilers, and finding out an intuition
1771
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1772
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1773
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1774
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1775
(eval $ac_link_default) 2>&5
1777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778
(exit $ac_status); }; then
1779
# Find the output, starting from the most likely. This scheme is
1780
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1783
# Be careful to initialize this variable, since it used to be cached.
1784
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1786
# b.out is created by i960 compilers.
1787
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1789
test -f "$ac_file" || continue
1791
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1794
# This is the source file.
1797
# We found the default executable, but exeext='' is most
1801
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1802
# FIXME: I believe we export ac_cv_exeext for Libtool,
1803
# but it would be cool to find out if it's true. Does anybody
1804
# maintain Libtool? --akim.
1812
echo "$as_me: failed program was:" >&5
1813
sed 's/^/| /' conftest.$ac_ext >&5
1815
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1816
See \`config.log' for more details." >&5
1817
echo "$as_me: error: C compiler cannot create executables
1818
See \`config.log' for more details." >&2;}
1819
{ (exit 77); exit 77; }; }
1822
ac_exeext=$ac_cv_exeext
1823
echo "$as_me:$LINENO: result: $ac_file" >&5
1824
echo "${ECHO_T}$ac_file" >&6
1826
# Check the compiler produces executables we can run. If not, either
1827
# the compiler is broken, or we cross compile.
1828
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1829
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1830
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1831
# If not cross compiling, check that we can run a simple program.
1832
if test "$cross_compiling" != yes; then
1833
if { ac_try='./$ac_file'
1834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838
(exit $ac_status); }; }; then
703
ac_cv_prog_cc_cross=yes
1841
if test "$cross_compiling" = maybe; then
1844
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1845
If you meant to cross compile, use \`--host'.
1846
See \`config.log' for more details." >&5
1847
echo "$as_me: error: cannot run C compiled programs.
1848
If you meant to cross compile, use \`--host'.
1849
See \`config.log' for more details." >&2;}
1850
{ (exit 1); exit 1; }; }
706
echo "configure: failed program was:" >&5
707
cat conftest.$ac_ext >&5
708
ac_cv_prog_cc_works=no
712
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
713
ac_cpp='$CPP $CPPFLAGS'
714
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
715
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
716
cross_compiling=$ac_cv_prog_cc_cross
718
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
719
if test $ac_cv_prog_cc_works = no; then
720
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
722
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
723
echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
724
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
725
cross_compiling=$ac_cv_prog_cc_cross
727
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
728
echo "configure:729: checking whether we are using GNU C" >&5
729
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
730
echo $ac_n "(cached) $ac_c" 1>&6
732
cat > conftest.c <<EOF
1854
echo "$as_me:$LINENO: result: yes" >&5
1855
echo "${ECHO_T}yes" >&6
1857
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1858
ac_clean_files=$ac_clean_files_save
1859
# Check the compiler produces executables we can run. If not, either
1860
# the compiler is broken, or we cross compile.
1861
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1862
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1863
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1864
echo "${ECHO_T}$cross_compiling" >&6
1866
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1867
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1869
(eval $ac_link) 2>&5
1871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872
(exit $ac_status); }; then
1873
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1874
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1875
# work properly (i.e., refer to `conftest.exe'), while it won't with
1877
for ac_file in conftest.exe conftest conftest.*; do
1878
test -f "$ac_file" || continue
1880
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1881
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1888
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1889
See \`config.log' for more details." >&5
1890
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1891
See \`config.log' for more details." >&2;}
1892
{ (exit 1); exit 1; }; }
1895
rm -f conftest$ac_cv_exeext
1896
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1897
echo "${ECHO_T}$ac_cv_exeext" >&6
1899
rm -f conftest.$ac_ext
1900
EXEEXT=$ac_cv_exeext
1902
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1903
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1904
if test "${ac_cv_objext+set}" = set; then
1905
echo $ECHO_N "(cached) $ECHO_C" >&6
1907
cat >conftest.$ac_ext <<_ACEOF
1908
#line $LINENO "configure"
1911
cat confdefs.h >>conftest.$ac_ext
1912
cat >>conftest.$ac_ext <<_ACEOF
1913
/* end confdefs.h. */
1923
rm -f conftest.o conftest.obj
1924
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925
(eval $ac_compile) 2>&5
1927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928
(exit $ac_status); }; then
1929
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1931
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1932
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1937
echo "$as_me: failed program was:" >&5
1938
sed 's/^/| /' conftest.$ac_ext >&5
1940
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1941
See \`config.log' for more details." >&5
1942
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1943
See \`config.log' for more details." >&2;}
1944
{ (exit 1); exit 1; }; }
1947
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1950
echo "${ECHO_T}$ac_cv_objext" >&6
1951
OBJEXT=$ac_cv_objext
1953
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1954
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1955
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1956
echo $ECHO_N "(cached) $ECHO_C" >&6
1958
cat >conftest.$ac_ext <<_ACEOF
1959
#line $LINENO "configure"
1962
cat confdefs.h >>conftest.$ac_ext
1963
cat >>conftest.$ac_ext <<_ACEOF
1964
/* end confdefs.h. */
737
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
744
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
746
if test $ac_cv_prog_gcc = yes; then
752
ac_test_CFLAGS="${CFLAGS+set}"
753
ac_save_CFLAGS="$CFLAGS"
755
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
756
echo "configure:757: checking whether ${CC-cc} accepts -g" >&5
757
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
758
echo $ac_n "(cached) $ac_c" 1>&6
760
echo 'void f(){}' > conftest.c
761
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1977
rm -f conftest.$ac_objext
1978
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979
(eval $ac_compile) 2>&5
1981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982
(exit $ac_status); } &&
1983
{ ac_try='test -s conftest.$ac_objext'
1984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988
(exit $ac_status); }; }; then
1991
echo "$as_me: failed program was:" >&5
1992
sed 's/^/| /' conftest.$ac_ext >&5
1996
rm -f conftest.$ac_objext conftest.$ac_ext
1997
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2000
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2001
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2002
GCC=`test $ac_compiler_gnu = yes && echo yes`
2003
ac_test_CFLAGS=${CFLAGS+set}
2004
ac_save_CFLAGS=$CFLAGS
2006
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2007
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2008
if test "${ac_cv_prog_cc_g+set}" = set; then
2009
echo $ECHO_N "(cached) $ECHO_C" >&6
2011
cat >conftest.$ac_ext <<_ACEOF
2012
#line $LINENO "configure"
2015
cat confdefs.h >>conftest.$ac_ext
2016
cat >>conftest.$ac_ext <<_ACEOF
2017
/* end confdefs.h. */
2027
rm -f conftest.$ac_objext
2028
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029
(eval $ac_compile) 2>&5
2031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032
(exit $ac_status); } &&
2033
{ ac_try='test -s conftest.$ac_objext'
2034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038
(exit $ac_status); }; }; then
762
2039
ac_cv_prog_cc_g=yes
770
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2041
echo "$as_me: failed program was:" >&5
2042
sed 's/^/| /' conftest.$ac_ext >&5
2046
rm -f conftest.$ac_objext conftest.$ac_ext
2048
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2049
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
771
2050
if test "$ac_test_CFLAGS" = set; then
772
CFLAGS="$ac_save_CFLAGS"
2051
CFLAGS=$ac_save_CFLAGS
773
2052
elif test $ac_cv_prog_cc_g = yes; then
774
2053
if test "$GCC" = yes; then
890
2521
# SunOS /usr/etc/install
891
2522
# IRIX /sbin/install
892
2523
# AIX /bin/install
2524
# AmigaOS /C/install, which installs bootblocks on floppy discs
893
2525
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
894
2526
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
895
2527
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
896
2528
# ./install, which can be erroneously created by make from ./install.sh.
897
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
898
echo "configure:899: checking for a BSD compatible install" >&5
2529
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2530
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
899
2531
if test -z "$INSTALL"; then
900
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
901
echo $ac_n "(cached) $ac_c" 1>&6
2532
if test "${ac_cv_path_install+set}" = set; then
2533
echo $ECHO_N "(cached) $ECHO_C" >&6
903
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
904
for ac_dir in $PATH; do
905
# Account for people who put trailing slashes in PATH elements.
907
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
909
# OSF1 and SCO ODT 3.0 have their own names for install.
910
# Don't use installbsd from OSF since it installs stuff as root
912
for ac_prog in ginstall scoinst install; do
913
if test -f $ac_dir/$ac_prog; then
914
if test $ac_prog = install &&
915
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
916
# AIX install. It has an incompatible calling convention.
919
ac_cv_path_install="$ac_dir/$ac_prog -c"
2535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539
test -z "$as_dir" && as_dir=.
2540
# Account for people who put trailing slashes in PATH elements.
2542
./ | .// | /cC/* | \
2543
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2546
# OSF1 and SCO ODT 3.0 have their own names for install.
2547
# Don't use installbsd from OSF since it installs stuff as root
2549
for ac_prog in ginstall scoinst install; do
2550
for ac_exec_ext in '' $ac_executable_extensions; do
2551
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2552
if test $ac_prog = install &&
2553
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2554
# AIX install. It has an incompatible calling convention.
2556
elif test $ac_prog = install &&
2557
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558
# program-specific install script used by HP pwplus--don't use.
2561
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
930
2573
if test "${ac_cv_path_install+set}" = set; then
931
INSTALL="$ac_cv_path_install"
2574
INSTALL=$ac_cv_path_install
933
2576
# As a last resort, use the slow shell script. We don't cache a
934
2577
# path for INSTALL within a source directory, because that will
935
2578
# break other packages using the cache if that directory is
936
2579
# removed, or if the path is relative.
937
INSTALL="$ac_install_sh"
2580
INSTALL=$ac_install_sh
940
echo "$ac_t""$INSTALL" 1>&6
2583
echo "$as_me:$LINENO: result: $INSTALL" >&5
2584
echo "${ECHO_T}$INSTALL" >&6
942
2586
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
943
2587
# It thinks the first close brace ends the variable substitution.
944
2588
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
946
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2590
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
948
2592
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
950
for ac_func in flock lockf cfsetispeed tcsendbreak seteuid setsid fcvt fcvtl cfmakeraw mmap msync
952
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
953
echo "configure:954: checking for $ac_func" >&5
954
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
955
echo $ac_n "(cached) $ac_c" 1>&6
957
cat > conftest.$ac_ext <<EOF
958
#line 959 "configure"
959
#include "confdefs.h"
960
/* System header to define __stub macros and hopefully few prototypes,
961
which can conflict with char $ac_func(); below. */
963
/* Override any gcc2 internal prototype to avoid an error. */
964
/* We use char because int might match the return type of a gcc2
965
builtin and then its argument prototype would still apply. */
970
/* The GNU C library defines this for functions which it implements
971
to always fail with ENOSYS. Some functions are actually named
972
something starting with __ and the normal name is an alias. */
973
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
981
if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
983
eval "ac_cv_func_$ac_func=yes"
985
echo "configure: failed program was:" >&5
986
cat conftest.$ac_ext >&5
988
eval "ac_cv_func_$ac_func=no"
993
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
994
echo "$ac_t""yes" 1>&6
995
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
996
cat >> confdefs.h <<EOF
997
#define $ac_tr_func 1
1001
echo "$ac_t""no" 1>&6
2594
echo "$as_me:$LINENO: checking for egrep" >&5
2595
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2596
if test "${ac_cv_prog_egrep+set}" = set; then
2597
echo $ECHO_N "(cached) $ECHO_C" >&6
2599
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2600
then ac_cv_prog_egrep='grep -E'
2601
else ac_cv_prog_egrep='egrep'
2604
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2605
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2606
EGREP=$ac_cv_prog_egrep
2609
# Extract the first word of "ar", so it can be a program name with args.
2610
set dummy ar; ac_word=$2
2611
echo "$as_me:$LINENO: checking for $ac_word" >&5
2612
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613
if test "${ac_cv_path_AR+set}" = set; then
2614
echo $ECHO_N "(cached) $ECHO_C" >&6
2618
ac_cv_path_AR="$AR" # Let the user override the test with a path.
2621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625
test -z "$as_dir" && as_dir=.
2626
for ac_exec_ext in '' $ac_executable_extensions; do
2627
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628
ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2629
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640
if test -n "$AR"; then
2641
echo "$as_me:$LINENO: result: $AR" >&5
2642
echo "${ECHO_T}$AR" >&6
2644
echo "$as_me:$LINENO: result: no" >&5
2645
echo "${ECHO_T}no" >&6
2648
if test -n "$ac_tool_prefix"; then
2649
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2650
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2651
echo "$as_me:$LINENO: checking for $ac_word" >&5
2652
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2653
if test "${ac_cv_prog_RANLIB+set}" = set; then
2654
echo $ECHO_N "(cached) $ECHO_C" >&6
2656
if test -n "$RANLIB"; then
2657
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663
test -z "$as_dir" && as_dir=.
2664
for ac_exec_ext in '' $ac_executable_extensions; do
2665
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2667
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675
RANLIB=$ac_cv_prog_RANLIB
2676
if test -n "$RANLIB"; then
2677
echo "$as_me:$LINENO: result: $RANLIB" >&5
2678
echo "${ECHO_T}$RANLIB" >&6
2680
echo "$as_me:$LINENO: result: no" >&5
2681
echo "${ECHO_T}no" >&6
2685
if test -z "$ac_cv_prog_RANLIB"; then
2686
ac_ct_RANLIB=$RANLIB
2687
# Extract the first word of "ranlib", so it can be a program name with args.
2688
set dummy ranlib; ac_word=$2
2689
echo "$as_me:$LINENO: checking for $ac_word" >&5
2690
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2691
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2692
echo $ECHO_N "(cached) $ECHO_C" >&6
2694
if test -n "$ac_ct_RANLIB"; then
2695
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701
test -z "$as_dir" && as_dir=.
2702
for ac_exec_ext in '' $ac_executable_extensions; do
2703
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704
ac_cv_prog_ac_ct_RANLIB="ranlib"
2705
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2714
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2715
if test -n "$ac_ct_RANLIB"; then
2716
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2717
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2719
echo "$as_me:$LINENO: result: no" >&5
2720
echo "${ECHO_T}no" >&6
2723
RANLIB=$ac_ct_RANLIB
2725
RANLIB="$ac_cv_prog_RANLIB"
2729
echo "$as_me:$LINENO: checking for inline" >&5
2730
echo $ECHO_N "checking for inline... $ECHO_C" >&6
2731
if test "${ac_cv_c_inline+set}" = set; then
2732
echo $ECHO_N "(cached) $ECHO_C" >&6
2735
for ac_kw in inline __inline__ __inline; do
2736
cat >conftest.$ac_ext <<_ACEOF
2737
#line $LINENO "configure"
2740
cat confdefs.h >>conftest.$ac_ext
2741
cat >>conftest.$ac_ext <<_ACEOF
2742
/* end confdefs.h. */
2745
static $ac_kw foo_t static_foo () {return 0; }
2746
$ac_kw foo_t foo () {return 0; }
2750
rm -f conftest.$ac_objext
2751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752
(eval $ac_compile) 2>&5
2754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
(exit $ac_status); } &&
2756
{ ac_try='test -s conftest.$ac_objext'
2757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
(exit $ac_status); }; }; then
2762
ac_cv_c_inline=$ac_kw; break
2764
echo "$as_me: failed program was:" >&5
2765
sed 's/^/| /' conftest.$ac_ext >&5
2768
rm -f conftest.$ac_objext conftest.$ac_ext
2772
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2773
echo "${ECHO_T}$ac_cv_c_inline" >&6
2774
case $ac_cv_c_inline in
2777
cat >>confdefs.h <<\_ACEOF
2781
*) cat >>confdefs.h <<_ACEOF
2782
#define inline $ac_cv_c_inline
2791
for ac_func in flock lockf fcvt fcvtl
2793
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2794
echo "$as_me:$LINENO: checking for $ac_func" >&5
2795
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2796
if eval "test \"\${$as_ac_var+set}\" = set"; then
2797
echo $ECHO_N "(cached) $ECHO_C" >&6
2799
cat >conftest.$ac_ext <<_ACEOF
2800
#line $LINENO "configure"
2803
cat confdefs.h >>conftest.$ac_ext
2804
cat >>conftest.$ac_ext <<_ACEOF
2805
/* end confdefs.h. */
2806
/* System header to define __stub macros and hopefully few prototypes,
2807
which can conflict with char $ac_func (); below.
2808
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2809
<limits.h> exists even on freestanding compilers. */
2811
# include <limits.h>
2813
# include <assert.h>
2815
/* Override any gcc2 internal prototype to avoid an error. */
2820
/* We use char because int might match the return type of a gcc2
2821
builtin and then its argument prototype would still apply. */
2823
/* The GNU C library defines this for functions which it implements
2824
to always fail with ENOSYS. Some functions are actually named
2825
something starting with __ and the normal name is an alias. */
2826
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2829
char (*f) () = $ac_func;
2838
return f != $ac_func;
2843
rm -f conftest.$ac_objext conftest$ac_exeext
2844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2845
(eval $ac_link) 2>&5
2847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
(exit $ac_status); } &&
2849
{ ac_try='test -s conftest$ac_exeext'
2850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
(exit $ac_status); }; }; then
2855
eval "$as_ac_var=yes"
2857
echo "$as_me: failed program was:" >&5
2858
sed 's/^/| /' conftest.$ac_ext >&5
2860
eval "$as_ac_var=no"
2862
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2864
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2865
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2866
if test `eval echo '${'$as_ac_var'}'` = yes; then
2867
cat >>confdefs.h <<_ACEOF
2868
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2877
for ac_func in cfsetispeed tcsendbreak cfmakeraw
2879
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2880
echo "$as_me:$LINENO: checking for $ac_func" >&5
2881
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2882
if eval "test \"\${$as_ac_var+set}\" = set"; then
2883
echo $ECHO_N "(cached) $ECHO_C" >&6
2885
cat >conftest.$ac_ext <<_ACEOF
2886
#line $LINENO "configure"
2889
cat confdefs.h >>conftest.$ac_ext
2890
cat >>conftest.$ac_ext <<_ACEOF
2891
/* end confdefs.h. */
2892
/* System header to define __stub macros and hopefully few prototypes,
2893
which can conflict with char $ac_func (); below.
2894
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895
<limits.h> exists even on freestanding compilers. */
2897
# include <limits.h>
2899
# include <assert.h>
2901
/* Override any gcc2 internal prototype to avoid an error. */
2906
/* We use char because int might match the return type of a gcc2
2907
builtin and then its argument prototype would still apply. */
2909
/* The GNU C library defines this for functions which it implements
2910
to always fail with ENOSYS. Some functions are actually named
2911
something starting with __ and the normal name is an alias. */
2912
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2915
char (*f) () = $ac_func;
2924
return f != $ac_func;
2929
rm -f conftest.$ac_objext conftest$ac_exeext
2930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931
(eval $ac_link) 2>&5
2933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934
(exit $ac_status); } &&
2935
{ ac_try='test -s conftest$ac_exeext'
2936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940
(exit $ac_status); }; }; then
2941
eval "$as_ac_var=yes"
2943
echo "$as_me: failed program was:" >&5
2944
sed 's/^/| /' conftest.$ac_ext >&5
2946
eval "$as_ac_var=no"
2948
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2950
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2951
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2952
if test `eval echo '${'$as_ac_var'}'` = yes; then
2953
cat >>confdefs.h <<_ACEOF
2954
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2963
for ac_func in seteuid setsid getpassphrase
2965
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2966
echo "$as_me:$LINENO: checking for $ac_func" >&5
2967
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2968
if eval "test \"\${$as_ac_var+set}\" = set"; then
2969
echo $ECHO_N "(cached) $ECHO_C" >&6
2971
cat >conftest.$ac_ext <<_ACEOF
2972
#line $LINENO "configure"
2975
cat confdefs.h >>conftest.$ac_ext
2976
cat >>conftest.$ac_ext <<_ACEOF
2977
/* end confdefs.h. */
2978
/* System header to define __stub macros and hopefully few prototypes,
2979
which can conflict with char $ac_func (); below.
2980
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981
<limits.h> exists even on freestanding compilers. */
2983
# include <limits.h>
2985
# include <assert.h>
2987
/* Override any gcc2 internal prototype to avoid an error. */
2992
/* We use char because int might match the return type of a gcc2
2993
builtin and then its argument prototype would still apply. */
2995
/* The GNU C library defines this for functions which it implements
2996
to always fail with ENOSYS. Some functions are actually named
2997
something starting with __ and the normal name is an alias. */
2998
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3001
char (*f) () = $ac_func;
3010
return f != $ac_func;
3015
rm -f conftest.$ac_objext conftest$ac_exeext
3016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3017
(eval $ac_link) 2>&5
3019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
(exit $ac_status); } &&
3021
{ ac_try='test -s conftest$ac_exeext'
3022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026
(exit $ac_status); }; }; then
3027
eval "$as_ac_var=yes"
3029
echo "$as_me: failed program was:" >&5
3030
sed 's/^/| /' conftest.$ac_ext >&5
3032
eval "$as_ac_var=no"
3034
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3037
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3038
if test `eval echo '${'$as_ac_var'}'` = yes; then
3039
cat >>confdefs.h <<_ACEOF
3040
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1006
3049
for ac_func in vsnprintf snprintf
1008
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1009
echo "configure:1010: checking for $ac_func" >&5
1010
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1011
echo $ac_n "(cached) $ac_c" 1>&6
3051
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3052
echo "$as_me:$LINENO: checking for $ac_func" >&5
3053
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3054
if eval "test \"\${$as_ac_var+set}\" = set"; then
3055
echo $ECHO_N "(cached) $ECHO_C" >&6
1013
cat > conftest.$ac_ext <<EOF
1014
#line 1015 "configure"
1015
#include "confdefs.h"
3057
cat >conftest.$ac_ext <<_ACEOF
3058
#line $LINENO "configure"
3061
cat confdefs.h >>conftest.$ac_ext
3062
cat >>conftest.$ac_ext <<_ACEOF
3063
/* end confdefs.h. */
1016
3064
/* System header to define __stub macros and hopefully few prototypes,
1017
which can conflict with char $ac_func(); below. */
3065
which can conflict with char $ac_func (); below.
3066
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067
<limits.h> exists even on freestanding compilers. */
3069
# include <limits.h>
3071
# include <assert.h>
1019
3073
/* Override any gcc2 internal prototype to avoid an error. */
1020
3078
/* We use char because int might match the return type of a gcc2
1021
builtin and then its argument prototype would still apply. */
3079
builtin and then its argument prototype would still apply. */
1026
3081
/* The GNU C library defines this for functions which it implements
1027
3082
to always fail with ENOSYS. Some functions are actually named
1028
3083
something starting with __ and the normal name is an alias. */
1029
3084
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1037
if { (eval echo configure:1038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1039
eval "ac_cv_func_$ac_func=yes"
1041
echo "configure: failed program was:" >&5
1042
cat conftest.$ac_ext >&5
1044
eval "ac_cv_func_$ac_func=no"
1049
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1050
echo "$ac_t""yes" 1>&6
1051
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1052
cat >> confdefs.h <<EOF
1053
#define $ac_tr_func 1
1057
echo "$ac_t""no" 1>&6
1058
LIBOBJ="$LIBOBJ ../common/snprintf.o"
3087
char (*f) () = $ac_func;
3096
return f != $ac_func;
3101
rm -f conftest.$ac_objext conftest$ac_exeext
3102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3103
(eval $ac_link) 2>&5
3105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106
(exit $ac_status); } &&
3107
{ ac_try='test -s conftest$ac_exeext'
3108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112
(exit $ac_status); }; }; then
3113
eval "$as_ac_var=yes"
3115
echo "$as_me: failed program was:" >&5
3116
sed 's/^/| /' conftest.$ac_ext >&5
3118
eval "$as_ac_var=no"
3120
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3122
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3123
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3124
if test `eval echo '${'$as_ac_var'}'` = yes; then
3125
cat >>confdefs.h <<_ACEOF
3126
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3130
LIBOBJ="$LIBOBJ ../common/snprintf.o"
1059
3131
BUILDOBJ="$BUILDOBJ snprintf.o"
1064
3137
for ac_func in setenv
1066
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1067
echo "configure:1068: checking for $ac_func" >&5
1068
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1069
echo $ac_n "(cached) $ac_c" 1>&6
3139
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3140
echo "$as_me:$LINENO: checking for $ac_func" >&5
3141
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3142
if eval "test \"\${$as_ac_var+set}\" = set"; then
3143
echo $ECHO_N "(cached) $ECHO_C" >&6
1071
cat > conftest.$ac_ext <<EOF
1072
#line 1073 "configure"
1073
#include "confdefs.h"
3145
cat >conftest.$ac_ext <<_ACEOF
3146
#line $LINENO "configure"
3149
cat confdefs.h >>conftest.$ac_ext
3150
cat >>conftest.$ac_ext <<_ACEOF
3151
/* end confdefs.h. */
1074
3152
/* System header to define __stub macros and hopefully few prototypes,
1075
which can conflict with char $ac_func(); below. */
3153
which can conflict with char $ac_func (); below.
3154
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3155
<limits.h> exists even on freestanding compilers. */
3157
# include <limits.h>
3159
# include <assert.h>
1077
3161
/* Override any gcc2 internal prototype to avoid an error. */
1078
3166
/* We use char because int might match the return type of a gcc2
1079
builtin and then its argument prototype would still apply. */
3167
builtin and then its argument prototype would still apply. */
1084
3169
/* The GNU C library defines this for functions which it implements
1085
3170
to always fail with ENOSYS. Some functions are actually named
1086
3171
something starting with __ and the normal name is an alias. */
1087
3172
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1095
if { (eval echo configure:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097
eval "ac_cv_func_$ac_func=yes"
1099
echo "configure: failed program was:" >&5
1100
cat conftest.$ac_ext >&5
1102
eval "ac_cv_func_$ac_func=no"
1107
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1108
echo "$ac_t""yes" 1>&6
1109
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1110
cat >> confdefs.h <<EOF
1111
#define $ac_tr_func 1
1115
echo "$ac_t""no" 1>&6
1116
LIBOBJ="$LIBOBJ ../common/setenv.o"
3175
char (*f) () = $ac_func;
3184
return f != $ac_func;
3189
rm -f conftest.$ac_objext conftest$ac_exeext
3190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3191
(eval $ac_link) 2>&5
3193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194
(exit $ac_status); } &&
3195
{ ac_try='test -s conftest$ac_exeext'
3196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200
(exit $ac_status); }; }; then
3201
eval "$as_ac_var=yes"
3203
echo "$as_me: failed program was:" >&5
3204
sed 's/^/| /' conftest.$ac_ext >&5
3206
eval "$as_ac_var=no"
3208
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3210
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3211
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3212
if test `eval echo '${'$as_ac_var'}'` = yes; then
3213
cat >>confdefs.h <<_ACEOF
3214
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3218
LIBOBJ="$LIBOBJ ../common/setenv.o"
1117
3219
BUILDOBJ="$BUILDOBJ setenv.o"
1122
3225
for ac_func in inet_aton
1124
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1125
echo "configure:1126: checking for $ac_func" >&5
1126
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1127
echo $ac_n "(cached) $ac_c" 1>&6
3227
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3228
echo "$as_me:$LINENO: checking for $ac_func" >&5
3229
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3230
if eval "test \"\${$as_ac_var+set}\" = set"; then
3231
echo $ECHO_N "(cached) $ECHO_C" >&6
1129
cat > conftest.$ac_ext <<EOF
1130
#line 1131 "configure"
1131
#include "confdefs.h"
3233
cat >conftest.$ac_ext <<_ACEOF
3234
#line $LINENO "configure"
3237
cat confdefs.h >>conftest.$ac_ext
3238
cat >>conftest.$ac_ext <<_ACEOF
3239
/* end confdefs.h. */
1132
3240
/* System header to define __stub macros and hopefully few prototypes,
1133
which can conflict with char $ac_func(); below. */
3241
which can conflict with char $ac_func (); below.
3242
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243
<limits.h> exists even on freestanding compilers. */
3245
# include <limits.h>
3247
# include <assert.h>
1135
3249
/* Override any gcc2 internal prototype to avoid an error. */
1136
3254
/* We use char because int might match the return type of a gcc2
1137
builtin and then its argument prototype would still apply. */
3255
builtin and then its argument prototype would still apply. */
1142
3257
/* The GNU C library defines this for functions which it implements
1143
3258
to always fail with ENOSYS. Some functions are actually named
1144
3259
something starting with __ and the normal name is an alias. */
1145
3260
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1153
if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1155
eval "ac_cv_func_$ac_func=yes"
1157
echo "configure: failed program was:" >&5
1158
cat conftest.$ac_ext >&5
1160
eval "ac_cv_func_$ac_func=no"
1165
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1166
echo "$ac_t""yes" 1>&6
1167
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1168
cat >> confdefs.h <<EOF
1169
#define $ac_tr_func 1
1173
echo "$ac_t""no" 1>&6
1174
LIBOBJ="$LIBOBJ ../common/inet_aton.o"
3263
char (*f) () = $ac_func;
3272
return f != $ac_func;
3277
rm -f conftest.$ac_objext conftest$ac_exeext
3278
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3279
(eval $ac_link) 2>&5
3281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282
(exit $ac_status); } &&
3283
{ ac_try='test -s conftest$ac_exeext'
3284
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288
(exit $ac_status); }; }; then
3289
eval "$as_ac_var=yes"
3291
echo "$as_me: failed program was:" >&5
3292
sed 's/^/| /' conftest.$ac_ext >&5
3294
eval "$as_ac_var=no"
3296
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3298
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3299
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3300
if test `eval echo '${'$as_ac_var'}'` = yes; then
3301
cat >>confdefs.h <<_ACEOF
3302
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3306
LIBOBJ="$LIBOBJ ../common/inet_aton.o"
1175
3307
BUILDOBJ="$BUILDOBJ inet_aton.o"
1180
3313
for ac_func in strerror
1182
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1183
echo "configure:1184: checking for $ac_func" >&5
1184
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1185
echo $ac_n "(cached) $ac_c" 1>&6
3315
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3316
echo "$as_me:$LINENO: checking for $ac_func" >&5
3317
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3318
if eval "test \"\${$as_ac_var+set}\" = set"; then
3319
echo $ECHO_N "(cached) $ECHO_C" >&6
1187
cat > conftest.$ac_ext <<EOF
1188
#line 1189 "configure"
1189
#include "confdefs.h"
3321
cat >conftest.$ac_ext <<_ACEOF
3322
#line $LINENO "configure"
3325
cat confdefs.h >>conftest.$ac_ext
3326
cat >>conftest.$ac_ext <<_ACEOF
3327
/* end confdefs.h. */
1190
3328
/* System header to define __stub macros and hopefully few prototypes,
1191
which can conflict with char $ac_func(); below. */
3329
which can conflict with char $ac_func (); below.
3330
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331
<limits.h> exists even on freestanding compilers. */
3333
# include <limits.h>
3335
# include <assert.h>
1193
3337
/* Override any gcc2 internal prototype to avoid an error. */
1194
3342
/* We use char because int might match the return type of a gcc2
1195
builtin and then its argument prototype would still apply. */
3343
builtin and then its argument prototype would still apply. */
1200
3345
/* The GNU C library defines this for functions which it implements
1201
3346
to always fail with ENOSYS. Some functions are actually named
1202
3347
something starting with __ and the normal name is an alias. */
1203
3348
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1211
if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1213
eval "ac_cv_func_$ac_func=yes"
1215
echo "configure: failed program was:" >&5
1216
cat conftest.$ac_ext >&5
1218
eval "ac_cv_func_$ac_func=no"
1223
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1224
echo "$ac_t""yes" 1>&6
1225
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1226
cat >> confdefs.h <<EOF
1227
#define $ac_tr_func 1
1231
echo "$ac_t""no" 1>&6
1232
LIBOBJ="$LIBOBJ ../common/strerror.o"
3351
char (*f) () = $ac_func;
3360
return f != $ac_func;
3365
rm -f conftest.$ac_objext conftest$ac_exeext
3366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3367
(eval $ac_link) 2>&5
3369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370
(exit $ac_status); } &&
3371
{ ac_try='test -s conftest$ac_exeext'
3372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376
(exit $ac_status); }; }; then
3377
eval "$as_ac_var=yes"
3379
echo "$as_me: failed program was:" >&5
3380
sed 's/^/| /' conftest.$ac_ext >&5
3382
eval "$as_ac_var=no"
3384
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3386
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3387
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3388
if test `eval echo '${'$as_ac_var'}'` = yes; then
3389
cat >>confdefs.h <<_ACEOF
3390
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3394
LIBOBJ="$LIBOBJ ../common/strerror.o"
1233
3395
BUILDOBJ="$BUILDOBJ strerror.o"
1238
3401
for ac_func in strlcpy
1240
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1241
echo "configure:1242: checking for $ac_func" >&5
1242
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1243
echo $ac_n "(cached) $ac_c" 1>&6
3403
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3404
echo "$as_me:$LINENO: checking for $ac_func" >&5
3405
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3406
if eval "test \"\${$as_ac_var+set}\" = set"; then
3407
echo $ECHO_N "(cached) $ECHO_C" >&6
1245
cat > conftest.$ac_ext <<EOF
1246
#line 1247 "configure"
1247
#include "confdefs.h"
3409
cat >conftest.$ac_ext <<_ACEOF
3410
#line $LINENO "configure"
3413
cat confdefs.h >>conftest.$ac_ext
3414
cat >>conftest.$ac_ext <<_ACEOF
3415
/* end confdefs.h. */
1248
3416
/* System header to define __stub macros and hopefully few prototypes,
1249
which can conflict with char $ac_func(); below. */
3417
which can conflict with char $ac_func (); below.
3418
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3419
<limits.h> exists even on freestanding compilers. */
3421
# include <limits.h>
3423
# include <assert.h>
1251
3425
/* Override any gcc2 internal prototype to avoid an error. */
1252
3430
/* We use char because int might match the return type of a gcc2
1253
builtin and then its argument prototype would still apply. */
3431
builtin and then its argument prototype would still apply. */
1258
3433
/* The GNU C library defines this for functions which it implements
1259
3434
to always fail with ENOSYS. Some functions are actually named
1260
3435
something starting with __ and the normal name is an alias. */
1261
3436
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1269
if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1271
eval "ac_cv_func_$ac_func=yes"
1273
echo "configure: failed program was:" >&5
1274
cat conftest.$ac_ext >&5
1276
eval "ac_cv_func_$ac_func=no"
1281
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1282
echo "$ac_t""yes" 1>&6
1283
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1284
cat >> confdefs.h <<EOF
1285
#define $ac_tr_func 1
1289
echo "$ac_t""no" 1>&6
1290
LIBOBJ="$LIBOBJ ../common/strlcpy.o"
3439
char (*f) () = $ac_func;
3448
return f != $ac_func;
3453
rm -f conftest.$ac_objext conftest$ac_exeext
3454
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3455
(eval $ac_link) 2>&5
3457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
(exit $ac_status); } &&
3459
{ ac_try='test -s conftest$ac_exeext'
3460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464
(exit $ac_status); }; }; then
3465
eval "$as_ac_var=yes"
3467
echo "$as_me: failed program was:" >&5
3468
sed 's/^/| /' conftest.$ac_ext >&5
3470
eval "$as_ac_var=no"
3472
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3474
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3475
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3476
if test `eval echo '${'$as_ac_var'}'` = yes; then
3477
cat >>confdefs.h <<_ACEOF
3478
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3482
STRLCPY="../common/strlcpy.o"
1291
3483
BUILDOBJ="$BUILDOBJ strlcpy.o"
1296
for ac_func in strlcat
1298
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1299
echo "configure:1300: checking for $ac_func" >&5
1300
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1301
echo $ac_n "(cached) $ac_c" 1>&6
1303
cat > conftest.$ac_ext <<EOF
1304
#line 1305 "configure"
1305
#include "confdefs.h"
1306
/* System header to define __stub macros and hopefully few prototypes,
1307
which can conflict with char $ac_func(); below. */
1309
/* Override any gcc2 internal prototype to avoid an error. */
1310
/* We use char because int might match the return type of a gcc2
1311
builtin and then its argument prototype would still apply. */
1316
/* The GNU C library defines this for functions which it implements
1317
to always fail with ENOSYS. Some functions are actually named
1318
something starting with __ and the normal name is an alias. */
1319
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1327
if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1329
eval "ac_cv_func_$ac_func=yes"
1331
echo "configure: failed program was:" >&5
1332
cat conftest.$ac_ext >&5
1334
eval "ac_cv_func_$ac_func=no"
1339
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1340
echo "$ac_t""yes" 1>&6
1341
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1342
cat >> confdefs.h <<EOF
1343
#define $ac_tr_func 1
1347
echo "$ac_t""no" 1>&6
1348
LIBOBJ="$LIBOBJ ../common/strlcat.o"
1349
BUILDOBJ="$BUILDOBJ strlcat.o"
1354
3489
for ac_func in atexit
1356
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1357
echo "configure:1358: checking for $ac_func" >&5
1358
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1359
echo $ac_n "(cached) $ac_c" 1>&6
3491
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3492
echo "$as_me:$LINENO: checking for $ac_func" >&5
3493
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3494
if eval "test \"\${$as_ac_var+set}\" = set"; then
3495
echo $ECHO_N "(cached) $ECHO_C" >&6
1361
cat > conftest.$ac_ext <<EOF
1362
#line 1363 "configure"
1363
#include "confdefs.h"
3497
cat >conftest.$ac_ext <<_ACEOF
3498
#line $LINENO "configure"
3501
cat confdefs.h >>conftest.$ac_ext
3502
cat >>conftest.$ac_ext <<_ACEOF
3503
/* end confdefs.h. */
1364
3504
/* System header to define __stub macros and hopefully few prototypes,
1365
which can conflict with char $ac_func(); below. */
3505
which can conflict with char $ac_func (); below.
3506
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507
<limits.h> exists even on freestanding compilers. */
3509
# include <limits.h>
3511
# include <assert.h>
1367
3513
/* Override any gcc2 internal prototype to avoid an error. */
1368
3518
/* We use char because int might match the return type of a gcc2
1369
builtin and then its argument prototype would still apply. */
3519
builtin and then its argument prototype would still apply. */
1374
3521
/* The GNU C library defines this for functions which it implements
1375
3522
to always fail with ENOSYS. Some functions are actually named
1376
3523
something starting with __ and the normal name is an alias. */
1377
3524
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1385
if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1387
eval "ac_cv_func_$ac_func=yes"
1389
echo "configure: failed program was:" >&5
1390
cat conftest.$ac_ext >&5
1392
eval "ac_cv_func_$ac_func=no"
1397
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1398
echo "$ac_t""yes" 1>&6
1399
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1400
cat >> confdefs.h <<EOF
1401
#define $ac_tr_func 1
1405
echo "$ac_t""no" 1>&6
1406
LIBOBJ="$LIBOBJ ../common/atexit.o"
3527
char (*f) () = $ac_func;
3536
return f != $ac_func;
3541
rm -f conftest.$ac_objext conftest$ac_exeext
3542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543
(eval $ac_link) 2>&5
3545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546
(exit $ac_status); } &&
3547
{ ac_try='test -s conftest$ac_exeext'
3548
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552
(exit $ac_status); }; }; then
3553
eval "$as_ac_var=yes"
3555
echo "$as_me: failed program was:" >&5
3556
sed 's/^/| /' conftest.$ac_ext >&5
3558
eval "$as_ac_var=no"
3560
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3562
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3563
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3564
if test `eval echo '${'$as_ac_var'}'` = yes; then
3565
cat >>confdefs.h <<_ACEOF
3566
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3571
LIBOBJ="$LIBOBJ ../common/atexit.o"
1407
3572
BUILDOBJ="$BUILDOBJ atexit.o"
1408
for ac_func in on_exit
3574
for ac_func in on_exit
1410
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1411
echo "configure:1412: checking for $ac_func" >&5
1412
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1413
echo $ac_n "(cached) $ac_c" 1>&6
3576
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3577
echo "$as_me:$LINENO: checking for $ac_func" >&5
3578
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3579
if eval "test \"\${$as_ac_var+set}\" = set"; then
3580
echo $ECHO_N "(cached) $ECHO_C" >&6
1415
cat > conftest.$ac_ext <<EOF
1416
#line 1417 "configure"
1417
#include "confdefs.h"
3582
cat >conftest.$ac_ext <<_ACEOF
3583
#line $LINENO "configure"
3586
cat confdefs.h >>conftest.$ac_ext
3587
cat >>conftest.$ac_ext <<_ACEOF
3588
/* end confdefs.h. */
1418
3589
/* System header to define __stub macros and hopefully few prototypes,
1419
which can conflict with char $ac_func(); below. */
3590
which can conflict with char $ac_func (); below.
3591
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3592
<limits.h> exists even on freestanding compilers. */
3594
# include <limits.h>
3596
# include <assert.h>
1421
3598
/* Override any gcc2 internal prototype to avoid an error. */
1422
3603
/* We use char because int might match the return type of a gcc2
1423
builtin and then its argument prototype would still apply. */
3604
builtin and then its argument prototype would still apply. */
1428
3606
/* The GNU C library defines this for functions which it implements
1429
3607
to always fail with ENOSYS. Some functions are actually named
1430
3608
something starting with __ and the normal name is an alias. */
1431
3609
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1439
if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1441
eval "ac_cv_func_$ac_func=yes"
1443
echo "configure: failed program was:" >&5
1444
cat conftest.$ac_ext >&5
1446
eval "ac_cv_func_$ac_func=no"
1451
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1452
echo "$ac_t""yes" 1>&6
1453
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1454
cat >> confdefs.h <<EOF
1455
#define $ac_tr_func 1
1459
echo "$ac_t""no" 1>&6
3612
char (*f) () = $ac_func;
3621
return f != $ac_func;
3626
rm -f conftest.$ac_objext conftest$ac_exeext
3627
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628
(eval $ac_link) 2>&5
3630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631
(exit $ac_status); } &&
3632
{ ac_try='test -s conftest$ac_exeext'
3633
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637
(exit $ac_status); }; }; then
3638
eval "$as_ac_var=yes"
3640
echo "$as_me: failed program was:" >&5
3641
sed 's/^/| /' conftest.$ac_ext >&5
3643
eval "$as_ac_var=no"
3645
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3647
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3648
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3649
if test `eval echo '${'$as_ac_var'}'` = yes; then
3650
cat >>confdefs.h <<_ACEOF
3651
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3662
if test -z "$AR" ; then
3663
MISC_UPSCLI_OBJ="upsclient.o ../common/parseconf.o"
3664
MISC_UPSCLI_LIBOBJ="upsclient.o parseconf.o"
3666
MISC_UPSCLI_OBJ="libupsclient.a"
3667
MISC_UPSCLI_LIBOBJ="-lupsclient"
1469
# Only use -Wall when compiling with gcc
3671
# Only use -Wall when compiling with gcc
1471
3673
if ( test "x$GCC" = "xyes" )
1473
3675
CFLAGS="$CFLAGS -Wall"
3678
# Endianness handling, using default behavior
3679
# eg defines WORDS_BIGENDIAN if BigEnd,
3680
# nothing if LittleEnd, abort otherwise
3681
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3682
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3683
if test "${ac_cv_c_bigendian+set}" = set; then
3684
echo $ECHO_N "(cached) $ECHO_C" >&6
3686
# See if sys/param.h defines the BYTE_ORDER macro.
3687
cat >conftest.$ac_ext <<_ACEOF
3688
#line $LINENO "configure"
3691
cat confdefs.h >>conftest.$ac_ext
3692
cat >>conftest.$ac_ext <<_ACEOF
3693
/* end confdefs.h. */
3694
#include <sys/types.h>
3695
#include <sys/param.h>
3700
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3708
rm -f conftest.$ac_objext
3709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710
(eval $ac_compile) 2>&5
3712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713
(exit $ac_status); } &&
3714
{ ac_try='test -s conftest.$ac_objext'
3715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719
(exit $ac_status); }; }; then
3720
# It does; now see whether it defined to BIG_ENDIAN or not.
3721
cat >conftest.$ac_ext <<_ACEOF
3722
#line $LINENO "configure"
3725
cat confdefs.h >>conftest.$ac_ext
3726
cat >>conftest.$ac_ext <<_ACEOF
3727
/* end confdefs.h. */
3728
#include <sys/types.h>
3729
#include <sys/param.h>
3734
#if BYTE_ORDER != BIG_ENDIAN
3742
rm -f conftest.$ac_objext
3743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744
(eval $ac_compile) 2>&5
3746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
(exit $ac_status); } &&
3748
{ ac_try='test -s conftest.$ac_objext'
3749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753
(exit $ac_status); }; }; then
3754
ac_cv_c_bigendian=yes
3756
echo "$as_me: failed program was:" >&5
3757
sed 's/^/| /' conftest.$ac_ext >&5
3759
ac_cv_c_bigendian=no
3761
rm -f conftest.$ac_objext conftest.$ac_ext
3763
echo "$as_me: failed program was:" >&5
3764
sed 's/^/| /' conftest.$ac_ext >&5
3766
# It does not; compile a test program.
3767
if test "$cross_compiling" = yes; then
3768
# try to guess the endianness by grepping values into an object file
3769
ac_cv_c_bigendian=unknown
3770
cat >conftest.$ac_ext <<_ACEOF
3771
#line $LINENO "configure"
3774
cat confdefs.h >>conftest.$ac_ext
3775
cat >>conftest.$ac_ext <<_ACEOF
3776
/* end confdefs.h. */
3777
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3778
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3779
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3780
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3781
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3782
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3786
_ascii (); _ebcdic ();
3791
rm -f conftest.$ac_objext
3792
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793
(eval $ac_compile) 2>&5
3795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796
(exit $ac_status); } &&
3797
{ ac_try='test -s conftest.$ac_objext'
3798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802
(exit $ac_status); }; }; then
3803
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3804
ac_cv_c_bigendian=yes
3806
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3807
if test "$ac_cv_c_bigendian" = unknown; then
3808
ac_cv_c_bigendian=no
3810
# finding both strings is unlikely to happen, but who knows?
3811
ac_cv_c_bigendian=unknown
3815
echo "$as_me: failed program was:" >&5
3816
sed 's/^/| /' conftest.$ac_ext >&5
3819
rm -f conftest.$ac_objext conftest.$ac_ext
3821
cat >conftest.$ac_ext <<_ACEOF
3822
#line $LINENO "configure"
3825
cat confdefs.h >>conftest.$ac_ext
3826
cat >>conftest.$ac_ext <<_ACEOF
3827
/* end confdefs.h. */
3831
/* Are we little or big endian? From Harbison&Steele. */
3835
char c[sizeof (long)];
3838
exit (u.c[sizeof (long) - 1] == 1);
3841
rm -f conftest$ac_exeext
3842
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3843
(eval $ac_link) 2>&5
3845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
(exit $ac_status); }; }; then
3852
ac_cv_c_bigendian=no
3854
echo "$as_me: program exited with status $ac_status" >&5
3855
echo "$as_me: failed program was:" >&5
3856
sed 's/^/| /' conftest.$ac_ext >&5
3859
ac_cv_c_bigendian=yes
3861
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3864
rm -f conftest.$ac_objext conftest.$ac_ext
3866
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3867
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3868
case $ac_cv_c_bigendian in
3871
cat >>confdefs.h <<\_ACEOF
3872
#define WORDS_BIGENDIAN 1
3878
{ { echo "$as_me:$LINENO: error: unknown endianness
3879
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3880
echo "$as_me: error: unknown endianness
3881
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3882
{ (exit 1); exit 1; }; } ;;
1477
3886
# optind handling:
1478
3887
# need to check if unistd.h is enough, else try getopt.h, else need decls
1479
echo $ac_n "checking for getopt declarations""... $ac_c" 1>&6
1480
echo "configure:1481: checking for getopt declarations" >&5
1481
cat > conftest.$ac_ext <<EOF
1482
#line 1483 "configure"
1483
#include "confdefs.h"
3888
echo "$as_me:$LINENO: checking for getopt declarations" >&5
3889
echo $ECHO_N "checking for getopt declarations... $ECHO_C" >&6
3890
cat >conftest.$ac_ext <<_ACEOF
3891
#line $LINENO "configure"
3894
cat confdefs.h >>conftest.$ac_ext
3895
cat >>conftest.$ac_ext <<_ACEOF
3896
/* end confdefs.h. */
1484
3897
#include <unistd.h>
1486
3901
int i = optind;
1489
if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3906
rm -f conftest.$ac_objext
3907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908
(eval $ac_compile) 2>&5
3910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911
(exit $ac_status); } &&
3912
{ ac_try='test -s conftest.$ac_objext'
3913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917
(exit $ac_status); }; }; then
1491
3918
nut_getopt_decl_in_unistd=yes
1493
echo "configure: failed program was:" >&5
1494
cat conftest.$ac_ext >&5
1496
nut_getopt_decl_in_unistd=no
3920
echo "$as_me: failed program was:" >&5
3921
sed 's/^/| /' conftest.$ac_ext >&5
3923
nut_getopt_decl_in_unistd=no
3925
rm -f conftest.$ac_objext conftest.$ac_ext
1499
3926
if test $nut_getopt_decl_in_unistd = yes; then
1500
echo "$ac_t""in unistd.h" 1>&6
1502
ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1503
echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1504
echo "configure:1505: checking for getopt.h" >&5
1505
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1506
echo $ac_n "(cached) $ac_c" 1>&6
1508
cat > conftest.$ac_ext <<EOF
1509
#line 1510 "configure"
1510
#include "confdefs.h"
1513
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1514
{ (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1515
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1516
if test -z "$ac_err"; then
1518
eval "ac_cv_header_$ac_safe=yes"
1521
echo "configure: failed program was:" >&5
1522
cat conftest.$ac_ext >&5
1524
eval "ac_cv_header_$ac_safe=no"
1528
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1529
echo "$ac_t""yes" 1>&6
3927
echo "$as_me:$LINENO: result: in unistd.h" >&5
3928
echo "${ECHO_T}in unistd.h" >&6
3931
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3932
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3933
if test "${ac_cv_header_stdc+set}" = set; then
3934
echo $ECHO_N "(cached) $ECHO_C" >&6
3936
cat >conftest.$ac_ext <<_ACEOF
3937
#line $LINENO "configure"
3940
cat confdefs.h >>conftest.$ac_ext
3941
cat >>conftest.$ac_ext <<_ACEOF
3942
/* end confdefs.h. */
3956
rm -f conftest.$ac_objext
3957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958
(eval $ac_compile) 2>&5
3960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961
(exit $ac_status); } &&
3962
{ ac_try='test -s conftest.$ac_objext'
3963
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967
(exit $ac_status); }; }; then
3968
ac_cv_header_stdc=yes
3970
echo "$as_me: failed program was:" >&5
3971
sed 's/^/| /' conftest.$ac_ext >&5
3973
ac_cv_header_stdc=no
3975
rm -f conftest.$ac_objext conftest.$ac_ext
3977
if test $ac_cv_header_stdc = yes; then
3978
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3979
cat >conftest.$ac_ext <<_ACEOF
3980
#line $LINENO "configure"
3983
cat confdefs.h >>conftest.$ac_ext
3984
cat >>conftest.$ac_ext <<_ACEOF
3985
/* end confdefs.h. */
3989
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990
$EGREP "memchr" >/dev/null 2>&1; then
3993
ac_cv_header_stdc=no
3999
if test $ac_cv_header_stdc = yes; then
4000
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4001
cat >conftest.$ac_ext <<_ACEOF
4002
#line $LINENO "configure"
4005
cat confdefs.h >>conftest.$ac_ext
4006
cat >>conftest.$ac_ext <<_ACEOF
4007
/* end confdefs.h. */
4011
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4012
$EGREP "free" >/dev/null 2>&1; then
4015
ac_cv_header_stdc=no
4021
if test $ac_cv_header_stdc = yes; then
4022
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4023
if test "$cross_compiling" = yes; then
4026
cat >conftest.$ac_ext <<_ACEOF
4027
#line $LINENO "configure"
4030
cat confdefs.h >>conftest.$ac_ext
4031
cat >>conftest.$ac_ext <<_ACEOF
4032
/* end confdefs.h. */
4034
#if ((' ' & 0x0FF) == 0x020)
4035
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4036
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038
# define ISLOWER(c) \
4039
(('a' <= (c) && (c) <= 'i') \
4040
|| ('j' <= (c) && (c) <= 'r') \
4041
|| ('s' <= (c) && (c) <= 'z'))
4042
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4045
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4050
for (i = 0; i < 256; i++)
4051
if (XOR (islower (i), ISLOWER (i))
4052
|| toupper (i) != TOUPPER (i))
4057
rm -f conftest$ac_exeext
4058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4059
(eval $ac_link) 2>&5
4061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
(exit $ac_status); }; }; then
4070
echo "$as_me: program exited with status $ac_status" >&5
4071
echo "$as_me: failed program was:" >&5
4072
sed 's/^/| /' conftest.$ac_ext >&5
4075
ac_cv_header_stdc=no
4077
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4081
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4082
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4083
if test $ac_cv_header_stdc = yes; then
4085
cat >>confdefs.h <<\_ACEOF
4086
#define STDC_HEADERS 1
4091
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4101
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4102
inttypes.h stdint.h unistd.h
4104
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4105
echo "$as_me:$LINENO: checking for $ac_header" >&5
4106
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4107
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4108
echo $ECHO_N "(cached) $ECHO_C" >&6
4110
cat >conftest.$ac_ext <<_ACEOF
4111
#line $LINENO "configure"
4114
cat confdefs.h >>conftest.$ac_ext
4115
cat >>conftest.$ac_ext <<_ACEOF
4116
/* end confdefs.h. */
4117
$ac_includes_default
4119
#include <$ac_header>
4121
rm -f conftest.$ac_objext
4122
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123
(eval $ac_compile) 2>&5
4125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
(exit $ac_status); } &&
4127
{ ac_try='test -s conftest.$ac_objext'
4128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132
(exit $ac_status); }; }; then
4133
eval "$as_ac_Header=yes"
4135
echo "$as_me: failed program was:" >&5
4136
sed 's/^/| /' conftest.$ac_ext >&5
4138
eval "$as_ac_Header=no"
4140
rm -f conftest.$ac_objext conftest.$ac_ext
4142
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4143
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4144
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4145
cat >>confdefs.h <<_ACEOF
4146
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4154
if test "${ac_cv_header_getopt_h+set}" = set; then
4155
echo "$as_me:$LINENO: checking for getopt.h" >&5
4156
echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6
4157
if test "${ac_cv_header_getopt_h+set}" = set; then
4158
echo $ECHO_N "(cached) $ECHO_C" >&6
4160
echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
4161
echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
4163
# Is the header compilable?
4164
echo "$as_me:$LINENO: checking getopt.h usability" >&5
4165
echo $ECHO_N "checking getopt.h usability... $ECHO_C" >&6
4166
cat >conftest.$ac_ext <<_ACEOF
4167
#line $LINENO "configure"
4170
cat confdefs.h >>conftest.$ac_ext
4171
cat >>conftest.$ac_ext <<_ACEOF
4172
/* end confdefs.h. */
4173
$ac_includes_default
4176
rm -f conftest.$ac_objext
4177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178
(eval $ac_compile) 2>&5
4180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181
(exit $ac_status); } &&
4182
{ ac_try='test -s conftest.$ac_objext'
4183
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187
(exit $ac_status); }; }; then
4188
ac_header_compiler=yes
4190
echo "$as_me: failed program was:" >&5
4191
sed 's/^/| /' conftest.$ac_ext >&5
4193
ac_header_compiler=no
4195
rm -f conftest.$ac_objext conftest.$ac_ext
4196
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4197
echo "${ECHO_T}$ac_header_compiler" >&6
4199
# Is the header present?
4200
echo "$as_me:$LINENO: checking getopt.h presence" >&5
4201
echo $ECHO_N "checking getopt.h presence... $ECHO_C" >&6
4202
cat >conftest.$ac_ext <<_ACEOF
4203
#line $LINENO "configure"
4206
cat confdefs.h >>conftest.$ac_ext
4207
cat >>conftest.$ac_ext <<_ACEOF
4208
/* end confdefs.h. */
4211
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214
grep -v '^ *+' conftest.er1 >conftest.err
4216
cat conftest.err >&5
4217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218
(exit $ac_status); } >/dev/null; then
4219
if test -s conftest.err; then
4220
ac_cpp_err=$ac_c_preproc_warn_flag
4227
if test -z "$ac_cpp_err"; then
4228
ac_header_preproc=yes
4230
echo "$as_me: failed program was:" >&5
4231
sed 's/^/| /' conftest.$ac_ext >&5
4233
ac_header_preproc=no
4235
rm -f conftest.err conftest.$ac_ext
4236
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4237
echo "${ECHO_T}$ac_header_preproc" >&6
4239
# So? What about this header?
4240
case $ac_header_compiler:$ac_header_preproc in
4242
{ echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5
4243
echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4244
{ echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
4245
echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
4248
## ------------------------------------ ##
4249
## Report this to bug-autoconf@gnu.org. ##
4250
## ------------------------------------ ##
4253
sed "s/^/$as_me: WARNING: /" >&2
4256
{ echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5
4257
echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;}
4258
{ echo "$as_me:$LINENO: WARNING: getopt.h: check for missing prerequisite headers?" >&5
4259
echo "$as_me: WARNING: getopt.h: check for missing prerequisite headers?" >&2;}
4260
{ echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
4261
echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
4264
## ------------------------------------ ##
4265
## Report this to bug-autoconf@gnu.org. ##
4266
## ------------------------------------ ##
4269
sed "s/^/$as_me: WARNING: /" >&2
4272
echo "$as_me:$LINENO: checking for getopt.h" >&5
4273
echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6
4274
if test "${ac_cv_header_getopt_h+set}" = set; then
4275
echo $ECHO_N "(cached) $ECHO_C" >&6
4277
ac_cv_header_getopt_h=$ac_header_preproc
4279
echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
4280
echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
4283
if test $ac_cv_header_getopt_h = yes; then
1530
4284
have_getopt_h=yes
1532
echo "$ac_t""no" 1>&6
1536
4290
if test have_getopt_h = yes; then
1537
cat >> confdefs.h <<\EOF
4292
cat >>confdefs.h <<\_ACEOF
1538
4293
#define NEED_GETOPT_H 1
1541
echo "$ac_t""using getopt.h" 1>&6
4296
echo "$as_me:$LINENO: result: using getopt.h" >&5
4297
echo "${ECHO_T}using getopt.h" >&6
1543
cat >> confdefs.h <<\EOF
4300
cat >>confdefs.h <<\_ACEOF
1544
4301
#define NEED_GETOPT_DECLS 1
1547
echo "$ac_t""using explicit getopt declarations" 1>&6
4304
echo "$as_me:$LINENO: result: using explicit getopt declarations" >&5
4305
echo "${ECHO_T}using explicit getopt declarations" >&6
1552
4310
# FreeBSD serial locking compatibility - look for uu_lock in libutil.h
1554
echo $ac_n "checking whether to use uu_lock""... $ac_c" 1>&6
1555
echo "configure:1556: checking whether to use uu_lock" >&5
1556
cat > conftest.$ac_ext <<EOF
1557
#line 1558 "configure"
1558
#include "confdefs.h"
4312
echo "$as_me:$LINENO: checking whether to use uu_lock" >&5
4313
echo $ECHO_N "checking whether to use uu_lock... $ECHO_C" >&6
4314
cat >conftest.$ac_ext <<_ACEOF
4315
#line $LINENO "configure"
4318
cat confdefs.h >>conftest.$ac_ext
4319
cat >>conftest.$ac_ext <<_ACEOF
4320
/* end confdefs.h. */
1559
4321
#include <libutil.h>
1561
4324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1562
egrep "uu_lock" >/dev/null 2>&1; then
1565
echo "$ac_t""yes" 1>&6
4325
$EGREP "uu_lock" >/dev/null 2>&1; then
4327
echo "$as_me:$LINENO: result: yes" >&5
4328
echo "${ECHO_T}yes" >&6
1567
cat >> confdefs.h <<\EOF
4331
cat >>confdefs.h <<\_ACEOF
1568
4332
#define HAVE_UU_LOCK 1
1572
4336
# put in some better defaults for FreeBSD
1573
4337
RUN_AS_USER="uucp"
1574
RUN_AS_GROUP="dialer"
1579
echo "$ac_t""no" 1>&6
4341
echo "$as_me:$LINENO: result: no" >&5
4342
echo "${ECHO_T}no" >&6
1583
4346
rm -f conftest*
1586
4349
# Solaris compatibility - check for -lnsl and -lsocket if connect() is gone
1588
4352
for ac_func in connect
1590
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1591
echo "configure:1592: checking for $ac_func" >&5
1592
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1593
echo $ac_n "(cached) $ac_c" 1>&6
4354
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4355
echo "$as_me:$LINENO: checking for $ac_func" >&5
4356
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4357
if eval "test \"\${$as_ac_var+set}\" = set"; then
4358
echo $ECHO_N "(cached) $ECHO_C" >&6
1595
cat > conftest.$ac_ext <<EOF
1596
#line 1597 "configure"
1597
#include "confdefs.h"
4360
cat >conftest.$ac_ext <<_ACEOF
4361
#line $LINENO "configure"
4364
cat confdefs.h >>conftest.$ac_ext
4365
cat >>conftest.$ac_ext <<_ACEOF
4366
/* end confdefs.h. */
1598
4367
/* System header to define __stub macros and hopefully few prototypes,
1599
which can conflict with char $ac_func(); below. */
4368
which can conflict with char $ac_func (); below.
4369
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370
<limits.h> exists even on freestanding compilers. */
4372
# include <limits.h>
4374
# include <assert.h>
1601
4376
/* Override any gcc2 internal prototype to avoid an error. */
1602
4381
/* We use char because int might match the return type of a gcc2
1603
builtin and then its argument prototype would still apply. */
4382
builtin and then its argument prototype would still apply. */
1608
4384
/* The GNU C library defines this for functions which it implements
1609
4385
to always fail with ENOSYS. Some functions are actually named
1610
4386
something starting with __ and the normal name is an alias. */
1611
4387
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1619
if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1621
eval "ac_cv_func_$ac_func=yes"
1623
echo "configure: failed program was:" >&5
1624
cat conftest.$ac_ext >&5
1626
eval "ac_cv_func_$ac_func=no"
1631
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1632
echo "$ac_t""yes" 1>&6
1633
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1634
cat >> confdefs.h <<EOF
1635
#define $ac_tr_func 1
1639
echo "$ac_t""no" 1>&6
4390
char (*f) () = $ac_func;
4399
return f != $ac_func;
4404
rm -f conftest.$ac_objext conftest$ac_exeext
4405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4406
(eval $ac_link) 2>&5
4408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409
(exit $ac_status); } &&
4410
{ ac_try='test -s conftest$ac_exeext'
4411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415
(exit $ac_status); }; }; then
4416
eval "$as_ac_var=yes"
4418
echo "$as_me: failed program was:" >&5
4419
sed 's/^/| /' conftest.$ac_ext >&5
4421
eval "$as_ac_var=no"
4423
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4425
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4426
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4427
if test `eval echo '${'$as_ac_var'}'` = yes; then
4428
cat >>confdefs.h <<_ACEOF
4429
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1644
4436
if ( test x"$ac_cv_func_connect" = x"no" ); then
1645
echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
1646
echo "configure:1647: checking for printf in -lnsl" >&5
1647
ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
1648
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1649
echo $ac_n "(cached) $ac_c" 1>&6
4437
echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
4438
echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
4439
if test "${ac_cv_lib_nsl_printf+set}" = set; then
4440
echo $ECHO_N "(cached) $ECHO_C" >&6
1651
ac_save_LIBS="$LIBS"
4442
ac_check_lib_save_LIBS=$LIBS
1652
4443
LIBS="-lnsl $LIBS"
1653
cat > conftest.$ac_ext <<EOF
1654
#line 1655 "configure"
1655
#include "confdefs.h"
4444
cat >conftest.$ac_ext <<_ACEOF
4445
#line $LINENO "configure"
4448
cat confdefs.h >>conftest.$ac_ext
4449
cat >>conftest.$ac_ext <<_ACEOF
4450
/* end confdefs.h. */
1656
4452
/* Override any gcc2 internal prototype to avoid an error. */
1657
4456
/* We use char because int might match the return type of a gcc2
1658
builtin and then its argument prototype would still apply. */
1665
if { (eval echo configure:1666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1667
eval "ac_cv_lib_$ac_lib_var=yes"
4457
builtin and then its argument prototype would still apply. */
4467
rm -f conftest.$ac_objext conftest$ac_exeext
4468
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469
(eval $ac_link) 2>&5
4471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472
(exit $ac_status); } &&
4473
{ ac_try='test -s conftest$ac_exeext'
4474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478
(exit $ac_status); }; }; then
4479
ac_cv_lib_nsl_printf=yes
1669
echo "configure: failed program was:" >&5
1670
cat conftest.$ac_ext >&5
1672
eval "ac_cv_lib_$ac_lib_var=no"
1675
LIBS="$ac_save_LIBS"
1678
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1679
echo "$ac_t""yes" 1>&6
4481
echo "$as_me: failed program was:" >&5
4482
sed 's/^/| /' conftest.$ac_ext >&5
4484
ac_cv_lib_nsl_printf=no
4486
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4487
LIBS=$ac_check_lib_save_LIBS
4489
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
4490
echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
4491
if test $ac_cv_lib_nsl_printf = yes; then
1681
4493
NETLIBS="-lnsl"
1684
echo "$ac_t""no" 1>&6
1688
echo $ac_n "checking for printf in -lsocket""... $ac_c" 1>&6
1689
echo "configure:1690: checking for printf in -lsocket" >&5
1690
ac_lib_var=`echo socket'_'printf | sed 'y%./+-%__p_%'`
1691
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1692
echo $ac_n "(cached) $ac_c" 1>&6
4498
echo "$as_me:$LINENO: checking for printf in -lsocket" >&5
4499
echo $ECHO_N "checking for printf in -lsocket... $ECHO_C" >&6
4500
if test "${ac_cv_lib_socket_printf+set}" = set; then
4501
echo $ECHO_N "(cached) $ECHO_C" >&6
1694
ac_save_LIBS="$LIBS"
4503
ac_check_lib_save_LIBS=$LIBS
1695
4504
LIBS="-lsocket $LIBS"
1696
cat > conftest.$ac_ext <<EOF
1697
#line 1698 "configure"
1698
#include "confdefs.h"
4505
cat >conftest.$ac_ext <<_ACEOF
4506
#line $LINENO "configure"
4509
cat confdefs.h >>conftest.$ac_ext
4510
cat >>conftest.$ac_ext <<_ACEOF
4511
/* end confdefs.h. */
1699
4513
/* Override any gcc2 internal prototype to avoid an error. */
1700
4517
/* We use char because int might match the return type of a gcc2
1701
builtin and then its argument prototype would still apply. */
1708
if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710
eval "ac_cv_lib_$ac_lib_var=yes"
4518
builtin and then its argument prototype would still apply. */
4528
rm -f conftest.$ac_objext conftest$ac_exeext
4529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530
(eval $ac_link) 2>&5
4532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533
(exit $ac_status); } &&
4534
{ ac_try='test -s conftest$ac_exeext'
4535
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539
(exit $ac_status); }; }; then
4540
ac_cv_lib_socket_printf=yes
1712
echo "configure: failed program was:" >&5
1713
cat conftest.$ac_ext >&5
1715
eval "ac_cv_lib_$ac_lib_var=no"
1718
LIBS="$ac_save_LIBS"
1721
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1722
echo "$ac_t""yes" 1>&6
4542
echo "$as_me: failed program was:" >&5
4543
sed 's/^/| /' conftest.$ac_ext >&5
4545
ac_cv_lib_socket_printf=no
4547
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4548
LIBS=$ac_check_lib_save_LIBS
4550
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_printf" >&5
4551
echo "${ECHO_T}$ac_cv_lib_socket_printf" >&6
4552
if test $ac_cv_lib_socket_printf = yes; then
1724
4554
NETLIBS="$NETLIBS -lsocket"
1727
echo "$ac_t""no" 1>&6
1732
echo $ac_n "checking for TT_New_Glyph in -lttf""... $ac_c" 1>&6
1733
echo "configure:1734: checking for TT_New_Glyph in -lttf" >&5
1734
ac_lib_var=`echo ttf'_'TT_New_Glyph | sed 'y%./+-%__p_%'`
1735
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1736
echo $ac_n "(cached) $ac_c" 1>&6
1738
ac_save_LIBS="$LIBS"
1740
cat > conftest.$ac_ext <<EOF
1741
#line 1742 "configure"
1742
#include "confdefs.h"
1743
/* Override any gcc2 internal prototype to avoid an error. */
1744
/* We use char because int might match the return type of a gcc2
1745
builtin and then its argument prototype would still apply. */
1746
char TT_New_Glyph();
1752
if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1754
eval "ac_cv_lib_$ac_lib_var=yes"
1756
echo "configure: failed program was:" >&5
1757
cat conftest.$ac_ext >&5
1759
eval "ac_cv_lib_$ac_lib_var=no"
1762
LIBS="$ac_save_LIBS"
1765
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1766
echo "$ac_t""yes" 1>&6
1769
echo "$ac_t""no" 1>&6
1774
echo $ac_n "checking for XBell in -lX11""... $ac_c" 1>&6
1775
echo "configure:1776: checking for XBell in -lX11" >&5
1776
ac_lib_var=`echo X11'_'XBell | sed 'y%./+-%__p_%'`
1777
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1778
echo $ac_n "(cached) $ac_c" 1>&6
1780
ac_save_LIBS="$LIBS"
1782
cat > conftest.$ac_ext <<EOF
1783
#line 1784 "configure"
1784
#include "confdefs.h"
1785
/* Override any gcc2 internal prototype to avoid an error. */
1786
/* We use char because int might match the return type of a gcc2
1787
builtin and then its argument prototype would still apply. */
1794
if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1796
eval "ac_cv_lib_$ac_lib_var=yes"
1798
echo "configure: failed program was:" >&5
1799
cat conftest.$ac_ext >&5
1801
eval "ac_cv_lib_$ac_lib_var=no"
1804
LIBS="$ac_save_LIBS"
1807
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1808
echo "$ac_t""yes" 1>&6
1811
echo "$ac_t""no" 1>&6
1813
echo "Retrying with -L /usr/X11R6/lib"
1814
unset ac_cv_lib_X11_XBell
1815
echo $ac_n "checking for XBell in -lX11""... $ac_c" 1>&6
1816
echo "configure:1817: checking for XBell in -lX11" >&5
1817
ac_lib_var=`echo X11'_'XBell | sed 'y%./+-%__p_%'`
1818
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1819
echo $ac_n "(cached) $ac_c" 1>&6
1821
ac_save_LIBS="$LIBS"
1822
LIBS="-lX11 -lX11 -L/usr/X11R6/lib $LIBS"
1823
cat > conftest.$ac_ext <<EOF
1824
#line 1825 "configure"
1825
#include "confdefs.h"
1826
/* Override any gcc2 internal prototype to avoid an error. */
1827
/* We use char because int might match the return type of a gcc2
1828
builtin and then its argument prototype would still apply. */
1835
if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1837
eval "ac_cv_lib_$ac_lib_var=yes"
1839
echo "configure: failed program was:" >&5
1840
cat conftest.$ac_ext >&5
1842
eval "ac_cv_lib_$ac_lib_var=no"
1845
LIBS="$ac_save_LIBS"
1848
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1849
echo "$ac_t""yes" 1>&6
1850
LIBX="-lX11 -L/usr/X11R6/lib"
1852
echo "$ac_t""no" 1>&6
1861
if test "$LIBX" != ""
1864
echo $ac_n "checking for XpmReadFileToXpmImage in -lXpm""... $ac_c" 1>&6
1865
echo "configure:1866: checking for XpmReadFileToXpmImage in -lXpm" >&5
1866
ac_lib_var=`echo Xpm'_'XpmReadFileToXpmImage | sed 'y%./+-%__p_%'`
1867
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1868
echo $ac_n "(cached) $ac_c" 1>&6
1870
ac_save_LIBS="$LIBS"
1871
LIBS="-lXpm -lXpm $LIBS"
1872
cat > conftest.$ac_ext <<EOF
1873
#line 1874 "configure"
1874
#include "confdefs.h"
1875
/* Override any gcc2 internal prototype to avoid an error. */
1876
/* We use char because int might match the return type of a gcc2
1877
builtin and then its argument prototype would still apply. */
1878
char XpmReadFileToXpmImage();
1881
XpmReadFileToXpmImage()
1884
if { (eval echo configure:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1886
eval "ac_cv_lib_$ac_lib_var=yes"
1888
echo "configure: failed program was:" >&5
1889
cat conftest.$ac_ext >&5
1891
eval "ac_cv_lib_$ac_lib_var=no"
1894
LIBS="$ac_save_LIBS"
1897
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1898
echo "$ac_t""yes" 1>&6
1901
echo "$ac_t""no" 1>&6
1903
echo "Retrying with $LIBX"
1904
unset ac_cv_lib_Xpm_XpmReadFileToXpmImage
1905
echo $ac_n "checking for XpmReadFileToXpmImage in -lXpm""... $ac_c" 1>&6
1906
echo "configure:1907: checking for XpmReadFileToXpmImage in -lXpm" >&5
1907
ac_lib_var=`echo Xpm'_'XpmReadFileToXpmImage | sed 'y%./+-%__p_%'`
1908
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1909
echo $ac_n "(cached) $ac_c" 1>&6
1911
ac_save_LIBS="$LIBS"
1912
LIBS="-lXpm -lXpm $LIBX $LIBS"
1913
cat > conftest.$ac_ext <<EOF
1914
#line 1915 "configure"
1915
#include "confdefs.h"
1916
/* Override any gcc2 internal prototype to avoid an error. */
1917
/* We use char because int might match the return type of a gcc2
1918
builtin and then its argument prototype would still apply. */
1919
char XpmReadFileToXpmImage();
1922
XpmReadFileToXpmImage()
1925
if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1927
eval "ac_cv_lib_$ac_lib_var=yes"
1929
echo "configure: failed program was:" >&5
1930
cat conftest.$ac_ext >&5
1932
eval "ac_cv_lib_$ac_lib_var=no"
1935
LIBS="$ac_save_LIBS"
1938
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939
echo "$ac_t""yes" 1>&6
1940
LIBXPM="-lXpm $LIBX"
1942
echo "$ac_t""no" 1>&6
1951
echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1952
echo "configure:1953: checking for gdImagePng in -lgd" >&5
1953
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1954
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1955
echo $ac_n "(cached) $ac_c" 1>&6
1957
ac_save_LIBS="$LIBS"
1958
LIBS="-lgd -lm -lpng -lz $LIBS"
1959
cat > conftest.$ac_ext <<EOF
1960
#line 1961 "configure"
1961
#include "confdefs.h"
1962
/* Override any gcc2 internal prototype to avoid an error. */
1963
/* We use char because int might match the return type of a gcc2
1964
builtin and then its argument prototype would still apply. */
1971
if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1973
eval "ac_cv_lib_$ac_lib_var=yes"
1975
echo "configure: failed program was:" >&5
1976
cat conftest.$ac_ext >&5
1978
eval "ac_cv_lib_$ac_lib_var=no"
1981
LIBS="$ac_save_LIBS"
1984
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1985
echo "$ac_t""yes" 1>&6
1987
GFXLIBS="-lgd -lpng -lz"
1990
echo "$ac_t""no" 1>&6
1992
echo "Trying again - using -L/usr/local/lib -I/usr/local/include..."
1993
unset ac_cv_lib_gd_gdImagePng
1994
CPPFLAGS="$CPPFLAGS -L/usr/local/lib -I/usr/local/include"
1995
echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1996
echo "configure:1997: checking for gdImagePng in -lgd" >&5
1997
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1998
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1999
echo $ac_n "(cached) $ac_c" 1>&6
2001
ac_save_LIBS="$LIBS"
2002
LIBS="-lgd -lm -lpng -lz $LIBS"
2003
cat > conftest.$ac_ext <<EOF
2004
#line 2005 "configure"
2005
#include "confdefs.h"
2006
/* Override any gcc2 internal prototype to avoid an error. */
2007
/* We use char because int might match the return type of a gcc2
2008
builtin and then its argument prototype would still apply. */
2015
if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017
eval "ac_cv_lib_$ac_lib_var=yes"
2019
echo "configure: failed program was:" >&5
2020
cat conftest.$ac_ext >&5
2022
eval "ac_cv_lib_$ac_lib_var=no"
2025
LIBS="$ac_save_LIBS"
2028
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029
echo "$ac_t""yes" 1>&6
2031
GFXLIBS="-lgd -lpng -lz -L/usr/local/lib -I/usr/local/include"
2034
echo "$ac_t""no" 1>&6
2041
if test "$LIBTTF" != ""
2044
if test "$GFXLIBS" = "" ; then
2045
echo "Trying again - using $LIBTTF"
2046
unset ac_cv_lib_gd_gdImagePng
2047
echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
2048
echo "configure:2049: checking for gdImagePng in -lgd" >&5
2049
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
2050
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051
echo $ac_n "(cached) $ac_c" 1>&6
2053
ac_save_LIBS="$LIBS"
2054
LIBS="-lgd -lm -lpng -lz $LIBTTF $LIBS"
2055
cat > conftest.$ac_ext <<EOF
2056
#line 2057 "configure"
2057
#include "confdefs.h"
2058
/* Override any gcc2 internal prototype to avoid an error. */
2059
/* We use char because int might match the return type of a gcc2
2060
builtin and then its argument prototype would still apply. */
2067
if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2069
eval "ac_cv_lib_$ac_lib_var=yes"
2071
echo "configure: failed program was:" >&5
2072
cat conftest.$ac_ext >&5
2074
eval "ac_cv_lib_$ac_lib_var=no"
2077
LIBS="$ac_save_LIBS"
2080
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2081
echo "$ac_t""yes" 1>&6
2083
GFXLIBS="-lgd -lpng -lz $LIBTTF"
2086
echo "$ac_t""no" 1>&6
2091
if test "$GFXLIBS" = "" ; then
2092
echo "Trying again - using $LIBTTF $LIBXPM"
2093
unset ac_cv_lib_gd_gdImagePng
2094
echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
2095
echo "configure:2096: checking for gdImagePng in -lgd" >&5
2096
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
2097
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2098
echo $ac_n "(cached) $ac_c" 1>&6
2100
ac_save_LIBS="$LIBS"
2101
LIBS="-lgd -lm -lpng -lz $LIBTTF $LIBXPM $LIBS"
2102
cat > conftest.$ac_ext <<EOF
2103
#line 2104 "configure"
2104
#include "confdefs.h"
2105
/* Override any gcc2 internal prototype to avoid an error. */
2106
/* We use char because int might match the return type of a gcc2
2107
builtin and then its argument prototype would still apply. */
2114
if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2116
eval "ac_cv_lib_$ac_lib_var=yes"
2118
echo "configure: failed program was:" >&5
2119
cat conftest.$ac_ext >&5
2121
eval "ac_cv_lib_$ac_lib_var=no"
2124
LIBS="$ac_save_LIBS"
2127
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2128
echo "$ac_t""yes" 1>&6
2130
GFXLIBS="-lgd -lpng -lz $LIBTTF $LIBXPM"
2133
echo "$ac_t""no" 1>&6
2139
test "$GFXLIBS" = "" && echo "** You will not be able to build the CGI programs without gd."
2140
test "$GFXLIBS" = "" && echo "** "
2141
test "$GFXLIBS" = "" && echo "** To get it, visit http://www.boutell.com/gd/"
2143
for ac_hdr in gd.h gd/gd.h sys/modem.h stdarg.h varargs.h sys/shm.h err.h
4564
for ac_header in sys/modem.h stdarg.h varargs.h sys/termios.h
2145
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2146
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2147
echo "configure:2148: checking for $ac_hdr" >&5
2148
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2149
echo $ac_n "(cached) $ac_c" 1>&6
2151
cat > conftest.$ac_ext <<EOF
2152
#line 2153 "configure"
2153
#include "confdefs.h"
2156
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2157
{ (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2158
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2159
if test -z "$ac_err"; then
2161
eval "ac_cv_header_$ac_safe=yes"
2164
echo "configure: failed program was:" >&5
2165
cat conftest.$ac_ext >&5
2167
eval "ac_cv_header_$ac_safe=no"
2171
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2172
echo "$ac_t""yes" 1>&6
2173
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2174
cat >> confdefs.h <<EOF
2175
#define $ac_tr_hdr 1
2179
echo "$ac_t""no" 1>&6
4566
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568
echo "$as_me:$LINENO: checking for $ac_header" >&5
4569
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571
echo $ECHO_N "(cached) $ECHO_C" >&6
4573
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4576
# Is the header compilable?
4577
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4578
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4579
cat >conftest.$ac_ext <<_ACEOF
4580
#line $LINENO "configure"
4583
cat confdefs.h >>conftest.$ac_ext
4584
cat >>conftest.$ac_ext <<_ACEOF
4585
/* end confdefs.h. */
4586
$ac_includes_default
4587
#include <$ac_header>
4589
rm -f conftest.$ac_objext
4590
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591
(eval $ac_compile) 2>&5
4593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
(exit $ac_status); } &&
4595
{ ac_try='test -s conftest.$ac_objext'
4596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600
(exit $ac_status); }; }; then
4601
ac_header_compiler=yes
4603
echo "$as_me: failed program was:" >&5
4604
sed 's/^/| /' conftest.$ac_ext >&5
4606
ac_header_compiler=no
4608
rm -f conftest.$ac_objext conftest.$ac_ext
4609
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4610
echo "${ECHO_T}$ac_header_compiler" >&6
4612
# Is the header present?
4613
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4614
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4615
cat >conftest.$ac_ext <<_ACEOF
4616
#line $LINENO "configure"
4619
cat confdefs.h >>conftest.$ac_ext
4620
cat >>conftest.$ac_ext <<_ACEOF
4621
/* end confdefs.h. */
4622
#include <$ac_header>
4624
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4625
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4627
grep -v '^ *+' conftest.er1 >conftest.err
4629
cat conftest.err >&5
4630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631
(exit $ac_status); } >/dev/null; then
4632
if test -s conftest.err; then
4633
ac_cpp_err=$ac_c_preproc_warn_flag
4640
if test -z "$ac_cpp_err"; then
4641
ac_header_preproc=yes
4643
echo "$as_me: failed program was:" >&5
4644
sed 's/^/| /' conftest.$ac_ext >&5
4646
ac_header_preproc=no
4648
rm -f conftest.err conftest.$ac_ext
4649
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4650
echo "${ECHO_T}$ac_header_preproc" >&6
4652
# So? What about this header?
4653
case $ac_header_compiler:$ac_header_preproc in
4655
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4656
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&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;}
4661
## ------------------------------------ ##
4662
## Report this to bug-autoconf@gnu.org. ##
4663
## ------------------------------------ ##
4666
sed "s/^/$as_me: WARNING: /" >&2
4669
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4670
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4671
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4672
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4673
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4674
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4677
## ------------------------------------ ##
4678
## Report this to bug-autoconf@gnu.org. ##
4679
## ------------------------------------ ##
4682
sed "s/^/$as_me: WARNING: /" >&2
4685
echo "$as_me:$LINENO: checking for $ac_header" >&5
4686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4687
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688
echo $ECHO_N "(cached) $ECHO_C" >&6
4690
eval "$as_ac_Header=$ac_header_preproc"
4692
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4693
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4696
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4697
cat >>confdefs.h <<_ACEOF
4698
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2184
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2185
echo "configure:2186: checking whether time.h and sys/time.h may both be included" >&5
2186
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2187
echo $ac_n "(cached) $ac_c" 1>&6
4706
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4707
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4708
if test "${ac_cv_header_time+set}" = set; then
4709
echo $ECHO_N "(cached) $ECHO_C" >&6
2189
cat > conftest.$ac_ext <<EOF
2190
#line 2191 "configure"
2191
#include "confdefs.h"
4711
cat >conftest.$ac_ext <<_ACEOF
4712
#line $LINENO "configure"
4715
cat confdefs.h >>conftest.$ac_ext
4716
cat >>conftest.$ac_ext <<_ACEOF
4717
/* end confdefs.h. */
2192
4718
#include <sys/types.h>
2193
4719
#include <sys/time.h>
2194
4720
#include <time.h>
2199
if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4725
if ((struct tm *) 0)
4731
rm -f conftest.$ac_objext
4732
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733
(eval $ac_compile) 2>&5
4735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
(exit $ac_status); } &&
4737
{ ac_try='test -s conftest.$ac_objext'
4738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742
(exit $ac_status); }; }; then
2201
4743
ac_cv_header_time=yes
2203
echo "configure: failed program was:" >&5
2204
cat conftest.$ac_ext >&5
2206
ac_cv_header_time=no
4745
echo "$as_me: failed program was:" >&5
4746
sed 's/^/| /' conftest.$ac_ext >&5
2211
echo "$ac_t""$ac_cv_header_time" 1>&6
4748
ac_cv_header_time=no
4750
rm -f conftest.$ac_objext conftest.$ac_ext
4752
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4753
echo "${ECHO_T}$ac_cv_header_time" >&6
2212
4754
if test $ac_cv_header_time = yes; then
2213
cat >> confdefs.h <<\EOF
4756
cat >>confdefs.h <<\_ACEOF
2214
4757
#define TIME_WITH_SYS_TIME 1
2219
for ac_hdr in sys/time.h
2221
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2222
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2223
echo "configure:2224: checking for $ac_hdr" >&5
2224
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2225
echo $ac_n "(cached) $ac_c" 1>&6
2227
cat > conftest.$ac_ext <<EOF
2228
#line 2229 "configure"
2229
#include "confdefs.h"
2232
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2233
{ (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2234
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2235
if test -z "$ac_err"; then
2237
eval "ac_cv_header_$ac_safe=yes"
2240
echo "configure: failed program was:" >&5
2241
cat conftest.$ac_ext >&5
2243
eval "ac_cv_header_$ac_safe=no"
2247
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2248
echo "$ac_t""yes" 1>&6
2249
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2250
cat >> confdefs.h <<EOF
2251
#define $ac_tr_hdr 1
2255
echo "$ac_t""no" 1>&6
2260
if test -n "$LD_LIBRARY_PATH"; then
2261
for ac_prog in mawk gawk nawk awk
2263
# Extract the first word of "$ac_prog", so it can be a program name with args.
2264
set dummy $ac_prog; ac_word=$2
2265
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2266
echo "configure:2267: checking for $ac_word" >&5
2267
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2268
echo $ac_n "(cached) $ac_c" 1>&6
2270
if test -n "$AWK"; then
2271
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2273
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2275
for ac_dir in $ac_dummy; do
2276
test -z "$ac_dir" && ac_dir=.
2277
if test -f $ac_dir/$ac_word; then
2278
ac_cv_prog_AWK="$ac_prog"
2285
AWK="$ac_cv_prog_AWK"
2286
if test -n "$AWK"; then
2287
echo "$ac_t""$AWK" 1>&6
2289
echo "$ac_t""no" 1>&6
2292
test -n "$AWK" && break
2295
for lib in `echo $LD_LIBRARY_PATH | $AWK -F: '{ for (i = NF; i > 0; --i) print $i }' | sort | uniq`; do
2296
if test -f ${lib}/libpng.so; then
2297
echo $ac_n "checking for png_info_init in -lpng""... $ac_c" 1>&6
2298
echo "configure:2299: checking for png_info_init in -lpng" >&5
2299
ac_lib_var=`echo png'_'png_info_init | sed 'y%./+-%__p_%'`
2300
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2301
echo $ac_n "(cached) $ac_c" 1>&6
2303
ac_save_LIBS="$LIBS"
2304
LIBS="-lpng -lm -R${lib} $LIBS"
2305
cat > conftest.$ac_ext <<EOF
2306
#line 2307 "configure"
2307
#include "confdefs.h"
4763
for ac_header in sys/time.h
4765
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4766
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4767
echo "$as_me:$LINENO: checking for $ac_header" >&5
4768
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4769
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4770
echo $ECHO_N "(cached) $ECHO_C" >&6
4772
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4773
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4775
# Is the header compilable?
4776
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4777
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4778
cat >conftest.$ac_ext <<_ACEOF
4779
#line $LINENO "configure"
4782
cat confdefs.h >>conftest.$ac_ext
4783
cat >>conftest.$ac_ext <<_ACEOF
4784
/* end confdefs.h. */
4785
$ac_includes_default
4786
#include <$ac_header>
4788
rm -f conftest.$ac_objext
4789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790
(eval $ac_compile) 2>&5
4792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793
(exit $ac_status); } &&
4794
{ ac_try='test -s conftest.$ac_objext'
4795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799
(exit $ac_status); }; }; then
4800
ac_header_compiler=yes
4802
echo "$as_me: failed program was:" >&5
4803
sed 's/^/| /' conftest.$ac_ext >&5
4805
ac_header_compiler=no
4807
rm -f conftest.$ac_objext conftest.$ac_ext
4808
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4809
echo "${ECHO_T}$ac_header_compiler" >&6
4811
# Is the header present?
4812
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4813
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4814
cat >conftest.$ac_ext <<_ACEOF
4815
#line $LINENO "configure"
4818
cat confdefs.h >>conftest.$ac_ext
4819
cat >>conftest.$ac_ext <<_ACEOF
4820
/* end confdefs.h. */
4821
#include <$ac_header>
4823
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4824
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4826
grep -v '^ *+' conftest.er1 >conftest.err
4828
cat conftest.err >&5
4829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830
(exit $ac_status); } >/dev/null; then
4831
if test -s conftest.err; then
4832
ac_cpp_err=$ac_c_preproc_warn_flag
4839
if test -z "$ac_cpp_err"; then
4840
ac_header_preproc=yes
4842
echo "$as_me: failed program was:" >&5
4843
sed 's/^/| /' conftest.$ac_ext >&5
4845
ac_header_preproc=no
4847
rm -f conftest.err conftest.$ac_ext
4848
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4849
echo "${ECHO_T}$ac_header_preproc" >&6
4851
# So? What about this header?
4852
case $ac_header_compiler:$ac_header_preproc in
4854
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4855
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4856
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4857
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4860
## ------------------------------------ ##
4861
## Report this to bug-autoconf@gnu.org. ##
4862
## ------------------------------------ ##
4865
sed "s/^/$as_me: WARNING: /" >&2
4868
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4869
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4870
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4871
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4872
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4873
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4876
## ------------------------------------ ##
4877
## Report this to bug-autoconf@gnu.org. ##
4878
## ------------------------------------ ##
4881
sed "s/^/$as_me: WARNING: /" >&2
4884
echo "$as_me:$LINENO: checking for $ac_header" >&5
4885
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4886
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887
echo $ECHO_N "(cached) $ECHO_C" >&6
4889
eval "$as_ac_Header=$ac_header_preproc"
4891
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4892
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4895
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4896
cat >>confdefs.h <<_ACEOF
4897
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4906
echo "$as_me:$LINENO: checking for socklen_t" >&5
4907
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4908
if test "${ac_cv_type_socklen_t+set}" = set; then
4909
echo $ECHO_N "(cached) $ECHO_C" >&6
4911
cat >conftest.$ac_ext <<_ACEOF
4912
#line $LINENO "configure"
4915
cat confdefs.h >>conftest.$ac_ext
4916
cat >>conftest.$ac_ext <<_ACEOF
4917
/* end confdefs.h. */
4918
#include <sys/types.h>
4919
#include <sys/socket.h>
4924
if ((socklen_t *) 0)
4926
if (sizeof (socklen_t))
4932
rm -f conftest.$ac_objext
4933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934
(eval $ac_compile) 2>&5
4936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937
(exit $ac_status); } &&
4938
{ ac_try='test -s conftest.$ac_objext'
4939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943
(exit $ac_status); }; }; then
4944
ac_cv_type_socklen_t=yes
4946
echo "$as_me: failed program was:" >&5
4947
sed 's/^/| /' conftest.$ac_ext >&5
4949
ac_cv_type_socklen_t=no
4951
rm -f conftest.$ac_objext conftest.$ac_ext
4953
echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
4954
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4955
if test $ac_cv_type_socklen_t = yes; then
4959
echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
4960
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
4961
if test "${nut_cv_socklen_t_equiv+set}" = set; then
4962
echo $ECHO_N "(cached) $ECHO_C" >&6
4965
# Systems have either "struct sockaddr *" or
4966
# "void *" as the second argument to getpeername
4967
nut_cv_socklen_t_equiv=
4968
for arg2 in "struct sockaddr" void; do
4969
for t in int size_t unsigned long "unsigned long"; do
4970
cat >conftest.$ac_ext <<_ACEOF
4971
#line $LINENO "configure"
4974
cat confdefs.h >>conftest.$ac_ext
4975
cat >>conftest.$ac_ext <<_ACEOF
4976
/* end confdefs.h. */
4978
#include <sys/types.h>
4979
#include <sys/socket.h>
4981
int getpeername (int, $arg2 *, $t *);
4988
getpeername(0,0,&len);
4994
rm -f conftest.$ac_objext
4995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996
(eval $ac_compile) 2>&5
4998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999
(exit $ac_status); } &&
5000
{ ac_try='test -s conftest.$ac_objext'
5001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005
(exit $ac_status); }; }; then
5007
nut_cv_socklen_t_equiv="$t"
5011
echo "$as_me: failed program was:" >&5
5012
sed 's/^/| /' conftest.$ac_ext >&5
5015
rm -f conftest.$ac_objext conftest.$ac_ext
5019
if test "x$nut_cv_socklen_t_equiv" = x; then
5020
{ { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
5021
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
5022
{ (exit 1); exit 1; }; }
5027
echo "$as_me:$LINENO: result: $nut_cv_socklen_t_equiv" >&5
5028
echo "${ECHO_T}$nut_cv_socklen_t_equiv" >&6
5030
cat >>confdefs.h <<_ACEOF
5031
#define socklen_t $nut_cv_socklen_t_equiv
5039
LDFLAGS_ORIG=$LDFLAGS
5041
echo "$as_me:$LINENO: checking whether to enable SSL development code" >&5
5042
echo $ECHO_N "checking whether to enable SSL development code... $ECHO_C" >&6
5044
# Check whether --with-ssl or --without-ssl was given.
5045
if test "${with_ssl+set}" = set; then
5049
echo "$as_me:$LINENO: result: yes" >&5
5050
echo "${ECHO_T}yes" >&6
5053
SSL_LDFLAGS="-lssl -lcrypto"
5056
LDFLAGS=$SSL_LDFLAGS
5057
cat >conftest.$ac_ext <<_ACEOF
5058
#line $LINENO "configure"
5061
cat confdefs.h >>conftest.$ac_ext
5062
cat >>conftest.$ac_ext <<_ACEOF
5063
/* end confdefs.h. */
5064
#include <openssl/ssl.h>
5073
rm -f conftest.$ac_objext conftest$ac_exeext
5074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075
(eval $ac_link) 2>&5
5077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
(exit $ac_status); } &&
5079
{ ac_try='test -s conftest$ac_exeext'
5080
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084
(exit $ac_status); }; }; then
5087
echo "$as_me: failed program was:" >&5
5088
sed 's/^/| /' conftest.$ac_ext >&5
5092
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5094
if test "$ssl_ok" != yes; then
5095
SSL_CFLAGS="-I/usr/local/ssl/include"
5096
SSL_LDFLAGS="-L/usr/local/ssl/lib -lssl -lcrypto"
5099
LDFLAGS=$SSL_LDFLAGS
5100
cat >conftest.$ac_ext <<_ACEOF
5101
#line $LINENO "configure"
5104
cat confdefs.h >>conftest.$ac_ext
5105
cat >>conftest.$ac_ext <<_ACEOF
5106
/* end confdefs.h. */
5107
#include <openssl/ssl.h>
5116
rm -f conftest.$ac_objext conftest$ac_exeext
5117
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118
(eval $ac_link) 2>&5
5120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121
(exit $ac_status); } &&
5122
{ ac_try='test -s conftest$ac_exeext'
5123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127
(exit $ac_status); }; }; then
5130
echo "$as_me: failed program was:" >&5
5131
sed 's/^/| /' conftest.$ac_ext >&5
5135
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5138
if test "$ssl_ok" != yes; then
5139
{ { echo "$as_me:$LINENO: error: \"OpenSSL not found\"" >&5
5140
echo "$as_me: error: \"OpenSSL not found\"" >&2;}
5141
{ (exit 1); exit 1; }; }
5145
cat >>confdefs.h <<\_ACEOF
5151
echo "$as_me:$LINENO: result: no" >&5
5152
echo "${ECHO_T}no" >&6
5156
echo "$as_me:$LINENO: result: no" >&5
5157
echo "${ECHO_T}no" >&6
5162
LDFLAGS=$LDFLAGS_ORIG
5165
echo "$as_me:$LINENO: checking for gd version via gdlib-config" >&5
5166
echo $ECHO_N "checking for gd version via gdlib-config... $ECHO_C" >&6
5168
GD_VERSION=`gdlib-config --version 2>/dev/null`
5169
if (test "$?" != "0")
5171
GD_VERSION="unknown"
5172
echo "$as_me:$LINENO: result: not found" >&5
5173
echo "${ECHO_T}not found" >&6
5175
echo "$as_me:$LINENO: result: $GD_VERSION" >&5
5176
echo "${ECHO_T}$GD_VERSION" >&6
5179
case "$GD_VERSION" in
5183
2.0.5 | 2.0.6 | 2.0.7)
5184
{ echo "$as_me:$LINENO: WARNING: gd $GD_VERSION detected, unable to use gdlib-config script" >&5
5185
echo "$as_me: WARNING: gd $GD_VERSION detected, unable to use gdlib-config script" >&2;}
5186
{ echo "$as_me:$LINENO: WARNING: If gd detection fails, upgrade gd or use --with-gd-libs" >&5
5187
echo "$as_me: WARNING: If gd detection fails, upgrade gd or use --with-gd-libs" >&2;}
5191
GD_LIBS="`gdlib-config --ldflags` `gdlib-config --libs` -lgd"
5192
GD_INCLUDES="`gdlib-config --includes`"
5197
echo "$as_me:$LINENO: checking for gd include flags" >&5
5198
echo $ECHO_N "checking for gd include flags... $ECHO_C" >&6
5200
# Check whether --with-gd-includes or --without-gd-includes was given.
5201
if test "${with_gd_includes+set}" = set; then
5202
withval="$with_gd_includes"
5205
echo "$as_me:$LINENO: result: using defaults" >&5
5206
echo "${ECHO_T}using defaults" >&6
5209
echo "$as_me:$LINENO: result: using $withval" >&5
5210
echo "${ECHO_T}using $withval" >&6
5211
GD_INCLUDES=$withval
5215
echo "$as_me:$LINENO: result: using defaults" >&5
5216
echo "${ECHO_T}using defaults" >&6
5220
echo "$as_me:$LINENO: checking for gd library flags" >&5
5221
echo $ECHO_N "checking for gd library flags... $ECHO_C" >&6
5223
# Check whether --with-gd-libs or --without-gd-libs was given.
5224
if test "${with_gd_libs+set}" = set; then
5225
withval="$with_gd_libs"
5228
echo "$as_me:$LINENO: result: using defaults" >&5
5229
echo "${ECHO_T}using defaults" >&6
5232
echo "$as_me:$LINENO: result: using $withval" >&5
5233
echo "${ECHO_T}using $withval" >&6
5238
echo "$as_me:$LINENO: result: using defaults" >&5
5239
echo "${ECHO_T}using defaults" >&6
5243
echo "$as_me:$LINENO: checking whether to build CGI programs" >&5
5244
echo $ECHO_N "checking whether to build CGI programs... $ECHO_C" >&6
5246
# Check whether --with-cgi or --without-cgi was given.
5247
if test "${with_cgi+set}" = set; then
5252
echo "$as_me:$LINENO: result: yes" >&5
5253
echo "${ECHO_T}yes" >&6
5254
CGI_BUILD_TARGET="build-cgi"
5258
CPPFLAGS_ORIG=$CPPFLAGS
5259
LDFLAGS_ORIG=$LDFLAGS
5262
CPPFLAGS=$GD_INCLUDES
5266
for ac_header in gd.h
5268
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5269
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5270
echo "$as_me:$LINENO: checking for $ac_header" >&5
5271
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5272
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5273
echo $ECHO_N "(cached) $ECHO_C" >&6
5275
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5276
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5278
# Is the header compilable?
5279
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5280
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5281
cat >conftest.$ac_ext <<_ACEOF
5282
#line $LINENO "configure"
5285
cat confdefs.h >>conftest.$ac_ext
5286
cat >>conftest.$ac_ext <<_ACEOF
5287
/* end confdefs.h. */
5288
$ac_includes_default
5289
#include <$ac_header>
5291
rm -f conftest.$ac_objext
5292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293
(eval $ac_compile) 2>&5
5295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296
(exit $ac_status); } &&
5297
{ ac_try='test -s conftest.$ac_objext'
5298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302
(exit $ac_status); }; }; then
5303
ac_header_compiler=yes
5305
echo "$as_me: failed program was:" >&5
5306
sed 's/^/| /' conftest.$ac_ext >&5
5308
ac_header_compiler=no
5310
rm -f conftest.$ac_objext conftest.$ac_ext
5311
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5312
echo "${ECHO_T}$ac_header_compiler" >&6
5314
# Is the header present?
5315
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5316
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5317
cat >conftest.$ac_ext <<_ACEOF
5318
#line $LINENO "configure"
5321
cat confdefs.h >>conftest.$ac_ext
5322
cat >>conftest.$ac_ext <<_ACEOF
5323
/* end confdefs.h. */
5324
#include <$ac_header>
5326
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5327
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329
grep -v '^ *+' conftest.er1 >conftest.err
5331
cat conftest.err >&5
5332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333
(exit $ac_status); } >/dev/null; then
5334
if test -s conftest.err; then
5335
ac_cpp_err=$ac_c_preproc_warn_flag
5342
if test -z "$ac_cpp_err"; then
5343
ac_header_preproc=yes
5345
echo "$as_me: failed program was:" >&5
5346
sed 's/^/| /' conftest.$ac_ext >&5
5348
ac_header_preproc=no
5350
rm -f conftest.err conftest.$ac_ext
5351
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5352
echo "${ECHO_T}$ac_header_preproc" >&6
5354
# So? What about this header?
5355
case $ac_header_compiler:$ac_header_preproc in
5357
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5358
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5359
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5360
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5363
## ------------------------------------ ##
5364
## Report this to bug-autoconf@gnu.org. ##
5365
## ------------------------------------ ##
5368
sed "s/^/$as_me: WARNING: /" >&2
5371
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5372
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5373
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5374
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5375
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5379
## ------------------------------------ ##
5380
## Report this to bug-autoconf@gnu.org. ##
5381
## ------------------------------------ ##
5384
sed "s/^/$as_me: WARNING: /" >&2
5387
echo "$as_me:$LINENO: checking for $ac_header" >&5
5388
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5389
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5390
echo $ECHO_N "(cached) $ECHO_C" >&6
5392
eval "$as_ac_Header=$ac_header_preproc"
5394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5395
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5398
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5399
cat >>confdefs.h <<_ACEOF
5400
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407
echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
5408
echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6
5409
if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
5410
echo $ECHO_N "(cached) $ECHO_C" >&6
5412
ac_check_lib_save_LIBS=$LIBS
5413
LIBS="-lgd $GD_LIBS $LIBS"
5414
cat >conftest.$ac_ext <<_ACEOF
5415
#line $LINENO "configure"
5418
cat confdefs.h >>conftest.$ac_ext
5419
cat >>conftest.$ac_ext <<_ACEOF
5420
/* end confdefs.h. */
2308
5422
/* Override any gcc2 internal prototype to avoid an error. */
2309
5426
/* We use char because int might match the return type of a gcc2
2310
builtin and then its argument prototype would still apply. */
2311
char png_info_init();
2317
if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2319
eval "ac_cv_lib_$ac_lib_var=yes"
2321
echo "configure: failed program was:" >&5
2322
cat conftest.$ac_ext >&5
2324
eval "ac_cv_lib_$ac_lib_var=no"
2327
LIBS="$ac_save_LIBS"
2330
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2331
echo "$ac_t""yes" 1>&6
2332
GFXLIBS="-R${lib} $GFXLIBS"
2335
echo "$ac_t""no" 1>&6
2342
echo $ac_n "checking for Linux hiddev.h""... $ac_c" 1>&6
2343
echo "configure:2344: checking for Linux hiddev.h" >&5
5427
builtin and then its argument prototype would still apply. */
5437
rm -f conftest.$ac_objext conftest$ac_exeext
5438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5439
(eval $ac_link) 2>&5
5441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
(exit $ac_status); } &&
5443
{ ac_try='test -s conftest$ac_exeext'
5444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448
(exit $ac_status); }; }; then
5449
ac_cv_lib_gd_gdImagePng=yes
5451
echo "$as_me: failed program was:" >&5
5452
sed 's/^/| /' conftest.$ac_ext >&5
5454
ac_cv_lib_gd_gdImagePng=no
5456
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5457
LIBS=$ac_check_lib_save_LIBS
5459
echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
5460
echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6
5461
if test $ac_cv_lib_gd_gdImagePng = yes; then
5463
cat >>confdefs.h <<\_ACEOF
5464
#define HAVE_LIBGD 1
5468
{ echo "$as_me:$LINENO: WARNING: libgd not found - CGI build will fail" >&5
5469
echo "$as_me: WARNING: libgd not found - CGI build will fail" >&2;}
5474
CPPFLAGS=$CPPFLAGS_ORIG
5475
LDFLAGS=$LDFLAGS_ORIG
5480
echo "$as_me:$LINENO: result: no" >&5
5481
echo "${ECHO_T}no" >&6
5482
CGI_BUILD_TARGET="build-cgi-fake"
5485
echo "$as_me:$LINENO: result: no" >&5
5486
echo "${ECHO_T}no" >&6
5487
CGI_BUILD_TARGET="build-cgi-fake"
5492
echo "$as_me:$LINENO: result: no" >&5
5493
echo "${ECHO_T}no" >&6
5494
CGI_BUILD_TARGET="build-cgi-fake"
5499
echo "$as_me:$LINENO: checking for Net-SNMP cflags" >&5
5500
echo $ECHO_N "checking for Net-SNMP cflags... $ECHO_C" >&6
5501
NETSNMP_CFLAGS=`net-snmp-config --cflags 2>/dev/null`
5503
if (test "$?" != "0")
5505
echo "$as_me:$LINENO: result: not found" >&5
5506
echo "${ECHO_T}not found" >&6
5508
echo "$as_me:$LINENO: result: $NETSNMP_CFLAGS" >&5
5509
echo "${ECHO_T}$NETSNMP_CFLAGS" >&6
5512
echo "$as_me:$LINENO: checking for Net-SNMP libs" >&5
5513
echo $ECHO_N "checking for Net-SNMP libs... $ECHO_C" >&6
5514
NETSNMP_LIBS=`net-snmp-config --libs 2>/dev/null`
5516
if (test "$?" != "0")
5518
echo "$as_me:$LINENO: result: not found" >&5
5519
echo "${ECHO_T}not found" >&6
5521
echo "$as_me:$LINENO: result: $NETSNMP_LIBS" >&5
5522
echo "${ECHO_T}$NETSNMP_LIBS" >&6
5526
echo "$as_me:$LINENO: checking for libusb cflags" >&5
5527
echo $ECHO_N "checking for libusb cflags... $ECHO_C" >&6
5528
LIBUSB_CFLAGS=`libusb-config --cflags 2>/dev/null`
5530
if (test "$?" != "0")
5532
echo "$as_me:$LINENO: result: not found" >&5
5533
echo "${ECHO_T}not found" >&6
5535
echo "$as_me:$LINENO: result: $LIBUSB_CFLAGS" >&5
5536
echo "${ECHO_T}$LIBUSB_CFLAGS" >&6
5539
echo "$as_me:$LINENO: checking for libusb libs" >&5
5540
echo $ECHO_N "checking for libusb libs... $ECHO_C" >&6
5541
LIBUSB_LIBS=`libusb-config --libs 2>/dev/null`
5543
if (test "$?" != "0")
5545
echo "$as_me:$LINENO: result: not found" >&5
5546
echo "${ECHO_T}not found" >&6
5548
echo "$as_me:$LINENO: result: $LIBUSB_LIBS" >&5
5549
echo "${ECHO_T}$LIBUSB_LIBS" >&6
5552
echo "$as_me:$LINENO: checking for Linux hiddev.h" >&5
5553
echo $ECHO_N "checking for Linux hiddev.h... $ECHO_C" >&6
2344
5555
# Check whether --with-linux-hiddev or --without-linux-hiddev was given.
2345
5556
if test "${with_linux_hiddev+set}" = set; then
2346
5557
withval="$with_linux_hiddev"
2824
5933
# ignore calls without any arguments
2825
5934
DRIVER_BUILD_LIST="all-drivers"
2826
5935
DRIVER_INSTALL_TARGET="all-drivers"
2827
echo "$ac_t""all" 1>&6
5936
echo "$as_me:$LINENO: result: all" >&5
5937
echo "${ECHO_T}all" >&6
2830
5940
DRIVER_BUILD_LIST=`echo $withval | sed "s/,/ /g"`
2831
5941
DRIVER_INSTALL_TARGET="some-drivers"
2832
echo "$ac_t""$DRIVER_BUILD_LIST" 1>&6
5942
echo "$as_me:$LINENO: result: $DRIVER_BUILD_LIST" >&5
5943
echo "${ECHO_T}$DRIVER_BUILD_LIST" >&6
2838
5949
DRIVER_BUILD_LIST="all-drivers"
2839
5950
DRIVER_INSTALL_TARGET="all-drivers"
2840
echo "$ac_t""all" 1>&6
5951
echo "$as_me:$LINENO: result: all" >&5
5952
echo "${ECHO_T}all" >&6
5957
echo "$as_me:$LINENO: checking whether to strip debug symbols" >&5
5958
echo $ECHO_N "checking whether to strip debug symbols... $ECHO_C" >&6
5959
# Check whether --enable-strip or --disable-strip was given.
5960
if test "${enable_strip+set}" = set; then
5961
enableval="$enable_strip"
5965
echo "$as_me:$LINENO: result: no" >&5
5966
echo "${ECHO_T}no" >&6
5969
echo "$as_me:$LINENO: result: yes" >&5
5970
echo "${ECHO_T}yes" >&6
5976
echo "$as_me:$LINENO: result: no" >&5
5977
echo "${ECHO_T}no" >&6
2846
5981
# 'long long' check - this gets used down in snprintf.o
2848
echo $ac_n "checking for long long""... $ac_c" 1>&6
2849
echo "configure:2850: checking for long long" >&5
2850
if eval "test \"`echo '$''{'nut_cv_have_longlong'+set}'`\" = set"; then
2851
echo $ac_n "(cached) $ac_c" 1>&6
5983
echo "$as_me:$LINENO: checking for long long" >&5
5984
echo $ECHO_N "checking for long long... $ECHO_C" >&6
5985
if test "${nut_cv_have_longlong+set}" = set; then
5986
echo $ECHO_N "(cached) $ECHO_C" >&6
2854
5989
if test "$cross_compiling" = yes; then
2855
5990
nut_cv_have_longlong=cross
2857
cat > conftest.$ac_ext <<EOF
2858
#line 2859 "configure"
2859
#include "confdefs.h"
5992
cat >conftest.$ac_ext <<_ACEOF
5993
#line $LINENO "configure"
5996
cat confdefs.h >>conftest.$ac_ext
5997
cat >>conftest.$ac_ext <<_ACEOF
5998
/* end confdefs.h. */
2860
5999
#include <stdio.h>
2861
6000
main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
2863
if { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6002
rm -f conftest$ac_exeext
6003
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004
(eval $ac_link) 2>&5
6006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6008
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012
(exit $ac_status); }; }; then
2865
6013
nut_cv_have_longlong=yes
2867
echo "configure: failed program was:" >&5
2868
cat conftest.$ac_ext >&5
2870
nut_cv_have_longlong=no
2877
echo "$ac_t""$nut_cv_have_longlong" 1>&6
6015
echo "$as_me: program exited with status $ac_status" >&5
6016
echo "$as_me: failed program was:" >&5
6017
sed 's/^/| /' conftest.$ac_ext >&5
6020
nut_cv_have_longlong=no
6022
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6025
echo "$as_me:$LINENO: result: $nut_cv_have_longlong" >&5
6026
echo "${ECHO_T}$nut_cv_have_longlong" >&6
2878
6027
if test x"$nut_cv_have_longlong" = x"yes"; then
2879
cat >> confdefs.h <<\EOF
6029
cat >>confdefs.h <<\_ACEOF
2880
6030
#define HAVE_LONGLONG 1
2885
cat >> confdefs.h <<EOF
2886
#define BASEPATH "$prefix"
2890
6035
# expand $sysconfdir and write it out
2891
6036
eval conftemp=${sysconfdir}
2892
cat >> confdefs.h <<EOF
6038
cat >>confdefs.h <<_ACEOF
2893
6039
#define CONFPATH "$conftemp"
2912
cat > confcache <<\EOF
6044
eval datatemp=${datadir}
6046
cat >>confdefs.h <<_ACEOF
6047
#define DATADIR "$datatemp"
6076
ac_config_files="$ac_config_files clients/Makefile conf/Makefile data/Makefile drivers/Makefile server/Makefile Makefile common/Makefile man/Makefile scripts/hotplug/libhidups"
6077
cat >confcache <<\_ACEOF
2913
6078
# This file is a shell script that caches the results of configure
2914
6079
# tests run on this system so they can be shared between configure
2915
# scripts and configure runs. It is not useful on other systems.
2916
# If it contains results you don't want to keep, you may remove or edit it.
2918
# By default, configure uses ./config.cache as the cache file,
2919
# creating it if it does not exist already. You can give configure
2920
# the --cache-file=FILE option to use a different cache file; that is
2921
# what configure does when it calls configure scripts in
2922
# subdirectories, so they share the cache.
2923
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2924
# config.status only pays attention to the cache file if you give it the
2925
# --recheck option to rerun configure.
6080
# scripts and configure runs, see configure's option --config-cache.
6081
# It is not useful on other systems. If it contains results you don't
6082
# want to keep, you may remove or edit it.
6084
# config.status only pays attention to the cache file if you give it
6085
# the --recheck option to rerun configure.
6087
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6088
# loading this file, other *unset* `ac_cv_foo' will be assigned the
2928
6093
# The following way of writing the cache mishandles newlines in values,
2929
6094
# but we know of no workaround that is simple, portable, and efficient.
2930
6095
# So, don't put newlines in cache variables' values.
2931
6096
# Ultrix sh set writes to stderr and can't be redirected directly,
2932
6097
# and sets the high bit in the cache file unless we assign to the vars.
2934
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2936
# `set' does not quote correctly, so add quotes (double-quote substitution
2937
# turns \\\\ into \\, and sed turns \\ into \).
2939
-e "s/'/'\\\\''/g" \
2940
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2943
# `set' quotes correctly as required by POSIX, so do not add quotes.
2944
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2947
if cmp -s $cache_file confcache; then
6100
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6102
# `set' does not quote correctly, so add quotes (double-quote
6103
# substitution turns \\\\ into \\, and sed turns \\ into \).
6106
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6109
# `set' quotes correctly as required by POSIX, so do not add quotes.
6111
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6118
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6120
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6122
if diff $cache_file confcache >/dev/null 2>&1; then :; else
2950
6123
if test -w $cache_file; then
2951
echo "updating cache $cache_file"
2952
cat confcache > $cache_file
6124
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6125
cat confcache >$cache_file
2954
6127
echo "not updating unwritable cache $cache_file"
2957
6130
rm -f confcache
2959
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2961
6132
test "x$prefix" = xNONE && prefix=$ac_default_prefix
2962
6133
# Let make expand exec_prefix.
2963
6134
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2965
# Any assignment to VPATH causes Sun make to only execute
2966
# the first set of double-colon rules, so remove it if not needed.
2967
# If there is a colon in the path, we need to keep it.
6136
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6137
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6138
# trailing colons and then remove the whole line if VPATH becomes empty
6139
# (actually we leave an empty line to preserve line numbers).
2968
6140
if test "x$srcdir" = x.; then
2969
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6141
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6142
s/:*\$(srcdir):*/:/;
6143
s/:*\${srcdir}:*/:/;
6145
s/^\([^=]*=[ ]*\):*/\1/;
2972
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2974
6151
DEFS=-DHAVE_CONFIG_H
2976
# Without the "./", some shells look in PATH for config.status.
6155
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6156
# 1. Remove the extension, and $U if already installed.
6157
ac_i=`echo "$ac_i" |
6158
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6160
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6161
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6165
LTLIBOBJS=$ac_ltlibobjs
2977
6169
: ${CONFIG_STATUS=./config.status}
2979
echo creating $CONFIG_STATUS
2980
rm -f $CONFIG_STATUS
2981
cat > $CONFIG_STATUS <<EOF
2983
# Generated automatically by configure.
6170
ac_clean_files_save=$ac_clean_files
6171
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6172
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6173
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6174
cat >$CONFIG_STATUS <<_ACEOF
6176
# Generated by $as_me.
2984
6177
# Run this file to recreate the current configuration.
2985
# This directory was configured as follows,
2986
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2988
# $0 $ac_configure_args
2990
6178
# Compiler output produced by configure, useful for debugging
2991
# configure, is in ./config.log if it exists.
2993
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2996
case "\$ac_option" in
6179
# configure, is in config.log if it exists.
6184
SHELL=\${CONFIG_SHELL-$SHELL}
6187
cat >>$CONFIG_STATUS <<\_ACEOF
6188
## --------------------- ##
6189
## M4sh Initialization. ##
6190
## --------------------- ##
6192
# Be Bourne compatible
6193
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6196
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6197
# is contrary to our usage. Disable this feature.
6198
alias -g '${1+"$@"}'='"$@"'
6199
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6203
# Support unset when possible.
6204
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6211
# Work around bugs in pre-3.0 UWIN ksh.
6212
$as_unset ENV MAIL MAILPATH
6219
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6220
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6221
LC_TELEPHONE LC_TIME
6223
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6224
eval $as_var=C; export $as_var
6230
# Required to use basename.
6231
if expr a : '\(a\)' >/dev/null 2>&1; then
6237
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6238
as_basename=basename
6244
# Name of the executable.
6245
as_me=`$as_basename "$0" ||
6246
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6247
X"$0" : 'X\(//\)$' \| \
6248
X"$0" : 'X\(/\)$' \| \
6249
. : '\(.\)' 2>/dev/null ||
6251
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6252
/^X\/\(\/\/\)$/{ s//\1/; q; }
6253
/^X\/\(\/\).*/{ s//\1/; q; }
6257
# PATH needs CR, and LINENO needs CR and PATH.
6258
# Avoid depending upon Character Ranges.
6259
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6260
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6261
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6262
as_cr_digits='0123456789'
6263
as_cr_alnum=$as_cr_Letters$as_cr_digits
6265
# The user is always right.
6266
if test "${PATH_SEPARATOR+set}" != set; then
6267
echo "#! /bin/sh" >conf$$.sh
6268
echo "exit 0" >>conf$$.sh
6270
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6281
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6282
test "x$as_lineno_1" != "x$as_lineno_2" &&
6283
test "x$as_lineno_3" = "x$as_lineno_2" || {
6284
# Find who we are. Look in the path if we contain no path at all
6287
*[\\/]* ) as_myself=$0 ;;
6288
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292
test -z "$as_dir" && as_dir=.
6293
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6298
# We did not find ourselves, most probably we were run as `sh COMMAND'
6299
# in which case we are not to be found in the path.
6300
if test "x$as_myself" = x; then
6303
if test ! -f "$as_myself"; then
6304
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6305
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6306
{ (exit 1); exit 1; }; }
6308
case $CONFIG_SHELL in
6310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6314
test -z "$as_dir" && as_dir=.
6315
for as_base in sh bash ksh sh5; do
6318
if ("$as_dir/$as_base" -c '
6321
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6322
test "x$as_lineno_1" != "x$as_lineno_2" &&
6323
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6324
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6325
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6326
CONFIG_SHELL=$as_dir/$as_base
6328
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6336
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6337
# uniformly replaced by the line number. The first 'sed' inserts a
6338
# line-number line before each line; the second 'sed' does the real
6339
# work. The second script uses 'N' to pair each line-number line
6340
# with the numbered line, and appends trailing '-' during
6341
# substitution so that $LINENO is not a special case at line end.
6342
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6343
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6344
sed '=' <$as_myself |
6349
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6352
s,^['$as_cr_digits']*\n,,
6354
chmod +x $as_me.lineno ||
6355
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6356
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6357
{ (exit 1); exit 1; }; }
6359
# Don't try to exec as it changes $[0], causing all sort of problems
6360
# (the dirname of $[0] is not the place where we might find the
6361
# original and so on. Autoconf is especially sensible to this).
6363
# Exit status is that of the last command.
6368
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6369
*c*,-n*) ECHO_N= ECHO_C='
6371
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6372
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6375
if expr a : '\(a\)' >/dev/null 2>&1; then
6381
rm -f conf$$ conf$$.exe conf$$.file
6383
if ln -s conf$$.file conf$$ 2>/dev/null; then
6384
# We could just check for DJGPP; but this test a) works b) is more generic
6385
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6386
if test -f conf$$.exe; then
6387
# Don't use ln at all; we don't have any links
6392
elif ln conf$$.file conf$$ 2>/dev/null; then
6397
rm -f conf$$ conf$$.exe conf$$.file
6399
if mkdir -p . 2>/dev/null; then
6405
as_executable_p="test -f"
6407
# Sed expression to map a string onto a valid CPP name.
6408
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6410
# Sed expression to map a string onto a valid variable name.
6411
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6415
# We need space, tab and new line, in precisely that order.
6425
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6426
# report actual input values of CONFIG_FILES etc. instead of their
6427
# values after options handling. Logging --version etc. is OK.
6431
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6432
## Running $as_me. ##
6437
This file was extended by $as_me, which was
6438
generated by GNU Autoconf 2.57. Invocation command line was
6440
CONFIG_FILES = $CONFIG_FILES
6441
CONFIG_HEADERS = $CONFIG_HEADERS
6442
CONFIG_LINKS = $CONFIG_LINKS
6443
CONFIG_COMMANDS = $CONFIG_COMMANDS
6447
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6451
# Files that config.status was made for.
6452
if test -n "$ac_config_files"; then
6453
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6456
if test -n "$ac_config_headers"; then
6457
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6460
if test -n "$ac_config_links"; then
6461
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6464
if test -n "$ac_config_commands"; then
6465
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6468
cat >>$CONFIG_STATUS <<\_ACEOF
6471
\`$as_me' instantiates files from templates according to the
6472
current configuration.
6474
Usage: $0 [OPTIONS] [FILE]...
6476
-h, --help print this help, then exit
6477
-V, --version print version number, then exit
6478
-q, --quiet do not print progress messages
6479
-d, --debug don't remove temporary files
6480
--recheck update $as_me by reconfiguring in the same conditions
6481
--file=FILE[:TEMPLATE]
6482
instantiate the configuration file FILE
6483
--header=FILE[:TEMPLATE]
6484
instantiate the configuration header FILE
6486
Configuration files:
6489
Configuration headers:
6492
Report bugs to <bug-autoconf@gnu.org>."
6495
cat >>$CONFIG_STATUS <<_ACEOF
6498
configured by $0, generated by GNU Autoconf 2.57,
6499
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6501
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6502
Free Software Foundation, Inc.
6503
This config.status script is free software; the Free Software Foundation
6504
gives unlimited permission to copy, distribute and modify it."
6509
cat >>$CONFIG_STATUS <<\_ACEOF
6510
# If no file are specified by the user, then we need to provide default
6511
# value. By we need to know if files were specified by the user.
6517
ac_option=`expr "x$1" : 'x\([^=]*\)='`
6518
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6526
*) # This is not an option, so the user has probably given explicit
6529
ac_need_defaults=false;;
6533
# Handling of the options.
6535
cat >>$CONFIG_STATUS <<\_ACEOF
2997
6536
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2998
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2999
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3000
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3001
echo "$CONFIG_STATUS generated by autoconf version 2.13"
3003
-help | --help | --hel | --he | --h)
3004
echo "\$ac_cs_usage"; exit 0 ;;
3005
*) echo "\$ac_cs_usage"; exit 1 ;;
3009
ac_given_srcdir=$srcdir
3010
ac_given_INSTALL="$INSTALL"
3012
trap 'rm -fr `echo "clients/Makefile conf/Makefile models/Makefile server/Makefile Makefile common/Makefile man/Makefile scripts/RedHat-6.0/upsd scripts/RedHat-6.0/upsmon include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3014
cat >> $CONFIG_STATUS <<EOF
3016
# Protect against being on the right side of a sed subst in config.status.
3017
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3018
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6538
--version | --vers* | -V )
6539
echo "$ac_cs_version"; exit 0 ;;
6541
# Conflict between --help and --header
6542
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
6543
Try \`$0 --help' for more information." >&5
6544
echo "$as_me: error: ambiguous option: $1
6545
Try \`$0 --help' for more information." >&2;}
6546
{ (exit 1); exit 1; }; };;
6547
--help | --hel | -h )
6548
echo "$ac_cs_usage"; exit 0 ;;
6549
--debug | --d* | -d )
6551
--file | --fil | --fi | --f )
6553
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6554
ac_need_defaults=false;;
6555
--header | --heade | --head | --hea )
6557
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6558
ac_need_defaults=false;;
6559
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
6560
| -silent | --silent | --silen | --sile | --sil | --si | --s)
6564
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6565
Try \`$0 --help' for more information." >&5
6566
echo "$as_me: error: unrecognized option: $1
6567
Try \`$0 --help' for more information." >&2;}
6568
{ (exit 1); exit 1; }; } ;;
6570
*) ac_config_targets="$ac_config_targets $1" ;;
6576
ac_configure_extra_args=
6578
if $ac_cs_silent; then
6580
ac_configure_extra_args="$ac_configure_extra_args --silent"
6584
cat >>$CONFIG_STATUS <<_ACEOF
6585
if \$ac_cs_recheck; then
6586
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6587
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6596
cat >>$CONFIG_STATUS <<\_ACEOF
6597
for ac_config_target in $ac_config_targets
6599
case "$ac_config_target" in
6600
# Handling of arguments.
6601
"clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
6602
"conf/Makefile" ) CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
6603
"data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
6604
"drivers/Makefile" ) CONFIG_FILES="$CONFIG_FILES drivers/Makefile" ;;
6605
"server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
6606
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6607
"common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
6608
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6609
"scripts/hotplug/libhidups" ) CONFIG_FILES="$CONFIG_FILES scripts/hotplug/libhidups" ;;
6610
"include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
6611
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6612
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6613
{ (exit 1); exit 1; }; };;
6617
# If the user did not use the arguments to specify the items to instantiate,
6618
# then the envvar interface is used. Set only those that are not.
6619
# We use the long form for the default assignment because of an extremely
6620
# bizarre bug on SunOS 4.1.3.
6621
if $ac_need_defaults; then
6622
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6623
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6626
# Have a temporary directory for convenience. Make it in the build tree
6627
# simply because there is no reason to put it here, and in addition,
6628
# creating and moving files from /tmp can sometimes cause problems.
6629
# Create a temporary directory, and hook for its removal unless debugging.
6632
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6633
trap '{ (exit 1); exit 1; }' 1 2 13 15
6636
# Create a (secure) tmp directory for tmp files.
6639
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6640
test -n "$tmp" && test -d "$tmp"
6643
tmp=./confstat$$-$RANDOM
6644
(umask 077 && mkdir $tmp)
6647
echo "$me: cannot create a temporary directory in ." >&2
6648
{ (exit 1); exit 1; }
6653
cat >>$CONFIG_STATUS <<_ACEOF
6656
# CONFIG_FILES section.
6659
# No need to generate the scripts if there are no CONFIG_FILES.
6660
# This happens for instance when ./config.status config.h
6661
if test -n "\$CONFIG_FILES"; then
6662
# Protect against being on the right side of a sed subst in config.status.
6663
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6664
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6665
s,@SHELL@,$SHELL,;t t
6666
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6667
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6668
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6669
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6670
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6671
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6672
s,@exec_prefix@,$exec_prefix,;t t
6673
s,@prefix@,$prefix,;t t
6674
s,@program_transform_name@,$program_transform_name,;t t
6675
s,@bindir@,$bindir,;t t
6676
s,@sbindir@,$sbindir,;t t
6677
s,@libexecdir@,$libexecdir,;t t
6678
s,@datadir@,$datadir,;t t
6679
s,@sysconfdir@,$sysconfdir,;t t
6680
s,@sharedstatedir@,$sharedstatedir,;t t
6681
s,@localstatedir@,$localstatedir,;t t
6682
s,@libdir@,$libdir,;t t
6683
s,@includedir@,$includedir,;t t
6684
s,@oldincludedir@,$oldincludedir,;t t
6685
s,@infodir@,$infodir,;t t
6686
s,@mandir@,$mandir,;t t
6687
s,@build_alias@,$build_alias,;t t
6688
s,@host_alias@,$host_alias,;t t
6689
s,@target_alias@,$target_alias,;t t
6691
s,@ECHO_C@,$ECHO_C,;t t
6692
s,@ECHO_N@,$ECHO_N,;t t
6693
s,@ECHO_T@,$ECHO_T,;t t
6695
s,@build@,$build,;t t
6696
s,@build_cpu@,$build_cpu,;t t
6697
s,@build_vendor@,$build_vendor,;t t
6698
s,@build_os@,$build_os,;t t
6700
s,@host_cpu@,$host_cpu,;t t
6701
s,@host_vendor@,$host_vendor,;t t
6702
s,@host_os@,$host_os,;t t
6703
s,@target@,$target,;t t
6704
s,@target_cpu@,$target_cpu,;t t
6705
s,@target_vendor@,$target_vendor,;t t
6706
s,@target_os@,$target_os,;t t
6708
s,@CFLAGS@,$CFLAGS,;t t
6709
s,@LDFLAGS@,$LDFLAGS,;t t
6710
s,@CPPFLAGS@,$CPPFLAGS,;t t
6711
s,@ac_ct_CC@,$ac_ct_CC,;t t
6712
s,@EXEEXT@,$EXEEXT,;t t
6713
s,@OBJEXT@,$OBJEXT,;t t
6715
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6716
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6717
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6718
s,@EGREP@,$EGREP,;t t
6720
s,@RANLIB@,$RANLIB,;t t
6721
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6722
s,@MISC_UPSCLI_OBJ@,$MISC_UPSCLI_OBJ,;t t
6723
s,@MISC_UPSCLI_LIBOBJ@,$MISC_UPSCLI_LIBOBJ,;t t
6724
s,@SSL_CFLAGS@,$SSL_CFLAGS,;t t
6725
s,@SSL_LDFLAGS@,$SSL_LDFLAGS,;t t
6726
s,@CGI_BUILD_TARGET@,$CGI_BUILD_TARGET,;t t
6727
s,@GD_INCLUDES@,$GD_INCLUDES,;t t
6728
s,@GD_LIBS@,$GD_LIBS,;t t
6729
s,@NETSNMP_CFLAGS@,$NETSNMP_CFLAGS,;t t
6730
s,@NETSNMP_LIBS@,$NETSNMP_LIBS,;t t
6731
s,@LIBUSB_CFLAGS@,$LIBUSB_CFLAGS,;t t
6732
s,@LIBUSB_LIBS@,$LIBUSB_LIBS,;t t
6733
s,@DRIVER_BUILD_LIST@,$DRIVER_BUILD_LIST,;t t
6734
s,@DRIVER_INSTALL_TARGET@,$DRIVER_INSTALL_TARGET,;t t
6735
s,@STRLCPY@,$STRLCPY,;t t
6736
s,@LIBOBJ@,$LIBOBJ,;t t
6737
s,@BUILDOBJ@,$BUILDOBJ,;t t
6738
s,@NETLIBS@,$NETLIBS,;t t
6739
s,@SERLIBS@,$SERLIBS,;t t
6740
s,@STATEPATH@,$STATEPATH,;t t
6741
s,@DRVPATH@,$DRVPATH,;t t
6742
s,@CGIPATH@,$CGIPATH,;t t
6743
s,@RUN_AS_USER@,$RUN_AS_USER,;t t
6744
s,@LINUX_HIDDEV@,$LINUX_HIDDEV,;t t
6745
s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
6746
s,@LIBOBJS@,$LIBOBJS,;t t
6747
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6752
cat >>$CONFIG_STATUS <<\_ACEOF
6753
# Split the substitutions into bite-sized pieces for seds with
6754
# small command number limits, like on Digital OSF/1 and HP-UX.
6756
ac_sed_frag=1 # Number of current file.
6757
ac_beg=1 # First line for current file.
6758
ac_end=$ac_max_sed_lines # Line after last line for current file.
6761
while $ac_more_lines; do
6762
if test $ac_beg -gt 1; then
6763
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6765
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6767
if test ! -s $tmp/subs.frag; then
6770
# The purpose of the label and of the branching condition is to
6771
# speed up the sed processing (if there are no `@' at all, there
6772
# is no need to browse any of the substitutions).
6773
# These are the two extra sed commands mentioned above.
6775
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6776
if test -z "$ac_sed_cmds"; then
6777
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6779
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6781
ac_sed_frag=`expr $ac_sed_frag + 1`
6783
ac_end=`expr $ac_end + $ac_max_sed_lines`
6786
if test -z "$ac_sed_cmds"; then
6789
fi # test -n "$CONFIG_FILES"
6792
cat >>$CONFIG_STATUS <<\_ACEOF
6793
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6794
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6796
- | *:- | *:-:* ) # input from stdin
6798
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6799
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6800
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6801
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6802
* ) ac_file_in=$ac_file.in ;;
6805
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6806
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6807
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6808
X"$ac_file" : 'X\(//\)[^/]' \| \
6809
X"$ac_file" : 'X\(//\)$' \| \
6810
X"$ac_file" : 'X\(/\)' \| \
6811
. : '\(.\)' 2>/dev/null ||
6813
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6814
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6815
/^X\(\/\/\)$/{ s//\1/; q; }
6816
/^X\(\/\).*/{ s//\1/; q; }
6818
{ if $as_mkdir_p; then
6823
while test ! -d "$as_dir"; do
6824
as_dirs="$as_dir $as_dirs"
6825
as_dir=`(dirname "$as_dir") 2>/dev/null ||
6826
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6827
X"$as_dir" : 'X\(//\)[^/]' \| \
6828
X"$as_dir" : 'X\(//\)$' \| \
6829
X"$as_dir" : 'X\(/\)' \| \
6830
. : '\(.\)' 2>/dev/null ||
6832
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6833
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6834
/^X\(\/\/\)$/{ s//\1/; q; }
6835
/^X\(\/\).*/{ s//\1/; q; }
6838
test ! -n "$as_dirs" || mkdir $as_dirs
6839
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6840
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6841
{ (exit 1); exit 1; }; }; }
6845
if test "$ac_dir" != .; then
6846
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6847
# A "../" for each directory in $ac_dir_suffix.
6848
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6850
ac_dir_suffix= ac_top_builddir=
6854
.) # No --srcdir option. We are building in place.
6856
if test -z "$ac_top_builddir"; then
6859
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6861
[\\/]* | ?:[\\/]* ) # Absolute path.
6862
ac_srcdir=$srcdir$ac_dir_suffix;
6863
ac_top_srcdir=$srcdir ;;
6865
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6866
ac_top_srcdir=$ac_top_builddir$srcdir ;;
6868
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6870
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6871
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6872
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6873
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6877
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6878
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6881
if test x"$ac_file" != x-; then
6882
{ echo "$as_me:$LINENO: creating $ac_file" >&5
6883
echo "$as_me: creating $ac_file" >&6;}
6886
# Let's still pretend it is `configure' which instantiates (i.e., don't
6887
# use $as_me), people would be surprised to read:
6888
# /* config.h. Generated by config.status. */
6889
if test x"$ac_file" = x-; then
6892
configure_input="$ac_file. "
6894
configure_input=$configure_input"Generated from `echo $ac_file_in |
6895
sed 's,.*/,,'` by configure."
6897
# First look for the input files in the build tree, otherwise in the
6899
ac_file_inputs=`IFS=:
6900
for f in $ac_file_in; do
6902
-) echo $tmp/stdin ;;
6904
# Absolute (can't be DOS-style, as IFS=:)
6905
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6906
echo "$as_me: error: cannot find input file: $f" >&2;}
6907
{ (exit 1); exit 1; }; }
6910
if test -f "$f"; then
6913
elif test -f "$srcdir/$f"; then
6918
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6919
echo "$as_me: error: cannot find input file: $f" >&2;}
6920
{ (exit 1); exit 1; }; }
6923
done` || { (exit 1); exit 1; }
6925
cat >>$CONFIG_STATUS <<_ACEOF
3022
s%@CFLAGS@%$CFLAGS%g
3023
s%@CPPFLAGS@%$CPPFLAGS%g
3024
s%@CXXFLAGS@%$CXXFLAGS%g
3025
s%@FFLAGS@%$FFLAGS%g
3027
s%@LDFLAGS@%$LDFLAGS%g
3029
s%@exec_prefix@%$exec_prefix%g
3030
s%@prefix@%$prefix%g
3031
s%@program_transform_name@%$program_transform_name%g
3032
s%@bindir@%$bindir%g
3033
s%@sbindir@%$sbindir%g
3034
s%@libexecdir@%$libexecdir%g
3035
s%@datadir@%$datadir%g
3036
s%@sysconfdir@%$sysconfdir%g
3037
s%@sharedstatedir@%$sharedstatedir%g
3038
s%@localstatedir@%$localstatedir%g
3039
s%@libdir@%$libdir%g
3040
s%@includedir@%$includedir%g
3041
s%@oldincludedir@%$oldincludedir%g
3042
s%@infodir@%$infodir%g
3043
s%@mandir@%$mandir%g
3046
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3047
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3048
s%@INSTALL_DATA@%$INSTALL_DATA%g
3050
s%@DRIVER_BUILD_LIST@%$DRIVER_BUILD_LIST%g
3051
s%@DRIVER_INSTALL_TARGET@%$DRIVER_INSTALL_TARGET%g
3052
s%@LIBOBJ@%$LIBOBJ%g
3053
s%@BUILDOBJ@%$BUILDOBJ%g
3054
s%@NETLIBS@%$NETLIBS%g
3055
s%@GFXLIBS@%$GFXLIBS%g
3056
s%@SERLIBS@%$SERLIBS%g
3057
s%@STATEPATH@%$STATEPATH%g
3058
s%@MODELPATH@%$MODELPATH%g
3059
s%@CGIPATH@%$CGIPATH%g
3060
s%@RUN_AS_USER@%$RUN_AS_USER%g
3061
s%@RUN_AS_GROUP@%$RUN_AS_GROUP%g
3062
s%@LINUX_HIDDEV@%$LINUX_HIDDEV%g
3067
cat >> $CONFIG_STATUS <<\EOF
3069
# Split the substitutions into bite-sized pieces for seds with
3070
# small command number limits, like on Digital OSF/1 and HP-UX.
3071
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3072
ac_file=1 # Number of current file.
3073
ac_beg=1 # First line for current file.
3074
ac_end=$ac_max_sed_cmds # Line after last line for current file.
3077
while $ac_more_lines; do
3078
if test $ac_beg -gt 1; then
3079
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3081
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3083
if test ! -s conftest.s$ac_file; then
3085
rm -f conftest.s$ac_file
3087
if test -z "$ac_sed_cmds"; then
3088
ac_sed_cmds="sed -f conftest.s$ac_file"
3090
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3092
ac_file=`expr $ac_file + 1`
3094
ac_end=`expr $ac_end + $ac_max_sed_cmds`
6929
cat >>$CONFIG_STATUS <<\_ACEOF
6931
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6932
s,@configure_input@,$configure_input,;t t
6933
s,@srcdir@,$ac_srcdir,;t t
6934
s,@abs_srcdir@,$ac_abs_srcdir,;t t
6935
s,@top_srcdir@,$ac_top_srcdir,;t t
6936
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6937
s,@builddir@,$ac_builddir,;t t
6938
s,@abs_builddir@,$ac_abs_builddir,;t t
6939
s,@top_builddir@,$ac_top_builddir,;t t
6940
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6941
s,@INSTALL@,$ac_INSTALL,;t t
6942
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6944
if test x"$ac_file" != x-; then
6945
mv $tmp/out $ac_file
3097
if test -z "$ac_sed_cmds"; then
3102
cat >> $CONFIG_STATUS <<EOF
3104
CONFIG_FILES=\${CONFIG_FILES-"clients/Makefile conf/Makefile models/Makefile server/Makefile Makefile common/Makefile man/Makefile scripts/RedHat-6.0/upsd scripts/RedHat-6.0/upsmon"}
3106
cat >> $CONFIG_STATUS <<\EOF
3107
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3108
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3110
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3111
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3112
*) ac_file_in="${ac_file}.in" ;;
3115
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3117
# Remove last slash and all that follows it. Not all systems have dirname.
3118
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3119
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3120
# The file is in a subdirectory.
3121
test ! -d "$ac_dir" && mkdir "$ac_dir"
3122
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3123
# A "../" for each directory in $ac_dir_suffix.
3124
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3126
ac_dir_suffix= ac_dots=
3129
case "$ac_given_srcdir" in
3131
if test -z "$ac_dots"; then top_srcdir=.
3132
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3133
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3135
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3136
top_srcdir="$ac_dots$ac_given_srcdir" ;;
3139
case "$ac_given_INSTALL" in
3140
[/$]*) INSTALL="$ac_given_INSTALL" ;;
3141
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3144
echo creating "$ac_file"
3146
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3148
*Makefile*) ac_comsub="1i\\
3149
# $configure_input" ;;
3153
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3155
s%@configure_input@%$configure_input%g
3156
s%@srcdir@%$srcdir%g
3157
s%@top_srcdir@%$top_srcdir%g
3158
s%@INSTALL@%$INSTALL%g
3159
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6953
cat >>$CONFIG_STATUS <<\_ACEOF
6956
# CONFIG_HEADER section.
3163
6959
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3164
6960
# NAME is the cpp macro being defined and VALUE is the value it is being given.
3166
6962
# ac_d sets the value in "#define NAME VALUE" lines.
3167
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3168
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3171
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3172
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3173
ac_uB='\([ ]\)%\1#\2define\3'
6963
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6964
ac_dB='[ ].*$,\1#\2'
6967
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6968
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6969
ac_uB='$,\1#\2define\3'
3176
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3177
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3178
ac_eB='$%\1#\2define\3'
3182
if test "${CONFIG_HEADERS+set}" != set; then
3184
cat >> $CONFIG_STATUS <<EOF
3185
CONFIG_HEADERS="include/config.h"
3187
cat >> $CONFIG_STATUS <<\EOF
3189
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6973
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3190
6974
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3192
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3193
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3194
*) ac_file_in="${ac_file}.in" ;;
6976
- | *:- | *:-:* ) # input from stdin
6978
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6979
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6980
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6981
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6982
* ) ac_file_in=$ac_file.in ;;
3197
echo creating $ac_file
3199
rm -f conftest.frag conftest.in conftest.out
3200
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3201
cat $ac_file_inputs > conftest.in
3205
# Transform confdefs.h into a sed script conftest.vals that substitutes
3206
# the proper values into config.h.in to produce config.h. And first:
3207
# Protect against being on the right side of a sed subst in config.status.
3208
# Protect against being in an unquoted here document in config.status.
3210
cat > conftest.hdr <<\EOF
3213
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3217
sed -n -f conftest.hdr confdefs.h > conftest.vals
6985
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6986
echo "$as_me: creating $ac_file" >&6;}
6988
# First look for the input files in the build tree, otherwise in the
6990
ac_file_inputs=`IFS=:
6991
for f in $ac_file_in; do
6993
-) echo $tmp/stdin ;;
6995
# Absolute (can't be DOS-style, as IFS=:)
6996
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6997
echo "$as_me: error: cannot find input file: $f" >&2;}
6998
{ (exit 1); exit 1; }; }
7001
if test -f "$f"; then
7004
elif test -f "$srcdir/$f"; then
7009
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7010
echo "$as_me: error: cannot find input file: $f" >&2;}
7011
{ (exit 1); exit 1; }; }
7014
done` || { (exit 1); exit 1; }
7015
# Remove the trailing spaces.
7016
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7020
# Transform confdefs.h into two sed scripts, `conftest.defines' and
7021
# `conftest.undefs', that substitutes the proper values into
7022
# config.h.in to produce config.h. The first handles `#define'
7023
# templates, and the second `#undef' templates.
7024
# And first: Protect against being on the right side of a sed subst in
7025
# config.status. Protect against being in an unquoted here document
7027
rm -f conftest.defines conftest.undefs
7028
# Using a here document instead of a string reduces the quoting nightmare.
7029
# Putting comments in sed scripts is not portable.
7031
# `end' is used to avoid that the second main sed command (meant for
7032
# 0-ary CPP macros) applies to n-ary macro definitions.
7033
# See the Autoconf documentation for `clear'.
7034
cat >confdef2sed.sed <<\_ACEOF
7039
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7041
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7044
# If some macros were called several times there might be several times
7045
# the same #defines, which is useless. Nevertheless, we may not want to
7046
# sort them, since we want the *last* AC-DEFINE to be honored.
7047
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7048
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7049
rm -f confdef2sed.sed
3220
7051
# This sed command replaces #undef with comments. This is necessary, for
3221
7052
# example, in the case of _POSIX_SOURCE, which is predefined and required
3222
7053
# on some systems where configure will not decide to define it.
3223
cat >> conftest.vals <<\EOF
3224
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3227
# Break up conftest.vals because some shells have a limit on
3228
# the size of here documents, and old seds have small limits too.
3233
ac_lines=`grep -c . conftest.vals`
3234
# grep -c gives empty output for an empty file on some AIX systems.
3235
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3236
# Write a limited-size here document to conftest.frag.
3237
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3238
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3240
sed -f conftest.frag conftest.in > conftest.out
3242
mv conftest.out conftest.in
3244
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3246
mv conftest.tail conftest.vals
3250
cat >> $CONFIG_STATUS <<\EOF
3251
rm -f conftest.frag conftest.h
3252
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3253
cat conftest.in >> conftest.h
3255
if cmp -s $ac_file conftest.h 2>/dev/null; then
3256
echo "$ac_file is unchanged"
3259
# Remove last slash and all that follows it. Not all systems have dirname.
3260
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3261
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3262
# The file is in a subdirectory.
3263
test ! -d "$ac_dir" && mkdir "$ac_dir"
7054
cat >>conftest.undefs <<\_ACEOF
7055
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7058
# Break up conftest.defines because some shells have a limit on the size
7059
# of here documents, and old seds have small limits too (100 cmds).
7060
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7061
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7062
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7063
echo ' :' >>$CONFIG_STATUS
7065
while grep . conftest.defines >/dev/null
7067
# Write a limited-size here document to $tmp/defines.sed.
7068
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7069
# Speed up: don't consider the non `#define' lines.
7070
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7071
# Work around the forget-to-reset-the-flag bug.
7072
echo 't clr' >>$CONFIG_STATUS
7073
echo ': clr' >>$CONFIG_STATUS
7074
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7076
sed -f $tmp/defines.sed $tmp/in >$tmp/out
7080
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7081
rm -f conftest.defines
7082
mv conftest.tail conftest.defines
7084
rm -f conftest.defines
7085
echo ' fi # grep' >>$CONFIG_STATUS
7086
echo >>$CONFIG_STATUS
7088
# Break up conftest.undefs because some shells have a limit on the size
7089
# of here documents, and old seds have small limits too (100 cmds).
7090
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7092
while grep . conftest.undefs >/dev/null
7094
# Write a limited-size here document to $tmp/undefs.sed.
7095
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7096
# Speed up: don't consider the non `#undef'
7097
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7098
# Work around the forget-to-reset-the-flag bug.
7099
echo 't clr' >>$CONFIG_STATUS
7100
echo ': clr' >>$CONFIG_STATUS
7101
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7103
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7107
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7108
rm -f conftest.undefs
7109
mv conftest.tail conftest.undefs
7111
rm -f conftest.undefs
7113
cat >>$CONFIG_STATUS <<\_ACEOF
7114
# Let's still pretend it is `configure' which instantiates (i.e., don't
7115
# use $as_me), people would be surprised to read:
7116
# /* config.h. Generated by config.status. */
7117
if test x"$ac_file" = x-; then
7118
echo "/* Generated by configure. */" >$tmp/config.h
7120
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7122
cat $tmp/in >>$tmp/config.h
7124
if test x"$ac_file" != x-; then
7125
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7126
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7127
echo "$as_me: $ac_file is unchanged" >&6;}
7129
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7130
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7131
X"$ac_file" : 'X\(//\)[^/]' \| \
7132
X"$ac_file" : 'X\(//\)$' \| \
7133
X"$ac_file" : 'X\(/\)' \| \
7134
. : '\(.\)' 2>/dev/null ||
7136
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7137
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7138
/^X\(\/\/\)$/{ s//\1/; q; }
7139
/^X\(\/\).*/{ s//\1/; q; }
7141
{ if $as_mkdir_p; then
7146
while test ! -d "$as_dir"; do
7147
as_dirs="$as_dir $as_dirs"
7148
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7149
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7150
X"$as_dir" : 'X\(//\)[^/]' \| \
7151
X"$as_dir" : 'X\(//\)$' \| \
7152
X"$as_dir" : 'X\(/\)' \| \
7153
. : '\(.\)' 2>/dev/null ||
7155
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7156
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7157
/^X\(\/\/\)$/{ s//\1/; q; }
7158
/^X\(\/\).*/{ s//\1/; q; }
7161
test ! -n "$as_dirs" || mkdir $as_dirs
7162
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7163
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7164
{ (exit 1); exit 1; }; }; }
7167
mv $tmp/config.h $ac_file
3266
mv conftest.h $ac_file
3271
cat >> $CONFIG_STATUS <<EOF
3274
cat >> $CONFIG_STATUS <<\EOF
7176
cat >>$CONFIG_STATUS <<\_ACEOF
7178
{ (exit 0); exit 0; }
3278
7180
chmod +x $CONFIG_STATUS
3279
rm -fr confdefs* $ac_clean_files
3280
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7181
ac_clean_files=$ac_clean_files_save
7184
# configure is writing to config.log, and then calls config.status.
7185
# config.status does its own redirection, appending to config.log.
7186
# Unfortunately, on DOS this fails, as config.log is still kept open
7187
# by configure, so config.status won't be able to write to it; its
7188
# output is simply discarded. So we exec the FD to /dev/null,
7189
# effectively closing config.log, so it can be properly (re)opened and
7190
# appended to by config.status. When coming back to configure, we
7191
# need to make the FD available again.
7192
if test "$no_create" != yes; then
7194
ac_config_status_args=
7195
test "$silent" = yes &&
7196
ac_config_status_args="$ac_config_status_args --quiet"
7198
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7200
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
7201
# would make configure fail if this is the last instruction.
7202
$ac_cs_success || { (exit 1); exit 1; }