1520
751
# EXP_LIBS. Sigh.
1522
753
OLD_CFLAGS=$CFLAGS
1524
ac_cpp='$CPP $CPPFLAGS'
1525
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528
if test -n "$ac_tool_prefix"; then
1529
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531
echo "$as_me:$LINENO: checking for $ac_word" >&5
1532
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533
if test "${ac_cv_prog_CC+set}" = set; then
1534
echo $ECHO_N "(cached) $ECHO_C" >&6
1536
if test -n "$CC"; then
1537
ac_cv_prog_CC="$CC" # Let the user override the test.
1539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543
test -z "$as_dir" && as_dir=.
1544
for ac_exec_ext in '' $ac_executable_extensions; do
1545
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556
if test -n "$CC"; then
1557
echo "$as_me:$LINENO: result: $CC" >&5
1558
echo "${ECHO_T}$CC" >&6
1560
echo "$as_me:$LINENO: result: no" >&5
1561
echo "${ECHO_T}no" >&6
1565
if test -z "$ac_cv_prog_CC"; then
1567
# Extract the first word of "gcc", so it can be a program name with args.
754
# Extract the first word of "gcc", so it can be a program name with args.
1568
755
set dummy gcc; ac_word=$2
1569
echo "$as_me:$LINENO: checking for $ac_word" >&5
1570
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572
echo $ECHO_N "(cached) $ECHO_C" >&6
1574
if test -n "$ac_ct_CC"; then
1575
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581
test -z "$as_dir" && as_dir=.
1582
for ac_exec_ext in '' $ac_executable_extensions; do
1583
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584
ac_cv_prog_ac_ct_CC="gcc"
1585
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594
if test -n "$ac_ct_CC"; then
1595
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596
echo "${ECHO_T}$ac_ct_CC" >&6
1598
echo "$as_me:$LINENO: result: no" >&5
1599
echo "${ECHO_T}no" >&6
1607
if test -z "$CC"; then
1608
if test -n "$ac_tool_prefix"; then
1609
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610
set dummy ${ac_tool_prefix}cc; ac_word=$2
1611
echo "$as_me:$LINENO: checking for $ac_word" >&5
1612
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613
if test "${ac_cv_prog_CC+set}" = set; then
1614
echo $ECHO_N "(cached) $ECHO_C" >&6
756
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757
echo "configure:758: checking for $ac_word" >&5
758
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
759
echo $ac_n "(cached) $ac_c" 1>&6
1616
761
if test -n "$CC"; then
1617
762
ac_cv_prog_CC="$CC" # Let the user override the test.
1619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623
test -z "$as_dir" && as_dir=.
1624
for ac_exec_ext in '' $ac_executable_extensions; do
1625
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626
ac_cv_prog_CC="${ac_tool_prefix}cc"
1627
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
764
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
766
for ac_dir in $ac_dummy; do
767
test -z "$ac_dir" && ac_dir=.
768
if test -f $ac_dir/$ac_word; then
1636
777
if test -n "$CC"; then
1637
echo "$as_me:$LINENO: result: $CC" >&5
1638
echo "${ECHO_T}$CC" >&6
1640
echo "$as_me:$LINENO: result: no" >&5
1641
echo "${ECHO_T}no" >&6
1645
if test -z "$ac_cv_prog_CC"; then
1647
# Extract the first word of "cc", so it can be a program name with args.
1648
set dummy cc; ac_word=$2
1649
echo "$as_me:$LINENO: checking for $ac_word" >&5
1650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652
echo $ECHO_N "(cached) $ECHO_C" >&6
1654
if test -n "$ac_ct_CC"; then
1655
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661
test -z "$as_dir" && as_dir=.
1662
for ac_exec_ext in '' $ac_executable_extensions; do
1663
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664
ac_cv_prog_ac_ct_CC="cc"
1665
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674
if test -n "$ac_ct_CC"; then
1675
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676
echo "${ECHO_T}$ac_ct_CC" >&6
1678
echo "$as_me:$LINENO: result: no" >&5
1679
echo "${ECHO_T}no" >&6
778
echo "$ac_t""$CC" 1>&6
780
echo "$ac_t""no" 1>&6
1688
783
if test -z "$CC"; then
1689
784
# Extract the first word of "cc", so it can be a program name with args.
1690
785
set dummy cc; ac_word=$2
1691
echo "$as_me:$LINENO: checking for $ac_word" >&5
1692
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693
if test "${ac_cv_prog_CC+set}" = set; then
1694
echo $ECHO_N "(cached) $ECHO_C" >&6
786
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787
echo "configure:788: checking for $ac_word" >&5
788
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
789
echo $ac_n "(cached) $ac_c" 1>&6
1696
791
if test -n "$CC"; then
1697
792
ac_cv_prog_CC="$CC" # Let the user override the test.
794
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1699
795
ac_prog_rejected=no
1700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704
test -z "$as_dir" && as_dir=.
1705
for ac_exec_ext in '' $ac_executable_extensions; do
1706
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708
ac_prog_rejected=yes
1712
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
797
for ac_dir in $ac_dummy; do
798
test -z "$ac_dir" && ac_dir=.
799
if test -f $ac_dir/$ac_word; then
800
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1718
809
if test $ac_prog_rejected = yes; then
1719
810
# We found a bogon in the path, so make sure we never use it.
1720
811
set dummy $ac_cv_prog_CC
1722
if test $# != 0; then
813
if test $# -gt 0; then
1723
814
# We chose a different compiler from the bogus one.
1724
815
# However, it has the same basename, so the bogon will be chosen
1725
816
# first if we set CC to just the basename; use the full file name.
1727
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
818
set dummy "$ac_dir/$ac_word" "$@"
1733
826
if test -n "$CC"; then
1734
echo "$as_me:$LINENO: result: $CC" >&5
1735
echo "${ECHO_T}$CC" >&6
827
echo "$ac_t""$CC" 1>&6
1737
echo "$as_me:$LINENO: result: no" >&5
1738
echo "${ECHO_T}no" >&6
829
echo "$ac_t""no" 1>&6
1742
if test -z "$CC"; then
1743
if test -n "$ac_tool_prefix"; then
1746
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748
echo "$as_me:$LINENO: checking for $ac_word" >&5
1749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750
if test "${ac_cv_prog_CC+set}" = set; then
1751
echo $ECHO_N "(cached) $ECHO_C" >&6
832
if test -z "$CC"; then
835
# Extract the first word of "cl", so it can be a program name with args.
836
set dummy cl; ac_word=$2
837
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838
echo "configure:839: checking for $ac_word" >&5
839
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840
echo $ac_n "(cached) $ac_c" 1>&6
1753
842
if test -n "$CC"; then
1754
843
ac_cv_prog_CC="$CC" # Let the user override the test.
1756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760
test -z "$as_dir" && as_dir=.
1761
for ac_exec_ext in '' $ac_executable_extensions; do
1762
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773
if test -n "$CC"; then
1774
echo "$as_me:$LINENO: result: $CC" >&5
1775
echo "${ECHO_T}$CC" >&6
1777
echo "$as_me:$LINENO: result: no" >&5
1778
echo "${ECHO_T}no" >&6
1781
test -n "$CC" && break
845
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847
for ac_dir in $ac_dummy; do
848
test -z "$ac_dir" && ac_dir=.
849
if test -f $ac_dir/$ac_word; then
1784
if test -z "$CC"; then
1788
# Extract the first word of "$ac_prog", so it can be a program name with args.
1789
set dummy $ac_prog; ac_word=$2
1790
echo "$as_me:$LINENO: checking for $ac_word" >&5
1791
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793
echo $ECHO_N "(cached) $ECHO_C" >&6
1795
if test -n "$ac_ct_CC"; then
1796
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802
test -z "$as_dir" && as_dir=.
1803
for ac_exec_ext in '' $ac_executable_extensions; do
1804
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805
ac_cv_prog_ac_ct_CC="$ac_prog"
1806
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
858
if test -n "$CC"; then
859
echo "$ac_t""$CC" 1>&6
861
echo "$ac_t""no" 1>&6
1814
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815
if test -n "$ac_ct_CC"; then
1816
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817
echo "${ECHO_T}$ac_ct_CC" >&6
1819
echo "$as_me:$LINENO: result: no" >&5
1820
echo "${ECHO_T}no" >&6
1823
test -n "$ac_ct_CC" && break
1832
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833
See \`config.log' for more details." >&5
1834
echo "$as_me: error: no acceptable C compiler found in \$PATH
1835
See \`config.log' for more details." >&2;}
1836
{ (exit 1); exit 1; }; }
1838
# Provide some information about the compiler.
1839
echo "$as_me:$LINENO:" \
1840
"checking for C compiler version" >&5
1841
ac_compiler=`set X $ac_compile; echo $2`
1842
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843
(eval $ac_compiler --version </dev/null >&5) 2>&5
1845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846
(exit $ac_status); }
1847
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848
(eval $ac_compiler -v </dev/null >&5) 2>&5
1850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851
(exit $ac_status); }
1852
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853
(eval $ac_compiler -V </dev/null >&5) 2>&5
1855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856
(exit $ac_status); }
1858
cat >conftest.$ac_ext <<_ACEOF
1861
cat confdefs.h >>conftest.$ac_ext
1862
cat >>conftest.$ac_ext <<_ACEOF
1863
/* end confdefs.h. */
1873
ac_clean_files_save=$ac_clean_files
1874
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875
# Try to create an executable without -o first, disregard a.out.
1876
# It will help us diagnose broken compilers, and finding out an intuition
1878
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882
(eval $ac_link_default) 2>&5
1884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885
(exit $ac_status); }; then
1886
# Find the output, starting from the most likely. This scheme is
1887
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890
# Be careful to initialize this variable, since it used to be cached.
1891
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893
# b.out is created by i960 compilers.
1894
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896
test -f "$ac_file" || continue
1898
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901
# This is the source file.
1904
# We found the default executable, but exeext='' is most
1908
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909
# FIXME: I believe we export ac_cv_exeext for Libtool,
1910
# but it would be cool to find out if it's true. Does anybody
1911
# maintain Libtool? --akim.
1919
echo "$as_me: failed program was:" >&5
1920
sed 's/^/| /' conftest.$ac_ext >&5
1922
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923
See \`config.log' for more details." >&5
1924
echo "$as_me: error: C compiler cannot create executables
1925
See \`config.log' for more details." >&2;}
1926
{ (exit 77); exit 77; }; }
1929
ac_exeext=$ac_cv_exeext
1930
echo "$as_me:$LINENO: result: $ac_file" >&5
1931
echo "${ECHO_T}$ac_file" >&6
1933
# Check the compiler produces executables we can run. If not, either
1934
# the compiler is broken, or we cross compile.
1935
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938
# If not cross compiling, check that we can run a simple program.
1939
if test "$cross_compiling" != yes; then
1940
if { ac_try='./$ac_file'
1941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945
(exit $ac_status); }; }; then
866
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
869
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
870
echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
873
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874
ac_cpp='$CPP $CPPFLAGS'
875
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877
cross_compiling=$ac_cv_prog_cc_cross
879
cat > conftest.$ac_ext << EOF
881
#line 882 "configure"
882
#include "confdefs.h"
886
if { (eval echo configure:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
887
ac_cv_prog_cc_works=yes
888
# If we can't run a trivial program, we are probably using a cross compiler.
889
if (./conftest; exit) 2>/dev/null; then
890
ac_cv_prog_cc_cross=no
1948
if test "$cross_compiling" = maybe; then
1951
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952
If you meant to cross compile, use \`--host'.
1953
See \`config.log' for more details." >&5
1954
echo "$as_me: error: cannot run C compiled programs.
1955
If you meant to cross compile, use \`--host'.
1956
See \`config.log' for more details." >&2;}
1957
{ (exit 1); exit 1; }; }
892
ac_cv_prog_cc_cross=yes
1961
echo "$as_me:$LINENO: result: yes" >&5
1962
echo "${ECHO_T}yes" >&6
1964
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965
ac_clean_files=$ac_clean_files_save
1966
# Check the compiler produces executables we can run. If not, either
1967
# the compiler is broken, or we cross compile.
1968
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971
echo "${ECHO_T}$cross_compiling" >&6
1973
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976
(eval $ac_link) 2>&5
1978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979
(exit $ac_status); }; then
1980
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1981
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982
# work properly (i.e., refer to `conftest.exe'), while it won't with
1984
for ac_file in conftest.exe conftest conftest.*; do
1985
test -f "$ac_file" || continue
1987
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996
See \`config.log' for more details." >&5
1997
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998
See \`config.log' for more details." >&2;}
1999
{ (exit 1); exit 1; }; }
2002
rm -f conftest$ac_cv_exeext
2003
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004
echo "${ECHO_T}$ac_cv_exeext" >&6
2006
rm -f conftest.$ac_ext
2007
EXEEXT=$ac_cv_exeext
2009
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011
if test "${ac_cv_objext+set}" = set; then
2012
echo $ECHO_N "(cached) $ECHO_C" >&6
2014
cat >conftest.$ac_ext <<_ACEOF
2017
cat confdefs.h >>conftest.$ac_ext
2018
cat >>conftest.$ac_ext <<_ACEOF
2019
/* end confdefs.h. */
2029
rm -f conftest.o conftest.obj
2030
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031
(eval $ac_compile) 2>&5
2033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034
(exit $ac_status); }; then
2035
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2043
echo "$as_me: failed program was:" >&5
2044
sed 's/^/| /' conftest.$ac_ext >&5
2046
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047
See \`config.log' for more details." >&5
2048
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049
See \`config.log' for more details." >&2;}
2050
{ (exit 1); exit 1; }; }
2053
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056
echo "${ECHO_T}$ac_cv_objext" >&6
2057
OBJEXT=$ac_cv_objext
2059
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062
echo $ECHO_N "(cached) $ECHO_C" >&6
2064
cat >conftest.$ac_ext <<_ACEOF
2067
cat confdefs.h >>conftest.$ac_ext
2068
cat >>conftest.$ac_ext <<_ACEOF
2069
/* end confdefs.h. */
895
echo "configure: failed program was:" >&5
896
cat conftest.$ac_ext >&5
897
ac_cv_prog_cc_works=no
901
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
902
ac_cpp='$CPP $CPPFLAGS'
903
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
904
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
905
cross_compiling=$ac_cv_prog_cc_cross
907
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
908
if test $ac_cv_prog_cc_works = no; then
909
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
911
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
912
echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
913
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
914
cross_compiling=$ac_cv_prog_cc_cross
916
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
917
echo "configure:918: checking whether we are using GNU C" >&5
918
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
919
echo $ac_n "(cached) $ac_c" 1>&6
921
cat > conftest.c <<EOF
2082
rm -f conftest.$ac_objext
2083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084
(eval $ac_compile) 2>conftest.er1
2086
grep -v '^ *+' conftest.er1 >conftest.err
2088
cat conftest.err >&5
2089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090
(exit $ac_status); } &&
2091
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2092
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096
(exit $ac_status); }; } &&
2097
{ ac_try='test -s conftest.$ac_objext'
2098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102
(exit $ac_status); }; }; then
2105
echo "$as_me: failed program was:" >&5
2106
sed 's/^/| /' conftest.$ac_ext >&5
2110
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2111
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2114
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2115
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2116
GCC=`test $ac_compiler_gnu = yes && echo yes`
2117
ac_test_CFLAGS=${CFLAGS+set}
2118
ac_save_CFLAGS=$CFLAGS
2120
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2121
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2122
if test "${ac_cv_prog_cc_g+set}" = set; then
2123
echo $ECHO_N "(cached) $ECHO_C" >&6
2125
cat >conftest.$ac_ext <<_ACEOF
2128
cat confdefs.h >>conftest.$ac_ext
2129
cat >>conftest.$ac_ext <<_ACEOF
2130
/* end confdefs.h. */
2140
rm -f conftest.$ac_objext
2141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142
(eval $ac_compile) 2>conftest.er1
2144
grep -v '^ *+' conftest.er1 >conftest.err
2146
cat conftest.err >&5
2147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148
(exit $ac_status); } &&
2149
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154
(exit $ac_status); }; } &&
2155
{ ac_try='test -s conftest.$ac_objext'
2156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160
(exit $ac_status); }; }; then
926
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
933
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
935
if test $ac_cv_prog_gcc = yes; then
941
ac_test_CFLAGS="${CFLAGS+set}"
942
ac_save_CFLAGS="$CFLAGS"
944
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
945
echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
946
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
947
echo $ac_n "(cached) $ac_c" 1>&6
949
echo 'void f(){}' > conftest.c
950
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2161
951
ac_cv_prog_cc_g=yes
2163
echo "$as_me: failed program was:" >&5
2164
sed 's/^/| /' conftest.$ac_ext >&5
2168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2170
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
959
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2172
960
if test "$ac_test_CFLAGS" = set; then
2173
CFLAGS=$ac_save_CFLAGS
961
CFLAGS="$ac_save_CFLAGS"
2174
962
elif test $ac_cv_prog_cc_g = yes; then
2175
963
if test "$GCC" = yes; then
5361
2750
######################################################################
5362
2751
# required by Fischman's ISC 4.0
5363
2752
unset ac_cv_func_socket
5364
echo "$as_me:$LINENO: checking for socket" >&5
5365
echo $ECHO_N "checking for socket... $ECHO_C" >&6
5366
if test "${ac_cv_func_socket+set}" = set; then
5367
echo $ECHO_N "(cached) $ECHO_C" >&6
5369
cat >conftest.$ac_ext <<_ACEOF
5372
cat confdefs.h >>conftest.$ac_ext
5373
cat >>conftest.$ac_ext <<_ACEOF
5374
/* end confdefs.h. */
5375
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
5376
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5377
#define socket innocuous_socket
5379
/* System header to define __stub macros and hopefully few prototypes,
5380
which can conflict with char socket (); below.
5381
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5382
<limits.h> exists even on freestanding compilers. */
5385
# include <limits.h>
5387
# include <assert.h>
5392
/* Override any gcc2 internal prototype to avoid an error. */
5397
/* We use char because int might match the return type of a gcc2
5398
builtin and then its argument prototype would still apply. */
5400
/* The GNU C library defines this for functions which it implements
5401
to always fail with ENOSYS. Some functions are actually named
5402
something starting with __ and the normal name is an alias. */
5403
#if defined (__stub_socket) || defined (__stub___socket)
5406
char (*f) () = socket;
5420
rm -f conftest.$ac_objext conftest$ac_exeext
5421
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422
(eval $ac_link) 2>conftest.er1
5424
grep -v '^ *+' conftest.er1 >conftest.err
5426
cat conftest.err >&5
5427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428
(exit $ac_status); } &&
5429
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434
(exit $ac_status); }; } &&
5435
{ ac_try='test -s conftest$ac_exeext'
5436
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440
(exit $ac_status); }; }; then
5441
ac_cv_func_socket=yes
5443
echo "$as_me: failed program was:" >&5
5444
sed 's/^/| /' conftest.$ac_ext >&5
5446
ac_cv_func_socket=no
5448
rm -f conftest.err conftest.$ac_objext \
5449
conftest$ac_exeext conftest.$ac_ext
5451
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
5452
echo "${ECHO_T}$ac_cv_func_socket" >&6
5453
if test $ac_cv_func_socket = yes; then
5459
if test $socket -eq 0 ; then
5460
unset ac_cv_lib_inet_socket
5461
echo "$as_me:$LINENO: checking for socket in -linet" >&5
5462
echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
5463
if test "${ac_cv_lib_inet_socket+set}" = set; then
5464
echo $ECHO_N "(cached) $ECHO_C" >&6
5466
ac_check_lib_save_LIBS=$LIBS
5468
cat >conftest.$ac_ext <<_ACEOF
5471
cat confdefs.h >>conftest.$ac_ext
5472
cat >>conftest.$ac_ext <<_ACEOF
5473
/* end confdefs.h. */
5475
/* Override any gcc2 internal prototype to avoid an error. */
5479
/* We use char because int might match the return type of a gcc2
5480
builtin and then its argument prototype would still apply. */
5490
rm -f conftest.$ac_objext conftest$ac_exeext
5491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492
(eval $ac_link) 2>conftest.er1
5494
grep -v '^ *+' conftest.er1 >conftest.err
5496
cat conftest.err >&5
5497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498
(exit $ac_status); } &&
5499
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504
(exit $ac_status); }; } &&
5505
{ ac_try='test -s conftest$ac_exeext'
5506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510
(exit $ac_status); }; }; then
5511
ac_cv_lib_inet_socket=yes
5513
echo "$as_me: failed program was:" >&5
5514
sed 's/^/| /' conftest.$ac_ext >&5
5516
ac_cv_lib_inet_socket=no
5518
rm -f conftest.err conftest.$ac_objext \
5519
conftest$ac_exeext conftest.$ac_ext
5520
LIBS=$ac_check_lib_save_LIBS
5522
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
5523
echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
5524
if test $ac_cv_lib_inet_socket = yes; then
5529
# save results and retry for Tcl
5531
LIBS=$EXP_AND_TCL_LIBS
5532
unset ac_cv_func_socket
5533
echo "$as_me:$LINENO: checking for socket" >&5
5534
echo $ECHO_N "checking for socket... $ECHO_C" >&6
5535
if test "${ac_cv_func_socket+set}" = set; then
5536
echo $ECHO_N "(cached) $ECHO_C" >&6
5538
cat >conftest.$ac_ext <<_ACEOF
5541
cat confdefs.h >>conftest.$ac_ext
5542
cat >>conftest.$ac_ext <<_ACEOF
5543
/* end confdefs.h. */
5544
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
5545
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5546
#define socket innocuous_socket
5548
/* System header to define __stub macros and hopefully few prototypes,
5549
which can conflict with char socket (); below.
5550
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5551
<limits.h> exists even on freestanding compilers. */
5554
# include <limits.h>
5556
# include <assert.h>
5561
/* Override any gcc2 internal prototype to avoid an error. */
5566
/* We use char because int might match the return type of a gcc2
5567
builtin and then its argument prototype would still apply. */
5569
/* The GNU C library defines this for functions which it implements
5570
to always fail with ENOSYS. Some functions are actually named
5571
something starting with __ and the normal name is an alias. */
5572
#if defined (__stub_socket) || defined (__stub___socket)
5575
char (*f) () = socket;
5589
rm -f conftest.$ac_objext conftest$ac_exeext
5590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591
(eval $ac_link) 2>conftest.er1
5593
grep -v '^ *+' conftest.er1 >conftest.err
5595
cat conftest.err >&5
5596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597
(exit $ac_status); } &&
5598
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603
(exit $ac_status); }; } &&
5604
{ ac_try='test -s conftest$ac_exeext'
5605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
(exit $ac_status); }; }; then
5610
ac_cv_func_socket=yes
5612
echo "$as_me: failed program was:" >&5
5613
sed 's/^/| /' conftest.$ac_ext >&5
5615
ac_cv_func_socket=no
5617
rm -f conftest.err conftest.$ac_objext \
5618
conftest$ac_exeext conftest.$ac_ext
5620
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
5621
echo "${ECHO_T}$ac_cv_func_socket" >&6
5622
if test $ac_cv_func_socket = yes; then
5628
if test $socket -eq 0 ; then
5629
unset ac_cv_lib_inet_socket
5630
echo "$as_me:$LINENO: checking for socket in -linet" >&5
5631
echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
5632
if test "${ac_cv_lib_inet_socket+set}" = set; then
5633
echo $ECHO_N "(cached) $ECHO_C" >&6
5635
ac_check_lib_save_LIBS=$LIBS
5637
cat >conftest.$ac_ext <<_ACEOF
5640
cat confdefs.h >>conftest.$ac_ext
5641
cat >>conftest.$ac_ext <<_ACEOF
5642
/* end confdefs.h. */
5644
/* Override any gcc2 internal prototype to avoid an error. */
5648
/* We use char because int might match the return type of a gcc2
5649
builtin and then its argument prototype would still apply. */
5659
rm -f conftest.$ac_objext conftest$ac_exeext
5660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5661
(eval $ac_link) 2>conftest.er1
5663
grep -v '^ *+' conftest.er1 >conftest.err
5665
cat conftest.err >&5
5666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667
(exit $ac_status); } &&
5668
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
(exit $ac_status); }; } &&
5674
{ ac_try='test -s conftest$ac_exeext'
5675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679
(exit $ac_status); }; }; then
5680
ac_cv_lib_inet_socket=yes
5682
echo "$as_me: failed program was:" >&5
5683
sed 's/^/| /' conftest.$ac_ext >&5
5685
ac_cv_lib_inet_socket=no
5687
rm -f conftest.err conftest.$ac_objext \
5688
conftest$ac_exeext conftest.$ac_ext
5689
LIBS=$ac_check_lib_save_LIBS
5691
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
5692
echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
5693
if test $ac_cv_lib_inet_socket = yes; then
5698
# save Tcl results and retry for Tk
5699
EXP_AND_TCL_LIBS=$LIBS
5700
LIBS=$EXP_AND_TK_LIBS
5701
unset ac_cv_func_socket
5702
echo "$as_me:$LINENO: checking for socket" >&5
5703
echo $ECHO_N "checking for socket... $ECHO_C" >&6
5704
if test "${ac_cv_func_socket+set}" = set; then
5705
echo $ECHO_N "(cached) $ECHO_C" >&6
5707
cat >conftest.$ac_ext <<_ACEOF
5710
cat confdefs.h >>conftest.$ac_ext
5711
cat >>conftest.$ac_ext <<_ACEOF
5712
/* end confdefs.h. */
5713
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
5714
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5715
#define socket innocuous_socket
5717
/* System header to define __stub macros and hopefully few prototypes,
5718
which can conflict with char socket (); below.
5719
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5720
<limits.h> exists even on freestanding compilers. */
5723
# include <limits.h>
5725
# include <assert.h>
5730
/* Override any gcc2 internal prototype to avoid an error. */
5735
/* We use char because int might match the return type of a gcc2
5736
builtin and then its argument prototype would still apply. */
5738
/* The GNU C library defines this for functions which it implements
5739
to always fail with ENOSYS. Some functions are actually named
5740
something starting with __ and the normal name is an alias. */
5741
#if defined (__stub_socket) || defined (__stub___socket)
5744
char (*f) () = socket;
5758
rm -f conftest.$ac_objext conftest$ac_exeext
5759
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760
(eval $ac_link) 2>conftest.er1
5762
grep -v '^ *+' conftest.er1 >conftest.err
5764
cat conftest.err >&5
5765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766
(exit $ac_status); } &&
5767
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5768
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772
(exit $ac_status); }; } &&
5773
{ ac_try='test -s conftest$ac_exeext'
5774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778
(exit $ac_status); }; }; then
5779
ac_cv_func_socket=yes
5781
echo "$as_me: failed program was:" >&5
5782
sed 's/^/| /' conftest.$ac_ext >&5
5784
ac_cv_func_socket=no
5786
rm -f conftest.err conftest.$ac_objext \
5787
conftest$ac_exeext conftest.$ac_ext
5789
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
5790
echo "${ECHO_T}$ac_cv_func_socket" >&6
5791
if test $ac_cv_func_socket = yes; then
5797
if test $socket -eq 0 ; then
5798
unset ac_cv_lib_inet_socket
5799
echo "$as_me:$LINENO: checking for socket in -linet" >&5
5800
echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
5801
if test "${ac_cv_lib_inet_socket+set}" = set; then
5802
echo $ECHO_N "(cached) $ECHO_C" >&6
5804
ac_check_lib_save_LIBS=$LIBS
5806
cat >conftest.$ac_ext <<_ACEOF
5809
cat confdefs.h >>conftest.$ac_ext
5810
cat >>conftest.$ac_ext <<_ACEOF
5811
/* end confdefs.h. */
5813
/* Override any gcc2 internal prototype to avoid an error. */
5817
/* We use char because int might match the return type of a gcc2
5818
builtin and then its argument prototype would still apply. */
5828
rm -f conftest.$ac_objext conftest$ac_exeext
5829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830
(eval $ac_link) 2>conftest.er1
5832
grep -v '^ *+' conftest.er1 >conftest.err
5834
cat conftest.err >&5
5835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836
(exit $ac_status); } &&
5837
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842
(exit $ac_status); }; } &&
5843
{ ac_try='test -s conftest$ac_exeext'
5844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848
(exit $ac_status); }; }; then
5849
ac_cv_lib_inet_socket=yes
5851
echo "$as_me: failed program was:" >&5
5852
sed 's/^/| /' conftest.$ac_ext >&5
5854
ac_cv_lib_inet_socket=no
5856
rm -f conftest.err conftest.$ac_objext \
5857
conftest$ac_exeext conftest.$ac_ext
5858
LIBS=$ac_check_lib_save_LIBS
5860
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
5861
echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
5862
if test $ac_cv_lib_inet_socket = yes; then
5867
# save Tk results and reset for Expect
5868
EXP_AND_TK_LIBS=$LIBS
5871
######################################################################
5872
unset ac_cv_func_select
5873
echo "$as_me:$LINENO: checking for select" >&5
5874
echo $ECHO_N "checking for select... $ECHO_C" >&6
5875
if test "${ac_cv_func_select+set}" = set; then
5876
echo $ECHO_N "(cached) $ECHO_C" >&6
5878
cat >conftest.$ac_ext <<_ACEOF
5881
cat confdefs.h >>conftest.$ac_ext
5882
cat >>conftest.$ac_ext <<_ACEOF
5883
/* end confdefs.h. */
5884
/* Define select to an innocuous variant, in case <limits.h> declares select.
5885
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5886
#define select innocuous_select
5888
/* System header to define __stub macros and hopefully few prototypes,
5889
which can conflict with char select (); below.
5890
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891
<limits.h> exists even on freestanding compilers. */
5894
# include <limits.h>
5896
# include <assert.h>
5901
/* Override any gcc2 internal prototype to avoid an error. */
5906
/* We use char because int might match the return type of a gcc2
5907
builtin and then its argument prototype would still apply. */
5909
/* The GNU C library defines this for functions which it implements
5910
to always fail with ENOSYS. Some functions are actually named
5911
something starting with __ and the normal name is an alias. */
5912
#if defined (__stub_select) || defined (__stub___select)
5915
char (*f) () = select;
5929
rm -f conftest.$ac_objext conftest$ac_exeext
5930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931
(eval $ac_link) 2>conftest.er1
5933
grep -v '^ *+' conftest.er1 >conftest.err
5935
cat conftest.err >&5
5936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937
(exit $ac_status); } &&
5938
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
(exit $ac_status); }; } &&
5944
{ ac_try='test -s conftest$ac_exeext'
5945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949
(exit $ac_status); }; }; then
5950
ac_cv_func_select=yes
5952
echo "$as_me: failed program was:" >&5
5953
sed 's/^/| /' conftest.$ac_ext >&5
5955
ac_cv_func_select=no
5957
rm -f conftest.err conftest.$ac_objext \
5958
conftest$ac_exeext conftest.$ac_ext
5960
echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
5961
echo "${ECHO_T}$ac_cv_func_select" >&6
5962
if test $ac_cv_func_select = yes; then
5968
if test $select -eq 0 ; then
5969
unset ac_cv_lib_inet_select
5970
echo "$as_me:$LINENO: checking for select in -linet" >&5
5971
echo $ECHO_N "checking for select in -linet... $ECHO_C" >&6
5972
if test "${ac_cv_lib_inet_select+set}" = set; then
5973
echo $ECHO_N "(cached) $ECHO_C" >&6
5975
ac_check_lib_save_LIBS=$LIBS
5977
cat >conftest.$ac_ext <<_ACEOF
5980
cat confdefs.h >>conftest.$ac_ext
5981
cat >>conftest.$ac_ext <<_ACEOF
5982
/* end confdefs.h. */
5984
/* Override any gcc2 internal prototype to avoid an error. */
5988
/* We use char because int might match the return type of a gcc2
5989
builtin and then its argument prototype would still apply. */
5999
rm -f conftest.$ac_objext conftest$ac_exeext
6000
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001
(eval $ac_link) 2>conftest.er1
6003
grep -v '^ *+' conftest.er1 >conftest.err
6005
cat conftest.err >&5
6006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007
(exit $ac_status); } &&
6008
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013
(exit $ac_status); }; } &&
6014
{ ac_try='test -s conftest$ac_exeext'
6015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019
(exit $ac_status); }; }; then
6020
ac_cv_lib_inet_select=yes
6022
echo "$as_me: failed program was:" >&5
6023
sed 's/^/| /' conftest.$ac_ext >&5
6025
ac_cv_lib_inet_select=no
6027
rm -f conftest.err conftest.$ac_objext \
6028
conftest$ac_exeext conftest.$ac_ext
6029
LIBS=$ac_check_lib_save_LIBS
6031
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_select" >&5
6032
echo "${ECHO_T}$ac_cv_lib_inet_select" >&6
6033
if test $ac_cv_lib_inet_select = yes; then
6038
# save results and retry for Tcl
6040
LIBS=$EXP_AND_TCL_LIBS
6041
unset ac_cv_func_select
6042
echo "$as_me:$LINENO: checking for select" >&5
6043
echo $ECHO_N "checking for select... $ECHO_C" >&6
6044
if test "${ac_cv_func_select+set}" = set; then
6045
echo $ECHO_N "(cached) $ECHO_C" >&6
6047
cat >conftest.$ac_ext <<_ACEOF
6050
cat confdefs.h >>conftest.$ac_ext
6051
cat >>conftest.$ac_ext <<_ACEOF
6052
/* end confdefs.h. */
6053
/* Define select to an innocuous variant, in case <limits.h> declares select.
6054
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6055
#define select innocuous_select
6057
/* System header to define __stub macros and hopefully few prototypes,
6058
which can conflict with char select (); below.
6059
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060
<limits.h> exists even on freestanding compilers. */
6063
# include <limits.h>
6065
# include <assert.h>
6070
/* Override any gcc2 internal prototype to avoid an error. */
6075
/* We use char because int might match the return type of a gcc2
6076
builtin and then its argument prototype would still apply. */
6078
/* The GNU C library defines this for functions which it implements
6079
to always fail with ENOSYS. Some functions are actually named
6080
something starting with __ and the normal name is an alias. */
6081
#if defined (__stub_select) || defined (__stub___select)
6084
char (*f) () = select;
6098
rm -f conftest.$ac_objext conftest$ac_exeext
6099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100
(eval $ac_link) 2>conftest.er1
6102
grep -v '^ *+' conftest.er1 >conftest.err
6104
cat conftest.err >&5
6105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106
(exit $ac_status); } &&
6107
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112
(exit $ac_status); }; } &&
6113
{ ac_try='test -s conftest$ac_exeext'
6114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118
(exit $ac_status); }; }; then
6119
ac_cv_func_select=yes
6121
echo "$as_me: failed program was:" >&5
6122
sed 's/^/| /' conftest.$ac_ext >&5
6124
ac_cv_func_select=no
6126
rm -f conftest.err conftest.$ac_objext \
6127
conftest$ac_exeext conftest.$ac_ext
6129
echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
6130
echo "${ECHO_T}$ac_cv_func_select" >&6
6131
if test $ac_cv_func_select = yes; then
6137
if test $select -eq 0 ; then
6138
unset ac_cv_lib_inet_select
6139
echo "$as_me:$LINENO: checking for select in -linet" >&5
6140
echo $ECHO_N "checking for select in -linet... $ECHO_C" >&6
6141
if test "${ac_cv_lib_inet_select+set}" = set; then
6142
echo $ECHO_N "(cached) $ECHO_C" >&6
6144
ac_check_lib_save_LIBS=$LIBS
6146
cat >conftest.$ac_ext <<_ACEOF
6149
cat confdefs.h >>conftest.$ac_ext
6150
cat >>conftest.$ac_ext <<_ACEOF
6151
/* end confdefs.h. */
6153
/* Override any gcc2 internal prototype to avoid an error. */
6157
/* We use char because int might match the return type of a gcc2
6158
builtin and then its argument prototype would still apply. */
6168
rm -f conftest.$ac_objext conftest$ac_exeext
6169
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170
(eval $ac_link) 2>conftest.er1
6172
grep -v '^ *+' conftest.er1 >conftest.err
6174
cat conftest.err >&5
6175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176
(exit $ac_status); } &&
6177
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182
(exit $ac_status); }; } &&
6183
{ ac_try='test -s conftest$ac_exeext'
6184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188
(exit $ac_status); }; }; then
6189
ac_cv_lib_inet_select=yes
6191
echo "$as_me: failed program was:" >&5
6192
sed 's/^/| /' conftest.$ac_ext >&5
6194
ac_cv_lib_inet_select=no
6196
rm -f conftest.err conftest.$ac_objext \
6197
conftest$ac_exeext conftest.$ac_ext
6198
LIBS=$ac_check_lib_save_LIBS
6200
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_select" >&5
6201
echo "${ECHO_T}$ac_cv_lib_inet_select" >&6
6202
if test $ac_cv_lib_inet_select = yes; then
6207
# save Tcl results and retry for Tk
6208
EXP_AND_TCL_LIBS=$LIBS
6209
LIBS=$EXP_AND_TK_LIBS
6210
unset ac_cv_func_select
6211
echo "$as_me:$LINENO: checking for select" >&5
6212
echo $ECHO_N "checking for select... $ECHO_C" >&6
6213
if test "${ac_cv_func_select+set}" = set; then
6214
echo $ECHO_N "(cached) $ECHO_C" >&6
6216
cat >conftest.$ac_ext <<_ACEOF
6219
cat confdefs.h >>conftest.$ac_ext
6220
cat >>conftest.$ac_ext <<_ACEOF
6221
/* end confdefs.h. */
6222
/* Define select to an innocuous variant, in case <limits.h> declares select.
6223
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6224
#define select innocuous_select
6226
/* System header to define __stub macros and hopefully few prototypes,
6227
which can conflict with char select (); below.
6228
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229
<limits.h> exists even on freestanding compilers. */
6232
# include <limits.h>
6234
# include <assert.h>
6239
/* Override any gcc2 internal prototype to avoid an error. */
6244
/* We use char because int might match the return type of a gcc2
6245
builtin and then its argument prototype would still apply. */
6247
/* The GNU C library defines this for functions which it implements
6248
to always fail with ENOSYS. Some functions are actually named
6249
something starting with __ and the normal name is an alias. */
6250
#if defined (__stub_select) || defined (__stub___select)
6253
char (*f) () = select;
6267
rm -f conftest.$ac_objext conftest$ac_exeext
6268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6269
(eval $ac_link) 2>conftest.er1
6271
grep -v '^ *+' conftest.er1 >conftest.err
6273
cat conftest.err >&5
6274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275
(exit $ac_status); } &&
6276
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281
(exit $ac_status); }; } &&
6282
{ ac_try='test -s conftest$ac_exeext'
6283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287
(exit $ac_status); }; }; then
6288
ac_cv_func_select=yes
6290
echo "$as_me: failed program was:" >&5
6291
sed 's/^/| /' conftest.$ac_ext >&5
6293
ac_cv_func_select=no
6295
rm -f conftest.err conftest.$ac_objext \
6296
conftest$ac_exeext conftest.$ac_ext
6298
echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
6299
echo "${ECHO_T}$ac_cv_func_select" >&6
6300
if test $ac_cv_func_select = yes; then
6306
if test $select -eq 0 ; then
6307
unset ac_cv_lib_inet_select
6308
echo "$as_me:$LINENO: checking for select in -linet" >&5
6309
echo $ECHO_N "checking for select in -linet... $ECHO_C" >&6
6310
if test "${ac_cv_lib_inet_select+set}" = set; then
6311
echo $ECHO_N "(cached) $ECHO_C" >&6
6313
ac_check_lib_save_LIBS=$LIBS
6315
cat >conftest.$ac_ext <<_ACEOF
6318
cat confdefs.h >>conftest.$ac_ext
6319
cat >>conftest.$ac_ext <<_ACEOF
6320
/* end confdefs.h. */
6322
/* Override any gcc2 internal prototype to avoid an error. */
6326
/* We use char because int might match the return type of a gcc2
6327
builtin and then its argument prototype would still apply. */
6337
rm -f conftest.$ac_objext conftest$ac_exeext
6338
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339
(eval $ac_link) 2>conftest.er1
6341
grep -v '^ *+' conftest.er1 >conftest.err
6343
cat conftest.err >&5
6344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345
(exit $ac_status); } &&
6346
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351
(exit $ac_status); }; } &&
6352
{ ac_try='test -s conftest$ac_exeext'
6353
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357
(exit $ac_status); }; }; then
6358
ac_cv_lib_inet_select=yes
6360
echo "$as_me: failed program was:" >&5
6361
sed 's/^/| /' conftest.$ac_ext >&5
6363
ac_cv_lib_inet_select=no
6365
rm -f conftest.err conftest.$ac_objext \
6366
conftest$ac_exeext conftest.$ac_ext
6367
LIBS=$ac_check_lib_save_LIBS
6369
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_select" >&5
6370
echo "${ECHO_T}$ac_cv_lib_inet_select" >&6
6371
if test $ac_cv_lib_inet_select = yes; then
6376
# save Tk results and reset for Expect
6377
EXP_AND_TK_LIBS=$LIBS
6380
######################################################################
6381
unset ac_cv_func_getpseudotty
6382
echo "$as_me:$LINENO: checking for getpseudotty" >&5
6383
echo $ECHO_N "checking for getpseudotty... $ECHO_C" >&6
6384
if test "${ac_cv_func_getpseudotty+set}" = set; then
6385
echo $ECHO_N "(cached) $ECHO_C" >&6
6387
cat >conftest.$ac_ext <<_ACEOF
6390
cat confdefs.h >>conftest.$ac_ext
6391
cat >>conftest.$ac_ext <<_ACEOF
6392
/* end confdefs.h. */
6393
/* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty.
6394
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6395
#define getpseudotty innocuous_getpseudotty
6397
/* System header to define __stub macros and hopefully few prototypes,
6398
which can conflict with char getpseudotty (); below.
6399
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400
<limits.h> exists even on freestanding compilers. */
6403
# include <limits.h>
6405
# include <assert.h>
6410
/* Override any gcc2 internal prototype to avoid an error. */
6415
/* We use char because int might match the return type of a gcc2
6416
builtin and then its argument prototype would still apply. */
6417
char getpseudotty ();
6418
/* The GNU C library defines this for functions which it implements
6419
to always fail with ENOSYS. Some functions are actually named
6420
something starting with __ and the normal name is an alias. */
6421
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
6424
char (*f) () = getpseudotty;
6433
return f != getpseudotty;
6438
rm -f conftest.$ac_objext conftest$ac_exeext
6439
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440
(eval $ac_link) 2>conftest.er1
6442
grep -v '^ *+' conftest.er1 >conftest.err
6444
cat conftest.err >&5
6445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446
(exit $ac_status); } &&
6447
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452
(exit $ac_status); }; } &&
6453
{ ac_try='test -s conftest$ac_exeext'
6454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458
(exit $ac_status); }; }; then
6459
ac_cv_func_getpseudotty=yes
6461
echo "$as_me: failed program was:" >&5
6462
sed 's/^/| /' conftest.$ac_ext >&5
6464
ac_cv_func_getpseudotty=no
6466
rm -f conftest.err conftest.$ac_objext \
6467
conftest$ac_exeext conftest.$ac_ext
6469
echo "$as_me:$LINENO: result: $ac_cv_func_getpseudotty" >&5
6470
echo "${ECHO_T}$ac_cv_func_getpseudotty" >&6
6471
if test $ac_cv_func_getpseudotty = yes; then
6477
if test $getpseudotty -eq 0 ; then
6478
unset ac_cv_lib_seq_getpseudotty
6480
echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
6481
echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
6482
if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
6483
echo $ECHO_N "(cached) $ECHO_C" >&6
6485
ac_check_lib_save_LIBS=$LIBS
6487
cat >conftest.$ac_ext <<_ACEOF
6490
cat confdefs.h >>conftest.$ac_ext
6491
cat >>conftest.$ac_ext <<_ACEOF
6492
/* end confdefs.h. */
6494
/* Override any gcc2 internal prototype to avoid an error. */
6498
/* We use char because int might match the return type of a gcc2
6499
builtin and then its argument prototype would still apply. */
6500
char getpseudotty ();
6509
rm -f conftest.$ac_objext conftest$ac_exeext
6510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511
(eval $ac_link) 2>conftest.er1
6513
grep -v '^ *+' conftest.er1 >conftest.err
6515
cat conftest.err >&5
6516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517
(exit $ac_status); } &&
6518
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523
(exit $ac_status); }; } &&
6524
{ ac_try='test -s conftest$ac_exeext'
6525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529
(exit $ac_status); }; }; then
6530
ac_cv_lib_seq_getpseudotty=yes
6532
echo "$as_me: failed program was:" >&5
6533
sed 's/^/| /' conftest.$ac_ext >&5
6535
ac_cv_lib_seq_getpseudotty=no
6537
rm -f conftest.err conftest.$ac_objext \
6538
conftest$ac_exeext conftest.$ac_ext
6539
LIBS=$ac_check_lib_save_LIBS
6541
echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
6542
echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
6543
if test $ac_cv_lib_seq_getpseudotty = yes; then
6544
cat >>confdefs.h <<_ACEOF
6545
#define HAVE_LIBSEQ 1
6553
# save results and retry for Tcl
6555
LIBS=$EXP_AND_TCL_LIBS
6556
unset ac_cv_func_getpseudotty
6557
echo "$as_me:$LINENO: checking for getpseudotty" >&5
6558
echo $ECHO_N "checking for getpseudotty... $ECHO_C" >&6
6559
if test "${ac_cv_func_getpseudotty+set}" = set; then
6560
echo $ECHO_N "(cached) $ECHO_C" >&6
6562
cat >conftest.$ac_ext <<_ACEOF
6565
cat confdefs.h >>conftest.$ac_ext
6566
cat >>conftest.$ac_ext <<_ACEOF
6567
/* end confdefs.h. */
6568
/* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty.
6569
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6570
#define getpseudotty innocuous_getpseudotty
6572
/* System header to define __stub macros and hopefully few prototypes,
6573
which can conflict with char getpseudotty (); below.
6574
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6575
<limits.h> exists even on freestanding compilers. */
6578
# include <limits.h>
6580
# include <assert.h>
6585
/* Override any gcc2 internal prototype to avoid an error. */
6590
/* We use char because int might match the return type of a gcc2
6591
builtin and then its argument prototype would still apply. */
6592
char getpseudotty ();
6593
/* The GNU C library defines this for functions which it implements
6594
to always fail with ENOSYS. Some functions are actually named
6595
something starting with __ and the normal name is an alias. */
6596
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
6599
char (*f) () = getpseudotty;
6608
return f != getpseudotty;
6613
rm -f conftest.$ac_objext conftest$ac_exeext
6614
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615
(eval $ac_link) 2>conftest.er1
6617
grep -v '^ *+' conftest.er1 >conftest.err
6619
cat conftest.err >&5
6620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621
(exit $ac_status); } &&
6622
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627
(exit $ac_status); }; } &&
6628
{ ac_try='test -s conftest$ac_exeext'
6629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633
(exit $ac_status); }; }; then
6634
ac_cv_func_getpseudotty=yes
6636
echo "$as_me: failed program was:" >&5
6637
sed 's/^/| /' conftest.$ac_ext >&5
6639
ac_cv_func_getpseudotty=no
6641
rm -f conftest.err conftest.$ac_objext \
6642
conftest$ac_exeext conftest.$ac_ext
6644
echo "$as_me:$LINENO: result: $ac_cv_func_getpseudotty" >&5
6645
echo "${ECHO_T}$ac_cv_func_getpseudotty" >&6
6646
if test $ac_cv_func_getpseudotty = yes; then
6652
if test $getpseudotty -eq 0 ; then
6653
unset ac_cv_lib_seq_getpseudotty
6655
echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
6656
echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
6657
if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
6658
echo $ECHO_N "(cached) $ECHO_C" >&6
6660
ac_check_lib_save_LIBS=$LIBS
6662
cat >conftest.$ac_ext <<_ACEOF
6665
cat confdefs.h >>conftest.$ac_ext
6666
cat >>conftest.$ac_ext <<_ACEOF
6667
/* end confdefs.h. */
6669
/* Override any gcc2 internal prototype to avoid an error. */
6673
/* We use char because int might match the return type of a gcc2
6674
builtin and then its argument prototype would still apply. */
6675
char getpseudotty ();
6684
rm -f conftest.$ac_objext conftest$ac_exeext
6685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686
(eval $ac_link) 2>conftest.er1
6688
grep -v '^ *+' conftest.er1 >conftest.err
6690
cat conftest.err >&5
6691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692
(exit $ac_status); } &&
6693
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698
(exit $ac_status); }; } &&
6699
{ ac_try='test -s conftest$ac_exeext'
6700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704
(exit $ac_status); }; }; then
6705
ac_cv_lib_seq_getpseudotty=yes
6707
echo "$as_me: failed program was:" >&5
6708
sed 's/^/| /' conftest.$ac_ext >&5
6710
ac_cv_lib_seq_getpseudotty=no
6712
rm -f conftest.err conftest.$ac_objext \
6713
conftest$ac_exeext conftest.$ac_ext
6714
LIBS=$ac_check_lib_save_LIBS
6716
echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
6717
echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
6718
if test $ac_cv_lib_seq_getpseudotty = yes; then
6719
cat >>confdefs.h <<_ACEOF
6720
#define HAVE_LIBSEQ 1
6728
# save Tcl results and retry for Tk
6729
EXP_AND_TCL_LIBS=$LIBS
6730
LIBS=$EXP_AND_TK_LIBS
6731
unset ac_cv_func_getpseudotty
6732
echo "$as_me:$LINENO: checking for getpseudotty" >&5
6733
echo $ECHO_N "checking for getpseudotty... $ECHO_C" >&6
6734
if test "${ac_cv_func_getpseudotty+set}" = set; then
6735
echo $ECHO_N "(cached) $ECHO_C" >&6
6737
cat >conftest.$ac_ext <<_ACEOF
6740
cat confdefs.h >>conftest.$ac_ext
6741
cat >>conftest.$ac_ext <<_ACEOF
6742
/* end confdefs.h. */
6743
/* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty.
6744
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6745
#define getpseudotty innocuous_getpseudotty
6747
/* System header to define __stub macros and hopefully few prototypes,
6748
which can conflict with char getpseudotty (); below.
6749
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6750
<limits.h> exists even on freestanding compilers. */
6753
# include <limits.h>
6755
# include <assert.h>
6760
/* Override any gcc2 internal prototype to avoid an error. */
6765
/* We use char because int might match the return type of a gcc2
6766
builtin and then its argument prototype would still apply. */
6767
char getpseudotty ();
6768
/* The GNU C library defines this for functions which it implements
6769
to always fail with ENOSYS. Some functions are actually named
6770
something starting with __ and the normal name is an alias. */
6771
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
6774
char (*f) () = getpseudotty;
6783
return f != getpseudotty;
6788
rm -f conftest.$ac_objext conftest$ac_exeext
6789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790
(eval $ac_link) 2>conftest.er1
6792
grep -v '^ *+' conftest.er1 >conftest.err
6794
cat conftest.err >&5
6795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796
(exit $ac_status); } &&
6797
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802
(exit $ac_status); }; } &&
6803
{ ac_try='test -s conftest$ac_exeext'
6804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808
(exit $ac_status); }; }; then
6809
ac_cv_func_getpseudotty=yes
6811
echo "$as_me: failed program was:" >&5
6812
sed 's/^/| /' conftest.$ac_ext >&5
6814
ac_cv_func_getpseudotty=no
6816
rm -f conftest.err conftest.$ac_objext \
6817
conftest$ac_exeext conftest.$ac_ext
6819
echo "$as_me:$LINENO: result: $ac_cv_func_getpseudotty" >&5
6820
echo "${ECHO_T}$ac_cv_func_getpseudotty" >&6
6821
if test $ac_cv_func_getpseudotty = yes; then
6827
if test $getpseudotty -eq 0 ; then
6828
unset ac_cv_lib_seq_getpseudotty
6830
echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
6831
echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
6832
if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
6833
echo $ECHO_N "(cached) $ECHO_C" >&6
6835
ac_check_lib_save_LIBS=$LIBS
6837
cat >conftest.$ac_ext <<_ACEOF
6840
cat confdefs.h >>conftest.$ac_ext
6841
cat >>conftest.$ac_ext <<_ACEOF
6842
/* end confdefs.h. */
6844
/* Override any gcc2 internal prototype to avoid an error. */
6848
/* We use char because int might match the return type of a gcc2
6849
builtin and then its argument prototype would still apply. */
6850
char getpseudotty ();
6859
rm -f conftest.$ac_objext conftest$ac_exeext
6860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861
(eval $ac_link) 2>conftest.er1
6863
grep -v '^ *+' conftest.er1 >conftest.err
6865
cat conftest.err >&5
6866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867
(exit $ac_status); } &&
6868
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6869
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873
(exit $ac_status); }; } &&
6874
{ ac_try='test -s conftest$ac_exeext'
6875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879
(exit $ac_status); }; }; then
6880
ac_cv_lib_seq_getpseudotty=yes
6882
echo "$as_me: failed program was:" >&5
6883
sed 's/^/| /' conftest.$ac_ext >&5
6885
ac_cv_lib_seq_getpseudotty=no
6887
rm -f conftest.err conftest.$ac_objext \
6888
conftest$ac_exeext conftest.$ac_ext
6889
LIBS=$ac_check_lib_save_LIBS
6891
echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
6892
echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
6893
if test $ac_cv_lib_seq_getpseudotty = yes; then
6894
cat >>confdefs.h <<_ACEOF
6895
#define HAVE_LIBSEQ 1
2753
echo $ac_n "checking for socket""... $ac_c" 1>&6
2754
echo "configure:2755: checking for socket" >&5
2755
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2756
echo $ac_n "(cached) $ac_c" 1>&6
2758
cat > conftest.$ac_ext <<EOF
2759
#line 2760 "configure"
2760
#include "confdefs.h"
2761
/* System header to define __stub macros and hopefully few prototypes,
2762
which can conflict with char socket(); below. */
2764
/* Override any gcc2 internal prototype to avoid an error. */
2765
/* We use char because int might match the return type of a gcc2
2766
builtin and then its argument prototype would still apply. */
2771
/* The GNU C library defines this for functions which it implements
2772
to always fail with ENOSYS. Some functions are actually named
2773
something starting with __ and the normal name is an alias. */
2774
#if defined (__stub_socket) || defined (__stub___socket)
2782
if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2784
eval "ac_cv_func_socket=yes"
2786
echo "configure: failed program was:" >&5
2787
cat conftest.$ac_ext >&5
2789
eval "ac_cv_func_socket=no"
2794
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2795
echo "$ac_t""yes" 1>&6
2798
echo "$ac_t""no" 1>&6
2802
if test $socket -eq 0 ; then
2803
unset ac_cv_lib_inet_socket
2804
echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2805
echo "configure:2806: checking for socket in -linet" >&5
2806
ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2807
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2808
echo $ac_n "(cached) $ac_c" 1>&6
2810
ac_save_LIBS="$LIBS"
2812
cat > conftest.$ac_ext <<EOF
2813
#line 2814 "configure"
2814
#include "confdefs.h"
2815
/* Override any gcc2 internal prototype to avoid an error. */
2816
/* We use char because int might match the return type of a gcc2
2817
builtin and then its argument prototype would still apply. */
2824
if { (eval echo configure:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2826
eval "ac_cv_lib_$ac_lib_var=yes"
2828
echo "configure: failed program was:" >&5
2829
cat conftest.$ac_ext >&5
2831
eval "ac_cv_lib_$ac_lib_var=no"
2834
LIBS="$ac_save_LIBS"
2837
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2838
echo "$ac_t""yes" 1>&6
2841
echo "$ac_t""no" 1>&6
2845
# save results and retry for Tcl
2847
LIBS=$EXP_AND_TCL_LIBS
2848
unset ac_cv_func_socket
2849
echo $ac_n "checking for socket""... $ac_c" 1>&6
2850
echo "configure:2851: checking for socket" >&5
2851
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2852
echo $ac_n "(cached) $ac_c" 1>&6
2854
cat > conftest.$ac_ext <<EOF
2855
#line 2856 "configure"
2856
#include "confdefs.h"
2857
/* System header to define __stub macros and hopefully few prototypes,
2858
which can conflict with char socket(); below. */
2860
/* Override any gcc2 internal prototype to avoid an error. */
2861
/* We use char because int might match the return type of a gcc2
2862
builtin and then its argument prototype would still apply. */
2867
/* The GNU C library defines this for functions which it implements
2868
to always fail with ENOSYS. Some functions are actually named
2869
something starting with __ and the normal name is an alias. */
2870
#if defined (__stub_socket) || defined (__stub___socket)
2878
if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2880
eval "ac_cv_func_socket=yes"
2882
echo "configure: failed program was:" >&5
2883
cat conftest.$ac_ext >&5
2885
eval "ac_cv_func_socket=no"
2890
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2891
echo "$ac_t""yes" 1>&6
2894
echo "$ac_t""no" 1>&6
2898
if test $socket -eq 0 ; then
2899
unset ac_cv_lib_inet_socket
2900
echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2901
echo "configure:2902: checking for socket in -linet" >&5
2902
ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2903
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2904
echo $ac_n "(cached) $ac_c" 1>&6
2906
ac_save_LIBS="$LIBS"
2908
cat > conftest.$ac_ext <<EOF
2909
#line 2910 "configure"
2910
#include "confdefs.h"
2911
/* Override any gcc2 internal prototype to avoid an error. */
2912
/* We use char because int might match the return type of a gcc2
2913
builtin and then its argument prototype would still apply. */
2920
if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2922
eval "ac_cv_lib_$ac_lib_var=yes"
2924
echo "configure: failed program was:" >&5
2925
cat conftest.$ac_ext >&5
2927
eval "ac_cv_lib_$ac_lib_var=no"
2930
LIBS="$ac_save_LIBS"
2933
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2934
echo "$ac_t""yes" 1>&6
2937
echo "$ac_t""no" 1>&6
2941
# save Tcl results and retry for Tk
2942
EXP_AND_TCL_LIBS=$LIBS
2943
LIBS=$EXP_AND_TK_LIBS
2944
unset ac_cv_func_socket
2945
echo $ac_n "checking for socket""... $ac_c" 1>&6
2946
echo "configure:2947: checking for socket" >&5
2947
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2948
echo $ac_n "(cached) $ac_c" 1>&6
2950
cat > conftest.$ac_ext <<EOF
2951
#line 2952 "configure"
2952
#include "confdefs.h"
2953
/* System header to define __stub macros and hopefully few prototypes,
2954
which can conflict with char socket(); below. */
2956
/* Override any gcc2 internal prototype to avoid an error. */
2957
/* We use char because int might match the return type of a gcc2
2958
builtin and then its argument prototype would still apply. */
2963
/* The GNU C library defines this for functions which it implements
2964
to always fail with ENOSYS. Some functions are actually named
2965
something starting with __ and the normal name is an alias. */
2966
#if defined (__stub_socket) || defined (__stub___socket)
2974
if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2976
eval "ac_cv_func_socket=yes"
2978
echo "configure: failed program was:" >&5
2979
cat conftest.$ac_ext >&5
2981
eval "ac_cv_func_socket=no"
2986
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2987
echo "$ac_t""yes" 1>&6
2990
echo "$ac_t""no" 1>&6
2994
if test $socket -eq 0 ; then
2995
unset ac_cv_lib_inet_socket
2996
echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2997
echo "configure:2998: checking for socket in -linet" >&5
2998
ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2999
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3000
echo $ac_n "(cached) $ac_c" 1>&6
3002
ac_save_LIBS="$LIBS"
3004
cat > conftest.$ac_ext <<EOF
3005
#line 3006 "configure"
3006
#include "confdefs.h"
3007
/* Override any gcc2 internal prototype to avoid an error. */
3008
/* We use char because int might match the return type of a gcc2
3009
builtin and then its argument prototype would still apply. */
3016
if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3018
eval "ac_cv_lib_$ac_lib_var=yes"
3020
echo "configure: failed program was:" >&5
3021
cat conftest.$ac_ext >&5
3023
eval "ac_cv_lib_$ac_lib_var=no"
3026
LIBS="$ac_save_LIBS"
3029
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3030
echo "$ac_t""yes" 1>&6
3033
echo "$ac_t""no" 1>&6
3037
# save Tk results and reset for Expect
3038
EXP_AND_TK_LIBS=$LIBS
3041
######################################################################
3042
unset ac_cv_func_select
3043
echo $ac_n "checking for select""... $ac_c" 1>&6
3044
echo "configure:3045: checking for select" >&5
3045
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3046
echo $ac_n "(cached) $ac_c" 1>&6
3048
cat > conftest.$ac_ext <<EOF
3049
#line 3050 "configure"
3050
#include "confdefs.h"
3051
/* System header to define __stub macros and hopefully few prototypes,
3052
which can conflict with char select(); below. */
3054
/* Override any gcc2 internal prototype to avoid an error. */
3055
/* We use char because int might match the return type of a gcc2
3056
builtin and then its argument prototype would still apply. */
3061
/* The GNU C library defines this for functions which it implements
3062
to always fail with ENOSYS. Some functions are actually named
3063
something starting with __ and the normal name is an alias. */
3064
#if defined (__stub_select) || defined (__stub___select)
3072
if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3074
eval "ac_cv_func_select=yes"
3076
echo "configure: failed program was:" >&5
3077
cat conftest.$ac_ext >&5
3079
eval "ac_cv_func_select=no"
3084
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3085
echo "$ac_t""yes" 1>&6
3088
echo "$ac_t""no" 1>&6
3092
if test $select -eq 0 ; then
3093
unset ac_cv_lib_inet_select
3094
echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
3095
echo "configure:3096: checking for select in -linet" >&5
3096
ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
3097
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3098
echo $ac_n "(cached) $ac_c" 1>&6
3100
ac_save_LIBS="$LIBS"
3102
cat > conftest.$ac_ext <<EOF
3103
#line 3104 "configure"
3104
#include "confdefs.h"
3105
/* Override any gcc2 internal prototype to avoid an error. */
3106
/* We use char because int might match the return type of a gcc2
3107
builtin and then its argument prototype would still apply. */
3114
if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3116
eval "ac_cv_lib_$ac_lib_var=yes"
3118
echo "configure: failed program was:" >&5
3119
cat conftest.$ac_ext >&5
3121
eval "ac_cv_lib_$ac_lib_var=no"
3124
LIBS="$ac_save_LIBS"
3127
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3128
echo "$ac_t""yes" 1>&6
3131
echo "$ac_t""no" 1>&6
3135
# save results and retry for Tcl
3137
LIBS=$EXP_AND_TCL_LIBS
3138
unset ac_cv_func_select
3139
echo $ac_n "checking for select""... $ac_c" 1>&6
3140
echo "configure:3141: checking for select" >&5
3141
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3142
echo $ac_n "(cached) $ac_c" 1>&6
3144
cat > conftest.$ac_ext <<EOF
3145
#line 3146 "configure"
3146
#include "confdefs.h"
3147
/* System header to define __stub macros and hopefully few prototypes,
3148
which can conflict with char select(); below. */
3150
/* Override any gcc2 internal prototype to avoid an error. */
3151
/* We use char because int might match the return type of a gcc2
3152
builtin and then its argument prototype would still apply. */
3157
/* The GNU C library defines this for functions which it implements
3158
to always fail with ENOSYS. Some functions are actually named
3159
something starting with __ and the normal name is an alias. */
3160
#if defined (__stub_select) || defined (__stub___select)
3168
if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3170
eval "ac_cv_func_select=yes"
3172
echo "configure: failed program was:" >&5
3173
cat conftest.$ac_ext >&5
3175
eval "ac_cv_func_select=no"
3180
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3181
echo "$ac_t""yes" 1>&6
3184
echo "$ac_t""no" 1>&6
3188
if test $select -eq 0 ; then
3189
unset ac_cv_lib_inet_select
3190
echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
3191
echo "configure:3192: checking for select in -linet" >&5
3192
ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
3193
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3194
echo $ac_n "(cached) $ac_c" 1>&6
3196
ac_save_LIBS="$LIBS"
3198
cat > conftest.$ac_ext <<EOF
3199
#line 3200 "configure"
3200
#include "confdefs.h"
3201
/* Override any gcc2 internal prototype to avoid an error. */
3202
/* We use char because int might match the return type of a gcc2
3203
builtin and then its argument prototype would still apply. */
3210
if { (eval echo configure:3211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3212
eval "ac_cv_lib_$ac_lib_var=yes"
3214
echo "configure: failed program was:" >&5
3215
cat conftest.$ac_ext >&5
3217
eval "ac_cv_lib_$ac_lib_var=no"
3220
LIBS="$ac_save_LIBS"
3223
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3224
echo "$ac_t""yes" 1>&6
3227
echo "$ac_t""no" 1>&6
3231
# save Tcl results and retry for Tk
3232
EXP_AND_TCL_LIBS=$LIBS
3233
LIBS=$EXP_AND_TK_LIBS
3234
unset ac_cv_func_select
3235
echo $ac_n "checking for select""... $ac_c" 1>&6
3236
echo "configure:3237: checking for select" >&5
3237
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3238
echo $ac_n "(cached) $ac_c" 1>&6
3240
cat > conftest.$ac_ext <<EOF
3241
#line 3242 "configure"
3242
#include "confdefs.h"
3243
/* System header to define __stub macros and hopefully few prototypes,
3244
which can conflict with char select(); below. */
3246
/* Override any gcc2 internal prototype to avoid an error. */
3247
/* We use char because int might match the return type of a gcc2
3248
builtin and then its argument prototype would still apply. */
3253
/* The GNU C library defines this for functions which it implements
3254
to always fail with ENOSYS. Some functions are actually named
3255
something starting with __ and the normal name is an alias. */
3256
#if defined (__stub_select) || defined (__stub___select)
3264
if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3266
eval "ac_cv_func_select=yes"
3268
echo "configure: failed program was:" >&5
3269
cat conftest.$ac_ext >&5
3271
eval "ac_cv_func_select=no"
3276
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3277
echo "$ac_t""yes" 1>&6
3280
echo "$ac_t""no" 1>&6
3284
if test $select -eq 0 ; then
3285
unset ac_cv_lib_inet_select
3286
echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
3287
echo "configure:3288: checking for select in -linet" >&5
3288
ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
3289
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3290
echo $ac_n "(cached) $ac_c" 1>&6
3292
ac_save_LIBS="$LIBS"
3294
cat > conftest.$ac_ext <<EOF
3295
#line 3296 "configure"
3296
#include "confdefs.h"
3297
/* Override any gcc2 internal prototype to avoid an error. */
3298
/* We use char because int might match the return type of a gcc2
3299
builtin and then its argument prototype would still apply. */
3306
if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3308
eval "ac_cv_lib_$ac_lib_var=yes"
3310
echo "configure: failed program was:" >&5
3311
cat conftest.$ac_ext >&5
3313
eval "ac_cv_lib_$ac_lib_var=no"
3316
LIBS="$ac_save_LIBS"
3319
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3320
echo "$ac_t""yes" 1>&6
3323
echo "$ac_t""no" 1>&6
3327
# save Tk results and reset for Expect
3328
EXP_AND_TK_LIBS=$LIBS
3331
######################################################################
3332
unset ac_cv_func_getpseudotty
3333
echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
3334
echo "configure:3335: checking for getpseudotty" >&5
3335
if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
3336
echo $ac_n "(cached) $ac_c" 1>&6
3338
cat > conftest.$ac_ext <<EOF
3339
#line 3340 "configure"
3340
#include "confdefs.h"
3341
/* System header to define __stub macros and hopefully few prototypes,
3342
which can conflict with char getpseudotty(); below. */
3344
/* Override any gcc2 internal prototype to avoid an error. */
3345
/* We use char because int might match the return type of a gcc2
3346
builtin and then its argument prototype would still apply. */
3347
char getpseudotty();
3351
/* The GNU C library defines this for functions which it implements
3352
to always fail with ENOSYS. Some functions are actually named
3353
something starting with __ and the normal name is an alias. */
3354
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
3362
if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3364
eval "ac_cv_func_getpseudotty=yes"
3366
echo "configure: failed program was:" >&5
3367
cat conftest.$ac_ext >&5
3369
eval "ac_cv_func_getpseudotty=no"
3374
if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
3375
echo "$ac_t""yes" 1>&6
3378
echo "$ac_t""no" 1>&6
3382
if test $getpseudotty -eq 0 ; then
3383
unset ac_cv_lib_seq_getpseudotty
3384
echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
3385
echo "configure:3386: checking for getpseudotty in -lseq" >&5
3386
ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
3387
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3388
echo $ac_n "(cached) $ac_c" 1>&6
3390
ac_save_LIBS="$LIBS"
3392
cat > conftest.$ac_ext <<EOF
3393
#line 3394 "configure"
3394
#include "confdefs.h"
3395
/* Override any gcc2 internal prototype to avoid an error. */
3396
/* We use char because int might match the return type of a gcc2
3397
builtin and then its argument prototype would still apply. */
3398
char getpseudotty();
3404
if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3406
eval "ac_cv_lib_$ac_lib_var=yes"
3408
echo "configure: failed program was:" >&5
3409
cat conftest.$ac_ext >&5
3411
eval "ac_cv_lib_$ac_lib_var=no"
3414
LIBS="$ac_save_LIBS"
3417
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3418
echo "$ac_t""yes" 1>&6
3419
ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3420
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3421
cat >> confdefs.h <<EOF
3422
#define $ac_tr_lib 1
3428
echo "$ac_t""no" 1>&6
3432
# save results and retry for Tcl
3434
LIBS=$EXP_AND_TCL_LIBS
3435
unset ac_cv_func_getpseudotty
3436
echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
3437
echo "configure:3438: checking for getpseudotty" >&5
3438
if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
3439
echo $ac_n "(cached) $ac_c" 1>&6
3441
cat > conftest.$ac_ext <<EOF
3442
#line 3443 "configure"
3443
#include "confdefs.h"
3444
/* System header to define __stub macros and hopefully few prototypes,
3445
which can conflict with char getpseudotty(); below. */
3447
/* Override any gcc2 internal prototype to avoid an error. */
3448
/* We use char because int might match the return type of a gcc2
3449
builtin and then its argument prototype would still apply. */
3450
char getpseudotty();
3454
/* The GNU C library defines this for functions which it implements
3455
to always fail with ENOSYS. Some functions are actually named
3456
something starting with __ and the normal name is an alias. */
3457
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
3465
if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467
eval "ac_cv_func_getpseudotty=yes"
3469
echo "configure: failed program was:" >&5
3470
cat conftest.$ac_ext >&5
3472
eval "ac_cv_func_getpseudotty=no"
3477
if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
3478
echo "$ac_t""yes" 1>&6
3481
echo "$ac_t""no" 1>&6
3485
if test $getpseudotty -eq 0 ; then
3486
unset ac_cv_lib_seq_getpseudotty
3487
echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
3488
echo "configure:3489: checking for getpseudotty in -lseq" >&5
3489
ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
3490
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3491
echo $ac_n "(cached) $ac_c" 1>&6
3493
ac_save_LIBS="$LIBS"
3495
cat > conftest.$ac_ext <<EOF
3496
#line 3497 "configure"
3497
#include "confdefs.h"
3498
/* Override any gcc2 internal prototype to avoid an error. */
3499
/* We use char because int might match the return type of a gcc2
3500
builtin and then its argument prototype would still apply. */
3501
char getpseudotty();
3507
if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3509
eval "ac_cv_lib_$ac_lib_var=yes"
3511
echo "configure: failed program was:" >&5
3512
cat conftest.$ac_ext >&5
3514
eval "ac_cv_lib_$ac_lib_var=no"
3517
LIBS="$ac_save_LIBS"
3520
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521
echo "$ac_t""yes" 1>&6
3522
ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3523
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3524
cat >> confdefs.h <<EOF
3525
#define $ac_tr_lib 1
3531
echo "$ac_t""no" 1>&6
3535
# save Tcl results and retry for Tk
3536
EXP_AND_TCL_LIBS=$LIBS
3537
LIBS=$EXP_AND_TK_LIBS
3538
unset ac_cv_func_getpseudotty
3539
echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
3540
echo "configure:3541: checking for getpseudotty" >&5
3541
if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
3542
echo $ac_n "(cached) $ac_c" 1>&6
3544
cat > conftest.$ac_ext <<EOF
3545
#line 3546 "configure"
3546
#include "confdefs.h"
3547
/* System header to define __stub macros and hopefully few prototypes,
3548
which can conflict with char getpseudotty(); below. */
3550
/* Override any gcc2 internal prototype to avoid an error. */
3551
/* We use char because int might match the return type of a gcc2
3552
builtin and then its argument prototype would still apply. */
3553
char getpseudotty();
3557
/* The GNU C library defines this for functions which it implements
3558
to always fail with ENOSYS. Some functions are actually named
3559
something starting with __ and the normal name is an alias. */
3560
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
3568
if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3570
eval "ac_cv_func_getpseudotty=yes"
3572
echo "configure: failed program was:" >&5
3573
cat conftest.$ac_ext >&5
3575
eval "ac_cv_func_getpseudotty=no"
3580
if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
3581
echo "$ac_t""yes" 1>&6
3584
echo "$ac_t""no" 1>&6
3588
if test $getpseudotty -eq 0 ; then
3589
unset ac_cv_lib_seq_getpseudotty
3590
echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
3591
echo "configure:3592: checking for getpseudotty in -lseq" >&5
3592
ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
3593
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3594
echo $ac_n "(cached) $ac_c" 1>&6
3596
ac_save_LIBS="$LIBS"
3598
cat > conftest.$ac_ext <<EOF
3599
#line 3600 "configure"
3600
#include "confdefs.h"
3601
/* Override any gcc2 internal prototype to avoid an error. */
3602
/* We use char because int might match the return type of a gcc2
3603
builtin and then its argument prototype would still apply. */
3604
char getpseudotty();
3610
if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3612
eval "ac_cv_lib_$ac_lib_var=yes"
3614
echo "configure: failed program was:" >&5
3615
cat conftest.$ac_ext >&5
3617
eval "ac_cv_lib_$ac_lib_var=no"
3620
LIBS="$ac_save_LIBS"
3623
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3624
echo "$ac_t""yes" 1>&6
3625
ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3626
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3627
cat >> confdefs.h <<EOF
3628
#define $ac_tr_lib 1
3634
echo "$ac_t""no" 1>&6
7442
3958
# Hand patches to library/func checking.
7444
echo "$as_me:$LINENO: checking if running Sequent running SVR4" >&5
7445
echo $ECHO_N "checking if running Sequent running SVR4... $ECHO_C" >&6
3960
echo $ac_n "checking if running Sequent running SVR4""... $ac_c" 1>&6
3961
echo "configure:3962: checking if running Sequent running SVR4" >&5
7446
3962
if test "$host_alias" = "i386-sequent-sysv4" ; then
7447
3963
EXP_AND_TCL_LIBS="-lnsl -lsocket -lm"
7448
echo "$as_me:$LINENO: result: yes" >&5
7449
echo "${ECHO_T}yes" >&6
3964
echo "$ac_t""yes" 1>&6
7451
echo "$as_me:$LINENO: result: no" >&5
7452
echo "${ECHO_T}no" >&6
3966
echo "$ac_t""no" 1>&6
7455
3969
######################################################################
7457
3971
# Look for various header files
7459
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7460
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7461
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7462
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7463
echo $ECHO_N "(cached) $ECHO_C" >&6
7465
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7466
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7468
# Is the header compilable?
7469
echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7470
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
7471
cat >conftest.$ac_ext <<_ACEOF
7474
cat confdefs.h >>conftest.$ac_ext
7475
cat >>conftest.$ac_ext <<_ACEOF
7476
/* end confdefs.h. */
7477
$ac_includes_default
7478
#include <sys/sysmacros.h>
7480
rm -f conftest.$ac_objext
7481
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482
(eval $ac_compile) 2>conftest.er1
7484
grep -v '^ *+' conftest.er1 >conftest.err
7486
cat conftest.err >&5
7487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488
(exit $ac_status); } &&
7489
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494
(exit $ac_status); }; } &&
7495
{ ac_try='test -s conftest.$ac_objext'
7496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500
(exit $ac_status); }; }; then
7501
ac_header_compiler=yes
7503
echo "$as_me: failed program was:" >&5
7504
sed 's/^/| /' conftest.$ac_ext >&5
7506
ac_header_compiler=no
7508
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7509
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7510
echo "${ECHO_T}$ac_header_compiler" >&6
7512
# Is the header present?
7513
echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7514
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7515
cat >conftest.$ac_ext <<_ACEOF
7518
cat confdefs.h >>conftest.$ac_ext
7519
cat >>conftest.$ac_ext <<_ACEOF
7520
/* end confdefs.h. */
7521
#include <sys/sysmacros.h>
7523
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7524
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7526
grep -v '^ *+' conftest.er1 >conftest.err
7528
cat conftest.err >&5
7529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530
(exit $ac_status); } >/dev/null; then
7531
if test -s conftest.err; then
7532
ac_cpp_err=$ac_c_preproc_warn_flag
7533
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7540
if test -z "$ac_cpp_err"; then
7541
ac_header_preproc=yes
7543
echo "$as_me: failed program was:" >&5
7544
sed 's/^/| /' conftest.$ac_ext >&5
7546
ac_header_preproc=no
7548
rm -f conftest.err conftest.$ac_ext
7549
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7550
echo "${ECHO_T}$ac_header_preproc" >&6
7552
# So? What about this header?
7553
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7555
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7556
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7557
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7558
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7559
ac_header_preproc=yes
7562
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7563
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7564
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7565
echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7566
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7567
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7568
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
7569
echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
7570
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7571
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7572
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7573
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7576
## ------------------------------------------ ##
7577
## Report this to the AC_PACKAGE_NAME lists. ##
7578
## ------------------------------------------ ##
7581
sed "s/^/$as_me: WARNING: /" >&2
7584
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7585
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7586
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7587
echo $ECHO_N "(cached) $ECHO_C" >&6
7589
ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7591
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7592
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7595
if test $ac_cv_header_sys_sysmacros_h = yes; then
7596
cat >>confdefs.h <<\_ACEOF
3973
ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
3974
echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
3975
echo "configure:3976: checking for sys/sysmacros.h" >&5
3976
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3977
echo $ac_n "(cached) $ac_c" 1>&6
3979
cat > conftest.$ac_ext <<EOF
3980
#line 3981 "configure"
3981
#include "confdefs.h"
3982
#include <sys/sysmacros.h>
3984
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3985
{ (eval echo configure:3986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3986
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3987
if test -z "$ac_err"; then
3989
eval "ac_cv_header_$ac_safe=yes"
3992
echo "configure: failed program was:" >&5
3993
cat conftest.$ac_ext >&5
3995
eval "ac_cv_header_$ac_safe=no"
3999
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4000
echo "$ac_t""yes" 1>&6
4001
cat >> confdefs.h <<\EOF
7597
4002
#define HAVE_SYSMACROS_H 1
7603
if test "${ac_cv_header_stdlib_h+set}" = set; then
7604
echo "$as_me:$LINENO: checking for stdlib.h" >&5
7605
echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
7606
if test "${ac_cv_header_stdlib_h+set}" = set; then
7607
echo $ECHO_N "(cached) $ECHO_C" >&6
7609
echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7610
echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
7612
# Is the header compilable?
7613
echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7614
echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
7615
cat >conftest.$ac_ext <<_ACEOF
7618
cat confdefs.h >>conftest.$ac_ext
7619
cat >>conftest.$ac_ext <<_ACEOF
7620
/* end confdefs.h. */
7621
$ac_includes_default
7624
rm -f conftest.$ac_objext
7625
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626
(eval $ac_compile) 2>conftest.er1
7628
grep -v '^ *+' conftest.er1 >conftest.err
7630
cat conftest.err >&5
7631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632
(exit $ac_status); } &&
7633
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638
(exit $ac_status); }; } &&
7639
{ ac_try='test -s conftest.$ac_objext'
7640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644
(exit $ac_status); }; }; then
7645
ac_header_compiler=yes
7647
echo "$as_me: failed program was:" >&5
7648
sed 's/^/| /' conftest.$ac_ext >&5
7650
ac_header_compiler=no
7652
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7653
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7654
echo "${ECHO_T}$ac_header_compiler" >&6
7656
# Is the header present?
7657
echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7658
echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
7659
cat >conftest.$ac_ext <<_ACEOF
7662
cat confdefs.h >>conftest.$ac_ext
7663
cat >>conftest.$ac_ext <<_ACEOF
7664
/* end confdefs.h. */
7667
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7668
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7670
grep -v '^ *+' conftest.er1 >conftest.err
7672
cat conftest.err >&5
7673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674
(exit $ac_status); } >/dev/null; then
7675
if test -s conftest.err; then
7676
ac_cpp_err=$ac_c_preproc_warn_flag
7677
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7684
if test -z "$ac_cpp_err"; then
7685
ac_header_preproc=yes
7687
echo "$as_me: failed program was:" >&5
7688
sed 's/^/| /' conftest.$ac_ext >&5
7690
ac_header_preproc=no
7692
rm -f conftest.err conftest.$ac_ext
7693
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7694
echo "${ECHO_T}$ac_header_preproc" >&6
7696
# So? What about this header?
7697
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7699
{ echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7700
echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7701
{ echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7702
echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7703
ac_header_preproc=yes
7706
{ echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7707
echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7708
{ echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7709
echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7710
{ echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7711
echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7712
{ echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
7713
echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7714
{ echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7715
echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7716
{ echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7717
echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
7720
## ------------------------------------------ ##
7721
## Report this to the AC_PACKAGE_NAME lists. ##
7722
## ------------------------------------------ ##
7725
sed "s/^/$as_me: WARNING: /" >&2
7728
echo "$as_me:$LINENO: checking for stdlib.h" >&5
7729
echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
7730
if test "${ac_cv_header_stdlib_h+set}" = set; then
7731
echo $ECHO_N "(cached) $ECHO_C" >&6
7733
ac_cv_header_stdlib_h=$ac_header_preproc
7735
echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7736
echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
7739
if test $ac_cv_header_stdlib_h = yes; then
4006
echo "$ac_t""no" 1>&6
4009
ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
4010
echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
4011
echo "configure:4012: checking for stdlib.h" >&5
4012
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4013
echo $ac_n "(cached) $ac_c" 1>&6
4015
cat > conftest.$ac_ext <<EOF
4016
#line 4017 "configure"
4017
#include "confdefs.h"
4020
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4021
{ (eval echo configure:4022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4022
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4023
if test -z "$ac_err"; then
4025
eval "ac_cv_header_$ac_safe=yes"
4028
echo "configure: failed program was:" >&5
4029
cat conftest.$ac_ext >&5
4031
eval "ac_cv_header_$ac_safe=no"
4035
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4036
echo "$ac_t""yes" 1>&6
7742
cat >>confdefs.h <<\_ACEOF
4039
echo "$ac_t""no" 1>&6
4040
cat >> confdefs.h <<\EOF
7743
4041
#define NO_STDLIB_H 1
7749
if test "${ac_cv_header_inttypes_h+set}" = set; then
7750
echo "$as_me:$LINENO: checking for inttypes.h" >&5
7751
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7752
if test "${ac_cv_header_inttypes_h+set}" = set; then
7753
echo $ECHO_N "(cached) $ECHO_C" >&6
7755
echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
7756
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
7758
# Is the header compilable?
7759
echo "$as_me:$LINENO: checking inttypes.h usability" >&5
7760
echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
7761
cat >conftest.$ac_ext <<_ACEOF
7764
cat confdefs.h >>conftest.$ac_ext
7765
cat >>conftest.$ac_ext <<_ACEOF
7766
/* end confdefs.h. */
7767
$ac_includes_default
7768
#include <inttypes.h>
7770
rm -f conftest.$ac_objext
7771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772
(eval $ac_compile) 2>conftest.er1
7774
grep -v '^ *+' conftest.er1 >conftest.err
7776
cat conftest.err >&5
7777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778
(exit $ac_status); } &&
7779
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784
(exit $ac_status); }; } &&
7785
{ ac_try='test -s conftest.$ac_objext'
7786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790
(exit $ac_status); }; }; then
7791
ac_header_compiler=yes
7793
echo "$as_me: failed program was:" >&5
7794
sed 's/^/| /' conftest.$ac_ext >&5
7796
ac_header_compiler=no
7798
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7799
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7800
echo "${ECHO_T}$ac_header_compiler" >&6
7802
# Is the header present?
7803
echo "$as_me:$LINENO: checking inttypes.h presence" >&5
7804
echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
7805
cat >conftest.$ac_ext <<_ACEOF
7808
cat confdefs.h >>conftest.$ac_ext
7809
cat >>conftest.$ac_ext <<_ACEOF
7810
/* end confdefs.h. */
7811
#include <inttypes.h>
7813
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7814
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7816
grep -v '^ *+' conftest.er1 >conftest.err
7818
cat conftest.err >&5
7819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820
(exit $ac_status); } >/dev/null; then
7821
if test -s conftest.err; then
7822
ac_cpp_err=$ac_c_preproc_warn_flag
7823
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7830
if test -z "$ac_cpp_err"; then
7831
ac_header_preproc=yes
7833
echo "$as_me: failed program was:" >&5
7834
sed 's/^/| /' conftest.$ac_ext >&5
7836
ac_header_preproc=no
7838
rm -f conftest.err conftest.$ac_ext
7839
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7840
echo "${ECHO_T}$ac_header_preproc" >&6
7842
# So? What about this header?
7843
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7845
{ echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
7846
echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7847
{ echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
7848
echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
7849
ac_header_preproc=yes
7852
{ echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
7853
echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
7854
{ echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
7855
echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
7856
{ echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
7857
echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
7858
{ echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
7859
echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
7860
{ echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
7861
echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
7862
{ echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
7863
echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
7866
## ------------------------------------------ ##
7867
## Report this to the AC_PACKAGE_NAME lists. ##
7868
## ------------------------------------------ ##
7871
sed "s/^/$as_me: WARNING: /" >&2
7874
echo "$as_me:$LINENO: checking for inttypes.h" >&5
7875
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7876
if test "${ac_cv_header_inttypes_h+set}" = set; then
7877
echo $ECHO_N "(cached) $ECHO_C" >&6
7879
ac_cv_header_inttypes_h=$ac_header_preproc
7881
echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
7882
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
7885
if test $ac_cv_header_inttypes_h = yes; then
7886
cat >>confdefs.h <<\_ACEOF
4046
ac_safe=`echo "inttypes.h" | sed 'y%./+-%__p_%'`
4047
echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
4048
echo "configure:4049: checking for inttypes.h" >&5
4049
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4050
echo $ac_n "(cached) $ac_c" 1>&6
4052
cat > conftest.$ac_ext <<EOF
4053
#line 4054 "configure"
4054
#include "confdefs.h"
4055
#include <inttypes.h>
4057
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4058
{ (eval echo configure:4059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4059
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4060
if test -z "$ac_err"; then
4062
eval "ac_cv_header_$ac_safe=yes"
4065
echo "configure: failed program was:" >&5
4066
cat conftest.$ac_ext >&5
4068
eval "ac_cv_header_$ac_safe=no"
4072
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4073
echo "$ac_t""yes" 1>&6
4074
cat >> confdefs.h <<\EOF
7887
4075
#define HAVE_INTTYPES_H 1
4079
echo "$ac_t""no" 1>&6
7894
4083
# Oddly, some systems have stdarg but don't support prototypes
7895
4084
# Tcl avoids the whole issue by not using stdarg on UNIX at all!
7897
if test "${ac_cv_header_varargs_h+set}" = set; then
7898
echo "$as_me:$LINENO: checking for varargs.h" >&5
7899
echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6
7900
if test "${ac_cv_header_varargs_h+set}" = set; then
7901
echo $ECHO_N "(cached) $ECHO_C" >&6
7903
echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
7904
echo "${ECHO_T}$ac_cv_header_varargs_h" >&6
7906
# Is the header compilable?
7907
echo "$as_me:$LINENO: checking varargs.h usability" >&5
7908
echo $ECHO_N "checking varargs.h usability... $ECHO_C" >&6
7909
cat >conftest.$ac_ext <<_ACEOF
7912
cat confdefs.h >>conftest.$ac_ext
7913
cat >>conftest.$ac_ext <<_ACEOF
7914
/* end confdefs.h. */
7915
$ac_includes_default
7916
#include <varargs.h>
7918
rm -f conftest.$ac_objext
7919
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920
(eval $ac_compile) 2>conftest.er1
7922
grep -v '^ *+' conftest.er1 >conftest.err
7924
cat conftest.err >&5
7925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926
(exit $ac_status); } &&
7927
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7928
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932
(exit $ac_status); }; } &&
7933
{ ac_try='test -s conftest.$ac_objext'
7934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938
(exit $ac_status); }; }; then
7939
ac_header_compiler=yes
7941
echo "$as_me: failed program was:" >&5
7942
sed 's/^/| /' conftest.$ac_ext >&5
7944
ac_header_compiler=no
7946
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7947
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7948
echo "${ECHO_T}$ac_header_compiler" >&6
7950
# Is the header present?
7951
echo "$as_me:$LINENO: checking varargs.h presence" >&5
7952
echo $ECHO_N "checking varargs.h presence... $ECHO_C" >&6
7953
cat >conftest.$ac_ext <<_ACEOF
7956
cat confdefs.h >>conftest.$ac_ext
7957
cat >>conftest.$ac_ext <<_ACEOF
7958
/* end confdefs.h. */
7959
#include <varargs.h>
7961
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7962
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7964
grep -v '^ *+' conftest.er1 >conftest.err
7966
cat conftest.err >&5
7967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968
(exit $ac_status); } >/dev/null; then
7969
if test -s conftest.err; then
7970
ac_cpp_err=$ac_c_preproc_warn_flag
7971
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7978
if test -z "$ac_cpp_err"; then
7979
ac_header_preproc=yes
7981
echo "$as_me: failed program was:" >&5
7982
sed 's/^/| /' conftest.$ac_ext >&5
7984
ac_header_preproc=no
7986
rm -f conftest.err conftest.$ac_ext
7987
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7988
echo "${ECHO_T}$ac_header_preproc" >&6
7990
# So? What about this header?
7991
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7993
{ echo "$as_me:$LINENO: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7994
echo "$as_me: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7995
{ echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the compiler's result" >&5
7996
echo "$as_me: WARNING: varargs.h: proceeding with the compiler's result" >&2;}
7997
ac_header_preproc=yes
8000
{ echo "$as_me:$LINENO: WARNING: varargs.h: present but cannot be compiled" >&5
8001
echo "$as_me: WARNING: varargs.h: present but cannot be compiled" >&2;}
8002
{ echo "$as_me:$LINENO: WARNING: varargs.h: check for missing prerequisite headers?" >&5
8003
echo "$as_me: WARNING: varargs.h: check for missing prerequisite headers?" >&2;}
8004
{ echo "$as_me:$LINENO: WARNING: varargs.h: see the Autoconf documentation" >&5
8005
echo "$as_me: WARNING: varargs.h: see the Autoconf documentation" >&2;}
8006
{ echo "$as_me:$LINENO: WARNING: varargs.h: section \"Present But Cannot Be Compiled\"" >&5
8007
echo "$as_me: WARNING: varargs.h: section \"Present But Cannot Be Compiled\"" >&2;}
8008
{ echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the preprocessor's result" >&5
8009
echo "$as_me: WARNING: varargs.h: proceeding with the preprocessor's result" >&2;}
8010
{ echo "$as_me:$LINENO: WARNING: varargs.h: in the future, the compiler will take precedence" >&5
8011
echo "$as_me: WARNING: varargs.h: in the future, the compiler will take precedence" >&2;}
8014
## ------------------------------------------ ##
8015
## Report this to the AC_PACKAGE_NAME lists. ##
8016
## ------------------------------------------ ##
8019
sed "s/^/$as_me: WARNING: /" >&2
8022
echo "$as_me:$LINENO: checking for varargs.h" >&5
8023
echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6
8024
if test "${ac_cv_header_varargs_h+set}" = set; then
8025
echo $ECHO_N "(cached) $ECHO_C" >&6
8027
ac_cv_header_varargs_h=$ac_header_preproc
8029
echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
8030
echo "${ECHO_T}$ac_cv_header_varargs_h" >&6
8033
if test $ac_cv_header_varargs_h = yes; then
8034
cat >>confdefs.h <<\_ACEOF
4086
ac_safe=`echo "varargs.h" | sed 'y%./+-%__p_%'`
4087
echo $ac_n "checking for varargs.h""... $ac_c" 1>&6
4088
echo "configure:4089: checking for varargs.h" >&5
4089
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4090
echo $ac_n "(cached) $ac_c" 1>&6
4092
cat > conftest.$ac_ext <<EOF
4093
#line 4094 "configure"
4094
#include "confdefs.h"
4095
#include <varargs.h>
4097
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4098
{ (eval echo configure:4099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4099
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4100
if test -z "$ac_err"; then
4102
eval "ac_cv_header_$ac_safe=yes"
4105
echo "configure: failed program was:" >&5
4106
cat conftest.$ac_ext >&5
4108
eval "ac_cv_header_$ac_safe=no"
4112
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4113
echo "$ac_t""yes" 1>&6
4114
cat >> confdefs.h <<\EOF
8035
4115
#define HAVE_VARARGS_H 1
8041
if test "${ac_cv_header_unistd_h+set}" = set; then
8042
echo "$as_me:$LINENO: checking for unistd.h" >&5
8043
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
8044
if test "${ac_cv_header_unistd_h+set}" = set; then
8045
echo $ECHO_N "(cached) $ECHO_C" >&6
8047
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8048
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
8050
# Is the header compilable?
8051
echo "$as_me:$LINENO: checking unistd.h usability" >&5
8052
echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
8053
cat >conftest.$ac_ext <<_ACEOF
8056
cat confdefs.h >>conftest.$ac_ext
8057
cat >>conftest.$ac_ext <<_ACEOF
8058
/* end confdefs.h. */
8059
$ac_includes_default
8062
rm -f conftest.$ac_objext
8063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064
(eval $ac_compile) 2>conftest.er1
8066
grep -v '^ *+' conftest.er1 >conftest.err
8068
cat conftest.err >&5
8069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070
(exit $ac_status); } &&
8071
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076
(exit $ac_status); }; } &&
8077
{ ac_try='test -s conftest.$ac_objext'
8078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082
(exit $ac_status); }; }; then
8083
ac_header_compiler=yes
8085
echo "$as_me: failed program was:" >&5
8086
sed 's/^/| /' conftest.$ac_ext >&5
8088
ac_header_compiler=no
8090
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8091
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8092
echo "${ECHO_T}$ac_header_compiler" >&6
8094
# Is the header present?
8095
echo "$as_me:$LINENO: checking unistd.h presence" >&5
8096
echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
8097
cat >conftest.$ac_ext <<_ACEOF
8100
cat confdefs.h >>conftest.$ac_ext
8101
cat >>conftest.$ac_ext <<_ACEOF
8102
/* end confdefs.h. */
8105
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8108
grep -v '^ *+' conftest.er1 >conftest.err
8110
cat conftest.err >&5
8111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112
(exit $ac_status); } >/dev/null; then
8113
if test -s conftest.err; then
8114
ac_cpp_err=$ac_c_preproc_warn_flag
8115
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8122
if test -z "$ac_cpp_err"; then
8123
ac_header_preproc=yes
8125
echo "$as_me: failed program was:" >&5
8126
sed 's/^/| /' conftest.$ac_ext >&5
8128
ac_header_preproc=no
8130
rm -f conftest.err conftest.$ac_ext
8131
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8132
echo "${ECHO_T}$ac_header_preproc" >&6
8134
# So? What about this header?
8135
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8137
{ echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8138
echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8139
{ echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8140
echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8141
ac_header_preproc=yes
8144
{ echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8145
echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8146
{ echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
8147
echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
8148
{ echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8149
echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8150
{ echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
8151
echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
8152
{ echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8153
echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8154
{ echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8155
echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
8158
## ------------------------------------------ ##
8159
## Report this to the AC_PACKAGE_NAME lists. ##
8160
## ------------------------------------------ ##
8163
sed "s/^/$as_me: WARNING: /" >&2
8166
echo "$as_me:$LINENO: checking for unistd.h" >&5
8167
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
8168
if test "${ac_cv_header_unistd_h+set}" = set; then
8169
echo $ECHO_N "(cached) $ECHO_C" >&6
8171
ac_cv_header_unistd_h=$ac_header_preproc
8173
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8174
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
8177
if test $ac_cv_header_unistd_h = yes; then
8178
cat >>confdefs.h <<\_ACEOF
4119
echo "$ac_t""no" 1>&6
4122
ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
4123
echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
4124
echo "configure:4125: checking for unistd.h" >&5
4125
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4126
echo $ac_n "(cached) $ac_c" 1>&6
4128
cat > conftest.$ac_ext <<EOF
4129
#line 4130 "configure"
4130
#include "confdefs.h"
4133
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4134
{ (eval echo configure:4135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4135
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4136
if test -z "$ac_err"; then
4138
eval "ac_cv_header_$ac_safe=yes"
4141
echo "configure: failed program was:" >&5
4142
cat conftest.$ac_ext >&5
4144
eval "ac_cv_header_$ac_safe=no"
4148
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4149
echo "$ac_t""yes" 1>&6
4150
cat >> confdefs.h <<\EOF
8179
4151
#define HAVE_UNISTD_H 1
4155
echo "$ac_t""no" 1>&6
8185
4158
# If no stropts.h, then the svr4 implementation is broken.
8186
4159
# At least it is on my Debian "potato" system. - Rob Savoye
8187
if test "${ac_cv_header_sys_stropts_h+set}" = set; then
8188
echo "$as_me:$LINENO: checking for sys/stropts.h" >&5
8189
echo $ECHO_N "checking for sys/stropts.h... $ECHO_C" >&6
8190
if test "${ac_cv_header_sys_stropts_h+set}" = set; then
8191
echo $ECHO_N "(cached) $ECHO_C" >&6
8193
echo "$as_me:$LINENO: result: $ac_cv_header_sys_stropts_h" >&5
8194
echo "${ECHO_T}$ac_cv_header_sys_stropts_h" >&6
8196
# Is the header compilable?
8197
echo "$as_me:$LINENO: checking sys/stropts.h usability" >&5
8198
echo $ECHO_N "checking sys/stropts.h usability... $ECHO_C" >&6
8199
cat >conftest.$ac_ext <<_ACEOF
8202
cat confdefs.h >>conftest.$ac_ext
8203
cat >>conftest.$ac_ext <<_ACEOF
8204
/* end confdefs.h. */
8205
$ac_includes_default
8206
#include <sys/stropts.h>
8208
rm -f conftest.$ac_objext
8209
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8210
(eval $ac_compile) 2>conftest.er1
8212
grep -v '^ *+' conftest.er1 >conftest.err
8214
cat conftest.err >&5
8215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
(exit $ac_status); } &&
8217
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222
(exit $ac_status); }; } &&
8223
{ ac_try='test -s conftest.$ac_objext'
8224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228
(exit $ac_status); }; }; then
8229
ac_header_compiler=yes
8231
echo "$as_me: failed program was:" >&5
8232
sed 's/^/| /' conftest.$ac_ext >&5
8234
ac_header_compiler=no
8236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8237
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8238
echo "${ECHO_T}$ac_header_compiler" >&6
8240
# Is the header present?
8241
echo "$as_me:$LINENO: checking sys/stropts.h presence" >&5
8242
echo $ECHO_N "checking sys/stropts.h presence... $ECHO_C" >&6
8243
cat >conftest.$ac_ext <<_ACEOF
8246
cat confdefs.h >>conftest.$ac_ext
8247
cat >>conftest.$ac_ext <<_ACEOF
8248
/* end confdefs.h. */
8249
#include <sys/stropts.h>
8251
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8252
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8254
grep -v '^ *+' conftest.er1 >conftest.err
8256
cat conftest.err >&5
8257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258
(exit $ac_status); } >/dev/null; then
8259
if test -s conftest.err; then
8260
ac_cpp_err=$ac_c_preproc_warn_flag
8261
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8268
if test -z "$ac_cpp_err"; then
8269
ac_header_preproc=yes
8271
echo "$as_me: failed program was:" >&5
8272
sed 's/^/| /' conftest.$ac_ext >&5
8274
ac_header_preproc=no
8276
rm -f conftest.err conftest.$ac_ext
8277
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8278
echo "${ECHO_T}$ac_header_preproc" >&6
8280
# So? What about this header?
8281
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8283
{ echo "$as_me:$LINENO: WARNING: sys/stropts.h: accepted by the compiler, rejected by the preprocessor!" >&5
8284
echo "$as_me: WARNING: sys/stropts.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8285
{ echo "$as_me:$LINENO: WARNING: sys/stropts.h: proceeding with the compiler's result" >&5
8286
echo "$as_me: WARNING: sys/stropts.h: proceeding with the compiler's result" >&2;}
8287
ac_header_preproc=yes
8290
{ echo "$as_me:$LINENO: WARNING: sys/stropts.h: present but cannot be compiled" >&5
8291
echo "$as_me: WARNING: sys/stropts.h: present but cannot be compiled" >&2;}
8292
{ echo "$as_me:$LINENO: WARNING: sys/stropts.h: check for missing prerequisite headers?" >&5
8293
echo "$as_me: WARNING: sys/stropts.h: check for missing prerequisite headers?" >&2;}
8294
{ echo "$as_me:$LINENO: WARNING: sys/stropts.h: see the Autoconf documentation" >&5
8295
echo "$as_me: WARNING: sys/stropts.h: see the Autoconf documentation" >&2;}
8296
{ echo "$as_me:$LINENO: WARNING: sys/stropts.h: section \"Present But Cannot Be Compiled\"" >&5
8297
echo "$as_me: WARNING: sys/stropts.h: section \"Present But Cannot Be Compiled\"" >&2;}
8298
{ echo "$as_me:$LINENO: WARNING: sys/stropts.h: proceeding with the preprocessor's result" >&5
8299
echo "$as_me: WARNING: sys/stropts.h: proceeding with the preprocessor's result" >&2;}
8300
{ echo "$as_me:$LINENO: WARNING: sys/stropts.h: in the future, the compiler will take precedence" >&5
8301
echo "$as_me: WARNING: sys/stropts.h: in the future, the compiler will take precedence" >&2;}
8304
## ------------------------------------------ ##
8305
## Report this to the AC_PACKAGE_NAME lists. ##
8306
## ------------------------------------------ ##
8309
sed "s/^/$as_me: WARNING: /" >&2
8312
echo "$as_me:$LINENO: checking for sys/stropts.h" >&5
8313
echo $ECHO_N "checking for sys/stropts.h... $ECHO_C" >&6
8314
if test "${ac_cv_header_sys_stropts_h+set}" = set; then
8315
echo $ECHO_N "(cached) $ECHO_C" >&6
8317
ac_cv_header_sys_stropts_h=$ac_header_preproc
8319
echo "$as_me:$LINENO: result: $ac_cv_header_sys_stropts_h" >&5
8320
echo "${ECHO_T}$ac_cv_header_sys_stropts_h" >&6
8323
if test $ac_cv_header_sys_stropts_h = yes; then
8324
cat >>confdefs.h <<\_ACEOF
4160
ac_safe=`echo "sys/stropts.h" | sed 'y%./+-%__p_%'`
4161
echo $ac_n "checking for sys/stropts.h""... $ac_c" 1>&6
4162
echo "configure:4163: checking for sys/stropts.h" >&5
4163
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4164
echo $ac_n "(cached) $ac_c" 1>&6
4166
cat > conftest.$ac_ext <<EOF
4167
#line 4168 "configure"
4168
#include "confdefs.h"
4169
#include <sys/stropts.h>
4171
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4172
{ (eval echo configure:4173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4173
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4174
if test -z "$ac_err"; then
4176
eval "ac_cv_header_$ac_safe=yes"
4179
echo "configure: failed program was:" >&5
4180
cat conftest.$ac_ext >&5
4182
eval "ac_cv_header_$ac_safe=no"
4186
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4187
echo "$ac_t""yes" 1>&6
4188
cat >> confdefs.h <<\EOF
8325
4189
#define HAVE_STROPTS_H 1
8333
if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
8334
echo "$as_me:$LINENO: checking for sys/sysconfig.h" >&5
8335
echo $ECHO_N "checking for sys/sysconfig.h... $ECHO_C" >&6
8336
if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
8337
echo $ECHO_N "(cached) $ECHO_C" >&6
8339
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysconfig_h" >&5
8340
echo "${ECHO_T}$ac_cv_header_sys_sysconfig_h" >&6
8342
# Is the header compilable?
8343
echo "$as_me:$LINENO: checking sys/sysconfig.h usability" >&5
8344
echo $ECHO_N "checking sys/sysconfig.h usability... $ECHO_C" >&6
8345
cat >conftest.$ac_ext <<_ACEOF
8348
cat confdefs.h >>conftest.$ac_ext
8349
cat >>conftest.$ac_ext <<_ACEOF
8350
/* end confdefs.h. */
8351
$ac_includes_default
8352
#include <sys/sysconfig.h>
8354
rm -f conftest.$ac_objext
8355
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8356
(eval $ac_compile) 2>conftest.er1
8358
grep -v '^ *+' conftest.er1 >conftest.err
8360
cat conftest.err >&5
8361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362
(exit $ac_status); } &&
8363
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368
(exit $ac_status); }; } &&
8369
{ ac_try='test -s conftest.$ac_objext'
8370
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374
(exit $ac_status); }; }; then
8375
ac_header_compiler=yes
8377
echo "$as_me: failed program was:" >&5
8378
sed 's/^/| /' conftest.$ac_ext >&5
8380
ac_header_compiler=no
8382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8383
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8384
echo "${ECHO_T}$ac_header_compiler" >&6
8386
# Is the header present?
8387
echo "$as_me:$LINENO: checking sys/sysconfig.h presence" >&5
8388
echo $ECHO_N "checking sys/sysconfig.h presence... $ECHO_C" >&6
8389
cat >conftest.$ac_ext <<_ACEOF
8392
cat confdefs.h >>conftest.$ac_ext
8393
cat >>conftest.$ac_ext <<_ACEOF
8394
/* end confdefs.h. */
8395
#include <sys/sysconfig.h>
8397
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8398
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8400
grep -v '^ *+' conftest.er1 >conftest.err
8402
cat conftest.err >&5
8403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404
(exit $ac_status); } >/dev/null; then
8405
if test -s conftest.err; then
8406
ac_cpp_err=$ac_c_preproc_warn_flag
8407
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8414
if test -z "$ac_cpp_err"; then
8415
ac_header_preproc=yes
8417
echo "$as_me: failed program was:" >&5
8418
sed 's/^/| /' conftest.$ac_ext >&5
8420
ac_header_preproc=no
8422
rm -f conftest.err conftest.$ac_ext
8423
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8424
echo "${ECHO_T}$ac_header_preproc" >&6
8426
# So? What about this header?
8427
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8429
{ echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
8430
echo "$as_me: WARNING: sys/sysconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8431
{ echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: proceeding with the compiler's result" >&5
8432
echo "$as_me: WARNING: sys/sysconfig.h: proceeding with the compiler's result" >&2;}
8433
ac_header_preproc=yes
8436
{ echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: present but cannot be compiled" >&5
8437
echo "$as_me: WARNING: sys/sysconfig.h: present but cannot be compiled" >&2;}
8438
{ echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: check for missing prerequisite headers?" >&5
8439
echo "$as_me: WARNING: sys/sysconfig.h: check for missing prerequisite headers?" >&2;}
8440
{ echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: see the Autoconf documentation" >&5
8441
echo "$as_me: WARNING: sys/sysconfig.h: see the Autoconf documentation" >&2;}
8442
{ echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: section \"Present But Cannot Be Compiled\"" >&5
8443
echo "$as_me: WARNING: sys/sysconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
8444
{ echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: proceeding with the preprocessor's result" >&5
8445
echo "$as_me: WARNING: sys/sysconfig.h: proceeding with the preprocessor's result" >&2;}
8446
{ echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: in the future, the compiler will take precedence" >&5
8447
echo "$as_me: WARNING: sys/sysconfig.h: in the future, the compiler will take precedence" >&2;}
8450
## ------------------------------------------ ##
8451
## Report this to the AC_PACKAGE_NAME lists. ##
8452
## ------------------------------------------ ##
8455
sed "s/^/$as_me: WARNING: /" >&2
8458
echo "$as_me:$LINENO: checking for sys/sysconfig.h" >&5
8459
echo $ECHO_N "checking for sys/sysconfig.h... $ECHO_C" >&6
8460
if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
8461
echo $ECHO_N "(cached) $ECHO_C" >&6
8463
ac_cv_header_sys_sysconfig_h=$ac_header_preproc
8465
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysconfig_h" >&5
8466
echo "${ECHO_T}$ac_cv_header_sys_sysconfig_h" >&6
8469
if test $ac_cv_header_sys_sysconfig_h = yes; then
8470
cat >>confdefs.h <<\_ACEOF
4193
echo "$ac_t""no" 1>&6
4197
ac_safe=`echo "sys/sysconfig.h" | sed 'y%./+-%__p_%'`
4198
echo $ac_n "checking for sys/sysconfig.h""... $ac_c" 1>&6
4199
echo "configure:4200: checking for sys/sysconfig.h" >&5
4200
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4201
echo $ac_n "(cached) $ac_c" 1>&6
4203
cat > conftest.$ac_ext <<EOF
4204
#line 4205 "configure"
4205
#include "confdefs.h"
4206
#include <sys/sysconfig.h>
4208
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4209
{ (eval echo configure:4210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4210
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4211
if test -z "$ac_err"; then
4213
eval "ac_cv_header_$ac_safe=yes"
4216
echo "configure: failed program was:" >&5
4217
cat conftest.$ac_ext >&5
4219
eval "ac_cv_header_$ac_safe=no"
4223
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4224
echo "$ac_t""yes" 1>&6
4225
cat >> confdefs.h <<\EOF
8471
4226
#define HAVE_SYSCONF_H 1
8477
if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
8478
echo "$as_me:$LINENO: checking for sys/fcntl.h" >&5
8479
echo $ECHO_N "checking for sys/fcntl.h... $ECHO_C" >&6
8480
if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
8481
echo $ECHO_N "(cached) $ECHO_C" >&6
8483
echo "$as_me:$LINENO: result: $ac_cv_header_sys_fcntl_h" >&5
8484
echo "${ECHO_T}$ac_cv_header_sys_fcntl_h" >&6
8486
# Is the header compilable?
8487
echo "$as_me:$LINENO: checking sys/fcntl.h usability" >&5
8488
echo $ECHO_N "checking sys/fcntl.h usability... $ECHO_C" >&6
8489
cat >conftest.$ac_ext <<_ACEOF
8492
cat confdefs.h >>conftest.$ac_ext
8493
cat >>conftest.$ac_ext <<_ACEOF
8494
/* end confdefs.h. */
8495
$ac_includes_default
8496
#include <sys/fcntl.h>
8498
rm -f conftest.$ac_objext
8499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500
(eval $ac_compile) 2>conftest.er1
8502
grep -v '^ *+' conftest.er1 >conftest.err
8504
cat conftest.err >&5
8505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506
(exit $ac_status); } &&
8507
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8508
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512
(exit $ac_status); }; } &&
8513
{ ac_try='test -s conftest.$ac_objext'
8514
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518
(exit $ac_status); }; }; then
8519
ac_header_compiler=yes
8521
echo "$as_me: failed program was:" >&5
8522
sed 's/^/| /' conftest.$ac_ext >&5
8524
ac_header_compiler=no
8526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8527
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8528
echo "${ECHO_T}$ac_header_compiler" >&6
8530
# Is the header present?
8531
echo "$as_me:$LINENO: checking sys/fcntl.h presence" >&5
8532
echo $ECHO_N "checking sys/fcntl.h presence... $ECHO_C" >&6
8533
cat >conftest.$ac_ext <<_ACEOF
8536
cat confdefs.h >>conftest.$ac_ext
8537
cat >>conftest.$ac_ext <<_ACEOF
8538
/* end confdefs.h. */
8539
#include <sys/fcntl.h>
8541
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8542
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8544
grep -v '^ *+' conftest.er1 >conftest.err
8546
cat conftest.err >&5
8547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548
(exit $ac_status); } >/dev/null; then
8549
if test -s conftest.err; then
8550
ac_cpp_err=$ac_c_preproc_warn_flag
8551
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8558
if test -z "$ac_cpp_err"; then
8559
ac_header_preproc=yes
8561
echo "$as_me: failed program was:" >&5
8562
sed 's/^/| /' conftest.$ac_ext >&5
8564
ac_header_preproc=no
8566
rm -f conftest.err conftest.$ac_ext
8567
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8568
echo "${ECHO_T}$ac_header_preproc" >&6
8570
# So? What about this header?
8571
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8573
{ echo "$as_me:$LINENO: WARNING: sys/fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8574
echo "$as_me: WARNING: sys/fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8575
{ echo "$as_me:$LINENO: WARNING: sys/fcntl.h: proceeding with the compiler's result" >&5
8576
echo "$as_me: WARNING: sys/fcntl.h: proceeding with the compiler's result" >&2;}
8577
ac_header_preproc=yes
8580
{ echo "$as_me:$LINENO: WARNING: sys/fcntl.h: present but cannot be compiled" >&5
8581
echo "$as_me: WARNING: sys/fcntl.h: present but cannot be compiled" >&2;}
8582
{ echo "$as_me:$LINENO: WARNING: sys/fcntl.h: check for missing prerequisite headers?" >&5
8583
echo "$as_me: WARNING: sys/fcntl.h: check for missing prerequisite headers?" >&2;}
8584
{ echo "$as_me:$LINENO: WARNING: sys/fcntl.h: see the Autoconf documentation" >&5
8585
echo "$as_me: WARNING: sys/fcntl.h: see the Autoconf documentation" >&2;}
8586
{ echo "$as_me:$LINENO: WARNING: sys/fcntl.h: section \"Present But Cannot Be Compiled\"" >&5
8587
echo "$as_me: WARNING: sys/fcntl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8588
{ echo "$as_me:$LINENO: WARNING: sys/fcntl.h: proceeding with the preprocessor's result" >&5
8589
echo "$as_me: WARNING: sys/fcntl.h: proceeding with the preprocessor's result" >&2;}
8590
{ echo "$as_me:$LINENO: WARNING: sys/fcntl.h: in the future, the compiler will take precedence" >&5
8591
echo "$as_me: WARNING: sys/fcntl.h: in the future, the compiler will take precedence" >&2;}
8594
## ------------------------------------------ ##
8595
## Report this to the AC_PACKAGE_NAME lists. ##
8596
## ------------------------------------------ ##
8599
sed "s/^/$as_me: WARNING: /" >&2
8602
echo "$as_me:$LINENO: checking for sys/fcntl.h" >&5
8603
echo $ECHO_N "checking for sys/fcntl.h... $ECHO_C" >&6
8604
if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
8605
echo $ECHO_N "(cached) $ECHO_C" >&6
8607
ac_cv_header_sys_fcntl_h=$ac_header_preproc
8609
echo "$as_me:$LINENO: result: $ac_cv_header_sys_fcntl_h" >&5
8610
echo "${ECHO_T}$ac_cv_header_sys_fcntl_h" >&6
8613
if test $ac_cv_header_sys_fcntl_h = yes; then
8614
cat >>confdefs.h <<\_ACEOF
4230
echo "$ac_t""no" 1>&6
4233
ac_safe=`echo "sys/fcntl.h" | sed 'y%./+-%__p_%'`
4234
echo $ac_n "checking for sys/fcntl.h""... $ac_c" 1>&6
4235
echo "configure:4236: checking for sys/fcntl.h" >&5
4236
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4237
echo $ac_n "(cached) $ac_c" 1>&6
4239
cat > conftest.$ac_ext <<EOF
4240
#line 4241 "configure"
4241
#include "confdefs.h"
4242
#include <sys/fcntl.h>
4244
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4245
{ (eval echo configure:4246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4246
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4247
if test -z "$ac_err"; then
4249
eval "ac_cv_header_$ac_safe=yes"
4252
echo "configure: failed program was:" >&5
4253
cat conftest.$ac_ext >&5
4255
eval "ac_cv_header_$ac_safe=no"
4259
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4260
echo "$ac_t""yes" 1>&6
4261
cat >> confdefs.h <<\EOF
8615
4262
#define HAVE_SYS_FCNTL_H 1
8621
if test "${ac_cv_header_sys_select_h+set}" = set; then
8622
echo "$as_me:$LINENO: checking for sys/select.h" >&5
8623
echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
8624
if test "${ac_cv_header_sys_select_h+set}" = set; then
8625
echo $ECHO_N "(cached) $ECHO_C" >&6
8627
echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8628
echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
8630
# Is the header compilable?
8631
echo "$as_me:$LINENO: checking sys/select.h usability" >&5
8632
echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
8633
cat >conftest.$ac_ext <<_ACEOF
8636
cat confdefs.h >>conftest.$ac_ext
8637
cat >>conftest.$ac_ext <<_ACEOF
8638
/* end confdefs.h. */
8639
$ac_includes_default
8640
#include <sys/select.h>
8642
rm -f conftest.$ac_objext
8643
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644
(eval $ac_compile) 2>conftest.er1
8646
grep -v '^ *+' conftest.er1 >conftest.err
8648
cat conftest.err >&5
8649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650
(exit $ac_status); } &&
8651
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656
(exit $ac_status); }; } &&
8657
{ ac_try='test -s conftest.$ac_objext'
8658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662
(exit $ac_status); }; }; then
8663
ac_header_compiler=yes
8665
echo "$as_me: failed program was:" >&5
8666
sed 's/^/| /' conftest.$ac_ext >&5
8668
ac_header_compiler=no
8670
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8671
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8672
echo "${ECHO_T}$ac_header_compiler" >&6
8674
# Is the header present?
8675
echo "$as_me:$LINENO: checking sys/select.h presence" >&5
8676
echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
8677
cat >conftest.$ac_ext <<_ACEOF
8680
cat confdefs.h >>conftest.$ac_ext
8681
cat >>conftest.$ac_ext <<_ACEOF
8682
/* end confdefs.h. */
8683
#include <sys/select.h>
8685
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8686
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8688
grep -v '^ *+' conftest.er1 >conftest.err
8690
cat conftest.err >&5
8691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692
(exit $ac_status); } >/dev/null; then
8693
if test -s conftest.err; then
8694
ac_cpp_err=$ac_c_preproc_warn_flag
8695
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8702
if test -z "$ac_cpp_err"; then
8703
ac_header_preproc=yes
8705
echo "$as_me: failed program was:" >&5
8706
sed 's/^/| /' conftest.$ac_ext >&5
8708
ac_header_preproc=no
8710
rm -f conftest.err conftest.$ac_ext
8711
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8712
echo "${ECHO_T}$ac_header_preproc" >&6
8714
# So? What about this header?
8715
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8717
{ echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
8718
echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8719
{ echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
8720
echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
8721
ac_header_preproc=yes
8724
{ echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
8725
echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
8726
{ echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
8727
echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
8728
{ echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
8729
echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
8730
{ echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
8731
echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
8732
{ echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
8733
echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
8734
{ echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
8735
echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
8738
## ------------------------------------------ ##
8739
## Report this to the AC_PACKAGE_NAME lists. ##
8740
## ------------------------------------------ ##
8743
sed "s/^/$as_me: WARNING: /" >&2
8746
echo "$as_me:$LINENO: checking for sys/select.h" >&5
8747
echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
8748
if test "${ac_cv_header_sys_select_h+set}" = set; then
8749
echo $ECHO_N "(cached) $ECHO_C" >&6
8751
ac_cv_header_sys_select_h=$ac_header_preproc
8753
echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8754
echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
8757
if test $ac_cv_header_sys_select_h = yes; then
8758
cat >>confdefs.h <<\_ACEOF
4266
echo "$ac_t""no" 1>&6
4269
ac_safe=`echo "sys/select.h" | sed 'y%./+-%__p_%'`
4270
echo $ac_n "checking for sys/select.h""... $ac_c" 1>&6
4271
echo "configure:4272: checking for sys/select.h" >&5
4272
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4273
echo $ac_n "(cached) $ac_c" 1>&6
4275
cat > conftest.$ac_ext <<EOF
4276
#line 4277 "configure"
4277
#include "confdefs.h"
4278
#include <sys/select.h>
4280
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281
{ (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4283
if test -z "$ac_err"; then
4285
eval "ac_cv_header_$ac_safe=yes"
4288
echo "configure: failed program was:" >&5
4289
cat conftest.$ac_ext >&5
4291
eval "ac_cv_header_$ac_safe=no"
4295
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296
echo "$ac_t""yes" 1>&6
4297
cat >> confdefs.h <<\EOF
8759
4298
#define HAVE_SYS_SELECT_H 1
8765
if test "${ac_cv_header_sys_time_h+set}" = set; then
8766
echo "$as_me:$LINENO: checking for sys/time.h" >&5
8767
echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
8768
if test "${ac_cv_header_sys_time_h+set}" = set; then
8769
echo $ECHO_N "(cached) $ECHO_C" >&6
8771
echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8772
echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
8774
# Is the header compilable?
8775
echo "$as_me:$LINENO: checking sys/time.h usability" >&5
8776
echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
8777
cat >conftest.$ac_ext <<_ACEOF
8780
cat confdefs.h >>conftest.$ac_ext
8781
cat >>conftest.$ac_ext <<_ACEOF
8782
/* end confdefs.h. */
8783
$ac_includes_default
8784
#include <sys/time.h>
8786
rm -f conftest.$ac_objext
8787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788
(eval $ac_compile) 2>conftest.er1
8790
grep -v '^ *+' conftest.er1 >conftest.err
8792
cat conftest.err >&5
8793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794
(exit $ac_status); } &&
8795
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800
(exit $ac_status); }; } &&
8801
{ ac_try='test -s conftest.$ac_objext'
8802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806
(exit $ac_status); }; }; then
8807
ac_header_compiler=yes
8809
echo "$as_me: failed program was:" >&5
8810
sed 's/^/| /' conftest.$ac_ext >&5
8812
ac_header_compiler=no
8814
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8816
echo "${ECHO_T}$ac_header_compiler" >&6
8818
# Is the header present?
8819
echo "$as_me:$LINENO: checking sys/time.h presence" >&5
8820
echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
8821
cat >conftest.$ac_ext <<_ACEOF
8824
cat confdefs.h >>conftest.$ac_ext
8825
cat >>conftest.$ac_ext <<_ACEOF
8826
/* end confdefs.h. */
8827
#include <sys/time.h>
8829
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8830
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8832
grep -v '^ *+' conftest.er1 >conftest.err
8834
cat conftest.err >&5
8835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836
(exit $ac_status); } >/dev/null; then
8837
if test -s conftest.err; then
8838
ac_cpp_err=$ac_c_preproc_warn_flag
8839
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8846
if test -z "$ac_cpp_err"; then
8847
ac_header_preproc=yes
8849
echo "$as_me: failed program was:" >&5
8850
sed 's/^/| /' conftest.$ac_ext >&5
8852
ac_header_preproc=no
8854
rm -f conftest.err conftest.$ac_ext
8855
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8856
echo "${ECHO_T}$ac_header_preproc" >&6
8858
# So? What about this header?
8859
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8861
{ echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8862
echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8863
{ echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8864
echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8865
ac_header_preproc=yes
8868
{ echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8869
echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8870
{ echo "$as_me:$LINENO: WARNING: sys/time.h: check for missing prerequisite headers?" >&5
8871
echo "$as_me: WARNING: sys/time.h: check for missing prerequisite headers?" >&2;}
8872
{ echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8873
echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8874
{ echo "$as_me:$LINENO: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&5
8875
echo "$as_me: WARNING: sys/time.h: section \"Present But Cannot Be Compiled\"" >&2;}
8876
{ echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8877
echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8878
{ echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8879
echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
8882
## ------------------------------------------ ##
8883
## Report this to the AC_PACKAGE_NAME lists. ##
8884
## ------------------------------------------ ##
8887
sed "s/^/$as_me: WARNING: /" >&2
8890
echo "$as_me:$LINENO: checking for sys/time.h" >&5
8891
echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
8892
if test "${ac_cv_header_sys_time_h+set}" = set; then
8893
echo $ECHO_N "(cached) $ECHO_C" >&6
8895
ac_cv_header_sys_time_h=$ac_header_preproc
8897
echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8898
echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
8901
if test $ac_cv_header_sys_time_h = yes; then
8902
cat >>confdefs.h <<\_ACEOF
4302
echo "$ac_t""no" 1>&6
4305
ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
4306
echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
4307
echo "configure:4308: checking for sys/time.h" >&5
4308
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4309
echo $ac_n "(cached) $ac_c" 1>&6
4311
cat > conftest.$ac_ext <<EOF
4312
#line 4313 "configure"
4313
#include "confdefs.h"
4314
#include <sys/time.h>
4316
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4317
{ (eval echo configure:4318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4318
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4319
if test -z "$ac_err"; then
4321
eval "ac_cv_header_$ac_safe=yes"
4324
echo "configure: failed program was:" >&5
4325
cat conftest.$ac_ext >&5
4327
eval "ac_cv_header_$ac_safe=no"
4331
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4332
echo "$ac_t""yes" 1>&6
4333
cat >> confdefs.h <<\EOF
8903
4334
#define HAVE_SYS_TIME_H 1
8909
if test "${ac_cv_header_sys_ptem_h+set}" = set; then
8910
echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
8911
echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
8912
if test "${ac_cv_header_sys_ptem_h+set}" = set; then
8913
echo $ECHO_N "(cached) $ECHO_C" >&6
8915
echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
8916
echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
8918
# Is the header compilable?
8919
echo "$as_me:$LINENO: checking sys/ptem.h usability" >&5
8920
echo $ECHO_N "checking sys/ptem.h usability... $ECHO_C" >&6
8921
cat >conftest.$ac_ext <<_ACEOF
8924
cat confdefs.h >>conftest.$ac_ext
8925
cat >>conftest.$ac_ext <<_ACEOF
8926
/* end confdefs.h. */
8927
$ac_includes_default
8928
#include <sys/ptem.h>
8930
rm -f conftest.$ac_objext
8931
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932
(eval $ac_compile) 2>conftest.er1
8934
grep -v '^ *+' conftest.er1 >conftest.err
8936
cat conftest.err >&5
8937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938
(exit $ac_status); } &&
8939
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944
(exit $ac_status); }; } &&
8945
{ ac_try='test -s conftest.$ac_objext'
8946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950
(exit $ac_status); }; }; then
8951
ac_header_compiler=yes
8953
echo "$as_me: failed program was:" >&5
8954
sed 's/^/| /' conftest.$ac_ext >&5
8956
ac_header_compiler=no
8958
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8959
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8960
echo "${ECHO_T}$ac_header_compiler" >&6
8962
# Is the header present?
8963
echo "$as_me:$LINENO: checking sys/ptem.h presence" >&5
8964
echo $ECHO_N "checking sys/ptem.h presence... $ECHO_C" >&6
8965
cat >conftest.$ac_ext <<_ACEOF
8968
cat confdefs.h >>conftest.$ac_ext
8969
cat >>conftest.$ac_ext <<_ACEOF
8970
/* end confdefs.h. */
8971
#include <sys/ptem.h>
8973
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8974
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8976
grep -v '^ *+' conftest.er1 >conftest.err
8978
cat conftest.err >&5
8979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980
(exit $ac_status); } >/dev/null; then
8981
if test -s conftest.err; then
8982
ac_cpp_err=$ac_c_preproc_warn_flag
8983
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8990
if test -z "$ac_cpp_err"; then
8991
ac_header_preproc=yes
8993
echo "$as_me: failed program was:" >&5
8994
sed 's/^/| /' conftest.$ac_ext >&5
8996
ac_header_preproc=no
8998
rm -f conftest.err conftest.$ac_ext
8999
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9000
echo "${ECHO_T}$ac_header_preproc" >&6
9002
# So? What about this header?
9003
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9005
{ echo "$as_me:$LINENO: WARNING: sys/ptem.h: accepted by the compiler, rejected by the preprocessor!" >&5
9006
echo "$as_me: WARNING: sys/ptem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9007
{ echo "$as_me:$LINENO: WARNING: sys/ptem.h: proceeding with the compiler's result" >&5
9008
echo "$as_me: WARNING: sys/ptem.h: proceeding with the compiler's result" >&2;}
9009
ac_header_preproc=yes
9012
{ echo "$as_me:$LINENO: WARNING: sys/ptem.h: present but cannot be compiled" >&5
9013
echo "$as_me: WARNING: sys/ptem.h: present but cannot be compiled" >&2;}
9014
{ echo "$as_me:$LINENO: WARNING: sys/ptem.h: check for missing prerequisite headers?" >&5
9015
echo "$as_me: WARNING: sys/ptem.h: check for missing prerequisite headers?" >&2;}
9016
{ echo "$as_me:$LINENO: WARNING: sys/ptem.h: see the Autoconf documentation" >&5
9017
echo "$as_me: WARNING: sys/ptem.h: see the Autoconf documentation" >&2;}
9018
{ echo "$as_me:$LINENO: WARNING: sys/ptem.h: section \"Present But Cannot Be Compiled\"" >&5
9019
echo "$as_me: WARNING: sys/ptem.h: section \"Present But Cannot Be Compiled\"" >&2;}
9020
{ echo "$as_me:$LINENO: WARNING: sys/ptem.h: proceeding with the preprocessor's result" >&5
9021
echo "$as_me: WARNING: sys/ptem.h: proceeding with the preprocessor's result" >&2;}
9022
{ echo "$as_me:$LINENO: WARNING: sys/ptem.h: in the future, the compiler will take precedence" >&5
9023
echo "$as_me: WARNING: sys/ptem.h: in the future, the compiler will take precedence" >&2;}
9026
## ------------------------------------------ ##
9027
## Report this to the AC_PACKAGE_NAME lists. ##
9028
## ------------------------------------------ ##
9031
sed "s/^/$as_me: WARNING: /" >&2
9034
echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
9035
echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
9036
if test "${ac_cv_header_sys_ptem_h+set}" = set; then
9037
echo $ECHO_N "(cached) $ECHO_C" >&6
9039
ac_cv_header_sys_ptem_h=$ac_header_preproc
9041
echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
9042
echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
9045
if test $ac_cv_header_sys_ptem_h = yes; then
9046
cat >>confdefs.h <<\_ACEOF
4338
echo "$ac_t""no" 1>&6
4341
ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
4342
echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
4343
echo "configure:4344: checking for sys/ptem.h" >&5
4344
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4345
echo $ac_n "(cached) $ac_c" 1>&6
4347
cat > conftest.$ac_ext <<EOF
4348
#line 4349 "configure"
4349
#include "confdefs.h"
4350
#include <sys/ptem.h>
4352
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4353
{ (eval echo configure:4354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4354
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4355
if test -z "$ac_err"; then
4357
eval "ac_cv_header_$ac_safe=yes"
4360
echo "configure: failed program was:" >&5
4361
cat conftest.$ac_ext >&5
4363
eval "ac_cv_header_$ac_safe=no"
4367
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4368
echo "$ac_t""yes" 1>&6
4369
cat >> confdefs.h <<\EOF
9047
4370
#define HAVE_SYS_PTEM_H 1
9053
if test "${ac_cv_header_sys_strredir_h+set}" = set; then
9054
echo "$as_me:$LINENO: checking for sys/strredir.h" >&5
9055
echo $ECHO_N "checking for sys/strredir.h... $ECHO_C" >&6
9056
if test "${ac_cv_header_sys_strredir_h+set}" = set; then
9057
echo $ECHO_N "(cached) $ECHO_C" >&6
9059
echo "$as_me:$LINENO: result: $ac_cv_header_sys_strredir_h" >&5
9060
echo "${ECHO_T}$ac_cv_header_sys_strredir_h" >&6
9062
# Is the header compilable?
9063
echo "$as_me:$LINENO: checking sys/strredir.h usability" >&5
9064
echo $ECHO_N "checking sys/strredir.h usability... $ECHO_C" >&6
9065
cat >conftest.$ac_ext <<_ACEOF
9068
cat confdefs.h >>conftest.$ac_ext
9069
cat >>conftest.$ac_ext <<_ACEOF
9070
/* end confdefs.h. */
9071
$ac_includes_default
9072
#include <sys/strredir.h>
9074
rm -f conftest.$ac_objext
9075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076
(eval $ac_compile) 2>conftest.er1
9078
grep -v '^ *+' conftest.er1 >conftest.err
9080
cat conftest.err >&5
9081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082
(exit $ac_status); } &&
9083
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088
(exit $ac_status); }; } &&
9089
{ ac_try='test -s conftest.$ac_objext'
9090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094
(exit $ac_status); }; }; then
9095
ac_header_compiler=yes
9097
echo "$as_me: failed program was:" >&5
9098
sed 's/^/| /' conftest.$ac_ext >&5
9100
ac_header_compiler=no
9102
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9103
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9104
echo "${ECHO_T}$ac_header_compiler" >&6
9106
# Is the header present?
9107
echo "$as_me:$LINENO: checking sys/strredir.h presence" >&5
9108
echo $ECHO_N "checking sys/strredir.h presence... $ECHO_C" >&6
9109
cat >conftest.$ac_ext <<_ACEOF
9112
cat confdefs.h >>conftest.$ac_ext
9113
cat >>conftest.$ac_ext <<_ACEOF
9114
/* end confdefs.h. */
9115
#include <sys/strredir.h>
9117
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9118
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9120
grep -v '^ *+' conftest.er1 >conftest.err
9122
cat conftest.err >&5
9123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124
(exit $ac_status); } >/dev/null; then
9125
if test -s conftest.err; then
9126
ac_cpp_err=$ac_c_preproc_warn_flag
9127
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9134
if test -z "$ac_cpp_err"; then
9135
ac_header_preproc=yes
9137
echo "$as_me: failed program was:" >&5
9138
sed 's/^/| /' conftest.$ac_ext >&5
9140
ac_header_preproc=no
9142
rm -f conftest.err conftest.$ac_ext
9143
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9144
echo "${ECHO_T}$ac_header_preproc" >&6
9146
# So? What about this header?
9147
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9149
{ echo "$as_me:$LINENO: WARNING: sys/strredir.h: accepted by the compiler, rejected by the preprocessor!" >&5
9150
echo "$as_me: WARNING: sys/strredir.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9151
{ echo "$as_me:$LINENO: WARNING: sys/strredir.h: proceeding with the compiler's result" >&5
9152
echo "$as_me: WARNING: sys/strredir.h: proceeding with the compiler's result" >&2;}
9153
ac_header_preproc=yes
9156
{ echo "$as_me:$LINENO: WARNING: sys/strredir.h: present but cannot be compiled" >&5
9157
echo "$as_me: WARNING: sys/strredir.h: present but cannot be compiled" >&2;}
9158
{ echo "$as_me:$LINENO: WARNING: sys/strredir.h: check for missing prerequisite headers?" >&5
9159
echo "$as_me: WARNING: sys/strredir.h: check for missing prerequisite headers?" >&2;}
9160
{ echo "$as_me:$LINENO: WARNING: sys/strredir.h: see the Autoconf documentation" >&5
9161
echo "$as_me: WARNING: sys/strredir.h: see the Autoconf documentation" >&2;}
9162
{ echo "$as_me:$LINENO: WARNING: sys/strredir.h: section \"Present But Cannot Be Compiled\"" >&5
9163
echo "$as_me: WARNING: sys/strredir.h: section \"Present But Cannot Be Compiled\"" >&2;}
9164
{ echo "$as_me:$LINENO: WARNING: sys/strredir.h: proceeding with the preprocessor's result" >&5
9165
echo "$as_me: WARNING: sys/strredir.h: proceeding with the preprocessor's result" >&2;}
9166
{ echo "$as_me:$LINENO: WARNING: sys/strredir.h: in the future, the compiler will take precedence" >&5
9167
echo "$as_me: WARNING: sys/strredir.h: in the future, the compiler will take precedence" >&2;}
9170
## ------------------------------------------ ##
9171
## Report this to the AC_PACKAGE_NAME lists. ##
9172
## ------------------------------------------ ##
9175
sed "s/^/$as_me: WARNING: /" >&2
9178
echo "$as_me:$LINENO: checking for sys/strredir.h" >&5
9179
echo $ECHO_N "checking for sys/strredir.h... $ECHO_C" >&6
9180
if test "${ac_cv_header_sys_strredir_h+set}" = set; then
9181
echo $ECHO_N "(cached) $ECHO_C" >&6
9183
ac_cv_header_sys_strredir_h=$ac_header_preproc
9185
echo "$as_me:$LINENO: result: $ac_cv_header_sys_strredir_h" >&5
9186
echo "${ECHO_T}$ac_cv_header_sys_strredir_h" >&6
9189
if test $ac_cv_header_sys_strredir_h = yes; then
9190
cat >>confdefs.h <<\_ACEOF
4374
echo "$ac_t""no" 1>&6
4377
ac_safe=`echo "sys/strredir.h" | sed 'y%./+-%__p_%'`
4378
echo $ac_n "checking for sys/strredir.h""... $ac_c" 1>&6
4379
echo "configure:4380: checking for sys/strredir.h" >&5
4380
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4381
echo $ac_n "(cached) $ac_c" 1>&6
4383
cat > conftest.$ac_ext <<EOF
4384
#line 4385 "configure"
4385
#include "confdefs.h"
4386
#include <sys/strredir.h>
4388
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4389
{ (eval echo configure:4390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4390
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4391
if test -z "$ac_err"; then
4393
eval "ac_cv_header_$ac_safe=yes"
4396
echo "configure: failed program was:" >&5
4397
cat conftest.$ac_ext >&5
4399
eval "ac_cv_header_$ac_safe=no"
4403
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4404
echo "$ac_t""yes" 1>&6
4405
cat >> confdefs.h <<\EOF
9191
4406
#define HAVE_STRREDIR_H 1
9197
if test "${ac_cv_header_sys_strpty_h+set}" = set; then
9198
echo "$as_me:$LINENO: checking for sys/strpty.h" >&5
9199
echo $ECHO_N "checking for sys/strpty.h... $ECHO_C" >&6
9200
if test "${ac_cv_header_sys_strpty_h+set}" = set; then
9201
echo $ECHO_N "(cached) $ECHO_C" >&6
9203
echo "$as_me:$LINENO: result: $ac_cv_header_sys_strpty_h" >&5
9204
echo "${ECHO_T}$ac_cv_header_sys_strpty_h" >&6
9206
# Is the header compilable?
9207
echo "$as_me:$LINENO: checking sys/strpty.h usability" >&5
9208
echo $ECHO_N "checking sys/strpty.h usability... $ECHO_C" >&6
9209
cat >conftest.$ac_ext <<_ACEOF
9212
cat confdefs.h >>conftest.$ac_ext
9213
cat >>conftest.$ac_ext <<_ACEOF
9214
/* end confdefs.h. */
9215
$ac_includes_default
9216
#include <sys/strpty.h>
9218
rm -f conftest.$ac_objext
9219
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220
(eval $ac_compile) 2>conftest.er1
9222
grep -v '^ *+' conftest.er1 >conftest.err
9224
cat conftest.err >&5
9225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226
(exit $ac_status); } &&
9227
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9228
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232
(exit $ac_status); }; } &&
9233
{ ac_try='test -s conftest.$ac_objext'
9234
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238
(exit $ac_status); }; }; then
9239
ac_header_compiler=yes
9241
echo "$as_me: failed program was:" >&5
9242
sed 's/^/| /' conftest.$ac_ext >&5
9244
ac_header_compiler=no
9246
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9247
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9248
echo "${ECHO_T}$ac_header_compiler" >&6
9250
# Is the header present?
9251
echo "$as_me:$LINENO: checking sys/strpty.h presence" >&5
9252
echo $ECHO_N "checking sys/strpty.h presence... $ECHO_C" >&6
9253
cat >conftest.$ac_ext <<_ACEOF
9256
cat confdefs.h >>conftest.$ac_ext
9257
cat >>conftest.$ac_ext <<_ACEOF
9258
/* end confdefs.h. */
9259
#include <sys/strpty.h>
9261
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9262
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9264
grep -v '^ *+' conftest.er1 >conftest.err
9266
cat conftest.err >&5
9267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268
(exit $ac_status); } >/dev/null; then
9269
if test -s conftest.err; then
9270
ac_cpp_err=$ac_c_preproc_warn_flag
9271
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9278
if test -z "$ac_cpp_err"; then
9279
ac_header_preproc=yes
9281
echo "$as_me: failed program was:" >&5
9282
sed 's/^/| /' conftest.$ac_ext >&5
9284
ac_header_preproc=no
9286
rm -f conftest.err conftest.$ac_ext
9287
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9288
echo "${ECHO_T}$ac_header_preproc" >&6
9290
# So? What about this header?
9291
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9293
{ echo "$as_me:$LINENO: WARNING: sys/strpty.h: accepted by the compiler, rejected by the preprocessor!" >&5
9294
echo "$as_me: WARNING: sys/strpty.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9295
{ echo "$as_me:$LINENO: WARNING: sys/strpty.h: proceeding with the compiler's result" >&5
9296
echo "$as_me: WARNING: sys/strpty.h: proceeding with the compiler's result" >&2;}
9297
ac_header_preproc=yes
9300
{ echo "$as_me:$LINENO: WARNING: sys/strpty.h: present but cannot be compiled" >&5
9301
echo "$as_me: WARNING: sys/strpty.h: present but cannot be compiled" >&2;}
9302
{ echo "$as_me:$LINENO: WARNING: sys/strpty.h: check for missing prerequisite headers?" >&5
9303
echo "$as_me: WARNING: sys/strpty.h: check for missing prerequisite headers?" >&2;}
9304
{ echo "$as_me:$LINENO: WARNING: sys/strpty.h: see the Autoconf documentation" >&5
9305
echo "$as_me: WARNING: sys/strpty.h: see the Autoconf documentation" >&2;}
9306
{ echo "$as_me:$LINENO: WARNING: sys/strpty.h: section \"Present But Cannot Be Compiled\"" >&5
9307
echo "$as_me: WARNING: sys/strpty.h: section \"Present But Cannot Be Compiled\"" >&2;}
9308
{ echo "$as_me:$LINENO: WARNING: sys/strpty.h: proceeding with the preprocessor's result" >&5
9309
echo "$as_me: WARNING: sys/strpty.h: proceeding with the preprocessor's result" >&2;}
9310
{ echo "$as_me:$LINENO: WARNING: sys/strpty.h: in the future, the compiler will take precedence" >&5
9311
echo "$as_me: WARNING: sys/strpty.h: in the future, the compiler will take precedence" >&2;}
9314
## ------------------------------------------ ##
9315
## Report this to the AC_PACKAGE_NAME lists. ##
9316
## ------------------------------------------ ##
9319
sed "s/^/$as_me: WARNING: /" >&2
9322
echo "$as_me:$LINENO: checking for sys/strpty.h" >&5
9323
echo $ECHO_N "checking for sys/strpty.h... $ECHO_C" >&6
9324
if test "${ac_cv_header_sys_strpty_h+set}" = set; then
9325
echo $ECHO_N "(cached) $ECHO_C" >&6
9327
ac_cv_header_sys_strpty_h=$ac_header_preproc
9329
echo "$as_me:$LINENO: result: $ac_cv_header_sys_strpty_h" >&5
9330
echo "${ECHO_T}$ac_cv_header_sys_strpty_h" >&6
9333
if test $ac_cv_header_sys_strpty_h = yes; then
9334
cat >>confdefs.h <<\_ACEOF
4410
echo "$ac_t""no" 1>&6
4413
ac_safe=`echo "sys/strpty.h" | sed 'y%./+-%__p_%'`
4414
echo $ac_n "checking for sys/strpty.h""... $ac_c" 1>&6
4415
echo "configure:4416: checking for sys/strpty.h" >&5
4416
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417
echo $ac_n "(cached) $ac_c" 1>&6
4419
cat > conftest.$ac_ext <<EOF
4420
#line 4421 "configure"
4421
#include "confdefs.h"
4422
#include <sys/strpty.h>
4424
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425
{ (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427
if test -z "$ac_err"; then
4429
eval "ac_cv_header_$ac_safe=yes"
4432
echo "configure: failed program was:" >&5
4433
cat conftest.$ac_ext >&5
4435
eval "ac_cv_header_$ac_safe=no"
4439
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440
echo "$ac_t""yes" 1>&6
4441
cat >> confdefs.h <<\EOF
9335
4442
#define HAVE_STRPTY_H 1
4446
echo "$ac_t""no" 1>&6
9343
echo "$as_me:$LINENO: checking for sys/bsdtypes.h" >&5
9344
echo $ECHO_N "checking for sys/bsdtypes.h... $ECHO_C" >&6
4451
echo $ac_n "checking for sys/bsdtypes.h""... $ac_c" 1>&6
4452
echo "configure:4453: checking for sys/bsdtypes.h" >&5
9345
4453
if test "ISC_${ISC}" = "ISC_1" ; then
9346
echo "$as_me:$LINENO: result: yes" >&5
9347
echo "${ECHO_T}yes" >&6
4454
echo "$ac_t""yes" 1>&6
9348
4455
# if on ISC 1, we need <sys/bsdtypes.h> to get FD_SET macros
9350
for ac_header in sys/bsdtypes.h
4456
for ac_hdr in sys/bsdtypes.h
9352
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354
echo "$as_me:$LINENO: checking for $ac_header" >&5
9355
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357
echo $ECHO_N "(cached) $ECHO_C" >&6
9359
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9360
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9362
# Is the header compilable?
9363
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9364
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9365
cat >conftest.$ac_ext <<_ACEOF
9368
cat confdefs.h >>conftest.$ac_ext
9369
cat >>conftest.$ac_ext <<_ACEOF
9370
/* end confdefs.h. */
9371
$ac_includes_default
9372
#include <$ac_header>
9374
rm -f conftest.$ac_objext
9375
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376
(eval $ac_compile) 2>conftest.er1
9378
grep -v '^ *+' conftest.er1 >conftest.err
9380
cat conftest.err >&5
9381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382
(exit $ac_status); } &&
9383
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9384
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388
(exit $ac_status); }; } &&
9389
{ ac_try='test -s conftest.$ac_objext'
9390
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394
(exit $ac_status); }; }; then
9395
ac_header_compiler=yes
9397
echo "$as_me: failed program was:" >&5
9398
sed 's/^/| /' conftest.$ac_ext >&5
9400
ac_header_compiler=no
9402
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9403
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9404
echo "${ECHO_T}$ac_header_compiler" >&6
9406
# Is the header present?
9407
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9408
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9409
cat >conftest.$ac_ext <<_ACEOF
9412
cat confdefs.h >>conftest.$ac_ext
9413
cat >>conftest.$ac_ext <<_ACEOF
9414
/* end confdefs.h. */
9415
#include <$ac_header>
9417
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9418
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9420
grep -v '^ *+' conftest.er1 >conftest.err
9422
cat conftest.err >&5
9423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424
(exit $ac_status); } >/dev/null; then
9425
if test -s conftest.err; then
9426
ac_cpp_err=$ac_c_preproc_warn_flag
9427
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9434
if test -z "$ac_cpp_err"; then
9435
ac_header_preproc=yes
9437
echo "$as_me: failed program was:" >&5
9438
sed 's/^/| /' conftest.$ac_ext >&5
9440
ac_header_preproc=no
9442
rm -f conftest.err conftest.$ac_ext
9443
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444
echo "${ECHO_T}$ac_header_preproc" >&6
9446
# So? What about this header?
9447
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9449
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9450
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9452
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9453
ac_header_preproc=yes
9456
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9457
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9458
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9459
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9460
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9461
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9462
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9463
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9464
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9465
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9466
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9467
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9470
## ------------------------------------------ ##
9471
## Report this to the AC_PACKAGE_NAME lists. ##
9472
## ------------------------------------------ ##
9475
sed "s/^/$as_me: WARNING: /" >&2
9478
echo "$as_me:$LINENO: checking for $ac_header" >&5
9479
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9480
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9481
echo $ECHO_N "(cached) $ECHO_C" >&6
9483
eval "$as_ac_Header=\$ac_header_preproc"
9485
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9486
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9489
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9490
cat >>confdefs.h <<_ACEOF
9491
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4458
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4459
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4460
echo "configure:4461: checking for $ac_hdr" >&5
4461
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4462
echo $ac_n "(cached) $ac_c" 1>&6
4464
cat > conftest.$ac_ext <<EOF
4465
#line 4466 "configure"
4466
#include "confdefs.h"
4469
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4470
{ (eval echo configure:4471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4471
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4472
if test -z "$ac_err"; then
4474
eval "ac_cv_header_$ac_safe=yes"
4477
echo "configure: failed program was:" >&5
4478
cat conftest.$ac_ext >&5
4480
eval "ac_cv_header_$ac_safe=no"
4484
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4485
echo "$ac_t""yes" 1>&6
4486
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4487
cat >> confdefs.h <<EOF
4488
#define $ac_tr_hdr 1
4492
echo "$ac_t""no" 1>&6
9499
echo "$as_me:$LINENO: result: no" >&5
9500
echo "${ECHO_T}no" >&6
4497
echo "$ac_t""no" 1>&6
9504
4501
# Look for functions that may be missing
9506
echo "$as_me:$LINENO: checking for memmove" >&5
9507
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
9508
if test "${ac_cv_func_memmove+set}" = set; then
9509
echo $ECHO_N "(cached) $ECHO_C" >&6
4503
echo $ac_n "checking for memmove""... $ac_c" 1>&6
4504
echo "configure:4505: checking for memmove" >&5
4505
if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
4506
echo $ac_n "(cached) $ac_c" 1>&6
9511
cat >conftest.$ac_ext <<_ACEOF
9514
cat confdefs.h >>conftest.$ac_ext
9515
cat >>conftest.$ac_ext <<_ACEOF
9516
/* end confdefs.h. */
9517
/* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
9518
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9519
#define memmove innocuous_memmove
4508
cat > conftest.$ac_ext <<EOF
4509
#line 4510 "configure"
4510
#include "confdefs.h"
9521
4511
/* System header to define __stub macros and hopefully few prototypes,
9522
which can conflict with char memmove (); below.
9523
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9524
<limits.h> exists even on freestanding compilers. */
9527
# include <limits.h>
9529
# include <assert.h>
4512
which can conflict with char memmove(); below. */
9534
4514
/* Override any gcc2 internal prototype to avoid an error. */
9539
4515
/* We use char because int might match the return type of a gcc2
9540
builtin and then its argument prototype would still apply. */
4516
builtin and then its argument prototype would still apply. */
9542
4521
/* The GNU C library defines this for functions which it implements
9543
4522
to always fail with ENOSYS. Some functions are actually named
9544
4523
something starting with __ and the normal name is an alias. */
9545
4524
#if defined (__stub_memmove) || defined (__stub___memmove)
9548
char (*f) () = memmove;
9557
return f != memmove;
9562
rm -f conftest.$ac_objext conftest$ac_exeext
9563
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564
(eval $ac_link) 2>conftest.er1
9566
grep -v '^ *+' conftest.er1 >conftest.err
9568
cat conftest.err >&5
9569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570
(exit $ac_status); } &&
9571
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9572
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576
(exit $ac_status); }; } &&
9577
{ ac_try='test -s conftest$ac_exeext'
9578
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582
(exit $ac_status); }; }; then
9583
ac_cv_func_memmove=yes
4532
if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4534
eval "ac_cv_func_memmove=yes"
9585
echo "$as_me: failed program was:" >&5
9586
sed 's/^/| /' conftest.$ac_ext >&5
4536
echo "configure: failed program was:" >&5
4537
cat conftest.$ac_ext >&5
4539
eval "ac_cv_func_memmove=no"
9588
ac_cv_func_memmove=no
9590
rm -f conftest.err conftest.$ac_objext \
9591
conftest$ac_exeext conftest.$ac_ext
9593
echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
9594
echo "${ECHO_T}$ac_cv_func_memmove" >&6
9595
if test $ac_cv_func_memmove = yes; then
9596
cat >>confdefs.h <<\_ACEOF
4544
if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
4545
echo "$ac_t""yes" 1>&6
4546
cat >> confdefs.h <<\EOF
9597
4547
#define HAVE_MEMMOVE 1
4551
echo "$ac_t""no" 1>&6
9602
echo "$as_me:$LINENO: checking for sysconf" >&5
9603
echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
9604
if test "${ac_cv_func_sysconf+set}" = set; then
9605
echo $ECHO_N "(cached) $ECHO_C" >&6
4554
echo $ac_n "checking for sysconf""... $ac_c" 1>&6
4555
echo "configure:4556: checking for sysconf" >&5
4556
if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
4557
echo $ac_n "(cached) $ac_c" 1>&6
9607
cat >conftest.$ac_ext <<_ACEOF
9610
cat confdefs.h >>conftest.$ac_ext
9611
cat >>conftest.$ac_ext <<_ACEOF
9612
/* end confdefs.h. */
9613
/* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
9614
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9615
#define sysconf innocuous_sysconf
4559
cat > conftest.$ac_ext <<EOF
4560
#line 4561 "configure"
4561
#include "confdefs.h"
9617
4562
/* System header to define __stub macros and hopefully few prototypes,
9618
which can conflict with char sysconf (); below.
9619
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620
<limits.h> exists even on freestanding compilers. */
9623
# include <limits.h>
9625
# include <assert.h>
4563
which can conflict with char sysconf(); below. */
9630
4565
/* Override any gcc2 internal prototype to avoid an error. */
9635
4566
/* We use char because int might match the return type of a gcc2
9636
builtin and then its argument prototype would still apply. */
4567
builtin and then its argument prototype would still apply. */
9638
4572
/* The GNU C library defines this for functions which it implements
9639
4573
to always fail with ENOSYS. Some functions are actually named
9640
4574
something starting with __ and the normal name is an alias. */
9641
4575
#if defined (__stub_sysconf) || defined (__stub___sysconf)
9644
char (*f) () = sysconf;
9653
return f != sysconf;
9658
rm -f conftest.$ac_objext conftest$ac_exeext
9659
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660
(eval $ac_link) 2>conftest.er1
9662
grep -v '^ *+' conftest.er1 >conftest.err
9664
cat conftest.err >&5
9665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666
(exit $ac_status); } &&
9667
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672
(exit $ac_status); }; } &&
9673
{ ac_try='test -s conftest$ac_exeext'
9674
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678
(exit $ac_status); }; }; then
9679
ac_cv_func_sysconf=yes
4583
if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4585
eval "ac_cv_func_sysconf=yes"
9681
echo "$as_me: failed program was:" >&5
9682
sed 's/^/| /' conftest.$ac_ext >&5
4587
echo "configure: failed program was:" >&5
4588
cat conftest.$ac_ext >&5
4590
eval "ac_cv_func_sysconf=no"
9684
ac_cv_func_sysconf=no
9686
rm -f conftest.err conftest.$ac_objext \
9687
conftest$ac_exeext conftest.$ac_ext
9689
echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
9690
echo "${ECHO_T}$ac_cv_func_sysconf" >&6
9691
if test $ac_cv_func_sysconf = yes; then
9692
cat >>confdefs.h <<\_ACEOF
4595
if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
4596
echo "$ac_t""yes" 1>&6
4597
cat >> confdefs.h <<\EOF
9693
4598
#define HAVE_SYSCONF 1
4602
echo "$ac_t""no" 1>&6
9698
echo "$as_me:$LINENO: checking for strftime" >&5
9699
echo $ECHO_N "checking for strftime... $ECHO_C" >&6
9700
if test "${ac_cv_func_strftime+set}" = set; then
9701
echo $ECHO_N "(cached) $ECHO_C" >&6
4605
echo $ac_n "checking for strftime""... $ac_c" 1>&6
4606
echo "configure:4607: checking for strftime" >&5
4607
if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
4608
echo $ac_n "(cached) $ac_c" 1>&6
9703
cat >conftest.$ac_ext <<_ACEOF
9706
cat confdefs.h >>conftest.$ac_ext
9707
cat >>conftest.$ac_ext <<_ACEOF
9708
/* end confdefs.h. */
9709
/* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
9710
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9711
#define strftime innocuous_strftime
4610
cat > conftest.$ac_ext <<EOF
4611
#line 4612 "configure"
4612
#include "confdefs.h"
9713
4613
/* System header to define __stub macros and hopefully few prototypes,
9714
which can conflict with char strftime (); below.
9715
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716
<limits.h> exists even on freestanding compilers. */
9719
# include <limits.h>
9721
# include <assert.h>
4614
which can conflict with char strftime(); below. */
9726
4616
/* Override any gcc2 internal prototype to avoid an error. */
9731
4617
/* We use char because int might match the return type of a gcc2
9732
builtin and then its argument prototype would still apply. */
4618
builtin and then its argument prototype would still apply. */
9734
4623
/* The GNU C library defines this for functions which it implements
9735
4624
to always fail with ENOSYS. Some functions are actually named
9736
4625
something starting with __ and the normal name is an alias. */
9737
4626
#if defined (__stub_strftime) || defined (__stub___strftime)
9740
char (*f) () = strftime;
9749
return f != strftime;
9754
rm -f conftest.$ac_objext conftest$ac_exeext
9755
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756
(eval $ac_link) 2>conftest.er1
9758
grep -v '^ *+' conftest.er1 >conftest.err
9760
cat conftest.err >&5
9761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762
(exit $ac_status); } &&
9763
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768
(exit $ac_status); }; } &&
9769
{ ac_try='test -s conftest$ac_exeext'
9770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774
(exit $ac_status); }; }; then
9775
ac_cv_func_strftime=yes
4634
if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4636
eval "ac_cv_func_strftime=yes"
9777
echo "$as_me: failed program was:" >&5
9778
sed 's/^/| /' conftest.$ac_ext >&5
4638
echo "configure: failed program was:" >&5
4639
cat conftest.$ac_ext >&5
4641
eval "ac_cv_func_strftime=no"
9780
ac_cv_func_strftime=no
9782
rm -f conftest.err conftest.$ac_objext \
9783
conftest$ac_exeext conftest.$ac_ext
9785
echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
9786
echo "${ECHO_T}$ac_cv_func_strftime" >&6
9787
if test $ac_cv_func_strftime = yes; then
9788
cat >>confdefs.h <<\_ACEOF
4646
if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
4647
echo "$ac_t""yes" 1>&6
4648
cat >> confdefs.h <<\EOF
9789
4649
#define HAVE_STRFTIME 1
4653
echo "$ac_t""no" 1>&6
9794
echo "$as_me:$LINENO: checking for strchr" >&5
9795
echo $ECHO_N "checking for strchr... $ECHO_C" >&6
9796
if test "${ac_cv_func_strchr+set}" = set; then
9797
echo $ECHO_N "(cached) $ECHO_C" >&6
4656
echo $ac_n "checking for strchr""... $ac_c" 1>&6
4657
echo "configure:4658: checking for strchr" >&5
4658
if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
4659
echo $ac_n "(cached) $ac_c" 1>&6
9799
cat >conftest.$ac_ext <<_ACEOF
9802
cat confdefs.h >>conftest.$ac_ext
9803
cat >>conftest.$ac_ext <<_ACEOF
9804
/* end confdefs.h. */
9805
/* Define strchr to an innocuous variant, in case <limits.h> declares strchr.
9806
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9807
#define strchr innocuous_strchr
4661
cat > conftest.$ac_ext <<EOF
4662
#line 4663 "configure"
4663
#include "confdefs.h"
9809
4664
/* System header to define __stub macros and hopefully few prototypes,
9810
which can conflict with char strchr (); below.
9811
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812
<limits.h> exists even on freestanding compilers. */
9815
# include <limits.h>
9817
# include <assert.h>
4665
which can conflict with char strchr(); below. */
9822
4667
/* Override any gcc2 internal prototype to avoid an error. */
9827
4668
/* We use char because int might match the return type of a gcc2
9828
builtin and then its argument prototype would still apply. */
4669
builtin and then its argument prototype would still apply. */
9830
4674
/* The GNU C library defines this for functions which it implements
9831
4675
to always fail with ENOSYS. Some functions are actually named
9832
4676
something starting with __ and the normal name is an alias. */
9833
4677
#if defined (__stub_strchr) || defined (__stub___strchr)
9836
char (*f) () = strchr;
9850
rm -f conftest.$ac_objext conftest$ac_exeext
9851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852
(eval $ac_link) 2>conftest.er1
9854
grep -v '^ *+' conftest.er1 >conftest.err
9856
cat conftest.err >&5
9857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858
(exit $ac_status); } &&
9859
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
(exit $ac_status); }; } &&
9865
{ ac_try='test -s conftest$ac_exeext'
9866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870
(exit $ac_status); }; }; then
9871
ac_cv_func_strchr=yes
4685
if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4687
eval "ac_cv_func_strchr=yes"
9873
echo "$as_me: failed program was:" >&5
9874
sed 's/^/| /' conftest.$ac_ext >&5
4689
echo "configure: failed program was:" >&5
4690
cat conftest.$ac_ext >&5
4692
eval "ac_cv_func_strchr=no"
9876
ac_cv_func_strchr=no
9878
rm -f conftest.err conftest.$ac_objext \
9879
conftest$ac_exeext conftest.$ac_ext
9881
echo "$as_me:$LINENO: result: $ac_cv_func_strchr" >&5
9882
echo "${ECHO_T}$ac_cv_func_strchr" >&6
9883
if test $ac_cv_func_strchr = yes; then
9884
cat >>confdefs.h <<\_ACEOF
4697
if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
4698
echo "$ac_t""yes" 1>&6
4699
cat >> confdefs.h <<\EOF
9885
4700
#define HAVE_STRCHR 1
4704
echo "$ac_t""no" 1>&6
9890
echo "$as_me:$LINENO: checking for timezone" >&5
9891
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
9892
if test "${ac_cv_func_timezone+set}" = set; then
9893
echo $ECHO_N "(cached) $ECHO_C" >&6
4707
echo $ac_n "checking for timezone""... $ac_c" 1>&6
4708
echo "configure:4709: checking for timezone" >&5
4709
if eval "test \"`echo '$''{'ac_cv_func_timezone'+set}'`\" = set"; then
4710
echo $ac_n "(cached) $ac_c" 1>&6
9895
cat >conftest.$ac_ext <<_ACEOF
9898
cat confdefs.h >>conftest.$ac_ext
9899
cat >>conftest.$ac_ext <<_ACEOF
9900
/* end confdefs.h. */
9901
/* Define timezone to an innocuous variant, in case <limits.h> declares timezone.
9902
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9903
#define timezone innocuous_timezone
4712
cat > conftest.$ac_ext <<EOF
4713
#line 4714 "configure"
4714
#include "confdefs.h"
9905
4715
/* System header to define __stub macros and hopefully few prototypes,
9906
which can conflict with char timezone (); below.
9907
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9908
<limits.h> exists even on freestanding compilers. */
9911
# include <limits.h>
9913
# include <assert.h>
4716
which can conflict with char timezone(); below. */
9918
4718
/* Override any gcc2 internal prototype to avoid an error. */
9923
4719
/* We use char because int might match the return type of a gcc2
9924
builtin and then its argument prototype would still apply. */
4720
builtin and then its argument prototype would still apply. */
9926
4725
/* The GNU C library defines this for functions which it implements
9927
4726
to always fail with ENOSYS. Some functions are actually named
9928
4727
something starting with __ and the normal name is an alias. */
9929
4728
#if defined (__stub_timezone) || defined (__stub___timezone)
9932
char (*f) () = timezone;
9941
return f != timezone;
9946
rm -f conftest.$ac_objext conftest$ac_exeext
9947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948
(eval $ac_link) 2>conftest.er1
9950
grep -v '^ *+' conftest.er1 >conftest.err
9952
cat conftest.err >&5
9953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954
(exit $ac_status); } &&
9955
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960
(exit $ac_status); }; } &&
9961
{ ac_try='test -s conftest$ac_exeext'
9962
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966
(exit $ac_status); }; }; then
9967
ac_cv_func_timezone=yes
4736
if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4738
eval "ac_cv_func_timezone=yes"
9969
echo "$as_me: failed program was:" >&5
9970
sed 's/^/| /' conftest.$ac_ext >&5
4740
echo "configure: failed program was:" >&5
4741
cat conftest.$ac_ext >&5
4743
eval "ac_cv_func_timezone=no"
9972
ac_cv_func_timezone=no
9974
rm -f conftest.err conftest.$ac_objext \
9975
conftest$ac_exeext conftest.$ac_ext
9977
echo "$as_me:$LINENO: result: $ac_cv_func_timezone" >&5
9978
echo "${ECHO_T}$ac_cv_func_timezone" >&6
9979
if test $ac_cv_func_timezone = yes; then
9980
cat >>confdefs.h <<\_ACEOF
4748
if eval "test \"`echo '$ac_cv_func_'timezone`\" = yes"; then
4749
echo "$ac_t""yes" 1>&6
4750
cat >> confdefs.h <<\EOF
9981
4751
#define HAVE_TIMEZONE 1
4755
echo "$ac_t""no" 1>&6
9986
echo "$as_me:$LINENO: checking for siglongjmp" >&5
9987
echo $ECHO_N "checking for siglongjmp... $ECHO_C" >&6
9988
if test "${ac_cv_func_siglongjmp+set}" = set; then
9989
echo $ECHO_N "(cached) $ECHO_C" >&6
4758
echo $ac_n "checking for siglongjmp""... $ac_c" 1>&6
4759
echo "configure:4760: checking for siglongjmp" >&5
4760
if eval "test \"`echo '$''{'ac_cv_func_siglongjmp'+set}'`\" = set"; then
4761
echo $ac_n "(cached) $ac_c" 1>&6
9991
cat >conftest.$ac_ext <<_ACEOF
9994
cat confdefs.h >>conftest.$ac_ext
9995
cat >>conftest.$ac_ext <<_ACEOF
9996
/* end confdefs.h. */
9997
/* Define siglongjmp to an innocuous variant, in case <limits.h> declares siglongjmp.
9998
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9999
#define siglongjmp innocuous_siglongjmp
4763
cat > conftest.$ac_ext <<EOF
4764
#line 4765 "configure"
4765
#include "confdefs.h"
10001
4766
/* System header to define __stub macros and hopefully few prototypes,
10002
which can conflict with char siglongjmp (); below.
10003
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10004
<limits.h> exists even on freestanding compilers. */
10007
# include <limits.h>
10009
# include <assert.h>
4767
which can conflict with char siglongjmp(); below. */
10014
4769
/* Override any gcc2 internal prototype to avoid an error. */
10019
4770
/* We use char because int might match the return type of a gcc2
10020
builtin and then its argument prototype would still apply. */
10021
char siglongjmp ();
4771
builtin and then its argument prototype would still apply. */
10022
4776
/* The GNU C library defines this for functions which it implements
10023
4777
to always fail with ENOSYS. Some functions are actually named
10024
4778
something starting with __ and the normal name is an alias. */
10025
4779
#if defined (__stub_siglongjmp) || defined (__stub___siglongjmp)
10028
char (*f) () = siglongjmp;
10037
return f != siglongjmp;
10042
rm -f conftest.$ac_objext conftest$ac_exeext
10043
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044
(eval $ac_link) 2>conftest.er1
10046
grep -v '^ *+' conftest.er1 >conftest.err
10048
cat conftest.err >&5
10049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050
(exit $ac_status); } &&
10051
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10052
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053
(eval $ac_try) 2>&5
10055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056
(exit $ac_status); }; } &&
10057
{ ac_try='test -s conftest$ac_exeext'
10058
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059
(eval $ac_try) 2>&5
10061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062
(exit $ac_status); }; }; then
10063
ac_cv_func_siglongjmp=yes
4787
if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789
eval "ac_cv_func_siglongjmp=yes"
10065
echo "$as_me: failed program was:" >&5
10066
sed 's/^/| /' conftest.$ac_ext >&5
4791
echo "configure: failed program was:" >&5
4792
cat conftest.$ac_ext >&5
4794
eval "ac_cv_func_siglongjmp=no"
10068
ac_cv_func_siglongjmp=no
10070
rm -f conftest.err conftest.$ac_objext \
10071
conftest$ac_exeext conftest.$ac_ext
10073
echo "$as_me:$LINENO: result: $ac_cv_func_siglongjmp" >&5
10074
echo "${ECHO_T}$ac_cv_func_siglongjmp" >&6
10075
if test $ac_cv_func_siglongjmp = yes; then
10076
cat >>confdefs.h <<\_ACEOF
4799
if eval "test \"`echo '$ac_cv_func_'siglongjmp`\" = yes"; then
4800
echo "$ac_t""yes" 1>&6
4801
cat >> confdefs.h <<\EOF
10077
4802
#define HAVE_SIGLONGJMP 1
4806
echo "$ac_t""no" 1>&6
10083
4810
# dnl check for memcpy by hand
10084
4811
# because Unixware 2.0 handles it specially and refuses to compile
10085
4812
# autoconf's automatic test that is a call with no arguments
10086
echo "$as_me:$LINENO: checking for memcpy" >&5
10087
echo $ECHO_N "checking for memcpy... $ECHO_C" >&6
10088
cat >conftest.$ac_ext <<_ACEOF
10091
cat confdefs.h >>conftest.$ac_ext
10092
cat >>conftest.$ac_ext <<_ACEOF
10093
/* end confdefs.h. */
4813
echo $ac_n "checking for memcpy""... $ac_c" 1>&6
4814
echo "configure:4815: checking for memcpy" >&5
4815
cat > conftest.$ac_ext <<EOF
4816
#line 4817 "configure"
4817
#include "confdefs.h"
10099
4821
char *s1, *s2;
10100
4822
memcpy(s1,s2,0);
10106
rm -f conftest.$ac_objext conftest$ac_exeext
10107
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108
(eval $ac_link) 2>conftest.er1
10110
grep -v '^ *+' conftest.er1 >conftest.err
10112
cat conftest.err >&5
10113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114
(exit $ac_status); } &&
10115
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10116
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117
(eval $ac_try) 2>&5
10119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120
(exit $ac_status); }; } &&
10121
{ ac_try='test -s conftest$ac_exeext'
10122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123
(eval $ac_try) 2>&5
10125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126
(exit $ac_status); }; }; then
10127
echo "$as_me:$LINENO: result: yes" >&5
10128
echo "${ECHO_T}yes" >&6
10129
cat >>confdefs.h <<\_ACEOF
4826
if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828
echo "$ac_t""yes" 1>&6
4829
cat >> confdefs.h <<\EOF
10130
4830
#define HAVE_MEMCPY 1
10135
echo "$as_me: failed program was:" >&5
10136
sed 's/^/| /' conftest.$ac_ext >&5
10138
echo "$as_me:$LINENO: result: no" >&5
10139
echo "${ECHO_T}no" >&6
4835
echo "configure: failed program was:" >&5
4836
cat conftest.$ac_ext >&5
4838
echo "$ac_t""no" 1>&6
10142
rm -f conftest.err conftest.$ac_objext \
10143
conftest$ac_exeext conftest.$ac_ext
10145
4843
# Some systems only define WNOHANG if _POSIX_SOURCE is defined
10146
4844
# The following merely tests that sys/wait.h can be included
10147
4845
# and if so that WNOHANG is not defined. The only place I've
10148
4846
# seen this is ISC.
10149
echo "$as_me:$LINENO: checking if WNOHANG requires _POSIX_SOURCE" >&5
10150
echo $ECHO_N "checking if WNOHANG requires _POSIX_SOURCE... $ECHO_C" >&6
4847
echo $ac_n "checking if WNOHANG requires _POSIX_SOURCE""... $ac_c" 1>&6
4848
echo "configure:4849: checking if WNOHANG requires _POSIX_SOURCE" >&5
10151
4849
if test "$cross_compiling" = yes; then
10152
{ { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
10153
echo "$as_me: error: Expect can't be cross compiled" >&2;}
10154
{ (exit 1); exit 1; }; }
4850
{ echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
10157
cat >conftest.$ac_ext <<_ACEOF
10160
cat confdefs.h >>conftest.$ac_ext
10161
cat >>conftest.$ac_ext <<_ACEOF
10162
/* end confdefs.h. */
4853
cat > conftest.$ac_ext <<EOF
4854
#line 4855 "configure"
4855
#include "confdefs.h"
10164
4857
#include <sys/wait.h>
10596
5197
# the SCO command to increase the number of ptys only configure c-list ones
10597
5198
# anyway. So we chose these, which have a special numbering scheme.
10599
echo "$as_me:$LINENO: checking for SCO style pty allocation" >&5
10600
echo $ECHO_N "checking for SCO style pty allocation... $ECHO_C" >&6
5200
echo $ac_n "checking for SCO style pty allocation""... $ac_c" 1>&6
5201
echo "configure:5202: checking for SCO style pty allocation" >&5
10602
5203
case "${host}" in
10603
5204
*-sco3.2v[45]*) sco_clist_ptys=1 svr4_ptys_broken=1;;
10606
5207
if test x"${sco_clist_ptys}" != x"" ; then
10607
echo "$as_me:$LINENO: result: yes" >&5
10608
echo "${ECHO_T}yes" >&6
10609
cat >>confdefs.h <<\_ACEOF
5208
echo "$ac_t""yes" 1>&6
5209
cat >> confdefs.h <<\EOF
10610
5210
#define HAVE_SCO_CLIST_PTYS 1
10614
echo "$as_me:$LINENO: result: no" >&5
10615
echo "${ECHO_T}no" >&6
5214
echo "$ac_t""no" 1>&6
10618
echo "$as_me:$LINENO: checking for SVR4 style pty allocation" >&5
10619
echo $ECHO_N "checking for SVR4 style pty allocation... $ECHO_C" >&6
5217
echo $ac_n "checking for SVR4 style pty allocation""... $ac_c" 1>&6
5218
echo "configure:5219: checking for SVR4 style pty allocation" >&5
10620
5219
if test -r /dev/ptmx -a "x$svr4_ptys_broken" = x ; then
10621
echo "$as_me:$LINENO: result: yes" >&5
10622
echo "${ECHO_T}yes" >&6
10623
cat >>confdefs.h <<\_ACEOF
5220
echo "$ac_t""yes" 1>&6
5221
cat >> confdefs.h <<\EOF
10624
5222
#define HAVE_PTMX 1
10627
5225
# aargg. Some systems need libpt.a to use /dev/ptmx
10628
echo "$as_me:$LINENO: checking for libpts=\"-lpt\" in -lpt" >&5
10629
echo $ECHO_N "checking for libpts=\"-lpt\" in -lpt... $ECHO_C" >&6
10630
if test "${ac_cv_lib_pt_libpts___lpt_+set}" = set; then
10631
echo $ECHO_N "(cached) $ECHO_C" >&6
5226
echo $ac_n "checking for libpts="-lpt" in -lpt""... $ac_c" 1>&6
5227
echo "configure:5228: checking for libpts="-lpt" in -lpt" >&5
5228
ac_lib_var=`echo pt'_'libpts="-lpt" | sed 'y%./+-%__p_%'`
5229
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5230
echo $ac_n "(cached) $ac_c" 1>&6
10633
ac_check_lib_save_LIBS=$LIBS
5232
ac_save_LIBS="$LIBS"
10634
5233
LIBS="-lpt $LIBS"
10635
cat >conftest.$ac_ext <<_ACEOF
10638
cat confdefs.h >>conftest.$ac_ext
10639
cat >>conftest.$ac_ext <<_ACEOF
10640
/* end confdefs.h. */
5234
cat > conftest.$ac_ext <<EOF
5235
#line 5236 "configure"
5236
#include "confdefs.h"
10642
5237
/* Override any gcc2 internal prototype to avoid an error. */
10646
5238
/* We use char because int might match the return type of a gcc2
10647
builtin and then its argument prototype would still apply. */
10648
char libpts="-lpt" ();
10657
rm -f conftest.$ac_objext conftest$ac_exeext
10658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659
(eval $ac_link) 2>conftest.er1
10661
grep -v '^ *+' conftest.er1 >conftest.err
10663
cat conftest.err >&5
10664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665
(exit $ac_status); } &&
10666
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10667
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668
(eval $ac_try) 2>&5
10670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671
(exit $ac_status); }; } &&
10672
{ ac_try='test -s conftest$ac_exeext'
10673
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674
(eval $ac_try) 2>&5
10676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677
(exit $ac_status); }; }; then
10678
ac_cv_lib_pt_libpts___lpt_=yes
5239
builtin and then its argument prototype would still apply. */
5240
char libpts="-lpt"();
5246
if { (eval echo configure:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5248
eval "ac_cv_lib_$ac_lib_var=yes"
10680
echo "$as_me: failed program was:" >&5
10681
sed 's/^/| /' conftest.$ac_ext >&5
5250
echo "configure: failed program was:" >&5
5251
cat conftest.$ac_ext >&5
5253
eval "ac_cv_lib_$ac_lib_var=no"
5256
LIBS="$ac_save_LIBS"
10683
ac_cv_lib_pt_libpts___lpt_=no
10685
rm -f conftest.err conftest.$ac_objext \
10686
conftest$ac_exeext conftest.$ac_ext
10687
LIBS=$ac_check_lib_save_LIBS
10689
echo "$as_me:$LINENO: result: $ac_cv_lib_pt_libpts___lpt_" >&5
10690
echo "${ECHO_T}$ac_cv_lib_pt_libpts___lpt_" >&6
10691
if test $ac_cv_lib_pt_libpts___lpt_ = yes; then
5259
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5260
echo "$ac_t""yes" 1>&6
5263
echo "$ac_t""no" 1>&6
10695
echo "$as_me:$LINENO: checking for ptsname" >&5
10696
echo $ECHO_N "checking for ptsname... $ECHO_C" >&6
10697
if test "${ac_cv_func_ptsname+set}" = set; then
10698
echo $ECHO_N "(cached) $ECHO_C" >&6
5266
echo $ac_n "checking for ptsname""... $ac_c" 1>&6
5267
echo "configure:5268: checking for ptsname" >&5
5268
if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
5269
echo $ac_n "(cached) $ac_c" 1>&6
10700
cat >conftest.$ac_ext <<_ACEOF
10703
cat confdefs.h >>conftest.$ac_ext
10704
cat >>conftest.$ac_ext <<_ACEOF
10705
/* end confdefs.h. */
10706
/* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname.
10707
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10708
#define ptsname innocuous_ptsname
5271
cat > conftest.$ac_ext <<EOF
5272
#line 5273 "configure"
5273
#include "confdefs.h"
10710
5274
/* System header to define __stub macros and hopefully few prototypes,
10711
which can conflict with char ptsname (); below.
10712
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713
<limits.h> exists even on freestanding compilers. */
10716
# include <limits.h>
10718
# include <assert.h>
5275
which can conflict with char ptsname(); below. */
10723
5277
/* Override any gcc2 internal prototype to avoid an error. */
10728
5278
/* We use char because int might match the return type of a gcc2
10729
builtin and then its argument prototype would still apply. */
5279
builtin and then its argument prototype would still apply. */
10731
5284
/* The GNU C library defines this for functions which it implements
10732
5285
to always fail with ENOSYS. Some functions are actually named
10733
5286
something starting with __ and the normal name is an alias. */
10734
5287
#if defined (__stub_ptsname) || defined (__stub___ptsname)
10737
char (*f) () = ptsname;
10746
return f != ptsname;
10751
rm -f conftest.$ac_objext conftest$ac_exeext
10752
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753
(eval $ac_link) 2>conftest.er1
10755
grep -v '^ *+' conftest.er1 >conftest.err
10757
cat conftest.err >&5
10758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759
(exit $ac_status); } &&
10760
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762
(eval $ac_try) 2>&5
10764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765
(exit $ac_status); }; } &&
10766
{ ac_try='test -s conftest$ac_exeext'
10767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768
(eval $ac_try) 2>&5
10770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771
(exit $ac_status); }; }; then
10772
ac_cv_func_ptsname=yes
5295
if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5297
eval "ac_cv_func_ptsname=yes"
10774
echo "$as_me: failed program was:" >&5
10775
sed 's/^/| /' conftest.$ac_ext >&5
5299
echo "configure: failed program was:" >&5
5300
cat conftest.$ac_ext >&5
5302
eval "ac_cv_func_ptsname=no"
10777
ac_cv_func_ptsname=no
10779
rm -f conftest.err conftest.$ac_objext \
10780
conftest$ac_exeext conftest.$ac_ext
10782
echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5
10783
echo "${ECHO_T}$ac_cv_func_ptsname" >&6
10784
if test $ac_cv_func_ptsname = yes; then
5307
if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
5308
echo "$ac_t""yes" 1>&6
10787
LIBS="${LIBS} $libpts"
5311
echo "$ac_t""no" 1>&6
5312
LIBS="${LIBS} $libpts"
10790
5315
# I've never seen Tcl or Tk include -lpt so don't bother with explicit test
10791
echo "$as_me:$LINENO: checking for ptsname" >&5
10792
echo $ECHO_N "checking for ptsname... $ECHO_C" >&6
10793
if test "${ac_cv_func_ptsname+set}" = set; then
10794
echo $ECHO_N "(cached) $ECHO_C" >&6
10796
cat >conftest.$ac_ext <<_ACEOF
10799
cat confdefs.h >>conftest.$ac_ext
10800
cat >>conftest.$ac_ext <<_ACEOF
10801
/* end confdefs.h. */
10802
/* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname.
10803
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10804
#define ptsname innocuous_ptsname
10806
/* System header to define __stub macros and hopefully few prototypes,
10807
which can conflict with char ptsname (); below.
10808
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809
<limits.h> exists even on freestanding compilers. */
10812
# include <limits.h>
10814
# include <assert.h>
10819
/* Override any gcc2 internal prototype to avoid an error. */
10824
/* We use char because int might match the return type of a gcc2
10825
builtin and then its argument prototype would still apply. */
10827
/* The GNU C library defines this for functions which it implements
10828
to always fail with ENOSYS. Some functions are actually named
10829
something starting with __ and the normal name is an alias. */
10830
#if defined (__stub_ptsname) || defined (__stub___ptsname)
10833
char (*f) () = ptsname;
10842
return f != ptsname;
10847
rm -f conftest.$ac_objext conftest$ac_exeext
10848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849
(eval $ac_link) 2>conftest.er1
10851
grep -v '^ *+' conftest.er1 >conftest.err
10853
cat conftest.err >&5
10854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855
(exit $ac_status); } &&
10856
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858
(eval $ac_try) 2>&5
10860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861
(exit $ac_status); }; } &&
10862
{ ac_try='test -s conftest$ac_exeext'
10863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864
(eval $ac_try) 2>&5
10866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867
(exit $ac_status); }; }; then
10868
ac_cv_func_ptsname=yes
10870
echo "$as_me: failed program was:" >&5
10871
sed 's/^/| /' conftest.$ac_ext >&5
10873
ac_cv_func_ptsname=no
10875
rm -f conftest.err conftest.$ac_objext \
10876
conftest$ac_exeext conftest.$ac_ext
10878
echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5
10879
echo "${ECHO_T}$ac_cv_func_ptsname" >&6
10880
if test $ac_cv_func_ptsname = yes; then
10883
EXP_AND_TCL_LIBS="${EXP_AND_TCL_LIBS} $libpts"
10886
echo "$as_me:$LINENO: checking for ptsname" >&5
10887
echo $ECHO_N "checking for ptsname... $ECHO_C" >&6
10888
if test "${ac_cv_func_ptsname+set}" = set; then
10889
echo $ECHO_N "(cached) $ECHO_C" >&6
10891
cat >conftest.$ac_ext <<_ACEOF
10894
cat confdefs.h >>conftest.$ac_ext
10895
cat >>conftest.$ac_ext <<_ACEOF
10896
/* end confdefs.h. */
10897
/* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname.
10898
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10899
#define ptsname innocuous_ptsname
10901
/* System header to define __stub macros and hopefully few prototypes,
10902
which can conflict with char ptsname (); below.
10903
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10904
<limits.h> exists even on freestanding compilers. */
10907
# include <limits.h>
10909
# include <assert.h>
10914
/* Override any gcc2 internal prototype to avoid an error. */
10919
/* We use char because int might match the return type of a gcc2
10920
builtin and then its argument prototype would still apply. */
10922
/* The GNU C library defines this for functions which it implements
10923
to always fail with ENOSYS. Some functions are actually named
10924
something starting with __ and the normal name is an alias. */
10925
#if defined (__stub_ptsname) || defined (__stub___ptsname)
10928
char (*f) () = ptsname;
10937
return f != ptsname;
10942
rm -f conftest.$ac_objext conftest$ac_exeext
10943
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944
(eval $ac_link) 2>conftest.er1
10946
grep -v '^ *+' conftest.er1 >conftest.err
10948
cat conftest.err >&5
10949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950
(exit $ac_status); } &&
10951
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953
(eval $ac_try) 2>&5
10955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956
(exit $ac_status); }; } &&
10957
{ ac_try='test -s conftest$ac_exeext'
10958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959
(eval $ac_try) 2>&5
10961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962
(exit $ac_status); }; }; then
10963
ac_cv_func_ptsname=yes
10965
echo "$as_me: failed program was:" >&5
10966
sed 's/^/| /' conftest.$ac_ext >&5
10968
ac_cv_func_ptsname=no
10970
rm -f conftest.err conftest.$ac_objext \
10971
conftest$ac_exeext conftest.$ac_ext
10973
echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5
10974
echo "${ECHO_T}$ac_cv_func_ptsname" >&6
10975
if test $ac_cv_func_ptsname = yes; then
10978
EXP_AND_TK_LIBS="${EXP_AND_TK_LIBS} $libpts"
10982
echo "$as_me:$LINENO: result: no" >&5
10983
echo "${ECHO_T}no" >&6
5316
echo $ac_n "checking for ptsname""... $ac_c" 1>&6
5317
echo "configure:5318: checking for ptsname" >&5
5318
if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
5319
echo $ac_n "(cached) $ac_c" 1>&6
5321
cat > conftest.$ac_ext <<EOF
5322
#line 5323 "configure"
5323
#include "confdefs.h"
5324
/* System header to define __stub macros and hopefully few prototypes,
5325
which can conflict with char ptsname(); below. */
5327
/* Override any gcc2 internal prototype to avoid an error. */
5328
/* We use char because int might match the return type of a gcc2
5329
builtin and then its argument prototype would still apply. */
5334
/* The GNU C library defines this for functions which it implements
5335
to always fail with ENOSYS. Some functions are actually named
5336
something starting with __ and the normal name is an alias. */
5337
#if defined (__stub_ptsname) || defined (__stub___ptsname)
5345
if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5347
eval "ac_cv_func_ptsname=yes"
5349
echo "configure: failed program was:" >&5
5350
cat conftest.$ac_ext >&5
5352
eval "ac_cv_func_ptsname=no"
5357
if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
5358
echo "$ac_t""yes" 1>&6
5361
echo "$ac_t""no" 1>&6
5362
EXP_AND_TCL_LIBS="${EXP_AND_TCL_LIBS} $libpts"
5365
echo $ac_n "checking for ptsname""... $ac_c" 1>&6
5366
echo "configure:5367: checking for ptsname" >&5
5367
if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
5368
echo $ac_n "(cached) $ac_c" 1>&6
5370
cat > conftest.$ac_ext <<EOF
5371
#line 5372 "configure"
5372
#include "confdefs.h"
5373
/* System header to define __stub macros and hopefully few prototypes,
5374
which can conflict with char ptsname(); below. */
5376
/* Override any gcc2 internal prototype to avoid an error. */
5377
/* We use char because int might match the return type of a gcc2
5378
builtin and then its argument prototype would still apply. */
5383
/* The GNU C library defines this for functions which it implements
5384
to always fail with ENOSYS. Some functions are actually named
5385
something starting with __ and the normal name is an alias. */
5386
#if defined (__stub_ptsname) || defined (__stub___ptsname)
5394
if { (eval echo configure:5395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5396
eval "ac_cv_func_ptsname=yes"
5398
echo "configure: failed program was:" >&5
5399
cat conftest.$ac_ext >&5
5401
eval "ac_cv_func_ptsname=no"
5406
if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
5407
echo "$ac_t""yes" 1>&6
5410
echo "$ac_t""no" 1>&6
5411
EXP_AND_TK_LIBS="${EXP_AND_TK_LIBS} $libpts"
5415
echo "$ac_t""no" 1>&6
10986
5418
# In OSF/1 case, SVR4 are somewhat different.
10987
5419
# Gregory Depp <depp@osf.org> 17Aug93
10988
echo "$as_me:$LINENO: checking for OSF/1 style pty allocation" >&5
10989
echo $ECHO_N "checking for OSF/1 style pty allocation... $ECHO_C" >&6
5420
echo $ac_n "checking for OSF/1 style pty allocation""... $ac_c" 1>&6
5421
echo "configure:5422: checking for OSF/1 style pty allocation" >&5
10990
5422
if test -r /dev/ptmx_bsd ; then
10991
cat >>confdefs.h <<\_ACEOF
5423
cat >> confdefs.h <<\EOF
10992
5424
#define HAVE_PTMX_BSD 1
10995
echo "$as_me:$LINENO: result: yes" >&5
10996
echo "${ECHO_T}yes" >&6
5427
echo "$ac_t""yes" 1>&6
10998
echo "$as_me:$LINENO: result: no" >&5
10999
echo "${ECHO_T}no" >&6
5429
echo "$ac_t""no" 1>&6
11004
echo "$as_me:$LINENO: checking for tcgetattr" >&5
11005
echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
11006
if test "${ac_cv_func_tcgetattr+set}" = set; then
11007
echo $ECHO_N "(cached) $ECHO_C" >&6
5434
echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
5435
echo "configure:5436: checking for tcgetattr" >&5
5436
if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
5437
echo $ac_n "(cached) $ac_c" 1>&6
11009
cat >conftest.$ac_ext <<_ACEOF
11012
cat confdefs.h >>conftest.$ac_ext
11013
cat >>conftest.$ac_ext <<_ACEOF
11014
/* end confdefs.h. */
11015
/* Define tcgetattr to an innocuous variant, in case <limits.h> declares tcgetattr.
11016
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11017
#define tcgetattr innocuous_tcgetattr
5439
cat > conftest.$ac_ext <<EOF
5440
#line 5441 "configure"
5441
#include "confdefs.h"
11019
5442
/* System header to define __stub macros and hopefully few prototypes,
11020
which can conflict with char tcgetattr (); below.
11021
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022
<limits.h> exists even on freestanding compilers. */
11025
# include <limits.h>
11027
# include <assert.h>
5443
which can conflict with char tcgetattr(); below. */
11032
5445
/* Override any gcc2 internal prototype to avoid an error. */
11037
5446
/* We use char because int might match the return type of a gcc2
11038
builtin and then its argument prototype would still apply. */
5447
builtin and then its argument prototype would still apply. */
11040
5452
/* The GNU C library defines this for functions which it implements
11041
5453
to always fail with ENOSYS. Some functions are actually named
11042
5454
something starting with __ and the normal name is an alias. */
11043
5455
#if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
11046
char (*f) () = tcgetattr;
11055
return f != tcgetattr;
11060
rm -f conftest.$ac_objext conftest$ac_exeext
11061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062
(eval $ac_link) 2>conftest.er1
11064
grep -v '^ *+' conftest.er1 >conftest.err
11066
cat conftest.err >&5
11067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068
(exit $ac_status); } &&
11069
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071
(eval $ac_try) 2>&5
11073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074
(exit $ac_status); }; } &&
11075
{ ac_try='test -s conftest$ac_exeext'
11076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077
(eval $ac_try) 2>&5
11079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080
(exit $ac_status); }; }; then
11081
ac_cv_func_tcgetattr=yes
5463
if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5465
eval "ac_cv_func_tcgetattr=yes"
11083
echo "$as_me: failed program was:" >&5
11084
sed 's/^/| /' conftest.$ac_ext >&5
5467
echo "configure: failed program was:" >&5
5468
cat conftest.$ac_ext >&5
5470
eval "ac_cv_func_tcgetattr=no"
11086
ac_cv_func_tcgetattr=no
11088
rm -f conftest.err conftest.$ac_objext \
11089
conftest$ac_exeext conftest.$ac_ext
11091
echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5
11092
echo "${ECHO_T}$ac_cv_func_tcgetattr" >&6
11093
if test $ac_cv_func_tcgetattr = yes; then
5475
if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
5476
echo "$ac_t""yes" 1>&6
5479
echo "$ac_t""no" 1>&6
11097
echo "$as_me:$LINENO: checking for tcsetattr" >&5
11098
echo $ECHO_N "checking for tcsetattr... $ECHO_C" >&6
11099
if test "${ac_cv_func_tcsetattr+set}" = set; then
11100
echo $ECHO_N "(cached) $ECHO_C" >&6
5482
echo $ac_n "checking for tcsetattr""... $ac_c" 1>&6
5483
echo "configure:5484: checking for tcsetattr" >&5
5484
if eval "test \"`echo '$''{'ac_cv_func_tcsetattr'+set}'`\" = set"; then
5485
echo $ac_n "(cached) $ac_c" 1>&6
11102
cat >conftest.$ac_ext <<_ACEOF
11105
cat confdefs.h >>conftest.$ac_ext
11106
cat >>conftest.$ac_ext <<_ACEOF
11107
/* end confdefs.h. */
11108
/* Define tcsetattr to an innocuous variant, in case <limits.h> declares tcsetattr.
11109
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11110
#define tcsetattr innocuous_tcsetattr
5487
cat > conftest.$ac_ext <<EOF
5488
#line 5489 "configure"
5489
#include "confdefs.h"
11112
5490
/* System header to define __stub macros and hopefully few prototypes,
11113
which can conflict with char tcsetattr (); below.
11114
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11115
<limits.h> exists even on freestanding compilers. */
11118
# include <limits.h>
11120
# include <assert.h>
5491
which can conflict with char tcsetattr(); below. */
11125
5493
/* Override any gcc2 internal prototype to avoid an error. */
11130
5494
/* We use char because int might match the return type of a gcc2
11131
builtin and then its argument prototype would still apply. */
5495
builtin and then its argument prototype would still apply. */
11133
5500
/* The GNU C library defines this for functions which it implements
11134
5501
to always fail with ENOSYS. Some functions are actually named
11135
5502
something starting with __ and the normal name is an alias. */
11136
5503
#if defined (__stub_tcsetattr) || defined (__stub___tcsetattr)
11139
char (*f) () = tcsetattr;
11148
return f != tcsetattr;
11153
rm -f conftest.$ac_objext conftest$ac_exeext
11154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155
(eval $ac_link) 2>conftest.er1
11157
grep -v '^ *+' conftest.er1 >conftest.err
11159
cat conftest.err >&5
11160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161
(exit $ac_status); } &&
11162
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11163
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164
(eval $ac_try) 2>&5
11166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167
(exit $ac_status); }; } &&
11168
{ ac_try='test -s conftest$ac_exeext'
11169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170
(eval $ac_try) 2>&5
11172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173
(exit $ac_status); }; }; then
11174
ac_cv_func_tcsetattr=yes
5511
if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5513
eval "ac_cv_func_tcsetattr=yes"
11176
echo "$as_me: failed program was:" >&5
11177
sed 's/^/| /' conftest.$ac_ext >&5
5515
echo "configure: failed program was:" >&5
5516
cat conftest.$ac_ext >&5
5518
eval "ac_cv_func_tcsetattr=no"
11179
ac_cv_func_tcsetattr=no
11181
rm -f conftest.err conftest.$ac_objext \
11182
conftest$ac_exeext conftest.$ac_ext
11184
echo "$as_me:$LINENO: result: $ac_cv_func_tcsetattr" >&5
11185
echo "${ECHO_T}$ac_cv_func_tcsetattr" >&6
11186
if test $ac_cv_func_tcsetattr = yes; then
5523
if eval "test \"`echo '$ac_cv_func_'tcsetattr`\" = yes"; then
5524
echo "$ac_t""yes" 1>&6
5527
echo "$ac_t""no" 1>&6
11190
5530
if test $tcgetattr -eq 1 -a $tcsetattr -eq 1 ; then
11191
cat >>confdefs.h <<\_ACEOF
5531
cat >> confdefs.h <<\EOF
11192
5532
#define HAVE_TCSETATTR 1
11195
cat >>confdefs.h <<\_ACEOF
5535
cat >> confdefs.h <<\EOF
11196
5536
#define POSIX 1
11201
5541
# first check for the pure bsd
11202
echo "$as_me:$LINENO: checking for struct sgttyb" >&5
11203
echo $ECHO_N "checking for struct sgttyb... $ECHO_C" >&6
5542
echo $ac_n "checking for struct sgttyb""... $ac_c" 1>&6
5543
echo "configure:5544: checking for struct sgttyb" >&5
11204
5544
if test "$cross_compiling" = yes; then
11205
{ { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
11206
echo "$as_me: error: Expect can't be cross compiled" >&2;}
11207
{ (exit 1); exit 1; }; }
5545
{ echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
11210
cat >conftest.$ac_ext <<_ACEOF
11213
cat confdefs.h >>conftest.$ac_ext
11214
cat >>conftest.$ac_ext <<_ACEOF
11215
/* end confdefs.h. */
5548
cat > conftest.$ac_ext <<EOF
5549
#line 5550 "configure"
5550
#include "confdefs.h"
11217
5552
#include <sgtty.h>
12593
ac_config_files="$ac_config_files Makefile pkgIndex"
12594
ac_config_commands="$ac_config_commands default"
6495
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12597
6497
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12598
6498
# Let make expand exec_prefix.
12599
6499
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12601
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12602
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12603
# trailing colons and then remove the whole line if VPATH becomes empty
12604
# (actually we leave an empty line to preserve line numbers).
6501
# Any assignment to VPATH causes Sun make to only execute
6502
# the first set of double-colon rules, so remove it if not needed.
6503
# If there is a colon in the path, we need to keep it.
12605
6504
if test "x$srcdir" = x.; then
12606
ac_vpsub='/^[ ]*VPATH[ ]*=/{
12607
s/:*\$(srcdir):*/:/;
12608
s/:*\${srcdir}:*/:/;
12610
s/^\([^=]*=[ ]*\):*/\1/;
6505
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6508
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12616
6510
DEFS=-DHAVE_CONFIG_H
12620
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12621
# 1. Remove the extension, and $U if already installed.
12622
ac_i=`echo "$ac_i" |
12623
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12625
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12626
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12628
LIBOBJS=$ac_libobjs
12630
LTLIBOBJS=$ac_ltlibobjs
6512
# Without the "./", some shells look in PATH for config.status.
12634
6513
: ${CONFIG_STATUS=./config.status}
12635
ac_clean_files_save=$ac_clean_files
12636
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12637
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12638
echo "$as_me: creating $CONFIG_STATUS" >&6;}
12639
cat >$CONFIG_STATUS <<_ACEOF
12641
# Generated by $as_me.
6515
echo creating $CONFIG_STATUS
6516
rm -f $CONFIG_STATUS
6517
cat > $CONFIG_STATUS <<EOF
6519
# Generated automatically by configure.
12642
6520
# Run this file to recreate the current configuration.
6521
# This directory was configured as follows,
6522
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6524
# $0 $ac_configure_args
12643
6526
# Compiler output produced by configure, useful for debugging
12644
# configure, is in config.log if it exists.
12647
ac_cs_recheck=false
12649
SHELL=\${CONFIG_SHELL-$SHELL}
12652
cat >>$CONFIG_STATUS <<\_ACEOF
12653
## --------------------- ##
12654
## M4sh Initialization. ##
12655
## --------------------- ##
12657
# Be Bourne compatible
12658
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12661
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12662
# is contrary to our usage. Disable this feature.
12663
alias -g '${1+"$@"}'='"$@"'
12664
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12667
DUALCASE=1; export DUALCASE # for MKS sh
12669
# Support unset when possible.
12670
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12677
# Work around bugs in pre-3.0 UWIN ksh.
12678
$as_unset ENV MAIL MAILPATH
12685
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12686
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12687
LC_TELEPHONE LC_TIME
12689
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12690
eval $as_var=C; export $as_var
12696
# Required to use basename.
12697
if expr a : '\(a\)' >/dev/null 2>&1; then
12703
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12704
as_basename=basename
12710
# Name of the executable.
12711
as_me=`$as_basename "$0" ||
12712
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12713
X"$0" : 'X\(//\)$' \| \
12714
X"$0" : 'X\(/\)$' \| \
12715
. : '\(.\)' 2>/dev/null ||
12717
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12718
/^X\/\(\/\/\)$/{ s//\1/; q; }
12719
/^X\/\(\/\).*/{ s//\1/; q; }
12723
# PATH needs CR, and LINENO needs CR and PATH.
12724
# Avoid depending upon Character Ranges.
12725
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12726
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12727
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12728
as_cr_digits='0123456789'
12729
as_cr_alnum=$as_cr_Letters$as_cr_digits
12731
# The user is always right.
12732
if test "${PATH_SEPARATOR+set}" != set; then
12733
echo "#! /bin/sh" >conf$$.sh
12734
echo "exit 0" >>conf$$.sh
12736
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12745
as_lineno_1=$LINENO
12746
as_lineno_2=$LINENO
12747
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12748
test "x$as_lineno_1" != "x$as_lineno_2" &&
12749
test "x$as_lineno_3" = "x$as_lineno_2" || {
12750
# Find who we are. Look in the path if we contain no path at all
12753
*[\\/]* ) as_myself=$0 ;;
12754
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755
for as_dir in $PATH
12758
test -z "$as_dir" && as_dir=.
12759
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12764
# We did not find ourselves, most probably we were run as `sh COMMAND'
12765
# in which case we are not to be found in the path.
12766
if test "x$as_myself" = x; then
12769
if test ! -f "$as_myself"; then
12770
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12771
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12772
{ (exit 1); exit 1; }; }
12774
case $CONFIG_SHELL in
12776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12780
test -z "$as_dir" && as_dir=.
12781
for as_base in sh bash ksh sh5; do
12784
if ("$as_dir/$as_base" -c '
12785
as_lineno_1=$LINENO
12786
as_lineno_2=$LINENO
12787
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12788
test "x$as_lineno_1" != "x$as_lineno_2" &&
12789
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12790
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12791
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12792
CONFIG_SHELL=$as_dir/$as_base
12793
export CONFIG_SHELL
12794
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12802
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12803
# uniformly replaced by the line number. The first 'sed' inserts a
12804
# line-number line before each line; the second 'sed' does the real
12805
# work. The second script uses 'N' to pair each line-number line
12806
# with the numbered line, and appends trailing '-' during
12807
# substitution so that $LINENO is not a special case at line end.
12808
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12809
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12810
sed '=' <$as_myself |
12815
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12818
s,^['$as_cr_digits']*\n,,
12819
' >$as_me.lineno &&
12820
chmod +x $as_me.lineno ||
12821
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12822
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12823
{ (exit 1); exit 1; }; }
12825
# Don't try to exec as it changes $[0], causing all sort of problems
12826
# (the dirname of $[0] is not the place where we might find the
12827
# original and so on. Autoconf is especially sensible to this).
12829
# Exit status is that of the last command.
12834
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12835
*c*,-n*) ECHO_N= ECHO_C='
12837
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12838
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12841
if expr a : '\(a\)' >/dev/null 2>&1; then
12847
rm -f conf$$ conf$$.exe conf$$.file
12849
if ln -s conf$$.file conf$$ 2>/dev/null; then
12850
# We could just check for DJGPP; but this test a) works b) is more generic
12851
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12852
if test -f conf$$.exe; then
12853
# Don't use ln at all; we don't have any links
12858
elif ln conf$$.file conf$$ 2>/dev/null; then
12863
rm -f conf$$ conf$$.exe conf$$.file
12865
if mkdir -p . 2>/dev/null; then
12868
test -d ./-p && rmdir ./-p
12872
as_executable_p="test -f"
12874
# Sed expression to map a string onto a valid CPP name.
12875
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12877
# Sed expression to map a string onto a valid variable name.
12878
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12882
# We need space, tab and new line, in precisely that order.
12892
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12893
# report actual input values of CONFIG_FILES etc. instead of their
12894
# values after options handling. Logging --version etc. is OK.
12898
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12899
## Running $as_me. ##
12904
This file was extended by $as_me, which was
12905
generated by GNU Autoconf 2.59. Invocation command line was
12907
CONFIG_FILES = $CONFIG_FILES
12908
CONFIG_HEADERS = $CONFIG_HEADERS
12909
CONFIG_LINKS = $CONFIG_LINKS
12910
CONFIG_COMMANDS = $CONFIG_COMMANDS
12914
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12918
# Files that config.status was made for.
12919
if test -n "$ac_config_files"; then
12920
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12923
if test -n "$ac_config_headers"; then
12924
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12927
if test -n "$ac_config_links"; then
12928
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12931
if test -n "$ac_config_commands"; then
12932
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12935
cat >>$CONFIG_STATUS <<\_ACEOF
12938
\`$as_me' instantiates files from templates according to the
12939
current configuration.
12941
Usage: $0 [OPTIONS] [FILE]...
12943
-h, --help print this help, then exit
12944
-V, --version print version number, then exit
12945
-q, --quiet do not print progress messages
12946
-d, --debug don't remove temporary files
12947
--recheck update $as_me by reconfiguring in the same conditions
12948
--file=FILE[:TEMPLATE]
12949
instantiate the configuration file FILE
12950
--header=FILE[:TEMPLATE]
12951
instantiate the configuration header FILE
12953
Configuration files:
12956
Configuration headers:
12959
Configuration commands:
12962
Report bugs to <bug-autoconf@gnu.org>."
12965
cat >>$CONFIG_STATUS <<_ACEOF
12968
configured by $0, generated by GNU Autoconf 2.59,
12969
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12971
Copyright (C) 2003 Free Software Foundation, Inc.
12972
This config.status script is free software; the Free Software Foundation
12973
gives unlimited permission to copy, distribute and modify it."
12978
cat >>$CONFIG_STATUS <<\_ACEOF
12979
# If no file are specified by the user, then we need to provide default
12980
# value. By we need to know if files were specified by the user.
12986
ac_option=`expr "x$1" : 'x\([^=]*\)='`
12987
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12995
*) # This is not an option, so the user has probably given explicit
12998
ac_need_defaults=false;;
13002
# Handling of the options.
13004
cat >>$CONFIG_STATUS <<\_ACEOF
6527
# configure, is in ./config.log if it exists.
6529
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6532
case "\$ac_option" in
13005
6533
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13007
--version | --vers* | -V )
13008
echo "$ac_cs_version"; exit 0 ;;
13010
# Conflict between --help and --header
13011
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
13012
Try \`$0 --help' for more information." >&5
13013
echo "$as_me: error: ambiguous option: $1
13014
Try \`$0 --help' for more information." >&2;}
13015
{ (exit 1); exit 1; }; };;
13016
--help | --hel | -h )
13017
echo "$ac_cs_usage"; exit 0 ;;
13018
--debug | --d* | -d )
13020
--file | --fil | --fi | --f )
13022
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13023
ac_need_defaults=false;;
13024
--header | --heade | --head | --hea )
13026
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13027
ac_need_defaults=false;;
13028
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13029
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13032
# This is an error.
13033
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13034
Try \`$0 --help' for more information." >&5
13035
echo "$as_me: error: unrecognized option: $1
13036
Try \`$0 --help' for more information." >&2;}
13037
{ (exit 1); exit 1; }; } ;;
13039
*) ac_config_targets="$ac_config_targets $1" ;;
13045
ac_configure_extra_args=
13047
if $ac_cs_silent; then
13049
ac_configure_extra_args="$ac_configure_extra_args --silent"
13053
cat >>$CONFIG_STATUS <<_ACEOF
13054
if \$ac_cs_recheck; then
13055
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13056
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13065
cat >>$CONFIG_STATUS <<\_ACEOF
13066
for ac_config_target in $ac_config_targets
13068
case "$ac_config_target" in
13069
# Handling of arguments.
13070
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13071
"pkgIndex" ) CONFIG_FILES="$CONFIG_FILES pkgIndex" ;;
13072
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13073
"expect_cf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expect_cf.h" ;;
13074
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13075
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13076
{ (exit 1); exit 1; }; };;
13080
# If the user did not use the arguments to specify the items to instantiate,
13081
# then the envvar interface is used. Set only those that are not.
13082
# We use the long form for the default assignment because of an extremely
13083
# bizarre bug on SunOS 4.1.3.
13084
if $ac_need_defaults; then
13085
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13086
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13087
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13090
# Have a temporary directory for convenience. Make it in the build tree
13091
# simply because there is no reason to put it here, and in addition,
13092
# creating and moving files from /tmp can sometimes cause problems.
13093
# Create a temporary directory, and hook for its removal unless debugging.
13096
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13097
trap '{ (exit 1); exit 1; }' 1 2 13 15
13100
# Create a (secure) tmp directory for tmp files.
13103
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13104
test -n "$tmp" && test -d "$tmp"
13107
tmp=./confstat$$-$RANDOM
13108
(umask 077 && mkdir $tmp)
13111
echo "$me: cannot create a temporary directory in ." >&2
13112
{ (exit 1); exit 1; }
13117
cat >>$CONFIG_STATUS <<_ACEOF
13120
# CONFIG_FILES section.
13123
# No need to generate the scripts if there are no CONFIG_FILES.
13124
# This happens for instance when ./config.status config.h
13125
if test -n "\$CONFIG_FILES"; then
13126
# Protect against being on the right side of a sed subst in config.status.
13127
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13128
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13129
s,@SHELL@,$SHELL,;t t
13130
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13131
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13132
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13133
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13134
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13135
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13136
s,@exec_prefix@,$exec_prefix,;t t
13137
s,@prefix@,$prefix,;t t
13138
s,@program_transform_name@,$program_transform_name,;t t
13139
s,@bindir@,$bindir,;t t
13140
s,@sbindir@,$sbindir,;t t
13141
s,@libexecdir@,$libexecdir,;t t
13142
s,@datadir@,$datadir,;t t
13143
s,@sysconfdir@,$sysconfdir,;t t
13144
s,@sharedstatedir@,$sharedstatedir,;t t
13145
s,@localstatedir@,$localstatedir,;t t
13146
s,@libdir@,$libdir,;t t
13147
s,@includedir@,$includedir,;t t
13148
s,@oldincludedir@,$oldincludedir,;t t
13149
s,@infodir@,$infodir,;t t
13150
s,@mandir@,$mandir,;t t
13151
s,@build_alias@,$build_alias,;t t
13152
s,@host_alias@,$host_alias,;t t
13153
s,@target_alias@,$target_alias,;t t
13154
s,@DEFS@,$DEFS,;t t
13155
s,@ECHO_C@,$ECHO_C,;t t
13156
s,@ECHO_N@,$ECHO_N,;t t
13157
s,@ECHO_T@,$ECHO_T,;t t
13158
s,@LIBS@,$LIBS,;t t
13159
s,@found@,$found,;t t
13160
s,@build@,$build,;t t
13161
s,@build_cpu@,$build_cpu,;t t
13162
s,@build_vendor@,$build_vendor,;t t
13163
s,@build_os@,$build_os,;t t
13164
s,@host@,$host,;t t
13165
s,@host_cpu@,$host_cpu,;t t
13166
s,@host_vendor@,$host_vendor,;t t
13167
s,@host_os@,$host_os,;t t
13168
s,@target@,$target,;t t
13169
s,@target_cpu@,$target_cpu,;t t
13170
s,@target_vendor@,$target_vendor,;t t
13171
s,@target_os@,$target_os,;t t
13173
s,@CFLAGS@,$CFLAGS,;t t
13174
s,@LDFLAGS@,$LDFLAGS,;t t
13175
s,@CPPFLAGS@,$CPPFLAGS,;t t
13176
s,@ac_ct_CC@,$ac_ct_CC,;t t
13177
s,@EXEEXT@,$EXEEXT,;t t
13178
s,@OBJEXT@,$OBJEXT,;t t
13179
s,@TCL_DEFS@,$TCL_DEFS,;t t
13180
s,@TCL_DELETEME@,$TCL_DELETEME,;t t
13181
s,@TCL_DBGX@,$TCL_DBGX,;t t
13182
s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
13183
s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
13184
s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
13185
s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
13186
s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
13187
s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
13188
s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
13189
s,@TK_VERSION@,$TK_VERSION,;t t
13190
s,@TK_DEFS@,$TK_DEFS,;t t
13191
s,@TK_DBGX@,$TK_DBGX,;t t
13192
s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
13193
s,@TK_XLIBSW@,$TK_XLIBSW,;t t
13194
s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
13195
s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
13196
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13197
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13198
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13199
s,@RANLIB@,$RANLIB,;t t
13200
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13201
s,@subdirs@,$subdirs,;t t
13203
s,@EGREP@,$EGREP,;t t
13204
s,@TCLHDIR@,$TCLHDIR,;t t
13205
s,@TCLHDIRDASHI@,$TCLHDIRDASHI,;t t
13206
s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
13207
s,@TKHDIRDASHI@,$TKHDIRDASHI,;t t
13208
s,@EXP_MAJOR_VERSION@,$EXP_MAJOR_VERSION,;t t
13209
s,@EXP_MINOR_VERSION@,$EXP_MINOR_VERSION,;t t
13210
s,@EXP_MICRO_VERSION@,$EXP_MICRO_VERSION,;t t
13211
s,@EXP_VERSION_FULL@,$EXP_VERSION_FULL,;t t
13212
s,@EXP_VERSION@,$EXP_VERSION,;t t
13213
s,@EXP_CONFIG_SHELL@,$EXP_CONFIG_SHELL,;t t
13214
s,@EXP_SHARED_LIB_FILE@,$EXP_SHARED_LIB_FILE,;t t
13215
s,@EXP_UNSHARED_LIB_FILE@,$EXP_UNSHARED_LIB_FILE,;t t
13216
s,@EXP_SHLIB_CFLAGS@,$EXP_SHLIB_CFLAGS,;t t
13217
s,@EXP_LIB_FILE@,$EXP_LIB_FILE,;t t
13218
s,@EXP_LIB_FILES@,$EXP_LIB_FILES,;t t
13219
s,@EXP_BUILD_LIB_SPEC@,$EXP_BUILD_LIB_SPEC,;t t
13220
s,@EXP_LIB_SPEC@,$EXP_LIB_SPEC,;t t
13221
s,@EXP_CFLAGS@,$EXP_CFLAGS,;t t
13222
s,@EXP_LDFLAGS@,$EXP_LDFLAGS,;t t
13223
s,@EXP_LD_SEARCH_FLAGS@,$EXP_LD_SEARCH_FLAGS,;t t
13224
s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
13225
s,@EXP_AND_TCL_LIBS@,$EXP_AND_TCL_LIBS,;t t
13226
s,@EXP_AND_TK_LIBS@,$EXP_AND_TK_LIBS,;t t
13227
s,@EXP_SHLIB_LD_LIBS@,$EXP_SHLIB_LD_LIBS,;t t
13228
s,@X_PROGS@,$X_PROGS,;t t
13229
s,@PTY_TYPE@,$PTY_TYPE,;t t
13230
s,@EVENT_TYPE@,$EVENT_TYPE,;t t
13231
s,@EVENT_ABLE@,$EVENT_ABLE,;t t
13232
s,@SETUID@,$SETUID,;t t
13233
s,@UNSHARED_RANLIB@,$UNSHARED_RANLIB,;t t
13234
s,@DEFAULT_STTY_ARGS@,$DEFAULT_STTY_ARGS,;t t
13235
s,@STTY_BIN@,$STTY_BIN,;t t
13236
s,@LIBOBJS@,$LIBOBJS,;t t
13237
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6534
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6535
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6536
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6537
echo "$CONFIG_STATUS generated by autoconf version 2.13"
6539
-help | --help | --hel | --he | --h)
6540
echo "\$ac_cs_usage"; exit 0 ;;
6541
*) echo "\$ac_cs_usage"; exit 1 ;;
6545
ac_given_srcdir=$srcdir
6546
ac_given_INSTALL="$INSTALL"
6548
trap 'rm -fr `echo "Makefile \
6549
pkgIndex expect_cf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6551
cat >> $CONFIG_STATUS <<EOF
6553
# Protect against being on the right side of a sed subst in config.status.
6554
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6555
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6559
s%@CFLAGS@%$CFLAGS%g
6560
s%@CPPFLAGS@%$CPPFLAGS%g
6561
s%@CXXFLAGS@%$CXXFLAGS%g
6562
s%@FFLAGS@%$FFLAGS%g
6564
s%@LDFLAGS@%$LDFLAGS%g
6566
s%@exec_prefix@%$exec_prefix%g
6567
s%@prefix@%$prefix%g
6568
s%@program_transform_name@%$program_transform_name%g
6569
s%@bindir@%$bindir%g
6570
s%@sbindir@%$sbindir%g
6571
s%@libexecdir@%$libexecdir%g
6572
s%@datadir@%$datadir%g
6573
s%@sysconfdir@%$sysconfdir%g
6574
s%@sharedstatedir@%$sharedstatedir%g
6575
s%@localstatedir@%$localstatedir%g
6576
s%@libdir@%$libdir%g
6577
s%@includedir@%$includedir%g
6578
s%@oldincludedir@%$oldincludedir%g
6579
s%@infodir@%$infodir%g
6580
s%@mandir@%$mandir%g
6583
s%@host_alias@%$host_alias%g
6584
s%@host_cpu@%$host_cpu%g
6585
s%@host_vendor@%$host_vendor%g
6586
s%@host_os@%$host_os%g
6587
s%@target@%$target%g
6588
s%@target_alias@%$target_alias%g
6589
s%@target_cpu@%$target_cpu%g
6590
s%@target_vendor@%$target_vendor%g
6591
s%@target_os@%$target_os%g
6593
s%@build_alias@%$build_alias%g
6594
s%@build_cpu@%$build_cpu%g
6595
s%@build_vendor@%$build_vendor%g
6596
s%@build_os@%$build_os%g
6598
s%@TCL_DEFS@%$TCL_DEFS%g
6599
s%@TCL_DELETEME@%$TCL_DELETEME%g
6600
s%@TCL_DBGX@%$TCL_DBGX%g
6601
s%@TCL_EXEC_PREFIX@%$TCL_EXEC_PREFIX%g
6602
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6603
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
6604
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6605
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6606
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6607
s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g
6608
s%@TK_VERSION@%$TK_VERSION%g
6609
s%@TK_DEFS@%$TK_DEFS%g
6610
s%@TK_DBGX@%$TK_DBGX%g
6611
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6612
s%@TK_XLIBSW@%$TK_XLIBSW%g
6613
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6614
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6615
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6616
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6617
s%@INSTALL_DATA@%$INSTALL_DATA%g
6618
s%@RANLIB@%$RANLIB%g
6619
s%@subdirs@%$subdirs%g
6621
s%@TCLHDIR@%$TCLHDIR%g
6622
s%@TCLHDIRDASHI@%$TCLHDIRDASHI%g
6623
s%@TCL_LIBRARY@%$TCL_LIBRARY%g
6624
s%@TKHDIRDASHI@%$TKHDIRDASHI%g
6625
s%@EXP_MAJOR_VERSION@%$EXP_MAJOR_VERSION%g
6626
s%@EXP_MINOR_VERSION@%$EXP_MINOR_VERSION%g
6627
s%@EXP_MICRO_VERSION@%$EXP_MICRO_VERSION%g
6628
s%@EXP_VERSION_FULL@%$EXP_VERSION_FULL%g
6629
s%@EXP_VERSION@%$EXP_VERSION%g
6630
s%@EXP_CONFIG_SHELL@%$EXP_CONFIG_SHELL%g
6631
s%@EXP_SHARED_LIB_FILE@%$EXP_SHARED_LIB_FILE%g
6632
s%@EXP_UNSHARED_LIB_FILE@%$EXP_UNSHARED_LIB_FILE%g
6633
s%@EXP_SHLIB_CFLAGS@%$EXP_SHLIB_CFLAGS%g
6634
s%@EXP_LIB_FILE@%$EXP_LIB_FILE%g
6635
s%@EXP_LIB_FILES@%$EXP_LIB_FILES%g
6636
s%@EXP_BUILD_LIB_SPEC@%$EXP_BUILD_LIB_SPEC%g
6637
s%@EXP_LIB_SPEC@%$EXP_LIB_SPEC%g
6638
s%@EXP_CFLAGS@%$EXP_CFLAGS%g
6639
s%@EXP_LDFLAGS@%$EXP_LDFLAGS%g
6640
s%@EXP_LD_SEARCH_FLAGS@%$EXP_LD_SEARCH_FLAGS%g
6641
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
6642
s%@EXP_AND_TCL_LIBS@%$EXP_AND_TCL_LIBS%g
6643
s%@EXP_AND_TK_LIBS@%$EXP_AND_TK_LIBS%g
6644
s%@EXP_SHLIB_LD_LIBS@%$EXP_SHLIB_LD_LIBS%g
6645
s%@X_PROGS@%$X_PROGS%g
6646
s%@PTY_TYPE@%$PTY_TYPE%g
6647
s%@EVENT_TYPE@%$EVENT_TYPE%g
6648
s%@EVENT_ABLE@%$EVENT_ABLE%g
6649
s%@SETUID@%$SETUID%g
6650
s%@UNSHARED_RANLIB@%$UNSHARED_RANLIB%g
6651
s%@DEFAULT_STTY_ARGS@%$DEFAULT_STTY_ARGS%g
6652
s%@STTY_BIN@%$STTY_BIN%g
13242
cat >>$CONFIG_STATUS <<\_ACEOF
13243
# Split the substitutions into bite-sized pieces for seds with
13244
# small command number limits, like on Digital OSF/1 and HP-UX.
13245
ac_max_sed_lines=48
13246
ac_sed_frag=1 # Number of current file.
13247
ac_beg=1 # First line for current file.
13248
ac_end=$ac_max_sed_lines # Line after last line for current file.
13251
while $ac_more_lines; do
13252
if test $ac_beg -gt 1; then
13253
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13255
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13257
if test ! -s $tmp/subs.frag; then
13258
ac_more_lines=false
13260
# The purpose of the label and of the branching condition is to
13261
# speed up the sed processing (if there are no `@' at all, there
13262
# is no need to browse any of the substitutions).
13263
# These are the two extra sed commands mentioned above.
13265
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13266
if test -z "$ac_sed_cmds"; then
13267
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13269
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13271
ac_sed_frag=`expr $ac_sed_frag + 1`
13273
ac_end=`expr $ac_end + $ac_max_sed_lines`
13276
if test -z "$ac_sed_cmds"; then
13279
fi # test -n "$CONFIG_FILES"
13282
cat >>$CONFIG_STATUS <<\_ACEOF
13283
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6657
cat >> $CONFIG_STATUS <<\EOF
6659
# Split the substitutions into bite-sized pieces for seds with
6660
# small command number limits, like on Digital OSF/1 and HP-UX.
6661
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6662
ac_file=1 # Number of current file.
6663
ac_beg=1 # First line for current file.
6664
ac_end=$ac_max_sed_cmds # Line after last line for current file.
6667
while $ac_more_lines; do
6668
if test $ac_beg -gt 1; then
6669
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6671
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6673
if test ! -s conftest.s$ac_file; then
6675
rm -f conftest.s$ac_file
6677
if test -z "$ac_sed_cmds"; then
6678
ac_sed_cmds="sed -f conftest.s$ac_file"
6680
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6682
ac_file=`expr $ac_file + 1`
6684
ac_end=`expr $ac_end + $ac_max_sed_cmds`
6687
if test -z "$ac_sed_cmds"; then
6692
cat >> $CONFIG_STATUS <<EOF
6694
CONFIG_FILES=\${CONFIG_FILES-"Makefile \
6697
cat >> $CONFIG_STATUS <<\EOF
6698
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13284
6699
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13286
- | *:- | *:-:* ) # input from stdin
13288
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13289
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13290
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13291
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13292
* ) ac_file_in=$ac_file.in ;;
6701
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6702
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6703
*) ac_file_in="${ac_file}.in" ;;
13295
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13296
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13297
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13298
X"$ac_file" : 'X\(//\)[^/]' \| \
13299
X"$ac_file" : 'X\(//\)$' \| \
13300
X"$ac_file" : 'X\(/\)' \| \
13301
. : '\(.\)' 2>/dev/null ||
13303
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13304
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13305
/^X\(\/\/\)$/{ s//\1/; q; }
13306
/^X\(\/\).*/{ s//\1/; q; }
13308
{ if $as_mkdir_p; then
6706
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6708
# Remove last slash and all that follows it. Not all systems have dirname.
6709
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6710
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6711
# The file is in a subdirectory.
6712
test ! -d "$ac_dir" && mkdir "$ac_dir"
6713
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6714
# A "../" for each directory in $ac_dir_suffix.
6715
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13313
while test ! -d "$as_dir"; do
13314
as_dirs="$as_dir $as_dirs"
13315
as_dir=`(dirname "$as_dir") 2>/dev/null ||
13316
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13317
X"$as_dir" : 'X\(//\)[^/]' \| \
13318
X"$as_dir" : 'X\(//\)$' \| \
13319
X"$as_dir" : 'X\(/\)' \| \
13320
. : '\(.\)' 2>/dev/null ||
13322
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13323
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13324
/^X\(\/\/\)$/{ s//\1/; q; }
13325
/^X\(\/\).*/{ s//\1/; q; }
13328
test ! -n "$as_dirs" || mkdir $as_dirs
13329
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13330
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13331
{ (exit 1); exit 1; }; }; }
13335
if test "$ac_dir" != .; then
13336
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13337
# A "../" for each directory in $ac_dir_suffix.
13338
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13340
ac_dir_suffix= ac_top_builddir=
13344
.) # No --srcdir option. We are building in place.
13346
if test -z "$ac_top_builddir"; then
13349
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13351
[\\/]* | ?:[\\/]* ) # Absolute path.
13352
ac_srcdir=$srcdir$ac_dir_suffix;
13353
ac_top_srcdir=$srcdir ;;
6717
ac_dir_suffix= ac_dots=
6720
case "$ac_given_srcdir" in
6722
if test -z "$ac_dots"; then top_srcdir=.
6723
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6724
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13354
6725
*) # Relative path.
13355
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13356
ac_top_srcdir=$ac_top_builddir$srcdir ;;
13359
# Do not use `cd foo && pwd` to compute absolute paths, because
13360
# the directories may not exist.
13362
.) ac_abs_builddir="$ac_dir";;
13365
.) ac_abs_builddir=`pwd`;;
13366
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13367
*) ac_abs_builddir=`pwd`/"$ac_dir";;
13370
case $ac_abs_builddir in
13371
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13373
case ${ac_top_builddir}. in
13374
.) ac_abs_top_builddir=$ac_abs_builddir;;
13375
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13376
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13379
case $ac_abs_builddir in
13380
.) ac_abs_srcdir=$ac_srcdir;;
13383
.) ac_abs_srcdir=$ac_abs_builddir;;
13384
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13385
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13388
case $ac_abs_builddir in
13389
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13391
case $ac_top_srcdir in
13392
.) ac_abs_top_srcdir=$ac_abs_builddir;;
13393
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13394
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13400
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13401
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13404
# Let's still pretend it is `configure' which instantiates (i.e., don't
13405
# use $as_me), people would be surprised to read:
13406
# /* config.h. Generated by config.status. */
13407
if test x"$ac_file" = x-; then
13410
configure_input="$ac_file. "
13412
configure_input=$configure_input"Generated from `echo $ac_file_in |
13413
sed 's,.*/,,'` by configure."
13415
# First look for the input files in the build tree, otherwise in the
13417
ac_file_inputs=`IFS=:
13418
for f in $ac_file_in; do
13420
-) echo $tmp/stdin ;;
13422
# Absolute (can't be DOS-style, as IFS=:)
13423
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13424
echo "$as_me: error: cannot find input file: $f" >&2;}
13425
{ (exit 1); exit 1; }; }
13428
if test -f "$f"; then
13431
elif test -f "$srcdir/$f"; then
13436
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13437
echo "$as_me: error: cannot find input file: $f" >&2;}
13438
{ (exit 1); exit 1; }; }
13441
done` || { (exit 1); exit 1; }
13443
if test x"$ac_file" != x-; then
13444
{ echo "$as_me:$LINENO: creating $ac_file" >&5
13445
echo "$as_me: creating $ac_file" >&6;}
13449
cat >>$CONFIG_STATUS <<_ACEOF
13453
cat >>$CONFIG_STATUS <<\_ACEOF
13455
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13456
s,@configure_input@,$configure_input,;t t
13457
s,@srcdir@,$ac_srcdir,;t t
13458
s,@abs_srcdir@,$ac_abs_srcdir,;t t
13459
s,@top_srcdir@,$ac_top_srcdir,;t t
13460
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13461
s,@builddir@,$ac_builddir,;t t
13462
s,@abs_builddir@,$ac_abs_builddir,;t t
13463
s,@top_builddir@,$ac_top_builddir,;t t
13464
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13465
s,@INSTALL@,$ac_INSTALL,;t t
13466
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13468
if test x"$ac_file" != x-; then
13469
mv $tmp/out $ac_file
13477
cat >>$CONFIG_STATUS <<\_ACEOF
13480
# CONFIG_HEADER section.
6726
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6727
top_srcdir="$ac_dots$ac_given_srcdir" ;;
6730
case "$ac_given_INSTALL" in
6731
[/$]*) INSTALL="$ac_given_INSTALL" ;;
6732
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6735
echo creating "$ac_file"
6737
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6739
*Makefile*) ac_comsub="1i\\
6740
# $configure_input" ;;
6744
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6746
s%@configure_input@%$configure_input%g
6747
s%@srcdir@%$srcdir%g
6748
s%@top_srcdir@%$top_srcdir%g
6749
s%@INSTALL@%$INSTALL%g
6750
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13483
6754
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13484
6755
# NAME is the cpp macro being defined and VALUE is the value it is being given.
13486
6757
# ac_d sets the value in "#define NAME VALUE" lines.
13487
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13488
ac_dB='[ ].*$,\1#\2'
13491
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13492
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13493
ac_uB='$,\1#\2define\3'
6758
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6759
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6762
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6763
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6764
ac_uB='\([ ]\)%\1#\2define\3'
6767
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6768
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6769
ac_eB='$%\1#\2define\3'
13497
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6773
if test "${CONFIG_HEADERS+set}" != set; then
6775
cat >> $CONFIG_STATUS <<EOF
6776
CONFIG_HEADERS="expect_cf.h"
6778
cat >> $CONFIG_STATUS <<\EOF
6780
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13498
6781
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13500
- | *:- | *:-:* ) # input from stdin
13502
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13503
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13504
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13505
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13506
* ) ac_file_in=$ac_file.in ;;
6783
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6784
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6785
*) ac_file_in="${ac_file}.in" ;;
13509
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13510
echo "$as_me: creating $ac_file" >&6;}
13512
# First look for the input files in the build tree, otherwise in the
13514
ac_file_inputs=`IFS=:
13515
for f in $ac_file_in; do
13517
-) echo $tmp/stdin ;;
13519
# Absolute (can't be DOS-style, as IFS=:)
13520
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13521
echo "$as_me: error: cannot find input file: $f" >&2;}
13522
{ (exit 1); exit 1; }; }
13523
# Do quote $f, to prevent DOS paths from being IFS'd.
13526
if test -f "$f"; then
13529
elif test -f "$srcdir/$f"; then
13534
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13535
echo "$as_me: error: cannot find input file: $f" >&2;}
13536
{ (exit 1); exit 1; }; }
13539
done` || { (exit 1); exit 1; }
13540
# Remove the trailing spaces.
13541
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13545
# Transform confdefs.h into two sed scripts, `conftest.defines' and
13546
# `conftest.undefs', that substitutes the proper values into
13547
# config.h.in to produce config.h. The first handles `#define'
13548
# templates, and the second `#undef' templates.
13549
# And first: Protect against being on the right side of a sed subst in
13550
# config.status. Protect against being in an unquoted here document
13551
# in config.status.
13552
rm -f conftest.defines conftest.undefs
13553
# Using a here document instead of a string reduces the quoting nightmare.
13554
# Putting comments in sed scripts is not portable.
13556
# `end' is used to avoid that the second main sed command (meant for
13557
# 0-ary CPP macros) applies to n-ary macro definitions.
13558
# See the Autoconf documentation for `clear'.
13559
cat >confdef2sed.sed <<\_ACEOF
13564
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13566
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13569
# If some macros were called several times there might be several times
13570
# the same #defines, which is useless. Nevertheless, we may not want to
13571
# sort them, since we want the *last* AC-DEFINE to be honored.
13572
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13573
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13574
rm -f confdef2sed.sed
6788
echo creating $ac_file
6790
rm -f conftest.frag conftest.in conftest.out
6791
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6792
cat $ac_file_inputs > conftest.in
6796
# Transform confdefs.h into a sed script conftest.vals that substitutes
6797
# the proper values into config.h.in to produce config.h. And first:
6798
# Protect against being on the right side of a sed subst in config.status.
6799
# Protect against being in an unquoted here document in config.status.
6801
cat > conftest.hdr <<\EOF
6804
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6808
sed -n -f conftest.hdr confdefs.h > conftest.vals
13576
6811
# This sed command replaces #undef with comments. This is necessary, for
13577
6812
# example, in the case of _POSIX_SOURCE, which is predefined and required
13578
6813
# on some systems where configure will not decide to define it.
13579
cat >>conftest.undefs <<\_ACEOF
13580
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13583
# Break up conftest.defines because some shells have a limit on the size
13584
# of here documents, and old seds have small limits too (100 cmds).
13585
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13586
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13587
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13588
echo ' :' >>$CONFIG_STATUS
13589
rm -f conftest.tail
13590
while grep . conftest.defines >/dev/null
13592
# Write a limited-size here document to $tmp/defines.sed.
13593
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13594
# Speed up: don't consider the non `#define' lines.
13595
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13596
# Work around the forget-to-reset-the-flag bug.
13597
echo 't clr' >>$CONFIG_STATUS
13598
echo ': clr' >>$CONFIG_STATUS
13599
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13601
sed -f $tmp/defines.sed $tmp/in >$tmp/out
13603
mv $tmp/out $tmp/in
13605
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13606
rm -f conftest.defines
13607
mv conftest.tail conftest.defines
13609
rm -f conftest.defines
13610
echo ' fi # grep' >>$CONFIG_STATUS
13611
echo >>$CONFIG_STATUS
13613
# Break up conftest.undefs because some shells have a limit on the size
13614
# of here documents, and old seds have small limits too (100 cmds).
13615
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13616
rm -f conftest.tail
13617
while grep . conftest.undefs >/dev/null
13619
# Write a limited-size here document to $tmp/undefs.sed.
13620
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13621
# Speed up: don't consider the non `#undef'
13622
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13623
# Work around the forget-to-reset-the-flag bug.
13624
echo 't clr' >>$CONFIG_STATUS
13625
echo ': clr' >>$CONFIG_STATUS
13626
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13628
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13630
mv $tmp/out $tmp/in
13632
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13633
rm -f conftest.undefs
13634
mv conftest.tail conftest.undefs
13636
rm -f conftest.undefs
13638
cat >>$CONFIG_STATUS <<\_ACEOF
13639
# Let's still pretend it is `configure' which instantiates (i.e., don't
13640
# use $as_me), people would be surprised to read:
13641
# /* config.h. Generated by config.status. */
13642
if test x"$ac_file" = x-; then
13643
echo "/* Generated by configure. */" >$tmp/config.h
13645
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13647
cat $tmp/in >>$tmp/config.h
13649
if test x"$ac_file" != x-; then
13650
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13651
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13652
echo "$as_me: $ac_file is unchanged" >&6;}
13654
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13655
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13656
X"$ac_file" : 'X\(//\)[^/]' \| \
13657
X"$ac_file" : 'X\(//\)$' \| \
13658
X"$ac_file" : 'X\(/\)' \| \
13659
. : '\(.\)' 2>/dev/null ||
13661
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13662
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13663
/^X\(\/\/\)$/{ s//\1/; q; }
13664
/^X\(\/\).*/{ s//\1/; q; }
13666
{ if $as_mkdir_p; then
13671
while test ! -d "$as_dir"; do
13672
as_dirs="$as_dir $as_dirs"
13673
as_dir=`(dirname "$as_dir") 2>/dev/null ||
13674
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13675
X"$as_dir" : 'X\(//\)[^/]' \| \
13676
X"$as_dir" : 'X\(//\)$' \| \
13677
X"$as_dir" : 'X\(/\)' \| \
13678
. : '\(.\)' 2>/dev/null ||
13680
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13681
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13682
/^X\(\/\/\)$/{ s//\1/; q; }
13683
/^X\(\/\).*/{ s//\1/; q; }
13686
test ! -n "$as_dirs" || mkdir $as_dirs
13687
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13688
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13689
{ (exit 1); exit 1; }; }; }
13692
mv $tmp/config.h $ac_file
6814
cat >> conftest.vals <<\EOF
6815
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6818
# Break up conftest.vals because some shells have a limit on
6819
# the size of here documents, and old seds have small limits too.
6824
ac_lines=`grep -c . conftest.vals`
6825
# grep -c gives empty output for an empty file on some AIX systems.
6826
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6827
# Write a limited-size here document to conftest.frag.
6828
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6829
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6831
sed -f conftest.frag conftest.in > conftest.out
6833
mv conftest.out conftest.in
6835
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6837
mv conftest.tail conftest.vals
6841
cat >> $CONFIG_STATUS <<\EOF
6842
rm -f conftest.frag conftest.h
6843
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6844
cat conftest.in >> conftest.h
6846
if cmp -s $ac_file conftest.h 2>/dev/null; then
6847
echo "$ac_file is unchanged"
6850
# Remove last slash and all that follows it. Not all systems have dirname.
6851
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6852
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6853
# The file is in a subdirectory.
6854
test ! -d "$ac_dir" && mkdir "$ac_dir"
13696
rm -f $tmp/config.h
6857
mv conftest.h $ac_file
13700
cat >>$CONFIG_STATUS <<\_ACEOF
13703
# CONFIG_COMMANDS section.
13705
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13706
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13707
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13708
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13709
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13710
X"$ac_dest" : 'X\(//\)[^/]' \| \
13711
X"$ac_dest" : 'X\(//\)$' \| \
13712
X"$ac_dest" : 'X\(/\)' \| \
13713
. : '\(.\)' 2>/dev/null ||
13715
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13716
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13717
/^X\(\/\/\)$/{ s//\1/; q; }
13718
/^X\(\/\).*/{ s//\1/; q; }
13720
{ if $as_mkdir_p; then
13725
while test ! -d "$as_dir"; do
13726
as_dirs="$as_dir $as_dirs"
13727
as_dir=`(dirname "$as_dir") 2>/dev/null ||
13728
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13729
X"$as_dir" : 'X\(//\)[^/]' \| \
13730
X"$as_dir" : 'X\(//\)$' \| \
13731
X"$as_dir" : 'X\(/\)' \| \
13732
. : '\(.\)' 2>/dev/null ||
13734
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13735
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13736
/^X\(\/\/\)$/{ s//\1/; q; }
13737
/^X\(\/\).*/{ s//\1/; q; }
13740
test ! -n "$as_dirs" || mkdir $as_dirs
13741
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13742
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13743
{ (exit 1); exit 1; }; }; }
13747
if test "$ac_dir" != .; then
13748
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13749
# A "../" for each directory in $ac_dir_suffix.
13750
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13752
ac_dir_suffix= ac_top_builddir=
13756
.) # No --srcdir option. We are building in place.
13758
if test -z "$ac_top_builddir"; then
13761
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13763
[\\/]* | ?:[\\/]* ) # Absolute path.
13764
ac_srcdir=$srcdir$ac_dir_suffix;
13765
ac_top_srcdir=$srcdir ;;
13766
*) # Relative path.
13767
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13768
ac_top_srcdir=$ac_top_builddir$srcdir ;;
13771
# Do not use `cd foo && pwd` to compute absolute paths, because
13772
# the directories may not exist.
13774
.) ac_abs_builddir="$ac_dir";;
13777
.) ac_abs_builddir=`pwd`;;
13778
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13779
*) ac_abs_builddir=`pwd`/"$ac_dir";;
13782
case $ac_abs_builddir in
13783
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13785
case ${ac_top_builddir}. in
13786
.) ac_abs_top_builddir=$ac_abs_builddir;;
13787
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13788
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13791
case $ac_abs_builddir in
13792
.) ac_abs_srcdir=$ac_srcdir;;
13795
.) ac_abs_srcdir=$ac_abs_builddir;;
13796
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13797
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13800
case $ac_abs_builddir in
13801
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13803
case $ac_top_srcdir in
13804
.) ac_abs_top_srcdir=$ac_abs_builddir;;
13805
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13806
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13811
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13812
echo "$as_me: executing $ac_dest commands" >&6;}
13814
default ) chmod +x ${srcdir}/install-sh ${srcdir}/mkinstalldirs ;;
13819
cat >>$CONFIG_STATUS <<\_ACEOF
13821
{ (exit 0); exit 0; }
6862
cat >> $CONFIG_STATUS <<EOF
6865
cat >> $CONFIG_STATUS <<\EOF
6866
chmod +x ${srcdir}/install-sh ${srcdir}/mkinstalldirs
13823
6869
chmod +x $CONFIG_STATUS
13824
ac_clean_files=$ac_clean_files_save
13827
# configure is writing to config.log, and then calls config.status.
13828
# config.status does its own redirection, appending to config.log.
13829
# Unfortunately, on DOS this fails, as config.log is still kept open
13830
# by configure, so config.status won't be able to write to it; its
13831
# output is simply discarded. So we exec the FD to /dev/null,
13832
# effectively closing config.log, so it can be properly (re)opened and
13833
# appended to by config.status. When coming back to configure, we
13834
# need to make the FD available again.
13835
if test "$no_create" != yes; then
13837
ac_config_status_args=
13838
test "$silent" = yes &&
13839
ac_config_status_args="$ac_config_status_args --quiet"
13841
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13843
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
13844
# would make configure fail if this is the last instruction.
13845
$ac_cs_success || { (exit 1); exit 1; }
13849
# CONFIG_SUBDIRS section.
6870
rm -fr confdefs* $ac_clean_files
6871
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13851
6873
if test "$no_recursion" != yes; then
13853
6875
# Remove --cache-file and --srcdir arguments so they do not pile up.