… | |
… | |
20 | ac_help="$ac_help |
20 | ac_help="$ac_help |
21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
22 | ac_help="$ac_help |
22 | ac_help="$ac_help |
23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
24 | ac_help="$ac_help |
24 | ac_help="$ac_help |
|
|
25 | --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings." |
|
|
26 | ac_help="$ac_help |
|
|
27 | --enable-iso-c Try to warn if code is not ISO C " |
|
|
28 | ac_help="$ac_help |
25 | --with-imagemagick enable ImageMagick (default = yes)" |
29 | --with-imagemagick enable ImageMagick (default = yes)" |
26 | ac_help="$ac_help |
30 | ac_help="$ac_help |
27 | --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" |
31 | --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" |
28 | ac_help="$ac_help |
32 | ac_help="$ac_help |
29 | --enable-html4-docs Enable generation of HTML 4 docs (default: off)" |
33 | --enable-html4-docs Enable generation of HTML 4 docs (default: off)" |
30 | ac_help="$ac_help |
34 | ac_help="$ac_help |
31 | --enable-ascii-docs Enable generation of ASCII docs (default: off)" |
35 | --enable-ascii-docs Enable generation of ASCII docs (default: off)" |
32 | ac_help="$ac_help |
36 | ac_help="$ac_help |
33 | --enable-rtf-docs Enable generation of RTF docs (default: off)" |
37 | --enable-rtf-docs Enable generation of RTF docs (default: off)" |
34 | ac_help="$ac_help |
|
|
35 | --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings." |
|
|
36 | ac_help="$ac_help |
|
|
37 | --enable-iso-c Try to warn if code is not ISO C " |
|
|
38 | |
38 | |
39 | # Initialize some variables set by options. |
39 | # Initialize some variables set by options. |
40 | # The variables have the same names as the options, with |
40 | # The variables have the same names as the options, with |
41 | # dashes changed to underlines. |
41 | # dashes changed to underlines. |
42 | build=NONE |
42 | build=NONE |
… | |
… | |
1474 | # Redirect the config.log output again, so that the ltconfig log is not |
1474 | # Redirect the config.log output again, so that the ltconfig log is not |
1475 | # clobbered by the next message. |
1475 | # clobbered by the next message. |
1476 | exec 5>>./config.log |
1476 | exec 5>>./config.log |
1477 | |
1477 | |
1478 | |
1478 | |
|
|
1479 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
|
|
1480 | if test "${enable_compile_warnings+set}" = set; then |
|
|
1481 | enableval="$enable_compile_warnings" |
|
|
1482 | : |
|
|
1483 | else |
|
|
1484 | enable_compile_warnings=minimum |
|
|
1485 | fi |
|
|
1486 | |
|
|
1487 | |
|
|
1488 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
1489 | echo "configure:1490: checking what warning flags to pass to the C compiler" >&5 |
|
|
1490 | warnCFLAGS= |
|
|
1491 | if test "x$GCC" != xyes; then |
|
|
1492 | enable_compile_warnings=no |
|
|
1493 | fi |
|
|
1494 | if test "x$enable_compile_warnings" != "xno"; then |
|
|
1495 | if test "x$GCC" = "xyes"; then |
|
|
1496 | case " $CFLAGS " in |
|
|
1497 | *\ \ -Wall\ \ *) ;; |
|
|
1498 | *) warnCFLAGS="-Wall -Wunused" ;; |
|
|
1499 | esac |
|
|
1500 | |
|
|
1501 | ## -W is not all that useful. And it cannot be controlled |
|
|
1502 | ## with individual -Wno-xxx flags, unlike -Wall |
|
|
1503 | if test "x$enable_compile_warnings" = "xyes"; then |
|
|
1504 | warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith" |
|
|
1505 | fi |
|
|
1506 | fi |
|
|
1507 | fi |
|
|
1508 | echo "$ac_t""$warnCFLAGS" 1>&6 |
|
|
1509 | |
|
|
1510 | # Check whether --enable-iso-c or --disable-iso-c was given. |
|
|
1511 | if test "${enable_iso_c+set}" = set; then |
|
|
1512 | enableval="$enable_iso_c" |
|
|
1513 | : |
|
|
1514 | else |
|
|
1515 | enable_iso_c=no |
|
|
1516 | fi |
|
|
1517 | |
|
|
1518 | |
|
|
1519 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
1520 | echo "configure:1521: checking what language compliance flags to pass to the C compiler" >&5 |
|
|
1521 | complCFLAGS= |
|
|
1522 | if test "x$enable_iso_c" != "xno"; then |
|
|
1523 | if test "x$GCC" = "xyes"; then |
|
|
1524 | case " $CFLAGS " in |
|
|
1525 | *\ \ -ansi\ \ *) ;; |
|
|
1526 | *) complCFLAGS="$complCFLAGS -ansi" ;; |
|
|
1527 | esac |
|
|
1528 | |
|
|
1529 | case " $CFLAGS " in |
|
|
1530 | *\ \ -pedantic\ \ *) ;; |
|
|
1531 | *) complCFLAGS="$complCFLAGS -pedantic" ;; |
|
|
1532 | esac |
|
|
1533 | fi |
|
|
1534 | fi |
|
|
1535 | echo "$ac_t""$complCFLAGS" 1>&6 |
|
|
1536 | if test "x$cflags_set" != "xyes"; then |
|
|
1537 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
|
|
1538 | cflags_set=yes |
|
|
1539 | |
|
|
1540 | fi |
|
|
1541 | |
|
|
1542 | |
1479 | # Check whether --with-imagemagick or --without-imagemagick was given. |
1543 | # Check whether --with-imagemagick or --without-imagemagick was given. |
1480 | if test "${with_imagemagick+set}" = set; then |
1544 | if test "${with_imagemagick+set}" = set; then |
1481 | withval="$with_imagemagick" |
1545 | withval="$with_imagemagick" |
1482 | IMAGEMAGICK=$withval |
1546 | IMAGEMAGICK=$withval |
1483 | else |
1547 | else |
1484 | IMAGEMAGICK='yes' |
1548 | IMAGEMAGICK='yes' |
1485 | fi |
1549 | fi |
1486 | |
1550 | |
1487 | if test x"$IMAGEMAGICK" != xno ; then |
1551 | if test x"$IMAGEMAGICK" != xno ; then |
1488 | echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 |
1552 | echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 |
1489 | echo "configure:1490: checking for MagickWarning in -lMagick" >&5 |
1553 | echo "configure:1554: checking for MagickWarning in -lMagick" >&5 |
1490 | ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` |
1554 | ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` |
1491 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1555 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1492 | echo $ac_n "(cached) $ac_c" 1>&6 |
1556 | echo $ac_n "(cached) $ac_c" 1>&6 |
1493 | else |
1557 | else |
1494 | ac_save_LIBS="$LIBS" |
1558 | ac_save_LIBS="$LIBS" |
1495 | LIBS="-lMagick $LIBS" |
1559 | LIBS="-lMagick $LIBS" |
1496 | cat > conftest.$ac_ext <<EOF |
1560 | cat > conftest.$ac_ext <<EOF |
1497 | #line 1498 "configure" |
1561 | #line 1562 "configure" |
1498 | #include "confdefs.h" |
1562 | #include "confdefs.h" |
1499 | /* Override any gcc2 internal prototype to avoid an error. */ |
1563 | /* Override any gcc2 internal prototype to avoid an error. */ |
1500 | /* We use char because int might match the return type of a gcc2 |
1564 | /* We use char because int might match the return type of a gcc2 |
1501 | builtin and then its argument prototype would still apply. */ |
1565 | builtin and then its argument prototype would still apply. */ |
1502 | char MagickWarning(); |
1566 | char MagickWarning(); |
1503 | |
1567 | |
1504 | int main() { |
1568 | int main() { |
1505 | MagickWarning() |
1569 | MagickWarning() |
1506 | ; return 0; } |
1570 | ; return 0; } |
1507 | EOF |
1571 | EOF |
1508 | if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1572 | if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1509 | rm -rf conftest* |
1573 | rm -rf conftest* |
1510 | eval "ac_cv_lib_$ac_lib_var=yes" |
1574 | eval "ac_cv_lib_$ac_lib_var=yes" |
1511 | else |
1575 | else |
1512 | echo "configure: failed program was:" >&5 |
1576 | echo "configure: failed program was:" >&5 |
1513 | cat conftest.$ac_ext >&5 |
1577 | cat conftest.$ac_ext >&5 |
… | |
… | |
1540 | LIB_MAGICK= |
1604 | LIB_MAGICK= |
1541 | fi |
1605 | fi |
1542 | |
1606 | |
1543 | |
1607 | |
1544 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1608 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1545 | echo "configure:1546: checking how to run the C preprocessor" >&5 |
1609 | echo "configure:1610: checking how to run the C preprocessor" >&5 |
1546 | # On Suns, sometimes $CPP names a directory. |
1610 | # On Suns, sometimes $CPP names a directory. |
1547 | if test -n "$CPP" && test -d "$CPP"; then |
1611 | if test -n "$CPP" && test -d "$CPP"; then |
1548 | CPP= |
1612 | CPP= |
1549 | fi |
1613 | fi |
1550 | if test -z "$CPP"; then |
1614 | if test -z "$CPP"; then |
… | |
… | |
1555 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1619 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1556 | CPP="${CC-cc} -E" |
1620 | CPP="${CC-cc} -E" |
1557 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1621 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1558 | # not just through cpp. |
1622 | # not just through cpp. |
1559 | cat > conftest.$ac_ext <<EOF |
1623 | cat > conftest.$ac_ext <<EOF |
1560 | #line 1561 "configure" |
1624 | #line 1625 "configure" |
1561 | #include "confdefs.h" |
1625 | #include "confdefs.h" |
1562 | #include <assert.h> |
1626 | #include <assert.h> |
1563 | Syntax Error |
1627 | Syntax Error |
1564 | EOF |
1628 | EOF |
1565 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1629 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1566 | { (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1630 | { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1567 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1631 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1568 | if test -z "$ac_err"; then |
1632 | if test -z "$ac_err"; then |
1569 | : |
1633 | : |
1570 | else |
1634 | else |
1571 | echo "$ac_err" >&5 |
1635 | echo "$ac_err" >&5 |
1572 | echo "configure: failed program was:" >&5 |
1636 | echo "configure: failed program was:" >&5 |
1573 | cat conftest.$ac_ext >&5 |
1637 | cat conftest.$ac_ext >&5 |
1574 | rm -rf conftest* |
1638 | rm -rf conftest* |
1575 | CPP="${CC-cc} -E -traditional-cpp" |
1639 | CPP="${CC-cc} -E -traditional-cpp" |
1576 | cat > conftest.$ac_ext <<EOF |
1640 | cat > conftest.$ac_ext <<EOF |
1577 | #line 1578 "configure" |
1641 | #line 1642 "configure" |
1578 | #include "confdefs.h" |
1642 | #include "confdefs.h" |
1579 | #include <assert.h> |
1643 | #include <assert.h> |
1580 | Syntax Error |
1644 | Syntax Error |
1581 | EOF |
1645 | EOF |
1582 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1646 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1583 | { (eval echo configure:1584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1647 | { (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1584 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1648 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1585 | if test -z "$ac_err"; then |
1649 | if test -z "$ac_err"; then |
1586 | : |
1650 | : |
1587 | else |
1651 | else |
1588 | echo "$ac_err" >&5 |
1652 | echo "$ac_err" >&5 |
1589 | echo "configure: failed program was:" >&5 |
1653 | echo "configure: failed program was:" >&5 |
1590 | cat conftest.$ac_ext >&5 |
1654 | cat conftest.$ac_ext >&5 |
1591 | rm -rf conftest* |
1655 | rm -rf conftest* |
1592 | CPP="${CC-cc} -nologo -E" |
1656 | CPP="${CC-cc} -nologo -E" |
1593 | cat > conftest.$ac_ext <<EOF |
1657 | cat > conftest.$ac_ext <<EOF |
1594 | #line 1595 "configure" |
1658 | #line 1659 "configure" |
1595 | #include "confdefs.h" |
1659 | #include "confdefs.h" |
1596 | #include <assert.h> |
1660 | #include <assert.h> |
1597 | Syntax Error |
1661 | Syntax Error |
1598 | EOF |
1662 | EOF |
1599 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1663 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1600 | { (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1664 | { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1601 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1665 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1602 | if test -z "$ac_err"; then |
1666 | if test -z "$ac_err"; then |
1603 | : |
1667 | : |
1604 | else |
1668 | else |
1605 | echo "$ac_err" >&5 |
1669 | echo "$ac_err" >&5 |
… | |
… | |
1620 | ac_cv_prog_CPP="$CPP" |
1684 | ac_cv_prog_CPP="$CPP" |
1621 | fi |
1685 | fi |
1622 | echo "$ac_t""$CPP" 1>&6 |
1686 | echo "$ac_t""$CPP" 1>&6 |
1623 | |
1687 | |
1624 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1688 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1625 | echo "configure:1626: checking for ANSI C header files" >&5 |
1689 | echo "configure:1690: checking for ANSI C header files" >&5 |
1626 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1690 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1627 | echo $ac_n "(cached) $ac_c" 1>&6 |
1691 | echo $ac_n "(cached) $ac_c" 1>&6 |
1628 | else |
1692 | else |
1629 | cat > conftest.$ac_ext <<EOF |
1693 | cat > conftest.$ac_ext <<EOF |
1630 | #line 1631 "configure" |
1694 | #line 1695 "configure" |
1631 | #include "confdefs.h" |
1695 | #include "confdefs.h" |
1632 | #include <stdlib.h> |
1696 | #include <stdlib.h> |
1633 | #include <stdarg.h> |
1697 | #include <stdarg.h> |
1634 | #include <string.h> |
1698 | #include <string.h> |
1635 | #include <float.h> |
1699 | #include <float.h> |
1636 | EOF |
1700 | EOF |
1637 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1701 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1638 | { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1702 | { (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1639 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1703 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1640 | if test -z "$ac_err"; then |
1704 | if test -z "$ac_err"; then |
1641 | rm -rf conftest* |
1705 | rm -rf conftest* |
1642 | ac_cv_header_stdc=yes |
1706 | ac_cv_header_stdc=yes |
1643 | else |
1707 | else |
… | |
… | |
1650 | rm -f conftest* |
1714 | rm -f conftest* |
1651 | |
1715 | |
1652 | if test $ac_cv_header_stdc = yes; then |
1716 | if test $ac_cv_header_stdc = yes; then |
1653 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1717 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1654 | cat > conftest.$ac_ext <<EOF |
1718 | cat > conftest.$ac_ext <<EOF |
1655 | #line 1656 "configure" |
1719 | #line 1720 "configure" |
1656 | #include "confdefs.h" |
1720 | #include "confdefs.h" |
1657 | #include <string.h> |
1721 | #include <string.h> |
1658 | EOF |
1722 | EOF |
1659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1660 | egrep "memchr" >/dev/null 2>&1; then |
1724 | egrep "memchr" >/dev/null 2>&1; then |
… | |
… | |
1668 | fi |
1732 | fi |
1669 | |
1733 | |
1670 | if test $ac_cv_header_stdc = yes; then |
1734 | if test $ac_cv_header_stdc = yes; then |
1671 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1735 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1672 | cat > conftest.$ac_ext <<EOF |
1736 | cat > conftest.$ac_ext <<EOF |
1673 | #line 1674 "configure" |
1737 | #line 1738 "configure" |
1674 | #include "confdefs.h" |
1738 | #include "confdefs.h" |
1675 | #include <stdlib.h> |
1739 | #include <stdlib.h> |
1676 | EOF |
1740 | EOF |
1677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1741 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1678 | egrep "free" >/dev/null 2>&1; then |
1742 | egrep "free" >/dev/null 2>&1; then |
… | |
… | |
1689 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1753 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1690 | if test "$cross_compiling" = yes; then |
1754 | if test "$cross_compiling" = yes; then |
1691 | : |
1755 | : |
1692 | else |
1756 | else |
1693 | cat > conftest.$ac_ext <<EOF |
1757 | cat > conftest.$ac_ext <<EOF |
1694 | #line 1695 "configure" |
1758 | #line 1759 "configure" |
1695 | #include "confdefs.h" |
1759 | #include "confdefs.h" |
1696 | #include <ctype.h> |
1760 | #include <ctype.h> |
1697 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1761 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1698 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1762 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1699 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1763 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1700 | int main () { int i; for (i = 0; i < 256; i++) |
1764 | int main () { int i; for (i = 0; i < 256; i++) |
1701 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1765 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1702 | exit (0); } |
1766 | exit (0); } |
1703 | |
1767 | |
1704 | EOF |
1768 | EOF |
1705 | if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1769 | if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1706 | then |
1770 | then |
1707 | : |
1771 | : |
1708 | else |
1772 | else |
1709 | echo "configure: failed program was:" >&5 |
1773 | echo "configure: failed program was:" >&5 |
1710 | cat conftest.$ac_ext >&5 |
1774 | cat conftest.$ac_ext >&5 |
… | |
… | |
1727 | |
1791 | |
1728 | for ac_hdr in unistd.h |
1792 | for ac_hdr in unistd.h |
1729 | do |
1793 | do |
1730 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1794 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1731 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1795 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1732 | echo "configure:1733: checking for $ac_hdr" >&5 |
1796 | echo "configure:1797: checking for $ac_hdr" >&5 |
1733 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1797 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1734 | echo $ac_n "(cached) $ac_c" 1>&6 |
1798 | echo $ac_n "(cached) $ac_c" 1>&6 |
1735 | else |
1799 | else |
1736 | cat > conftest.$ac_ext <<EOF |
1800 | cat > conftest.$ac_ext <<EOF |
1737 | #line 1738 "configure" |
1801 | #line 1802 "configure" |
1738 | #include "confdefs.h" |
1802 | #include "confdefs.h" |
1739 | #include <$ac_hdr> |
1803 | #include <$ac_hdr> |
1740 | EOF |
1804 | EOF |
1741 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1805 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1742 | { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1806 | { (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1743 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1807 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1744 | if test -z "$ac_err"; then |
1808 | if test -z "$ac_err"; then |
1745 | rm -rf conftest* |
1809 | rm -rf conftest* |
1746 | eval "ac_cv_header_$ac_safe=yes" |
1810 | eval "ac_cv_header_$ac_safe=yes" |
1747 | else |
1811 | else |
… | |
… | |
1765 | fi |
1829 | fi |
1766 | done |
1830 | done |
1767 | |
1831 | |
1768 | |
1832 | |
1769 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1833 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1770 | echo "configure:1771: checking for working const" >&5 |
1834 | echo "configure:1835: checking for working const" >&5 |
1771 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1835 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1772 | echo $ac_n "(cached) $ac_c" 1>&6 |
1836 | echo $ac_n "(cached) $ac_c" 1>&6 |
1773 | else |
1837 | else |
1774 | cat > conftest.$ac_ext <<EOF |
1838 | cat > conftest.$ac_ext <<EOF |
1775 | #line 1776 "configure" |
1839 | #line 1840 "configure" |
1776 | #include "confdefs.h" |
1840 | #include "confdefs.h" |
1777 | |
1841 | |
1778 | int main() { |
1842 | int main() { |
1779 | |
1843 | |
1780 | /* Ultrix mips cc rejects this. */ |
1844 | /* Ultrix mips cc rejects this. */ |
… | |
… | |
1819 | const int foo = 10; |
1883 | const int foo = 10; |
1820 | } |
1884 | } |
1821 | |
1885 | |
1822 | ; return 0; } |
1886 | ; return 0; } |
1823 | EOF |
1887 | EOF |
1824 | if { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1888 | if { (eval echo configure:1889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1825 | rm -rf conftest* |
1889 | rm -rf conftest* |
1826 | ac_cv_c_const=yes |
1890 | ac_cv_c_const=yes |
1827 | else |
1891 | else |
1828 | echo "configure: failed program was:" >&5 |
1892 | echo "configure: failed program was:" >&5 |
1829 | cat conftest.$ac_ext >&5 |
1893 | cat conftest.$ac_ext >&5 |
… | |
… | |
1840 | EOF |
1904 | EOF |
1841 | |
1905 | |
1842 | fi |
1906 | fi |
1843 | |
1907 | |
1844 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1908 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1845 | echo "configure:1846: checking for size_t" >&5 |
1909 | echo "configure:1910: checking for size_t" >&5 |
1846 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1910 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1847 | echo $ac_n "(cached) $ac_c" 1>&6 |
1911 | echo $ac_n "(cached) $ac_c" 1>&6 |
1848 | else |
1912 | else |
1849 | cat > conftest.$ac_ext <<EOF |
1913 | cat > conftest.$ac_ext <<EOF |
1850 | #line 1851 "configure" |
1914 | #line 1915 "configure" |
1851 | #include "confdefs.h" |
1915 | #include "confdefs.h" |
1852 | #include <sys/types.h> |
1916 | #include <sys/types.h> |
1853 | #if STDC_HEADERS |
1917 | #if STDC_HEADERS |
1854 | #include <stdlib.h> |
1918 | #include <stdlib.h> |
1855 | #include <stddef.h> |
1919 | #include <stddef.h> |
… | |
… | |
1875 | fi |
1939 | fi |
1876 | |
1940 | |
1877 | |
1941 | |
1878 | |
1942 | |
1879 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1943 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1880 | echo "configure:1881: checking size of char" >&5 |
1944 | echo "configure:1945: checking size of char" >&5 |
1881 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1945 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1882 | echo $ac_n "(cached) $ac_c" 1>&6 |
1946 | echo $ac_n "(cached) $ac_c" 1>&6 |
1883 | else |
1947 | else |
1884 | if test "$cross_compiling" = yes; then |
1948 | if test "$cross_compiling" = yes; then |
1885 | ac_cv_sizeof_char=1 |
1949 | ac_cv_sizeof_char=1 |
1886 | else |
1950 | else |
1887 | cat > conftest.$ac_ext <<EOF |
1951 | cat > conftest.$ac_ext <<EOF |
1888 | #line 1889 "configure" |
1952 | #line 1953 "configure" |
1889 | #include "confdefs.h" |
1953 | #include "confdefs.h" |
1890 | #include <stdio.h> |
1954 | #include <stdio.h> |
1891 | main() |
1955 | main() |
1892 | { |
1956 | { |
1893 | FILE *f=fopen("conftestval", "w"); |
1957 | FILE *f=fopen("conftestval", "w"); |
1894 | if (!f) exit(1); |
1958 | if (!f) exit(1); |
1895 | fprintf(f, "%d\n", sizeof(char)); |
1959 | fprintf(f, "%d\n", sizeof(char)); |
1896 | exit(0); |
1960 | exit(0); |
1897 | } |
1961 | } |
1898 | EOF |
1962 | EOF |
1899 | if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1963 | if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1900 | then |
1964 | then |
1901 | ac_cv_sizeof_char=`cat conftestval` |
1965 | ac_cv_sizeof_char=`cat conftestval` |
1902 | else |
1966 | else |
1903 | echo "configure: failed program was:" >&5 |
1967 | echo "configure: failed program was:" >&5 |
1904 | cat conftest.$ac_ext >&5 |
1968 | cat conftest.$ac_ext >&5 |
… | |
… | |
1914 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1978 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1915 | EOF |
1979 | EOF |
1916 | |
1980 | |
1917 | |
1981 | |
1918 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1982 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1919 | echo "configure:1920: checking size of short" >&5 |
1983 | echo "configure:1984: checking size of short" >&5 |
1920 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1984 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1921 | echo $ac_n "(cached) $ac_c" 1>&6 |
1985 | echo $ac_n "(cached) $ac_c" 1>&6 |
1922 | else |
1986 | else |
1923 | if test "$cross_compiling" = yes; then |
1987 | if test "$cross_compiling" = yes; then |
1924 | ac_cv_sizeof_short=1 |
1988 | ac_cv_sizeof_short=1 |
1925 | else |
1989 | else |
1926 | cat > conftest.$ac_ext <<EOF |
1990 | cat > conftest.$ac_ext <<EOF |
1927 | #line 1928 "configure" |
1991 | #line 1992 "configure" |
1928 | #include "confdefs.h" |
1992 | #include "confdefs.h" |
1929 | #include <stdio.h> |
1993 | #include <stdio.h> |
1930 | main() |
1994 | main() |
1931 | { |
1995 | { |
1932 | FILE *f=fopen("conftestval", "w"); |
1996 | FILE *f=fopen("conftestval", "w"); |
1933 | if (!f) exit(1); |
1997 | if (!f) exit(1); |
1934 | fprintf(f, "%d\n", sizeof(short)); |
1998 | fprintf(f, "%d\n", sizeof(short)); |
1935 | exit(0); |
1999 | exit(0); |
1936 | } |
2000 | } |
1937 | EOF |
2001 | EOF |
1938 | if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2002 | if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1939 | then |
2003 | then |
1940 | ac_cv_sizeof_short=`cat conftestval` |
2004 | ac_cv_sizeof_short=`cat conftestval` |
1941 | else |
2005 | else |
1942 | echo "configure: failed program was:" >&5 |
2006 | echo "configure: failed program was:" >&5 |
1943 | cat conftest.$ac_ext >&5 |
2007 | cat conftest.$ac_ext >&5 |
… | |
… | |
1953 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2017 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
1954 | EOF |
2018 | EOF |
1955 | |
2019 | |
1956 | |
2020 | |
1957 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2021 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
1958 | echo "configure:1959: checking size of int" >&5 |
2022 | echo "configure:2023: checking size of int" >&5 |
1959 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2023 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
1960 | echo $ac_n "(cached) $ac_c" 1>&6 |
2024 | echo $ac_n "(cached) $ac_c" 1>&6 |
1961 | else |
2025 | else |
1962 | if test "$cross_compiling" = yes; then |
2026 | if test "$cross_compiling" = yes; then |
1963 | ac_cv_sizeof_int=2 |
2027 | ac_cv_sizeof_int=2 |
1964 | else |
2028 | else |
1965 | cat > conftest.$ac_ext <<EOF |
2029 | cat > conftest.$ac_ext <<EOF |
1966 | #line 1967 "configure" |
2030 | #line 2031 "configure" |
1967 | #include "confdefs.h" |
2031 | #include "confdefs.h" |
1968 | #include <stdio.h> |
2032 | #include <stdio.h> |
1969 | main() |
2033 | main() |
1970 | { |
2034 | { |
1971 | FILE *f=fopen("conftestval", "w"); |
2035 | FILE *f=fopen("conftestval", "w"); |
1972 | if (!f) exit(1); |
2036 | if (!f) exit(1); |
1973 | fprintf(f, "%d\n", sizeof(int)); |
2037 | fprintf(f, "%d\n", sizeof(int)); |
1974 | exit(0); |
2038 | exit(0); |
1975 | } |
2039 | } |
1976 | EOF |
2040 | EOF |
1977 | if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2041 | if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1978 | then |
2042 | then |
1979 | ac_cv_sizeof_int=`cat conftestval` |
2043 | ac_cv_sizeof_int=`cat conftestval` |
1980 | else |
2044 | else |
1981 | echo "configure: failed program was:" >&5 |
2045 | echo "configure: failed program was:" >&5 |
1982 | cat conftest.$ac_ext >&5 |
2046 | cat conftest.$ac_ext >&5 |
… | |
… | |
1992 | #define SIZEOF_INT $ac_cv_sizeof_int |
2056 | #define SIZEOF_INT $ac_cv_sizeof_int |
1993 | EOF |
2057 | EOF |
1994 | |
2058 | |
1995 | |
2059 | |
1996 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2060 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
1997 | echo "configure:1998: checking size of long" >&5 |
2061 | echo "configure:2062: checking size of long" >&5 |
1998 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2062 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
1999 | echo $ac_n "(cached) $ac_c" 1>&6 |
2063 | echo $ac_n "(cached) $ac_c" 1>&6 |
2000 | else |
2064 | else |
2001 | if test "$cross_compiling" = yes; then |
2065 | if test "$cross_compiling" = yes; then |
2002 | ac_cv_sizeof_long=4 |
2066 | ac_cv_sizeof_long=4 |
2003 | else |
2067 | else |
2004 | cat > conftest.$ac_ext <<EOF |
2068 | cat > conftest.$ac_ext <<EOF |
2005 | #line 2006 "configure" |
2069 | #line 2070 "configure" |
2006 | #include "confdefs.h" |
2070 | #include "confdefs.h" |
2007 | #include <stdio.h> |
2071 | #include <stdio.h> |
2008 | main() |
2072 | main() |
2009 | { |
2073 | { |
2010 | FILE *f=fopen("conftestval", "w"); |
2074 | FILE *f=fopen("conftestval", "w"); |
2011 | if (!f) exit(1); |
2075 | if (!f) exit(1); |
2012 | fprintf(f, "%d\n", sizeof(long)); |
2076 | fprintf(f, "%d\n", sizeof(long)); |
2013 | exit(0); |
2077 | exit(0); |
2014 | } |
2078 | } |
2015 | EOF |
2079 | EOF |
2016 | if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2080 | if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2017 | then |
2081 | then |
2018 | ac_cv_sizeof_long=`cat conftestval` |
2082 | ac_cv_sizeof_long=`cat conftestval` |
2019 | else |
2083 | else |
2020 | echo "configure: failed program was:" >&5 |
2084 | echo "configure: failed program was:" >&5 |
2021 | cat conftest.$ac_ext >&5 |
2085 | cat conftest.$ac_ext >&5 |
… | |
… | |
2032 | EOF |
2096 | EOF |
2033 | |
2097 | |
2034 | |
2098 | |
2035 | |
2099 | |
2036 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2100 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2037 | echo "configure:2038: checking for an 8 bit integer type" >&5 |
2101 | echo "configure:2102: checking for an 8 bit integer type" >&5 |
2038 | if test $ac_cv_sizeof_char -ge 1 ; then |
2102 | if test $ac_cv_sizeof_char -ge 1 ; then |
2039 | INT_8_BIT=char |
2103 | INT_8_BIT=char |
2040 | echo "$ac_t""char" 1>&6 |
2104 | echo "$ac_t""char" 1>&6 |
2041 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2105 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2042 | INT_8_BIT=short |
2106 | INT_8_BIT=short |
… | |
… | |
2050 | else |
2114 | else |
2051 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2115 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2052 | fi |
2116 | fi |
2053 | |
2117 | |
2054 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2118 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2055 | echo "configure:2056: checking for a 16 bit integer type" >&5 |
2119 | echo "configure:2120: checking for a 16 bit integer type" >&5 |
2056 | if test $ac_cv_sizeof_char -ge 2 ; then |
2120 | if test $ac_cv_sizeof_char -ge 2 ; then |
2057 | INT_16_BIT=char |
2121 | INT_16_BIT=char |
2058 | echo "$ac_t""char" 1>&6 |
2122 | echo "$ac_t""char" 1>&6 |
2059 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2123 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2060 | INT_16_BIT=short |
2124 | INT_16_BIT=short |
… | |
… | |
2068 | else |
2132 | else |
2069 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2133 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2070 | fi |
2134 | fi |
2071 | |
2135 | |
2072 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2136 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2073 | echo "configure:2074: checking for a 32 bit integer type" >&5 |
2137 | echo "configure:2138: checking for a 32 bit integer type" >&5 |
2074 | if test $ac_cv_sizeof_char -ge 4 ; then |
2138 | if test $ac_cv_sizeof_char -ge 4 ; then |
2075 | INT_32_BIT=char |
2139 | INT_32_BIT=char |
2076 | echo "$ac_t""char" 1>&6 |
2140 | echo "$ac_t""char" 1>&6 |
2077 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2141 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2078 | INT_32_BIT=short |
2142 | INT_32_BIT=short |
… | |
… | |
2090 | |
2154 | |
2091 | |
2155 | |
2092 | |
2156 | |
2093 | |
2157 | |
2094 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2158 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2095 | echo "configure:2096: checking for vprintf" >&5 |
2159 | echo "configure:2160: checking for vprintf" >&5 |
2096 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2160 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2097 | echo $ac_n "(cached) $ac_c" 1>&6 |
2161 | echo $ac_n "(cached) $ac_c" 1>&6 |
2098 | else |
2162 | else |
2099 | cat > conftest.$ac_ext <<EOF |
2163 | cat > conftest.$ac_ext <<EOF |
2100 | #line 2101 "configure" |
2164 | #line 2165 "configure" |
2101 | #include "confdefs.h" |
2165 | #include "confdefs.h" |
2102 | /* System header to define __stub macros and hopefully few prototypes, |
2166 | /* System header to define __stub macros and hopefully few prototypes, |
2103 | which can conflict with char vprintf(); below. */ |
2167 | which can conflict with char vprintf(); below. */ |
2104 | #include <assert.h> |
2168 | #include <assert.h> |
2105 | /* Override any gcc2 internal prototype to avoid an error. */ |
2169 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2118 | vprintf(); |
2182 | vprintf(); |
2119 | #endif |
2183 | #endif |
2120 | |
2184 | |
2121 | ; return 0; } |
2185 | ; return 0; } |
2122 | EOF |
2186 | EOF |
2123 | if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2187 | if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2124 | rm -rf conftest* |
2188 | rm -rf conftest* |
2125 | eval "ac_cv_func_vprintf=yes" |
2189 | eval "ac_cv_func_vprintf=yes" |
2126 | else |
2190 | else |
2127 | echo "configure: failed program was:" >&5 |
2191 | echo "configure: failed program was:" >&5 |
2128 | cat conftest.$ac_ext >&5 |
2192 | cat conftest.$ac_ext >&5 |
… | |
… | |
2142 | echo "$ac_t""no" 1>&6 |
2206 | echo "$ac_t""no" 1>&6 |
2143 | fi |
2207 | fi |
2144 | |
2208 | |
2145 | if test "$ac_cv_func_vprintf" != yes; then |
2209 | if test "$ac_cv_func_vprintf" != yes; then |
2146 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2210 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2147 | echo "configure:2148: checking for _doprnt" >&5 |
2211 | echo "configure:2212: checking for _doprnt" >&5 |
2148 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2212 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2149 | echo $ac_n "(cached) $ac_c" 1>&6 |
2213 | echo $ac_n "(cached) $ac_c" 1>&6 |
2150 | else |
2214 | else |
2151 | cat > conftest.$ac_ext <<EOF |
2215 | cat > conftest.$ac_ext <<EOF |
2152 | #line 2153 "configure" |
2216 | #line 2217 "configure" |
2153 | #include "confdefs.h" |
2217 | #include "confdefs.h" |
2154 | /* System header to define __stub macros and hopefully few prototypes, |
2218 | /* System header to define __stub macros and hopefully few prototypes, |
2155 | which can conflict with char _doprnt(); below. */ |
2219 | which can conflict with char _doprnt(); below. */ |
2156 | #include <assert.h> |
2220 | #include <assert.h> |
2157 | /* Override any gcc2 internal prototype to avoid an error. */ |
2221 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2170 | _doprnt(); |
2234 | _doprnt(); |
2171 | #endif |
2235 | #endif |
2172 | |
2236 | |
2173 | ; return 0; } |
2237 | ; return 0; } |
2174 | EOF |
2238 | EOF |
2175 | if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2239 | if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2176 | rm -rf conftest* |
2240 | rm -rf conftest* |
2177 | eval "ac_cv_func__doprnt=yes" |
2241 | eval "ac_cv_func__doprnt=yes" |
2178 | else |
2242 | else |
2179 | echo "configure: failed program was:" >&5 |
2243 | echo "configure: failed program was:" >&5 |
2180 | cat conftest.$ac_ext >&5 |
2244 | cat conftest.$ac_ext >&5 |
… | |
… | |
2197 | fi |
2261 | fi |
2198 | |
2262 | |
2199 | for ac_func in strdup |
2263 | for ac_func in strdup |
2200 | do |
2264 | do |
2201 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2265 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2202 | echo "configure:2203: checking for $ac_func" >&5 |
2266 | echo "configure:2267: checking for $ac_func" >&5 |
2203 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2267 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2204 | echo $ac_n "(cached) $ac_c" 1>&6 |
2268 | echo $ac_n "(cached) $ac_c" 1>&6 |
2205 | else |
2269 | else |
2206 | cat > conftest.$ac_ext <<EOF |
2270 | cat > conftest.$ac_ext <<EOF |
2207 | #line 2208 "configure" |
2271 | #line 2272 "configure" |
2208 | #include "confdefs.h" |
2272 | #include "confdefs.h" |
2209 | /* System header to define __stub macros and hopefully few prototypes, |
2273 | /* System header to define __stub macros and hopefully few prototypes, |
2210 | which can conflict with char $ac_func(); below. */ |
2274 | which can conflict with char $ac_func(); below. */ |
2211 | #include <assert.h> |
2275 | #include <assert.h> |
2212 | /* Override any gcc2 internal prototype to avoid an error. */ |
2276 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2225 | $ac_func(); |
2289 | $ac_func(); |
2226 | #endif |
2290 | #endif |
2227 | |
2291 | |
2228 | ; return 0; } |
2292 | ; return 0; } |
2229 | EOF |
2293 | EOF |
2230 | if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2294 | if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2231 | rm -rf conftest* |
2295 | rm -rf conftest* |
2232 | eval "ac_cv_func_$ac_func=yes" |
2296 | eval "ac_cv_func_$ac_func=yes" |
2233 | else |
2297 | else |
2234 | echo "configure: failed program was:" >&5 |
2298 | echo "configure: failed program was:" >&5 |
2235 | cat conftest.$ac_ext >&5 |
2299 | cat conftest.$ac_ext >&5 |
… | |
… | |
2246 | #define $ac_tr_func 1 |
2310 | #define $ac_tr_func 1 |
2247 | EOF |
2311 | EOF |
2248 | |
2312 | |
2249 | else |
2313 | else |
2250 | echo "$ac_t""no" 1>&6 |
2314 | echo "$ac_t""no" 1>&6 |
|
|
2315 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
2251 | fi |
2316 | fi |
2252 | done |
2317 | done |
2253 | |
2318 | |
2254 | for ac_func in strdup |
2319 | |
|
|
2320 | for ac_func in getopt_long |
2255 | do |
2321 | do |
2256 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2322 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2257 | echo "configure:2258: checking for $ac_func" >&5 |
2323 | echo "configure:2324: checking for $ac_func" >&5 |
2258 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2324 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2259 | echo $ac_n "(cached) $ac_c" 1>&6 |
2325 | echo $ac_n "(cached) $ac_c" 1>&6 |
2260 | else |
2326 | else |
2261 | cat > conftest.$ac_ext <<EOF |
2327 | cat > conftest.$ac_ext <<EOF |
2262 | #line 2263 "configure" |
2328 | #line 2329 "configure" |
2263 | #include "confdefs.h" |
2329 | #include "confdefs.h" |
2264 | /* System header to define __stub macros and hopefully few prototypes, |
2330 | /* System header to define __stub macros and hopefully few prototypes, |
2265 | which can conflict with char $ac_func(); below. */ |
2331 | which can conflict with char $ac_func(); below. */ |
2266 | #include <assert.h> |
2332 | #include <assert.h> |
2267 | /* Override any gcc2 internal prototype to avoid an error. */ |
2333 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2280 | $ac_func(); |
2346 | $ac_func(); |
2281 | #endif |
2347 | #endif |
2282 | |
2348 | |
2283 | ; return 0; } |
2349 | ; return 0; } |
2284 | EOF |
2350 | EOF |
2285 | if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2351 | if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2286 | rm -rf conftest* |
2352 | rm -rf conftest* |
2287 | eval "ac_cv_func_$ac_func=yes" |
2353 | eval "ac_cv_func_$ac_func=yes" |
2288 | else |
2354 | else |
2289 | echo "configure: failed program was:" >&5 |
2355 | echo "configure: failed program was:" >&5 |
2290 | cat conftest.$ac_ext >&5 |
2356 | cat conftest.$ac_ext >&5 |
… | |
… | |
2301 | #define $ac_tr_func 1 |
2367 | #define $ac_tr_func 1 |
2302 | EOF |
2368 | EOF |
2303 | |
2369 | |
2304 | else |
2370 | else |
2305 | echo "$ac_t""no" 1>&6 |
2371 | echo "$ac_t""no" 1>&6 |
2306 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
2372 | LIBOBJS="$LIBOBJS getopt.o getopt1.o" |
2307 | fi |
2373 | fi |
2308 | done |
2374 | done |
2309 | |
2375 | |
2310 | |
2376 | |
2311 | |
2377 | |
… | |
… | |
2395 | else |
2461 | else |
2396 | RTFDOCS_TRUE='#' |
2462 | RTFDOCS_TRUE='#' |
2397 | RTFDOCS_FALSE= |
2463 | RTFDOCS_FALSE= |
2398 | fi |
2464 | fi |
2399 | |
2465 | |
2400 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
|
|
2401 | if test "${enable_compile_warnings+set}" = set; then |
|
|
2402 | enableval="$enable_compile_warnings" |
|
|
2403 | : |
|
|
2404 | else |
|
|
2405 | enable_compile_warnings=minimum |
|
|
2406 | fi |
|
|
2407 | |
|
|
2408 | |
|
|
2409 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
2410 | echo "configure:2411: checking what warning flags to pass to the C compiler" >&5 |
|
|
2411 | warnCFLAGS= |
|
|
2412 | if test "x$GCC" != xyes; then |
|
|
2413 | enable_compile_warnings=no |
|
|
2414 | fi |
|
|
2415 | if test "x$enable_compile_warnings" != "xno"; then |
|
|
2416 | if test "x$GCC" = "xyes"; then |
|
|
2417 | case " $CFLAGS " in |
|
|
2418 | *\ \ -Wall\ \ *) ;; |
|
|
2419 | *) warnCFLAGS="-Wall -Wunused" ;; |
|
|
2420 | esac |
|
|
2421 | |
|
|
2422 | ## -W is not all that useful. And it cannot be controlled |
|
|
2423 | ## with individual -Wno-xxx flags, unlike -Wall |
|
|
2424 | if test "x$enable_compile_warnings" = "xyes"; then |
|
|
2425 | warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith" |
|
|
2426 | fi |
|
|
2427 | fi |
|
|
2428 | fi |
|
|
2429 | echo "$ac_t""$warnCFLAGS" 1>&6 |
|
|
2430 | |
|
|
2431 | # Check whether --enable-iso-c or --disable-iso-c was given. |
|
|
2432 | if test "${enable_iso_c+set}" = set; then |
|
|
2433 | enableval="$enable_iso_c" |
|
|
2434 | : |
|
|
2435 | else |
|
|
2436 | enable_iso_c=no |
|
|
2437 | fi |
|
|
2438 | |
|
|
2439 | |
|
|
2440 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
2441 | echo "configure:2442: checking what language compliance flags to pass to the C compiler" >&5 |
|
|
2442 | complCFLAGS= |
|
|
2443 | if test "x$enable_iso_c" != "xno"; then |
|
|
2444 | if test "x$GCC" = "xyes"; then |
|
|
2445 | case " $CFLAGS " in |
|
|
2446 | *\ \ -ansi\ \ *) ;; |
|
|
2447 | *) complCFLAGS="$complCFLAGS -ansi" ;; |
|
|
2448 | esac |
|
|
2449 | |
|
|
2450 | case " $CFLAGS " in |
|
|
2451 | *\ \ -pedantic\ \ *) ;; |
|
|
2452 | *) complCFLAGS="$complCFLAGS -pedantic" ;; |
|
|
2453 | esac |
|
|
2454 | fi |
|
|
2455 | fi |
|
|
2456 | echo "$ac_t""$complCFLAGS" 1>&6 |
|
|
2457 | if test "x$cflags_set" != "xyes"; then |
|
|
2458 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
|
|
2459 | cflags_set=yes |
|
|
2460 | |
|
|
2461 | fi |
|
|
2462 | |
2466 | |
2463 | trap '' 1 2 15 |
2467 | trap '' 1 2 15 |
2464 | cat > confcache <<\EOF |
2468 | cat > confcache <<\EOF |
2465 | # This file is a shell script that caches the results of configure |
2469 | # This file is a shell script that caches the results of configure |
2466 | # tests run on this system so they can be shared between configure |
2470 | # tests run on this system so they can be shared between configure |
… | |
… | |
2618 | s%@CC@%$CC%g |
2622 | s%@CC@%$CC%g |
2619 | s%@LD@%$LD%g |
2623 | s%@LD@%$LD%g |
2620 | s%@NM@%$NM%g |
2624 | s%@NM@%$NM%g |
2621 | s%@LN_S@%$LN_S%g |
2625 | s%@LN_S@%$LN_S%g |
2622 | s%@LIBTOOL@%$LIBTOOL%g |
2626 | s%@LIBTOOL@%$LIBTOOL%g |
|
|
2627 | s%@cflags_set@%$cflags_set%g |
2623 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
2628 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
2624 | s%@CPP@%$CPP%g |
2629 | s%@CPP@%$CPP%g |
2625 | s%@INT_8_BIT@%$INT_8_BIT%g |
2630 | s%@INT_8_BIT@%$INT_8_BIT%g |
2626 | s%@INT_16_BIT@%$INT_16_BIT%g |
2631 | s%@INT_16_BIT@%$INT_16_BIT%g |
2627 | s%@INT_32_BIT@%$INT_32_BIT%g |
2632 | s%@INT_32_BIT@%$INT_32_BIT%g |
… | |
… | |
2632 | s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
2637 | s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
2633 | s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
2638 | s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
2634 | s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
2639 | s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
2635 | s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g |
2640 | s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g |
2636 | s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g |
2641 | s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g |
2637 | s%@cflags_set@%$cflags_set%g |
|
|
2638 | |
2642 | |
2639 | CEOF |
2643 | CEOF |
2640 | EOF |
2644 | EOF |
2641 | |
2645 | |
2642 | cat >> $CONFIG_STATUS <<\EOF |
2646 | cat >> $CONFIG_STATUS <<\EOF |