/[public]/psiconv/trunk/configure
ViewVC logotype

Diff of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.49  
changed lines
  Added in v.50

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26