… | |
… | |
1591 | else |
1591 | else |
1592 | echo "$ac_t""no" 1>&6 |
1592 | echo "$ac_t""no" 1>&6 |
1593 | IMAGEMAGICK=no |
1593 | IMAGEMAGICK=no |
1594 | fi |
1594 | fi |
1595 | |
1595 | |
|
|
1596 | if test x"$IMAGEMAGICK" != xno ; then |
|
|
1597 | LIBS_SAVE="$LIBS" |
|
|
1598 | LIBS="$LIBS -lMagick" |
|
|
1599 | echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6 |
|
|
1600 | echo "configure:1601: checking whether GetMagickInfo works" >&5 |
|
|
1601 | if test "$cross_compiling" = yes; then |
|
|
1602 | IMAGEMAGICK=yes |
|
|
1603 | else |
|
|
1604 | cat > conftest.$ac_ext <<EOF |
|
|
1605 | #line 1606 "configure" |
|
|
1606 | #include "confdefs.h" |
|
|
1607 | #include <magick/magick.h> |
|
|
1608 | #include <stdio.h> |
|
|
1609 | int main(void) { MagickInfo *mi;GetMagickInfo(NULL); |
|
|
1610 | #if defined(HasLTDL) |
|
|
1611 | OpenModules(); |
|
|
1612 | #endif |
|
|
1613 | return (NULL != GetMagickInfo(NULL)); } |
|
|
1614 | EOF |
|
|
1615 | if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
|
|
1616 | then |
|
|
1617 | IMAGEMAGICK=yes |
|
|
1618 | else |
|
|
1619 | echo "configure: failed program was:" >&5 |
|
|
1620 | cat conftest.$ac_ext >&5 |
|
|
1621 | rm -fr conftest* |
|
|
1622 | IMAGEMAGICK=no |
|
|
1623 | fi |
|
|
1624 | rm -fr conftest* |
|
|
1625 | fi |
|
|
1626 | |
|
|
1627 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
|
|
1628 | LIBS="$LIBS_SAVE" |
|
|
1629 | fi |
1596 | if test x"$IMAGEMAGICK" = xno ; then |
1630 | if test x"$IMAGEMAGICK" = xno ; then |
1597 | echo "configure: warning: ImageMagick support disabled!" 1>&2 |
1631 | echo "configure: warning: ImageMagick support disabled!" 1>&2 |
1598 | fi |
1632 | fi |
1599 | fi |
1633 | fi |
1600 | if test x"$IMAGEMAGICK" = xyes ; then |
1634 | if test x"$IMAGEMAGICK" = xyes ; then |
… | |
… | |
1607 | LIB_MAGICK= |
1641 | LIB_MAGICK= |
1608 | fi |
1642 | fi |
1609 | |
1643 | |
1610 | |
1644 | |
1611 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1645 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1612 | echo "configure:1613: checking how to run the C preprocessor" >&5 |
1646 | echo "configure:1647: checking how to run the C preprocessor" >&5 |
1613 | # On Suns, sometimes $CPP names a directory. |
1647 | # On Suns, sometimes $CPP names a directory. |
1614 | if test -n "$CPP" && test -d "$CPP"; then |
1648 | if test -n "$CPP" && test -d "$CPP"; then |
1615 | CPP= |
1649 | CPP= |
1616 | fi |
1650 | fi |
1617 | if test -z "$CPP"; then |
1651 | if test -z "$CPP"; then |
… | |
… | |
1622 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1656 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1623 | CPP="${CC-cc} -E" |
1657 | CPP="${CC-cc} -E" |
1624 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1658 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1625 | # not just through cpp. |
1659 | # not just through cpp. |
1626 | cat > conftest.$ac_ext <<EOF |
1660 | cat > conftest.$ac_ext <<EOF |
1627 | #line 1628 "configure" |
1661 | #line 1662 "configure" |
1628 | #include "confdefs.h" |
1662 | #include "confdefs.h" |
1629 | #include <assert.h> |
1663 | #include <assert.h> |
1630 | Syntax Error |
1664 | Syntax Error |
1631 | EOF |
1665 | EOF |
1632 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1633 | { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1667 | { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1634 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1635 | if test -z "$ac_err"; then |
1669 | if test -z "$ac_err"; then |
1636 | : |
1670 | : |
1637 | else |
1671 | else |
1638 | echo "$ac_err" >&5 |
1672 | echo "$ac_err" >&5 |
1639 | echo "configure: failed program was:" >&5 |
1673 | echo "configure: failed program was:" >&5 |
1640 | cat conftest.$ac_ext >&5 |
1674 | cat conftest.$ac_ext >&5 |
1641 | rm -rf conftest* |
1675 | rm -rf conftest* |
1642 | CPP="${CC-cc} -E -traditional-cpp" |
1676 | CPP="${CC-cc} -E -traditional-cpp" |
1643 | cat > conftest.$ac_ext <<EOF |
1677 | cat > conftest.$ac_ext <<EOF |
1644 | #line 1645 "configure" |
1678 | #line 1679 "configure" |
1645 | #include "confdefs.h" |
1679 | #include "confdefs.h" |
1646 | #include <assert.h> |
1680 | #include <assert.h> |
1647 | Syntax Error |
1681 | Syntax Error |
1648 | EOF |
1682 | EOF |
1649 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1683 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1650 | { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1684 | { (eval echo configure:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1651 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1685 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1652 | if test -z "$ac_err"; then |
1686 | if test -z "$ac_err"; then |
1653 | : |
1687 | : |
1654 | else |
1688 | else |
1655 | echo "$ac_err" >&5 |
1689 | echo "$ac_err" >&5 |
1656 | echo "configure: failed program was:" >&5 |
1690 | echo "configure: failed program was:" >&5 |
1657 | cat conftest.$ac_ext >&5 |
1691 | cat conftest.$ac_ext >&5 |
1658 | rm -rf conftest* |
1692 | rm -rf conftest* |
1659 | CPP="${CC-cc} -nologo -E" |
1693 | CPP="${CC-cc} -nologo -E" |
1660 | cat > conftest.$ac_ext <<EOF |
1694 | cat > conftest.$ac_ext <<EOF |
1661 | #line 1662 "configure" |
1695 | #line 1696 "configure" |
1662 | #include "confdefs.h" |
1696 | #include "confdefs.h" |
1663 | #include <assert.h> |
1697 | #include <assert.h> |
1664 | Syntax Error |
1698 | Syntax Error |
1665 | EOF |
1699 | EOF |
1666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1667 | { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1701 | { (eval echo configure:1702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1702 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1669 | if test -z "$ac_err"; then |
1703 | if test -z "$ac_err"; then |
1670 | : |
1704 | : |
1671 | else |
1705 | else |
1672 | echo "$ac_err" >&5 |
1706 | echo "$ac_err" >&5 |
… | |
… | |
1687 | ac_cv_prog_CPP="$CPP" |
1721 | ac_cv_prog_CPP="$CPP" |
1688 | fi |
1722 | fi |
1689 | echo "$ac_t""$CPP" 1>&6 |
1723 | echo "$ac_t""$CPP" 1>&6 |
1690 | |
1724 | |
1691 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1725 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1692 | echo "configure:1693: checking for ANSI C header files" >&5 |
1726 | echo "configure:1727: checking for ANSI C header files" >&5 |
1693 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1727 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1694 | echo $ac_n "(cached) $ac_c" 1>&6 |
1728 | echo $ac_n "(cached) $ac_c" 1>&6 |
1695 | else |
1729 | else |
1696 | cat > conftest.$ac_ext <<EOF |
1730 | cat > conftest.$ac_ext <<EOF |
1697 | #line 1698 "configure" |
1731 | #line 1732 "configure" |
1698 | #include "confdefs.h" |
1732 | #include "confdefs.h" |
1699 | #include <stdlib.h> |
1733 | #include <stdlib.h> |
1700 | #include <stdarg.h> |
1734 | #include <stdarg.h> |
1701 | #include <string.h> |
1735 | #include <string.h> |
1702 | #include <float.h> |
1736 | #include <float.h> |
1703 | EOF |
1737 | EOF |
1704 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1738 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1705 | { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1739 | { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1706 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1740 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1707 | if test -z "$ac_err"; then |
1741 | if test -z "$ac_err"; then |
1708 | rm -rf conftest* |
1742 | rm -rf conftest* |
1709 | ac_cv_header_stdc=yes |
1743 | ac_cv_header_stdc=yes |
1710 | else |
1744 | else |
… | |
… | |
1717 | rm -f conftest* |
1751 | rm -f conftest* |
1718 | |
1752 | |
1719 | if test $ac_cv_header_stdc = yes; then |
1753 | if test $ac_cv_header_stdc = yes; then |
1720 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1754 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1721 | cat > conftest.$ac_ext <<EOF |
1755 | cat > conftest.$ac_ext <<EOF |
1722 | #line 1723 "configure" |
1756 | #line 1757 "configure" |
1723 | #include "confdefs.h" |
1757 | #include "confdefs.h" |
1724 | #include <string.h> |
1758 | #include <string.h> |
1725 | EOF |
1759 | EOF |
1726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1727 | egrep "memchr" >/dev/null 2>&1; then |
1761 | egrep "memchr" >/dev/null 2>&1; then |
… | |
… | |
1735 | fi |
1769 | fi |
1736 | |
1770 | |
1737 | if test $ac_cv_header_stdc = yes; then |
1771 | if test $ac_cv_header_stdc = yes; then |
1738 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1772 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1739 | cat > conftest.$ac_ext <<EOF |
1773 | cat > conftest.$ac_ext <<EOF |
1740 | #line 1741 "configure" |
1774 | #line 1775 "configure" |
1741 | #include "confdefs.h" |
1775 | #include "confdefs.h" |
1742 | #include <stdlib.h> |
1776 | #include <stdlib.h> |
1743 | EOF |
1777 | EOF |
1744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1745 | egrep "free" >/dev/null 2>&1; then |
1779 | egrep "free" >/dev/null 2>&1; then |
… | |
… | |
1756 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1790 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1757 | if test "$cross_compiling" = yes; then |
1791 | if test "$cross_compiling" = yes; then |
1758 | : |
1792 | : |
1759 | else |
1793 | else |
1760 | cat > conftest.$ac_ext <<EOF |
1794 | cat > conftest.$ac_ext <<EOF |
1761 | #line 1762 "configure" |
1795 | #line 1796 "configure" |
1762 | #include "confdefs.h" |
1796 | #include "confdefs.h" |
1763 | #include <ctype.h> |
1797 | #include <ctype.h> |
1764 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1798 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1765 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1799 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1766 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1800 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1767 | int main () { int i; for (i = 0; i < 256; i++) |
1801 | int main () { int i; for (i = 0; i < 256; i++) |
1768 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1802 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1769 | exit (0); } |
1803 | exit (0); } |
1770 | |
1804 | |
1771 | EOF |
1805 | EOF |
1772 | if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1806 | if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1773 | then |
1807 | then |
1774 | : |
1808 | : |
1775 | else |
1809 | else |
1776 | echo "configure: failed program was:" >&5 |
1810 | echo "configure: failed program was:" >&5 |
1777 | cat conftest.$ac_ext >&5 |
1811 | cat conftest.$ac_ext >&5 |
… | |
… | |
1794 | |
1828 | |
1795 | for ac_hdr in unistd.h |
1829 | for ac_hdr in unistd.h |
1796 | do |
1830 | do |
1797 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1831 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1798 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1832 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1799 | echo "configure:1800: checking for $ac_hdr" >&5 |
1833 | echo "configure:1834: checking for $ac_hdr" >&5 |
1800 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1834 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1801 | echo $ac_n "(cached) $ac_c" 1>&6 |
1835 | echo $ac_n "(cached) $ac_c" 1>&6 |
1802 | else |
1836 | else |
1803 | cat > conftest.$ac_ext <<EOF |
1837 | cat > conftest.$ac_ext <<EOF |
1804 | #line 1805 "configure" |
1838 | #line 1839 "configure" |
1805 | #include "confdefs.h" |
1839 | #include "confdefs.h" |
1806 | #include <$ac_hdr> |
1840 | #include <$ac_hdr> |
1807 | EOF |
1841 | EOF |
1808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1809 | { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1843 | { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1811 | if test -z "$ac_err"; then |
1845 | if test -z "$ac_err"; then |
1812 | rm -rf conftest* |
1846 | rm -rf conftest* |
1813 | eval "ac_cv_header_$ac_safe=yes" |
1847 | eval "ac_cv_header_$ac_safe=yes" |
1814 | else |
1848 | else |
… | |
… | |
1832 | fi |
1866 | fi |
1833 | done |
1867 | done |
1834 | |
1868 | |
1835 | |
1869 | |
1836 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1870 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1837 | echo "configure:1838: checking for working const" >&5 |
1871 | echo "configure:1872: checking for working const" >&5 |
1838 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1872 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1839 | echo $ac_n "(cached) $ac_c" 1>&6 |
1873 | echo $ac_n "(cached) $ac_c" 1>&6 |
1840 | else |
1874 | else |
1841 | cat > conftest.$ac_ext <<EOF |
1875 | cat > conftest.$ac_ext <<EOF |
1842 | #line 1843 "configure" |
1876 | #line 1877 "configure" |
1843 | #include "confdefs.h" |
1877 | #include "confdefs.h" |
1844 | |
1878 | |
1845 | int main() { |
1879 | int main() { |
1846 | |
1880 | |
1847 | /* Ultrix mips cc rejects this. */ |
1881 | /* Ultrix mips cc rejects this. */ |
… | |
… | |
1886 | const int foo = 10; |
1920 | const int foo = 10; |
1887 | } |
1921 | } |
1888 | |
1922 | |
1889 | ; return 0; } |
1923 | ; return 0; } |
1890 | EOF |
1924 | EOF |
1891 | if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1925 | if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1892 | rm -rf conftest* |
1926 | rm -rf conftest* |
1893 | ac_cv_c_const=yes |
1927 | ac_cv_c_const=yes |
1894 | else |
1928 | else |
1895 | echo "configure: failed program was:" >&5 |
1929 | echo "configure: failed program was:" >&5 |
1896 | cat conftest.$ac_ext >&5 |
1930 | cat conftest.$ac_ext >&5 |
… | |
… | |
1907 | EOF |
1941 | EOF |
1908 | |
1942 | |
1909 | fi |
1943 | fi |
1910 | |
1944 | |
1911 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1945 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1912 | echo "configure:1913: checking for size_t" >&5 |
1946 | echo "configure:1947: checking for size_t" >&5 |
1913 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1947 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1914 | echo $ac_n "(cached) $ac_c" 1>&6 |
1948 | echo $ac_n "(cached) $ac_c" 1>&6 |
1915 | else |
1949 | else |
1916 | cat > conftest.$ac_ext <<EOF |
1950 | cat > conftest.$ac_ext <<EOF |
1917 | #line 1918 "configure" |
1951 | #line 1952 "configure" |
1918 | #include "confdefs.h" |
1952 | #include "confdefs.h" |
1919 | #include <sys/types.h> |
1953 | #include <sys/types.h> |
1920 | #if STDC_HEADERS |
1954 | #if STDC_HEADERS |
1921 | #include <stdlib.h> |
1955 | #include <stdlib.h> |
1922 | #include <stddef.h> |
1956 | #include <stddef.h> |
… | |
… | |
1942 | fi |
1976 | fi |
1943 | |
1977 | |
1944 | |
1978 | |
1945 | |
1979 | |
1946 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1980 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1947 | echo "configure:1948: checking size of char" >&5 |
1981 | echo "configure:1982: checking size of char" >&5 |
1948 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1982 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1949 | echo $ac_n "(cached) $ac_c" 1>&6 |
1983 | echo $ac_n "(cached) $ac_c" 1>&6 |
1950 | else |
1984 | else |
1951 | if test "$cross_compiling" = yes; then |
1985 | if test "$cross_compiling" = yes; then |
1952 | ac_cv_sizeof_char=1 |
1986 | ac_cv_sizeof_char=1 |
1953 | else |
1987 | else |
1954 | cat > conftest.$ac_ext <<EOF |
1988 | cat > conftest.$ac_ext <<EOF |
1955 | #line 1956 "configure" |
1989 | #line 1990 "configure" |
1956 | #include "confdefs.h" |
1990 | #include "confdefs.h" |
1957 | #include <stdio.h> |
1991 | #include <stdio.h> |
1958 | main() |
1992 | main() |
1959 | { |
1993 | { |
1960 | FILE *f=fopen("conftestval", "w"); |
1994 | FILE *f=fopen("conftestval", "w"); |
1961 | if (!f) exit(1); |
1995 | if (!f) exit(1); |
1962 | fprintf(f, "%d\n", sizeof(char)); |
1996 | fprintf(f, "%d\n", sizeof(char)); |
1963 | exit(0); |
1997 | exit(0); |
1964 | } |
1998 | } |
1965 | EOF |
1999 | EOF |
1966 | if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2000 | if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1967 | then |
2001 | then |
1968 | ac_cv_sizeof_char=`cat conftestval` |
2002 | ac_cv_sizeof_char=`cat conftestval` |
1969 | else |
2003 | else |
1970 | echo "configure: failed program was:" >&5 |
2004 | echo "configure: failed program was:" >&5 |
1971 | cat conftest.$ac_ext >&5 |
2005 | cat conftest.$ac_ext >&5 |
… | |
… | |
1981 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
2015 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1982 | EOF |
2016 | EOF |
1983 | |
2017 | |
1984 | |
2018 | |
1985 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
2019 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1986 | echo "configure:1987: checking size of short" >&5 |
2020 | echo "configure:2021: checking size of short" >&5 |
1987 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
2021 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1988 | echo $ac_n "(cached) $ac_c" 1>&6 |
2022 | echo $ac_n "(cached) $ac_c" 1>&6 |
1989 | else |
2023 | else |
1990 | if test "$cross_compiling" = yes; then |
2024 | if test "$cross_compiling" = yes; then |
1991 | ac_cv_sizeof_short=1 |
2025 | ac_cv_sizeof_short=1 |
1992 | else |
2026 | else |
1993 | cat > conftest.$ac_ext <<EOF |
2027 | cat > conftest.$ac_ext <<EOF |
1994 | #line 1995 "configure" |
2028 | #line 2029 "configure" |
1995 | #include "confdefs.h" |
2029 | #include "confdefs.h" |
1996 | #include <stdio.h> |
2030 | #include <stdio.h> |
1997 | main() |
2031 | main() |
1998 | { |
2032 | { |
1999 | FILE *f=fopen("conftestval", "w"); |
2033 | FILE *f=fopen("conftestval", "w"); |
2000 | if (!f) exit(1); |
2034 | if (!f) exit(1); |
2001 | fprintf(f, "%d\n", sizeof(short)); |
2035 | fprintf(f, "%d\n", sizeof(short)); |
2002 | exit(0); |
2036 | exit(0); |
2003 | } |
2037 | } |
2004 | EOF |
2038 | EOF |
2005 | if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2039 | if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2006 | then |
2040 | then |
2007 | ac_cv_sizeof_short=`cat conftestval` |
2041 | ac_cv_sizeof_short=`cat conftestval` |
2008 | else |
2042 | else |
2009 | echo "configure: failed program was:" >&5 |
2043 | echo "configure: failed program was:" >&5 |
2010 | cat conftest.$ac_ext >&5 |
2044 | cat conftest.$ac_ext >&5 |
… | |
… | |
2020 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2054 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2021 | EOF |
2055 | EOF |
2022 | |
2056 | |
2023 | |
2057 | |
2024 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2058 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2025 | echo "configure:2026: checking size of int" >&5 |
2059 | echo "configure:2060: checking size of int" >&5 |
2026 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2060 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2027 | echo $ac_n "(cached) $ac_c" 1>&6 |
2061 | echo $ac_n "(cached) $ac_c" 1>&6 |
2028 | else |
2062 | else |
2029 | if test "$cross_compiling" = yes; then |
2063 | if test "$cross_compiling" = yes; then |
2030 | ac_cv_sizeof_int=2 |
2064 | ac_cv_sizeof_int=2 |
2031 | else |
2065 | else |
2032 | cat > conftest.$ac_ext <<EOF |
2066 | cat > conftest.$ac_ext <<EOF |
2033 | #line 2034 "configure" |
2067 | #line 2068 "configure" |
2034 | #include "confdefs.h" |
2068 | #include "confdefs.h" |
2035 | #include <stdio.h> |
2069 | #include <stdio.h> |
2036 | main() |
2070 | main() |
2037 | { |
2071 | { |
2038 | FILE *f=fopen("conftestval", "w"); |
2072 | FILE *f=fopen("conftestval", "w"); |
2039 | if (!f) exit(1); |
2073 | if (!f) exit(1); |
2040 | fprintf(f, "%d\n", sizeof(int)); |
2074 | fprintf(f, "%d\n", sizeof(int)); |
2041 | exit(0); |
2075 | exit(0); |
2042 | } |
2076 | } |
2043 | EOF |
2077 | EOF |
2044 | if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2078 | if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2045 | then |
2079 | then |
2046 | ac_cv_sizeof_int=`cat conftestval` |
2080 | ac_cv_sizeof_int=`cat conftestval` |
2047 | else |
2081 | else |
2048 | echo "configure: failed program was:" >&5 |
2082 | echo "configure: failed program was:" >&5 |
2049 | cat conftest.$ac_ext >&5 |
2083 | cat conftest.$ac_ext >&5 |
… | |
… | |
2059 | #define SIZEOF_INT $ac_cv_sizeof_int |
2093 | #define SIZEOF_INT $ac_cv_sizeof_int |
2060 | EOF |
2094 | EOF |
2061 | |
2095 | |
2062 | |
2096 | |
2063 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2097 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2064 | echo "configure:2065: checking size of long" >&5 |
2098 | echo "configure:2099: checking size of long" >&5 |
2065 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2099 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2066 | echo $ac_n "(cached) $ac_c" 1>&6 |
2100 | echo $ac_n "(cached) $ac_c" 1>&6 |
2067 | else |
2101 | else |
2068 | if test "$cross_compiling" = yes; then |
2102 | if test "$cross_compiling" = yes; then |
2069 | ac_cv_sizeof_long=4 |
2103 | ac_cv_sizeof_long=4 |
2070 | else |
2104 | else |
2071 | cat > conftest.$ac_ext <<EOF |
2105 | cat > conftest.$ac_ext <<EOF |
2072 | #line 2073 "configure" |
2106 | #line 2107 "configure" |
2073 | #include "confdefs.h" |
2107 | #include "confdefs.h" |
2074 | #include <stdio.h> |
2108 | #include <stdio.h> |
2075 | main() |
2109 | main() |
2076 | { |
2110 | { |
2077 | FILE *f=fopen("conftestval", "w"); |
2111 | FILE *f=fopen("conftestval", "w"); |
2078 | if (!f) exit(1); |
2112 | if (!f) exit(1); |
2079 | fprintf(f, "%d\n", sizeof(long)); |
2113 | fprintf(f, "%d\n", sizeof(long)); |
2080 | exit(0); |
2114 | exit(0); |
2081 | } |
2115 | } |
2082 | EOF |
2116 | EOF |
2083 | if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2117 | if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2084 | then |
2118 | then |
2085 | ac_cv_sizeof_long=`cat conftestval` |
2119 | ac_cv_sizeof_long=`cat conftestval` |
2086 | else |
2120 | else |
2087 | echo "configure: failed program was:" >&5 |
2121 | echo "configure: failed program was:" >&5 |
2088 | cat conftest.$ac_ext >&5 |
2122 | cat conftest.$ac_ext >&5 |
… | |
… | |
2099 | EOF |
2133 | EOF |
2100 | |
2134 | |
2101 | |
2135 | |
2102 | |
2136 | |
2103 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2137 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2104 | echo "configure:2105: checking for an 8 bit integer type" >&5 |
2138 | echo "configure:2139: checking for an 8 bit integer type" >&5 |
2105 | if test $ac_cv_sizeof_char -ge 1 ; then |
2139 | if test $ac_cv_sizeof_char -ge 1 ; then |
2106 | INT_8_BIT=char |
2140 | INT_8_BIT=char |
2107 | echo "$ac_t""char" 1>&6 |
2141 | echo "$ac_t""char" 1>&6 |
2108 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2142 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2109 | INT_8_BIT=short |
2143 | INT_8_BIT=short |
… | |
… | |
2117 | else |
2151 | else |
2118 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2152 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2119 | fi |
2153 | fi |
2120 | |
2154 | |
2121 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2155 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2122 | echo "configure:2123: checking for a 16 bit integer type" >&5 |
2156 | echo "configure:2157: checking for a 16 bit integer type" >&5 |
2123 | if test $ac_cv_sizeof_char -ge 2 ; then |
2157 | if test $ac_cv_sizeof_char -ge 2 ; then |
2124 | INT_16_BIT=char |
2158 | INT_16_BIT=char |
2125 | echo "$ac_t""char" 1>&6 |
2159 | echo "$ac_t""char" 1>&6 |
2126 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2160 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2127 | INT_16_BIT=short |
2161 | INT_16_BIT=short |
… | |
… | |
2135 | else |
2169 | else |
2136 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2170 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2137 | fi |
2171 | fi |
2138 | |
2172 | |
2139 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2173 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2140 | echo "configure:2141: checking for a 32 bit integer type" >&5 |
2174 | echo "configure:2175: checking for a 32 bit integer type" >&5 |
2141 | if test $ac_cv_sizeof_char -ge 4 ; then |
2175 | if test $ac_cv_sizeof_char -ge 4 ; then |
2142 | INT_32_BIT=char |
2176 | INT_32_BIT=char |
2143 | echo "$ac_t""char" 1>&6 |
2177 | echo "$ac_t""char" 1>&6 |
2144 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2178 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2145 | INT_32_BIT=short |
2179 | INT_32_BIT=short |
… | |
… | |
2157 | |
2191 | |
2158 | |
2192 | |
2159 | |
2193 | |
2160 | |
2194 | |
2161 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2195 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2162 | echo "configure:2163: checking for vprintf" >&5 |
2196 | echo "configure:2197: checking for vprintf" >&5 |
2163 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2197 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2164 | echo $ac_n "(cached) $ac_c" 1>&6 |
2198 | echo $ac_n "(cached) $ac_c" 1>&6 |
2165 | else |
2199 | else |
2166 | cat > conftest.$ac_ext <<EOF |
2200 | cat > conftest.$ac_ext <<EOF |
2167 | #line 2168 "configure" |
2201 | #line 2202 "configure" |
2168 | #include "confdefs.h" |
2202 | #include "confdefs.h" |
2169 | /* System header to define __stub macros and hopefully few prototypes, |
2203 | /* System header to define __stub macros and hopefully few prototypes, |
2170 | which can conflict with char vprintf(); below. */ |
2204 | which can conflict with char vprintf(); below. */ |
2171 | #include <assert.h> |
2205 | #include <assert.h> |
2172 | /* Override any gcc2 internal prototype to avoid an error. */ |
2206 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2185 | vprintf(); |
2219 | vprintf(); |
2186 | #endif |
2220 | #endif |
2187 | |
2221 | |
2188 | ; return 0; } |
2222 | ; return 0; } |
2189 | EOF |
2223 | EOF |
2190 | if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2224 | if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2191 | rm -rf conftest* |
2225 | rm -rf conftest* |
2192 | eval "ac_cv_func_vprintf=yes" |
2226 | eval "ac_cv_func_vprintf=yes" |
2193 | else |
2227 | else |
2194 | echo "configure: failed program was:" >&5 |
2228 | echo "configure: failed program was:" >&5 |
2195 | cat conftest.$ac_ext >&5 |
2229 | cat conftest.$ac_ext >&5 |
… | |
… | |
2209 | echo "$ac_t""no" 1>&6 |
2243 | echo "$ac_t""no" 1>&6 |
2210 | fi |
2244 | fi |
2211 | |
2245 | |
2212 | if test "$ac_cv_func_vprintf" != yes; then |
2246 | if test "$ac_cv_func_vprintf" != yes; then |
2213 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2247 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2214 | echo "configure:2215: checking for _doprnt" >&5 |
2248 | echo "configure:2249: checking for _doprnt" >&5 |
2215 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2249 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2216 | echo $ac_n "(cached) $ac_c" 1>&6 |
2250 | echo $ac_n "(cached) $ac_c" 1>&6 |
2217 | else |
2251 | else |
2218 | cat > conftest.$ac_ext <<EOF |
2252 | cat > conftest.$ac_ext <<EOF |
2219 | #line 2220 "configure" |
2253 | #line 2254 "configure" |
2220 | #include "confdefs.h" |
2254 | #include "confdefs.h" |
2221 | /* System header to define __stub macros and hopefully few prototypes, |
2255 | /* System header to define __stub macros and hopefully few prototypes, |
2222 | which can conflict with char _doprnt(); below. */ |
2256 | which can conflict with char _doprnt(); below. */ |
2223 | #include <assert.h> |
2257 | #include <assert.h> |
2224 | /* Override any gcc2 internal prototype to avoid an error. */ |
2258 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2237 | _doprnt(); |
2271 | _doprnt(); |
2238 | #endif |
2272 | #endif |
2239 | |
2273 | |
2240 | ; return 0; } |
2274 | ; return 0; } |
2241 | EOF |
2275 | EOF |
2242 | if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2276 | if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2243 | rm -rf conftest* |
2277 | rm -rf conftest* |
2244 | eval "ac_cv_func__doprnt=yes" |
2278 | eval "ac_cv_func__doprnt=yes" |
2245 | else |
2279 | else |
2246 | echo "configure: failed program was:" >&5 |
2280 | echo "configure: failed program was:" >&5 |
2247 | cat conftest.$ac_ext >&5 |
2281 | cat conftest.$ac_ext >&5 |
… | |
… | |
2264 | fi |
2298 | fi |
2265 | |
2299 | |
2266 | for ac_func in strdup |
2300 | for ac_func in strdup |
2267 | do |
2301 | do |
2268 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2269 | echo "configure:2270: checking for $ac_func" >&5 |
2303 | echo "configure:2304: checking for $ac_func" >&5 |
2270 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2271 | echo $ac_n "(cached) $ac_c" 1>&6 |
2305 | echo $ac_n "(cached) $ac_c" 1>&6 |
2272 | else |
2306 | else |
2273 | cat > conftest.$ac_ext <<EOF |
2307 | cat > conftest.$ac_ext <<EOF |
2274 | #line 2275 "configure" |
2308 | #line 2309 "configure" |
2275 | #include "confdefs.h" |
2309 | #include "confdefs.h" |
2276 | /* System header to define __stub macros and hopefully few prototypes, |
2310 | /* System header to define __stub macros and hopefully few prototypes, |
2277 | which can conflict with char $ac_func(); below. */ |
2311 | which can conflict with char $ac_func(); below. */ |
2278 | #include <assert.h> |
2312 | #include <assert.h> |
2279 | /* Override any gcc2 internal prototype to avoid an error. */ |
2313 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2292 | $ac_func(); |
2326 | $ac_func(); |
2293 | #endif |
2327 | #endif |
2294 | |
2328 | |
2295 | ; return 0; } |
2329 | ; return 0; } |
2296 | EOF |
2330 | EOF |
2297 | if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2331 | if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2298 | rm -rf conftest* |
2332 | rm -rf conftest* |
2299 | eval "ac_cv_func_$ac_func=yes" |
2333 | eval "ac_cv_func_$ac_func=yes" |
2300 | else |
2334 | else |
2301 | echo "configure: failed program was:" >&5 |
2335 | echo "configure: failed program was:" >&5 |
2302 | cat conftest.$ac_ext >&5 |
2336 | cat conftest.$ac_ext >&5 |
… | |
… | |
2321 | |
2355 | |
2322 | |
2356 | |
2323 | for ac_func in getopt_long |
2357 | for ac_func in getopt_long |
2324 | do |
2358 | do |
2325 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2359 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2326 | echo "configure:2327: checking for $ac_func" >&5 |
2360 | echo "configure:2361: checking for $ac_func" >&5 |
2327 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2361 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2328 | echo $ac_n "(cached) $ac_c" 1>&6 |
2362 | echo $ac_n "(cached) $ac_c" 1>&6 |
2329 | else |
2363 | else |
2330 | cat > conftest.$ac_ext <<EOF |
2364 | cat > conftest.$ac_ext <<EOF |
2331 | #line 2332 "configure" |
2365 | #line 2366 "configure" |
2332 | #include "confdefs.h" |
2366 | #include "confdefs.h" |
2333 | /* System header to define __stub macros and hopefully few prototypes, |
2367 | /* System header to define __stub macros and hopefully few prototypes, |
2334 | which can conflict with char $ac_func(); below. */ |
2368 | which can conflict with char $ac_func(); below. */ |
2335 | #include <assert.h> |
2369 | #include <assert.h> |
2336 | /* Override any gcc2 internal prototype to avoid an error. */ |
2370 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2349 | $ac_func(); |
2383 | $ac_func(); |
2350 | #endif |
2384 | #endif |
2351 | |
2385 | |
2352 | ; return 0; } |
2386 | ; return 0; } |
2353 | EOF |
2387 | EOF |
2354 | if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2388 | if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2355 | rm -rf conftest* |
2389 | rm -rf conftest* |
2356 | eval "ac_cv_func_$ac_func=yes" |
2390 | eval "ac_cv_func_$ac_func=yes" |
2357 | else |
2391 | else |
2358 | echo "configure: failed program was:" >&5 |
2392 | echo "configure: failed program was:" >&5 |
2359 | cat conftest.$ac_ext >&5 |
2393 | cat conftest.$ac_ext >&5 |