| … | |
… | |
| 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 |
| … | |
… | |
| 713 | fi |
713 | fi |
| 714 | |
714 | |
| 715 | |
715 | |
| 716 | PACKAGE=psiconv |
716 | PACKAGE=psiconv |
| 717 | |
717 | |
| 718 | VERSION=0.5.0a |
718 | VERSION=0.6.1 |
| 719 | |
719 | |
| 720 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
720 | if 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; } |
| 722 | fi |
722 | fi |
| 723 | cat >> confdefs.h <<EOF |
723 | cat >> confdefs.h <<EOF |
| … | |
… | |
| 1239 | echo "$ac_t""$LD" 1>&6 |
1239 | echo "$ac_t""$LD" 1>&6 |
| 1240 | else |
1240 | else |
| 1241 | echo "$ac_t""no" 1>&6 |
1241 | echo "$ac_t""no" 1>&6 |
| 1242 | fi |
1242 | fi |
| 1243 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
1243 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 1244 | |
|
|
| 1245 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1244 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
| 1246 | echo "configure:1247: checking if the linker ($LD) is GNU ld" >&5 |
1245 | echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5 |
| 1247 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1246 | if 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 |
| 1249 | else |
1248 | else |
| 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. |
| 1251 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
1250 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| … | |
… | |
| 1257 | |
1256 | |
| 1258 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
1257 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
| 1259 | |
1258 | |
| 1260 | |
1259 | |
| 1261 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
1260 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
| 1262 | echo "configure:1263: checking for BSD-compatible nm" >&5 |
1261 | echo "configure:1262: checking for BSD-compatible nm" >&5 |
| 1263 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1262 | if 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 |
| 1265 | else |
1264 | else |
| 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. |
| … | |
… | |
| 1292 | fi |
1291 | fi |
| 1293 | |
1292 | |
| 1294 | NM="$ac_cv_path_NM" |
1293 | NM="$ac_cv_path_NM" |
| 1295 | echo "$ac_t""$NM" 1>&6 |
1294 | echo "$ac_t""$NM" 1>&6 |
| 1296 | |
1295 | |
| 1297 | |
|
|
| 1298 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1296 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 1299 | echo "configure:1300: checking whether ln -s works" >&5 |
1297 | echo "configure:1298: checking whether ln -s works" >&5 |
| 1300 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1298 | if 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 |
| 1302 | else |
1300 | else |
| 1303 | rm -f conftestdata |
1301 | rm -f conftestdata |
| 1304 | if ln -s X conftestdata 2>/dev/null |
1302 | if ln -s X conftestdata 2>/dev/null |
| … | |
… | |
| 1314 | echo "$ac_t""yes" 1>&6 |
1312 | echo "$ac_t""yes" 1>&6 |
| 1315 | else |
1313 | else |
| 1316 | echo "$ac_t""no" 1>&6 |
1314 | echo "$ac_t""no" 1>&6 |
| 1317 | fi |
1315 | fi |
| 1318 | |
1316 | |
|
|
1317 | |
|
|
1318 | case "$target" in |
|
|
1319 | NONE) lt_target="$host" ;; |
|
|
1320 | *) lt_target="$target" ;; |
|
|
1321 | esac |
| 1319 | |
1322 | |
| 1320 | # Check for any special flags to pass to ltconfig. |
1323 | # Check for any special flags to pass to ltconfig. |
| 1321 | libtool_flags="--cache-file=$cache_file" |
1324 | libtool_flags="--cache-file=$cache_file" |
| 1322 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
1325 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
| 1323 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
1326 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
| … | |
… | |
| 1335 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
1338 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
| 1336 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
1339 | test 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. |
| 1340 | case "$host" in |
1343 | case "$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 |
| 1365 | echo "configure:1366: checking whether the C compiler needs -belf" >&5 |
1368 | echo "configure:1369: checking whether the C compiler needs -belf" >&5 |
| 1366 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1369 | if 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 |
| 1368 | else |
1371 | else |
| 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 | |
| 1373 | int main() { |
1376 | int main() { |
| 1374 | |
1377 | |
| 1375 | ; return 0; } |
1378 | ; return 0; } |
| 1376 | EOF |
1379 | EOF |
| 1377 | if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1380 | if { (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 |
| 1380 | else |
1383 | else |
| 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 |
| … | |
… | |
| 1450 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
1453 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
| 1451 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
1454 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
| 1452 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
1455 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
| 1453 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
1456 | DLLTOOL="$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 |
| 1459 | if test -r "$cache_file"; then |
1462 | if 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. |
| 1476 | exec 5>>./config.log |
1479 | exec 5>>./config.log |
| 1477 | |
1480 | |
| 1478 | |
1481 | |
|
|
1482 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
|
|
1483 | if test "${enable_compile_warnings+set}" = set; then |
|
|
1484 | enableval="$enable_compile_warnings" |
|
|
1485 | : |
|
|
1486 | else |
|
|
1487 | enable_compile_warnings=minimum |
|
|
1488 | fi |
|
|
1489 | |
|
|
1490 | |
|
|
1491 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
1492 | echo "configure:1493: checking what warning flags to pass to the C compiler" >&5 |
|
|
1493 | warnCFLAGS= |
|
|
1494 | if test "x$GCC" != xyes; then |
|
|
1495 | enable_compile_warnings=no |
|
|
1496 | fi |
|
|
1497 | if 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 |
|
|
1510 | fi |
|
|
1511 | echo "$ac_t""$warnCFLAGS" 1>&6 |
|
|
1512 | |
|
|
1513 | # Check whether --enable-iso-c or --disable-iso-c was given. |
|
|
1514 | if test "${enable_iso_c+set}" = set; then |
|
|
1515 | enableval="$enable_iso_c" |
|
|
1516 | : |
|
|
1517 | else |
|
|
1518 | enable_iso_c=no |
|
|
1519 | fi |
|
|
1520 | |
|
|
1521 | |
|
|
1522 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
1523 | echo "configure:1524: checking what language compliance flags to pass to the C compiler" >&5 |
|
|
1524 | complCFLAGS= |
|
|
1525 | if 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 |
|
|
1537 | fi |
|
|
1538 | echo "$ac_t""$complCFLAGS" 1>&6 |
|
|
1539 | if test "x$cflags_set" != "xyes"; then |
|
|
1540 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
|
|
1541 | cflags_set=yes |
|
|
1542 | |
|
|
1543 | fi |
|
|
1544 | |
|
|
1545 | |
| 1479 | # Check whether --with-imagemagick or --without-imagemagick was given. |
1546 | # Check whether --with-imagemagick or --without-imagemagick was given. |
| 1480 | if test "${with_imagemagick+set}" = set; then |
1547 | if test "${with_imagemagick+set}" = set; then |
| 1481 | withval="$with_imagemagick" |
1548 | withval="$with_imagemagick" |
| 1482 | IMAGEMAGICK=$withval |
1549 | IMAGEMAGICK=$withval |
| 1483 | else |
1550 | else |
| 1484 | IMAGEMAGICK='yes' |
1551 | IMAGEMAGICK='yes' |
| 1485 | fi |
1552 | fi |
| 1486 | |
1553 | |
| 1487 | if test x"$IMAGEMAGICK" != xno ; then |
1554 | if 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 |
| 1489 | echo "configure:1490: checking for MagickWarning in -lMagick" >&5 |
1556 | echo "configure:1557: checking for ConstituteImage in -lMagick" >&5 |
| 1490 | ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` |
1557 | ac_lib_var=`echo Magick'_'ConstituteImage | sed 'y%./+-%__p_%'` |
| 1491 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1558 | if 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 |
| 1493 | else |
1560 | else |
| 1494 | ac_save_LIBS="$LIBS" |
1561 | ac_save_LIBS="$LIBS" |
| 1495 | LIBS="-lMagick $LIBS" |
1562 | LIBS="-lMagick $LIBS" |
| 1496 | cat > conftest.$ac_ext <<EOF |
1563 | cat > 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. */ |
| 1502 | char MagickWarning(); |
1569 | char ConstituteImage(); |
| 1503 | |
1570 | |
| 1504 | int main() { |
1571 | int main() { |
| 1505 | MagickWarning() |
1572 | ConstituteImage() |
| 1506 | ; return 0; } |
1573 | ; return 0; } |
| 1507 | EOF |
1574 | EOF |
| 1508 | if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1575 | if { (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" |
| 1511 | else |
1578 | else |
| 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 |
| … | |
… | |
| 1540 | LIB_MAGICK= |
1607 | LIB_MAGICK= |
| 1541 | fi |
1608 | fi |
| 1542 | |
1609 | |
| 1543 | |
1610 | |
| 1544 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1611 | 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 |
1612 | echo "configure:1613: checking how to run the C preprocessor" >&5 |
| 1546 | # On Suns, sometimes $CPP names a directory. |
1613 | # On Suns, sometimes $CPP names a directory. |
| 1547 | if test -n "$CPP" && test -d "$CPP"; then |
1614 | if test -n "$CPP" && test -d "$CPP"; then |
| 1548 | CPP= |
1615 | CPP= |
| 1549 | fi |
1616 | fi |
| 1550 | if test -z "$CPP"; then |
1617 | if test -z "$CPP"; then |
| … | |
… | |
| 1555 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1622 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1556 | CPP="${CC-cc} -E" |
1623 | CPP="${CC-cc} -E" |
| 1557 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1624 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1558 | # not just through cpp. |
1625 | # not just through cpp. |
| 1559 | cat > conftest.$ac_ext <<EOF |
1626 | cat > conftest.$ac_ext <<EOF |
| 1560 | #line 1561 "configure" |
1627 | #line 1628 "configure" |
| 1561 | #include "confdefs.h" |
1628 | #include "confdefs.h" |
| 1562 | #include <assert.h> |
1629 | #include <assert.h> |
| 1563 | Syntax Error |
1630 | Syntax Error |
| 1564 | EOF |
1631 | EOF |
| 1565 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1632 | 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; } |
1633 | { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1567 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1634 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1568 | if test -z "$ac_err"; then |
1635 | if test -z "$ac_err"; then |
| 1569 | : |
1636 | : |
| 1570 | else |
1637 | else |
| 1571 | echo "$ac_err" >&5 |
1638 | echo "$ac_err" >&5 |
| 1572 | echo "configure: failed program was:" >&5 |
1639 | echo "configure: failed program was:" >&5 |
| 1573 | cat conftest.$ac_ext >&5 |
1640 | cat conftest.$ac_ext >&5 |
| 1574 | rm -rf conftest* |
1641 | rm -rf conftest* |
| 1575 | CPP="${CC-cc} -E -traditional-cpp" |
1642 | CPP="${CC-cc} -E -traditional-cpp" |
| 1576 | cat > conftest.$ac_ext <<EOF |
1643 | cat > conftest.$ac_ext <<EOF |
| 1577 | #line 1578 "configure" |
1644 | #line 1645 "configure" |
| 1578 | #include "confdefs.h" |
1645 | #include "confdefs.h" |
| 1579 | #include <assert.h> |
1646 | #include <assert.h> |
| 1580 | Syntax Error |
1647 | Syntax Error |
| 1581 | EOF |
1648 | EOF |
| 1582 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1649 | 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; } |
1650 | { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1584 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1651 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1585 | if test -z "$ac_err"; then |
1652 | if test -z "$ac_err"; then |
| 1586 | : |
1653 | : |
| 1587 | else |
1654 | else |
| 1588 | echo "$ac_err" >&5 |
1655 | echo "$ac_err" >&5 |
| 1589 | echo "configure: failed program was:" >&5 |
1656 | echo "configure: failed program was:" >&5 |
| 1590 | cat conftest.$ac_ext >&5 |
1657 | cat conftest.$ac_ext >&5 |
| 1591 | rm -rf conftest* |
1658 | rm -rf conftest* |
| 1592 | CPP="${CC-cc} -nologo -E" |
1659 | CPP="${CC-cc} -nologo -E" |
| 1593 | cat > conftest.$ac_ext <<EOF |
1660 | cat > conftest.$ac_ext <<EOF |
| 1594 | #line 1595 "configure" |
1661 | #line 1662 "configure" |
| 1595 | #include "confdefs.h" |
1662 | #include "confdefs.h" |
| 1596 | #include <assert.h> |
1663 | #include <assert.h> |
| 1597 | Syntax Error |
1664 | Syntax Error |
| 1598 | EOF |
1665 | EOF |
| 1599 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1600 | { (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1667 | { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1601 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1602 | if test -z "$ac_err"; then |
1669 | if test -z "$ac_err"; then |
| 1603 | : |
1670 | : |
| 1604 | else |
1671 | else |
| 1605 | echo "$ac_err" >&5 |
1672 | echo "$ac_err" >&5 |
| … | |
… | |
| 1620 | ac_cv_prog_CPP="$CPP" |
1687 | ac_cv_prog_CPP="$CPP" |
| 1621 | fi |
1688 | fi |
| 1622 | echo "$ac_t""$CPP" 1>&6 |
1689 | echo "$ac_t""$CPP" 1>&6 |
| 1623 | |
1690 | |
| 1624 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1691 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1625 | echo "configure:1626: checking for ANSI C header files" >&5 |
1692 | echo "configure:1693: checking for ANSI C header files" >&5 |
| 1626 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1693 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1627 | echo $ac_n "(cached) $ac_c" 1>&6 |
1694 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1628 | else |
1695 | else |
| 1629 | cat > conftest.$ac_ext <<EOF |
1696 | cat > conftest.$ac_ext <<EOF |
| 1630 | #line 1631 "configure" |
1697 | #line 1698 "configure" |
| 1631 | #include "confdefs.h" |
1698 | #include "confdefs.h" |
| 1632 | #include <stdlib.h> |
1699 | #include <stdlib.h> |
| 1633 | #include <stdarg.h> |
1700 | #include <stdarg.h> |
| 1634 | #include <string.h> |
1701 | #include <string.h> |
| 1635 | #include <float.h> |
1702 | #include <float.h> |
| 1636 | EOF |
1703 | EOF |
| 1637 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1704 | 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; } |
1705 | { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1639 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1706 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1640 | if test -z "$ac_err"; then |
1707 | if test -z "$ac_err"; then |
| 1641 | rm -rf conftest* |
1708 | rm -rf conftest* |
| 1642 | ac_cv_header_stdc=yes |
1709 | ac_cv_header_stdc=yes |
| 1643 | else |
1710 | else |
| … | |
… | |
| 1650 | rm -f conftest* |
1717 | rm -f conftest* |
| 1651 | |
1718 | |
| 1652 | if test $ac_cv_header_stdc = yes; then |
1719 | if test $ac_cv_header_stdc = yes; then |
| 1653 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1720 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1654 | cat > conftest.$ac_ext <<EOF |
1721 | cat > conftest.$ac_ext <<EOF |
| 1655 | #line 1656 "configure" |
1722 | #line 1723 "configure" |
| 1656 | #include "confdefs.h" |
1723 | #include "confdefs.h" |
| 1657 | #include <string.h> |
1724 | #include <string.h> |
| 1658 | EOF |
1725 | EOF |
| 1659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1660 | egrep "memchr" >/dev/null 2>&1; then |
1727 | egrep "memchr" >/dev/null 2>&1; then |
| … | |
… | |
| 1668 | fi |
1735 | fi |
| 1669 | |
1736 | |
| 1670 | if test $ac_cv_header_stdc = yes; then |
1737 | if test $ac_cv_header_stdc = yes; then |
| 1671 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1738 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1672 | cat > conftest.$ac_ext <<EOF |
1739 | cat > conftest.$ac_ext <<EOF |
| 1673 | #line 1674 "configure" |
1740 | #line 1741 "configure" |
| 1674 | #include "confdefs.h" |
1741 | #include "confdefs.h" |
| 1675 | #include <stdlib.h> |
1742 | #include <stdlib.h> |
| 1676 | EOF |
1743 | EOF |
| 1677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1678 | egrep "free" >/dev/null 2>&1; then |
1745 | egrep "free" >/dev/null 2>&1; then |
| … | |
… | |
| 1689 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1756 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1690 | if test "$cross_compiling" = yes; then |
1757 | if test "$cross_compiling" = yes; then |
| 1691 | : |
1758 | : |
| 1692 | else |
1759 | else |
| 1693 | cat > conftest.$ac_ext <<EOF |
1760 | cat > conftest.$ac_ext <<EOF |
| 1694 | #line 1695 "configure" |
1761 | #line 1762 "configure" |
| 1695 | #include "confdefs.h" |
1762 | #include "confdefs.h" |
| 1696 | #include <ctype.h> |
1763 | #include <ctype.h> |
| 1697 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1764 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1698 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1765 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 1699 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1766 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1700 | int main () { int i; for (i = 0; i < 256; i++) |
1767 | int main () { int i; for (i = 0; i < 256; i++) |
| 1701 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1768 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1702 | exit (0); } |
1769 | exit (0); } |
| 1703 | |
1770 | |
| 1704 | EOF |
1771 | 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 |
1772 | if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1706 | then |
1773 | then |
| 1707 | : |
1774 | : |
| 1708 | else |
1775 | else |
| 1709 | echo "configure: failed program was:" >&5 |
1776 | echo "configure: failed program was:" >&5 |
| 1710 | cat conftest.$ac_ext >&5 |
1777 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 1727 | |
1794 | |
| 1728 | for ac_hdr in unistd.h |
1795 | for ac_hdr in unistd.h |
| 1729 | do |
1796 | do |
| 1730 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1797 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1731 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1798 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1732 | echo "configure:1733: checking for $ac_hdr" >&5 |
1799 | echo "configure:1800: checking for $ac_hdr" >&5 |
| 1733 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1800 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1734 | echo $ac_n "(cached) $ac_c" 1>&6 |
1801 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1735 | else |
1802 | else |
| 1736 | cat > conftest.$ac_ext <<EOF |
1803 | cat > conftest.$ac_ext <<EOF |
| 1737 | #line 1738 "configure" |
1804 | #line 1805 "configure" |
| 1738 | #include "confdefs.h" |
1805 | #include "confdefs.h" |
| 1739 | #include <$ac_hdr> |
1806 | #include <$ac_hdr> |
| 1740 | EOF |
1807 | EOF |
| 1741 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1808 | 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; } |
1809 | { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1743 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1744 | if test -z "$ac_err"; then |
1811 | if test -z "$ac_err"; then |
| 1745 | rm -rf conftest* |
1812 | rm -rf conftest* |
| 1746 | eval "ac_cv_header_$ac_safe=yes" |
1813 | eval "ac_cv_header_$ac_safe=yes" |
| 1747 | else |
1814 | else |
| … | |
… | |
| 1765 | fi |
1832 | fi |
| 1766 | done |
1833 | done |
| 1767 | |
1834 | |
| 1768 | |
1835 | |
| 1769 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1836 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 1770 | echo "configure:1771: checking for working const" >&5 |
1837 | echo "configure:1838: checking for working const" >&5 |
| 1771 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1838 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 1772 | echo $ac_n "(cached) $ac_c" 1>&6 |
1839 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1773 | else |
1840 | else |
| 1774 | cat > conftest.$ac_ext <<EOF |
1841 | cat > conftest.$ac_ext <<EOF |
| 1775 | #line 1776 "configure" |
1842 | #line 1843 "configure" |
| 1776 | #include "confdefs.h" |
1843 | #include "confdefs.h" |
| 1777 | |
1844 | |
| 1778 | int main() { |
1845 | int main() { |
| 1779 | |
1846 | |
| 1780 | /* Ultrix mips cc rejects this. */ |
1847 | /* Ultrix mips cc rejects this. */ |
| … | |
… | |
| 1819 | const int foo = 10; |
1886 | const int foo = 10; |
| 1820 | } |
1887 | } |
| 1821 | |
1888 | |
| 1822 | ; return 0; } |
1889 | ; return 0; } |
| 1823 | EOF |
1890 | EOF |
| 1824 | if { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1891 | if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1825 | rm -rf conftest* |
1892 | rm -rf conftest* |
| 1826 | ac_cv_c_const=yes |
1893 | ac_cv_c_const=yes |
| 1827 | else |
1894 | else |
| 1828 | echo "configure: failed program was:" >&5 |
1895 | echo "configure: failed program was:" >&5 |
| 1829 | cat conftest.$ac_ext >&5 |
1896 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 1840 | EOF |
1907 | EOF |
| 1841 | |
1908 | |
| 1842 | fi |
1909 | fi |
| 1843 | |
1910 | |
| 1844 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1911 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 1845 | echo "configure:1846: checking for size_t" >&5 |
1912 | echo "configure:1913: checking for size_t" >&5 |
| 1846 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1913 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1847 | echo $ac_n "(cached) $ac_c" 1>&6 |
1914 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1848 | else |
1915 | else |
| 1849 | cat > conftest.$ac_ext <<EOF |
1916 | cat > conftest.$ac_ext <<EOF |
| 1850 | #line 1851 "configure" |
1917 | #line 1918 "configure" |
| 1851 | #include "confdefs.h" |
1918 | #include "confdefs.h" |
| 1852 | #include <sys/types.h> |
1919 | #include <sys/types.h> |
| 1853 | #if STDC_HEADERS |
1920 | #if STDC_HEADERS |
| 1854 | #include <stdlib.h> |
1921 | #include <stdlib.h> |
| 1855 | #include <stddef.h> |
1922 | #include <stddef.h> |
| … | |
… | |
| 1875 | fi |
1942 | fi |
| 1876 | |
1943 | |
| 1877 | |
1944 | |
| 1878 | |
1945 | |
| 1879 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1946 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
| 1880 | echo "configure:1881: checking size of char" >&5 |
1947 | echo "configure:1948: checking size of char" >&5 |
| 1881 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1948 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
| 1882 | echo $ac_n "(cached) $ac_c" 1>&6 |
1949 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1883 | else |
1950 | else |
| 1884 | if test "$cross_compiling" = yes; then |
1951 | if test "$cross_compiling" = yes; then |
| 1885 | ac_cv_sizeof_char=1 |
1952 | ac_cv_sizeof_char=1 |
| 1886 | else |
1953 | else |
| 1887 | cat > conftest.$ac_ext <<EOF |
1954 | cat > conftest.$ac_ext <<EOF |
| 1888 | #line 1889 "configure" |
1955 | #line 1956 "configure" |
| 1889 | #include "confdefs.h" |
1956 | #include "confdefs.h" |
| 1890 | #include <stdio.h> |
1957 | #include <stdio.h> |
| 1891 | main() |
1958 | main() |
| 1892 | { |
1959 | { |
| 1893 | FILE *f=fopen("conftestval", "w"); |
1960 | FILE *f=fopen("conftestval", "w"); |
| 1894 | if (!f) exit(1); |
1961 | if (!f) exit(1); |
| 1895 | fprintf(f, "%d\n", sizeof(char)); |
1962 | fprintf(f, "%d\n", sizeof(char)); |
| 1896 | exit(0); |
1963 | exit(0); |
| 1897 | } |
1964 | } |
| 1898 | EOF |
1965 | 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 |
1966 | if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1900 | then |
1967 | then |
| 1901 | ac_cv_sizeof_char=`cat conftestval` |
1968 | ac_cv_sizeof_char=`cat conftestval` |
| 1902 | else |
1969 | else |
| 1903 | echo "configure: failed program was:" >&5 |
1970 | echo "configure: failed program was:" >&5 |
| 1904 | cat conftest.$ac_ext >&5 |
1971 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 1914 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1981 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 1915 | EOF |
1982 | EOF |
| 1916 | |
1983 | |
| 1917 | |
1984 | |
| 1918 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1985 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
| 1919 | echo "configure:1920: checking size of short" >&5 |
1986 | echo "configure:1987: checking size of short" >&5 |
| 1920 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1987 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 1921 | echo $ac_n "(cached) $ac_c" 1>&6 |
1988 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1922 | else |
1989 | else |
| 1923 | if test "$cross_compiling" = yes; then |
1990 | if test "$cross_compiling" = yes; then |
| 1924 | ac_cv_sizeof_short=1 |
1991 | ac_cv_sizeof_short=1 |
| 1925 | else |
1992 | else |
| 1926 | cat > conftest.$ac_ext <<EOF |
1993 | cat > conftest.$ac_ext <<EOF |
| 1927 | #line 1928 "configure" |
1994 | #line 1995 "configure" |
| 1928 | #include "confdefs.h" |
1995 | #include "confdefs.h" |
| 1929 | #include <stdio.h> |
1996 | #include <stdio.h> |
| 1930 | main() |
1997 | main() |
| 1931 | { |
1998 | { |
| 1932 | FILE *f=fopen("conftestval", "w"); |
1999 | FILE *f=fopen("conftestval", "w"); |
| 1933 | if (!f) exit(1); |
2000 | if (!f) exit(1); |
| 1934 | fprintf(f, "%d\n", sizeof(short)); |
2001 | fprintf(f, "%d\n", sizeof(short)); |
| 1935 | exit(0); |
2002 | exit(0); |
| 1936 | } |
2003 | } |
| 1937 | EOF |
2004 | 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 |
2005 | if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1939 | then |
2006 | then |
| 1940 | ac_cv_sizeof_short=`cat conftestval` |
2007 | ac_cv_sizeof_short=`cat conftestval` |
| 1941 | else |
2008 | else |
| 1942 | echo "configure: failed program was:" >&5 |
2009 | echo "configure: failed program was:" >&5 |
| 1943 | cat conftest.$ac_ext >&5 |
2010 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 1953 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2020 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 1954 | EOF |
2021 | EOF |
| 1955 | |
2022 | |
| 1956 | |
2023 | |
| 1957 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2024 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 1958 | echo "configure:1959: checking size of int" >&5 |
2025 | echo "configure:2026: checking size of int" >&5 |
| 1959 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2026 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 1960 | echo $ac_n "(cached) $ac_c" 1>&6 |
2027 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1961 | else |
2028 | else |
| 1962 | if test "$cross_compiling" = yes; then |
2029 | if test "$cross_compiling" = yes; then |
| 1963 | ac_cv_sizeof_int=2 |
2030 | ac_cv_sizeof_int=2 |
| 1964 | else |
2031 | else |
| 1965 | cat > conftest.$ac_ext <<EOF |
2032 | cat > conftest.$ac_ext <<EOF |
| 1966 | #line 1967 "configure" |
2033 | #line 2034 "configure" |
| 1967 | #include "confdefs.h" |
2034 | #include "confdefs.h" |
| 1968 | #include <stdio.h> |
2035 | #include <stdio.h> |
| 1969 | main() |
2036 | main() |
| 1970 | { |
2037 | { |
| 1971 | FILE *f=fopen("conftestval", "w"); |
2038 | FILE *f=fopen("conftestval", "w"); |
| 1972 | if (!f) exit(1); |
2039 | if (!f) exit(1); |
| 1973 | fprintf(f, "%d\n", sizeof(int)); |
2040 | fprintf(f, "%d\n", sizeof(int)); |
| 1974 | exit(0); |
2041 | exit(0); |
| 1975 | } |
2042 | } |
| 1976 | EOF |
2043 | 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 |
2044 | if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1978 | then |
2045 | then |
| 1979 | ac_cv_sizeof_int=`cat conftestval` |
2046 | ac_cv_sizeof_int=`cat conftestval` |
| 1980 | else |
2047 | else |
| 1981 | echo "configure: failed program was:" >&5 |
2048 | echo "configure: failed program was:" >&5 |
| 1982 | cat conftest.$ac_ext >&5 |
2049 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 1992 | #define SIZEOF_INT $ac_cv_sizeof_int |
2059 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1993 | EOF |
2060 | EOF |
| 1994 | |
2061 | |
| 1995 | |
2062 | |
| 1996 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2063 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
| 1997 | echo "configure:1998: checking size of long" >&5 |
2064 | echo "configure:2065: checking size of long" >&5 |
| 1998 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2065 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 1999 | echo $ac_n "(cached) $ac_c" 1>&6 |
2066 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2000 | else |
2067 | else |
| 2001 | if test "$cross_compiling" = yes; then |
2068 | if test "$cross_compiling" = yes; then |
| 2002 | ac_cv_sizeof_long=4 |
2069 | ac_cv_sizeof_long=4 |
| 2003 | else |
2070 | else |
| 2004 | cat > conftest.$ac_ext <<EOF |
2071 | cat > conftest.$ac_ext <<EOF |
| 2005 | #line 2006 "configure" |
2072 | #line 2073 "configure" |
| 2006 | #include "confdefs.h" |
2073 | #include "confdefs.h" |
| 2007 | #include <stdio.h> |
2074 | #include <stdio.h> |
| 2008 | main() |
2075 | main() |
| 2009 | { |
2076 | { |
| 2010 | FILE *f=fopen("conftestval", "w"); |
2077 | FILE *f=fopen("conftestval", "w"); |
| 2011 | if (!f) exit(1); |
2078 | if (!f) exit(1); |
| 2012 | fprintf(f, "%d\n", sizeof(long)); |
2079 | fprintf(f, "%d\n", sizeof(long)); |
| 2013 | exit(0); |
2080 | exit(0); |
| 2014 | } |
2081 | } |
| 2015 | EOF |
2082 | 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 |
2083 | if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2017 | then |
2084 | then |
| 2018 | ac_cv_sizeof_long=`cat conftestval` |
2085 | ac_cv_sizeof_long=`cat conftestval` |
| 2019 | else |
2086 | else |
| 2020 | echo "configure: failed program was:" >&5 |
2087 | echo "configure: failed program was:" >&5 |
| 2021 | cat conftest.$ac_ext >&5 |
2088 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2032 | EOF |
2099 | EOF |
| 2033 | |
2100 | |
| 2034 | |
2101 | |
| 2035 | |
2102 | |
| 2036 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2103 | 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 |
2104 | echo "configure:2105: checking for an 8 bit integer type" >&5 |
| 2038 | if test $ac_cv_sizeof_char -ge 1 ; then |
2105 | if test $ac_cv_sizeof_char -ge 1 ; then |
| 2039 | INT_8_BIT=char |
2106 | INT_8_BIT=char |
| 2040 | echo "$ac_t""char" 1>&6 |
2107 | echo "$ac_t""char" 1>&6 |
| 2041 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2108 | elif test $ac_cv_sizeof_short -ge 1 ; then |
| 2042 | INT_8_BIT=short |
2109 | INT_8_BIT=short |
| … | |
… | |
| 2050 | else |
2117 | else |
| 2051 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2118 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
| 2052 | fi |
2119 | fi |
| 2053 | |
2120 | |
| 2054 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2121 | 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 |
2122 | echo "configure:2123: checking for a 16 bit integer type" >&5 |
| 2056 | if test $ac_cv_sizeof_char -ge 2 ; then |
2123 | if test $ac_cv_sizeof_char -ge 2 ; then |
| 2057 | INT_16_BIT=char |
2124 | INT_16_BIT=char |
| 2058 | echo "$ac_t""char" 1>&6 |
2125 | echo "$ac_t""char" 1>&6 |
| 2059 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2126 | elif test $ac_cv_sizeof_short -ge 2 ; then |
| 2060 | INT_16_BIT=short |
2127 | INT_16_BIT=short |
| … | |
… | |
| 2068 | else |
2135 | else |
| 2069 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2136 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
| 2070 | fi |
2137 | fi |
| 2071 | |
2138 | |
| 2072 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2139 | 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 |
2140 | echo "configure:2141: checking for a 32 bit integer type" >&5 |
| 2074 | if test $ac_cv_sizeof_char -ge 4 ; then |
2141 | if test $ac_cv_sizeof_char -ge 4 ; then |
| 2075 | INT_32_BIT=char |
2142 | INT_32_BIT=char |
| 2076 | echo "$ac_t""char" 1>&6 |
2143 | echo "$ac_t""char" 1>&6 |
| 2077 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2144 | elif test $ac_cv_sizeof_short -ge 4 ; then |
| 2078 | INT_32_BIT=short |
2145 | INT_32_BIT=short |
| … | |
… | |
| 2090 | |
2157 | |
| 2091 | |
2158 | |
| 2092 | |
2159 | |
| 2093 | |
2160 | |
| 2094 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2161 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
| 2095 | echo "configure:2096: checking for vprintf" >&5 |
2162 | echo "configure:2163: checking for vprintf" >&5 |
| 2096 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2163 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 2097 | echo $ac_n "(cached) $ac_c" 1>&6 |
2164 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2098 | else |
2165 | else |
| 2099 | cat > conftest.$ac_ext <<EOF |
2166 | cat > conftest.$ac_ext <<EOF |
| 2100 | #line 2101 "configure" |
2167 | #line 2168 "configure" |
| 2101 | #include "confdefs.h" |
2168 | #include "confdefs.h" |
| 2102 | /* System header to define __stub macros and hopefully few prototypes, |
2169 | /* System header to define __stub macros and hopefully few prototypes, |
| 2103 | which can conflict with char vprintf(); below. */ |
2170 | which can conflict with char vprintf(); below. */ |
| 2104 | #include <assert.h> |
2171 | #include <assert.h> |
| 2105 | /* Override any gcc2 internal prototype to avoid an error. */ |
2172 | /* Override any gcc2 internal prototype to avoid an error. */ |
| … | |
… | |
| 2118 | vprintf(); |
2185 | vprintf(); |
| 2119 | #endif |
2186 | #endif |
| 2120 | |
2187 | |
| 2121 | ; return 0; } |
2188 | ; return 0; } |
| 2122 | EOF |
2189 | EOF |
| 2123 | if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2190 | if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2124 | rm -rf conftest* |
2191 | rm -rf conftest* |
| 2125 | eval "ac_cv_func_vprintf=yes" |
2192 | eval "ac_cv_func_vprintf=yes" |
| 2126 | else |
2193 | else |
| 2127 | echo "configure: failed program was:" >&5 |
2194 | echo "configure: failed program was:" >&5 |
| 2128 | cat conftest.$ac_ext >&5 |
2195 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2142 | echo "$ac_t""no" 1>&6 |
2209 | echo "$ac_t""no" 1>&6 |
| 2143 | fi |
2210 | fi |
| 2144 | |
2211 | |
| 2145 | if test "$ac_cv_func_vprintf" != yes; then |
2212 | if test "$ac_cv_func_vprintf" != yes; then |
| 2146 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2213 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
| 2147 | echo "configure:2148: checking for _doprnt" >&5 |
2214 | echo "configure:2215: checking for _doprnt" >&5 |
| 2148 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2215 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 2149 | echo $ac_n "(cached) $ac_c" 1>&6 |
2216 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2150 | else |
2217 | else |
| 2151 | cat > conftest.$ac_ext <<EOF |
2218 | cat > conftest.$ac_ext <<EOF |
| 2152 | #line 2153 "configure" |
2219 | #line 2220 "configure" |
| 2153 | #include "confdefs.h" |
2220 | #include "confdefs.h" |
| 2154 | /* System header to define __stub macros and hopefully few prototypes, |
2221 | /* System header to define __stub macros and hopefully few prototypes, |
| 2155 | which can conflict with char _doprnt(); below. */ |
2222 | which can conflict with char _doprnt(); below. */ |
| 2156 | #include <assert.h> |
2223 | #include <assert.h> |
| 2157 | /* Override any gcc2 internal prototype to avoid an error. */ |
2224 | /* Override any gcc2 internal prototype to avoid an error. */ |
| … | |
… | |
| 2170 | _doprnt(); |
2237 | _doprnt(); |
| 2171 | #endif |
2238 | #endif |
| 2172 | |
2239 | |
| 2173 | ; return 0; } |
2240 | ; return 0; } |
| 2174 | EOF |
2241 | EOF |
| 2175 | if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2242 | if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2176 | rm -rf conftest* |
2243 | rm -rf conftest* |
| 2177 | eval "ac_cv_func__doprnt=yes" |
2244 | eval "ac_cv_func__doprnt=yes" |
| 2178 | else |
2245 | else |
| 2179 | echo "configure: failed program was:" >&5 |
2246 | echo "configure: failed program was:" >&5 |
| 2180 | cat conftest.$ac_ext >&5 |
2247 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2197 | fi |
2264 | fi |
| 2198 | |
2265 | |
| 2199 | for ac_func in strdup |
2266 | for ac_func in strdup |
| 2200 | do |
2267 | do |
| 2201 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2268 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2202 | echo "configure:2203: checking for $ac_func" >&5 |
2269 | echo "configure:2270: checking for $ac_func" >&5 |
| 2203 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2270 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2204 | echo $ac_n "(cached) $ac_c" 1>&6 |
2271 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2205 | else |
2272 | else |
| 2206 | cat > conftest.$ac_ext <<EOF |
2273 | cat > conftest.$ac_ext <<EOF |
| 2207 | #line 2208 "configure" |
2274 | #line 2275 "configure" |
| 2208 | #include "confdefs.h" |
2275 | #include "confdefs.h" |
| 2209 | /* System header to define __stub macros and hopefully few prototypes, |
2276 | /* System header to define __stub macros and hopefully few prototypes, |
| 2210 | which can conflict with char $ac_func(); below. */ |
2277 | which can conflict with char $ac_func(); below. */ |
| 2211 | #include <assert.h> |
2278 | #include <assert.h> |
| 2212 | /* Override any gcc2 internal prototype to avoid an error. */ |
2279 | /* Override any gcc2 internal prototype to avoid an error. */ |
| … | |
… | |
| 2225 | $ac_func(); |
2292 | $ac_func(); |
| 2226 | #endif |
2293 | #endif |
| 2227 | |
2294 | |
| 2228 | ; return 0; } |
2295 | ; return 0; } |
| 2229 | EOF |
2296 | EOF |
| 2230 | if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2297 | if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2231 | rm -rf conftest* |
2298 | rm -rf conftest* |
| 2232 | eval "ac_cv_func_$ac_func=yes" |
2299 | eval "ac_cv_func_$ac_func=yes" |
| 2233 | else |
2300 | else |
| 2234 | echo "configure: failed program was:" >&5 |
2301 | echo "configure: failed program was:" >&5 |
| 2235 | cat conftest.$ac_ext >&5 |
2302 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2246 | #define $ac_tr_func 1 |
2313 | #define $ac_tr_func 1 |
| 2247 | EOF |
2314 | EOF |
| 2248 | |
2315 | |
| 2249 | else |
2316 | else |
| 2250 | echo "$ac_t""no" 1>&6 |
2317 | echo "$ac_t""no" 1>&6 |
|
|
2318 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
| 2251 | fi |
2319 | fi |
| 2252 | done |
2320 | done |
| 2253 | |
2321 | |
| 2254 | for ac_func in strdup |
2322 | |
|
|
2323 | for ac_func in getopt_long |
| 2255 | do |
2324 | do |
| 2256 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2325 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2257 | echo "configure:2258: checking for $ac_func" >&5 |
2326 | echo "configure:2327: checking for $ac_func" >&5 |
| 2258 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2327 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2259 | echo $ac_n "(cached) $ac_c" 1>&6 |
2328 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2260 | else |
2329 | else |
| 2261 | cat > conftest.$ac_ext <<EOF |
2330 | cat > conftest.$ac_ext <<EOF |
| 2262 | #line 2263 "configure" |
2331 | #line 2332 "configure" |
| 2263 | #include "confdefs.h" |
2332 | #include "confdefs.h" |
| 2264 | /* System header to define __stub macros and hopefully few prototypes, |
2333 | /* System header to define __stub macros and hopefully few prototypes, |
| 2265 | which can conflict with char $ac_func(); below. */ |
2334 | which can conflict with char $ac_func(); below. */ |
| 2266 | #include <assert.h> |
2335 | #include <assert.h> |
| 2267 | /* Override any gcc2 internal prototype to avoid an error. */ |
2336 | /* Override any gcc2 internal prototype to avoid an error. */ |
| … | |
… | |
| 2280 | $ac_func(); |
2349 | $ac_func(); |
| 2281 | #endif |
2350 | #endif |
| 2282 | |
2351 | |
| 2283 | ; return 0; } |
2352 | ; return 0; } |
| 2284 | EOF |
2353 | EOF |
| 2285 | if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2354 | if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2286 | rm -rf conftest* |
2355 | rm -rf conftest* |
| 2287 | eval "ac_cv_func_$ac_func=yes" |
2356 | eval "ac_cv_func_$ac_func=yes" |
| 2288 | else |
2357 | else |
| 2289 | echo "configure: failed program was:" >&5 |
2358 | echo "configure: failed program was:" >&5 |
| 2290 | cat conftest.$ac_ext >&5 |
2359 | cat conftest.$ac_ext >&5 |
| … | |
… | |
| 2301 | #define $ac_tr_func 1 |
2370 | #define $ac_tr_func 1 |
| 2302 | EOF |
2371 | EOF |
| 2303 | |
2372 | |
| 2304 | else |
2373 | else |
| 2305 | echo "$ac_t""no" 1>&6 |
2374 | echo "$ac_t""no" 1>&6 |
| 2306 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
2375 | LIBOBJS="$LIBOBJS getopt.o getopt1.o" |
| 2307 | fi |
2376 | fi |
| 2308 | done |
2377 | done |
| 2309 | |
2378 | |
| 2310 | |
2379 | |
| 2311 | |
2380 | |
| … | |
… | |
| 2395 | else |
2464 | else |
| 2396 | RTFDOCS_TRUE='#' |
2465 | RTFDOCS_TRUE='#' |
| 2397 | RTFDOCS_FALSE= |
2466 | RTFDOCS_FALSE= |
| 2398 | fi |
2467 | fi |
| 2399 | |
2468 | |
| 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 | |
2469 | |
| 2463 | trap '' 1 2 15 |
2470 | trap '' 1 2 15 |
| 2464 | cat > confcache <<\EOF |
2471 | cat > confcache <<\EOF |
| 2465 | # This file is a shell script that caches the results of configure |
2472 | # 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 |
2473 | # tests run on this system so they can be shared between configure |
| … | |
… | |
| 2614 | s%@build_cpu@%$build_cpu%g |
2621 | s%@build_cpu@%$build_cpu%g |
| 2615 | s%@build_vendor@%$build_vendor%g |
2622 | s%@build_vendor@%$build_vendor%g |
| 2616 | s%@build_os@%$build_os%g |
2623 | s%@build_os@%$build_os%g |
| 2617 | s%@RANLIB@%$RANLIB%g |
2624 | s%@RANLIB@%$RANLIB%g |
| 2618 | s%@CC@%$CC%g |
2625 | s%@CC@%$CC%g |
| 2619 | s%@LD@%$LD%g |
|
|
| 2620 | s%@NM@%$NM%g |
|
|
| 2621 | s%@LN_S@%$LN_S%g |
2626 | s%@LN_S@%$LN_S%g |
| 2622 | s%@LIBTOOL@%$LIBTOOL%g |
2627 | s%@LIBTOOL@%$LIBTOOL%g |
|
|
2628 | s%@cflags_set@%$cflags_set%g |
| 2623 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
2629 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
| 2624 | s%@CPP@%$CPP%g |
2630 | s%@CPP@%$CPP%g |
| 2625 | s%@INT_8_BIT@%$INT_8_BIT%g |
2631 | s%@INT_8_BIT@%$INT_8_BIT%g |
| 2626 | s%@INT_16_BIT@%$INT_16_BIT%g |
2632 | s%@INT_16_BIT@%$INT_16_BIT%g |
| 2627 | s%@INT_32_BIT@%$INT_32_BIT%g |
2633 | s%@INT_32_BIT@%$INT_32_BIT%g |
| … | |
… | |
| 2632 | s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
2638 | s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
| 2633 | s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
2639 | s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
| 2634 | s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
2640 | s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
| 2635 | s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g |
2641 | s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g |
| 2636 | s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g |
2642 | s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g |
| 2637 | s%@cflags_set@%$cflags_set%g |
|
|
| 2638 | |
2643 | |
| 2639 | CEOF |
2644 | CEOF |
| 2640 | EOF |
2645 | EOF |
| 2641 | |
2646 | |
| 2642 | cat >> $CONFIG_STATUS <<\EOF |
2647 | cat >> $CONFIG_STATUS <<\EOF |