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

Diff of /psiconv/trunk/configure

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

Revision 19 Revision 50
20ac_help="$ac_help 20ac_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]"
22ac_help="$ac_help 22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)" 23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help 24ac_help="$ac_help
25 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
26ac_help="$ac_help
27 --enable-iso-c Try to warn if code is not ISO C "
28ac_help="$ac_help
25 --with-imagemagick enable ImageMagick (default = yes)" 29 --with-imagemagick enable ImageMagick (default = yes)"
26ac_help="$ac_help 30ac_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)"
28ac_help="$ac_help 32ac_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)"
30ac_help="$ac_help 34ac_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)"
32ac_help="$ac_help 36ac_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)"
34ac_help="$ac_help
35 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
36ac_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.
42build=NONE 42build=NONE
713fi 713fi
714 714
715 715
716PACKAGE=psiconv 716PACKAGE=psiconv
717 717
718VERSION=0.5.0a 718VERSION=0.6.1
719 719
720if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 720if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
721 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 721 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
722fi 722fi
723cat >> confdefs.h <<EOF 723cat >> confdefs.h <<EOF
1239 echo "$ac_t""$LD" 1>&6 1239 echo "$ac_t""$LD" 1>&6
1240else 1240else
1241 echo "$ac_t""no" 1>&6 1241 echo "$ac_t""no" 1>&6
1242fi 1242fi
1243test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1243test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1244
1245echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1244echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1246echo "configure:1247: checking if the linker ($LD) is GNU ld" >&5 1245echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5
1247if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1246if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6 1247 echo $ac_n "(cached) $ac_c" 1>&6
1249else 1248else
1250 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1251if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1250if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1257 1256
1258echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1257echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1259 1258
1260 1259
1261echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1260echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1262echo "configure:1263: checking for BSD-compatible nm" >&5 1261echo "configure:1262: checking for BSD-compatible nm" >&5
1263if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1262if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6 1263 echo $ac_n "(cached) $ac_c" 1>&6
1265else 1264else
1266 if test -n "$NM"; then 1265 if test -n "$NM"; then
1267 # Let the user override the test. 1266 # Let the user override the test.
1292fi 1291fi
1293 1292
1294NM="$ac_cv_path_NM" 1293NM="$ac_cv_path_NM"
1295echo "$ac_t""$NM" 1>&6 1294echo "$ac_t""$NM" 1>&6
1296 1295
1297
1298echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1296echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1299echo "configure:1300: checking whether ln -s works" >&5 1297echo "configure:1298: checking whether ln -s works" >&5
1300if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1298if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6 1299 echo $ac_n "(cached) $ac_c" 1>&6
1302else 1300else
1303 rm -f conftestdata 1301 rm -f conftestdata
1304if ln -s X conftestdata 2>/dev/null 1302if ln -s X conftestdata 2>/dev/null
1314 echo "$ac_t""yes" 1>&6 1312 echo "$ac_t""yes" 1>&6
1315else 1313else
1316 echo "$ac_t""no" 1>&6 1314 echo "$ac_t""no" 1>&6
1317fi 1315fi
1318 1316
1317
1318case "$target" in
1319NONE) lt_target="$host" ;;
1320*) lt_target="$target" ;;
1321esac
1319 1322
1320# Check for any special flags to pass to ltconfig. 1323# Check for any special flags to pass to ltconfig.
1321libtool_flags="--cache-file=$cache_file" 1324libtool_flags="--cache-file=$cache_file"
1322test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1325test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1323test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1326test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1335test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 1338test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1336test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 1339test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1337 1340
1338# Some flags need to be propagated to the compiler or linker for good 1341# Some flags need to be propagated to the compiler or linker for good
1339# libtool support. 1342# libtool support.
1340case "$host" in 1343case "$lt_target" in
1341*-*-irix6*) 1344*-*-irix6*)
1342 # Find out which ABI we are using. 1345 # Find out which ABI we are using.
1343 echo '#line 1344 "configure"' > conftest.$ac_ext 1346 echo '#line 1347 "configure"' > conftest.$ac_ext
1344 if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1347 if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1345 case "`/usr/bin/file conftest.o`" in 1348 case "`/usr/bin/file conftest.o`" in
1346 *32-bit*) 1349 *32-bit*)
1347 LD="${LD-ld} -32" 1350 LD="${LD-ld} -32"
1348 ;; 1351 ;;
1349 *N32*) 1352 *N32*)
1360*-*-sco3.2v5*) 1363*-*-sco3.2v5*)
1361 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1362 SAVE_CFLAGS="$CFLAGS" 1365 SAVE_CFLAGS="$CFLAGS"
1363 CFLAGS="$CFLAGS -belf" 1366 CFLAGS="$CFLAGS -belf"
1364 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 1367 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1365echo "configure:1366: checking whether the C compiler needs -belf" >&5 1368echo "configure:1369: checking whether the C compiler needs -belf" >&5
1366if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 1369if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6 1370 echo $ac_n "(cached) $ac_c" 1>&6
1368else 1371else
1369 cat > conftest.$ac_ext <<EOF 1372 cat > conftest.$ac_ext <<EOF
1370#line 1371 "configure" 1373#line 1374 "configure"
1371#include "confdefs.h" 1374#include "confdefs.h"
1372 1375
1373int main() { 1376int main() {
1374 1377
1375; return 0; } 1378; return 0; }
1376EOF 1379EOF
1377if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1380if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1378 rm -rf conftest* 1381 rm -rf conftest*
1379 lt_cv_cc_needs_belf=yes 1382 lt_cv_cc_needs_belf=yes
1380else 1383else
1381 echo "configure: failed program was:" >&5 1384 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5 1385 cat conftest.$ac_ext >&5
1450CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 1453CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1451LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 1454LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1452LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 1455LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1453DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 1456DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1454${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 1457${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1455$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ 1458$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1456|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 1459|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1457 1460
1458# Reload cache, that may have been modified by ltconfig 1461# Reload cache, that may have been modified by ltconfig
1459if test -r "$cache_file"; then 1462if test -r "$cache_file"; then
1460 echo "loading cache $cache_file" 1463 echo "loading cache $cache_file"
1474# Redirect the config.log output again, so that the ltconfig log is not 1477# Redirect the config.log output again, so that the ltconfig log is not
1475# clobbered by the next message. 1478# clobbered by the next message.
1476exec 5>>./config.log 1479exec 5>>./config.log
1477 1480
1478 1481
1482# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1483if test "${enable_compile_warnings+set}" = set; then
1484 enableval="$enable_compile_warnings"
1485 :
1486else
1487 enable_compile_warnings=minimum
1488fi
1489
1490
1491echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1492echo "configure:1493: checking what warning flags to pass to the C compiler" >&5
1493warnCFLAGS=
1494if test "x$GCC" != xyes; then
1495 enable_compile_warnings=no
1496fi
1497if test "x$enable_compile_warnings" != "xno"; then
1498 if test "x$GCC" = "xyes"; then
1499 case " $CFLAGS " in
1500 *\ \ -Wall\ \ *) ;;
1501 *) warnCFLAGS="-Wall -Wunused" ;;
1502 esac
1503
1504 ## -W is not all that useful. And it cannot be controlled
1505 ## with individual -Wno-xxx flags, unlike -Wall
1506 if test "x$enable_compile_warnings" = "xyes"; then
1507 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
1508 fi
1509 fi
1510fi
1511echo "$ac_t""$warnCFLAGS" 1>&6
1512
1513# Check whether --enable-iso-c or --disable-iso-c was given.
1514if test "${enable_iso_c+set}" = set; then
1515 enableval="$enable_iso_c"
1516 :
1517else
1518 enable_iso_c=no
1519fi
1520
1521
1522echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1523echo "configure:1524: checking what language compliance flags to pass to the C compiler" >&5
1524complCFLAGS=
1525if test "x$enable_iso_c" != "xno"; then
1526 if test "x$GCC" = "xyes"; then
1527 case " $CFLAGS " in
1528 *\ \ -ansi\ \ *) ;;
1529 *) complCFLAGS="$complCFLAGS -ansi" ;;
1530 esac
1531
1532 case " $CFLAGS " in
1533 *\ \ -pedantic\ \ *) ;;
1534 *) complCFLAGS="$complCFLAGS -pedantic" ;;
1535 esac
1536 fi
1537fi
1538echo "$ac_t""$complCFLAGS" 1>&6
1539if test "x$cflags_set" != "xyes"; then
1540 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1541 cflags_set=yes
1542
1543fi
1544
1545
1479# Check whether --with-imagemagick or --without-imagemagick was given. 1546# Check whether --with-imagemagick or --without-imagemagick was given.
1480if test "${with_imagemagick+set}" = set; then 1547if test "${with_imagemagick+set}" = set; then
1481 withval="$with_imagemagick" 1548 withval="$with_imagemagick"
1482 IMAGEMAGICK=$withval 1549 IMAGEMAGICK=$withval
1483else 1550else
1484 IMAGEMAGICK='yes' 1551 IMAGEMAGICK='yes'
1485fi 1552fi
1486 1553
1487if test x"$IMAGEMAGICK" != xno ; then 1554if test x"$IMAGEMAGICK" != xno ; then
1488 echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 1555 echo $ac_n "checking for ConstituteImage in -lMagick""... $ac_c" 1>&6
1489echo "configure:1490: checking for MagickWarning in -lMagick" >&5 1556echo "configure:1557: checking for ConstituteImage in -lMagick" >&5
1490ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` 1557ac_lib_var=`echo Magick'_'ConstituteImage | sed 'y%./+-%__p_%'`
1491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1558if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6 1559 echo $ac_n "(cached) $ac_c" 1>&6
1493else 1560else
1494 ac_save_LIBS="$LIBS" 1561 ac_save_LIBS="$LIBS"
1495LIBS="-lMagick $LIBS" 1562LIBS="-lMagick $LIBS"
1496cat > conftest.$ac_ext <<EOF 1563cat > conftest.$ac_ext <<EOF
1497#line 1498 "configure" 1564#line 1565 "configure"
1498#include "confdefs.h" 1565#include "confdefs.h"
1499/* Override any gcc2 internal prototype to avoid an error. */ 1566/* Override any gcc2 internal prototype to avoid an error. */
1500/* We use char because int might match the return type of a gcc2 1567/* We use char because int might match the return type of a gcc2
1501 builtin and then its argument prototype would still apply. */ 1568 builtin and then its argument prototype would still apply. */
1502char MagickWarning(); 1569char ConstituteImage();
1503 1570
1504int main() { 1571int main() {
1505MagickWarning() 1572ConstituteImage()
1506; return 0; } 1573; return 0; }
1507EOF 1574EOF
1508if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1575if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1509 rm -rf conftest* 1576 rm -rf conftest*
1510 eval "ac_cv_lib_$ac_lib_var=yes" 1577 eval "ac_cv_lib_$ac_lib_var=yes"
1511else 1578else
1512 echo "configure: failed program was:" >&5 1579 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5 1580 cat conftest.$ac_ext >&5
1524else 1591else
1525 echo "$ac_t""no" 1>&6 1592 echo "$ac_t""no" 1>&6
1526IMAGEMAGICK=no 1593IMAGEMAGICK=no
1527fi 1594fi
1528 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
1529 if test x"$IMAGEMAGICK" = xno ; then 1622 if test x"$IMAGEMAGICK" = xno ; then
1530 echo "configure: warning: ImageMagick support disabled!" 1>&2 1623 echo "configure: warning: ImageMagick support disabled!" 1>&2
1531 fi 1624 fi
1532fi 1625fi
1533if test x"$IMAGEMAGICK" = xyes ; then 1626if test x"$IMAGEMAGICK" = xyes ; then
1540 LIB_MAGICK= 1633 LIB_MAGICK=
1541fi 1634fi
1542 1635
1543 1636
1544echo $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
1545echo "configure:1546: checking how to run the C preprocessor" >&5 1638echo "configure:1639: checking how to run the C preprocessor" >&5
1546# On Suns, sometimes $CPP names a directory. 1639# On Suns, sometimes $CPP names a directory.
1547if test -n "$CPP" && test -d "$CPP"; then 1640if test -n "$CPP" && test -d "$CPP"; then
1548 CPP= 1641 CPP=
1549fi 1642fi
1550if test -z "$CPP"; then 1643if test -z "$CPP"; then
1555 # substituted into the Makefile and "${CC-cc}" will confuse make. 1648 # substituted into the Makefile and "${CC-cc}" will confuse make.
1556 CPP="${CC-cc} -E" 1649 CPP="${CC-cc} -E"
1557 # 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,
1558 # not just through cpp. 1651 # not just through cpp.
1559 cat > conftest.$ac_ext <<EOF 1652 cat > conftest.$ac_ext <<EOF
1560#line 1561 "configure" 1653#line 1654 "configure"
1561#include "confdefs.h" 1654#include "confdefs.h"
1562#include <assert.h> 1655#include <assert.h>
1563Syntax Error 1656Syntax Error
1564EOF 1657EOF
1565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1658ac_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; } 1659{ (eval echo configure:1660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1568if test -z "$ac_err"; then 1661if test -z "$ac_err"; then
1569 : 1662 :
1570else 1663else
1571 echo "$ac_err" >&5 1664 echo "$ac_err" >&5
1572 echo "configure: failed program was:" >&5 1665 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5 1666 cat conftest.$ac_ext >&5
1574 rm -rf conftest* 1667 rm -rf conftest*
1575 CPP="${CC-cc} -E -traditional-cpp" 1668 CPP="${CC-cc} -E -traditional-cpp"
1576 cat > conftest.$ac_ext <<EOF 1669 cat > conftest.$ac_ext <<EOF
1577#line 1578 "configure" 1670#line 1671 "configure"
1578#include "confdefs.h" 1671#include "confdefs.h"
1579#include <assert.h> 1672#include <assert.h>
1580Syntax Error 1673Syntax Error
1581EOF 1674EOF
1582ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1675ac_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; } 1676{ (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1584ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1677ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1585if test -z "$ac_err"; then 1678if test -z "$ac_err"; then
1586 : 1679 :
1587else 1680else
1588 echo "$ac_err" >&5 1681 echo "$ac_err" >&5
1589 echo "configure: failed program was:" >&5 1682 echo "configure: failed program was:" >&5
1590 cat conftest.$ac_ext >&5 1683 cat conftest.$ac_ext >&5
1591 rm -rf conftest* 1684 rm -rf conftest*
1592 CPP="${CC-cc} -nologo -E" 1685 CPP="${CC-cc} -nologo -E"
1593 cat > conftest.$ac_ext <<EOF 1686 cat > conftest.$ac_ext <<EOF
1594#line 1595 "configure" 1687#line 1688 "configure"
1595#include "confdefs.h" 1688#include "confdefs.h"
1596#include <assert.h> 1689#include <assert.h>
1597Syntax Error 1690Syntax Error
1598EOF 1691EOF
1599ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1692ac_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; } 1693{ (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1601ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1602if test -z "$ac_err"; then 1695if test -z "$ac_err"; then
1603 : 1696 :
1604else 1697else
1605 echo "$ac_err" >&5 1698 echo "$ac_err" >&5
1620 ac_cv_prog_CPP="$CPP" 1713 ac_cv_prog_CPP="$CPP"
1621fi 1714fi
1622echo "$ac_t""$CPP" 1>&6 1715echo "$ac_t""$CPP" 1>&6
1623 1716
1624echo $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
1625echo "configure:1626: checking for ANSI C header files" >&5 1718echo "configure:1719: checking for ANSI C header files" >&5
1626if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1719if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6 1720 echo $ac_n "(cached) $ac_c" 1>&6
1628else 1721else
1629 cat > conftest.$ac_ext <<EOF 1722 cat > conftest.$ac_ext <<EOF
1630#line 1631 "configure" 1723#line 1724 "configure"
1631#include "confdefs.h" 1724#include "confdefs.h"
1632#include <stdlib.h> 1725#include <stdlib.h>
1633#include <stdarg.h> 1726#include <stdarg.h>
1634#include <string.h> 1727#include <string.h>
1635#include <float.h> 1728#include <float.h>
1636EOF 1729EOF
1637ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1730ac_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; } 1731{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1732ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640if test -z "$ac_err"; then 1733if test -z "$ac_err"; then
1641 rm -rf conftest* 1734 rm -rf conftest*
1642 ac_cv_header_stdc=yes 1735 ac_cv_header_stdc=yes
1643else 1736else
1650rm -f conftest* 1743rm -f conftest*
1651 1744
1652if test $ac_cv_header_stdc = yes; then 1745if test $ac_cv_header_stdc = yes; then
1653 # 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.
1654cat > conftest.$ac_ext <<EOF 1747cat > conftest.$ac_ext <<EOF
1655#line 1656 "configure" 1748#line 1749 "configure"
1656#include "confdefs.h" 1749#include "confdefs.h"
1657#include <string.h> 1750#include <string.h>
1658EOF 1751EOF
1659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1660 egrep "memchr" >/dev/null 2>&1; then 1753 egrep "memchr" >/dev/null 2>&1; then
1668fi 1761fi
1669 1762
1670if test $ac_cv_header_stdc = yes; then 1763if test $ac_cv_header_stdc = yes; then
1671 # 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.
1672cat > conftest.$ac_ext <<EOF 1765cat > conftest.$ac_ext <<EOF
1673#line 1674 "configure" 1766#line 1767 "configure"
1674#include "confdefs.h" 1767#include "confdefs.h"
1675#include <stdlib.h> 1768#include <stdlib.h>
1676EOF 1769EOF
1677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1678 egrep "free" >/dev/null 2>&1; then 1771 egrep "free" >/dev/null 2>&1; then
1689 # /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.
1690if test "$cross_compiling" = yes; then 1783if test "$cross_compiling" = yes; then
1691 : 1784 :
1692else 1785else
1693 cat > conftest.$ac_ext <<EOF 1786 cat > conftest.$ac_ext <<EOF
1694#line 1695 "configure" 1787#line 1788 "configure"
1695#include "confdefs.h" 1788#include "confdefs.h"
1696#include <ctype.h> 1789#include <ctype.h>
1697#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1790#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1698#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1791#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1699#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1792#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1700int main () { int i; for (i = 0; i < 256; i++) 1793int main () { int i; for (i = 0; i < 256; i++)
1701if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1794if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1702exit (0); } 1795exit (0); }
1703 1796
1704EOF 1797EOF
1705if { (eval echo configure:1706: \"$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
1706then 1799then
1707 : 1800 :
1708else 1801else
1709 echo "configure: failed program was:" >&5 1802 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5 1803 cat conftest.$ac_ext >&5
1727 1820
1728for ac_hdr in unistd.h 1821for ac_hdr in unistd.h
1729do 1822do
1730ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1823ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1731echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1824echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1732echo "configure:1733: checking for $ac_hdr" >&5 1825echo "configure:1826: checking for $ac_hdr" >&5
1733if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6 1827 echo $ac_n "(cached) $ac_c" 1>&6
1735else 1828else
1736 cat > conftest.$ac_ext <<EOF 1829 cat > conftest.$ac_ext <<EOF
1737#line 1738 "configure" 1830#line 1831 "configure"
1738#include "confdefs.h" 1831#include "confdefs.h"
1739#include <$ac_hdr> 1832#include <$ac_hdr>
1740EOF 1833EOF
1741ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1834ac_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; } 1835{ (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1743ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1744if test -z "$ac_err"; then 1837if test -z "$ac_err"; then
1745 rm -rf conftest* 1838 rm -rf conftest*
1746 eval "ac_cv_header_$ac_safe=yes" 1839 eval "ac_cv_header_$ac_safe=yes"
1747else 1840else
1765fi 1858fi
1766done 1859done
1767 1860
1768 1861
1769echo $ac_n "checking for working const""... $ac_c" 1>&6 1862echo $ac_n "checking for working const""... $ac_c" 1>&6
1770echo "configure:1771: checking for working const" >&5 1863echo "configure:1864: checking for working const" >&5
1771if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1864if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6 1865 echo $ac_n "(cached) $ac_c" 1>&6
1773else 1866else
1774 cat > conftest.$ac_ext <<EOF 1867 cat > conftest.$ac_ext <<EOF
1775#line 1776 "configure" 1868#line 1869 "configure"
1776#include "confdefs.h" 1869#include "confdefs.h"
1777 1870
1778int main() { 1871int main() {
1779 1872
1780/* Ultrix mips cc rejects this. */ 1873/* Ultrix mips cc rejects this. */
1819 const int foo = 10; 1912 const int foo = 10;
1820} 1913}
1821 1914
1822; return 0; } 1915; return 0; }
1823EOF 1916EOF
1824if { (eval echo configure:1825: \"$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
1825 rm -rf conftest* 1918 rm -rf conftest*
1826 ac_cv_c_const=yes 1919 ac_cv_c_const=yes
1827else 1920else
1828 echo "configure: failed program was:" >&5 1921 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5 1922 cat conftest.$ac_ext >&5
1840EOF 1933EOF
1841 1934
1842fi 1935fi
1843 1936
1844echo $ac_n "checking for size_t""... $ac_c" 1>&6 1937echo $ac_n "checking for size_t""... $ac_c" 1>&6
1845echo "configure:1846: checking for size_t" >&5 1938echo "configure:1939: checking for size_t" >&5
1846if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1939if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6 1940 echo $ac_n "(cached) $ac_c" 1>&6
1848else 1941else
1849 cat > conftest.$ac_ext <<EOF 1942 cat > conftest.$ac_ext <<EOF
1850#line 1851 "configure" 1943#line 1944 "configure"
1851#include "confdefs.h" 1944#include "confdefs.h"
1852#include <sys/types.h> 1945#include <sys/types.h>
1853#if STDC_HEADERS 1946#if STDC_HEADERS
1854#include <stdlib.h> 1947#include <stdlib.h>
1855#include <stddef.h> 1948#include <stddef.h>
1875fi 1968fi
1876 1969
1877 1970
1878 1971
1879echo $ac_n "checking size of char""... $ac_c" 1>&6 1972echo $ac_n "checking size of char""... $ac_c" 1>&6
1880echo "configure:1881: checking size of char" >&5 1973echo "configure:1974: checking size of char" >&5
1881if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1974if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6 1975 echo $ac_n "(cached) $ac_c" 1>&6
1883else 1976else
1884 if test "$cross_compiling" = yes; then 1977 if test "$cross_compiling" = yes; then
1885 ac_cv_sizeof_char=1 1978 ac_cv_sizeof_char=1
1886else 1979else
1887 cat > conftest.$ac_ext <<EOF 1980 cat > conftest.$ac_ext <<EOF
1888#line 1889 "configure" 1981#line 1982 "configure"
1889#include "confdefs.h" 1982#include "confdefs.h"
1890#include <stdio.h> 1983#include <stdio.h>
1891main() 1984main()
1892{ 1985{
1893 FILE *f=fopen("conftestval", "w"); 1986 FILE *f=fopen("conftestval", "w");
1894 if (!f) exit(1); 1987 if (!f) exit(1);
1895 fprintf(f, "%d\n", sizeof(char)); 1988 fprintf(f, "%d\n", sizeof(char));
1896 exit(0); 1989 exit(0);
1897} 1990}
1898EOF 1991EOF
1899if { (eval echo configure:1900: \"$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
1900then 1993then
1901 ac_cv_sizeof_char=`cat conftestval` 1994 ac_cv_sizeof_char=`cat conftestval`
1902else 1995else
1903 echo "configure: failed program was:" >&5 1996 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5 1997 cat conftest.$ac_ext >&5
1914#define SIZEOF_CHAR $ac_cv_sizeof_char 2007#define SIZEOF_CHAR $ac_cv_sizeof_char
1915EOF 2008EOF
1916 2009
1917 2010
1918echo $ac_n "checking size of short""... $ac_c" 1>&6 2011echo $ac_n "checking size of short""... $ac_c" 1>&6
1919echo "configure:1920: checking size of short" >&5 2012echo "configure:2013: checking size of short" >&5
1920if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 2013if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6 2014 echo $ac_n "(cached) $ac_c" 1>&6
1922else 2015else
1923 if test "$cross_compiling" = yes; then 2016 if test "$cross_compiling" = yes; then
1924 ac_cv_sizeof_short=1 2017 ac_cv_sizeof_short=1
1925else 2018else
1926 cat > conftest.$ac_ext <<EOF 2019 cat > conftest.$ac_ext <<EOF
1927#line 1928 "configure" 2020#line 2021 "configure"
1928#include "confdefs.h" 2021#include "confdefs.h"
1929#include <stdio.h> 2022#include <stdio.h>
1930main() 2023main()
1931{ 2024{
1932 FILE *f=fopen("conftestval", "w"); 2025 FILE *f=fopen("conftestval", "w");
1933 if (!f) exit(1); 2026 if (!f) exit(1);
1934 fprintf(f, "%d\n", sizeof(short)); 2027 fprintf(f, "%d\n", sizeof(short));
1935 exit(0); 2028 exit(0);
1936} 2029}
1937EOF 2030EOF
1938if { (eval echo configure:1939: \"$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
1939then 2032then
1940 ac_cv_sizeof_short=`cat conftestval` 2033 ac_cv_sizeof_short=`cat conftestval`
1941else 2034else
1942 echo "configure: failed program was:" >&5 2035 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5 2036 cat conftest.$ac_ext >&5
1953#define SIZEOF_SHORT $ac_cv_sizeof_short 2046#define SIZEOF_SHORT $ac_cv_sizeof_short
1954EOF 2047EOF
1955 2048
1956 2049
1957echo $ac_n "checking size of int""... $ac_c" 1>&6 2050echo $ac_n "checking size of int""... $ac_c" 1>&6
1958echo "configure:1959: checking size of int" >&5 2051echo "configure:2052: checking size of int" >&5
1959if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2052if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6 2053 echo $ac_n "(cached) $ac_c" 1>&6
1961else 2054else
1962 if test "$cross_compiling" = yes; then 2055 if test "$cross_compiling" = yes; then
1963 ac_cv_sizeof_int=2 2056 ac_cv_sizeof_int=2
1964else 2057else
1965 cat > conftest.$ac_ext <<EOF 2058 cat > conftest.$ac_ext <<EOF
1966#line 1967 "configure" 2059#line 2060 "configure"
1967#include "confdefs.h" 2060#include "confdefs.h"
1968#include <stdio.h> 2061#include <stdio.h>
1969main() 2062main()
1970{ 2063{
1971 FILE *f=fopen("conftestval", "w"); 2064 FILE *f=fopen("conftestval", "w");
1972 if (!f) exit(1); 2065 if (!f) exit(1);
1973 fprintf(f, "%d\n", sizeof(int)); 2066 fprintf(f, "%d\n", sizeof(int));
1974 exit(0); 2067 exit(0);
1975} 2068}
1976EOF 2069EOF
1977if { (eval echo configure:1978: \"$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
1978then 2071then
1979 ac_cv_sizeof_int=`cat conftestval` 2072 ac_cv_sizeof_int=`cat conftestval`
1980else 2073else
1981 echo "configure: failed program was:" >&5 2074 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5 2075 cat conftest.$ac_ext >&5
1992#define SIZEOF_INT $ac_cv_sizeof_int 2085#define SIZEOF_INT $ac_cv_sizeof_int
1993EOF 2086EOF
1994 2087
1995 2088
1996echo $ac_n "checking size of long""... $ac_c" 1>&6 2089echo $ac_n "checking size of long""... $ac_c" 1>&6
1997echo "configure:1998: checking size of long" >&5 2090echo "configure:2091: checking size of long" >&5
1998if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2091if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6 2092 echo $ac_n "(cached) $ac_c" 1>&6
2000else 2093else
2001 if test "$cross_compiling" = yes; then 2094 if test "$cross_compiling" = yes; then
2002 ac_cv_sizeof_long=4 2095 ac_cv_sizeof_long=4
2003else 2096else
2004 cat > conftest.$ac_ext <<EOF 2097 cat > conftest.$ac_ext <<EOF
2005#line 2006 "configure" 2098#line 2099 "configure"
2006#include "confdefs.h" 2099#include "confdefs.h"
2007#include <stdio.h> 2100#include <stdio.h>
2008main() 2101main()
2009{ 2102{
2010 FILE *f=fopen("conftestval", "w"); 2103 FILE *f=fopen("conftestval", "w");
2011 if (!f) exit(1); 2104 if (!f) exit(1);
2012 fprintf(f, "%d\n", sizeof(long)); 2105 fprintf(f, "%d\n", sizeof(long));
2013 exit(0); 2106 exit(0);
2014} 2107}
2015EOF 2108EOF
2016if { (eval echo configure:2017: \"$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
2017then 2110then
2018 ac_cv_sizeof_long=`cat conftestval` 2111 ac_cv_sizeof_long=`cat conftestval`
2019else 2112else
2020 echo "configure: failed program was:" >&5 2113 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5 2114 cat conftest.$ac_ext >&5
2032EOF 2125EOF
2033 2126
2034 2127
2035 2128
2036echo $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
2037echo "configure:2038: checking for an 8 bit integer type" >&5 2130echo "configure:2131: checking for an 8 bit integer type" >&5
2038if test $ac_cv_sizeof_char -ge 1 ; then 2131if test $ac_cv_sizeof_char -ge 1 ; then
2039 INT_8_BIT=char 2132 INT_8_BIT=char
2040 echo "$ac_t""char" 1>&6 2133 echo "$ac_t""char" 1>&6
2041elif test $ac_cv_sizeof_short -ge 1 ; then 2134elif test $ac_cv_sizeof_short -ge 1 ; then
2042 INT_8_BIT=short 2135 INT_8_BIT=short
2050else 2143else
2051 { 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; }
2052fi 2145fi
2053 2146
2054echo $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
2055echo "configure:2056: checking for a 16 bit integer type" >&5 2148echo "configure:2149: checking for a 16 bit integer type" >&5
2056if test $ac_cv_sizeof_char -ge 2 ; then 2149if test $ac_cv_sizeof_char -ge 2 ; then
2057 INT_16_BIT=char 2150 INT_16_BIT=char
2058 echo "$ac_t""char" 1>&6 2151 echo "$ac_t""char" 1>&6
2059elif test $ac_cv_sizeof_short -ge 2 ; then 2152elif test $ac_cv_sizeof_short -ge 2 ; then
2060 INT_16_BIT=short 2153 INT_16_BIT=short
2068else 2161else
2069 { 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; }
2070fi 2163fi
2071 2164
2072echo $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
2073echo "configure:2074: checking for a 32 bit integer type" >&5 2166echo "configure:2167: checking for a 32 bit integer type" >&5
2074if test $ac_cv_sizeof_char -ge 4 ; then 2167if test $ac_cv_sizeof_char -ge 4 ; then
2075 INT_32_BIT=char 2168 INT_32_BIT=char
2076 echo "$ac_t""char" 1>&6 2169 echo "$ac_t""char" 1>&6
2077elif test $ac_cv_sizeof_short -ge 4 ; then 2170elif test $ac_cv_sizeof_short -ge 4 ; then
2078 INT_32_BIT=short 2171 INT_32_BIT=short
2090 2183
2091 2184
2092 2185
2093 2186
2094echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2187echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2095echo "configure:2096: checking for vprintf" >&5 2188echo "configure:2189: checking for vprintf" >&5
2096if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2189if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6 2190 echo $ac_n "(cached) $ac_c" 1>&6
2098else 2191else
2099 cat > conftest.$ac_ext <<EOF 2192 cat > conftest.$ac_ext <<EOF
2100#line 2101 "configure" 2193#line 2194 "configure"
2101#include "confdefs.h" 2194#include "confdefs.h"
2102/* System header to define __stub macros and hopefully few prototypes, 2195/* System header to define __stub macros and hopefully few prototypes,
2103 which can conflict with char vprintf(); below. */ 2196 which can conflict with char vprintf(); below. */
2104#include <assert.h> 2197#include <assert.h>
2105/* Override any gcc2 internal prototype to avoid an error. */ 2198/* Override any gcc2 internal prototype to avoid an error. */
2118vprintf(); 2211vprintf();
2119#endif 2212#endif
2120 2213
2121; return 0; } 2214; return 0; }
2122EOF 2215EOF
2123if { (eval echo configure:2124: \"$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
2124 rm -rf conftest* 2217 rm -rf conftest*
2125 eval "ac_cv_func_vprintf=yes" 2218 eval "ac_cv_func_vprintf=yes"
2126else 2219else
2127 echo "configure: failed program was:" >&5 2220 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5 2221 cat conftest.$ac_ext >&5
2142 echo "$ac_t""no" 1>&6 2235 echo "$ac_t""no" 1>&6
2143fi 2236fi
2144 2237
2145if test "$ac_cv_func_vprintf" != yes; then 2238if test "$ac_cv_func_vprintf" != yes; then
2146echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2239echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2147echo "configure:2148: checking for _doprnt" >&5 2240echo "configure:2241: checking for _doprnt" >&5
2148if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2241if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6 2242 echo $ac_n "(cached) $ac_c" 1>&6
2150else 2243else
2151 cat > conftest.$ac_ext <<EOF 2244 cat > conftest.$ac_ext <<EOF
2152#line 2153 "configure" 2245#line 2246 "configure"
2153#include "confdefs.h" 2246#include "confdefs.h"
2154/* System header to define __stub macros and hopefully few prototypes, 2247/* System header to define __stub macros and hopefully few prototypes,
2155 which can conflict with char _doprnt(); below. */ 2248 which can conflict with char _doprnt(); below. */
2156#include <assert.h> 2249#include <assert.h>
2157/* Override any gcc2 internal prototype to avoid an error. */ 2250/* Override any gcc2 internal prototype to avoid an error. */
2170_doprnt(); 2263_doprnt();
2171#endif 2264#endif
2172 2265
2173; return 0; } 2266; return 0; }
2174EOF 2267EOF
2175if { (eval echo configure:2176: \"$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
2176 rm -rf conftest* 2269 rm -rf conftest*
2177 eval "ac_cv_func__doprnt=yes" 2270 eval "ac_cv_func__doprnt=yes"
2178else 2271else
2179 echo "configure: failed program was:" >&5 2272 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5 2273 cat conftest.$ac_ext >&5
2197fi 2290fi
2198 2291
2199for ac_func in strdup 2292for ac_func in strdup
2200do 2293do
2201echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2294echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2202echo "configure:2203: checking for $ac_func" >&5 2295echo "configure:2296: checking for $ac_func" >&5
2203if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2296if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6 2297 echo $ac_n "(cached) $ac_c" 1>&6
2205else 2298else
2206 cat > conftest.$ac_ext <<EOF 2299 cat > conftest.$ac_ext <<EOF
2207#line 2208 "configure" 2300#line 2301 "configure"
2208#include "confdefs.h" 2301#include "confdefs.h"
2209/* System header to define __stub macros and hopefully few prototypes, 2302/* System header to define __stub macros and hopefully few prototypes,
2210 which can conflict with char $ac_func(); below. */ 2303 which can conflict with char $ac_func(); below. */
2211#include <assert.h> 2304#include <assert.h>
2212/* Override any gcc2 internal prototype to avoid an error. */ 2305/* Override any gcc2 internal prototype to avoid an error. */
2225$ac_func(); 2318$ac_func();
2226#endif 2319#endif
2227 2320
2228; return 0; } 2321; return 0; }
2229EOF 2322EOF
2230if { (eval echo configure:2231: \"$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
2231 rm -rf conftest* 2324 rm -rf conftest*
2232 eval "ac_cv_func_$ac_func=yes" 2325 eval "ac_cv_func_$ac_func=yes"
2233else 2326else
2234 echo "configure: failed program was:" >&5 2327 echo "configure: failed program was:" >&5
2235 cat conftest.$ac_ext >&5 2328 cat conftest.$ac_ext >&5
2246#define $ac_tr_func 1 2339#define $ac_tr_func 1
2247EOF 2340EOF
2248 2341
2249else 2342else
2250 echo "$ac_t""no" 1>&6 2343 echo "$ac_t""no" 1>&6
2344LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2251fi 2345fi
2252done 2346done
2253 2347
2254for ac_func in strdup 2348
2349for ac_func in getopt_long
2255do 2350do
2256echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2351echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2257echo "configure:2258: checking for $ac_func" >&5 2352echo "configure:2353: checking for $ac_func" >&5
2258if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2353if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6 2354 echo $ac_n "(cached) $ac_c" 1>&6
2260else 2355else
2261 cat > conftest.$ac_ext <<EOF 2356 cat > conftest.$ac_ext <<EOF
2262#line 2263 "configure" 2357#line 2358 "configure"
2263#include "confdefs.h" 2358#include "confdefs.h"
2264/* System header to define __stub macros and hopefully few prototypes, 2359/* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char $ac_func(); below. */ 2360 which can conflict with char $ac_func(); below. */
2266#include <assert.h> 2361#include <assert.h>
2267/* Override any gcc2 internal prototype to avoid an error. */ 2362/* Override any gcc2 internal prototype to avoid an error. */
2280$ac_func(); 2375$ac_func();
2281#endif 2376#endif
2282 2377
2283; return 0; } 2378; return 0; }
2284EOF 2379EOF
2285if { (eval echo configure:2286: \"$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
2286 rm -rf conftest* 2381 rm -rf conftest*
2287 eval "ac_cv_func_$ac_func=yes" 2382 eval "ac_cv_func_$ac_func=yes"
2288else 2383else
2289 echo "configure: failed program was:" >&5 2384 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5 2385 cat conftest.$ac_ext >&5
2301#define $ac_tr_func 1 2396#define $ac_tr_func 1
2302EOF 2397EOF
2303 2398
2304else 2399else
2305 echo "$ac_t""no" 1>&6 2400 echo "$ac_t""no" 1>&6
2306LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2401LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2307fi 2402fi
2308done 2403done
2309 2404
2310 2405
2311 2406
2395else 2490else
2396 RTFDOCS_TRUE='#' 2491 RTFDOCS_TRUE='#'
2397 RTFDOCS_FALSE= 2492 RTFDOCS_FALSE=
2398fi 2493fi
2399 2494
2400# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
2401if test "${enable_compile_warnings+set}" = set; then
2402 enableval="$enable_compile_warnings"
2403 :
2404else
2405 enable_compile_warnings=minimum
2406fi
2407
2408
2409echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
2410echo "configure:2411: checking what warning flags to pass to the C compiler" >&5
2411warnCFLAGS=
2412if test "x$GCC" != xyes; then
2413 enable_compile_warnings=no
2414fi
2415if 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
2428fi
2429echo "$ac_t""$warnCFLAGS" 1>&6
2430
2431# Check whether --enable-iso-c or --disable-iso-c was given.
2432if test "${enable_iso_c+set}" = set; then
2433 enableval="$enable_iso_c"
2434 :
2435else
2436 enable_iso_c=no
2437fi
2438
2439
2440echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
2441echo "configure:2442: checking what language compliance flags to pass to the C compiler" >&5
2442complCFLAGS=
2443if 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
2455fi
2456echo "$ac_t""$complCFLAGS" 1>&6
2457if test "x$cflags_set" != "xyes"; then
2458 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
2459 cflags_set=yes
2460
2461fi
2462 2495
2463trap '' 1 2 15 2496trap '' 1 2 15
2464cat > confcache <<\EOF 2497cat > confcache <<\EOF
2465# This file is a shell script that caches the results of configure 2498# 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 2499# tests run on this system so they can be shared between configure
2614s%@build_cpu@%$build_cpu%g 2647s%@build_cpu@%$build_cpu%g
2615s%@build_vendor@%$build_vendor%g 2648s%@build_vendor@%$build_vendor%g
2616s%@build_os@%$build_os%g 2649s%@build_os@%$build_os%g
2617s%@RANLIB@%$RANLIB%g 2650s%@RANLIB@%$RANLIB%g
2618s%@CC@%$CC%g 2651s%@CC@%$CC%g
2619s%@LD@%$LD%g
2620s%@NM@%$NM%g
2621s%@LN_S@%$LN_S%g 2652s%@LN_S@%$LN_S%g
2622s%@LIBTOOL@%$LIBTOOL%g 2653s%@LIBTOOL@%$LIBTOOL%g
2654s%@cflags_set@%$cflags_set%g
2623s%@LIB_MAGICK@%$LIB_MAGICK%g 2655s%@LIB_MAGICK@%$LIB_MAGICK%g
2624s%@CPP@%$CPP%g 2656s%@CPP@%$CPP%g
2625s%@INT_8_BIT@%$INT_8_BIT%g 2657s%@INT_8_BIT@%$INT_8_BIT%g
2626s%@INT_16_BIT@%$INT_16_BIT%g 2658s%@INT_16_BIT@%$INT_16_BIT%g
2627s%@INT_32_BIT@%$INT_32_BIT%g 2659s%@INT_32_BIT@%$INT_32_BIT%g
2632s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g 2664s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g
2633s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g 2665s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g
2634s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g 2666s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g
2635s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g 2667s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g
2636s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g 2668s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g
2637s%@cflags_set@%$cflags_set%g
2638 2669
2639CEOF 2670CEOF
2640EOF 2671EOF
2641 2672
2642cat >> $CONFIG_STATUS <<\EOF 2673cat >> $CONFIG_STATUS <<\EOF

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

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