1349
ac_cpp='$CPP $CPPFLAGS'
1350
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1353
if test -n "$ac_tool_prefix"; then
1354
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1355
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1356
echo "$as_me:$LINENO: checking for $ac_word" >&5
1357
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1358
if test "${ac_cv_prog_CC+set}" = set; then
1359
echo $ECHO_N "(cached) $ECHO_C" >&6
1361
if test -n "$CC"; then
1362
ac_cv_prog_CC="$CC" # Let the user override the test.
1364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368
test -z "$as_dir" && as_dir=.
1369
for ac_exec_ext in '' $ac_executable_extensions; do
1370
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1371
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1372
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1381
if test -n "$CC"; then
1382
echo "$as_me:$LINENO: result: $CC" >&5
1383
echo "${ECHO_T}$CC" >&6
1385
echo "$as_me:$LINENO: result: no" >&5
1386
echo "${ECHO_T}no" >&6
1390
if test -z "$ac_cv_prog_CC"; then
1392
# Extract the first word of "gcc", so it can be a program name with args.
1393
set dummy gcc; ac_word=$2
1394
echo "$as_me:$LINENO: checking for $ac_word" >&5
1395
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1397
echo $ECHO_N "(cached) $ECHO_C" >&6
1399
if test -n "$ac_ct_CC"; then
1400
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406
test -z "$as_dir" && as_dir=.
1407
for ac_exec_ext in '' $ac_executable_extensions; do
1408
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409
ac_cv_prog_ac_ct_CC="gcc"
1410
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1419
if test -n "$ac_ct_CC"; then
1420
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1421
echo "${ECHO_T}$ac_ct_CC" >&6
1423
echo "$as_me:$LINENO: result: no" >&5
1424
echo "${ECHO_T}no" >&6
1432
if test -z "$CC"; then
1433
if test -n "$ac_tool_prefix"; then
1434
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1435
set dummy ${ac_tool_prefix}cc; ac_word=$2
1436
echo "$as_me:$LINENO: checking for $ac_word" >&5
1437
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438
if test "${ac_cv_prog_CC+set}" = set; then
1439
echo $ECHO_N "(cached) $ECHO_C" >&6
1441
if test -n "$CC"; then
1442
ac_cv_prog_CC="$CC" # Let the user override the test.
1444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448
test -z "$as_dir" && as_dir=.
1449
for ac_exec_ext in '' $ac_executable_extensions; do
1450
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451
ac_cv_prog_CC="${ac_tool_prefix}cc"
1452
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461
if test -n "$CC"; then
1462
echo "$as_me:$LINENO: result: $CC" >&5
1463
echo "${ECHO_T}$CC" >&6
1465
echo "$as_me:$LINENO: result: no" >&5
1466
echo "${ECHO_T}no" >&6
1470
if test -z "$ac_cv_prog_CC"; then
1472
# Extract the first word of "cc", so it can be a program name with args.
1473
set dummy cc; ac_word=$2
1474
echo "$as_me:$LINENO: checking for $ac_word" >&5
1475
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477
echo $ECHO_N "(cached) $ECHO_C" >&6
1479
if test -n "$ac_ct_CC"; then
1480
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486
test -z "$as_dir" && as_dir=.
1487
for ac_exec_ext in '' $ac_executable_extensions; do
1488
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489
ac_cv_prog_ac_ct_CC="cc"
1490
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499
if test -n "$ac_ct_CC"; then
1500
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501
echo "${ECHO_T}$ac_ct_CC" >&6
1503
echo "$as_me:$LINENO: result: no" >&5
1504
echo "${ECHO_T}no" >&6
1513
if test -z "$CC"; then
1514
# Extract the first word of "cc", so it can be a program name with args.
1515
set dummy cc; ac_word=$2
1516
echo "$as_me:$LINENO: checking for $ac_word" >&5
1517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518
if test "${ac_cv_prog_CC+set}" = set; then
1519
echo $ECHO_N "(cached) $ECHO_C" >&6
1521
if test -n "$CC"; then
1522
ac_cv_prog_CC="$CC" # Let the user override the test.
1525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529
test -z "$as_dir" && as_dir=.
1530
for ac_exec_ext in '' $ac_executable_extensions; do
1531
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1533
ac_prog_rejected=yes
1537
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543
if test $ac_prog_rejected = yes; then
1544
# We found a bogon in the path, so make sure we never use it.
1545
set dummy $ac_cv_prog_CC
1547
if test $# != 0; then
1548
# We chose a different compiler from the bogus one.
1549
# However, it has the same basename, so the bogon will be chosen
1550
# first if we set CC to just the basename; use the full file name.
1552
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1558
if test -n "$CC"; then
1559
echo "$as_me:$LINENO: result: $CC" >&5
1560
echo "${ECHO_T}$CC" >&6
1562
echo "$as_me:$LINENO: result: no" >&5
1563
echo "${ECHO_T}no" >&6
1567
if test -z "$CC"; then
1568
if test -n "$ac_tool_prefix"; then
1571
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1572
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1573
echo "$as_me:$LINENO: checking for $ac_word" >&5
1574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575
if test "${ac_cv_prog_CC+set}" = set; then
1576
echo $ECHO_N "(cached) $ECHO_C" >&6
1578
if test -n "$CC"; then
1579
ac_cv_prog_CC="$CC" # Let the user override the test.
1581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585
test -z "$as_dir" && as_dir=.
1586
for ac_exec_ext in '' $ac_executable_extensions; do
1587
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1589
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598
if test -n "$CC"; then
1599
echo "$as_me:$LINENO: result: $CC" >&5
1600
echo "${ECHO_T}$CC" >&6
1602
echo "$as_me:$LINENO: result: no" >&5
1603
echo "${ECHO_T}no" >&6
1606
test -n "$CC" && break
1609
if test -z "$CC"; then
1613
# Extract the first word of "$ac_prog", so it can be a program name with args.
1614
set dummy $ac_prog; ac_word=$2
1615
echo "$as_me:$LINENO: checking for $ac_word" >&5
1616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1618
echo $ECHO_N "(cached) $ECHO_C" >&6
1620
if test -n "$ac_ct_CC"; then
1621
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627
test -z "$as_dir" && as_dir=.
1628
for ac_exec_ext in '' $ac_executable_extensions; do
1629
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1630
ac_cv_prog_ac_ct_CC="$ac_prog"
1631
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1640
if test -n "$ac_ct_CC"; then
1641
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1642
echo "${ECHO_T}$ac_ct_CC" >&6
1644
echo "$as_me:$LINENO: result: no" >&5
1645
echo "${ECHO_T}no" >&6
1648
test -n "$ac_ct_CC" && break
1657
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1658
See \`config.log' for more details." >&5
1659
echo "$as_me: error: no acceptable C compiler found in \$PATH
1660
See \`config.log' for more details." >&2;}
1661
{ (exit 1); exit 1; }; }
1663
# Provide some information about the compiler.
1664
echo "$as_me:$LINENO:" \
1665
"checking for C compiler version" >&5
1666
ac_compiler=`set X $ac_compile; echo $2`
1667
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1668
(eval $ac_compiler --version </dev/null >&5) 2>&5
1670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671
(exit $ac_status); }
1672
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1673
(eval $ac_compiler -v </dev/null >&5) 2>&5
1675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676
(exit $ac_status); }
1677
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1678
(eval $ac_compiler -V </dev/null >&5) 2>&5
1680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1681
(exit $ac_status); }
1683
cat >conftest.$ac_ext <<_ACEOF
1686
cat confdefs.h >>conftest.$ac_ext
1687
cat >>conftest.$ac_ext <<_ACEOF
1688
/* end confdefs.h. */
1698
ac_clean_files_save=$ac_clean_files
1699
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1700
# Try to create an executable without -o first, disregard a.out.
1701
# It will help us diagnose broken compilers, and finding out an intuition
1703
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1704
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1705
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1706
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1707
(eval $ac_link_default) 2>&5
1709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710
(exit $ac_status); }; then
1711
# Find the output, starting from the most likely. This scheme is
1712
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1715
# Be careful to initialize this variable, since it used to be cached.
1716
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1718
# b.out is created by i960 compilers.
1719
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1721
test -f "$ac_file" || continue
1723
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1726
# This is the source file.
1729
# We found the default executable, but exeext='' is most
1733
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1734
# FIXME: I believe we export ac_cv_exeext for Libtool,
1735
# but it would be cool to find out if it's true. Does anybody
1736
# maintain Libtool? --akim.
1744
echo "$as_me: failed program was:" >&5
1745
sed 's/^/| /' conftest.$ac_ext >&5
1747
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1748
See \`config.log' for more details." >&5
1749
echo "$as_me: error: C compiler cannot create executables
1750
See \`config.log' for more details." >&2;}
1751
{ (exit 77); exit 77; }; }
1754
ac_exeext=$ac_cv_exeext
1755
echo "$as_me:$LINENO: result: $ac_file" >&5
1756
echo "${ECHO_T}$ac_file" >&6
1758
# Check the compiler produces executables we can run. If not, either
1759
# the compiler is broken, or we cross compile.
1760
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1761
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1762
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1763
# If not cross compiling, check that we can run a simple program.
1764
if test "$cross_compiling" != yes; then
1765
if { ac_try='./$ac_file'
1766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770
(exit $ac_status); }; }; then
1773
if test "$cross_compiling" = maybe; then
1776
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1777
If you meant to cross compile, use \`--host'.
1778
See \`config.log' for more details." >&5
1779
echo "$as_me: error: cannot run C compiled programs.
1780
If you meant to cross compile, use \`--host'.
1781
See \`config.log' for more details." >&2;}
1782
{ (exit 1); exit 1; }; }
1786
echo "$as_me:$LINENO: result: yes" >&5
1787
echo "${ECHO_T}yes" >&6
1789
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1790
ac_clean_files=$ac_clean_files_save
1791
# Check the compiler produces executables we can run. If not, either
1792
# the compiler is broken, or we cross compile.
1793
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1794
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1796
echo "${ECHO_T}$cross_compiling" >&6
1798
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1799
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1801
(eval $ac_link) 2>&5
1803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804
(exit $ac_status); }; then
1805
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1806
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1807
# work properly (i.e., refer to `conftest.exe'), while it won't with
1809
for ac_file in conftest.exe conftest conftest.*; do
1810
test -f "$ac_file" || continue
1812
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1813
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1821
See \`config.log' for more details." >&5
1822
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1823
See \`config.log' for more details." >&2;}
1824
{ (exit 1); exit 1; }; }
1827
rm -f conftest$ac_cv_exeext
1828
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1829
echo "${ECHO_T}$ac_cv_exeext" >&6
1831
rm -f conftest.$ac_ext
1832
EXEEXT=$ac_cv_exeext
1834
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1835
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1836
if test "${ac_cv_objext+set}" = set; then
1837
echo $ECHO_N "(cached) $ECHO_C" >&6
1839
cat >conftest.$ac_ext <<_ACEOF
1842
cat confdefs.h >>conftest.$ac_ext
1843
cat >>conftest.$ac_ext <<_ACEOF
1844
/* end confdefs.h. */
1854
rm -f conftest.o conftest.obj
1855
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1856
(eval $ac_compile) 2>&5
1858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859
(exit $ac_status); }; then
1860
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1862
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1863
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1868
echo "$as_me: failed program was:" >&5
1869
sed 's/^/| /' conftest.$ac_ext >&5
1871
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1872
See \`config.log' for more details." >&5
1873
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1874
See \`config.log' for more details." >&2;}
1875
{ (exit 1); exit 1; }; }
1878
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1880
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1881
echo "${ECHO_T}$ac_cv_objext" >&6
1882
OBJEXT=$ac_cv_objext
1884
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1885
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1886
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1887
echo $ECHO_N "(cached) $ECHO_C" >&6
1889
cat >conftest.$ac_ext <<_ACEOF
1892
cat confdefs.h >>conftest.$ac_ext
1893
cat >>conftest.$ac_ext <<_ACEOF
1894
/* end confdefs.h. */
1907
rm -f conftest.$ac_objext
1908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1909
(eval $ac_compile) 2>conftest.er1
1911
grep -v '^ *+' conftest.er1 >conftest.err
1913
cat conftest.err >&5
1914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915
(exit $ac_status); } &&
1916
{ ac_try='test -z "$ac_c_werror_flag"
1917
|| test ! -s conftest.err'
1918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922
(exit $ac_status); }; } &&
1923
{ ac_try='test -s conftest.$ac_objext'
1924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928
(exit $ac_status); }; }; then
1931
echo "$as_me: failed program was:" >&5
1932
sed 's/^/| /' conftest.$ac_ext >&5
1936
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1937
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1940
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1941
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1942
GCC=`test $ac_compiler_gnu = yes && echo yes`
1943
ac_test_CFLAGS=${CFLAGS+set}
1944
ac_save_CFLAGS=$CFLAGS
1946
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1947
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1948
if test "${ac_cv_prog_cc_g+set}" = set; then
1949
echo $ECHO_N "(cached) $ECHO_C" >&6
1951
cat >conftest.$ac_ext <<_ACEOF
1954
cat confdefs.h >>conftest.$ac_ext
1955
cat >>conftest.$ac_ext <<_ACEOF
1956
/* end confdefs.h. */
1966
rm -f conftest.$ac_objext
1967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968
(eval $ac_compile) 2>conftest.er1
1970
grep -v '^ *+' conftest.er1 >conftest.err
1972
cat conftest.err >&5
1973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974
(exit $ac_status); } &&
1975
{ ac_try='test -z "$ac_c_werror_flag"
1976
|| test ! -s conftest.err'
1977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981
(exit $ac_status); }; } &&
1982
{ ac_try='test -s conftest.$ac_objext'
1983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987
(exit $ac_status); }; }; then
1990
echo "$as_me: failed program was:" >&5
1991
sed 's/^/| /' conftest.$ac_ext >&5
1995
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1997
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1998
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1999
if test "$ac_test_CFLAGS" = set; then
2000
CFLAGS=$ac_save_CFLAGS
2001
elif test $ac_cv_prog_cc_g = yes; then
2002
if test "$GCC" = yes; then
2008
if test "$GCC" = yes; then
2014
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2015
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2016
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2017
echo $ECHO_N "(cached) $ECHO_C" >&6
2019
ac_cv_prog_cc_stdc=no
2021
cat >conftest.$ac_ext <<_ACEOF
2024
cat confdefs.h >>conftest.$ac_ext
2025
cat >>conftest.$ac_ext <<_ACEOF
2026
/* end confdefs.h. */
2029
#include <sys/types.h>
2030
#include <sys/stat.h>
2031
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2032
struct buf { int x; };
2033
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2034
static char *e (p, i)
2040
static char *f (char * (*g) (char **, int), char **p, ...)
2045
s = g (p, va_arg (v,int));
2050
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2051
function prototypes and stuff, but not '\xHH' hex character constants.
2052
These don't provoke an error unfortunately, instead are silently treated
2053
as 'x'. The following induces an error, until -std1 is added to get
2054
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2055
array size at least. It's necessary to write '\x00'==0 to get something
2056
that's true only with -std1. */
2057
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2059
int test (int i, double x);
2060
struct s1 {int (*f) (int a);};
2061
struct s2 {int (*f) (double a);};
2062
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2068
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2073
# Don't try gcc -ansi; that turns off useful extensions and
2074
# breaks some systems' header files.
2075
# AIX -qlanglvl=ansi
2076
# Ultrix and OSF/1 -std1
2077
# HP-UX 10.20 and later -Ae
2078
# HP-UX older versions -Aa -D_HPUX_SOURCE
2079
# SVR4 -Xc -D__EXTENSIONS__
2080
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2082
CC="$ac_save_CC $ac_arg"
2083
rm -f conftest.$ac_objext
2084
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085
(eval $ac_compile) 2>conftest.er1
2087
grep -v '^ *+' conftest.er1 >conftest.err
2089
cat conftest.err >&5
2090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091
(exit $ac_status); } &&
2092
{ ac_try='test -z "$ac_c_werror_flag"
2093
|| test ! -s conftest.err'
2094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098
(exit $ac_status); }; } &&
2099
{ ac_try='test -s conftest.$ac_objext'
2100
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104
(exit $ac_status); }; }; then
2105
ac_cv_prog_cc_stdc=$ac_arg
2108
echo "$as_me: failed program was:" >&5
2109
sed 's/^/| /' conftest.$ac_ext >&5
2112
rm -f conftest.err conftest.$ac_objext
2114
rm -f conftest.$ac_ext conftest.$ac_objext
2119
case "x$ac_cv_prog_cc_stdc" in
2121
echo "$as_me:$LINENO: result: none needed" >&5
2122
echo "${ECHO_T}none needed" >&6 ;;
2124
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2125
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2126
CC="$CC $ac_cv_prog_cc_stdc" ;;
2129
# Some people use a C++ compiler to compile C. Since we use `exit',
2130
# in C++ we need to declare it. In case someone uses the same compiler
2131
# for both compiling C and C++ we need to have the C++ compiler decide
2132
# the declaration of exit, since it's the most demanding environment.
2133
cat >conftest.$ac_ext <<_ACEOF
2138
rm -f conftest.$ac_objext
2139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140
(eval $ac_compile) 2>conftest.er1
2142
grep -v '^ *+' conftest.er1 >conftest.err
2144
cat conftest.err >&5
2145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146
(exit $ac_status); } &&
2147
{ ac_try='test -z "$ac_c_werror_flag"
2148
|| test ! -s conftest.err'
2149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153
(exit $ac_status); }; } &&
2154
{ ac_try='test -s conftest.$ac_objext'
2155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159
(exit $ac_status); }; }; then
2160
for ac_declaration in \
2162
'extern "C" void std::exit (int) throw (); using std::exit;' \
2163
'extern "C" void std::exit (int); using std::exit;' \
2164
'extern "C" void exit (int) throw ();' \
2165
'extern "C" void exit (int);' \
2168
cat >conftest.$ac_ext <<_ACEOF
2171
cat confdefs.h >>conftest.$ac_ext
2172
cat >>conftest.$ac_ext <<_ACEOF
2173
/* end confdefs.h. */
2184
rm -f conftest.$ac_objext
2185
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186
(eval $ac_compile) 2>conftest.er1
2188
grep -v '^ *+' conftest.er1 >conftest.err
2190
cat conftest.err >&5
2191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192
(exit $ac_status); } &&
2193
{ ac_try='test -z "$ac_c_werror_flag"
2194
|| test ! -s conftest.err'
2195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199
(exit $ac_status); }; } &&
2200
{ ac_try='test -s conftest.$ac_objext'
2201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205
(exit $ac_status); }; }; then
2208
echo "$as_me: failed program was:" >&5
2209
sed 's/^/| /' conftest.$ac_ext >&5
2213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2214
cat >conftest.$ac_ext <<_ACEOF
2217
cat confdefs.h >>conftest.$ac_ext
2218
cat >>conftest.$ac_ext <<_ACEOF
2219
/* end confdefs.h. */
2229
rm -f conftest.$ac_objext
2230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231
(eval $ac_compile) 2>conftest.er1
2233
grep -v '^ *+' conftest.er1 >conftest.err
2235
cat conftest.err >&5
2236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237
(exit $ac_status); } &&
2238
{ ac_try='test -z "$ac_c_werror_flag"
2239
|| test ! -s conftest.err'
2240
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244
(exit $ac_status); }; } &&
2245
{ ac_try='test -s conftest.$ac_objext'
2246
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250
(exit $ac_status); }; }; then
2253
echo "$as_me: failed program was:" >&5
2254
sed 's/^/| /' conftest.$ac_ext >&5
2257
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2260
if test -n "$ac_declaration"; then
2261
echo '#ifdef __cplusplus' >>confdefs.h
2262
echo $ac_declaration >>confdefs.h
2263
echo '#endif' >>confdefs.h
2267
echo "$as_me: failed program was:" >&5
2268
sed 's/^/| /' conftest.$ac_ext >&5
2271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273
ac_cpp='$CPP $CPPFLAGS'
2274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2279
ac_cpp='$CPP $CPPFLAGS'
2280
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2284
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2285
# On Suns, sometimes $CPP names a directory.
2286
if test -n "$CPP" && test -d "$CPP"; then
2289
if test -z "$CPP"; then
2290
if test "${ac_cv_prog_CPP+set}" = set; then
2291
echo $ECHO_N "(cached) $ECHO_C" >&6
2293
# Double quotes because CPP needs to be expanded
2294
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2297
for ac_c_preproc_warn_flag in '' yes
2299
# Use a header file that comes with gcc, so configuring glibc
2300
# with a fresh cross-compiler works.
2301
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2302
# <limits.h> exists even on freestanding compilers.
2303
# On the NeXT, cc -E runs the code through the compiler's parser,
2304
# not just through cpp. "Syntax error" is here to catch this case.
2305
cat >conftest.$ac_ext <<_ACEOF
2308
cat confdefs.h >>conftest.$ac_ext
2309
cat >>conftest.$ac_ext <<_ACEOF
2310
/* end confdefs.h. */
2312
# include <limits.h>
2314
# include <assert.h>
2318
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2319
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2321
grep -v '^ *+' conftest.er1 >conftest.err
2323
cat conftest.err >&5
2324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325
(exit $ac_status); } >/dev/null; then
2326
if test -s conftest.err; then
2327
ac_cpp_err=$ac_c_preproc_warn_flag
2328
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2335
if test -z "$ac_cpp_err"; then
2338
echo "$as_me: failed program was:" >&5
2339
sed 's/^/| /' conftest.$ac_ext >&5
2341
# Broken: fails on valid input.
2344
rm -f conftest.err conftest.$ac_ext
2346
# OK, works on sane cases. Now check whether non-existent headers
2347
# can be detected and how.
2348
cat >conftest.$ac_ext <<_ACEOF
2351
cat confdefs.h >>conftest.$ac_ext
2352
cat >>conftest.$ac_ext <<_ACEOF
2353
/* end confdefs.h. */
2354
#include <ac_nonexistent.h>
2356
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2357
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2359
grep -v '^ *+' conftest.er1 >conftest.err
2361
cat conftest.err >&5
2362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363
(exit $ac_status); } >/dev/null; then
2364
if test -s conftest.err; then
2365
ac_cpp_err=$ac_c_preproc_warn_flag
2366
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2373
if test -z "$ac_cpp_err"; then
2374
# Broken: success on invalid input.
2377
echo "$as_me: failed program was:" >&5
2378
sed 's/^/| /' conftest.$ac_ext >&5
2380
# Passes both tests.
2384
rm -f conftest.err conftest.$ac_ext
2387
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2388
rm -f conftest.err conftest.$ac_ext
2389
if $ac_preproc_ok; then
2401
echo "$as_me:$LINENO: result: $CPP" >&5
2402
echo "${ECHO_T}$CPP" >&6
2404
for ac_c_preproc_warn_flag in '' yes
2406
# Use a header file that comes with gcc, so configuring glibc
2407
# with a fresh cross-compiler works.
2408
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2409
# <limits.h> exists even on freestanding compilers.
2410
# On the NeXT, cc -E runs the code through the compiler's parser,
2411
# not just through cpp. "Syntax error" is here to catch this case.
2412
cat >conftest.$ac_ext <<_ACEOF
2415
cat confdefs.h >>conftest.$ac_ext
2416
cat >>conftest.$ac_ext <<_ACEOF
2417
/* end confdefs.h. */
2419
# include <limits.h>
2421
# include <assert.h>
2425
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2426
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2428
grep -v '^ *+' conftest.er1 >conftest.err
2430
cat conftest.err >&5
2431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432
(exit $ac_status); } >/dev/null; then
2433
if test -s conftest.err; then
2434
ac_cpp_err=$ac_c_preproc_warn_flag
2435
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2442
if test -z "$ac_cpp_err"; then
2445
echo "$as_me: failed program was:" >&5
2446
sed 's/^/| /' conftest.$ac_ext >&5
2448
# Broken: fails on valid input.
2451
rm -f conftest.err conftest.$ac_ext
2453
# OK, works on sane cases. Now check whether non-existent headers
2454
# can be detected and how.
2455
cat >conftest.$ac_ext <<_ACEOF
2458
cat confdefs.h >>conftest.$ac_ext
2459
cat >>conftest.$ac_ext <<_ACEOF
2460
/* end confdefs.h. */
2461
#include <ac_nonexistent.h>
2463
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2464
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466
grep -v '^ *+' conftest.er1 >conftest.err
2468
cat conftest.err >&5
2469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470
(exit $ac_status); } >/dev/null; then
2471
if test -s conftest.err; then
2472
ac_cpp_err=$ac_c_preproc_warn_flag
2473
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2480
if test -z "$ac_cpp_err"; then
2481
# Broken: success on invalid input.
2484
echo "$as_me: failed program was:" >&5
2485
sed 's/^/| /' conftest.$ac_ext >&5
2487
# Passes both tests.
2491
rm -f conftest.err conftest.$ac_ext
2494
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2495
rm -f conftest.err conftest.$ac_ext
2496
if $ac_preproc_ok; then
2499
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2500
See \`config.log' for more details." >&5
2501
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2502
See \`config.log' for more details." >&2;}
2503
{ (exit 1); exit 1; }; }
2507
ac_cpp='$CPP $CPPFLAGS'
2508
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
if test -n "$ac_tool_prefix"; then
2513
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2514
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2515
echo "$as_me:$LINENO: checking for $ac_word" >&5
2516
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517
if test "${ac_cv_prog_RANLIB+set}" = set; then
2518
echo $ECHO_N "(cached) $ECHO_C" >&6
2520
if test -n "$RANLIB"; then
2521
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2523
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527
test -z "$as_dir" && as_dir=.
2528
for ac_exec_ext in '' $ac_executable_extensions; do
2529
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2531
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539
RANLIB=$ac_cv_prog_RANLIB
2540
if test -n "$RANLIB"; then
2541
echo "$as_me:$LINENO: result: $RANLIB" >&5
2542
echo "${ECHO_T}$RANLIB" >&6
2544
echo "$as_me:$LINENO: result: no" >&5
2545
echo "${ECHO_T}no" >&6
2549
if test -z "$ac_cv_prog_RANLIB"; then
2550
ac_ct_RANLIB=$RANLIB
2551
# Extract the first word of "ranlib", so it can be a program name with args.
2552
set dummy ranlib; ac_word=$2
2553
echo "$as_me:$LINENO: checking for $ac_word" >&5
2554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2556
echo $ECHO_N "(cached) $ECHO_C" >&6
2558
if test -n "$ac_ct_RANLIB"; then
2559
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565
test -z "$as_dir" && as_dir=.
2566
for ac_exec_ext in '' $ac_executable_extensions; do
2567
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568
ac_cv_prog_ac_ct_RANLIB="ranlib"
2569
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2578
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2579
if test -n "$ac_ct_RANLIB"; then
2580
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2581
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2583
echo "$as_me:$LINENO: result: no" >&5
2584
echo "${ECHO_T}no" >&6
2587
RANLIB=$ac_ct_RANLIB
2589
RANLIB="$ac_cv_prog_RANLIB"
2592
# Find a good install program. We prefer a C program (faster),
2593
# so one script is as good as another. But avoid the broken or
2594
# incompatible versions:
2595
# SysV /etc/install, /usr/sbin/install
2596
# SunOS /usr/etc/install
2597
# IRIX /sbin/install
2599
# AmigaOS /C/install, which installs bootblocks on floppy discs
2600
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2601
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2602
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2603
# OS/2's system install, which has a completely different semantic
2604
# ./install, which can be erroneously created by make from ./install.sh.
2605
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2606
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2607
if test -z "$INSTALL"; then
2608
if test "${ac_cv_path_install+set}" = set; then
2609
echo $ECHO_N "(cached) $ECHO_C" >&6
2611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615
test -z "$as_dir" && as_dir=.
2616
# Account for people who put trailing slashes in PATH elements.
2618
./ | .// | /cC/* | \
2619
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2620
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2623
# OSF1 and SCO ODT 3.0 have their own names for install.
2624
# Don't use installbsd from OSF since it installs stuff as root
2626
for ac_prog in ginstall scoinst install; do
2627
for ac_exec_ext in '' $ac_executable_extensions; do
2628
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2629
if test $ac_prog = install &&
2630
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631
# AIX install. It has an incompatible calling convention.
2633
elif test $ac_prog = install &&
2634
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635
# program-specific install script used by HP pwplus--don't use.
2638
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2650
if test "${ac_cv_path_install+set}" = set; then
2651
INSTALL=$ac_cv_path_install
2653
# As a last resort, use the slow shell script. We don't cache a
2654
# path for INSTALL within a source directory, because that will
2655
# break other packages using the cache if that directory is
2656
# removed, or if the path is relative.
2657
INSTALL=$ac_install_sh
2660
echo "$as_me:$LINENO: result: $INSTALL" >&5
2661
echo "${ECHO_T}$INSTALL" >&6
2663
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2664
# It thinks the first close brace ends the variable substitution.
2665
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2667
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2669
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2672
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2673
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2674
if test "${ac_cv_c_const+set}" = set; then
2675
echo $ECHO_N "(cached) $ECHO_C" >&6
2677
cat >conftest.$ac_ext <<_ACEOF
2680
cat confdefs.h >>conftest.$ac_ext
2681
cat >>conftest.$ac_ext <<_ACEOF
2682
/* end confdefs.h. */
2687
/* FIXME: Include the comments suggested by Paul. */
2689
/* Ultrix mips cc rejects this. */
2690
typedef int charset[2];
2692
/* SunOS 4.1.1 cc rejects this. */
2693
char const *const *ccp;
2695
/* NEC SVR4.0.2 mips cc rejects this. */
2696
struct point {int x, y;};
2697
static struct point const zero = {0,0};
2698
/* AIX XL C 1.02.0.0 rejects this.
2699
It does not let you subtract one const X* pointer from another in
2700
an arm of an if-expression whose if-part is not a constant
2702
const char *g = "string";
2703
ccp = &g + (g ? g-g : 0);
2704
/* HPUX 7.0 cc rejects these. */
2707
ccp = (char const *const *) p;
2708
{ /* SCO 3.2v4 cc rejects this. */
2710
char const *s = 0 ? (char *) 0 : (char const *) 0;
2714
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2716
const int *foo = &x[0];
2719
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2720
typedef const int *iptr;
2724
{ /* AIX XL C 1.02.0.0 rejects this saying
2725
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2726
struct s { int j; const int *ap[3]; };
2727
struct s *b; b->j = 5;
2729
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2738
rm -f conftest.$ac_objext
2739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740
(eval $ac_compile) 2>conftest.er1
2742
grep -v '^ *+' conftest.er1 >conftest.err
2744
cat conftest.err >&5
2745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746
(exit $ac_status); } &&
2747
{ ac_try='test -z "$ac_c_werror_flag"
2748
|| test ! -s conftest.err'
2749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753
(exit $ac_status); }; } &&
2754
{ ac_try='test -s conftest.$ac_objext'
2755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759
(exit $ac_status); }; }; then
2762
echo "$as_me: failed program was:" >&5
2763
sed 's/^/| /' conftest.$ac_ext >&5
2767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2769
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2770
echo "${ECHO_T}$ac_cv_c_const" >&6
2771
if test $ac_cv_c_const = no; then
2773
cat >>confdefs.h <<\_ACEOF
2781
echo "$as_me:$LINENO: checking for egrep" >&5
2782
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2783
if test "${ac_cv_prog_egrep+set}" = set; then
2784
echo $ECHO_N "(cached) $ECHO_C" >&6
2786
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2787
then ac_cv_prog_egrep='grep -E'
2788
else ac_cv_prog_egrep='egrep'
2791
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2792
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2793
EGREP=$ac_cv_prog_egrep
2796
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2797
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2798
if test "${ac_cv_header_stdc+set}" = set; then
2799
echo $ECHO_N "(cached) $ECHO_C" >&6
2801
cat >conftest.$ac_ext <<_ACEOF
2804
cat confdefs.h >>conftest.$ac_ext
2805
cat >>conftest.$ac_ext <<_ACEOF
2806
/* end confdefs.h. */
2820
rm -f conftest.$ac_objext
2821
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822
(eval $ac_compile) 2>conftest.er1
2824
grep -v '^ *+' conftest.er1 >conftest.err
2826
cat conftest.err >&5
2827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828
(exit $ac_status); } &&
2829
{ ac_try='test -z "$ac_c_werror_flag"
2830
|| test ! -s conftest.err'
2831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835
(exit $ac_status); }; } &&
2836
{ ac_try='test -s conftest.$ac_objext'
2837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841
(exit $ac_status); }; }; then
2842
ac_cv_header_stdc=yes
2844
echo "$as_me: failed program was:" >&5
2845
sed 's/^/| /' conftest.$ac_ext >&5
2847
ac_cv_header_stdc=no
2849
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851
if test $ac_cv_header_stdc = yes; then
2852
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2853
cat >conftest.$ac_ext <<_ACEOF
2856
cat confdefs.h >>conftest.$ac_ext
2857
cat >>conftest.$ac_ext <<_ACEOF
2858
/* end confdefs.h. */
2862
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2863
$EGREP "memchr" >/dev/null 2>&1; then
2866
ac_cv_header_stdc=no
2872
if test $ac_cv_header_stdc = yes; then
2873
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2874
cat >conftest.$ac_ext <<_ACEOF
2877
cat confdefs.h >>conftest.$ac_ext
2878
cat >>conftest.$ac_ext <<_ACEOF
2879
/* end confdefs.h. */
2883
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2884
$EGREP "free" >/dev/null 2>&1; then
2887
ac_cv_header_stdc=no
2893
if test $ac_cv_header_stdc = yes; then
2894
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2895
if test "$cross_compiling" = yes; then
2898
cat >conftest.$ac_ext <<_ACEOF
2901
cat confdefs.h >>conftest.$ac_ext
2902
cat >>conftest.$ac_ext <<_ACEOF
2903
/* end confdefs.h. */
2905
#if ((' ' & 0x0FF) == 0x020)
2906
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2907
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2909
# define ISLOWER(c) \
2910
(('a' <= (c) && (c) <= 'i') \
2911
|| ('j' <= (c) && (c) <= 'r') \
2912
|| ('s' <= (c) && (c) <= 'z'))
2913
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2916
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2921
for (i = 0; i < 256; i++)
2922
if (XOR (islower (i), ISLOWER (i))
2923
|| toupper (i) != TOUPPER (i))
2928
rm -f conftest$ac_exeext
2929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930
(eval $ac_link) 2>&5
2932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938
(exit $ac_status); }; }; then
2941
echo "$as_me: program exited with status $ac_status" >&5
2942
echo "$as_me: failed program was:" >&5
2943
sed 's/^/| /' conftest.$ac_ext >&5
2946
ac_cv_header_stdc=no
2948
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2952
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2953
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2954
if test $ac_cv_header_stdc = yes; then
2956
cat >>confdefs.h <<\_ACEOF
2957
#define STDC_HEADERS 1
2965
echo "$as_me:$LINENO: checking for appropriate compile flags" >&5
2966
echo $ECHO_N "checking for appropriate compile flags... $ECHO_C" >&6
2968
CFLAGS="$CFLAGS $OTP_EXTRA_FLAGS"
2970
if test "X$host" = "Xwin32"; then
2975
CFLAGS="$CFLAGS -no-cpp-precomp"
2979
if test "x$GCC" = xyes; then
2980
RX_CFLAGS="$CFLAGS -fPIC $RX_CFLAGS"
2982
RX_CFLAGS="$CFLAGS $RX_CFLAGS"
2985
echo "$as_me:$LINENO: result: $RX_CFLAGS" >&5
2986
echo "${ECHO_T}$RX_CFLAGS" >&6
2989
for ac_prog in ld.sh ld
2991
# Extract the first word of "$ac_prog", so it can be a program name with args.
2992
set dummy $ac_prog; ac_word=$2
2993
echo "$as_me:$LINENO: checking for $ac_word" >&5
2994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2995
if test "${ac_cv_prog_RX_LD+set}" = set; then
2996
echo $ECHO_N "(cached) $ECHO_C" >&6
2998
if test -n "$RX_LD"; then
2999
ac_cv_prog_RX_LD="$RX_LD" # Let the user override the test.
3001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005
test -z "$as_dir" && as_dir=.
3006
for ac_exec_ext in '' $ac_executable_extensions; do
3007
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008
ac_cv_prog_RX_LD="$ac_prog"
3009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017
RX_LD=$ac_cv_prog_RX_LD
3018
if test -n "$RX_LD"; then
3019
echo "$as_me:$LINENO: result: $RX_LD" >&5
3020
echo "${ECHO_T}$RX_LD" >&6
3022
echo "$as_me:$LINENO: result: no" >&5
3023
echo "${ECHO_T}no" >&6
3026
test -n "$RX_LD" && break
3028
test -n "$RX_LD" || RX_LD="no_ld"
3030
if test "$RX_LD" = no_ld; then
3031
{ { echo "$as_me:$LINENO: error: ld required but not found!" >&5
3032
echo "$as_me: error: ld required but not found!" >&2;}
3033
{ (exit 1); exit 1; }; }
3036
echo "$as_me:$LINENO: checking for linker flags for loadable drivers" >&5
3037
echo $ECHO_N "checking for linker flags for loadable drivers... $ECHO_C" >&6
3046
echo "$as_me:$LINENO: result: $RX_LDFLAGS" >&5
3047
echo "${ECHO_T}$RX_LDFLAGS" >&6
3051
ac_config_files="$ac_config_files priv/rx-1.5/rx/Makefile:priv/rx-1.5/rx/Makefile.in priv/$host/Makefile:priv/Makefile.in c_src/$host/Makefile:c_src/Makefile.in"
1310
ac_config_files="$ac_config_files priv/$host/Makefile:priv/Makefile.in"
3052
1311
cat >confcache <<\_ACEOF
3053
1312
# This file is a shell script that caches the results of configure
3054
1313
# tests run on this system so they can be shared between configure