comparison configure @ 388:aabb7f5b1c81 r21-2-9

Import from CVS: tag r21-2-9
author cvs
date Mon, 13 Aug 2007 11:09:42 +0200
parents bbff43aa5eb7
children 1f50e6fe4f3f
comparison
equal deleted inserted replaced
387:f892a9d0bb8d 388:aabb7f5b1c81
5 #### Generated automatically using autoconf version 2.12 5 #### Generated automatically using autoconf version 2.12
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. 7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc. 8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing. 9 #### Copyright (C) 1995, 1996 Ben Wing.
10 #### Copyright (C) 1998, 1999 J. Kean Johnston.
10 11
11 ### Don't edit this script! 12 ### Don't edit this script!
12 ### This script was automatically generated by the `autoconf' program 13 ### This script was automatically generated by the `autoconf' program
13 ### from the file `./configure.in'. 14 ### from the file `./configure.in'.
14 ### To rebuild it, execute the command 15 ### To rebuild it, execute the command
226 mandir='${prefix}/man/man1' 227 mandir='${prefix}/man/man1'
227 infodir='${datadir}/${PROGNAME}-${version}/info' 228 infodir='${datadir}/${PROGNAME}-${version}/info'
228 infopath='' 229 infopath=''
229 install_pp='' 230 install_pp=''
230 lispdir='${datadir}/${PROGNAME}-${version}/lisp' 231 lispdir='${datadir}/${PROGNAME}-${version}/lisp'
232 moduledir='${datadir}/${PROGNAME}-${version}/${configuration}/modules'
233 sitelispdir='${datadir}/xemacs/site-lisp'
234 sitemoduledir='${datadir}/xemacs/site-modules'
231 pkgdir='${datadir}/${PROGNAME}-${version}/lisp' 235 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
232 package_path='' 236 package_path=''
233 etcdir='${datadir}/${PROGNAME}-${version}/etc' 237 etcdir='${datadir}/${PROGNAME}-${version}/etc'
234 lockdir='${statedir}/${PROGNAME}/lock' 238 lockdir='${statedir}/${PROGNAME}/lock'
235 archlibdir='${libdir}/${PROGNAME}-${version}/${configuration}' 239 archlibdir='${datadir}/${PROGNAME}-${version}/${configuration}'
236 with_site_lisp='no' 240 with_site_lisp='no'
241 with_site_modules='yes'
237 with_menubars='' 242 with_menubars=''
238 with_scrollbars='' 243 with_scrollbars=''
239 with_dialogs='' 244 with_dialogs=''
240 with_file_coding='' 245 with_file_coding=''
241 puresize='' 246 puresize=''
298 esac 303 esac
299 304
300 case "$opt" in 305 case "$opt" in
301 306
302 with_site_lisp | \ 307 with_site_lisp | \
308 with_site_modules | \
303 with_x | \ 309 with_x | \
304 with_x11 | \ 310 with_x11 | \
305 with_msw | \ 311 with_msw | \
306 with_gcc | \ 312 with_gcc | \
307 dynamic | \ 313 dynamic | \
546 cat >> confdefs.h <<\EOF 552 cat >> confdefs.h <<\EOF
547 #define LISPDIR_USER_DEFINED 1 553 #define LISPDIR_USER_DEFINED 1
548 EOF 554 EOF
549 } 555 }
550 ;; 556 ;;
557 sitelispdir ) { test "$extra_verbose" = "yes" && cat << \EOF
558 Defining SITELISPDIR_USER_DEFINED
559 EOF
560 cat >> confdefs.h <<\EOF
561 #define SITELISPDIR_USER_DEFINED 1
562 EOF
563 }
564 ;;
565 moduledir ) { test "$extra_verbose" = "yes" && cat << \EOF
566 Defining MODULEDIR_USER_DEFINED
567 EOF
568 cat >> confdefs.h <<\EOF
569 #define MODULEDIR_USER_DEFINED 1
570 EOF
571 }
572 ;;
551 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF 573 etcdir ) { test "$extra_verbose" = "yes" && cat << \EOF
552 Defining ETCDIR_USER_DEFINED 574 Defining ETCDIR_USER_DEFINED
553 EOF 575 EOF
554 cat >> confdefs.h <<\EOF 576 cat >> confdefs.h <<\EOF
555 #define ETCDIR_USER_DEFINED 1 577 #define ETCDIR_USER_DEFINED 1
592 { test "$extra_verbose" = "yes" && cat << \EOF 614 { test "$extra_verbose" = "yes" && cat << \EOF
593 Defining LISPDIR_USER_DEFINED 615 Defining LISPDIR_USER_DEFINED
594 EOF 616 EOF
595 cat >> confdefs.h <<\EOF 617 cat >> confdefs.h <<\EOF
596 #define LISPDIR_USER_DEFINED 1 618 #define LISPDIR_USER_DEFINED 1
619 EOF
620 }
621
622 { test "$extra_verbose" = "yes" && cat << \EOF
623 Defining MODULEDIR_USER_DEFINED
624 EOF
625 cat >> confdefs.h <<\EOF
626 #define MODULEDIR_USER_DEFINED 1
597 EOF 627 EOF
598 } 628 }
599 629
600 { test "$extra_verbose" = "yes" && cat << \EOF 630 { test "$extra_verbose" = "yes" && cat << \EOF
601 Defining ETCDIR_USER_DEFINED 631 Defining ETCDIR_USER_DEFINED
749 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 779 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
750 fi 780 fi
751 fi 781 fi
752 782
753 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 783 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
754 echo "configure:755: checking whether ln -s works" >&5 784 echo "configure:785: checking whether ln -s works" >&5
755 785
756 rm -f conftestdata 786 rm -f conftestdata
757 if ln -s X conftestdata 2>/dev/null 787 if ln -s X conftestdata 2>/dev/null
758 then 788 then
759 rm -f conftestdata 789 rm -f conftestdata
965 } 995 }
966 996
967 997
968 998
969 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 999 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
970 echo "configure:971: checking "host system type"" >&5 1000 echo "configure:1001: checking "host system type"" >&5
971 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1001 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
972 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1002 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
973 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1003 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
974 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1004 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
975 echo "$ac_t""$configuration" 1>&6 1005 echo "$ac_t""$configuration" 1>&6
1367 exit 1 1397 exit 1
1368 fi 1398 fi
1369 1399
1370 if test -z "$dynamic"; then 1400 if test -z "$dynamic"; then
1371 case "$opsys" in 1401 case "$opsys" in
1372 hpux* | sunos4* | sco5 ) dynamic=no ;; 1402 hpux* | sunos4* ) dynamic=no ;;
1373 *) dynamic=yes ;; 1403 *) dynamic=yes ;;
1374 esac 1404 esac
1375 fi 1405 fi
1376 if test "$dynamic" = "yes"; then 1406 if test "$dynamic" = "yes"; then
1377 case "$opsys" in 1407 case "$opsys" in
1454 xe_save_CFLAGS="$CFLAGS" 1484 xe_save_CFLAGS="$CFLAGS"
1455 1485
1456 # Extract the first word of "gcc", so it can be a program name with args. 1486 # Extract the first word of "gcc", so it can be a program name with args.
1457 set dummy gcc; ac_word=$2 1487 set dummy gcc; ac_word=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_word" >&5 1489 echo "configure:1490: checking for $ac_word" >&5
1460 1490
1461 if test -n "$CC"; then 1491 if test -n "$CC"; then
1462 ac_cv_prog_CC="$CC" # Let the user override the test. 1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1463 else 1493 else
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1480 1510
1481 if test -z "$CC"; then 1511 if test -z "$CC"; then
1482 # Extract the first word of "cc", so it can be a program name with args. 1512 # Extract the first word of "cc", so it can be a program name with args.
1483 set dummy cc; ac_word=$2 1513 set dummy cc; ac_word=$2
1484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_word" >&5 1515 echo "configure:1516: checking for $ac_word" >&5
1486 1516
1487 if test -n "$CC"; then 1517 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test. 1518 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 else 1519 else
1490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1525 1555
1526 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1556 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1527 fi 1557 fi
1528 1558
1529 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1559 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1560 echo "configure:1561: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1531 1561
1532 ac_ext=c 1562 ac_ext=c
1533 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1563 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1534 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1564 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1535 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1565 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1537 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1567 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1538 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1568 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1539 cross_compiling=no 1569 cross_compiling=no
1540 1570
1541 cat > conftest.$ac_ext <<EOF 1571 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure" 1572 #line 1573 "configure"
1543 #include "confdefs.h" 1573 #include "confdefs.h"
1544 main(){return(0);} 1574 main(){return(0);}
1545 EOF 1575 EOF
1546 if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1576 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1547 ac_cv_prog_cc_works=yes 1577 ac_cv_prog_cc_works=yes
1548 # If we can't run a trivial program, we are probably using a cross compiler. 1578 # If we can't run a trivial program, we are probably using a cross compiler.
1549 if (./conftest; exit) 2>/dev/null; then 1579 if (./conftest; exit) 2>/dev/null; then
1550 ac_cv_prog_cc_cross=no 1580 ac_cv_prog_cc_cross=no
1551 else 1581 else
1561 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1591 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1562 if test $ac_cv_prog_cc_works = no; then 1592 if test $ac_cv_prog_cc_works = no; then
1563 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1593 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1564 fi 1594 fi
1565 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1595 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1596 echo "configure:1597: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1567 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1597 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1568 cross_compiling=$ac_cv_prog_cc_cross 1598 cross_compiling=$ac_cv_prog_cc_cross
1569 1599
1570 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1600 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1571 echo "configure:1572: checking whether we are using GNU C" >&5 1601 echo "configure:1602: checking whether we are using GNU C" >&5
1572 1602
1573 cat > conftest.c <<EOF 1603 cat > conftest.c <<EOF
1574 #ifdef __GNUC__ 1604 #ifdef __GNUC__
1575 yes; 1605 yes;
1576 #endif 1606 #endif
1577 EOF 1607 EOF
1578 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1608 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1579 ac_cv_prog_gcc=yes 1609 ac_cv_prog_gcc=yes
1580 else 1610 else
1581 ac_cv_prog_gcc=no 1611 ac_cv_prog_gcc=no
1582 fi 1612 fi
1583 1613
1587 GCC=yes 1617 GCC=yes
1588 ac_test_CFLAGS="${CFLAGS+set}" 1618 ac_test_CFLAGS="${CFLAGS+set}"
1589 ac_save_CFLAGS="$CFLAGS" 1619 ac_save_CFLAGS="$CFLAGS"
1590 CFLAGS= 1620 CFLAGS=
1591 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1621 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1592 echo "configure:1593: checking whether ${CC-cc} accepts -g" >&5 1622 echo "configure:1623: checking whether ${CC-cc} accepts -g" >&5
1593 1623
1594 echo 'void f(){}' > conftest.c 1624 echo 'void f(){}' > conftest.c
1595 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1625 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1596 ac_cv_prog_cc_g=yes 1626 ac_cv_prog_cc_g=yes
1597 else 1627 else
1616 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1646 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1617 CC=${NON_GNU_CC-cc} 1647 CC=${NON_GNU_CC-cc}
1618 # Extract the first word of "gcc", so it can be a program name with args. 1648 # Extract the first word of "gcc", so it can be a program name with args.
1619 set dummy gcc; ac_word=$2 1649 set dummy gcc; ac_word=$2
1620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_word" >&5 1651 echo "configure:1652: checking for $ac_word" >&5
1622 1652
1623 if test -n "$CC"; then 1653 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test. 1654 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else 1655 else
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1642 1672
1643 if test -z "$CC"; then 1673 if test -z "$CC"; then
1644 # Extract the first word of "cc", so it can be a program name with args. 1674 # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2 1675 set dummy cc; ac_word=$2
1646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_word" >&5 1677 echo "configure:1678: checking for $ac_word" >&5
1648 1678
1649 if test -n "$CC"; then 1679 if test -n "$CC"; then
1650 ac_cv_prog_CC="$CC" # Let the user override the test. 1680 ac_cv_prog_CC="$CC" # Let the user override the test.
1651 else 1681 else
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1687 1717
1688 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1718 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1689 fi 1719 fi
1690 1720
1691 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1721 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1692 echo "configure:1693: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1722 echo "configure:1723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1693 1723
1694 ac_ext=c 1724 ac_ext=c
1695 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1725 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1696 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1726 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1697 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1727 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1699 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1729 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1700 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1730 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1701 cross_compiling=no 1731 cross_compiling=no
1702 1732
1703 cat > conftest.$ac_ext <<EOF 1733 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure" 1734 #line 1735 "configure"
1705 #include "confdefs.h" 1735 #include "confdefs.h"
1706 main(){return(0);} 1736 main(){return(0);}
1707 EOF 1737 EOF
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1709 ac_cv_prog_cc_works=yes 1739 ac_cv_prog_cc_works=yes
1710 # If we can't run a trivial program, we are probably using a cross compiler. 1740 # If we can't run a trivial program, we are probably using a cross compiler.
1711 if (./conftest; exit) 2>/dev/null; then 1741 if (./conftest; exit) 2>/dev/null; then
1712 ac_cv_prog_cc_cross=no 1742 ac_cv_prog_cc_cross=no
1713 else 1743 else
1723 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1753 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1724 if test $ac_cv_prog_cc_works = no; then 1754 if test $ac_cv_prog_cc_works = no; then
1725 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1755 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1726 fi 1756 fi
1727 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1728 echo "configure:1729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1758 echo "configure:1759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1729 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1759 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1730 cross_compiling=$ac_cv_prog_cc_cross 1760 cross_compiling=$ac_cv_prog_cc_cross
1731 1761
1732 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1762 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1733 echo "configure:1734: checking whether we are using GNU C" >&5 1763 echo "configure:1764: checking whether we are using GNU C" >&5
1734 1764
1735 cat > conftest.c <<EOF 1765 cat > conftest.c <<EOF
1736 #ifdef __GNUC__ 1766 #ifdef __GNUC__
1737 yes; 1767 yes;
1738 #endif 1768 #endif
1739 EOF 1769 EOF
1740 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1770 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1741 ac_cv_prog_gcc=yes 1771 ac_cv_prog_gcc=yes
1742 else 1772 else
1743 ac_cv_prog_gcc=no 1773 ac_cv_prog_gcc=no
1744 fi 1774 fi
1745 1775
1749 GCC=yes 1779 GCC=yes
1750 ac_test_CFLAGS="${CFLAGS+set}" 1780 ac_test_CFLAGS="${CFLAGS+set}"
1751 ac_save_CFLAGS="$CFLAGS" 1781 ac_save_CFLAGS="$CFLAGS"
1752 CFLAGS= 1782 CFLAGS=
1753 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1783 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1754 echo "configure:1755: checking whether ${CC-cc} accepts -g" >&5 1784 echo "configure:1785: checking whether ${CC-cc} accepts -g" >&5
1755 1785
1756 echo 'void f(){}' > conftest.c 1786 echo 'void f(){}' > conftest.c
1757 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1787 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1758 ac_cv_prog_cc_g=yes 1788 ac_cv_prog_cc_g=yes
1759 else 1789 else
1778 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1808 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1779 CC=gcc 1809 CC=gcc
1780 # Extract the first word of "gcc", so it can be a program name with args. 1810 # Extract the first word of "gcc", so it can be a program name with args.
1781 set dummy gcc; ac_word=$2 1811 set dummy gcc; ac_word=$2
1782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_word" >&5 1813 echo "configure:1814: checking for $ac_word" >&5
1784 1814
1785 if test -n "$CC"; then 1815 if test -n "$CC"; then
1786 ac_cv_prog_CC="$CC" # Let the user override the test. 1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1787 else 1817 else
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1804 1834
1805 if test -z "$CC"; then 1835 if test -z "$CC"; then
1806 # Extract the first word of "cc", so it can be a program name with args. 1836 # Extract the first word of "cc", so it can be a program name with args.
1807 set dummy cc; ac_word=$2 1837 set dummy cc; ac_word=$2
1808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_word" >&5 1839 echo "configure:1840: checking for $ac_word" >&5
1810 1840
1811 if test -n "$CC"; then 1841 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test. 1842 ac_cv_prog_CC="$CC" # Let the user override the test.
1813 else 1843 else
1814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1849 1879
1850 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1880 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1851 fi 1881 fi
1852 1882
1853 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1883 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1854 echo "configure:1855: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1884 echo "configure:1885: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1855 1885
1856 ac_ext=c 1886 ac_ext=c
1857 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1887 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1858 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1888 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1859 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1889 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1861 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1891 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1862 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1892 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1863 cross_compiling=no 1893 cross_compiling=no
1864 1894
1865 cat > conftest.$ac_ext <<EOF 1895 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure" 1896 #line 1897 "configure"
1867 #include "confdefs.h" 1897 #include "confdefs.h"
1868 main(){return(0);} 1898 main(){return(0);}
1869 EOF 1899 EOF
1870 if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1871 ac_cv_prog_cc_works=yes 1901 ac_cv_prog_cc_works=yes
1872 # If we can't run a trivial program, we are probably using a cross compiler. 1902 # If we can't run a trivial program, we are probably using a cross compiler.
1873 if (./conftest; exit) 2>/dev/null; then 1903 if (./conftest; exit) 2>/dev/null; then
1874 ac_cv_prog_cc_cross=no 1904 ac_cv_prog_cc_cross=no
1875 else 1905 else
1885 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1915 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1886 if test $ac_cv_prog_cc_works = no; then 1916 if test $ac_cv_prog_cc_works = no; then
1887 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1917 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1888 fi 1918 fi
1889 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1920 echo "configure:1921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1891 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1921 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1892 cross_compiling=$ac_cv_prog_cc_cross 1922 cross_compiling=$ac_cv_prog_cc_cross
1893 1923
1894 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1924 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether we are using GNU C" >&5 1925 echo "configure:1926: checking whether we are using GNU C" >&5
1896 1926
1897 cat > conftest.c <<EOF 1927 cat > conftest.c <<EOF
1898 #ifdef __GNUC__ 1928 #ifdef __GNUC__
1899 yes; 1929 yes;
1900 #endif 1930 #endif
1901 EOF 1931 EOF
1902 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1932 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1903 ac_cv_prog_gcc=yes 1933 ac_cv_prog_gcc=yes
1904 else 1934 else
1905 ac_cv_prog_gcc=no 1935 ac_cv_prog_gcc=no
1906 fi 1936 fi
1907 1937
1911 GCC=yes 1941 GCC=yes
1912 ac_test_CFLAGS="${CFLAGS+set}" 1942 ac_test_CFLAGS="${CFLAGS+set}"
1913 ac_save_CFLAGS="$CFLAGS" 1943 ac_save_CFLAGS="$CFLAGS"
1914 CFLAGS= 1944 CFLAGS=
1915 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1945 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1916 echo "configure:1917: checking whether ${CC-cc} accepts -g" >&5 1946 echo "configure:1947: checking whether ${CC-cc} accepts -g" >&5
1917 1947
1918 echo 'void f(){}' > conftest.c 1948 echo 'void f(){}' > conftest.c
1919 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1949 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1920 ac_cv_prog_cc_g=yes 1950 ac_cv_prog_cc_g=yes
1921 else 1951 else
1944 test -n "$CPP" -a -d "$CPP" && CPP= 1974 test -n "$CPP" -a -d "$CPP" && CPP=
1945 1975
1946 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1976 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1947 1977
1948 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1978 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1949 echo "configure:1950: checking how to run the C preprocessor" >&5 1979 echo "configure:1980: checking how to run the C preprocessor" >&5
1950 # On Suns, sometimes $CPP names a directory. 1980 # On Suns, sometimes $CPP names a directory.
1951 if test -n "$CPP" && test -d "$CPP"; then 1981 if test -n "$CPP" && test -d "$CPP"; then
1952 CPP= 1982 CPP=
1953 fi 1983 fi
1954 if test -z "$CPP"; then 1984 if test -z "$CPP"; then
1957 # substituted into the Makefile and "${CC-cc}" will confuse make. 1987 # substituted into the Makefile and "${CC-cc}" will confuse make.
1958 CPP="${CC-cc} -E" 1988 CPP="${CC-cc} -E"
1959 # On the NeXT, cc -E runs the code through the compiler's parser, 1989 # On the NeXT, cc -E runs the code through the compiler's parser,
1960 # not just through cpp. 1990 # not just through cpp.
1961 cat > conftest.$ac_ext <<EOF 1991 cat > conftest.$ac_ext <<EOF
1962 #line 1963 "configure" 1992 #line 1993 "configure"
1963 #include "confdefs.h" 1993 #include "confdefs.h"
1964 #include <assert.h> 1994 #include <assert.h>
1965 Syntax Error 1995 Syntax Error
1966 EOF 1996 EOF
1967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1968 { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1998 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1969 ac_err=`grep -v '^ *+' conftest.out` 1999 ac_err=`grep -v '^ *+' conftest.out`
1970 if test -z "$ac_err"; then 2000 if test -z "$ac_err"; then
1971 : 2001 :
1972 else 2002 else
1973 echo "$ac_err" >&5 2003 echo "$ac_err" >&5
1974 echo "configure: failed program was:" >&5 2004 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5 2005 cat conftest.$ac_ext >&5
1976 rm -rf conftest* 2006 rm -rf conftest*
1977 CPP="${CC-cc} -E -traditional-cpp" 2007 CPP="${CC-cc} -E -traditional-cpp"
1978 cat > conftest.$ac_ext <<EOF 2008 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure" 2009 #line 2010 "configure"
1980 #include "confdefs.h" 2010 #include "confdefs.h"
1981 #include <assert.h> 2011 #include <assert.h>
1982 Syntax Error 2012 Syntax Error
1983 EOF 2013 EOF
1984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1985 { (eval echo configure:1986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2015 { (eval echo configure:2016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1986 ac_err=`grep -v '^ *+' conftest.out` 2016 ac_err=`grep -v '^ *+' conftest.out`
1987 if test -z "$ac_err"; then 2017 if test -z "$ac_err"; then
1988 : 2018 :
1989 else 2019 else
1990 echo "$ac_err" >&5 2020 echo "$ac_err" >&5
2003 fi 2033 fi
2004 echo "$ac_t""$CPP" 1>&6 2034 echo "$ac_t""$CPP" 1>&6
2005 2035
2006 2036
2007 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2037 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2008 echo "configure:2009: checking for AIX" >&5 2038 echo "configure:2039: checking for AIX" >&5
2009 cat > conftest.$ac_ext <<EOF 2039 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure" 2040 #line 2041 "configure"
2011 #include "confdefs.h" 2041 #include "confdefs.h"
2012 #ifdef _AIX 2042 #ifdef _AIX
2013 yes 2043 yes
2014 #endif 2044 #endif
2015 2045
2032 rm -f conftest* 2062 rm -f conftest*
2033 2063
2034 2064
2035 2065
2036 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2066 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2037 echo "configure:2038: checking for GNU libc" >&5 2067 echo "configure:2068: checking for GNU libc" >&5
2038 cat > conftest.$ac_ext <<EOF 2068 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure" 2069 #line 2070 "configure"
2040 #include "confdefs.h" 2070 #include "confdefs.h"
2041 #include <features.h> 2071 #include <features.h>
2042 int main() { 2072 int main() {
2043 2073
2044 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2074 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2046 ******* ======= ******** &&&&&&&& 2076 ******* ======= ******** &&&&&&&&
2047 #endif 2077 #endif
2048 2078
2049 ; return 0; } 2079 ; return 0; }
2050 EOF 2080 EOF
2051 if { (eval echo configure:2052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2081 if { (eval echo configure:2082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2052 rm -rf conftest* 2082 rm -rf conftest*
2053 have_glibc=yes 2083 have_glibc=yes
2054 else 2084 else
2055 echo "configure: failed program was:" >&5 2085 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5 2086 cat conftest.$ac_ext >&5
2068 } 2098 }
2069 2099
2070 2100
2071 2101
2072 cat > conftest.$ac_ext <<EOF 2102 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure" 2103 #line 2104 "configure"
2074 #include "confdefs.h" 2104 #include "confdefs.h"
2075 int main () { 2105 int main () {
2076 #if defined __SUNPRO_C 2106 #if defined __SUNPRO_C
2077 return 11; 2107 return 11;
2078 #elif defined __DECC 2108 #elif defined __DECC
2080 #else 2110 #else
2081 return 0; 2111 return 0;
2082 #endif 2112 #endif
2083 } 2113 }
2084 EOF 2114 EOF
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2115 if { (eval echo configure:2116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2086 then 2116 then
2087 : 2117 :
2088 else 2118 else
2089 conftest_rc="$?" 2119 conftest_rc="$?"
2090 echo "configure: failed program was:" >&5 2120 echo "configure: failed program was:" >&5
2271 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi 2301 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2272 2302
2273 if test "$cflags_specified" = "no"; then 2303 if test "$cflags_specified" = "no"; then
2274 if test "$GCC" = "yes"; then 2304 if test "$GCC" = "yes"; then
2275 CFLAGS="-g -O3 -Wall -Wno-switch" 2305 CFLAGS="-g -O3 -Wall -Wno-switch"
2276 test "$opsys $machine" = "cygwin32 intel386" && \ 2306 elif test "$__SUNPRO_C" = "yes"; then
2277 CFLAGS="-g -O2 -Wall -Wno-switch"
2278 elif test "$__SUNPRO_C" = "yes"; then
2279 case "$opsys" in 2307 case "$opsys" in
2280 sol2 ) CFLAGS="-v -xO4" ;; 2308 sol2 ) CFLAGS="-v -xO4" ;;
2281 sunos4* ) CFLAGS="-xO2";; 2309 sunos4* ) CFLAGS="-xO2";;
2282 esac 2310 esac
2283 elif test "$__DECC" = "yes"; then 2311 elif test "$__DECC" = "yes"; then
2350 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2378 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2351 echo " xemacs will be linked with \"$unexec\"" 2379 echo " xemacs will be linked with \"$unexec\""
2352 fi 2380 fi
2353 2381
2354 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2382 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2355 echo "configure:2356: checking for dynodump" >&5 2383 echo "configure:2384: checking for dynodump" >&5
2356 if test "$unexec" != "unexsol2.o"; then 2384 if test "$unexec" != "unexsol2.o"; then
2357 echo "$ac_t""no" 1>&6 2385 echo "$ac_t""no" 1>&6
2358 else 2386 else
2359 echo "$ac_t""yes" 1>&6 2387 echo "$ac_t""yes" 1>&6
2360 { test "$extra_verbose" = "yes" && cat << \EOF 2388 { test "$extra_verbose" = "yes" && cat << \EOF
2388 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2416 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2389 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2417 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2390 done 2418 done
2391 2419
2392 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2420 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2393 echo "configure:2394: checking for terminateAndUnload in -lC" >&5 2421 echo "configure:2422: checking for terminateAndUnload in -lC" >&5
2394 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2422 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2395 2423
2396 xe_check_libs=" -lC " 2424 xe_check_libs=" -lC "
2397 cat > conftest.$ac_ext <<EOF 2425 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure" 2426 #line 2427 "configure"
2399 #include "confdefs.h" 2427 #include "confdefs.h"
2400 /* Override any gcc2 internal prototype to avoid an error. */ 2428 /* Override any gcc2 internal prototype to avoid an error. */
2401 /* We use char because int might match the return type of a gcc2 2429 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */ 2430 builtin and then its argument prototype would still apply. */
2403 char terminateAndUnload(); 2431 char terminateAndUnload();
2404 2432
2405 int main() { 2433 int main() {
2406 terminateAndUnload() 2434 terminateAndUnload()
2407 ; return 0; } 2435 ; return 0; }
2408 EOF 2436 EOF
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2437 if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2410 rm -rf conftest* 2438 rm -rf conftest*
2411 eval "ac_cv_lib_$ac_lib_var=yes" 2439 eval "ac_cv_lib_$ac_lib_var=yes"
2412 else 2440 else
2413 echo "configure: failed program was:" >&5 2441 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5 2442 cat conftest.$ac_ext >&5
2508 esac 2536 esac
2509 fi 2537 fi
2510 2538
2511 if test "$add_runtime_path" = "yes"; then 2539 if test "$add_runtime_path" = "yes"; then
2512 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2540 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2513 echo "configure:2514: checking "for runtime libraries flag"" >&5 2541 echo "configure:2542: checking "for runtime libraries flag"" >&5
2514 case "$opsys" in 2542 case "$opsys" in
2515 sol2 ) dash_r="-R" ;; 2543 sol2 ) dash_r="-R" ;;
2516 decosf* | linux* ) dash_r="-rpath " ;; 2544 decosf* | linux* ) dash_r="-rpath " ;;
2517 *) 2545 *)
2518 dash_r="" 2546 dash_r=""
2530 esac 2558 esac
2531 shift 2559 shift
2532 done 2560 done
2533 fi 2561 fi
2534 cat > conftest.$ac_ext <<EOF 2562 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure" 2563 #line 2564 "configure"
2536 #include "confdefs.h" 2564 #include "confdefs.h"
2537 2565
2538 int main() { 2566 int main() {
2539 2567
2540 ; return 0; } 2568 ; return 0; }
2541 EOF 2569 EOF
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2543 rm -rf conftest* 2571 rm -rf conftest*
2544 dash_r="$try_dash_r" 2572 dash_r="$try_dash_r"
2545 else 2573 else
2546 echo "configure: failed program was:" >&5 2574 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5 2575 cat conftest.$ac_ext >&5
2630 fi 2658 fi
2631 fi 2659 fi
2632 2660
2633 2661
2634 2662
2663
2635 GNU_MALLOC=yes 2664 GNU_MALLOC=yes
2636 if test "$with_dlmalloc" != "no"; then 2665 if test "$with_dlmalloc" != "no"; then
2637 doug_lea_malloc=yes 2666 doug_lea_malloc=yes
2638 else 2667 else
2639 doug_lea_malloc=no 2668 doug_lea_malloc=no
2640 fi 2669 fi
2641 after_morecore_hook_exists=yes 2670 after_morecore_hook_exists=yes
2642 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2671 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2643 echo "configure:2644: checking for malloc_get_state" >&5 2672 echo "configure:2673: checking for malloc_get_state" >&5
2644 2673
2645 cat > conftest.$ac_ext <<EOF 2674 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure" 2675 #line 2676 "configure"
2647 #include "confdefs.h" 2676 #include "confdefs.h"
2648 /* System header to define __stub macros and hopefully few prototypes, 2677 /* System header to define __stub macros and hopefully few prototypes,
2649 which can conflict with char malloc_get_state(); below. */ 2678 which can conflict with char malloc_get_state(); below. */
2650 #include <assert.h> 2679 #include <assert.h>
2651 /* Override any gcc2 internal prototype to avoid an error. */ 2680 /* Override any gcc2 internal prototype to avoid an error. */
2664 malloc_get_state(); 2693 malloc_get_state();
2665 #endif 2694 #endif
2666 2695
2667 ; return 0; } 2696 ; return 0; }
2668 EOF 2697 EOF
2669 if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2670 rm -rf conftest* 2699 rm -rf conftest*
2671 eval "ac_cv_func_malloc_get_state=yes" 2700 eval "ac_cv_func_malloc_get_state=yes"
2672 else 2701 else
2673 echo "configure: failed program was:" >&5 2702 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5 2703 cat conftest.$ac_ext >&5
2684 echo "$ac_t""no" 1>&6 2713 echo "$ac_t""no" 1>&6
2685 doug_lea_malloc=no 2714 doug_lea_malloc=no
2686 fi 2715 fi
2687 2716
2688 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2717 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2689 echo "configure:2690: checking for malloc_set_state" >&5 2718 echo "configure:2719: checking for malloc_set_state" >&5
2690 2719
2691 cat > conftest.$ac_ext <<EOF 2720 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure" 2721 #line 2722 "configure"
2693 #include "confdefs.h" 2722 #include "confdefs.h"
2694 /* System header to define __stub macros and hopefully few prototypes, 2723 /* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char malloc_set_state(); below. */ 2724 which can conflict with char malloc_set_state(); below. */
2696 #include <assert.h> 2725 #include <assert.h>
2697 /* Override any gcc2 internal prototype to avoid an error. */ 2726 /* Override any gcc2 internal prototype to avoid an error. */
2710 malloc_set_state(); 2739 malloc_set_state();
2711 #endif 2740 #endif
2712 2741
2713 ; return 0; } 2742 ; return 0; }
2714 EOF 2743 EOF
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2716 rm -rf conftest* 2745 rm -rf conftest*
2717 eval "ac_cv_func_malloc_set_state=yes" 2746 eval "ac_cv_func_malloc_set_state=yes"
2718 else 2747 else
2719 echo "configure: failed program was:" >&5 2748 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5 2749 cat conftest.$ac_ext >&5
2730 echo "$ac_t""no" 1>&6 2759 echo "$ac_t""no" 1>&6
2731 doug_lea_malloc=no 2760 doug_lea_malloc=no
2732 fi 2761 fi
2733 2762
2734 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2763 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2735 echo "configure:2736: checking whether __after_morecore_hook exists" >&5 2764 echo "configure:2765: checking whether __after_morecore_hook exists" >&5
2736 cat > conftest.$ac_ext <<EOF 2765 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure" 2766 #line 2767 "configure"
2738 #include "confdefs.h" 2767 #include "confdefs.h"
2739 extern void (* __after_morecore_hook)(); 2768 extern void (* __after_morecore_hook)();
2740 int main() { 2769 int main() {
2741 __after_morecore_hook = 0 2770 __after_morecore_hook = 0
2742 ; return 0; } 2771 ; return 0; }
2743 EOF 2772 EOF
2744 if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2745 rm -rf conftest* 2774 rm -rf conftest*
2746 echo "$ac_t""yes" 1>&6 2775 echo "$ac_t""yes" 1>&6
2747 else 2776 else
2748 echo "configure: failed program was:" >&5 2777 echo "configure: failed program was:" >&5
2749 cat conftest.$ac_ext >&5 2778 cat conftest.$ac_ext >&5
2798 2827
2799 2828
2800 # Extract the first word of "ranlib", so it can be a program name with args. 2829 # Extract the first word of "ranlib", so it can be a program name with args.
2801 set dummy ranlib; ac_word=$2 2830 set dummy ranlib; ac_word=$2
2802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2803 echo "configure:2804: checking for $ac_word" >&5 2832 echo "configure:2833: checking for $ac_word" >&5
2804 2833
2805 if test -n "$RANLIB"; then 2834 if test -n "$RANLIB"; then
2806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2835 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2807 else 2836 else
2808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2851 # AIX /bin/install 2880 # AIX /bin/install
2852 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2881 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2853 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2882 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2854 # ./install, which can be erroneously created by make from ./install.sh. 2883 # ./install, which can be erroneously created by make from ./install.sh.
2855 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2884 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2856 echo "configure:2857: checking for a BSD compatible install" >&5 2885 echo "configure:2886: checking for a BSD compatible install" >&5
2857 if test -z "$INSTALL"; then 2886 if test -z "$INSTALL"; then
2858 2887
2859 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2888 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2860 for ac_dir in $PATH; do 2889 for ac_dir in $PATH; do
2861 # Account for people who put trailing slashes in PATH elements. 2890 # Account for people who put trailing slashes in PATH elements.
2902 for ac_prog in 'bison -y' byacc 2931 for ac_prog in 'bison -y' byacc
2903 do 2932 do
2904 # Extract the first word of "$ac_prog", so it can be a program name with args. 2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2 2934 set dummy $ac_prog; ac_word=$2
2906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2907 echo "configure:2908: checking for $ac_word" >&5 2936 echo "configure:2937: checking for $ac_word" >&5
2908 2937
2909 if test -n "$YACC"; then 2938 if test -n "$YACC"; then
2910 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2939 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2911 else 2940 else
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2933 2962
2934 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2963 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2935 do 2964 do
2936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2938 echo "configure:2939: checking for $ac_hdr" >&5 2967 echo "configure:2968: checking for $ac_hdr" >&5
2939 2968
2940 cat > conftest.$ac_ext <<EOF 2969 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure" 2970 #line 2971 "configure"
2942 #include "confdefs.h" 2971 #include "confdefs.h"
2943 #include <$ac_hdr> 2972 #include <$ac_hdr>
2944 EOF 2973 EOF
2945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2946 { (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2975 { (eval echo configure:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2947 ac_err=`grep -v '^ *+' conftest.out` 2976 ac_err=`grep -v '^ *+' conftest.out`
2948 if test -z "$ac_err"; then 2977 if test -z "$ac_err"; then
2949 rm -rf conftest* 2978 rm -rf conftest*
2950 eval "ac_cv_header_$ac_safe=yes" 2979 eval "ac_cv_header_$ac_safe=yes"
2951 else 2980 else
2974 3003
2975 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 3004 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
2976 do 3005 do
2977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_hdr" >&5 3008 echo "configure:3009: checking for $ac_hdr" >&5
2980 3009
2981 cat > conftest.$ac_ext <<EOF 3010 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure" 3011 #line 3012 "configure"
2983 #include "confdefs.h" 3012 #include "confdefs.h"
2984 #include <$ac_hdr> 3013 #include <$ac_hdr>
2985 EOF 3014 EOF
2986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2987 { (eval echo configure:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3016 { (eval echo configure:3017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2988 ac_err=`grep -v '^ *+' conftest.out` 3017 ac_err=`grep -v '^ *+' conftest.out`
2989 if test -z "$ac_err"; then 3018 if test -z "$ac_err"; then
2990 rm -rf conftest* 3019 rm -rf conftest*
2991 eval "ac_cv_header_$ac_safe=yes" 3020 eval "ac_cv_header_$ac_safe=yes"
2992 else 3021 else
3015 3044
3016 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3045 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3017 do 3046 do
3018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3020 echo "configure:3021: checking for $ac_hdr" >&5 3049 echo "configure:3050: checking for $ac_hdr" >&5
3021 3050
3022 cat > conftest.$ac_ext <<EOF 3051 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure" 3052 #line 3053 "configure"
3024 #include "confdefs.h" 3053 #include "confdefs.h"
3025 #include <$ac_hdr> 3054 #include <$ac_hdr>
3026 EOF 3055 EOF
3027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3028 { (eval echo configure:3029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3057 { (eval echo configure:3058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3029 ac_err=`grep -v '^ *+' conftest.out` 3058 ac_err=`grep -v '^ *+' conftest.out`
3030 if test -z "$ac_err"; then 3059 if test -z "$ac_err"; then
3031 rm -rf conftest* 3060 rm -rf conftest*
3032 eval "ac_cv_header_$ac_safe=yes" 3061 eval "ac_cv_header_$ac_safe=yes"
3033 else 3062 else
3053 echo "$ac_t""no" 1>&6 3082 echo "$ac_t""no" 1>&6
3054 fi 3083 fi
3055 done 3084 done
3056 3085
3057 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3086 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3058 echo "configure:3059: checking for sys/wait.h that is POSIX.1 compatible" >&5 3087 echo "configure:3088: checking for sys/wait.h that is POSIX.1 compatible" >&5
3059 3088
3060 cat > conftest.$ac_ext <<EOF 3089 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure" 3090 #line 3091 "configure"
3062 #include "confdefs.h" 3091 #include "confdefs.h"
3063 #include <sys/types.h> 3092 #include <sys/types.h>
3064 #include <sys/wait.h> 3093 #include <sys/wait.h>
3065 #ifndef WEXITSTATUS 3094 #ifndef WEXITSTATUS
3066 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3095 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3072 int s; 3101 int s;
3073 wait (&s); 3102 wait (&s);
3074 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3103 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3075 ; return 0; } 3104 ; return 0; }
3076 EOF 3105 EOF
3077 if { (eval echo configure:3078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3106 if { (eval echo configure:3107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3078 rm -rf conftest* 3107 rm -rf conftest*
3079 ac_cv_header_sys_wait_h=yes 3108 ac_cv_header_sys_wait_h=yes
3080 else 3109 else
3081 echo "configure: failed program was:" >&5 3110 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5 3111 cat conftest.$ac_ext >&5
3096 } 3125 }
3097 3126
3098 fi 3127 fi
3099 3128
3100 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3129 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3101 echo "configure:3102: checking for ANSI C header files" >&5 3130 echo "configure:3131: checking for ANSI C header files" >&5
3102 3131
3103 cat > conftest.$ac_ext <<EOF 3132 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure" 3133 #line 3134 "configure"
3105 #include "confdefs.h" 3134 #include "confdefs.h"
3106 #include <stdlib.h> 3135 #include <stdlib.h>
3107 #include <stdarg.h> 3136 #include <stdarg.h>
3108 #include <string.h> 3137 #include <string.h>
3109 #include <float.h> 3138 #include <float.h>
3110 EOF 3139 EOF
3111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3112 { (eval echo configure:3113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3141 { (eval echo configure:3142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3113 ac_err=`grep -v '^ *+' conftest.out` 3142 ac_err=`grep -v '^ *+' conftest.out`
3114 if test -z "$ac_err"; then 3143 if test -z "$ac_err"; then
3115 rm -rf conftest* 3144 rm -rf conftest*
3116 ac_cv_header_stdc=yes 3145 ac_cv_header_stdc=yes
3117 else 3146 else
3124 rm -f conftest* 3153 rm -f conftest*
3125 3154
3126 if test $ac_cv_header_stdc = yes; then 3155 if test $ac_cv_header_stdc = yes; then
3127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3128 cat > conftest.$ac_ext <<EOF 3157 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure" 3158 #line 3159 "configure"
3130 #include "confdefs.h" 3159 #include "confdefs.h"
3131 #include <string.h> 3160 #include <string.h>
3132 EOF 3161 EOF
3133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3134 egrep "memchr" >/dev/null 2>&1; then 3163 egrep "memchr" >/dev/null 2>&1; then
3142 fi 3171 fi
3143 3172
3144 if test $ac_cv_header_stdc = yes; then 3173 if test $ac_cv_header_stdc = yes; then
3145 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3146 cat > conftest.$ac_ext <<EOF 3175 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure" 3176 #line 3177 "configure"
3148 #include "confdefs.h" 3177 #include "confdefs.h"
3149 #include <stdlib.h> 3178 #include <stdlib.h>
3150 EOF 3179 EOF
3151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3152 egrep "free" >/dev/null 2>&1; then 3181 egrep "free" >/dev/null 2>&1; then
3160 fi 3189 fi
3161 3190
3162 if test $ac_cv_header_stdc = yes; then 3191 if test $ac_cv_header_stdc = yes; then
3163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3164 cat > conftest.$ac_ext <<EOF 3193 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure" 3194 #line 3195 "configure"
3166 #include "confdefs.h" 3195 #include "confdefs.h"
3167 #include <ctype.h> 3196 #include <ctype.h>
3168 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3197 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3169 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3198 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3171 int main () { int i; for (i = 0; i < 256; i++) 3200 int main () { int i; for (i = 0; i < 256; i++)
3172 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3201 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3173 exit (0); } 3202 exit (0); }
3174 3203
3175 EOF 3204 EOF
3176 if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3177 then 3206 then
3178 : 3207 :
3179 else 3208 else
3180 conftest_rc="$?" 3209 conftest_rc="$?"
3181 echo "configure: failed program was:" >&5 3210 echo "configure: failed program was:" >&5
3197 } 3226 }
3198 3227
3199 fi 3228 fi
3200 3229
3201 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3230 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3202 echo "configure:3203: checking whether time.h and sys/time.h may both be included" >&5 3231 echo "configure:3232: checking whether time.h and sys/time.h may both be included" >&5
3203 3232
3204 cat > conftest.$ac_ext <<EOF 3233 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure" 3234 #line 3235 "configure"
3206 #include "confdefs.h" 3235 #include "confdefs.h"
3207 #include <sys/types.h> 3236 #include <sys/types.h>
3208 #include <sys/time.h> 3237 #include <sys/time.h>
3209 #include <time.h> 3238 #include <time.h>
3210 int main() { 3239 int main() {
3211 struct tm *tp; 3240 struct tm *tp;
3212 ; return 0; } 3241 ; return 0; }
3213 EOF 3242 EOF
3214 if { (eval echo configure:3215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3215 rm -rf conftest* 3244 rm -rf conftest*
3216 ac_cv_header_time=yes 3245 ac_cv_header_time=yes
3217 else 3246 else
3218 echo "configure: failed program was:" >&5 3247 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5 3248 cat conftest.$ac_ext >&5
3233 } 3262 }
3234 3263
3235 fi 3264 fi
3236 3265
3237 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3266 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3238 echo "configure:3239: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3267 echo "configure:3268: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3239 3268
3240 cat > conftest.$ac_ext <<EOF 3269 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure" 3270 #line 3271 "configure"
3242 #include "confdefs.h" 3271 #include "confdefs.h"
3243 #include <sys/types.h> 3272 #include <sys/types.h>
3244 #include <signal.h> 3273 #include <signal.h>
3245 /* NetBSD declares sys_siglist in unistd.h. */ 3274 /* NetBSD declares sys_siglist in unistd.h. */
3246 #ifdef HAVE_UNISTD_H 3275 #ifdef HAVE_UNISTD_H
3248 #endif 3277 #endif
3249 int main() { 3278 int main() {
3250 char *msg = *(sys_siglist + 1); 3279 char *msg = *(sys_siglist + 1);
3251 ; return 0; } 3280 ; return 0; }
3252 EOF 3281 EOF
3253 if { (eval echo configure:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 rm -rf conftest* 3283 rm -rf conftest*
3255 ac_cv_decl_sys_siglist=yes 3284 ac_cv_decl_sys_siglist=yes
3256 else 3285 else
3257 echo "configure: failed program was:" >&5 3286 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5 3287 cat conftest.$ac_ext >&5
3273 3302
3274 fi 3303 fi
3275 3304
3276 3305
3277 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3306 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3278 echo "configure:3279: checking for struct utimbuf" >&5 3307 echo "configure:3308: checking for struct utimbuf" >&5
3279 cat > conftest.$ac_ext <<EOF 3308 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure" 3309 #line 3310 "configure"
3281 #include "confdefs.h" 3310 #include "confdefs.h"
3282 #ifdef TIME_WITH_SYS_TIME 3311 #ifdef TIME_WITH_SYS_TIME
3283 #include <sys/time.h> 3312 #include <sys/time.h>
3284 #include <time.h> 3313 #include <time.h>
3285 #else 3314 #else
3294 #endif 3323 #endif
3295 int main() { 3324 int main() {
3296 static struct utimbuf x; x.actime = x.modtime; 3325 static struct utimbuf x; x.actime = x.modtime;
3297 ; return 0; } 3326 ; return 0; }
3298 EOF 3327 EOF
3299 if { (eval echo configure:3300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3328 if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3300 rm -rf conftest* 3329 rm -rf conftest*
3301 echo "$ac_t""yes" 1>&6 3330 echo "$ac_t""yes" 1>&6
3302 { test "$extra_verbose" = "yes" && cat << \EOF 3331 { test "$extra_verbose" = "yes" && cat << \EOF
3303 Defining HAVE_STRUCT_UTIMBUF 3332 Defining HAVE_STRUCT_UTIMBUF
3304 EOF 3333 EOF
3314 echo "$ac_t""no" 1>&6 3343 echo "$ac_t""no" 1>&6
3315 fi 3344 fi
3316 rm -f conftest* 3345 rm -f conftest*
3317 3346
3318 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3347 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3319 echo "configure:3320: checking return type of signal handlers" >&5 3348 echo "configure:3349: checking return type of signal handlers" >&5
3320 3349
3321 cat > conftest.$ac_ext <<EOF 3350 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure" 3351 #line 3352 "configure"
3323 #include "confdefs.h" 3352 #include "confdefs.h"
3324 #include <sys/types.h> 3353 #include <sys/types.h>
3325 #include <signal.h> 3354 #include <signal.h>
3326 #ifdef signal 3355 #ifdef signal
3327 #undef signal 3356 #undef signal
3334 3363
3335 int main() { 3364 int main() {
3336 int i; 3365 int i;
3337 ; return 0; } 3366 ; return 0; }
3338 EOF 3367 EOF
3339 if { (eval echo configure:3340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340 rm -rf conftest* 3369 rm -rf conftest*
3341 ac_cv_type_signal=void 3370 ac_cv_type_signal=void
3342 else 3371 else
3343 echo "configure: failed program was:" >&5 3372 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5 3373 cat conftest.$ac_ext >&5
3356 EOF 3385 EOF
3357 } 3386 }
3358 3387
3359 3388
3360 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3389 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3361 echo "configure:3362: checking for size_t" >&5 3390 echo "configure:3391: checking for size_t" >&5
3362 3391
3363 cat > conftest.$ac_ext <<EOF 3392 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure" 3393 #line 3394 "configure"
3365 #include "confdefs.h" 3394 #include "confdefs.h"
3366 #include <sys/types.h> 3395 #include <sys/types.h>
3367 #if STDC_HEADERS 3396 #if STDC_HEADERS
3368 #include <stdlib.h> 3397 #include <stdlib.h>
3369 #include <stddef.h> 3398 #include <stddef.h>
3390 } 3419 }
3391 3420
3392 fi 3421 fi
3393 3422
3394 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3423 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3395 echo "configure:3396: checking for pid_t" >&5 3424 echo "configure:3425: checking for pid_t" >&5
3396 3425
3397 cat > conftest.$ac_ext <<EOF 3426 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure" 3427 #line 3428 "configure"
3399 #include "confdefs.h" 3428 #include "confdefs.h"
3400 #include <sys/types.h> 3429 #include <sys/types.h>
3401 #if STDC_HEADERS 3430 #if STDC_HEADERS
3402 #include <stdlib.h> 3431 #include <stdlib.h>
3403 #include <stddef.h> 3432 #include <stddef.h>
3424 } 3453 }
3425 3454
3426 fi 3455 fi
3427 3456
3428 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3457 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3429 echo "configure:3430: checking for uid_t in sys/types.h" >&5 3458 echo "configure:3459: checking for uid_t in sys/types.h" >&5
3430 3459
3431 cat > conftest.$ac_ext <<EOF 3460 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure" 3461 #line 3462 "configure"
3433 #include "confdefs.h" 3462 #include "confdefs.h"
3434 #include <sys/types.h> 3463 #include <sys/types.h>
3435 EOF 3464 EOF
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 egrep "uid_t" >/dev/null 2>&1; then 3466 egrep "uid_t" >/dev/null 2>&1; then
3463 } 3492 }
3464 3493
3465 fi 3494 fi
3466 3495
3467 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3496 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3468 echo "configure:3469: checking for mode_t" >&5 3497 echo "configure:3498: checking for mode_t" >&5
3469 3498
3470 cat > conftest.$ac_ext <<EOF 3499 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure" 3500 #line 3501 "configure"
3472 #include "confdefs.h" 3501 #include "confdefs.h"
3473 #include <sys/types.h> 3502 #include <sys/types.h>
3474 #if STDC_HEADERS 3503 #if STDC_HEADERS
3475 #include <stdlib.h> 3504 #include <stdlib.h>
3476 #include <stddef.h> 3505 #include <stddef.h>
3497 } 3526 }
3498 3527
3499 fi 3528 fi
3500 3529
3501 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3530 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3502 echo "configure:3503: checking for off_t" >&5 3531 echo "configure:3532: checking for off_t" >&5
3503 3532
3504 cat > conftest.$ac_ext <<EOF 3533 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure" 3534 #line 3535 "configure"
3506 #include "confdefs.h" 3535 #include "confdefs.h"
3507 #include <sys/types.h> 3536 #include <sys/types.h>
3508 #if STDC_HEADERS 3537 #if STDC_HEADERS
3509 #include <stdlib.h> 3538 #include <stdlib.h>
3510 #include <stddef.h> 3539 #include <stddef.h>
3532 3561
3533 fi 3562 fi
3534 3563
3535 3564
3536 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3565 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3537 echo "configure:3538: checking for struct timeval" >&5 3566 echo "configure:3567: checking for struct timeval" >&5
3538 cat > conftest.$ac_ext <<EOF 3567 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure" 3568 #line 3569 "configure"
3540 #include "confdefs.h" 3569 #include "confdefs.h"
3541 #ifdef TIME_WITH_SYS_TIME 3570 #ifdef TIME_WITH_SYS_TIME
3542 #include <sys/time.h> 3571 #include <sys/time.h>
3543 #include <time.h> 3572 #include <time.h>
3544 #else 3573 #else
3550 #endif 3579 #endif
3551 int main() { 3580 int main() {
3552 static struct timeval x; x.tv_sec = x.tv_usec; 3581 static struct timeval x; x.tv_sec = x.tv_usec;
3553 ; return 0; } 3582 ; return 0; }
3554 EOF 3583 EOF
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3556 rm -rf conftest* 3585 rm -rf conftest*
3557 echo "$ac_t""yes" 1>&6 3586 echo "$ac_t""yes" 1>&6
3558 HAVE_TIMEVAL=yes 3587 HAVE_TIMEVAL=yes
3559 { test "$extra_verbose" = "yes" && cat << \EOF 3588 { test "$extra_verbose" = "yes" && cat << \EOF
3560 Defining HAVE_TIMEVAL 3589 Defining HAVE_TIMEVAL
3572 HAVE_TIMEVAL=no 3601 HAVE_TIMEVAL=no
3573 fi 3602 fi
3574 rm -f conftest* 3603 rm -f conftest*
3575 3604
3576 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3605 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3577 echo "configure:3578: checking whether struct tm is in sys/time.h or time.h" >&5 3606 echo "configure:3607: checking whether struct tm is in sys/time.h or time.h" >&5
3578 3607
3579 cat > conftest.$ac_ext <<EOF 3608 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure" 3609 #line 3610 "configure"
3581 #include "confdefs.h" 3610 #include "confdefs.h"
3582 #include <sys/types.h> 3611 #include <sys/types.h>
3583 #include <time.h> 3612 #include <time.h>
3584 int main() { 3613 int main() {
3585 struct tm *tp; tp->tm_sec; 3614 struct tm *tp; tp->tm_sec;
3586 ; return 0; } 3615 ; return 0; }
3587 EOF 3616 EOF
3588 if { (eval echo configure:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3589 rm -rf conftest* 3618 rm -rf conftest*
3590 ac_cv_struct_tm=time.h 3619 ac_cv_struct_tm=time.h
3591 else 3620 else
3592 echo "configure: failed program was:" >&5 3621 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5 3622 cat conftest.$ac_ext >&5
3607 } 3636 }
3608 3637
3609 fi 3638 fi
3610 3639
3611 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3640 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3612 echo "configure:3613: checking for tm_zone in struct tm" >&5 3641 echo "configure:3642: checking for tm_zone in struct tm" >&5
3613 3642
3614 cat > conftest.$ac_ext <<EOF 3643 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure" 3644 #line 3645 "configure"
3616 #include "confdefs.h" 3645 #include "confdefs.h"
3617 #include <sys/types.h> 3646 #include <sys/types.h>
3618 #include <$ac_cv_struct_tm> 3647 #include <$ac_cv_struct_tm>
3619 int main() { 3648 int main() {
3620 struct tm tm; tm.tm_zone; 3649 struct tm tm; tm.tm_zone;
3621 ; return 0; } 3650 ; return 0; }
3622 EOF 3651 EOF
3623 if { (eval echo configure:3624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3652 if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3624 rm -rf conftest* 3653 rm -rf conftest*
3625 ac_cv_struct_tm_zone=yes 3654 ac_cv_struct_tm_zone=yes
3626 else 3655 else
3627 echo "configure: failed program was:" >&5 3656 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5 3657 cat conftest.$ac_ext >&5
3641 EOF 3670 EOF
3642 } 3671 }
3643 3672
3644 else 3673 else
3645 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3674 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3646 echo "configure:3647: checking for tzname" >&5 3675 echo "configure:3676: checking for tzname" >&5
3647 3676
3648 cat > conftest.$ac_ext <<EOF 3677 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure" 3678 #line 3679 "configure"
3650 #include "confdefs.h" 3679 #include "confdefs.h"
3651 #include <time.h> 3680 #include <time.h>
3652 #ifndef tzname /* For SGI. */ 3681 #ifndef tzname /* For SGI. */
3653 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3682 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3654 #endif 3683 #endif
3655 int main() { 3684 int main() {
3656 atoi(*tzname); 3685 atoi(*tzname);
3657 ; return 0; } 3686 ; return 0; }
3658 EOF 3687 EOF
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3660 rm -rf conftest* 3689 rm -rf conftest*
3661 ac_cv_var_tzname=yes 3690 ac_cv_var_tzname=yes
3662 else 3691 else
3663 echo "configure: failed program was:" >&5 3692 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5 3693 cat conftest.$ac_ext >&5
3680 fi 3709 fi
3681 fi 3710 fi
3682 3711
3683 3712
3684 echo $ac_n "checking for working const""... $ac_c" 1>&6 3713 echo $ac_n "checking for working const""... $ac_c" 1>&6
3685 echo "configure:3686: checking for working const" >&5 3714 echo "configure:3715: checking for working const" >&5
3686 3715
3687 cat > conftest.$ac_ext <<EOF 3716 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure" 3717 #line 3718 "configure"
3689 #include "confdefs.h" 3718 #include "confdefs.h"
3690 3719
3691 int main() { 3720 int main() {
3692 3721
3693 /* Ultrix mips cc rejects this. */ 3722 /* Ultrix mips cc rejects this. */
3732 const int foo = 10; 3761 const int foo = 10;
3733 } 3762 }
3734 3763
3735 ; return 0; } 3764 ; return 0; }
3736 EOF 3765 EOF
3737 if { (eval echo configure:3738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3766 if { (eval echo configure:3767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3738 rm -rf conftest* 3767 rm -rf conftest*
3739 ac_cv_c_const=yes 3768 ac_cv_c_const=yes
3740 else 3769 else
3741 echo "configure: failed program was:" >&5 3770 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5 3771 cat conftest.$ac_ext >&5
3757 3786
3758 fi 3787 fi
3759 3788
3760 3789
3761 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3790 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3762 echo "configure:3763: checking whether ${MAKE-make} sets \${MAKE}" >&5 3791 echo "configure:3792: checking whether ${MAKE-make} sets \${MAKE}" >&5
3763 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3764 3793
3765 cat > conftestmake <<\EOF 3794 cat > conftestmake <<\EOF
3766 all: 3795 all:
3767 @echo 'ac_maketemp="${MAKE}"' 3796 @echo 'ac_maketemp="${MAKE}"'
3782 SET_MAKE="MAKE=${MAKE-make}" 3811 SET_MAKE="MAKE=${MAKE-make}"
3783 fi 3812 fi
3784 3813
3785 3814
3786 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3815 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3787 echo "configure:3788: checking whether byte ordering is bigendian" >&5 3816 echo "configure:3817: checking whether byte ordering is bigendian" >&5
3788 3817
3789 ac_cv_c_bigendian=unknown 3818 ac_cv_c_bigendian=unknown
3790 # See if sys/param.h defines the BYTE_ORDER macro. 3819 # See if sys/param.h defines the BYTE_ORDER macro.
3791 cat > conftest.$ac_ext <<EOF 3820 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure" 3821 #line 3822 "configure"
3793 #include "confdefs.h" 3822 #include "confdefs.h"
3794 #include <sys/types.h> 3823 #include <sys/types.h>
3795 #include <sys/param.h> 3824 #include <sys/param.h>
3796 int main() { 3825 int main() {
3797 3826
3798 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3827 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3799 bogus endian macros 3828 bogus endian macros
3800 #endif 3829 #endif
3801 ; return 0; } 3830 ; return 0; }
3802 EOF 3831 EOF
3803 if { (eval echo configure:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3832 if { (eval echo configure:3833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 rm -rf conftest* 3833 rm -rf conftest*
3805 # It does; now see whether it defined to BIG_ENDIAN or not. 3834 # It does; now see whether it defined to BIG_ENDIAN or not.
3806 cat > conftest.$ac_ext <<EOF 3835 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure" 3836 #line 3837 "configure"
3808 #include "confdefs.h" 3837 #include "confdefs.h"
3809 #include <sys/types.h> 3838 #include <sys/types.h>
3810 #include <sys/param.h> 3839 #include <sys/param.h>
3811 int main() { 3840 int main() {
3812 3841
3813 #if BYTE_ORDER != BIG_ENDIAN 3842 #if BYTE_ORDER != BIG_ENDIAN
3814 not big endian 3843 not big endian
3815 #endif 3844 #endif
3816 ; return 0; } 3845 ; return 0; }
3817 EOF 3846 EOF
3818 if { (eval echo configure:3819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3847 if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3819 rm -rf conftest* 3848 rm -rf conftest*
3820 ac_cv_c_bigendian=yes 3849 ac_cv_c_bigendian=yes
3821 else 3850 else
3822 echo "configure: failed program was:" >&5 3851 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5 3852 cat conftest.$ac_ext >&5
3830 cat conftest.$ac_ext >&5 3859 cat conftest.$ac_ext >&5
3831 fi 3860 fi
3832 rm -f conftest* 3861 rm -f conftest*
3833 if test $ac_cv_c_bigendian = unknown; then 3862 if test $ac_cv_c_bigendian = unknown; then
3834 cat > conftest.$ac_ext <<EOF 3863 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure" 3864 #line 3865 "configure"
3836 #include "confdefs.h" 3865 #include "confdefs.h"
3837 main () { 3866 main () {
3838 /* Are we little or big endian? From Harbison&Steele. */ 3867 /* Are we little or big endian? From Harbison&Steele. */
3839 union 3868 union
3840 { 3869 {
3843 } u; 3872 } u;
3844 u.l = 1; 3873 u.l = 1;
3845 exit (u.c[sizeof (long) - 1] == 1); 3874 exit (u.c[sizeof (long) - 1] == 1);
3846 } 3875 }
3847 EOF 3876 EOF
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3849 then 3878 then
3850 ac_cv_c_bigendian=no 3879 ac_cv_c_bigendian=no
3851 else 3880 else
3852 conftest_rc="$?" 3881 conftest_rc="$?"
3853 echo "configure: failed program was:" >&5 3882 echo "configure: failed program was:" >&5
3870 3899
3871 fi 3900 fi
3872 3901
3873 3902
3874 echo $ac_n "checking size of short""... $ac_c" 1>&6 3903 echo $ac_n "checking size of short""... $ac_c" 1>&6
3875 echo "configure:3876: checking size of short" >&5 3904 echo "configure:3905: checking size of short" >&5
3876 3905
3877 cat > conftest.$ac_ext <<EOF 3906 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure" 3907 #line 3908 "configure"
3879 #include "confdefs.h" 3908 #include "confdefs.h"
3880 #include <stdio.h> 3909 #include <stdio.h>
3881 main() 3910 main()
3882 { 3911 {
3883 FILE *f=fopen("conftestval", "w"); 3912 FILE *f=fopen("conftestval", "w");
3884 if (!f) exit(1); 3913 if (!f) exit(1);
3885 fprintf(f, "%d\n", sizeof(short)); 3914 fprintf(f, "%d\n", sizeof(short));
3886 exit(0); 3915 exit(0);
3887 } 3916 }
3888 EOF 3917 EOF
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3890 then 3919 then
3891 ac_cv_sizeof_short=`cat conftestval` 3920 ac_cv_sizeof_short=`cat conftestval`
3892 else 3921 else
3893 conftest_rc="$?" 3922 conftest_rc="$?"
3894 echo "configure: failed program was:" >&5 3923 echo "configure: failed program was:" >&5
3912 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3941 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3913 echo "*** PANIC *** Please examine config.log for compilation errors." 3942 echo "*** PANIC *** Please examine config.log for compilation errors."
3914 exit 1 3943 exit 1
3915 fi 3944 fi
3916 echo $ac_n "checking size of int""... $ac_c" 1>&6 3945 echo $ac_n "checking size of int""... $ac_c" 1>&6
3917 echo "configure:3918: checking size of int" >&5 3946 echo "configure:3947: checking size of int" >&5
3918 3947
3919 cat > conftest.$ac_ext <<EOF 3948 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure" 3949 #line 3950 "configure"
3921 #include "confdefs.h" 3950 #include "confdefs.h"
3922 #include <stdio.h> 3951 #include <stdio.h>
3923 main() 3952 main()
3924 { 3953 {
3925 FILE *f=fopen("conftestval", "w"); 3954 FILE *f=fopen("conftestval", "w");
3926 if (!f) exit(1); 3955 if (!f) exit(1);
3927 fprintf(f, "%d\n", sizeof(int)); 3956 fprintf(f, "%d\n", sizeof(int));
3928 exit(0); 3957 exit(0);
3929 } 3958 }
3930 EOF 3959 EOF
3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3932 then 3961 then
3933 ac_cv_sizeof_int=`cat conftestval` 3962 ac_cv_sizeof_int=`cat conftestval`
3934 else 3963 else
3935 conftest_rc="$?" 3964 conftest_rc="$?"
3936 echo "configure: failed program was:" >&5 3965 echo "configure: failed program was:" >&5
3948 EOF 3977 EOF
3949 } 3978 }
3950 3979
3951 3980
3952 echo $ac_n "checking size of long""... $ac_c" 1>&6 3981 echo $ac_n "checking size of long""... $ac_c" 1>&6
3953 echo "configure:3954: checking size of long" >&5 3982 echo "configure:3983: checking size of long" >&5
3954 3983
3955 cat > conftest.$ac_ext <<EOF 3984 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure" 3985 #line 3986 "configure"
3957 #include "confdefs.h" 3986 #include "confdefs.h"
3958 #include <stdio.h> 3987 #include <stdio.h>
3959 main() 3988 main()
3960 { 3989 {
3961 FILE *f=fopen("conftestval", "w"); 3990 FILE *f=fopen("conftestval", "w");
3962 if (!f) exit(1); 3991 if (!f) exit(1);
3963 fprintf(f, "%d\n", sizeof(long)); 3992 fprintf(f, "%d\n", sizeof(long));
3964 exit(0); 3993 exit(0);
3965 } 3994 }
3966 EOF 3995 EOF
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3968 then 3997 then
3969 ac_cv_sizeof_long=`cat conftestval` 3998 ac_cv_sizeof_long=`cat conftestval`
3970 else 3999 else
3971 conftest_rc="$?" 4000 conftest_rc="$?"
3972 echo "configure: failed program was:" >&5 4001 echo "configure: failed program was:" >&5
3984 EOF 4013 EOF
3985 } 4014 }
3986 4015
3987 4016
3988 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4017 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3989 echo "configure:3990: checking size of long long" >&5 4018 echo "configure:4019: checking size of long long" >&5
3990 4019
3991 cat > conftest.$ac_ext <<EOF 4020 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure" 4021 #line 4022 "configure"
3993 #include "confdefs.h" 4022 #include "confdefs.h"
3994 #include <stdio.h> 4023 #include <stdio.h>
3995 main() 4024 main()
3996 { 4025 {
3997 FILE *f=fopen("conftestval", "w"); 4026 FILE *f=fopen("conftestval", "w");
3998 if (!f) exit(1); 4027 if (!f) exit(1);
3999 fprintf(f, "%d\n", sizeof(long long)); 4028 fprintf(f, "%d\n", sizeof(long long));
4000 exit(0); 4029 exit(0);
4001 } 4030 }
4002 EOF 4031 EOF
4003 if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4004 then 4033 then
4005 ac_cv_sizeof_long_long=`cat conftestval` 4034 ac_cv_sizeof_long_long=`cat conftestval`
4006 else 4035 else
4007 conftest_rc="$?" 4036 conftest_rc="$?"
4008 echo "configure: failed program was:" >&5 4037 echo "configure: failed program was:" >&5
4020 EOF 4049 EOF
4021 } 4050 }
4022 4051
4023 4052
4024 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4053 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4025 echo "configure:4026: checking size of void *" >&5 4054 echo "configure:4055: checking size of void *" >&5
4026 4055
4027 cat > conftest.$ac_ext <<EOF 4056 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure" 4057 #line 4058 "configure"
4029 #include "confdefs.h" 4058 #include "confdefs.h"
4030 #include <stdio.h> 4059 #include <stdio.h>
4031 main() 4060 main()
4032 { 4061 {
4033 FILE *f=fopen("conftestval", "w"); 4062 FILE *f=fopen("conftestval", "w");
4034 if (!f) exit(1); 4063 if (!f) exit(1);
4035 fprintf(f, "%d\n", sizeof(void *)); 4064 fprintf(f, "%d\n", sizeof(void *));
4036 exit(0); 4065 exit(0);
4037 } 4066 }
4038 EOF 4067 EOF
4039 if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4040 then 4069 then
4041 ac_cv_sizeof_void_p=`cat conftestval` 4070 ac_cv_sizeof_void_p=`cat conftestval`
4042 else 4071 else
4043 conftest_rc="$?" 4072 conftest_rc="$?"
4044 echo "configure: failed program was:" >&5 4073 echo "configure: failed program was:" >&5
4057 } 4086 }
4058 4087
4059 4088
4060 4089
4061 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4090 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4062 echo "configure:4063: checking for long file names" >&5 4091 echo "configure:4092: checking for long file names" >&5
4063 4092
4064 ac_cv_sys_long_file_names=yes 4093 ac_cv_sys_long_file_names=yes
4065 # Test for long file names in all the places we know might matter: 4094 # Test for long file names in all the places we know might matter:
4066 # . the current directory, where building will happen 4095 # . the current directory, where building will happen
4067 # $prefix/lib where we will be installing things 4096 # $prefix/lib where we will be installing things
4104 fi 4133 fi
4105 4134
4106 4135
4107 4136
4108 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4137 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4109 echo "configure:4110: checking for sin in -lm" >&5 4138 echo "configure:4139: checking for sin in -lm" >&5
4110 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4139 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4111 4140
4112 xe_check_libs=" -lm " 4141 xe_check_libs=" -lm "
4113 cat > conftest.$ac_ext <<EOF 4142 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure" 4143 #line 4144 "configure"
4115 #include "confdefs.h" 4144 #include "confdefs.h"
4116 /* Override any gcc2 internal prototype to avoid an error. */ 4145 /* Override any gcc2 internal prototype to avoid an error. */
4117 /* We use char because int might match the return type of a gcc2 4146 /* We use char because int might match the return type of a gcc2
4118 builtin and then its argument prototype would still apply. */ 4147 builtin and then its argument prototype would still apply. */
4119 char sin(); 4148 char sin();
4120 4149
4121 int main() { 4150 int main() {
4122 sin() 4151 sin()
4123 ; return 0; } 4152 ; return 0; }
4124 EOF 4153 EOF
4125 if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4126 rm -rf conftest* 4155 rm -rf conftest*
4127 eval "ac_cv_lib_$ac_lib_var=yes" 4156 eval "ac_cv_lib_$ac_lib_var=yes"
4128 else 4157 else
4129 echo "configure: failed program was:" >&5 4158 echo "configure: failed program was:" >&5
4130 cat conftest.$ac_ext >&5 4159 cat conftest.$ac_ext >&5
4162 EOF 4191 EOF
4163 } 4192 }
4164 4193
4165 4194
4166 cat > conftest.$ac_ext <<EOF 4195 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure" 4196 #line 4197 "configure"
4168 #include "confdefs.h" 4197 #include "confdefs.h"
4169 #include <math.h> 4198 #include <math.h>
4170 int main() { 4199 int main() {
4171 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4200 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4172 ; return 0; } 4201 ; return 0; }
4173 EOF 4202 EOF
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4203 if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4175 rm -rf conftest* 4204 rm -rf conftest*
4176 { test "$extra_verbose" = "yes" && cat << \EOF 4205 { test "$extra_verbose" = "yes" && cat << \EOF
4177 Defining HAVE_INVERSE_HYPERBOLIC 4206 Defining HAVE_INVERSE_HYPERBOLIC
4178 EOF 4207 EOF
4179 cat >> confdefs.h <<\EOF 4208 cat >> confdefs.h <<\EOF
4186 cat conftest.$ac_ext >&5 4215 cat conftest.$ac_ext >&5
4187 fi 4216 fi
4188 rm -f conftest* 4217 rm -f conftest*
4189 4218
4190 echo "checking type of mail spool file locking" 1>&6 4219 echo "checking type of mail spool file locking" 1>&6
4191 echo "configure:4192: checking type of mail spool file locking" >&5 4220 echo "configure:4221: checking type of mail spool file locking" >&5
4192 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4221 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4193 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4222 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4194 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4223 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4195 Defining REAL_MAIL_USE_LOCKF 4224 Defining REAL_MAIL_USE_LOCKF
4196 EOF 4225 EOF
4210 else mail_locking="dot-locking" 4239 else mail_locking="dot-locking"
4211 fi 4240 fi
4212 4241
4213 4242
4214 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4243 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4215 echo "configure:4216: checking for kstat_open in -lkstat" >&5 4244 echo "configure:4245: checking for kstat_open in -lkstat" >&5
4216 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4245 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4217 4246
4218 xe_check_libs=" -lkstat " 4247 xe_check_libs=" -lkstat "
4219 cat > conftest.$ac_ext <<EOF 4248 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure" 4249 #line 4250 "configure"
4221 #include "confdefs.h" 4250 #include "confdefs.h"
4222 /* Override any gcc2 internal prototype to avoid an error. */ 4251 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2 4252 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */ 4253 builtin and then its argument prototype would still apply. */
4225 char kstat_open(); 4254 char kstat_open();
4226 4255
4227 int main() { 4256 int main() {
4228 kstat_open() 4257 kstat_open()
4229 ; return 0; } 4258 ; return 0; }
4230 EOF 4259 EOF
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4232 rm -rf conftest* 4261 rm -rf conftest*
4233 eval "ac_cv_lib_$ac_lib_var=yes" 4262 eval "ac_cv_lib_$ac_lib_var=yes"
4234 else 4263 else
4235 echo "configure: failed program was:" >&5 4264 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5 4265 cat conftest.$ac_ext >&5
4260 4289
4261 4290
4262 4291
4263 4292
4264 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4293 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4265 echo "configure:4266: checking for kvm_read in -lkvm" >&5 4294 echo "configure:4295: checking for kvm_read in -lkvm" >&5
4266 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4295 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4267 4296
4268 xe_check_libs=" -lkvm " 4297 xe_check_libs=" -lkvm "
4269 cat > conftest.$ac_ext <<EOF 4298 cat > conftest.$ac_ext <<EOF
4270 #line 4271 "configure" 4299 #line 4300 "configure"
4271 #include "confdefs.h" 4300 #include "confdefs.h"
4272 /* Override any gcc2 internal prototype to avoid an error. */ 4301 /* Override any gcc2 internal prototype to avoid an error. */
4273 /* We use char because int might match the return type of a gcc2 4302 /* We use char because int might match the return type of a gcc2
4274 builtin and then its argument prototype would still apply. */ 4303 builtin and then its argument prototype would still apply. */
4275 char kvm_read(); 4304 char kvm_read();
4276 4305
4277 int main() { 4306 int main() {
4278 kvm_read() 4307 kvm_read()
4279 ; return 0; } 4308 ; return 0; }
4280 EOF 4309 EOF
4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4282 rm -rf conftest* 4311 rm -rf conftest*
4283 eval "ac_cv_lib_$ac_lib_var=yes" 4312 eval "ac_cv_lib_$ac_lib_var=yes"
4284 else 4313 else
4285 echo "configure: failed program was:" >&5 4314 echo "configure: failed program was:" >&5
4286 cat conftest.$ac_ext >&5 4315 cat conftest.$ac_ext >&5
4311 4340
4312 4341
4313 case "$opsys" in decosf*) 4342 case "$opsys" in decosf*)
4314 4343
4315 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4344 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4316 echo "configure:4317: checking for cma_open in -lpthreads" >&5 4345 echo "configure:4346: checking for cma_open in -lpthreads" >&5
4317 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4346 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4318 4347
4319 xe_check_libs=" -lpthreads " 4348 xe_check_libs=" -lpthreads "
4320 cat > conftest.$ac_ext <<EOF 4349 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure" 4350 #line 4351 "configure"
4322 #include "confdefs.h" 4351 #include "confdefs.h"
4323 /* Override any gcc2 internal prototype to avoid an error. */ 4352 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2 4353 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */ 4354 builtin and then its argument prototype would still apply. */
4326 char cma_open(); 4355 char cma_open();
4327 4356
4328 int main() { 4357 int main() {
4329 cma_open() 4358 cma_open()
4330 ; return 0; } 4359 ; return 0; }
4331 EOF 4360 EOF
4332 if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4333 rm -rf conftest* 4362 rm -rf conftest*
4334 eval "ac_cv_lib_$ac_lib_var=yes" 4363 eval "ac_cv_lib_$ac_lib_var=yes"
4335 else 4364 else
4336 echo "configure: failed program was:" >&5 4365 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5 4366 cat conftest.$ac_ext >&5
4363 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4392 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4364 c_switch_site="$c_switch_site -threads" ;; 4393 c_switch_site="$c_switch_site -threads" ;;
4365 esac 4394 esac
4366 4395
4367 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4396 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4368 echo "configure:4369: checking whether the -xildoff compiler flag is required" >&5 4397 echo "configure:4398: checking whether the -xildoff compiler flag is required" >&5
4369 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4398 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4370 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4399 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4371 then echo "$ac_t""no" 1>&6; 4400 then echo "$ac_t""no" 1>&6;
4372 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 4401 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
4373 fi 4402 fi
4374 else echo "$ac_t""no" 1>&6 4403 else echo "$ac_t""no" 1>&6
4375 fi 4404 fi
4376 4405
4377 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4406 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4378 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4407 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4379 echo "configure:4380: checking for \"-z ignore\" linker flag" >&5 4408 echo "configure:4409: checking for \"-z ignore\" linker flag" >&5
4380 case "`ld -h 2>&1`" in 4409 case "`ld -h 2>&1`" in
4381 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4410 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4382 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4411 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4383 *) echo "$ac_t""no" 1>&6 ;; 4412 *) echo "$ac_t""no" 1>&6 ;;
4384 esac 4413 esac
4385 fi 4414 fi
4386 4415
4387 4416
4388 echo "checking "for specified window system"" 1>&6 4417 echo "checking "for specified window system"" 1>&6
4389 echo "configure:4390: checking "for specified window system"" >&5 4418 echo "configure:4419: checking "for specified window system"" >&5
4390 4419
4391 if test "$with_x11" != "no"; then 4420 if test "$with_x11" != "no"; then
4392 test "$x_includes $x_libraries" != "NONE NONE" && \ 4421 test "$x_includes $x_libraries" != "NONE NONE" && \
4393 window_system=x11 with_x11=yes 4422 window_system=x11 with_x11=yes
4394 4423
4417 # If we find X, set shell vars x_includes and x_libraries to the 4446 # If we find X, set shell vars x_includes and x_libraries to the
4418 # paths, otherwise set no_x=yes. 4447 # paths, otherwise set no_x=yes.
4419 # Uses ac_ vars as temps to allow command line to override cache and checks. 4448 # Uses ac_ vars as temps to allow command line to override cache and checks.
4420 # --without-x overrides everything else, but does not touch the cache. 4449 # --without-x overrides everything else, but does not touch the cache.
4421 echo $ac_n "checking for X""... $ac_c" 1>&6 4450 echo $ac_n "checking for X""... $ac_c" 1>&6
4422 echo "configure:4423: checking for X" >&5 4451 echo "configure:4452: checking for X" >&5
4423 4452
4424 # Check whether --with-x or --without-x was given. 4453 # Check whether --with-x or --without-x was given.
4425 if test "${with_x+set}" = set; then 4454 if test "${with_x+set}" = set; then
4426 withval="$with_x" 4455 withval="$with_x"
4427 : 4456 :
4477 # Guess where to find include files, by looking for this one X11 .h file. 4506 # Guess where to find include files, by looking for this one X11 .h file.
4478 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4507 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4479 4508
4480 # First, try using that file with no special directory specified. 4509 # First, try using that file with no special directory specified.
4481 cat > conftest.$ac_ext <<EOF 4510 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure" 4511 #line 4512 "configure"
4483 #include "confdefs.h" 4512 #include "confdefs.h"
4484 #include <$x_direct_test_include> 4513 #include <$x_direct_test_include>
4485 EOF 4514 EOF
4486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4487 { (eval echo configure:4488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4516 { (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4488 ac_err=`grep -v '^ *+' conftest.out` 4517 ac_err=`grep -v '^ *+' conftest.out`
4489 if test -z "$ac_err"; then 4518 if test -z "$ac_err"; then
4490 rm -rf conftest* 4519 rm -rf conftest*
4491 # We can compile using X headers with no special include directory. 4520 # We can compile using X headers with no special include directory.
4492 ac_x_includes= 4521 ac_x_includes=
4551 # See if we find them without any special options. 4580 # See if we find them without any special options.
4552 # Don't add to $LIBS permanently. 4581 # Don't add to $LIBS permanently.
4553 ac_save_LIBS="$LIBS" 4582 ac_save_LIBS="$LIBS"
4554 LIBS="-l$x_direct_test_library $LIBS" 4583 LIBS="-l$x_direct_test_library $LIBS"
4555 cat > conftest.$ac_ext <<EOF 4584 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure" 4585 #line 4586 "configure"
4557 #include "confdefs.h" 4586 #include "confdefs.h"
4558 4587
4559 int main() { 4588 int main() {
4560 ${x_direct_test_function}() 4589 ${x_direct_test_function}()
4561 ; return 0; } 4590 ; return 0; }
4562 EOF 4591 EOF
4563 if { (eval echo configure:4564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4564 rm -rf conftest* 4593 rm -rf conftest*
4565 LIBS="$ac_save_LIBS" 4594 LIBS="$ac_save_LIBS"
4566 # We can link X programs with no special library path. 4595 # We can link X programs with no special library path.
4567 ac_x_libraries= 4596 ac_x_libraries=
4568 else 4597 else
4667 # For Solaris; some versions of Sun CC require a space after -R and 4696 # For Solaris; some versions of Sun CC require a space after -R and
4668 # others require no space. Words are not sufficient . . . . 4697 # others require no space. Words are not sufficient . . . .
4669 case "`(uname -sr) 2>/dev/null`" in 4698 case "`(uname -sr) 2>/dev/null`" in
4670 "SunOS 5"*) 4699 "SunOS 5"*)
4671 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4700 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4672 echo "configure:4673: checking whether -R must be followed by a space" >&5 4701 echo "configure:4702: checking whether -R must be followed by a space" >&5
4673 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4702 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4674 cat > conftest.$ac_ext <<EOF 4703 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure" 4704 #line 4705 "configure"
4676 #include "confdefs.h" 4705 #include "confdefs.h"
4677 4706
4678 int main() { 4707 int main() {
4679 4708
4680 ; return 0; } 4709 ; return 0; }
4681 EOF 4710 EOF
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4683 rm -rf conftest* 4712 rm -rf conftest*
4684 ac_R_nospace=yes 4713 ac_R_nospace=yes
4685 else 4714 else
4686 echo "configure: failed program was:" >&5 4715 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5 4716 cat conftest.$ac_ext >&5
4693 echo "$ac_t""no" 1>&6 4722 echo "$ac_t""no" 1>&6
4694 X_LIBS="$X_LIBS -R$x_libraries" 4723 X_LIBS="$X_LIBS -R$x_libraries"
4695 else 4724 else
4696 LIBS="$ac_xsave_LIBS -R $x_libraries" 4725 LIBS="$ac_xsave_LIBS -R $x_libraries"
4697 cat > conftest.$ac_ext <<EOF 4726 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure" 4727 #line 4728 "configure"
4699 #include "confdefs.h" 4728 #include "confdefs.h"
4700 4729
4701 int main() { 4730 int main() {
4702 4731
4703 ; return 0; } 4732 ; return 0; }
4704 EOF 4733 EOF
4705 if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4706 rm -rf conftest* 4735 rm -rf conftest*
4707 ac_R_space=yes 4736 ac_R_space=yes
4708 else 4737 else
4709 echo "configure: failed program was:" >&5 4738 echo "configure: failed program was:" >&5
4710 cat conftest.$ac_ext >&5 4739 cat conftest.$ac_ext >&5
4736 if test "$with_dnet" = "no" ; then 4765 if test "$with_dnet" = "no" ; then
4737 ac_cv_lib_dnet_dnet_ntoa=no 4766 ac_cv_lib_dnet_dnet_ntoa=no
4738 else 4767 else
4739 4768
4740 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4769 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4741 echo "configure:4742: checking for dnet_ntoa in -ldnet" >&5 4770 echo "configure:4771: checking for dnet_ntoa in -ldnet" >&5
4742 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4771 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4743 4772
4744 xe_check_libs=" -ldnet " 4773 xe_check_libs=" -ldnet "
4745 cat > conftest.$ac_ext <<EOF 4774 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure" 4775 #line 4776 "configure"
4747 #include "confdefs.h" 4776 #include "confdefs.h"
4748 /* Override any gcc2 internal prototype to avoid an error. */ 4777 /* Override any gcc2 internal prototype to avoid an error. */
4749 /* We use char because int might match the return type of a gcc2 4778 /* We use char because int might match the return type of a gcc2
4750 builtin and then its argument prototype would still apply. */ 4779 builtin and then its argument prototype would still apply. */
4751 char dnet_ntoa(); 4780 char dnet_ntoa();
4752 4781
4753 int main() { 4782 int main() {
4754 dnet_ntoa() 4783 dnet_ntoa()
4755 ; return 0; } 4784 ; return 0; }
4756 EOF 4785 EOF
4757 if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4786 if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4758 rm -rf conftest* 4787 rm -rf conftest*
4759 eval "ac_cv_lib_$ac_lib_var=yes" 4788 eval "ac_cv_lib_$ac_lib_var=yes"
4760 else 4789 else
4761 echo "configure: failed program was:" >&5 4790 echo "configure: failed program was:" >&5
4762 cat conftest.$ac_ext >&5 4791 cat conftest.$ac_ext >&5
4776 fi 4805 fi
4777 4806
4778 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4807 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4779 4808
4780 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4809 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4781 echo "configure:4782: checking for dnet_ntoa in -ldnet_stub" >&5 4810 echo "configure:4811: checking for dnet_ntoa in -ldnet_stub" >&5
4782 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4811 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4783 4812
4784 xe_check_libs=" -ldnet_stub " 4813 xe_check_libs=" -ldnet_stub "
4785 cat > conftest.$ac_ext <<EOF 4814 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure" 4815 #line 4816 "configure"
4787 #include "confdefs.h" 4816 #include "confdefs.h"
4788 /* Override any gcc2 internal prototype to avoid an error. */ 4817 /* Override any gcc2 internal prototype to avoid an error. */
4789 /* We use char because int might match the return type of a gcc2 4818 /* We use char because int might match the return type of a gcc2
4790 builtin and then its argument prototype would still apply. */ 4819 builtin and then its argument prototype would still apply. */
4791 char dnet_ntoa(); 4820 char dnet_ntoa();
4792 4821
4793 int main() { 4822 int main() {
4794 dnet_ntoa() 4823 dnet_ntoa()
4795 ; return 0; } 4824 ; return 0; }
4796 EOF 4825 EOF
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4798 rm -rf conftest* 4827 rm -rf conftest*
4799 eval "ac_cv_lib_$ac_lib_var=yes" 4828 eval "ac_cv_lib_$ac_lib_var=yes"
4800 else 4829 else
4801 echo "configure: failed program was:" >&5 4830 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5 4831 cat conftest.$ac_ext >&5
4821 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4850 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4822 # needs -lnsl. 4851 # needs -lnsl.
4823 # The nsl library prevents programs from opening the X display 4852 # The nsl library prevents programs from opening the X display
4824 # on Irix 5.2, according to dickey@clark.net. 4853 # on Irix 5.2, according to dickey@clark.net.
4825 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4854 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4826 echo "configure:4827: checking for gethostbyname" >&5 4855 echo "configure:4856: checking for gethostbyname" >&5
4827 4856
4828 cat > conftest.$ac_ext <<EOF 4857 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure" 4858 #line 4859 "configure"
4830 #include "confdefs.h" 4859 #include "confdefs.h"
4831 /* System header to define __stub macros and hopefully few prototypes, 4860 /* System header to define __stub macros and hopefully few prototypes,
4832 which can conflict with char gethostbyname(); below. */ 4861 which can conflict with char gethostbyname(); below. */
4833 #include <assert.h> 4862 #include <assert.h>
4834 /* Override any gcc2 internal prototype to avoid an error. */ 4863 /* Override any gcc2 internal prototype to avoid an error. */
4847 gethostbyname(); 4876 gethostbyname();
4848 #endif 4877 #endif
4849 4878
4850 ; return 0; } 4879 ; return 0; }
4851 EOF 4880 EOF
4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4853 rm -rf conftest* 4882 rm -rf conftest*
4854 eval "ac_cv_func_gethostbyname=yes" 4883 eval "ac_cv_func_gethostbyname=yes"
4855 else 4884 else
4856 echo "configure: failed program was:" >&5 4885 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5 4886 cat conftest.$ac_ext >&5
4868 fi 4897 fi
4869 4898
4870 if test $ac_cv_func_gethostbyname = no; then 4899 if test $ac_cv_func_gethostbyname = no; then
4871 4900
4872 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4901 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4873 echo "configure:4874: checking for gethostbyname in -lnsl" >&5 4902 echo "configure:4903: checking for gethostbyname in -lnsl" >&5
4874 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4903 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4875 4904
4876 xe_check_libs=" -lnsl " 4905 xe_check_libs=" -lnsl "
4877 cat > conftest.$ac_ext <<EOF 4906 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure" 4907 #line 4908 "configure"
4879 #include "confdefs.h" 4908 #include "confdefs.h"
4880 /* Override any gcc2 internal prototype to avoid an error. */ 4909 /* Override any gcc2 internal prototype to avoid an error. */
4881 /* We use char because int might match the return type of a gcc2 4910 /* We use char because int might match the return type of a gcc2
4882 builtin and then its argument prototype would still apply. */ 4911 builtin and then its argument prototype would still apply. */
4883 char gethostbyname(); 4912 char gethostbyname();
4884 4913
4885 int main() { 4914 int main() {
4886 gethostbyname() 4915 gethostbyname()
4887 ; return 0; } 4916 ; return 0; }
4888 EOF 4917 EOF
4889 if { (eval echo configure:4890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4890 rm -rf conftest* 4919 rm -rf conftest*
4891 eval "ac_cv_lib_$ac_lib_var=yes" 4920 eval "ac_cv_lib_$ac_lib_var=yes"
4892 else 4921 else
4893 echo "configure: failed program was:" >&5 4922 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5 4923 cat conftest.$ac_ext >&5
4914 # on later versions), says simon@lia.di.epfl.ch: it contains 4943 # on later versions), says simon@lia.di.epfl.ch: it contains
4915 # gethostby* variants that don't use the nameserver (or something). 4944 # gethostby* variants that don't use the nameserver (or something).
4916 # -lsocket must be given before -lnsl if both are needed. 4945 # -lsocket must be given before -lnsl if both are needed.
4917 # We assume that if connect needs -lnsl, so does gethostbyname. 4946 # We assume that if connect needs -lnsl, so does gethostbyname.
4918 echo $ac_n "checking for connect""... $ac_c" 1>&6 4947 echo $ac_n "checking for connect""... $ac_c" 1>&6
4919 echo "configure:4920: checking for connect" >&5 4948 echo "configure:4949: checking for connect" >&5
4920 4949
4921 cat > conftest.$ac_ext <<EOF 4950 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure" 4951 #line 4952 "configure"
4923 #include "confdefs.h" 4952 #include "confdefs.h"
4924 /* System header to define __stub macros and hopefully few prototypes, 4953 /* System header to define __stub macros and hopefully few prototypes,
4925 which can conflict with char connect(); below. */ 4954 which can conflict with char connect(); below. */
4926 #include <assert.h> 4955 #include <assert.h>
4927 /* Override any gcc2 internal prototype to avoid an error. */ 4956 /* Override any gcc2 internal prototype to avoid an error. */
4940 connect(); 4969 connect();
4941 #endif 4970 #endif
4942 4971
4943 ; return 0; } 4972 ; return 0; }
4944 EOF 4973 EOF
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4974 if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4946 rm -rf conftest* 4975 rm -rf conftest*
4947 eval "ac_cv_func_connect=yes" 4976 eval "ac_cv_func_connect=yes"
4948 else 4977 else
4949 echo "configure: failed program was:" >&5 4978 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5 4979 cat conftest.$ac_ext >&5
4963 if test $ac_cv_func_connect = no; then 4992 if test $ac_cv_func_connect = no; then
4964 4993
4965 xe_msg_checking="for connect in -lsocket" 4994 xe_msg_checking="for connect in -lsocket"
4966 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4995 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4967 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4996 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4968 echo "configure:4969: checking "$xe_msg_checking"" >&5 4997 echo "configure:4998: checking "$xe_msg_checking"" >&5
4969 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4998 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4970 4999
4971 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5000 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4972 cat > conftest.$ac_ext <<EOF 5001 cat > conftest.$ac_ext <<EOF
4973 #line 4974 "configure" 5002 #line 5003 "configure"
4974 #include "confdefs.h" 5003 #include "confdefs.h"
4975 /* Override any gcc2 internal prototype to avoid an error. */ 5004 /* Override any gcc2 internal prototype to avoid an error. */
4976 /* We use char because int might match the return type of a gcc2 5005 /* We use char because int might match the return type of a gcc2
4977 builtin and then its argument prototype would still apply. */ 5006 builtin and then its argument prototype would still apply. */
4978 char connect(); 5007 char connect();
4979 5008
4980 int main() { 5009 int main() {
4981 connect() 5010 connect()
4982 ; return 0; } 5011 ; return 0; }
4983 EOF 5012 EOF
4984 if { (eval echo configure:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4985 rm -rf conftest* 5014 rm -rf conftest*
4986 eval "ac_cv_lib_$ac_lib_var=yes" 5015 eval "ac_cv_lib_$ac_lib_var=yes"
4987 else 5016 else
4988 echo "configure: failed program was:" >&5 5017 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5 5018 cat conftest.$ac_ext >&5
5003 5032
5004 fi 5033 fi
5005 5034
5006 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5035 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5007 echo $ac_n "checking for remove""... $ac_c" 1>&6 5036 echo $ac_n "checking for remove""... $ac_c" 1>&6
5008 echo "configure:5009: checking for remove" >&5 5037 echo "configure:5038: checking for remove" >&5
5009 5038
5010 cat > conftest.$ac_ext <<EOF 5039 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure" 5040 #line 5041 "configure"
5012 #include "confdefs.h" 5041 #include "confdefs.h"
5013 /* System header to define __stub macros and hopefully few prototypes, 5042 /* System header to define __stub macros and hopefully few prototypes,
5014 which can conflict with char remove(); below. */ 5043 which can conflict with char remove(); below. */
5015 #include <assert.h> 5044 #include <assert.h>
5016 /* Override any gcc2 internal prototype to avoid an error. */ 5045 /* Override any gcc2 internal prototype to avoid an error. */
5029 remove(); 5058 remove();
5030 #endif 5059 #endif
5031 5060
5032 ; return 0; } 5061 ; return 0; }
5033 EOF 5062 EOF
5034 if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5035 rm -rf conftest* 5064 rm -rf conftest*
5036 eval "ac_cv_func_remove=yes" 5065 eval "ac_cv_func_remove=yes"
5037 else 5066 else
5038 echo "configure: failed program was:" >&5 5067 echo "configure: failed program was:" >&5
5039 cat conftest.$ac_ext >&5 5068 cat conftest.$ac_ext >&5
5050 fi 5079 fi
5051 5080
5052 if test $ac_cv_func_remove = no; then 5081 if test $ac_cv_func_remove = no; then
5053 5082
5054 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5083 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5055 echo "configure:5056: checking for remove in -lposix" >&5 5084 echo "configure:5085: checking for remove in -lposix" >&5
5056 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5085 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5057 5086
5058 xe_check_libs=" -lposix " 5087 xe_check_libs=" -lposix "
5059 cat > conftest.$ac_ext <<EOF 5088 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure" 5089 #line 5090 "configure"
5061 #include "confdefs.h" 5090 #include "confdefs.h"
5062 /* Override any gcc2 internal prototype to avoid an error. */ 5091 /* Override any gcc2 internal prototype to avoid an error. */
5063 /* We use char because int might match the return type of a gcc2 5092 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */ 5093 builtin and then its argument prototype would still apply. */
5065 char remove(); 5094 char remove();
5066 5095
5067 int main() { 5096 int main() {
5068 remove() 5097 remove()
5069 ; return 0; } 5098 ; return 0; }
5070 EOF 5099 EOF
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5072 rm -rf conftest* 5101 rm -rf conftest*
5073 eval "ac_cv_lib_$ac_lib_var=yes" 5102 eval "ac_cv_lib_$ac_lib_var=yes"
5074 else 5103 else
5075 echo "configure: failed program was:" >&5 5104 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5 5105 cat conftest.$ac_ext >&5
5090 5119
5091 fi 5120 fi
5092 5121
5093 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5122 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5094 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5123 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5095 echo "configure:5096: checking for shmat" >&5 5124 echo "configure:5125: checking for shmat" >&5
5096 5125
5097 cat > conftest.$ac_ext <<EOF 5126 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure" 5127 #line 5128 "configure"
5099 #include "confdefs.h" 5128 #include "confdefs.h"
5100 /* System header to define __stub macros and hopefully few prototypes, 5129 /* System header to define __stub macros and hopefully few prototypes,
5101 which can conflict with char shmat(); below. */ 5130 which can conflict with char shmat(); below. */
5102 #include <assert.h> 5131 #include <assert.h>
5103 /* Override any gcc2 internal prototype to avoid an error. */ 5132 /* Override any gcc2 internal prototype to avoid an error. */
5116 shmat(); 5145 shmat();
5117 #endif 5146 #endif
5118 5147
5119 ; return 0; } 5148 ; return 0; }
5120 EOF 5149 EOF
5121 if { (eval echo configure:5122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5122 rm -rf conftest* 5151 rm -rf conftest*
5123 eval "ac_cv_func_shmat=yes" 5152 eval "ac_cv_func_shmat=yes"
5124 else 5153 else
5125 echo "configure: failed program was:" >&5 5154 echo "configure: failed program was:" >&5
5126 cat conftest.$ac_ext >&5 5155 cat conftest.$ac_ext >&5
5137 fi 5166 fi
5138 5167
5139 if test $ac_cv_func_shmat = no; then 5168 if test $ac_cv_func_shmat = no; then
5140 5169
5141 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5170 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5142 echo "configure:5143: checking for shmat in -lipc" >&5 5171 echo "configure:5172: checking for shmat in -lipc" >&5
5143 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5172 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5144 5173
5145 xe_check_libs=" -lipc " 5174 xe_check_libs=" -lipc "
5146 cat > conftest.$ac_ext <<EOF 5175 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure" 5176 #line 5177 "configure"
5148 #include "confdefs.h" 5177 #include "confdefs.h"
5149 /* Override any gcc2 internal prototype to avoid an error. */ 5178 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2 5179 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */ 5180 builtin and then its argument prototype would still apply. */
5152 char shmat(); 5181 char shmat();
5153 5182
5154 int main() { 5183 int main() {
5155 shmat() 5184 shmat()
5156 ; return 0; } 5185 ; return 0; }
5157 EOF 5186 EOF
5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5159 rm -rf conftest* 5188 rm -rf conftest*
5160 eval "ac_cv_lib_$ac_lib_var=yes" 5189 eval "ac_cv_lib_$ac_lib_var=yes"
5161 else 5190 else
5162 echo "configure: failed program was:" >&5 5191 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5 5192 cat conftest.$ac_ext >&5
5187 # These have to be linked with before -lX11, unlike the other 5216 # These have to be linked with before -lX11, unlike the other
5188 # libraries we check for below, so use a different variable. 5217 # libraries we check for below, so use a different variable.
5189 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5190 5219
5191 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 5220 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5192 echo "configure:5193: checking for IceConnectionNumber in -lICE" >&5 5221 echo "configure:5222: checking for IceConnectionNumber in -lICE" >&5
5193 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5222 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5194 5223
5195 xe_check_libs=" -lICE " 5224 xe_check_libs=" -lICE "
5196 cat > conftest.$ac_ext <<EOF 5225 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure" 5226 #line 5227 "configure"
5198 #include "confdefs.h" 5227 #include "confdefs.h"
5199 /* Override any gcc2 internal prototype to avoid an error. */ 5228 /* Override any gcc2 internal prototype to avoid an error. */
5200 /* We use char because int might match the return type of a gcc2 5229 /* We use char because int might match the return type of a gcc2
5201 builtin and then its argument prototype would still apply. */ 5230 builtin and then its argument prototype would still apply. */
5202 char IceConnectionNumber(); 5231 char IceConnectionNumber();
5203 5232
5204 int main() { 5233 int main() {
5205 IceConnectionNumber() 5234 IceConnectionNumber()
5206 ; return 0; } 5235 ; return 0; }
5207 EOF 5236 EOF
5208 if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5209 rm -rf conftest* 5238 rm -rf conftest*
5210 eval "ac_cv_lib_$ac_lib_var=yes" 5239 eval "ac_cv_lib_$ac_lib_var=yes"
5211 else 5240 else
5212 echo "configure: failed program was:" >&5 5241 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5 5242 cat conftest.$ac_ext >&5
5372 EOF 5401 EOF
5373 } 5402 }
5374 5403
5375 5404
5376 echo "checking for X defines extracted by xmkmf" 1>&6 5405 echo "checking for X defines extracted by xmkmf" 1>&6
5377 echo "configure:5378: checking for X defines extracted by xmkmf" >&5 5406 echo "configure:5407: checking for X defines extracted by xmkmf" >&5
5378 rm -fr conftestdir 5407 rm -fr conftestdir
5379 if mkdir conftestdir; then 5408 if mkdir conftestdir; then
5380 cd conftestdir 5409 cd conftestdir
5381 cat > Imakefile <<'EOF' 5410 cat > Imakefile <<'EOF'
5382 xetest: 5411 xetest:
5404 done 5433 done
5405 fi 5434 fi
5406 5435
5407 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5436 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5408 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5437 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5409 echo "configure:5410: checking for X11/Intrinsic.h" >&5 5438 echo "configure:5439: checking for X11/Intrinsic.h" >&5
5410 5439
5411 cat > conftest.$ac_ext <<EOF 5440 cat > conftest.$ac_ext <<EOF
5412 #line 5413 "configure" 5441 #line 5442 "configure"
5413 #include "confdefs.h" 5442 #include "confdefs.h"
5414 #include <X11/Intrinsic.h> 5443 #include <X11/Intrinsic.h>
5415 EOF 5444 EOF
5416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5417 { (eval echo configure:5418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5446 { (eval echo configure:5447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5418 ac_err=`grep -v '^ *+' conftest.out` 5447 ac_err=`grep -v '^ *+' conftest.out`
5419 if test -z "$ac_err"; then 5448 if test -z "$ac_err"; then
5420 rm -rf conftest* 5449 rm -rf conftest*
5421 eval "ac_cv_header_$ac_safe=yes" 5450 eval "ac_cv_header_$ac_safe=yes"
5422 else 5451 else
5436 fi 5465 fi
5437 5466
5438 5467
5439 5468
5440 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5469 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5441 echo "configure:5442: checking for XOpenDisplay in -lX11" >&5 5470 echo "configure:5471: checking for XOpenDisplay in -lX11" >&5
5442 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5471 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5443 5472
5444 xe_check_libs=" -lX11 " 5473 xe_check_libs=" -lX11 "
5445 cat > conftest.$ac_ext <<EOF 5474 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure" 5475 #line 5476 "configure"
5447 #include "confdefs.h" 5476 #include "confdefs.h"
5448 /* Override any gcc2 internal prototype to avoid an error. */ 5477 /* Override any gcc2 internal prototype to avoid an error. */
5449 /* We use char because int might match the return type of a gcc2 5478 /* We use char because int might match the return type of a gcc2
5450 builtin and then its argument prototype would still apply. */ 5479 builtin and then its argument prototype would still apply. */
5451 char XOpenDisplay(); 5480 char XOpenDisplay();
5452 5481
5453 int main() { 5482 int main() {
5454 XOpenDisplay() 5483 XOpenDisplay()
5455 ; return 0; } 5484 ; return 0; }
5456 EOF 5485 EOF
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5486 if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5458 rm -rf conftest* 5487 rm -rf conftest*
5459 eval "ac_cv_lib_$ac_lib_var=yes" 5488 eval "ac_cv_lib_$ac_lib_var=yes"
5460 else 5489 else
5461 echo "configure: failed program was:" >&5 5490 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5 5491 cat conftest.$ac_ext >&5
5477 if test "$have_lib_x11" != "yes"; then 5506 if test "$have_lib_x11" != "yes"; then
5478 5507
5479 xe_msg_checking="for XGetFontProperty in -lX11" 5508 xe_msg_checking="for XGetFontProperty in -lX11"
5480 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5509 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5481 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5510 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5482 echo "configure:5483: checking "$xe_msg_checking"" >&5 5511 echo "configure:5512: checking "$xe_msg_checking"" >&5
5483 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5512 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5484 5513
5485 xe_check_libs=" -lX11 -b i486-linuxaout" 5514 xe_check_libs=" -lX11 -b i486-linuxaout"
5486 cat > conftest.$ac_ext <<EOF 5515 cat > conftest.$ac_ext <<EOF
5487 #line 5488 "configure" 5516 #line 5517 "configure"
5488 #include "confdefs.h" 5517 #include "confdefs.h"
5489 /* Override any gcc2 internal prototype to avoid an error. */ 5518 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2 5519 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */ 5520 builtin and then its argument prototype would still apply. */
5492 char XGetFontProperty(); 5521 char XGetFontProperty();
5493 5522
5494 int main() { 5523 int main() {
5495 XGetFontProperty() 5524 XGetFontProperty()
5496 ; return 0; } 5525 ; return 0; }
5497 EOF 5526 EOF
5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5527 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5499 rm -rf conftest* 5528 rm -rf conftest*
5500 eval "ac_cv_lib_$ac_lib_var=yes" 5529 eval "ac_cv_lib_$ac_lib_var=yes"
5501 else 5530 else
5502 echo "configure: failed program was:" >&5 5531 echo "configure: failed program was:" >&5
5503 cat conftest.$ac_ext >&5 5532 cat conftest.$ac_ext >&5
5520 libs_x="-lX11" 5549 libs_x="-lX11"
5521 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5550 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5522 5551
5523 5552
5524 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5553 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5525 echo "configure:5526: checking for XShapeSelectInput in -lXext" >&5 5554 echo "configure:5555: checking for XShapeSelectInput in -lXext" >&5
5526 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5555 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5527 5556
5528 xe_check_libs=" -lXext " 5557 xe_check_libs=" -lXext "
5529 cat > conftest.$ac_ext <<EOF 5558 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure" 5559 #line 5560 "configure"
5531 #include "confdefs.h" 5560 #include "confdefs.h"
5532 /* Override any gcc2 internal prototype to avoid an error. */ 5561 /* Override any gcc2 internal prototype to avoid an error. */
5533 /* We use char because int might match the return type of a gcc2 5562 /* We use char because int might match the return type of a gcc2
5534 builtin and then its argument prototype would still apply. */ 5563 builtin and then its argument prototype would still apply. */
5535 char XShapeSelectInput(); 5564 char XShapeSelectInput();
5536 5565
5537 int main() { 5566 int main() {
5538 XShapeSelectInput() 5567 XShapeSelectInput()
5539 ; return 0; } 5568 ; return 0; }
5540 EOF 5569 EOF
5541 if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5542 rm -rf conftest* 5571 rm -rf conftest*
5543 eval "ac_cv_lib_$ac_lib_var=yes" 5572 eval "ac_cv_lib_$ac_lib_var=yes"
5544 else 5573 else
5545 echo "configure: failed program was:" >&5 5574 echo "configure: failed program was:" >&5
5546 cat conftest.$ac_ext >&5 5575 cat conftest.$ac_ext >&5
5559 5588
5560 5589
5561 5590
5562 5591
5563 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5592 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5564 echo "configure:5565: checking for XtOpenDisplay in -lXt" >&5 5593 echo "configure:5594: checking for XtOpenDisplay in -lXt" >&5
5565 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5594 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5566 5595
5567 xe_check_libs=" -lXt " 5596 xe_check_libs=" -lXt "
5568 cat > conftest.$ac_ext <<EOF 5597 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure" 5598 #line 5599 "configure"
5570 #include "confdefs.h" 5599 #include "confdefs.h"
5571 /* Override any gcc2 internal prototype to avoid an error. */ 5600 /* Override any gcc2 internal prototype to avoid an error. */
5572 /* We use char because int might match the return type of a gcc2 5601 /* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */ 5602 builtin and then its argument prototype would still apply. */
5574 char XtOpenDisplay(); 5603 char XtOpenDisplay();
5575 5604
5576 int main() { 5605 int main() {
5577 XtOpenDisplay() 5606 XtOpenDisplay()
5578 ; return 0; } 5607 ; return 0; }
5579 EOF 5608 EOF
5580 if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5609 if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5581 rm -rf conftest* 5610 rm -rf conftest*
5582 eval "ac_cv_lib_$ac_lib_var=yes" 5611 eval "ac_cv_lib_$ac_lib_var=yes"
5583 else 5612 else
5584 echo "configure: failed program was:" >&5 5613 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5 5614 cat conftest.$ac_ext >&5
5598 fi 5627 fi
5599 5628
5600 5629
5601 5630
5602 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5631 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5603 echo "configure:5604: checking the version of X11 being used" >&5 5632 echo "configure:5633: checking the version of X11 being used" >&5
5604 cat > conftest.$ac_ext <<EOF 5633 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure" 5634 #line 5635 "configure"
5606 #include "confdefs.h" 5635 #include "confdefs.h"
5607 #include <X11/Intrinsic.h> 5636 #include <X11/Intrinsic.h>
5608 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5637 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5609 EOF 5638 EOF
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5611 then 5640 then
5612 ./conftest foobar; x11_release=$? 5641 ./conftest foobar; x11_release=$?
5613 else 5642 else
5614 conftest_rc="$?" 5643 conftest_rc="$?"
5615 echo "configure: failed program was:" >&5 5644 echo "configure: failed program was:" >&5
5630 5659
5631 for ac_hdr in X11/Xlocale.h 5660 for ac_hdr in X11/Xlocale.h
5632 do 5661 do
5633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5635 echo "configure:5636: checking for $ac_hdr" >&5 5664 echo "configure:5665: checking for $ac_hdr" >&5
5636 5665
5637 cat > conftest.$ac_ext <<EOF 5666 cat > conftest.$ac_ext <<EOF
5638 #line 5639 "configure" 5667 #line 5668 "configure"
5639 #include "confdefs.h" 5668 #include "confdefs.h"
5640 #include <$ac_hdr> 5669 #include <$ac_hdr>
5641 EOF 5670 EOF
5642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5643 { (eval echo configure:5644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5672 { (eval echo configure:5673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5644 ac_err=`grep -v '^ *+' conftest.out` 5673 ac_err=`grep -v '^ *+' conftest.out`
5645 if test -z "$ac_err"; then 5674 if test -z "$ac_err"; then
5646 rm -rf conftest* 5675 rm -rf conftest*
5647 eval "ac_cv_header_$ac_safe=yes" 5676 eval "ac_cv_header_$ac_safe=yes"
5648 else 5677 else
5669 fi 5698 fi
5670 done 5699 done
5671 5700
5672 5701
5673 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5702 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5674 echo "configure:5675: checking for XFree86" >&5 5703 echo "configure:5704: checking for XFree86" >&5
5675 if test -d "/usr/X386/include" -o \ 5704 if test -d "/usr/X386/include" -o \
5676 -f "/etc/XF86Config" -o \ 5705 -f "/etc/XF86Config" -o \
5677 -f "/etc/X11/XF86Config" -o \ 5706 -f "/etc/X11/XF86Config" -o \
5678 -f "/usr/X11R6/lib/X11/XF86Config"; then 5707 -f "/usr/X11R6/lib/X11/XF86Config"; then
5679 echo "$ac_t""yes" 1>&6 5708 echo "$ac_t""yes" 1>&6
5689 echo "$ac_t""no" 1>&6 5718 echo "$ac_t""no" 1>&6
5690 fi 5719 fi
5691 5720
5692 test -z "$with_xmu" && { 5721 test -z "$with_xmu" && {
5693 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5722 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5694 echo "configure:5695: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5723 echo "configure:5724: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5695 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5724 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5696 5725
5697 xe_check_libs=" -lXmu " 5726 xe_check_libs=" -lXmu "
5698 cat > conftest.$ac_ext <<EOF 5727 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure" 5728 #line 5729 "configure"
5700 #include "confdefs.h" 5729 #include "confdefs.h"
5701 /* Override any gcc2 internal prototype to avoid an error. */ 5730 /* Override any gcc2 internal prototype to avoid an error. */
5702 /* We use char because int might match the return type of a gcc2 5731 /* We use char because int might match the return type of a gcc2
5703 builtin and then its argument prototype would still apply. */ 5732 builtin and then its argument prototype would still apply. */
5704 char XmuReadBitmapDataFromFile(); 5733 char XmuReadBitmapDataFromFile();
5705 5734
5706 int main() { 5735 int main() {
5707 XmuReadBitmapDataFromFile() 5736 XmuReadBitmapDataFromFile()
5708 ; return 0; } 5737 ; return 0; }
5709 EOF 5738 EOF
5710 if { (eval echo configure:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5739 if { (eval echo configure:5740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5711 rm -rf conftest* 5740 rm -rf conftest*
5712 eval "ac_cv_lib_$ac_lib_var=yes" 5741 eval "ac_cv_lib_$ac_lib_var=yes"
5713 else 5742 else
5714 echo "configure: failed program was:" >&5 5743 echo "configure: failed program was:" >&5
5715 cat conftest.$ac_ext >&5 5744 cat conftest.$ac_ext >&5
5744 5773
5745 fi 5774 fi
5746 5775
5747 5776
5748 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5777 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5749 echo "configure:5750: checking for main in -lXbsd" >&5 5778 echo "configure:5779: checking for main in -lXbsd" >&5
5750 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5779 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5751 5780
5752 xe_check_libs=" -lXbsd " 5781 xe_check_libs=" -lXbsd "
5753 cat > conftest.$ac_ext <<EOF 5782 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure" 5783 #line 5784 "configure"
5755 #include "confdefs.h" 5784 #include "confdefs.h"
5756 5785
5757 int main() { 5786 int main() {
5758 main() 5787 main()
5759 ; return 0; } 5788 ; return 0; }
5760 EOF 5789 EOF
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5762 rm -rf conftest* 5791 rm -rf conftest*
5763 eval "ac_cv_lib_$ac_lib_var=yes" 5792 eval "ac_cv_lib_$ac_lib_var=yes"
5764 else 5793 else
5765 echo "configure: failed program was:" >&5 5794 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5 5795 cat conftest.$ac_ext >&5
5793 fi 5822 fi
5794 5823
5795 fi 5824 fi
5796 if test "$with_msw" != "no"; then 5825 if test "$with_msw" != "no"; then
5797 echo "checking for MS-Windows" 1>&6 5826 echo "checking for MS-Windows" 1>&6
5798 echo "configure:5799: checking for MS-Windows" >&5 5827 echo "configure:5828: checking for MS-Windows" >&5
5799 5828
5800 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 5829 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5801 echo "configure:5802: checking for main in -lgdi32" >&5 5830 echo "configure:5831: checking for main in -lgdi32" >&5
5802 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 5831 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5803 5832
5804 xe_check_libs=" -lgdi32 " 5833 xe_check_libs=" -lgdi32 "
5805 cat > conftest.$ac_ext <<EOF 5834 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure" 5835 #line 5836 "configure"
5807 #include "confdefs.h" 5836 #include "confdefs.h"
5808 5837
5809 int main() { 5838 int main() {
5810 main() 5839 main()
5811 ; return 0; } 5840 ; return 0; }
5812 EOF 5841 EOF
5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5842 if { (eval echo configure:5843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5814 rm -rf conftest* 5843 rm -rf conftest*
5815 eval "ac_cv_lib_$ac_lib_var=yes" 5844 eval "ac_cv_lib_$ac_lib_var=yes"
5816 else 5845 else
5817 echo "configure: failed program was:" >&5 5846 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5 5847 cat conftest.$ac_ext >&5
5873 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 5902 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5874 echo " xemacs will be linked with \"dialog-msw.o\"" 5903 echo " xemacs will be linked with \"dialog-msw.o\""
5875 fi 5904 fi
5876 fi 5905 fi
5877 cat > conftest.$ac_ext <<EOF 5906 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure" 5907 #line 5908 "configure"
5879 #include "confdefs.h" 5908 #include "confdefs.h"
5880 #include <fcntl.h> 5909 #include <fcntl.h>
5881 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 5910 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
5882 EOF 5911 EOF
5883 if { (eval echo configure:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5912 if { (eval echo configure:5913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5884 then 5913 then
5885 { test "$extra_verbose" = "yes" && cat << \EOF 5914 { test "$extra_verbose" = "yes" && cat << \EOF
5886 Defining HAVE_MSG_SELECT 5915 Defining HAVE_MSG_SELECT
5887 EOF 5916 EOF
5888 cat >> confdefs.h <<\EOF 5917 cat >> confdefs.h <<\EOF
5909 5938
5910 5939
5911 test -z "$window_system" && window_system="none" 5940 test -z "$window_system" && window_system="none"
5912 5941
5913 if test "$window_system" = "none"; then 5942 if test "$window_system" = "none"; then
5914 for feature in menubars scrollbars toolbars dialogs dragndrop 5943 for feature in menubars scrollbars toolbars dialogs dragndrop xface
5915 do 5944 do
5916 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 5945 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5917 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2 5946 echo "configure: warning: --with-$feature ignored: Not valid without window system support" 1>&2
5918 fi 5947 fi
5919 eval "with_${feature}=no" 5948 eval "with_${feature}=no"
5933 else 5962 else
5934 : 5963 :
5935 fi 5964 fi
5936 5965
5937 if test "$with_x11" != "yes"; then 5966 if test "$with_x11" != "yes"; then
5938 for feature in tooltalk cde offix session xim xmu \ 5967 for feature in tooltalk cde offix session xim xmu
5939 xface
5940 do 5968 do
5941 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then 5969 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then
5942 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2 5970 echo "configure: warning: --with-$feature ignored: Not valid without X support" 1>&2
5943 fi 5971 fi
5944 eval "with_${feature}=no" 5972 eval "with_${feature}=no"
5957 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5985 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5958 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5986 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5959 esac 5987 esac
5960 5988
5961 echo "checking for session-management option" 1>&6 5989 echo "checking for session-management option" 1>&6
5962 echo "configure:5963: checking for session-management option" >&5; 5990 echo "configure:5991: checking for session-management option" >&5;
5963 if test "$with_session" != "no"; then 5991 if test "$with_session" != "no"; then
5964 { test "$extra_verbose" = "yes" && cat << \EOF 5992 { test "$extra_verbose" = "yes" && cat << \EOF
5965 Defining HAVE_SESSION 5993 Defining HAVE_SESSION
5966 EOF 5994 EOF
5967 cat >> confdefs.h <<\EOF 5995 cat >> confdefs.h <<\EOF
5972 fi 6000 fi
5973 6001
5974 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6002 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5975 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6003 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5976 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6004 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5977 echo "configure:5978: checking for X11/Xauth.h" >&5 6005 echo "configure:6006: checking for X11/Xauth.h" >&5
5978 6006
5979 cat > conftest.$ac_ext <<EOF 6007 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure" 6008 #line 6009 "configure"
5981 #include "confdefs.h" 6009 #include "confdefs.h"
5982 #include <X11/Xauth.h> 6010 #include <X11/Xauth.h>
5983 EOF 6011 EOF
5984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5985 { (eval echo configure:5986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6013 { (eval echo configure:6014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5986 ac_err=`grep -v '^ *+' conftest.out` 6014 ac_err=`grep -v '^ *+' conftest.out`
5987 if test -z "$ac_err"; then 6015 if test -z "$ac_err"; then
5988 rm -rf conftest* 6016 rm -rf conftest*
5989 eval "ac_cv_header_$ac_safe=yes" 6017 eval "ac_cv_header_$ac_safe=yes"
5990 else 6018 else
6003 with_xauth=no 6031 with_xauth=no
6004 fi 6032 fi
6005 } 6033 }
6006 test -z "$with_xauth" && { 6034 test -z "$with_xauth" && {
6007 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6035 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6008 echo "configure:6009: checking for XauGetAuthByAddr in -lXau" >&5 6036 echo "configure:6037: checking for XauGetAuthByAddr in -lXau" >&5
6009 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6037 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6010 6038
6011 xe_check_libs=" -lXau " 6039 xe_check_libs=" -lXau "
6012 cat > conftest.$ac_ext <<EOF 6040 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure" 6041 #line 6042 "configure"
6014 #include "confdefs.h" 6042 #include "confdefs.h"
6015 /* Override any gcc2 internal prototype to avoid an error. */ 6043 /* Override any gcc2 internal prototype to avoid an error. */
6016 /* We use char because int might match the return type of a gcc2 6044 /* We use char because int might match the return type of a gcc2
6017 builtin and then its argument prototype would still apply. */ 6045 builtin and then its argument prototype would still apply. */
6018 char XauGetAuthByAddr(); 6046 char XauGetAuthByAddr();
6019 6047
6020 int main() { 6048 int main() {
6021 XauGetAuthByAddr() 6049 XauGetAuthByAddr()
6022 ; return 0; } 6050 ; return 0; }
6023 EOF 6051 EOF
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6052 if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6025 rm -rf conftest* 6053 rm -rf conftest*
6026 eval "ac_cv_lib_$ac_lib_var=yes" 6054 eval "ac_cv_lib_$ac_lib_var=yes"
6027 else 6055 else
6028 echo "configure: failed program was:" >&5 6056 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5 6057 cat conftest.$ac_ext >&5
6064 6092
6065 if test "$with_tooltalk" != "no" ; then 6093 if test "$with_tooltalk" != "no" ; then
6066 for dir in "" "Tt/" "desktop/" ; do 6094 for dir in "" "Tt/" "desktop/" ; do
6067 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6095 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6068 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6096 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6069 echo "configure:6070: checking for ${dir}tt_c.h" >&5 6097 echo "configure:6098: checking for ${dir}tt_c.h" >&5
6070 6098
6071 cat > conftest.$ac_ext <<EOF 6099 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure" 6100 #line 6101 "configure"
6073 #include "confdefs.h" 6101 #include "confdefs.h"
6074 #include <${dir}tt_c.h> 6102 #include <${dir}tt_c.h>
6075 EOF 6103 EOF
6076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6077 { (eval echo configure:6078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6105 { (eval echo configure:6106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6078 ac_err=`grep -v '^ *+' conftest.out` 6106 ac_err=`grep -v '^ *+' conftest.out`
6079 if test -z "$ac_err"; then 6107 if test -z "$ac_err"; then
6080 rm -rf conftest* 6108 rm -rf conftest*
6081 eval "ac_cv_header_$ac_safe=yes" 6109 eval "ac_cv_header_$ac_safe=yes"
6082 else 6110 else
6108 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6136 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6109 6137
6110 xe_msg_checking="for tt_message_create in -ltt" 6138 xe_msg_checking="for tt_message_create in -ltt"
6111 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6139 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6112 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6140 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6113 echo "configure:6114: checking "$xe_msg_checking"" >&5 6141 echo "configure:6142: checking "$xe_msg_checking"" >&5
6114 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6142 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6115 6143
6116 xe_check_libs=" -ltt $extra_libs" 6144 xe_check_libs=" -ltt $extra_libs"
6117 cat > conftest.$ac_ext <<EOF 6145 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure" 6146 #line 6147 "configure"
6119 #include "confdefs.h" 6147 #include "confdefs.h"
6120 /* Override any gcc2 internal prototype to avoid an error. */ 6148 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2 6149 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */ 6150 builtin and then its argument prototype would still apply. */
6123 char tt_message_create(); 6151 char tt_message_create();
6124 6152
6125 int main() { 6153 int main() {
6126 tt_message_create() 6154 tt_message_create()
6127 ; return 0; } 6155 ; return 0; }
6128 EOF 6156 EOF
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6157 if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6130 rm -rf conftest* 6158 rm -rf conftest*
6131 eval "ac_cv_lib_$ac_lib_var=yes" 6159 eval "ac_cv_lib_$ac_lib_var=yes"
6132 else 6160 else
6133 echo "configure: failed program was:" >&5 6161 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5 6162 cat conftest.$ac_ext >&5
6181 fi 6209 fi
6182 fi 6210 fi
6183 6211
6184 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6212 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6185 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6213 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6186 echo "configure:6187: checking for Dt/Dt.h" >&5 6214 echo "configure:6215: checking for Dt/Dt.h" >&5
6187 6215
6188 cat > conftest.$ac_ext <<EOF 6216 cat > conftest.$ac_ext <<EOF
6189 #line 6190 "configure" 6217 #line 6218 "configure"
6190 #include "confdefs.h" 6218 #include "confdefs.h"
6191 #include <Dt/Dt.h> 6219 #include <Dt/Dt.h>
6192 EOF 6220 EOF
6193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6194 { (eval echo configure:6195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6222 { (eval echo configure:6223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6195 ac_err=`grep -v '^ *+' conftest.out` 6223 ac_err=`grep -v '^ *+' conftest.out`
6196 if test -z "$ac_err"; then 6224 if test -z "$ac_err"; then
6197 rm -rf conftest* 6225 rm -rf conftest*
6198 eval "ac_cv_header_$ac_safe=yes" 6226 eval "ac_cv_header_$ac_safe=yes"
6199 else 6227 else
6212 with_cde=no 6240 with_cde=no
6213 fi 6241 fi
6214 } 6242 }
6215 test -z "$with_cde" && { 6243 test -z "$with_cde" && {
6216 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6244 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6217 echo "configure:6218: checking for DtDndDragStart in -lDtSvc" >&5 6245 echo "configure:6246: checking for DtDndDragStart in -lDtSvc" >&5
6218 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6246 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6219 6247
6220 xe_check_libs=" -lDtSvc " 6248 xe_check_libs=" -lDtSvc "
6221 cat > conftest.$ac_ext <<EOF 6249 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure" 6250 #line 6251 "configure"
6223 #include "confdefs.h" 6251 #include "confdefs.h"
6224 /* Override any gcc2 internal prototype to avoid an error. */ 6252 /* Override any gcc2 internal prototype to avoid an error. */
6225 /* We use char because int might match the return type of a gcc2 6253 /* We use char because int might match the return type of a gcc2
6226 builtin and then its argument prototype would still apply. */ 6254 builtin and then its argument prototype would still apply. */
6227 char DtDndDragStart(); 6255 char DtDndDragStart();
6228 6256
6229 int main() { 6257 int main() {
6230 DtDndDragStart() 6258 DtDndDragStart()
6231 ; return 0; } 6259 ; return 0; }
6232 EOF 6260 EOF
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6234 rm -rf conftest* 6262 rm -rf conftest*
6235 eval "ac_cv_lib_$ac_lib_var=yes" 6263 eval "ac_cv_lib_$ac_lib_var=yes"
6236 else 6264 else
6237 echo "configure: failed program was:" >&5 6265 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5 6266 cat conftest.$ac_ext >&5
6297 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6325 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6298 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6326 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6299 fi 6327 fi
6300 6328
6301 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6329 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6302 echo "configure:6303: checking if drag and drop API is needed" >&5 6330 echo "configure:6331: checking if drag and drop API is needed" >&5
6303 if test "$with_dragndrop" != "no" ; then 6331 if test "$with_dragndrop" != "no" ; then
6304 if test -n "$dragndrop_proto" ; then 6332 if test -n "$dragndrop_proto" ; then
6305 with_dragndrop=yes 6333 with_dragndrop=yes
6306 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6334 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6307 { test "$extra_verbose" = "yes" && cat << \EOF 6335 { test "$extra_verbose" = "yes" && cat << \EOF
6318 echo "$ac_t""no" 1>&6 6346 echo "$ac_t""no" 1>&6
6319 fi 6347 fi
6320 fi 6348 fi
6321 6349
6322 echo "checking for LDAP" 1>&6 6350 echo "checking for LDAP" 1>&6
6323 echo "configure:6324: checking for LDAP" >&5 6351 echo "configure:6352: checking for LDAP" >&5
6324 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6352 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6325 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6353 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6326 echo "configure:6327: checking for ldap.h" >&5 6354 echo "configure:6355: checking for ldap.h" >&5
6327 6355
6328 cat > conftest.$ac_ext <<EOF 6356 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure" 6357 #line 6358 "configure"
6330 #include "confdefs.h" 6358 #include "confdefs.h"
6331 #include <ldap.h> 6359 #include <ldap.h>
6332 EOF 6360 EOF
6333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6334 { (eval echo configure:6335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6362 { (eval echo configure:6363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6335 ac_err=`grep -v '^ *+' conftest.out` 6363 ac_err=`grep -v '^ *+' conftest.out`
6336 if test -z "$ac_err"; then 6364 if test -z "$ac_err"; then
6337 rm -rf conftest* 6365 rm -rf conftest*
6338 eval "ac_cv_header_$ac_safe=yes" 6366 eval "ac_cv_header_$ac_safe=yes"
6339 else 6367 else
6352 with_ldap=no 6380 with_ldap=no
6353 fi 6381 fi
6354 } 6382 }
6355 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6383 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6356 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6384 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6357 echo "configure:6358: checking for lber.h" >&5 6385 echo "configure:6386: checking for lber.h" >&5
6358 6386
6359 cat > conftest.$ac_ext <<EOF 6387 cat > conftest.$ac_ext <<EOF
6360 #line 6361 "configure" 6388 #line 6389 "configure"
6361 #include "confdefs.h" 6389 #include "confdefs.h"
6362 #include <lber.h> 6390 #include <lber.h>
6363 EOF 6391 EOF
6364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6365 { (eval echo configure:6366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6393 { (eval echo configure:6394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6366 ac_err=`grep -v '^ *+' conftest.out` 6394 ac_err=`grep -v '^ *+' conftest.out`
6367 if test -z "$ac_err"; then 6395 if test -z "$ac_err"; then
6368 rm -rf conftest* 6396 rm -rf conftest*
6369 eval "ac_cv_header_$ac_safe=yes" 6397 eval "ac_cv_header_$ac_safe=yes"
6370 else 6398 else
6386 if test "$with_ldap" != "no"; then 6414 if test "$with_ldap" != "no"; then
6387 test -z "$with_umich_ldap" && { 6415 test -z "$with_umich_ldap" && {
6388 xe_msg_checking="for ldap_open in -lldap" 6416 xe_msg_checking="for ldap_open in -lldap"
6389 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6417 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6390 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6418 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6391 echo "configure:6392: checking "$xe_msg_checking"" >&5 6419 echo "configure:6420: checking "$xe_msg_checking"" >&5
6392 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6420 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6393 6421
6394 xe_check_libs=" -lldap -llber" 6422 xe_check_libs=" -lldap -llber"
6395 cat > conftest.$ac_ext <<EOF 6423 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure" 6424 #line 6425 "configure"
6397 #include "confdefs.h" 6425 #include "confdefs.h"
6398 /* Override any gcc2 internal prototype to avoid an error. */ 6426 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2 6427 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */ 6428 builtin and then its argument prototype would still apply. */
6401 char ldap_open(); 6429 char ldap_open();
6402 6430
6403 int main() { 6431 int main() {
6404 ldap_open() 6432 ldap_open()
6405 ; return 0; } 6433 ; return 0; }
6406 EOF 6434 EOF
6407 if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6408 rm -rf conftest* 6436 rm -rf conftest*
6409 eval "ac_cv_lib_$ac_lib_var=yes" 6437 eval "ac_cv_lib_$ac_lib_var=yes"
6410 else 6438 else
6411 echo "configure: failed program was:" >&5 6439 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5 6440 cat conftest.$ac_ext >&5
6425 fi 6453 fi
6426 6454
6427 } 6455 }
6428 test "$with_umich_ldap" = "no" && { 6456 test "$with_umich_ldap" = "no" && {
6429 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6457 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6430 echo "configure:6431: checking for ldap_set_option in -lldap10" >&5 6458 echo "configure:6459: checking for ldap_set_option in -lldap10" >&5
6431 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6459 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6432 6460
6433 xe_check_libs=" -lldap10 " 6461 xe_check_libs=" -lldap10 "
6434 cat > conftest.$ac_ext <<EOF 6462 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure" 6463 #line 6464 "configure"
6436 #include "confdefs.h" 6464 #include "confdefs.h"
6437 /* Override any gcc2 internal prototype to avoid an error. */ 6465 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2 6466 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */ 6467 builtin and then its argument prototype would still apply. */
6440 char ldap_set_option(); 6468 char ldap_set_option();
6441 6469
6442 int main() { 6470 int main() {
6443 ldap_set_option() 6471 ldap_set_option()
6444 ; return 0; } 6472 ; return 0; }
6445 EOF 6473 EOF
6446 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6447 rm -rf conftest* 6475 rm -rf conftest*
6448 eval "ac_cv_lib_$ac_lib_var=yes" 6476 eval "ac_cv_lib_$ac_lib_var=yes"
6449 else 6477 else
6450 echo "configure: failed program was:" >&5 6478 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5 6479 cat conftest.$ac_ext >&5
6505 fi 6533 fi
6506 6534
6507 6535
6508 if test "$window_system" != "none"; then 6536 if test "$window_system" != "none"; then
6509 echo "checking for graphics libraries" 1>&6 6537 echo "checking for graphics libraries" 1>&6
6510 echo "configure:6511: checking for graphics libraries" >&5 6538 echo "configure:6539: checking for graphics libraries" >&5
6511 6539
6512 xpm_problem="" 6540 xpm_problem=""
6513 if test -z "$with_xpm"; then 6541 if test -z "$with_xpm"; then
6514 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6542 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6515 echo "configure:6516: checking for Xpm - no older than 3.4f" >&5 6543 echo "configure:6544: checking for Xpm - no older than 3.4f" >&5
6516 xe_check_libs=-lXpm 6544 xe_check_libs=-lXpm
6517 cat > conftest.$ac_ext <<EOF 6545 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure" 6546 #line 6547 "configure"
6519 #include "confdefs.h" 6547 #include "confdefs.h"
6520 #include <X11/xpm.h> 6548 #include <X11/xpm.h>
6521 int main(int c, char **v) { 6549 int main(int c, char **v) {
6522 return c == 1 ? 0 : 6550 return c == 1 ? 0 :
6523 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6551 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6524 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6552 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6525 EOF 6553 EOF
6526 if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6527 then 6555 then
6528 ./conftest dummy_arg; xpm_status=$?; 6556 ./conftest dummy_arg; xpm_status=$?;
6529 if test "$xpm_status" = "0"; then 6557 if test "$xpm_status" = "0"; then
6530 with_xpm=yes; 6558 with_xpm=yes;
6531 else 6559 else
6563 EOF 6591 EOF
6564 } 6592 }
6565 6593
6566 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6594 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6567 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6595 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6568 echo "configure:6569: checking for \"FOR_MSW\" xpm" >&5 6596 echo "configure:6597: checking for \"FOR_MSW\" xpm" >&5
6569 xe_check_libs=-lXpm 6597 xe_check_libs=-lXpm
6570 cat > conftest.$ac_ext <<EOF 6598 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure" 6599 #line 6600 "configure"
6572 #include "confdefs.h" 6600 #include "confdefs.h"
6573 6601
6574 int main() { 6602 int main() {
6575 XpmCreatePixmapFromData() 6603 XpmCreatePixmapFromData()
6576 ; return 0; } 6604 ; return 0; }
6577 EOF 6605 EOF
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6579 rm -rf conftest* 6607 rm -rf conftest*
6580 xpm_for_msw=no 6608 xpm_for_msw=no
6581 else 6609 else
6582 echo "configure: failed program was:" >&5 6610 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5 6611 cat conftest.$ac_ext >&5
6597 } 6625 }
6598 6626
6599 fi 6627 fi
6600 fi 6628 fi
6601 6629
6630 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6631 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6632 echo "configure:6633: checking for compface.h" >&5
6633
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure"
6636 #include "confdefs.h"
6637 #include <compface.h>
6638 EOF
6639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6640 { (eval echo configure:6641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6641 ac_err=`grep -v '^ *+' conftest.out`
6642 if test -z "$ac_err"; then
6643 rm -rf conftest*
6644 eval "ac_cv_header_$ac_safe=yes"
6645 else
6646 echo "$ac_err" >&5
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6649 rm -rf conftest*
6650 eval "ac_cv_header_$ac_safe=no"
6651 fi
6652 rm -f conftest*
6653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6654 echo "$ac_t""yes" 1>&6
6655 :
6656 else
6657 echo "$ac_t""no" 1>&6
6658 with_xface=no
6659 fi
6660 }
6661 test -z "$with_xface" && {
6662 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6663 echo "configure:6664: checking for UnGenFace in -lcompface" >&5
6664 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6665
6666 xe_check_libs=" -lcompface "
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6673 char UnGenFace();
6674
6675 int main() {
6676 UnGenFace()
6677 ; return 0; }
6678 EOF
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6680 rm -rf conftest*
6681 eval "ac_cv_lib_$ac_lib_var=yes"
6682 else
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6685 rm -rf conftest*
6686 eval "ac_cv_lib_$ac_lib_var=no"
6687 fi
6688 rm -f conftest*
6689 xe_check_libs=""
6690
6691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6692 echo "$ac_t""yes" 1>&6
6693 :
6694 else
6695 echo "$ac_t""no" 1>&6
6696 with_xface=no
6697 fi
6698
6699 }
6700 test -z "$with_xface" && with_xface=yes
6701 if test "$with_xface" = "yes"; then
6702 { test "$extra_verbose" = "yes" && cat << \EOF
6703 Defining HAVE_XFACE
6704 EOF
6705 cat >> confdefs.h <<\EOF
6706 #define HAVE_XFACE 1
6707 EOF
6708 }
6709
6710 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6711 fi
6712
6602 if test "$with_gif" != "no"; then 6713 if test "$with_gif" != "no"; then
6603 with_gif="yes" 6714 with_gif="yes"
6604 { test "$extra_verbose" = "yes" && cat << \EOF 6715 { test "$extra_verbose" = "yes" && cat << \EOF
6605 Defining HAVE_GIF 6716 Defining HAVE_GIF
6606 EOF 6717 EOF
6615 fi 6726 fi
6616 6727
6617 if test "$with_png $with_tiff" != "no no"; then 6728 if test "$with_png $with_tiff" != "no no"; then
6618 6729
6619 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6730 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6620 echo "configure:6621: checking for inflate in -lc" >&5 6731 echo "configure:6732: checking for inflate in -lc" >&5
6621 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6732 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6622 6733
6623 xe_check_libs=" -lc " 6734 xe_check_libs=" -lc "
6624 cat > conftest.$ac_ext <<EOF 6735 cat > conftest.$ac_ext <<EOF
6625 #line 6626 "configure" 6736 #line 6737 "configure"
6626 #include "confdefs.h" 6737 #include "confdefs.h"
6627 /* Override any gcc2 internal prototype to avoid an error. */ 6738 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2 6739 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */ 6740 builtin and then its argument prototype would still apply. */
6630 char inflate(); 6741 char inflate();
6631 6742
6632 int main() { 6743 int main() {
6633 inflate() 6744 inflate()
6634 ; return 0; } 6745 ; return 0; }
6635 EOF 6746 EOF
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6747 if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6637 rm -rf conftest* 6748 rm -rf conftest*
6638 eval "ac_cv_lib_$ac_lib_var=yes" 6749 eval "ac_cv_lib_$ac_lib_var=yes"
6639 else 6750 else
6640 echo "configure: failed program was:" >&5 6751 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5 6752 cat conftest.$ac_ext >&5
6650 : 6761 :
6651 else 6762 else
6652 echo "$ac_t""no" 1>&6 6763 echo "$ac_t""no" 1>&6
6653 6764
6654 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6765 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6655 echo "configure:6656: checking for inflate in -lz" >&5 6766 echo "configure:6767: checking for inflate in -lz" >&5
6656 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6767 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6657 6768
6658 xe_check_libs=" -lz " 6769 xe_check_libs=" -lz "
6659 cat > conftest.$ac_ext <<EOF 6770 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure" 6771 #line 6772 "configure"
6661 #include "confdefs.h" 6772 #include "confdefs.h"
6662 /* Override any gcc2 internal prototype to avoid an error. */ 6773 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2 6774 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */ 6775 builtin and then its argument prototype would still apply. */
6665 char inflate(); 6776 char inflate();
6666 6777
6667 int main() { 6778 int main() {
6668 inflate() 6779 inflate()
6669 ; return 0; } 6780 ; return 0; }
6670 EOF 6781 EOF
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6672 rm -rf conftest* 6783 rm -rf conftest*
6673 eval "ac_cv_lib_$ac_lib_var=yes" 6784 eval "ac_cv_lib_$ac_lib_var=yes"
6674 else 6785 else
6675 echo "configure: failed program was:" >&5 6786 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5 6787 cat conftest.$ac_ext >&5
6685 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6796 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6686 else 6797 else
6687 echo "$ac_t""no" 1>&6 6798 echo "$ac_t""no" 1>&6
6688 6799
6689 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6800 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6690 echo "configure:6691: checking for inflate in -lgz" >&5 6801 echo "configure:6802: checking for inflate in -lgz" >&5
6691 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6802 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6692 6803
6693 xe_check_libs=" -lgz " 6804 xe_check_libs=" -lgz "
6694 cat > conftest.$ac_ext <<EOF 6805 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure" 6806 #line 6807 "configure"
6696 #include "confdefs.h" 6807 #include "confdefs.h"
6697 /* Override any gcc2 internal prototype to avoid an error. */ 6808 /* Override any gcc2 internal prototype to avoid an error. */
6698 /* We use char because int might match the return type of a gcc2 6809 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */ 6810 builtin and then its argument prototype would still apply. */
6700 char inflate(); 6811 char inflate();
6701 6812
6702 int main() { 6813 int main() {
6703 inflate() 6814 inflate()
6704 ; return 0; } 6815 ; return 0; }
6705 EOF 6816 EOF
6706 if { (eval echo configure:6707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6817 if { (eval echo configure:6818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6707 rm -rf conftest* 6818 rm -rf conftest*
6708 eval "ac_cv_lib_$ac_lib_var=yes" 6819 eval "ac_cv_lib_$ac_lib_var=yes"
6709 else 6820 else
6710 echo "configure: failed program was:" >&5 6821 echo "configure: failed program was:" >&5
6711 cat conftest.$ac_ext >&5 6822 cat conftest.$ac_ext >&5
6731 6842
6732 fi 6843 fi
6733 6844
6734 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6845 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6735 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6846 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6736 echo "configure:6737: checking for jpeglib.h" >&5 6847 echo "configure:6848: checking for jpeglib.h" >&5
6737 6848
6738 cat > conftest.$ac_ext <<EOF 6849 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure" 6850 #line 6851 "configure"
6740 #include "confdefs.h" 6851 #include "confdefs.h"
6741 #include <jpeglib.h> 6852 #include <jpeglib.h>
6742 EOF 6853 EOF
6743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6744 { (eval echo configure:6745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6855 { (eval echo configure:6856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6745 ac_err=`grep -v '^ *+' conftest.out` 6856 ac_err=`grep -v '^ *+' conftest.out`
6746 if test -z "$ac_err"; then 6857 if test -z "$ac_err"; then
6747 rm -rf conftest* 6858 rm -rf conftest*
6748 eval "ac_cv_header_$ac_safe=yes" 6859 eval "ac_cv_header_$ac_safe=yes"
6749 else 6860 else
6762 with_jpeg=no 6873 with_jpeg=no
6763 fi 6874 fi
6764 } 6875 }
6765 test -z "$with_jpeg" && { 6876 test -z "$with_jpeg" && {
6766 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6877 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6767 echo "configure:6768: checking for jpeg_destroy_decompress in -ljpeg" >&5 6878 echo "configure:6879: checking for jpeg_destroy_decompress in -ljpeg" >&5
6768 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6879 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6769 6880
6770 xe_check_libs=" -ljpeg " 6881 xe_check_libs=" -ljpeg "
6771 cat > conftest.$ac_ext <<EOF 6882 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure" 6883 #line 6884 "configure"
6773 #include "confdefs.h" 6884 #include "confdefs.h"
6774 /* Override any gcc2 internal prototype to avoid an error. */ 6885 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2 6886 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */ 6887 builtin and then its argument prototype would still apply. */
6777 char jpeg_destroy_decompress(); 6888 char jpeg_destroy_decompress();
6778 6889
6779 int main() { 6890 int main() {
6780 jpeg_destroy_decompress() 6891 jpeg_destroy_decompress()
6781 ; return 0; } 6892 ; return 0; }
6782 EOF 6893 EOF
6783 if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6894 if { (eval echo configure:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6784 rm -rf conftest* 6895 rm -rf conftest*
6785 eval "ac_cv_lib_$ac_lib_var=yes" 6896 eval "ac_cv_lib_$ac_lib_var=yes"
6786 else 6897 else
6787 echo "configure: failed program was:" >&5 6898 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5 6899 cat conftest.$ac_ext >&5
6814 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6925 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6815 fi 6926 fi
6816 6927
6817 png_problem="" 6928 png_problem=""
6818 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6929 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6819 echo "configure:6820: checking for pow" >&5 6930 echo "configure:6931: checking for pow" >&5
6820 6931
6821 cat > conftest.$ac_ext <<EOF 6932 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure" 6933 #line 6934 "configure"
6823 #include "confdefs.h" 6934 #include "confdefs.h"
6824 /* System header to define __stub macros and hopefully few prototypes, 6935 /* System header to define __stub macros and hopefully few prototypes,
6825 which can conflict with char pow(); below. */ 6936 which can conflict with char pow(); below. */
6826 #include <assert.h> 6937 #include <assert.h>
6827 /* Override any gcc2 internal prototype to avoid an error. */ 6938 /* Override any gcc2 internal prototype to avoid an error. */
6840 pow(); 6951 pow();
6841 #endif 6952 #endif
6842 6953
6843 ; return 0; } 6954 ; return 0; }
6844 EOF 6955 EOF
6845 if { (eval echo configure:6846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6956 if { (eval echo configure:6957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6846 rm -rf conftest* 6957 rm -rf conftest*
6847 eval "ac_cv_func_pow=yes" 6958 eval "ac_cv_func_pow=yes"
6848 else 6959 else
6849 echo "configure: failed program was:" >&5 6960 echo "configure: failed program was:" >&5
6850 cat conftest.$ac_ext >&5 6961 cat conftest.$ac_ext >&5
6861 with_png=no 6972 with_png=no
6862 fi 6973 fi
6863 } 6974 }
6864 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6975 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6865 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6976 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6866 echo "configure:6867: checking for png.h" >&5 6977 echo "configure:6978: checking for png.h" >&5
6867 6978
6868 cat > conftest.$ac_ext <<EOF 6979 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure" 6980 #line 6981 "configure"
6870 #include "confdefs.h" 6981 #include "confdefs.h"
6871 #include <png.h> 6982 #include <png.h>
6872 EOF 6983 EOF
6873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6874 { (eval echo configure:6875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6985 { (eval echo configure:6986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6875 ac_err=`grep -v '^ *+' conftest.out` 6986 ac_err=`grep -v '^ *+' conftest.out`
6876 if test -z "$ac_err"; then 6987 if test -z "$ac_err"; then
6877 rm -rf conftest* 6988 rm -rf conftest*
6878 eval "ac_cv_header_$ac_safe=yes" 6989 eval "ac_cv_header_$ac_safe=yes"
6879 else 6990 else
6892 with_png=no 7003 with_png=no
6893 fi 7004 fi
6894 } 7005 }
6895 test -z "$with_png" && { 7006 test -z "$with_png" && {
6896 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7007 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
6897 echo "configure:6898: checking for png_read_image in -lpng" >&5 7008 echo "configure:7009: checking for png_read_image in -lpng" >&5
6898 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7009 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6899 7010
6900 xe_check_libs=" -lpng " 7011 xe_check_libs=" -lpng "
6901 cat > conftest.$ac_ext <<EOF 7012 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure" 7013 #line 7014 "configure"
6903 #include "confdefs.h" 7014 #include "confdefs.h"
6904 /* Override any gcc2 internal prototype to avoid an error. */ 7015 /* Override any gcc2 internal prototype to avoid an error. */
6905 /* We use char because int might match the return type of a gcc2 7016 /* We use char because int might match the return type of a gcc2
6906 builtin and then its argument prototype would still apply. */ 7017 builtin and then its argument prototype would still apply. */
6907 char png_read_image(); 7018 char png_read_image();
6908 7019
6909 int main() { 7020 int main() {
6910 png_read_image() 7021 png_read_image()
6911 ; return 0; } 7022 ; return 0; }
6912 EOF 7023 EOF
6913 if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6914 rm -rf conftest* 7025 rm -rf conftest*
6915 eval "ac_cv_lib_$ac_lib_var=yes" 7026 eval "ac_cv_lib_$ac_lib_var=yes"
6916 else 7027 else
6917 echo "configure: failed program was:" >&5 7028 echo "configure: failed program was:" >&5
6918 cat conftest.$ac_ext >&5 7029 cat conftest.$ac_ext >&5
6931 fi 7042 fi
6932 7043
6933 } 7044 }
6934 if test -z "$with_png"; then 7045 if test -z "$with_png"; then
6935 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7046 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
6936 echo "configure:6937: checking for workable png version information" >&5 7047 echo "configure:7048: checking for workable png version information" >&5
6937 xe_check_libs="-lpng -lz" 7048 xe_check_libs="-lpng -lz"
6938 cat > conftest.$ac_ext <<EOF 7049 cat > conftest.$ac_ext <<EOF
6939 #line 6940 "configure" 7050 #line 7051 "configure"
6940 #include "confdefs.h" 7051 #include "confdefs.h"
6941 #include <png.h> 7052 #include <png.h>
6942 int main(int c, char **v) { 7053 int main(int c, char **v) {
6943 if (c == 1) return 0; 7054 if (c == 1) return 0;
6944 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7055 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6945 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7056 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
6946 EOF 7057 EOF
6947 if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6948 then 7059 then
6949 ./conftest dummy_arg; png_status=$?; 7060 ./conftest dummy_arg; png_status=$?;
6950 if test "$png_status" = "0"; then 7061 if test "$png_status" = "0"; then
6951 with_png=yes; 7062 with_png=yes;
6952 else 7063 else
6985 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7096 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
6986 fi 7097 fi
6987 7098
6988 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7099 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
6989 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7100 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
6990 echo "configure:6991: checking for tiffio.h" >&5 7101 echo "configure:7102: checking for tiffio.h" >&5
6991 7102
6992 cat > conftest.$ac_ext <<EOF 7103 cat > conftest.$ac_ext <<EOF
6993 #line 6994 "configure" 7104 #line 7105 "configure"
6994 #include "confdefs.h" 7105 #include "confdefs.h"
6995 #include <tiffio.h> 7106 #include <tiffio.h>
6996 EOF 7107 EOF
6997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6998 { (eval echo configure:6999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7109 { (eval echo configure:7110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6999 ac_err=`grep -v '^ *+' conftest.out` 7110 ac_err=`grep -v '^ *+' conftest.out`
7000 if test -z "$ac_err"; then 7111 if test -z "$ac_err"; then
7001 rm -rf conftest* 7112 rm -rf conftest*
7002 eval "ac_cv_header_$ac_safe=yes" 7113 eval "ac_cv_header_$ac_safe=yes"
7003 else 7114 else
7016 with_tiff=no 7127 with_tiff=no
7017 fi 7128 fi
7018 } 7129 }
7019 test -z "$with_tiff" && { 7130 test -z "$with_tiff" && {
7020 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7131 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7021 echo "configure:7022: checking for TIFFClientOpen in -ltiff" >&5 7132 echo "configure:7133: checking for TIFFClientOpen in -ltiff" >&5
7022 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7133 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7023 7134
7024 xe_check_libs=" -ltiff " 7135 xe_check_libs=" -ltiff "
7025 cat > conftest.$ac_ext <<EOF 7136 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure" 7137 #line 7138 "configure"
7027 #include "confdefs.h" 7138 #include "confdefs.h"
7028 /* Override any gcc2 internal prototype to avoid an error. */ 7139 /* Override any gcc2 internal prototype to avoid an error. */
7029 /* We use char because int might match the return type of a gcc2 7140 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */ 7141 builtin and then its argument prototype would still apply. */
7031 char TIFFClientOpen(); 7142 char TIFFClientOpen();
7032 7143
7033 int main() { 7144 int main() {
7034 TIFFClientOpen() 7145 TIFFClientOpen()
7035 ; return 0; } 7146 ; return 0; }
7036 EOF 7147 EOF
7037 if { (eval echo configure:7038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7148 if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7038 rm -rf conftest* 7149 rm -rf conftest*
7039 eval "ac_cv_lib_$ac_lib_var=yes" 7150 eval "ac_cv_lib_$ac_lib_var=yes"
7040 else 7151 else
7041 echo "configure: failed program was:" >&5 7152 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5 7153 cat conftest.$ac_ext >&5
7071 7182
7072 7183
7073 if test "$with_x11" = "yes"; then 7184 if test "$with_x11" = "yes"; then
7074 7185
7075 echo "checking for X11 graphics libraries" 1>&6 7186 echo "checking for X11 graphics libraries" 1>&6
7076 echo "configure:7077: checking for X11 graphics libraries" >&5 7187 echo "configure:7188: checking for X11 graphics libraries" >&5
7077
7078 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7079 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7080 echo "configure:7081: checking for compface.h" >&5
7081
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 #include <compface.h>
7086 EOF
7087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7088 { (eval echo configure:7089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7089 ac_err=`grep -v '^ *+' conftest.out`
7090 if test -z "$ac_err"; then
7091 rm -rf conftest*
7092 eval "ac_cv_header_$ac_safe=yes"
7093 else
7094 echo "$ac_err" >&5
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7097 rm -rf conftest*
7098 eval "ac_cv_header_$ac_safe=no"
7099 fi
7100 rm -f conftest*
7101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7102 echo "$ac_t""yes" 1>&6
7103 :
7104 else
7105 echo "$ac_t""no" 1>&6
7106 with_xface=no
7107 fi
7108 }
7109 test -z "$with_xface" && {
7110 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7111 echo "configure:7112: checking for UnGenFace in -lcompface" >&5
7112 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7113
7114 xe_check_libs=" -lcompface "
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7118 /* Override any gcc2 internal prototype to avoid an error. */
7119 /* We use char because int might match the return type of a gcc2
7120 builtin and then its argument prototype would still apply. */
7121 char UnGenFace();
7122
7123 int main() {
7124 UnGenFace()
7125 ; return 0; }
7126 EOF
7127 if { (eval echo configure:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7128 rm -rf conftest*
7129 eval "ac_cv_lib_$ac_lib_var=yes"
7130 else
7131 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7133 rm -rf conftest*
7134 eval "ac_cv_lib_$ac_lib_var=no"
7135 fi
7136 rm -f conftest*
7137 xe_check_libs=""
7138
7139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7140 echo "$ac_t""yes" 1>&6
7141 :
7142 else
7143 echo "$ac_t""no" 1>&6
7144 with_xface=no
7145 fi
7146
7147 }
7148 test -z "$with_xface" && with_xface=yes
7149 if test "$with_xface" = "yes"; then
7150 { test "$extra_verbose" = "yes" && cat << \EOF
7151 Defining HAVE_XFACE
7152 EOF
7153 cat >> confdefs.h <<\EOF
7154 #define HAVE_XFACE 1
7155 EOF
7156 }
7157
7158 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7159 fi
7160 7188
7161 7189
7162 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7190 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7163 echo "configure:7164: checking for XawScrollbarSetThumb in -lXaw" >&5 7191 echo "configure:7192: checking for XawScrollbarSetThumb in -lXaw" >&5
7164 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7192 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7165 7193
7166 xe_check_libs=" -lXaw " 7194 xe_check_libs=" -lXaw "
7167 cat > conftest.$ac_ext <<EOF 7195 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure" 7196 #line 7197 "configure"
7169 #include "confdefs.h" 7197 #include "confdefs.h"
7170 /* Override any gcc2 internal prototype to avoid an error. */ 7198 /* Override any gcc2 internal prototype to avoid an error. */
7171 /* We use char because int might match the return type of a gcc2 7199 /* We use char because int might match the return type of a gcc2
7172 builtin and then its argument prototype would still apply. */ 7200 builtin and then its argument prototype would still apply. */
7173 char XawScrollbarSetThumb(); 7201 char XawScrollbarSetThumb();
7174 7202
7175 int main() { 7203 int main() {
7176 XawScrollbarSetThumb() 7204 XawScrollbarSetThumb()
7177 ; return 0; } 7205 ; return 0; }
7178 EOF 7206 EOF
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7207 if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7180 rm -rf conftest* 7208 rm -rf conftest*
7181 eval "ac_cv_lib_$ac_lib_var=yes" 7209 eval "ac_cv_lib_$ac_lib_var=yes"
7182 else 7210 else
7183 echo "configure: failed program was:" >&5 7211 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5 7212 cat conftest.$ac_ext >&5
7198 7226
7199 7227
7200 7228
7201 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7229 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7202 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7230 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7203 echo "configure:7204: checking for Xm/Xm.h" >&5 7231 echo "configure:7232: checking for Xm/Xm.h" >&5
7204 7232
7205 cat > conftest.$ac_ext <<EOF 7233 cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure" 7234 #line 7235 "configure"
7207 #include "confdefs.h" 7235 #include "confdefs.h"
7208 #include <Xm/Xm.h> 7236 #include <Xm/Xm.h>
7209 EOF 7237 EOF
7210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7211 { (eval echo configure:7212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7239 { (eval echo configure:7240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7212 ac_err=`grep -v '^ *+' conftest.out` 7240 ac_err=`grep -v '^ *+' conftest.out`
7213 if test -z "$ac_err"; then 7241 if test -z "$ac_err"; then
7214 rm -rf conftest* 7242 rm -rf conftest*
7215 eval "ac_cv_header_$ac_safe=yes" 7243 eval "ac_cv_header_$ac_safe=yes"
7216 else 7244 else
7223 rm -f conftest* 7251 rm -f conftest*
7224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7225 echo "$ac_t""yes" 1>&6 7253 echo "$ac_t""yes" 1>&6
7226 7254
7227 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7255 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7228 echo "configure:7229: checking for XmStringFree in -lXm" >&5 7256 echo "configure:7257: checking for XmStringFree in -lXm" >&5
7229 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7257 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7230 7258
7231 xe_check_libs=" -lXm " 7259 xe_check_libs=" -lXm "
7232 cat > conftest.$ac_ext <<EOF 7260 cat > conftest.$ac_ext <<EOF
7233 #line 7234 "configure" 7261 #line 7262 "configure"
7234 #include "confdefs.h" 7262 #include "confdefs.h"
7235 /* Override any gcc2 internal prototype to avoid an error. */ 7263 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2 7264 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */ 7265 builtin and then its argument prototype would still apply. */
7238 char XmStringFree(); 7266 char XmStringFree();
7239 7267
7240 int main() { 7268 int main() {
7241 XmStringFree() 7269 XmStringFree()
7242 ; return 0; } 7270 ; return 0; }
7243 EOF 7271 EOF
7244 if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7245 rm -rf conftest* 7273 rm -rf conftest*
7246 eval "ac_cv_lib_$ac_lib_var=yes" 7274 eval "ac_cv_lib_$ac_lib_var=yes"
7247 else 7275 else
7248 echo "configure: failed program was:" >&5 7276 echo "configure: failed program was:" >&5
7249 cat conftest.$ac_ext >&5 7277 cat conftest.$ac_ext >&5
7268 fi 7296 fi
7269 7297
7270 7298
7271 if test "$have_motif" = "yes"; then 7299 if test "$have_motif" = "yes"; then
7272 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7300 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7273 echo "configure:7274: checking for Lesstif" >&5 7301 echo "configure:7302: checking for Lesstif" >&5
7274 cat > conftest.$ac_ext <<EOF 7302 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure" 7303 #line 7304 "configure"
7276 #include "confdefs.h" 7304 #include "confdefs.h"
7277 #include <Xm/Xm.h> 7305 #include <Xm/Xm.h>
7278 #ifdef LESSTIF_VERSION 7306 #ifdef LESSTIF_VERSION
7279 yes 7307 yes
7280 #endif 7308 #endif
7551 fi 7579 fi
7552 fi 7580 fi
7553 7581
7554 if test "$with_mule" = "yes" ; then 7582 if test "$with_mule" = "yes" ; then
7555 echo "checking for Mule-related features" 1>&6 7583 echo "checking for Mule-related features" 1>&6
7556 echo "configure:7557: checking for Mule-related features" >&5 7584 echo "configure:7585: checking for Mule-related features" >&5
7557 { test "$extra_verbose" = "yes" && cat << \EOF 7585 { test "$extra_verbose" = "yes" && cat << \EOF
7558 Defining MULE 7586 Defining MULE
7559 EOF 7587 EOF
7560 cat >> confdefs.h <<\EOF 7588 cat >> confdefs.h <<\EOF
7561 #define MULE 1 7589 #define MULE 1
7576 7604
7577 for ac_hdr in libintl.h 7605 for ac_hdr in libintl.h
7578 do 7606 do
7579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7581 echo "configure:7582: checking for $ac_hdr" >&5 7609 echo "configure:7610: checking for $ac_hdr" >&5
7582 7610
7583 cat > conftest.$ac_ext <<EOF 7611 cat > conftest.$ac_ext <<EOF
7584 #line 7585 "configure" 7612 #line 7613 "configure"
7585 #include "confdefs.h" 7613 #include "confdefs.h"
7586 #include <$ac_hdr> 7614 #include <$ac_hdr>
7587 EOF 7615 EOF
7588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7589 { (eval echo configure:7590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7617 { (eval echo configure:7618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7590 ac_err=`grep -v '^ *+' conftest.out` 7618 ac_err=`grep -v '^ *+' conftest.out`
7591 if test -z "$ac_err"; then 7619 if test -z "$ac_err"; then
7592 rm -rf conftest* 7620 rm -rf conftest*
7593 eval "ac_cv_header_$ac_safe=yes" 7621 eval "ac_cv_header_$ac_safe=yes"
7594 else 7622 else
7615 fi 7643 fi
7616 done 7644 done
7617 7645
7618 7646
7619 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7647 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7620 echo "configure:7621: checking for strerror in -lintl" >&5 7648 echo "configure:7649: checking for strerror in -lintl" >&5
7621 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7649 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7622 7650
7623 xe_check_libs=" -lintl " 7651 xe_check_libs=" -lintl "
7624 cat > conftest.$ac_ext <<EOF 7652 cat > conftest.$ac_ext <<EOF
7625 #line 7626 "configure" 7653 #line 7654 "configure"
7626 #include "confdefs.h" 7654 #include "confdefs.h"
7627 /* Override any gcc2 internal prototype to avoid an error. */ 7655 /* Override any gcc2 internal prototype to avoid an error. */
7628 /* We use char because int might match the return type of a gcc2 7656 /* We use char because int might match the return type of a gcc2
7629 builtin and then its argument prototype would still apply. */ 7657 builtin and then its argument prototype would still apply. */
7630 char strerror(); 7658 char strerror();
7631 7659
7632 int main() { 7660 int main() {
7633 strerror() 7661 strerror()
7634 ; return 0; } 7662 ; return 0; }
7635 EOF 7663 EOF
7636 if { (eval echo configure:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7664 if { (eval echo configure:7665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7637 rm -rf conftest* 7665 rm -rf conftest*
7638 eval "ac_cv_lib_$ac_lib_var=yes" 7666 eval "ac_cv_lib_$ac_lib_var=yes"
7639 else 7667 else
7640 echo "configure: failed program was:" >&5 7668 echo "configure: failed program was:" >&5
7641 cat conftest.$ac_ext >&5 7669 cat conftest.$ac_ext >&5
7664 fi 7692 fi
7665 7693
7666 7694
7667 7695
7668 echo "checking for Mule input methods" 1>&6 7696 echo "checking for Mule input methods" 1>&6
7669 echo "configure:7670: checking for Mule input methods" >&5 7697 echo "configure:7698: checking for Mule input methods" >&5
7670 case "$with_xim" in "" | "yes" ) 7698 case "$with_xim" in "" | "yes" )
7671 echo "checking for XIM" 1>&6 7699 echo "checking for XIM" 1>&6
7672 echo "configure:7673: checking for XIM" >&5 7700 echo "configure:7701: checking for XIM" >&5
7673 if test "$have_lesstif" = "yes"; then with_xim=xlib 7701 if test "$have_lesstif" = "yes"; then with_xim=xlib
7674 else 7702 else
7675 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7703 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7676 echo "configure:7677: checking for XmImMbLookupString in -lXm" >&5 7704 echo "configure:7705: checking for XmImMbLookupString in -lXm" >&5
7677 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7705 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7678 7706
7679 xe_check_libs=" -lXm " 7707 xe_check_libs=" -lXm "
7680 cat > conftest.$ac_ext <<EOF 7708 cat > conftest.$ac_ext <<EOF
7681 #line 7682 "configure" 7709 #line 7710 "configure"
7682 #include "confdefs.h" 7710 #include "confdefs.h"
7683 /* Override any gcc2 internal prototype to avoid an error. */ 7711 /* Override any gcc2 internal prototype to avoid an error. */
7684 /* We use char because int might match the return type of a gcc2 7712 /* We use char because int might match the return type of a gcc2
7685 builtin and then its argument prototype would still apply. */ 7713 builtin and then its argument prototype would still apply. */
7686 char XmImMbLookupString(); 7714 char XmImMbLookupString();
7687 7715
7688 int main() { 7716 int main() {
7689 XmImMbLookupString() 7717 XmImMbLookupString()
7690 ; return 0; } 7718 ; return 0; }
7691 EOF 7719 EOF
7692 if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7720 if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7693 rm -rf conftest* 7721 rm -rf conftest*
7694 eval "ac_cv_lib_$ac_lib_var=yes" 7722 eval "ac_cv_lib_$ac_lib_var=yes"
7695 else 7723 else
7696 echo "configure: failed program was:" >&5 7724 echo "configure: failed program was:" >&5
7697 cat conftest.$ac_ext >&5 7725 cat conftest.$ac_ext >&5
7753 fi 7781 fi
7754 fi 7782 fi
7755 7783
7756 if test "$with_xfs" = "yes" ; then 7784 if test "$with_xfs" = "yes" ; then
7757 echo "checking for XFontSet" 1>&6 7785 echo "checking for XFontSet" 1>&6
7758 echo "configure:7759: checking for XFontSet" >&5 7786 echo "configure:7787: checking for XFontSet" >&5
7759 7787
7760 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7788 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7761 echo "configure:7762: checking for XmbDrawString in -lX11" >&5 7789 echo "configure:7790: checking for XmbDrawString in -lX11" >&5
7762 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7790 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7763 7791
7764 xe_check_libs=" -lX11 " 7792 xe_check_libs=" -lX11 "
7765 cat > conftest.$ac_ext <<EOF 7793 cat > conftest.$ac_ext <<EOF
7766 #line 7767 "configure" 7794 #line 7795 "configure"
7767 #include "confdefs.h" 7795 #include "confdefs.h"
7768 /* Override any gcc2 internal prototype to avoid an error. */ 7796 /* Override any gcc2 internal prototype to avoid an error. */
7769 /* We use char because int might match the return type of a gcc2 7797 /* We use char because int might match the return type of a gcc2
7770 builtin and then its argument prototype would still apply. */ 7798 builtin and then its argument prototype would still apply. */
7771 char XmbDrawString(); 7799 char XmbDrawString();
7772 7800
7773 int main() { 7801 int main() {
7774 XmbDrawString() 7802 XmbDrawString()
7775 ; return 0; } 7803 ; return 0; }
7776 EOF 7804 EOF
7777 if { (eval echo configure:7778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7778 rm -rf conftest* 7806 rm -rf conftest*
7779 eval "ac_cv_lib_$ac_lib_var=yes" 7807 eval "ac_cv_lib_$ac_lib_var=yes"
7780 else 7808 else
7781 echo "configure: failed program was:" >&5 7809 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5 7810 cat conftest.$ac_ext >&5
7812 fi 7840 fi
7813 fi 7841 fi
7814 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7842 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7815 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7843 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7816 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7844 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7817 echo "configure:7818: checking for wnn/jllib.h" >&5 7845 echo "configure:7846: checking for wnn/jllib.h" >&5
7818 7846
7819 cat > conftest.$ac_ext <<EOF 7847 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure" 7848 #line 7849 "configure"
7821 #include "confdefs.h" 7849 #include "confdefs.h"
7822 #include <wnn/jllib.h> 7850 #include <wnn/jllib.h>
7823 EOF 7851 EOF
7824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7825 { (eval echo configure:7826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7853 { (eval echo configure:7854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7826 ac_err=`grep -v '^ *+' conftest.out` 7854 ac_err=`grep -v '^ *+' conftest.out`
7827 if test -z "$ac_err"; then 7855 if test -z "$ac_err"; then
7828 rm -rf conftest* 7856 rm -rf conftest*
7829 eval "ac_cv_header_$ac_safe=yes" 7857 eval "ac_cv_header_$ac_safe=yes"
7830 else 7858 else
7845 } 7873 }
7846 if test "$with_wnn" != "no"; then 7874 if test "$with_wnn" != "no"; then
7847 for ac_func in crypt 7875 for ac_func in crypt
7848 do 7876 do
7849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7850 echo "configure:7851: checking for $ac_func" >&5 7878 echo "configure:7879: checking for $ac_func" >&5
7851 7879
7852 cat > conftest.$ac_ext <<EOF 7880 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure" 7881 #line 7882 "configure"
7854 #include "confdefs.h" 7882 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes, 7883 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func(); below. */ 7884 which can conflict with char $ac_func(); below. */
7857 #include <assert.h> 7885 #include <assert.h>
7858 /* Override any gcc2 internal prototype to avoid an error. */ 7886 /* Override any gcc2 internal prototype to avoid an error. */
7871 $ac_func(); 7899 $ac_func();
7872 #endif 7900 #endif
7873 7901
7874 ; return 0; } 7902 ; return 0; }
7875 EOF 7903 EOF
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7877 rm -rf conftest* 7905 rm -rf conftest*
7878 eval "ac_cv_func_$ac_func=yes" 7906 eval "ac_cv_func_$ac_func=yes"
7879 else 7907 else
7880 echo "configure: failed program was:" >&5 7908 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5 7909 cat conftest.$ac_ext >&5
7900 fi 7928 fi
7901 done 7929 done
7902 7930
7903 test "$ac_cv_func_crypt" != "yes" && { 7931 test "$ac_cv_func_crypt" != "yes" && {
7904 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7932 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7905 echo "configure:7906: checking for crypt in -lcrypt" >&5 7933 echo "configure:7934: checking for crypt in -lcrypt" >&5
7906 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7934 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7907 7935
7908 xe_check_libs=" -lcrypt " 7936 xe_check_libs=" -lcrypt "
7909 cat > conftest.$ac_ext <<EOF 7937 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure" 7938 #line 7939 "configure"
7911 #include "confdefs.h" 7939 #include "confdefs.h"
7912 /* Override any gcc2 internal prototype to avoid an error. */ 7940 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2 7941 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */ 7942 builtin and then its argument prototype would still apply. */
7915 char crypt(); 7943 char crypt();
7916 7944
7917 int main() { 7945 int main() {
7918 crypt() 7946 crypt()
7919 ; return 0; } 7947 ; return 0; }
7920 EOF 7948 EOF
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7949 if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7922 rm -rf conftest* 7950 rm -rf conftest*
7923 eval "ac_cv_lib_$ac_lib_var=yes" 7951 eval "ac_cv_lib_$ac_lib_var=yes"
7924 else 7952 else
7925 echo "configure: failed program was:" >&5 7953 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5 7954 cat conftest.$ac_ext >&5
7951 } 7979 }
7952 fi 7980 fi
7953 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 7981 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
7954 7982
7955 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7983 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7956 echo "configure:7957: checking for jl_dic_list_e in -lwnn" >&5 7984 echo "configure:7985: checking for jl_dic_list_e in -lwnn" >&5
7957 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7985 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7958 7986
7959 xe_check_libs=" -lwnn " 7987 xe_check_libs=" -lwnn "
7960 cat > conftest.$ac_ext <<EOF 7988 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure" 7989 #line 7990 "configure"
7962 #include "confdefs.h" 7990 #include "confdefs.h"
7963 /* Override any gcc2 internal prototype to avoid an error. */ 7991 /* Override any gcc2 internal prototype to avoid an error. */
7964 /* We use char because int might match the return type of a gcc2 7992 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */ 7993 builtin and then its argument prototype would still apply. */
7966 char jl_dic_list_e(); 7994 char jl_dic_list_e();
7967 7995
7968 int main() { 7996 int main() {
7969 jl_dic_list_e() 7997 jl_dic_list_e()
7970 ; return 0; } 7998 ; return 0; }
7971 EOF 7999 EOF
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8000 if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7973 rm -rf conftest* 8001 rm -rf conftest*
7974 eval "ac_cv_lib_$ac_lib_var=yes" 8002 eval "ac_cv_lib_$ac_lib_var=yes"
7975 else 8003 else
7976 echo "configure: failed program was:" >&5 8004 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5 8005 cat conftest.$ac_ext >&5
7985 echo "$ac_t""yes" 1>&6 8013 echo "$ac_t""yes" 1>&6
7986 libwnn=wnn 8014 libwnn=wnn
7987 else 8015 else
7988 echo "$ac_t""no" 1>&6 8016 echo "$ac_t""no" 1>&6
7989 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 8017 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
7990 echo "configure:7991: checking for jl_dic_list_e in -lwnn4" >&5 8018 echo "configure:8019: checking for jl_dic_list_e in -lwnn4" >&5
7991 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8019 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7992 8020
7993 xe_check_libs=" -lwnn4 " 8021 xe_check_libs=" -lwnn4 "
7994 cat > conftest.$ac_ext <<EOF 8022 cat > conftest.$ac_ext <<EOF
7995 #line 7996 "configure" 8023 #line 8024 "configure"
7996 #include "confdefs.h" 8024 #include "confdefs.h"
7997 /* Override any gcc2 internal prototype to avoid an error. */ 8025 /* Override any gcc2 internal prototype to avoid an error. */
7998 /* We use char because int might match the return type of a gcc2 8026 /* We use char because int might match the return type of a gcc2
7999 builtin and then its argument prototype would still apply. */ 8027 builtin and then its argument prototype would still apply. */
8000 char jl_dic_list_e(); 8028 char jl_dic_list_e();
8001 8029
8002 int main() { 8030 int main() {
8003 jl_dic_list_e() 8031 jl_dic_list_e()
8004 ; return 0; } 8032 ; return 0; }
8005 EOF 8033 EOF
8006 if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8034 if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8007 rm -rf conftest* 8035 rm -rf conftest*
8008 eval "ac_cv_lib_$ac_lib_var=yes" 8036 eval "ac_cv_lib_$ac_lib_var=yes"
8009 else 8037 else
8010 echo "configure: failed program was:" >&5 8038 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5 8039 cat conftest.$ac_ext >&5
8019 echo "$ac_t""yes" 1>&6 8047 echo "$ac_t""yes" 1>&6
8020 libwnn=wnn4 8048 libwnn=wnn4
8021 else 8049 else
8022 echo "$ac_t""no" 1>&6 8050 echo "$ac_t""no" 1>&6
8023 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 8051 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8024 echo "configure:8025: checking for jl_dic_list_e in -lwnn6" >&5 8052 echo "configure:8053: checking for jl_dic_list_e in -lwnn6" >&5
8025 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8053 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8026 8054
8027 xe_check_libs=" -lwnn6 " 8055 xe_check_libs=" -lwnn6 "
8028 cat > conftest.$ac_ext <<EOF 8056 cat > conftest.$ac_ext <<EOF
8029 #line 8030 "configure" 8057 #line 8058 "configure"
8030 #include "confdefs.h" 8058 #include "confdefs.h"
8031 /* Override any gcc2 internal prototype to avoid an error. */ 8059 /* Override any gcc2 internal prototype to avoid an error. */
8032 /* We use char because int might match the return type of a gcc2 8060 /* We use char because int might match the return type of a gcc2
8033 builtin and then its argument prototype would still apply. */ 8061 builtin and then its argument prototype would still apply. */
8034 char jl_dic_list_e(); 8062 char jl_dic_list_e();
8035 8063
8036 int main() { 8064 int main() {
8037 jl_dic_list_e() 8065 jl_dic_list_e()
8038 ; return 0; } 8066 ; return 0; }
8039 EOF 8067 EOF
8040 if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8068 if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8041 rm -rf conftest* 8069 rm -rf conftest*
8042 eval "ac_cv_lib_$ac_lib_var=yes" 8070 eval "ac_cv_lib_$ac_lib_var=yes"
8043 else 8071 else
8044 echo "configure: failed program was:" >&5 8072 echo "configure: failed program was:" >&5
8045 cat conftest.$ac_ext >&5 8073 cat conftest.$ac_ext >&5
8053 echo "$ac_t""yes" 1>&6 8081 echo "$ac_t""yes" 1>&6
8054 libwnn=wnn6 8082 libwnn=wnn6
8055 else 8083 else
8056 echo "$ac_t""no" 1>&6 8084 echo "$ac_t""no" 1>&6
8057 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 8085 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8058 echo "configure:8059: checking for dic_list_e in -lwnn6_fromsrc" >&5 8086 echo "configure:8087: checking for dic_list_e in -lwnn6_fromsrc" >&5
8059 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 8087 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8060 8088
8061 xe_check_libs=" -lwnn6_fromsrc " 8089 xe_check_libs=" -lwnn6_fromsrc "
8062 cat > conftest.$ac_ext <<EOF 8090 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure" 8091 #line 8092 "configure"
8064 #include "confdefs.h" 8092 #include "confdefs.h"
8065 /* Override any gcc2 internal prototype to avoid an error. */ 8093 /* Override any gcc2 internal prototype to avoid an error. */
8066 /* We use char because int might match the return type of a gcc2 8094 /* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */ 8095 builtin and then its argument prototype would still apply. */
8068 char dic_list_e(); 8096 char dic_list_e();
8069 8097
8070 int main() { 8098 int main() {
8071 dic_list_e() 8099 dic_list_e()
8072 ; return 0; } 8100 ; return 0; }
8073 EOF 8101 EOF
8074 if { (eval echo configure:8075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8102 if { (eval echo configure:8103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8075 rm -rf conftest* 8103 rm -rf conftest*
8076 eval "ac_cv_lib_$ac_lib_var=yes" 8104 eval "ac_cv_lib_$ac_lib_var=yes"
8077 else 8105 else
8078 echo "configure: failed program was:" >&5 8106 echo "configure: failed program was:" >&5
8079 cat conftest.$ac_ext >&5 8107 cat conftest.$ac_ext >&5
8117 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8145 echo " xemacs will be linked with \"mule-wnnfns.o\""
8118 fi 8146 fi
8119 if test "$with_wnn6" != "no"; then 8147 if test "$with_wnn6" != "no"; then
8120 8148
8121 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 8149 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8122 echo "configure:8123: checking for jl_fi_dic_list in -l$libwnn" >&5 8150 echo "configure:8151: checking for jl_fi_dic_list in -l$libwnn" >&5
8123 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8151 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8124 8152
8125 xe_check_libs=" -l$libwnn " 8153 xe_check_libs=" -l$libwnn "
8126 cat > conftest.$ac_ext <<EOF 8154 cat > conftest.$ac_ext <<EOF
8127 #line 8128 "configure" 8155 #line 8156 "configure"
8128 #include "confdefs.h" 8156 #include "confdefs.h"
8129 /* Override any gcc2 internal prototype to avoid an error. */ 8157 /* Override any gcc2 internal prototype to avoid an error. */
8130 /* We use char because int might match the return type of a gcc2 8158 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */ 8159 builtin and then its argument prototype would still apply. */
8132 char jl_fi_dic_list(); 8160 char jl_fi_dic_list();
8133 8161
8134 int main() { 8162 int main() {
8135 jl_fi_dic_list() 8163 jl_fi_dic_list()
8136 ; return 0; } 8164 ; return 0; }
8137 EOF 8165 EOF
8138 if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8166 if { (eval echo configure:8167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8139 rm -rf conftest* 8167 rm -rf conftest*
8140 eval "ac_cv_lib_$ac_lib_var=yes" 8168 eval "ac_cv_lib_$ac_lib_var=yes"
8141 else 8169 else
8142 echo "configure: failed program was:" >&5 8170 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5 8171 cat conftest.$ac_ext >&5
8168 8196
8169 canna_includes_found=no 8197 canna_includes_found=no
8170 if test "$with_canna" != "no"; then 8198 if test "$with_canna" != "no"; then
8171 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8199 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8172 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8200 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8173 echo "configure:8174: checking for canna/jrkanji.h" >&5 8201 echo "configure:8202: checking for canna/jrkanji.h" >&5
8174 8202
8175 cat > conftest.$ac_ext <<EOF 8203 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure" 8204 #line 8205 "configure"
8177 #include "confdefs.h" 8205 #include "confdefs.h"
8178 #include <canna/jrkanji.h> 8206 #include <canna/jrkanji.h>
8179 EOF 8207 EOF
8180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8181 { (eval echo configure:8182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8209 { (eval echo configure:8210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8182 ac_err=`grep -v '^ *+' conftest.out` 8210 ac_err=`grep -v '^ *+' conftest.out`
8183 if test -z "$ac_err"; then 8211 if test -z "$ac_err"; then
8184 rm -rf conftest* 8212 rm -rf conftest*
8185 eval "ac_cv_header_$ac_safe=yes" 8213 eval "ac_cv_header_$ac_safe=yes"
8186 else 8214 else
8203 -d "/usr/local/canna/include"; then 8231 -d "/usr/local/canna/include"; then
8204 save_c_switch_site="$c_switch_site" 8232 save_c_switch_site="$c_switch_site"
8205 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8233 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8206 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8234 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8207 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8235 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8208 echo "configure:8209: checking for canna/jrkanji.h" >&5 8236 echo "configure:8237: checking for canna/jrkanji.h" >&5
8209 8237
8210 cat > conftest.$ac_ext <<EOF 8238 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure" 8239 #line 8240 "configure"
8212 #include "confdefs.h" 8240 #include "confdefs.h"
8213 #include <canna/jrkanji.h> 8241 #include <canna/jrkanji.h>
8214 EOF 8242 EOF
8215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8216 { (eval echo configure:8217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8244 { (eval echo configure:8245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8217 ac_err=`grep -v '^ *+' conftest.out` 8245 ac_err=`grep -v '^ *+' conftest.out`
8218 if test -z "$ac_err"; then 8246 if test -z "$ac_err"; then
8219 rm -rf conftest* 8247 rm -rf conftest*
8220 eval "ac_cv_header_$ac_safe=yes" 8248 eval "ac_cv_header_$ac_safe=yes"
8221 else 8249 else
8239 fi 8267 fi
8240 fi 8268 fi
8241 8269
8242 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8270 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8243 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8271 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8244 echo "configure:8245: checking for canna/RK.h" >&5 8272 echo "configure:8273: checking for canna/RK.h" >&5
8245 8273
8246 cat > conftest.$ac_ext <<EOF 8274 cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure" 8275 #line 8276 "configure"
8248 #include "confdefs.h" 8276 #include "confdefs.h"
8249 #include <canna/RK.h> 8277 #include <canna/RK.h>
8250 EOF 8278 EOF
8251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8252 { (eval echo configure:8253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8280 { (eval echo configure:8281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8253 ac_err=`grep -v '^ *+' conftest.out` 8281 ac_err=`grep -v '^ *+' conftest.out`
8254 if test -z "$ac_err"; then 8282 if test -z "$ac_err"; then
8255 rm -rf conftest* 8283 rm -rf conftest*
8256 eval "ac_cv_header_$ac_safe=yes" 8284 eval "ac_cv_header_$ac_safe=yes"
8257 else 8285 else
8270 with_canna=no 8298 with_canna=no
8271 fi 8299 fi
8272 } 8300 }
8273 test -z "$with_canna" && { 8301 test -z "$with_canna" && {
8274 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8302 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8275 echo "configure:8276: checking for RkBgnBun in -lRKC" >&5 8303 echo "configure:8304: checking for RkBgnBun in -lRKC" >&5
8276 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8304 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8277 8305
8278 xe_check_libs=" -lRKC " 8306 xe_check_libs=" -lRKC "
8279 cat > conftest.$ac_ext <<EOF 8307 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure" 8308 #line 8309 "configure"
8281 #include "confdefs.h" 8309 #include "confdefs.h"
8282 /* Override any gcc2 internal prototype to avoid an error. */ 8310 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2 8311 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */ 8312 builtin and then its argument prototype would still apply. */
8285 char RkBgnBun(); 8313 char RkBgnBun();
8286 8314
8287 int main() { 8315 int main() {
8288 RkBgnBun() 8316 RkBgnBun()
8289 ; return 0; } 8317 ; return 0; }
8290 EOF 8318 EOF
8291 if { (eval echo configure:8292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8292 rm -rf conftest* 8320 rm -rf conftest*
8293 eval "ac_cv_lib_$ac_lib_var=yes" 8321 eval "ac_cv_lib_$ac_lib_var=yes"
8294 else 8322 else
8295 echo "configure: failed program was:" >&5 8323 echo "configure: failed program was:" >&5
8296 cat conftest.$ac_ext >&5 8324 cat conftest.$ac_ext >&5
8309 fi 8337 fi
8310 8338
8311 } 8339 }
8312 test -z "$with_canna" && { 8340 test -z "$with_canna" && {
8313 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8341 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8314 echo "configure:8315: checking for jrKanjiControl in -lcanna" >&5 8342 echo "configure:8343: checking for jrKanjiControl in -lcanna" >&5
8315 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8343 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8316 8344
8317 xe_check_libs=" -lcanna " 8345 xe_check_libs=" -lcanna "
8318 cat > conftest.$ac_ext <<EOF 8346 cat > conftest.$ac_ext <<EOF
8319 #line 8320 "configure" 8347 #line 8348 "configure"
8320 #include "confdefs.h" 8348 #include "confdefs.h"
8321 /* Override any gcc2 internal prototype to avoid an error. */ 8349 /* Override any gcc2 internal prototype to avoid an error. */
8322 /* We use char because int might match the return type of a gcc2 8350 /* We use char because int might match the return type of a gcc2
8323 builtin and then its argument prototype would still apply. */ 8351 builtin and then its argument prototype would still apply. */
8324 char jrKanjiControl(); 8352 char jrKanjiControl();
8325 8353
8326 int main() { 8354 int main() {
8327 jrKanjiControl() 8355 jrKanjiControl()
8328 ; return 0; } 8356 ; return 0; }
8329 EOF 8357 EOF
8330 if { (eval echo configure:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8331 rm -rf conftest* 8359 rm -rf conftest*
8332 eval "ac_cv_lib_$ac_lib_var=yes" 8360 eval "ac_cv_lib_$ac_lib_var=yes"
8333 else 8361 else
8334 echo "configure: failed program was:" >&5 8362 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5 8363 cat conftest.$ac_ext >&5
8374 8402
8375 if test "$need_motif" = "yes" ; then 8403 if test "$need_motif" = "yes" ; then
8376 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8404 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8377 8405
8378 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8406 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8379 echo "configure:8380: checking for layout_object_getvalue in -li18n" >&5 8407 echo "configure:8408: checking for layout_object_getvalue in -li18n" >&5
8380 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8408 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8381 8409
8382 xe_check_libs=" -li18n " 8410 xe_check_libs=" -li18n "
8383 cat > conftest.$ac_ext <<EOF 8411 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure" 8412 #line 8413 "configure"
8385 #include "confdefs.h" 8413 #include "confdefs.h"
8386 /* Override any gcc2 internal prototype to avoid an error. */ 8414 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2 8415 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */ 8416 builtin and then its argument prototype would still apply. */
8389 char layout_object_getvalue(); 8417 char layout_object_getvalue();
8390 8418
8391 int main() { 8419 int main() {
8392 layout_object_getvalue() 8420 layout_object_getvalue()
8393 ; return 0; } 8421 ; return 0; }
8394 EOF 8422 EOF
8395 if { (eval echo configure:8396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8423 if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8396 rm -rf conftest* 8424 rm -rf conftest*
8397 eval "ac_cv_lib_$ac_lib_var=yes" 8425 eval "ac_cv_lib_$ac_lib_var=yes"
8398 else 8426 else
8399 echo "configure: failed program was:" >&5 8427 echo "configure: failed program was:" >&5
8400 cat conftest.$ac_ext >&5 8428 cat conftest.$ac_ext >&5
8476 fi 8504 fi
8477 8505
8478 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 8506 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8479 do 8507 do
8480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8481 echo "configure:8482: checking for $ac_func" >&5 8509 echo "configure:8510: checking for $ac_func" >&5
8482 8510
8483 cat > conftest.$ac_ext <<EOF 8511 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure" 8512 #line 8513 "configure"
8485 #include "confdefs.h" 8513 #include "confdefs.h"
8486 /* System header to define __stub macros and hopefully few prototypes, 8514 /* System header to define __stub macros and hopefully few prototypes,
8487 which can conflict with char $ac_func(); below. */ 8515 which can conflict with char $ac_func(); below. */
8488 #include <assert.h> 8516 #include <assert.h>
8489 /* Override any gcc2 internal prototype to avoid an error. */ 8517 /* Override any gcc2 internal prototype to avoid an error. */
8502 $ac_func(); 8530 $ac_func();
8503 #endif 8531 #endif
8504 8532
8505 ; return 0; } 8533 ; return 0; }
8506 EOF 8534 EOF
8507 if { (eval echo configure:8508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8508 rm -rf conftest* 8536 rm -rf conftest*
8509 eval "ac_cv_func_$ac_func=yes" 8537 eval "ac_cv_func_$ac_func=yes"
8510 else 8538 else
8511 echo "configure: failed program was:" >&5 8539 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5 8540 cat conftest.$ac_ext >&5
8543 echo " xemacs will be linked with \"realpath.o\"" 8571 echo " xemacs will be linked with \"realpath.o\""
8544 fi ;; 8572 fi ;;
8545 * ) for ac_func in realpath 8573 * ) for ac_func in realpath
8546 do 8574 do
8547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8548 echo "configure:8549: checking for $ac_func" >&5 8576 echo "configure:8577: checking for $ac_func" >&5
8549 8577
8550 cat > conftest.$ac_ext <<EOF 8578 cat > conftest.$ac_ext <<EOF
8551 #line 8552 "configure" 8579 #line 8580 "configure"
8552 #include "confdefs.h" 8580 #include "confdefs.h"
8553 /* System header to define __stub macros and hopefully few prototypes, 8581 /* System header to define __stub macros and hopefully few prototypes,
8554 which can conflict with char $ac_func(); below. */ 8582 which can conflict with char $ac_func(); below. */
8555 #include <assert.h> 8583 #include <assert.h>
8556 /* Override any gcc2 internal prototype to avoid an error. */ 8584 /* Override any gcc2 internal prototype to avoid an error. */
8569 $ac_func(); 8597 $ac_func();
8570 #endif 8598 #endif
8571 8599
8572 ; return 0; } 8600 ; return 0; }
8573 EOF 8601 EOF
8574 if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8602 if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8575 rm -rf conftest* 8603 rm -rf conftest*
8576 eval "ac_cv_func_$ac_func=yes" 8604 eval "ac_cv_func_$ac_func=yes"
8577 else 8605 else
8578 echo "configure: failed program was:" >&5 8606 echo "configure: failed program was:" >&5
8579 cat conftest.$ac_ext >&5 8607 cat conftest.$ac_ext >&5
8603 fi ;; 8631 fi ;;
8604 esac ;; 8632 esac ;;
8605 esac 8633 esac
8606 8634
8607 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8635 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8608 echo "configure:8609: checking whether netdb declares h_errno" >&5 8636 echo "configure:8637: checking whether netdb declares h_errno" >&5
8609 cat > conftest.$ac_ext <<EOF 8637 cat > conftest.$ac_ext <<EOF
8610 #line 8611 "configure" 8638 #line 8639 "configure"
8611 #include "confdefs.h" 8639 #include "confdefs.h"
8612 #include <netdb.h> 8640 #include <netdb.h>
8613 int main() { 8641 int main() {
8614 return h_errno; 8642 return h_errno;
8615 ; return 0; } 8643 ; return 0; }
8616 EOF 8644 EOF
8617 if { (eval echo configure:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8618 rm -rf conftest* 8646 rm -rf conftest*
8619 echo "$ac_t""yes" 1>&6 8647 echo "$ac_t""yes" 1>&6
8620 { test "$extra_verbose" = "yes" && cat << \EOF 8648 { test "$extra_verbose" = "yes" && cat << \EOF
8621 Defining HAVE_H_ERRNO 8649 Defining HAVE_H_ERRNO
8622 EOF 8650 EOF
8632 echo "$ac_t""no" 1>&6 8660 echo "$ac_t""no" 1>&6
8633 fi 8661 fi
8634 rm -f conftest* 8662 rm -f conftest*
8635 8663
8636 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8664 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8637 echo "configure:8638: checking for sigsetjmp" >&5 8665 echo "configure:8666: checking for sigsetjmp" >&5
8638 cat > conftest.$ac_ext <<EOF 8666 cat > conftest.$ac_ext <<EOF
8639 #line 8640 "configure" 8667 #line 8668 "configure"
8640 #include "confdefs.h" 8668 #include "confdefs.h"
8641 #include <setjmp.h> 8669 #include <setjmp.h>
8642 int main() { 8670 int main() {
8643 sigjmp_buf bar; sigsetjmp (bar, 0); 8671 sigjmp_buf bar; sigsetjmp (bar, 0);
8644 ; return 0; } 8672 ; return 0; }
8645 EOF 8673 EOF
8646 if { (eval echo configure:8647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8674 if { (eval echo configure:8675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8647 rm -rf conftest* 8675 rm -rf conftest*
8648 echo "$ac_t""yes" 1>&6 8676 echo "$ac_t""yes" 1>&6
8649 { test "$extra_verbose" = "yes" && cat << \EOF 8677 { test "$extra_verbose" = "yes" && cat << \EOF
8650 Defining HAVE_SIGSETJMP 8678 Defining HAVE_SIGSETJMP
8651 EOF 8679 EOF
8661 echo "$ac_t""no" 1>&6 8689 echo "$ac_t""no" 1>&6
8662 fi 8690 fi
8663 rm -f conftest* 8691 rm -f conftest*
8664 8692
8665 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8693 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8666 echo "configure:8667: checking whether localtime caches TZ" >&5 8694 echo "configure:8695: checking whether localtime caches TZ" >&5
8667 8695
8668 if test "$ac_cv_func_tzset" = "yes"; then 8696 if test "$ac_cv_func_tzset" = "yes"; then
8669 cat > conftest.$ac_ext <<EOF 8697 cat > conftest.$ac_ext <<EOF
8670 #line 8671 "configure" 8698 #line 8699 "configure"
8671 #include "confdefs.h" 8699 #include "confdefs.h"
8672 #include <time.h> 8700 #include <time.h>
8673 #if STDC_HEADERS 8701 #if STDC_HEADERS
8674 # include <stdlib.h> 8702 # include <stdlib.h>
8675 #endif 8703 #endif
8700 if (localtime (&now)->tm_hour != hour_unset) 8728 if (localtime (&now)->tm_hour != hour_unset)
8701 exit (1); 8729 exit (1);
8702 exit (0); 8730 exit (0);
8703 } 8731 }
8704 EOF 8732 EOF
8705 if { (eval echo configure:8706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8733 if { (eval echo configure:8734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8706 then 8734 then
8707 emacs_cv_localtime_cache=no 8735 emacs_cv_localtime_cache=no
8708 else 8736 else
8709 conftest_rc="$?" 8737 conftest_rc="$?"
8710 echo "configure: failed program was:" >&5 8738 echo "configure: failed program was:" >&5
8730 8758
8731 fi 8759 fi
8732 8760
8733 if test "$HAVE_TIMEVAL" = "yes"; then 8761 if test "$HAVE_TIMEVAL" = "yes"; then
8734 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8762 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8735 echo "configure:8736: checking whether gettimeofday accepts one or two arguments" >&5 8763 echo "configure:8764: checking whether gettimeofday accepts one or two arguments" >&5
8736 cat > conftest.$ac_ext <<EOF 8764 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure" 8765 #line 8766 "configure"
8738 #include "confdefs.h" 8766 #include "confdefs.h"
8739 8767
8740 #ifdef TIME_WITH_SYS_TIME 8768 #ifdef TIME_WITH_SYS_TIME
8741 #include <sys/time.h> 8769 #include <sys/time.h>
8742 #include <time.h> 8770 #include <time.h>
8754 struct timezone dummy; 8782 struct timezone dummy;
8755 gettimeofday (&time, &dummy); 8783 gettimeofday (&time, &dummy);
8756 8784
8757 ; return 0; } 8785 ; return 0; }
8758 EOF 8786 EOF
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8760 rm -rf conftest* 8788 rm -rf conftest*
8761 echo "$ac_t""two" 1>&6 8789 echo "$ac_t""two" 1>&6
8762 else 8790 else
8763 echo "configure: failed program was:" >&5 8791 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5 8792 cat conftest.$ac_ext >&5
8776 rm -f conftest* 8804 rm -f conftest*
8777 fi 8805 fi
8778 8806
8779 8807
8780 echo $ac_n "checking for inline""... $ac_c" 1>&6 8808 echo $ac_n "checking for inline""... $ac_c" 1>&6
8781 echo "configure:8782: checking for inline" >&5 8809 echo "configure:8810: checking for inline" >&5
8782 8810
8783 ac_cv_c_inline=no 8811 ac_cv_c_inline=no
8784 for ac_kw in inline __inline__ __inline; do 8812 for ac_kw in inline __inline__ __inline; do
8785 cat > conftest.$ac_ext <<EOF 8813 cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure" 8814 #line 8815 "configure"
8787 #include "confdefs.h" 8815 #include "confdefs.h"
8788 8816
8789 int main() { 8817 int main() {
8790 } $ac_kw foo() { 8818 } $ac_kw foo() {
8791 ; return 0; } 8819 ; return 0; }
8792 EOF 8820 EOF
8793 if { (eval echo configure:8794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8821 if { (eval echo configure:8822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8794 rm -rf conftest* 8822 rm -rf conftest*
8795 ac_cv_c_inline=$ac_kw; break 8823 ac_cv_c_inline=$ac_kw; break
8796 else 8824 else
8797 echo "configure: failed program was:" >&5 8825 echo "configure: failed program was:" >&5
8798 cat conftest.$ac_ext >&5 8826 cat conftest.$ac_ext >&5
8838 8866
8839 8867
8840 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8868 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8841 # for constant arguments. Useless! 8869 # for constant arguments. Useless!
8842 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 8870 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8843 echo "configure:8844: checking for working alloca.h" >&5 8871 echo "configure:8872: checking for working alloca.h" >&5
8844 8872
8845 cat > conftest.$ac_ext <<EOF 8873 cat > conftest.$ac_ext <<EOF
8846 #line 8847 "configure" 8874 #line 8875 "configure"
8847 #include "confdefs.h" 8875 #include "confdefs.h"
8848 #include <alloca.h> 8876 #include <alloca.h>
8849 int main() { 8877 int main() {
8850 char *p = alloca(2 * sizeof(int)); 8878 char *p = alloca(2 * sizeof(int));
8851 ; return 0; } 8879 ; return 0; }
8852 EOF 8880 EOF
8853 if { (eval echo configure:8854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8881 if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8854 rm -rf conftest* 8882 rm -rf conftest*
8855 ac_cv_header_alloca_h=yes 8883 ac_cv_header_alloca_h=yes
8856 else 8884 else
8857 echo "configure: failed program was:" >&5 8885 echo "configure: failed program was:" >&5
8858 cat conftest.$ac_ext >&5 8886 cat conftest.$ac_ext >&5
8872 } 8900 }
8873 8901
8874 fi 8902 fi
8875 8903
8876 echo $ac_n "checking for alloca""... $ac_c" 1>&6 8904 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8877 echo "configure:8878: checking for alloca" >&5 8905 echo "configure:8906: checking for alloca" >&5
8878 8906
8879 cat > conftest.$ac_ext <<EOF 8907 cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure" 8908 #line 8909 "configure"
8881 #include "confdefs.h" 8909 #include "confdefs.h"
8882 8910
8883 #ifdef __GNUC__ 8911 #ifdef __GNUC__
8884 # define alloca __builtin_alloca 8912 # define alloca __builtin_alloca
8885 #else 8913 #else
8898 8926
8899 int main() { 8927 int main() {
8900 char *p = (char *) alloca(1); 8928 char *p = (char *) alloca(1);
8901 ; return 0; } 8929 ; return 0; }
8902 EOF 8930 EOF
8903 if { (eval echo configure:8904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8904 rm -rf conftest* 8932 rm -rf conftest*
8905 ac_cv_func_alloca_works=yes 8933 ac_cv_func_alloca_works=yes
8906 else 8934 else
8907 echo "configure: failed program was:" >&5 8935 echo "configure: failed program was:" >&5
8908 cat conftest.$ac_ext >&5 8936 cat conftest.$ac_ext >&5
8937 EOF 8965 EOF
8938 } 8966 }
8939 8967
8940 8968
8941 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 8969 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8942 echo "configure:8943: checking whether alloca needs Cray hooks" >&5 8970 echo "configure:8971: checking whether alloca needs Cray hooks" >&5
8943 8971
8944 cat > conftest.$ac_ext <<EOF 8972 cat > conftest.$ac_ext <<EOF
8945 #line 8946 "configure" 8973 #line 8974 "configure"
8946 #include "confdefs.h" 8974 #include "confdefs.h"
8947 #if defined(CRAY) && ! defined(CRAY2) 8975 #if defined(CRAY) && ! defined(CRAY2)
8948 webecray 8976 webecray
8949 #else 8977 #else
8950 wenotbecray 8978 wenotbecray
8964 8992
8965 echo "$ac_t""$ac_cv_os_cray" 1>&6 8993 echo "$ac_t""$ac_cv_os_cray" 1>&6
8966 if test $ac_cv_os_cray = yes; then 8994 if test $ac_cv_os_cray = yes; then
8967 for ac_func in _getb67 GETB67 getb67; do 8995 for ac_func in _getb67 GETB67 getb67; do
8968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8969 echo "configure:8970: checking for $ac_func" >&5 8997 echo "configure:8998: checking for $ac_func" >&5
8970 8998
8971 cat > conftest.$ac_ext <<EOF 8999 cat > conftest.$ac_ext <<EOF
8972 #line 8973 "configure" 9000 #line 9001 "configure"
8973 #include "confdefs.h" 9001 #include "confdefs.h"
8974 /* System header to define __stub macros and hopefully few prototypes, 9002 /* System header to define __stub macros and hopefully few prototypes,
8975 which can conflict with char $ac_func(); below. */ 9003 which can conflict with char $ac_func(); below. */
8976 #include <assert.h> 9004 #include <assert.h>
8977 /* Override any gcc2 internal prototype to avoid an error. */ 9005 /* Override any gcc2 internal prototype to avoid an error. */
8990 $ac_func(); 9018 $ac_func();
8991 #endif 9019 #endif
8992 9020
8993 ; return 0; } 9021 ; return 0; }
8994 EOF 9022 EOF
8995 if { (eval echo configure:8996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9023 if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8996 rm -rf conftest* 9024 rm -rf conftest*
8997 eval "ac_cv_func_$ac_func=yes" 9025 eval "ac_cv_func_$ac_func=yes"
8998 else 9026 else
8999 echo "configure: failed program was:" >&5 9027 echo "configure: failed program was:" >&5
9000 cat conftest.$ac_ext >&5 9028 cat conftest.$ac_ext >&5
9020 9048
9021 done 9049 done
9022 fi 9050 fi
9023 9051
9024 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 9052 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9025 echo "configure:9026: checking stack direction for C alloca" >&5 9053 echo "configure:9054: checking stack direction for C alloca" >&5
9026 9054
9027 cat > conftest.$ac_ext <<EOF 9055 cat > conftest.$ac_ext <<EOF
9028 #line 9029 "configure" 9056 #line 9057 "configure"
9029 #include "confdefs.h" 9057 #include "confdefs.h"
9030 find_stack_direction () 9058 find_stack_direction ()
9031 { 9059 {
9032 static char *addr = 0; 9060 static char *addr = 0;
9033 auto char dummy; 9061 auto char dummy;
9042 main () 9070 main ()
9043 { 9071 {
9044 exit (find_stack_direction() < 0); 9072 exit (find_stack_direction() < 0);
9045 } 9073 }
9046 EOF 9074 EOF
9047 if { (eval echo configure:9048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9048 then 9076 then
9049 ac_cv_c_stack_direction=1 9077 ac_cv_c_stack_direction=1
9050 else 9078 else
9051 conftest_rc="$?" 9079 conftest_rc="$?"
9052 echo "configure: failed program was:" >&5 9080 echo "configure: failed program was:" >&5
9071 echo " xemacs will be linked with \"$ALLOCA\"" 9099 echo " xemacs will be linked with \"$ALLOCA\""
9072 fi 9100 fi
9073 9101
9074 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 9102 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9075 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 9103 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9076 echo "configure:9077: checking for vfork.h" >&5 9104 echo "configure:9105: checking for vfork.h" >&5
9077 9105
9078 cat > conftest.$ac_ext <<EOF 9106 cat > conftest.$ac_ext <<EOF
9079 #line 9080 "configure" 9107 #line 9108 "configure"
9080 #include "confdefs.h" 9108 #include "confdefs.h"
9081 #include <vfork.h> 9109 #include <vfork.h>
9082 EOF 9110 EOF
9083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9084 { (eval echo configure:9085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9112 { (eval echo configure:9113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9085 ac_err=`grep -v '^ *+' conftest.out` 9113 ac_err=`grep -v '^ *+' conftest.out`
9086 if test -z "$ac_err"; then 9114 if test -z "$ac_err"; then
9087 rm -rf conftest* 9115 rm -rf conftest*
9088 eval "ac_cv_header_$ac_safe=yes" 9116 eval "ac_cv_header_$ac_safe=yes"
9089 else 9117 else
9107 else 9135 else
9108 echo "$ac_t""no" 1>&6 9136 echo "$ac_t""no" 1>&6
9109 fi 9137 fi
9110 9138
9111 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9139 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9112 echo "configure:9113: checking for working vfork" >&5 9140 echo "configure:9141: checking for working vfork" >&5
9113 9141
9114 cat > conftest.$ac_ext <<EOF 9142 cat > conftest.$ac_ext <<EOF
9115 #line 9116 "configure" 9143 #line 9144 "configure"
9116 #include "confdefs.h" 9144 #include "confdefs.h"
9117 /* Thanks to Paul Eggert for this test. */ 9145 /* Thanks to Paul Eggert for this test. */
9118 #include <stdio.h> 9146 #include <stdio.h>
9119 #include <sys/types.h> 9147 #include <sys/types.h>
9120 #include <sys/stat.h> 9148 #include <sys/stat.h>
9205 || fstat(fileno(stdout), &st) != 0 9233 || fstat(fileno(stdout), &st) != 0
9206 ); 9234 );
9207 } 9235 }
9208 } 9236 }
9209 EOF 9237 EOF
9210 if { (eval echo configure:9211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9211 then 9239 then
9212 ac_cv_func_vfork_works=yes 9240 ac_cv_func_vfork_works=yes
9213 else 9241 else
9214 conftest_rc="$?" 9242 conftest_rc="$?"
9215 echo "configure: failed program was:" >&5 9243 echo "configure: failed program was:" >&5
9231 9259
9232 fi 9260 fi
9233 9261
9234 9262
9235 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9263 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9236 echo "configure:9237: checking for working strcoll" >&5 9264 echo "configure:9265: checking for working strcoll" >&5
9237 9265
9238 cat > conftest.$ac_ext <<EOF 9266 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure" 9267 #line 9268 "configure"
9240 #include "confdefs.h" 9268 #include "confdefs.h"
9241 #include <string.h> 9269 #include <string.h>
9242 main () 9270 main ()
9243 { 9271 {
9244 exit (strcoll ("abc", "def") >= 0 || 9272 exit (strcoll ("abc", "def") >= 0 ||
9245 strcoll ("ABC", "DEF") >= 0 || 9273 strcoll ("ABC", "DEF") >= 0 ||
9246 strcoll ("123", "456") >= 0); 9274 strcoll ("123", "456") >= 0);
9247 } 9275 }
9248 EOF 9276 EOF
9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9250 then 9278 then
9251 ac_cv_func_strcoll_works=yes 9279 ac_cv_func_strcoll_works=yes
9252 else 9280 else
9253 conftest_rc="$?" 9281 conftest_rc="$?"
9254 echo "configure: failed program was:" >&5 9282 echo "configure: failed program was:" >&5
9272 9300
9273 9301
9274 for ac_func in getpgrp 9302 for ac_func in getpgrp
9275 do 9303 do
9276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9277 echo "configure:9278: checking for $ac_func" >&5 9305 echo "configure:9306: checking for $ac_func" >&5
9278 9306
9279 cat > conftest.$ac_ext <<EOF 9307 cat > conftest.$ac_ext <<EOF
9280 #line 9281 "configure" 9308 #line 9309 "configure"
9281 #include "confdefs.h" 9309 #include "confdefs.h"
9282 /* System header to define __stub macros and hopefully few prototypes, 9310 /* System header to define __stub macros and hopefully few prototypes,
9283 which can conflict with char $ac_func(); below. */ 9311 which can conflict with char $ac_func(); below. */
9284 #include <assert.h> 9312 #include <assert.h>
9285 /* Override any gcc2 internal prototype to avoid an error. */ 9313 /* Override any gcc2 internal prototype to avoid an error. */
9298 $ac_func(); 9326 $ac_func();
9299 #endif 9327 #endif
9300 9328
9301 ; return 0; } 9329 ; return 0; }
9302 EOF 9330 EOF
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9304 rm -rf conftest* 9332 rm -rf conftest*
9305 eval "ac_cv_func_$ac_func=yes" 9333 eval "ac_cv_func_$ac_func=yes"
9306 else 9334 else
9307 echo "configure: failed program was:" >&5 9335 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5 9336 cat conftest.$ac_ext >&5
9326 echo "$ac_t""no" 1>&6 9354 echo "$ac_t""no" 1>&6
9327 fi 9355 fi
9328 done 9356 done
9329 9357
9330 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9358 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9331 echo "configure:9332: checking whether getpgrp takes no argument" >&5 9359 echo "configure:9360: checking whether getpgrp takes no argument" >&5
9332 9360
9333 cat > conftest.$ac_ext <<EOF 9361 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure" 9362 #line 9363 "configure"
9335 #include "confdefs.h" 9363 #include "confdefs.h"
9336 9364
9337 /* 9365 /*
9338 * If this system has a BSD-style getpgrp(), 9366 * If this system has a BSD-style getpgrp(),
9339 * which takes a pid argument, exit unsuccessfully. 9367 * which takes a pid argument, exit unsuccessfully.
9384 exit(s>>8); 9412 exit(s>>8);
9385 } 9413 }
9386 } 9414 }
9387 9415
9388 EOF 9416 EOF
9389 if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9390 then 9418 then
9391 ac_cv_func_getpgrp_void=yes 9419 ac_cv_func_getpgrp_void=yes
9392 else 9420 else
9393 conftest_rc="$?" 9421 conftest_rc="$?"
9394 echo "configure: failed program was:" >&5 9422 echo "configure: failed program was:" >&5
9411 9439
9412 fi 9440 fi
9413 9441
9414 9442
9415 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9443 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9416 echo "configure:9417: checking for working mmap" >&5 9444 echo "configure:9445: checking for working mmap" >&5
9417 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9445 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9418 cat > conftest.$ac_ext <<EOF 9446 cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure" 9447 #line 9448 "configure"
9420 #include "confdefs.h" 9448 #include "confdefs.h"
9421 #include <stdio.h> 9449 #include <stdio.h>
9422 #include <unistd.h> 9450 #include <unistd.h>
9423 #include <fcntl.h> 9451 #include <fcntl.h>
9424 #include <sys/mman.h> 9452 #include <sys/mman.h>
9447 return 0; 9475 return 0;
9448 perror ("conftest: mmap failed"); 9476 perror ("conftest: mmap failed");
9449 return 1; 9477 return 1;
9450 } 9478 }
9451 EOF 9479 EOF
9452 if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9480 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9453 then 9481 then
9454 have_mmap=yes 9482 have_mmap=yes
9455 else 9483 else
9456 conftest_rc="$?" 9484 conftest_rc="$?"
9457 echo "configure: failed program was:" >&5 9485 echo "configure: failed program was:" >&5
9472 9500
9473 for ac_hdr in unistd.h 9501 for ac_hdr in unistd.h
9474 do 9502 do
9475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9477 echo "configure:9478: checking for $ac_hdr" >&5 9505 echo "configure:9506: checking for $ac_hdr" >&5
9478 9506
9479 cat > conftest.$ac_ext <<EOF 9507 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure" 9508 #line 9509 "configure"
9481 #include "confdefs.h" 9509 #include "confdefs.h"
9482 #include <$ac_hdr> 9510 #include <$ac_hdr>
9483 EOF 9511 EOF
9484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9485 { (eval echo configure:9486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9513 { (eval echo configure:9514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9486 ac_err=`grep -v '^ *+' conftest.out` 9514 ac_err=`grep -v '^ *+' conftest.out`
9487 if test -z "$ac_err"; then 9515 if test -z "$ac_err"; then
9488 rm -rf conftest* 9516 rm -rf conftest*
9489 eval "ac_cv_header_$ac_safe=yes" 9517 eval "ac_cv_header_$ac_safe=yes"
9490 else 9518 else
9512 done 9540 done
9513 9541
9514 for ac_func in getpagesize 9542 for ac_func in getpagesize
9515 do 9543 do
9516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9517 echo "configure:9518: checking for $ac_func" >&5 9545 echo "configure:9546: checking for $ac_func" >&5
9518 9546
9519 cat > conftest.$ac_ext <<EOF 9547 cat > conftest.$ac_ext <<EOF
9520 #line 9521 "configure" 9548 #line 9549 "configure"
9521 #include "confdefs.h" 9549 #include "confdefs.h"
9522 /* System header to define __stub macros and hopefully few prototypes, 9550 /* System header to define __stub macros and hopefully few prototypes,
9523 which can conflict with char $ac_func(); below. */ 9551 which can conflict with char $ac_func(); below. */
9524 #include <assert.h> 9552 #include <assert.h>
9525 /* Override any gcc2 internal prototype to avoid an error. */ 9553 /* Override any gcc2 internal prototype to avoid an error. */
9538 $ac_func(); 9566 $ac_func();
9539 #endif 9567 #endif
9540 9568
9541 ; return 0; } 9569 ; return 0; }
9542 EOF 9570 EOF
9543 if { (eval echo configure:9544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9571 if { (eval echo configure:9572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9544 rm -rf conftest* 9572 rm -rf conftest*
9545 eval "ac_cv_func_$ac_func=yes" 9573 eval "ac_cv_func_$ac_func=yes"
9546 else 9574 else
9547 echo "configure: failed program was:" >&5 9575 echo "configure: failed program was:" >&5
9548 cat conftest.$ac_ext >&5 9576 cat conftest.$ac_ext >&5
9566 echo "$ac_t""no" 1>&6 9594 echo "$ac_t""no" 1>&6
9567 fi 9595 fi
9568 done 9596 done
9569 9597
9570 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9598 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9571 echo "configure:9572: checking for working mmap" >&5 9599 echo "configure:9600: checking for working mmap" >&5
9572 9600
9573 cat > conftest.$ac_ext <<EOF 9601 cat > conftest.$ac_ext <<EOF
9574 #line 9575 "configure" 9602 #line 9603 "configure"
9575 #include "confdefs.h" 9603 #include "confdefs.h"
9576 9604
9577 /* Thanks to Mike Haertel and Jim Avera for this test. 9605 /* Thanks to Mike Haertel and Jim Avera for this test.
9578 Here is a matrix of mmap possibilities: 9606 Here is a matrix of mmap possibilities:
9579 mmap private not fixed 9607 mmap private not fixed
9709 unlink("conftestmmap"); 9737 unlink("conftestmmap");
9710 exit(0); 9738 exit(0);
9711 } 9739 }
9712 9740
9713 EOF 9741 EOF
9714 if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9742 if { (eval echo configure:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9715 then 9743 then
9716 ac_cv_func_mmap_fixed_mapped=yes 9744 ac_cv_func_mmap_fixed_mapped=yes
9717 else 9745 else
9718 conftest_rc="$?" 9746 conftest_rc="$?"
9719 echo "configure: failed program was:" >&5 9747 echo "configure: failed program was:" >&5
9747 } 9775 }
9748 9776
9749 9777
9750 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9778 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9751 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9779 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9752 echo "configure:9753: checking for termios.h" >&5 9780 echo "configure:9781: checking for termios.h" >&5
9753 9781
9754 cat > conftest.$ac_ext <<EOF 9782 cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure" 9783 #line 9784 "configure"
9756 #include "confdefs.h" 9784 #include "confdefs.h"
9757 #include <termios.h> 9785 #include <termios.h>
9758 EOF 9786 EOF
9759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9760 { (eval echo configure:9761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9788 { (eval echo configure:9789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9761 ac_err=`grep -v '^ *+' conftest.out` 9789 ac_err=`grep -v '^ *+' conftest.out`
9762 if test -z "$ac_err"; then 9790 if test -z "$ac_err"; then
9763 rm -rf conftest* 9791 rm -rf conftest*
9764 eval "ac_cv_header_$ac_safe=yes" 9792 eval "ac_cv_header_$ac_safe=yes"
9765 else 9793 else
9798 9826
9799 else 9827 else
9800 echo "$ac_t""no" 1>&6 9828 echo "$ac_t""no" 1>&6
9801 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9829 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9802 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9830 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9803 echo "configure:9804: checking for termio.h" >&5 9831 echo "configure:9832: checking for termio.h" >&5
9804 9832
9805 cat > conftest.$ac_ext <<EOF 9833 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure" 9834 #line 9835 "configure"
9807 #include "confdefs.h" 9835 #include "confdefs.h"
9808 #include <termio.h> 9836 #include <termio.h>
9809 EOF 9837 EOF
9810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9811 { (eval echo configure:9812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9839 { (eval echo configure:9840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9812 ac_err=`grep -v '^ *+' conftest.out` 9840 ac_err=`grep -v '^ *+' conftest.out`
9813 if test -z "$ac_err"; then 9841 if test -z "$ac_err"; then
9814 rm -rf conftest* 9842 rm -rf conftest*
9815 eval "ac_cv_header_$ac_safe=yes" 9843 eval "ac_cv_header_$ac_safe=yes"
9816 else 9844 else
9838 fi 9866 fi
9839 9867
9840 9868
9841 9869
9842 echo $ac_n "checking for socket""... $ac_c" 1>&6 9870 echo $ac_n "checking for socket""... $ac_c" 1>&6
9843 echo "configure:9844: checking for socket" >&5 9871 echo "configure:9872: checking for socket" >&5
9844 9872
9845 cat > conftest.$ac_ext <<EOF 9873 cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure" 9874 #line 9875 "configure"
9847 #include "confdefs.h" 9875 #include "confdefs.h"
9848 /* System header to define __stub macros and hopefully few prototypes, 9876 /* System header to define __stub macros and hopefully few prototypes,
9849 which can conflict with char socket(); below. */ 9877 which can conflict with char socket(); below. */
9850 #include <assert.h> 9878 #include <assert.h>
9851 /* Override any gcc2 internal prototype to avoid an error. */ 9879 /* Override any gcc2 internal prototype to avoid an error. */
9864 socket(); 9892 socket();
9865 #endif 9893 #endif
9866 9894
9867 ; return 0; } 9895 ; return 0; }
9868 EOF 9896 EOF
9869 if { (eval echo configure:9870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9870 rm -rf conftest* 9898 rm -rf conftest*
9871 eval "ac_cv_func_socket=yes" 9899 eval "ac_cv_func_socket=yes"
9872 else 9900 else
9873 echo "configure: failed program was:" >&5 9901 echo "configure: failed program was:" >&5
9874 cat conftest.$ac_ext >&5 9902 cat conftest.$ac_ext >&5
9879 9907
9880 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9908 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9881 echo "$ac_t""yes" 1>&6 9909 echo "$ac_t""yes" 1>&6
9882 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9910 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9883 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9911 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9884 echo "configure:9885: checking for netinet/in.h" >&5 9912 echo "configure:9913: checking for netinet/in.h" >&5
9885 9913
9886 cat > conftest.$ac_ext <<EOF 9914 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure" 9915 #line 9916 "configure"
9888 #include "confdefs.h" 9916 #include "confdefs.h"
9889 #include <netinet/in.h> 9917 #include <netinet/in.h>
9890 EOF 9918 EOF
9891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9892 { (eval echo configure:9893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9920 { (eval echo configure:9921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9893 ac_err=`grep -v '^ *+' conftest.out` 9921 ac_err=`grep -v '^ *+' conftest.out`
9894 if test -z "$ac_err"; then 9922 if test -z "$ac_err"; then
9895 rm -rf conftest* 9923 rm -rf conftest*
9896 eval "ac_cv_header_$ac_safe=yes" 9924 eval "ac_cv_header_$ac_safe=yes"
9897 else 9925 else
9904 rm -f conftest* 9932 rm -f conftest*
9905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9906 echo "$ac_t""yes" 1>&6 9934 echo "$ac_t""yes" 1>&6
9907 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9935 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9908 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9936 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9909 echo "configure:9910: checking for arpa/inet.h" >&5 9937 echo "configure:9938: checking for arpa/inet.h" >&5
9910 9938
9911 cat > conftest.$ac_ext <<EOF 9939 cat > conftest.$ac_ext <<EOF
9912 #line 9913 "configure" 9940 #line 9941 "configure"
9913 #include "confdefs.h" 9941 #include "confdefs.h"
9914 #include <arpa/inet.h> 9942 #include <arpa/inet.h>
9915 EOF 9943 EOF
9916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9917 { (eval echo configure:9918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9945 { (eval echo configure:9946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9918 ac_err=`grep -v '^ *+' conftest.out` 9946 ac_err=`grep -v '^ *+' conftest.out`
9919 if test -z "$ac_err"; then 9947 if test -z "$ac_err"; then
9920 rm -rf conftest* 9948 rm -rf conftest*
9921 eval "ac_cv_header_$ac_safe=yes" 9949 eval "ac_cv_header_$ac_safe=yes"
9922 else 9950 else
9937 #define HAVE_SOCKETS 1 9965 #define HAVE_SOCKETS 1
9938 EOF 9966 EOF
9939 } 9967 }
9940 9968
9941 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9969 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
9942 echo "configure:9943: checking "for sun_len member in struct sockaddr_un"" >&5 9970 echo "configure:9971: checking "for sun_len member in struct sockaddr_un"" >&5
9943 cat > conftest.$ac_ext <<EOF 9971 cat > conftest.$ac_ext <<EOF
9944 #line 9945 "configure" 9972 #line 9973 "configure"
9945 #include "confdefs.h" 9973 #include "confdefs.h"
9946 9974
9947 #include <sys/types.h> 9975 #include <sys/types.h>
9948 #include <sys/socket.h> 9976 #include <sys/socket.h>
9949 #include <sys/un.h> 9977 #include <sys/un.h>
9950 9978
9951 int main() { 9979 int main() {
9952 static struct sockaddr_un x; x.sun_len = 1; 9980 static struct sockaddr_un x; x.sun_len = 1;
9953 ; return 0; } 9981 ; return 0; }
9954 EOF 9982 EOF
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9983 if { (eval echo configure:9984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9956 rm -rf conftest* 9984 rm -rf conftest*
9957 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9985 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9958 Defining HAVE_SOCKADDR_SUN_LEN 9986 Defining HAVE_SOCKADDR_SUN_LEN
9959 EOF 9987 EOF
9960 cat >> confdefs.h <<\EOF 9988 cat >> confdefs.h <<\EOF
9968 rm -rf conftest* 9996 rm -rf conftest*
9969 echo "$ac_t""no" 1>&6 9997 echo "$ac_t""no" 1>&6
9970 fi 9998 fi
9971 rm -f conftest* 9999 rm -f conftest*
9972 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 10000 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
9973 echo "configure:9974: checking "for ip_mreq struct in netinet/in.h"" >&5 10001 echo "configure:10002: checking "for ip_mreq struct in netinet/in.h"" >&5
9974 cat > conftest.$ac_ext <<EOF 10002 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure" 10003 #line 10004 "configure"
9976 #include "confdefs.h" 10004 #include "confdefs.h"
9977 10005
9978 #include <sys/types.h> 10006 #include <sys/types.h>
9979 #include <netinet/in.h> 10007 #include <netinet/in.h>
9980 10008
9981 int main() { 10009 int main() {
9982 static struct ip_mreq x; 10010 static struct ip_mreq x;
9983 ; return 0; } 10011 ; return 0; }
9984 EOF 10012 EOF
9985 if { (eval echo configure:9986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9986 rm -rf conftest* 10014 rm -rf conftest*
9987 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10015 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9988 Defining HAVE_MULTICAST 10016 Defining HAVE_MULTICAST
9989 EOF 10017 EOF
9990 cat >> confdefs.h <<\EOF 10018 cat >> confdefs.h <<\EOF
10011 echo "$ac_t""no" 1>&6 10039 echo "$ac_t""no" 1>&6
10012 fi 10040 fi
10013 10041
10014 10042
10015 echo $ac_n "checking for msgget""... $ac_c" 1>&6 10043 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10016 echo "configure:10017: checking for msgget" >&5 10044 echo "configure:10045: checking for msgget" >&5
10017 10045
10018 cat > conftest.$ac_ext <<EOF 10046 cat > conftest.$ac_ext <<EOF
10019 #line 10020 "configure" 10047 #line 10048 "configure"
10020 #include "confdefs.h" 10048 #include "confdefs.h"
10021 /* System header to define __stub macros and hopefully few prototypes, 10049 /* System header to define __stub macros and hopefully few prototypes,
10022 which can conflict with char msgget(); below. */ 10050 which can conflict with char msgget(); below. */
10023 #include <assert.h> 10051 #include <assert.h>
10024 /* Override any gcc2 internal prototype to avoid an error. */ 10052 /* Override any gcc2 internal prototype to avoid an error. */
10037 msgget(); 10065 msgget();
10038 #endif 10066 #endif
10039 10067
10040 ; return 0; } 10068 ; return 0; }
10041 EOF 10069 EOF
10042 if { (eval echo configure:10043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10070 if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10043 rm -rf conftest* 10071 rm -rf conftest*
10044 eval "ac_cv_func_msgget=yes" 10072 eval "ac_cv_func_msgget=yes"
10045 else 10073 else
10046 echo "configure: failed program was:" >&5 10074 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5 10075 cat conftest.$ac_ext >&5
10052 10080
10053 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10081 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10054 echo "$ac_t""yes" 1>&6 10082 echo "$ac_t""yes" 1>&6
10055 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10083 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10056 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10084 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10057 echo "configure:10058: checking for sys/ipc.h" >&5 10085 echo "configure:10086: checking for sys/ipc.h" >&5
10058 10086
10059 cat > conftest.$ac_ext <<EOF 10087 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure" 10088 #line 10089 "configure"
10061 #include "confdefs.h" 10089 #include "confdefs.h"
10062 #include <sys/ipc.h> 10090 #include <sys/ipc.h>
10063 EOF 10091 EOF
10064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10065 { (eval echo configure:10066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10093 { (eval echo configure:10094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10066 ac_err=`grep -v '^ *+' conftest.out` 10094 ac_err=`grep -v '^ *+' conftest.out`
10067 if test -z "$ac_err"; then 10095 if test -z "$ac_err"; then
10068 rm -rf conftest* 10096 rm -rf conftest*
10069 eval "ac_cv_header_$ac_safe=yes" 10097 eval "ac_cv_header_$ac_safe=yes"
10070 else 10098 else
10077 rm -f conftest* 10105 rm -f conftest*
10078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10079 echo "$ac_t""yes" 1>&6 10107 echo "$ac_t""yes" 1>&6
10080 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 10108 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10081 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 10109 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10082 echo "configure:10083: checking for sys/msg.h" >&5 10110 echo "configure:10111: checking for sys/msg.h" >&5
10083 10111
10084 cat > conftest.$ac_ext <<EOF 10112 cat > conftest.$ac_ext <<EOF
10085 #line 10086 "configure" 10113 #line 10114 "configure"
10086 #include "confdefs.h" 10114 #include "confdefs.h"
10087 #include <sys/msg.h> 10115 #include <sys/msg.h>
10088 EOF 10116 EOF
10089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10090 { (eval echo configure:10091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10118 { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10091 ac_err=`grep -v '^ *+' conftest.out` 10119 ac_err=`grep -v '^ *+' conftest.out`
10092 if test -z "$ac_err"; then 10120 if test -z "$ac_err"; then
10093 rm -rf conftest* 10121 rm -rf conftest*
10094 eval "ac_cv_header_$ac_safe=yes" 10122 eval "ac_cv_header_$ac_safe=yes"
10095 else 10123 else
10123 fi 10151 fi
10124 10152
10125 10153
10126 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10154 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10127 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10155 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10128 echo "configure:10129: checking for dirent.h" >&5 10156 echo "configure:10157: checking for dirent.h" >&5
10129 10157
10130 cat > conftest.$ac_ext <<EOF 10158 cat > conftest.$ac_ext <<EOF
10131 #line 10132 "configure" 10159 #line 10160 "configure"
10132 #include "confdefs.h" 10160 #include "confdefs.h"
10133 #include <dirent.h> 10161 #include <dirent.h>
10134 EOF 10162 EOF
10135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10136 { (eval echo configure:10137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10164 { (eval echo configure:10165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10137 ac_err=`grep -v '^ *+' conftest.out` 10165 ac_err=`grep -v '^ *+' conftest.out`
10138 if test -z "$ac_err"; then 10166 if test -z "$ac_err"; then
10139 rm -rf conftest* 10167 rm -rf conftest*
10140 eval "ac_cv_header_$ac_safe=yes" 10168 eval "ac_cv_header_$ac_safe=yes"
10141 else 10169 else
10158 10186
10159 else 10187 else
10160 echo "$ac_t""no" 1>&6 10188 echo "$ac_t""no" 1>&6
10161 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10189 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10162 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10190 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10163 echo "configure:10164: checking for sys/dir.h" >&5 10191 echo "configure:10192: checking for sys/dir.h" >&5
10164 10192
10165 cat > conftest.$ac_ext <<EOF 10193 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure" 10194 #line 10195 "configure"
10167 #include "confdefs.h" 10195 #include "confdefs.h"
10168 #include <sys/dir.h> 10196 #include <sys/dir.h>
10169 EOF 10197 EOF
10170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10171 { (eval echo configure:10172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10199 { (eval echo configure:10200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10172 ac_err=`grep -v '^ *+' conftest.out` 10200 ac_err=`grep -v '^ *+' conftest.out`
10173 if test -z "$ac_err"; then 10201 if test -z "$ac_err"; then
10174 rm -rf conftest* 10202 rm -rf conftest*
10175 eval "ac_cv_header_$ac_safe=yes" 10203 eval "ac_cv_header_$ac_safe=yes"
10176 else 10204 else
10199 fi 10227 fi
10200 10228
10201 10229
10202 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10230 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10203 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10231 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10204 echo "configure:10205: checking for nlist.h" >&5 10232 echo "configure:10233: checking for nlist.h" >&5
10205 10233
10206 cat > conftest.$ac_ext <<EOF 10234 cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure" 10235 #line 10236 "configure"
10208 #include "confdefs.h" 10236 #include "confdefs.h"
10209 #include <nlist.h> 10237 #include <nlist.h>
10210 EOF 10238 EOF
10211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10212 { (eval echo configure:10213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10240 { (eval echo configure:10241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10213 ac_err=`grep -v '^ *+' conftest.out` 10241 ac_err=`grep -v '^ *+' conftest.out`
10214 if test -z "$ac_err"; then 10242 if test -z "$ac_err"; then
10215 rm -rf conftest* 10243 rm -rf conftest*
10216 eval "ac_cv_header_$ac_safe=yes" 10244 eval "ac_cv_header_$ac_safe=yes"
10217 else 10245 else
10237 fi 10265 fi
10238 10266
10239 10267
10240 10268
10241 echo "checking "for sound support"" 1>&6 10269 echo "checking "for sound support"" 1>&6
10242 echo "configure:10243: checking "for sound support"" >&5 10270 echo "configure:10271: checking "for sound support"" >&5
10243 case "$with_sound" in 10271 case "$with_sound" in
10244 native | both ) with_native_sound=yes;; 10272 native | both ) with_native_sound=yes;;
10245 nas | no ) with_native_sound=no;; 10273 nas | no ) with_native_sound=no;;
10246 esac 10274 esac
10247 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10275 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10248 10276
10249 if test "$with_native_sound" != "no"; then 10277 if test "$with_native_sound" != "no"; then
10250 if test -n "$native_sound_lib"; then 10278 if test -n "$native_sound_lib"; then
10251 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10279 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10252 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10280 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10253 echo "configure:10254: checking for multimedia/audio_device.h" >&5 10281 echo "configure:10282: checking for multimedia/audio_device.h" >&5
10254 10282
10255 cat > conftest.$ac_ext <<EOF 10283 cat > conftest.$ac_ext <<EOF
10256 #line 10257 "configure" 10284 #line 10285 "configure"
10257 #include "confdefs.h" 10285 #include "confdefs.h"
10258 #include <multimedia/audio_device.h> 10286 #include <multimedia/audio_device.h>
10259 EOF 10287 EOF
10260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10261 { (eval echo configure:10262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10289 { (eval echo configure:10290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10262 ac_err=`grep -v '^ *+' conftest.out` 10290 ac_err=`grep -v '^ *+' conftest.out`
10263 if test -z "$ac_err"; then 10291 if test -z "$ac_err"; then
10264 rm -rf conftest* 10292 rm -rf conftest*
10265 eval "ac_cv_header_$ac_safe=yes" 10293 eval "ac_cv_header_$ac_safe=yes"
10266 else 10294 else
10304 case "$canonical" in 10332 case "$canonical" in
10305 *-sgi-* ) 10333 *-sgi-* )
10306 if test -z "$native_sound_lib"; then 10334 if test -z "$native_sound_lib"; then
10307 10335
10308 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10336 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10309 echo "configure:10310: checking for ALopenport in -laudio" >&5 10337 echo "configure:10338: checking for ALopenport in -laudio" >&5
10310 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10338 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10311 10339
10312 xe_check_libs=" -laudio " 10340 xe_check_libs=" -laudio "
10313 cat > conftest.$ac_ext <<EOF 10341 cat > conftest.$ac_ext <<EOF
10314 #line 10315 "configure" 10342 #line 10343 "configure"
10315 #include "confdefs.h" 10343 #include "confdefs.h"
10316 /* Override any gcc2 internal prototype to avoid an error. */ 10344 /* Override any gcc2 internal prototype to avoid an error. */
10317 /* We use char because int might match the return type of a gcc2 10345 /* We use char because int might match the return type of a gcc2
10318 builtin and then its argument prototype would still apply. */ 10346 builtin and then its argument prototype would still apply. */
10319 char ALopenport(); 10347 char ALopenport();
10320 10348
10321 int main() { 10349 int main() {
10322 ALopenport() 10350 ALopenport()
10323 ; return 0; } 10351 ; return 0; }
10324 EOF 10352 EOF
10325 if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10326 rm -rf conftest* 10354 rm -rf conftest*
10327 eval "ac_cv_lib_$ac_lib_var=yes" 10355 eval "ac_cv_lib_$ac_lib_var=yes"
10328 else 10356 else
10329 echo "configure: failed program was:" >&5 10357 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5 10358 cat conftest.$ac_ext >&5
10351 fi ;; 10379 fi ;;
10352 hppa*-hp-hpux* ) 10380 hppa*-hp-hpux* )
10353 if test -z "$native_sound_lib"; then 10381 if test -z "$native_sound_lib"; then
10354 10382
10355 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10383 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10356 echo "configure:10357: checking for AOpenAudio in -lAlib" >&5 10384 echo "configure:10385: checking for AOpenAudio in -lAlib" >&5
10357 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10385 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10358 10386
10359 xe_check_libs=" -lAlib " 10387 xe_check_libs=" -lAlib "
10360 cat > conftest.$ac_ext <<EOF 10388 cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure" 10389 #line 10390 "configure"
10362 #include "confdefs.h" 10390 #include "confdefs.h"
10363 /* Override any gcc2 internal prototype to avoid an error. */ 10391 /* Override any gcc2 internal prototype to avoid an error. */
10364 /* We use char because int might match the return type of a gcc2 10392 /* We use char because int might match the return type of a gcc2
10365 builtin and then its argument prototype would still apply. */ 10393 builtin and then its argument prototype would still apply. */
10366 char AOpenAudio(); 10394 char AOpenAudio();
10367 10395
10368 int main() { 10396 int main() {
10369 AOpenAudio() 10397 AOpenAudio()
10370 ; return 0; } 10398 ; return 0; }
10371 EOF 10399 EOF
10372 if { (eval echo configure:10373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10400 if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10373 rm -rf conftest* 10401 rm -rf conftest*
10374 eval "ac_cv_lib_$ac_lib_var=yes" 10402 eval "ac_cv_lib_$ac_lib_var=yes"
10375 else 10403 else
10376 echo "configure: failed program was:" >&5 10404 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5 10405 cat conftest.$ac_ext >&5
10405 10433
10406 if test -z "$sound_found"; then 10434 if test -z "$sound_found"; then
10407 for dir in "machine" "sys" "linux"; do 10435 for dir in "machine" "sys" "linux"; do
10408 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10436 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10409 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10437 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10410 echo "configure:10411: checking for ${dir}/soundcard.h" >&5 10438 echo "configure:10439: checking for ${dir}/soundcard.h" >&5
10411 10439
10412 cat > conftest.$ac_ext <<EOF 10440 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure" 10441 #line 10442 "configure"
10414 #include "confdefs.h" 10442 #include "confdefs.h"
10415 #include <${dir}/soundcard.h> 10443 #include <${dir}/soundcard.h>
10416 EOF 10444 EOF
10417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10418 { (eval echo configure:10419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10446 { (eval echo configure:10447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10419 ac_err=`grep -v '^ *+' conftest.out` 10447 ac_err=`grep -v '^ *+' conftest.out`
10420 if test -z "$ac_err"; then 10448 if test -z "$ac_err"; then
10421 rm -rf conftest* 10449 rm -rf conftest*
10422 eval "ac_cv_header_$ac_safe=yes" 10450 eval "ac_cv_header_$ac_safe=yes"
10423 else 10451 else
10483 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10511 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10484 echo " xemacs will be linked with \"nas.o\"" 10512 echo " xemacs will be linked with \"nas.o\""
10485 fi 10513 fi
10486 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10514 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10487 cat > conftest.$ac_ext <<EOF 10515 cat > conftest.$ac_ext <<EOF
10488 #line 10489 "configure" 10516 #line 10517 "configure"
10489 #include "confdefs.h" 10517 #include "confdefs.h"
10490 #include <audio/Xtutil.h> 10518 #include <audio/Xtutil.h>
10491 EOF 10519 EOF
10492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10493 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10521 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10510 10538
10511 test -z "$with_tty" && with_tty=yes 10539 test -z "$with_tty" && with_tty=yes
10512 10540
10513 if test "$with_tty" = "yes" ; then 10541 if test "$with_tty" = "yes" ; then
10514 echo "checking for TTY-related features" 1>&6 10542 echo "checking for TTY-related features" 1>&6
10515 echo "configure:10516: checking for TTY-related features" >&5 10543 echo "configure:10544: checking for TTY-related features" >&5
10516 { test "$extra_verbose" = "yes" && cat << \EOF 10544 { test "$extra_verbose" = "yes" && cat << \EOF
10517 Defining HAVE_TTY 10545 Defining HAVE_TTY
10518 EOF 10546 EOF
10519 cat >> confdefs.h <<\EOF 10547 cat >> confdefs.h <<\EOF
10520 #define HAVE_TTY 1 10548 #define HAVE_TTY 1
10526 fi 10554 fi
10527 10555
10528 if test -z "$with_ncurses"; then 10556 if test -z "$with_ncurses"; then
10529 10557
10530 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10558 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10531 echo "configure:10532: checking for tgetent in -lncurses" >&5 10559 echo "configure:10560: checking for tgetent in -lncurses" >&5
10532 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10560 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10533 10561
10534 xe_check_libs=" -lncurses " 10562 xe_check_libs=" -lncurses "
10535 cat > conftest.$ac_ext <<EOF 10563 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure" 10564 #line 10565 "configure"
10537 #include "confdefs.h" 10565 #include "confdefs.h"
10538 /* Override any gcc2 internal prototype to avoid an error. */ 10566 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2 10567 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */ 10568 builtin and then its argument prototype would still apply. */
10541 char tgetent(); 10569 char tgetent();
10542 10570
10543 int main() { 10571 int main() {
10544 tgetent() 10572 tgetent()
10545 ; return 0; } 10573 ; return 0; }
10546 EOF 10574 EOF
10547 if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10575 if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10548 rm -rf conftest* 10576 rm -rf conftest*
10549 eval "ac_cv_lib_$ac_lib_var=yes" 10577 eval "ac_cv_lib_$ac_lib_var=yes"
10550 else 10578 else
10551 echo "configure: failed program was:" >&5 10579 echo "configure: failed program was:" >&5
10552 cat conftest.$ac_ext >&5 10580 cat conftest.$ac_ext >&5
10575 EOF 10603 EOF
10576 } 10604 }
10577 10605
10578 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10606 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10579 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10607 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10580 echo "configure:10581: checking for ncurses/curses.h" >&5 10608 echo "configure:10609: checking for ncurses/curses.h" >&5
10581 10609
10582 cat > conftest.$ac_ext <<EOF 10610 cat > conftest.$ac_ext <<EOF
10583 #line 10584 "configure" 10611 #line 10612 "configure"
10584 #include "confdefs.h" 10612 #include "confdefs.h"
10585 #include <ncurses/curses.h> 10613 #include <ncurses/curses.h>
10586 EOF 10614 EOF
10587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10588 { (eval echo configure:10589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10616 { (eval echo configure:10617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10589 ac_err=`grep -v '^ *+' conftest.out` 10617 ac_err=`grep -v '^ *+' conftest.out`
10590 if test -z "$ac_err"; then 10618 if test -z "$ac_err"; then
10591 rm -rf conftest* 10619 rm -rf conftest*
10592 eval "ac_cv_header_$ac_safe=yes" 10620 eval "ac_cv_header_$ac_safe=yes"
10593 else 10621 else
10605 echo "$ac_t""no" 1>&6 10633 echo "$ac_t""no" 1>&6
10606 fi 10634 fi
10607 10635
10608 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10636 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10609 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10637 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10610 echo "configure:10611: checking for ncurses/term.h" >&5 10638 echo "configure:10639: checking for ncurses/term.h" >&5
10611 10639
10612 cat > conftest.$ac_ext <<EOF 10640 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure" 10641 #line 10642 "configure"
10614 #include "confdefs.h" 10642 #include "confdefs.h"
10615 #include <ncurses/term.h> 10643 #include <ncurses/term.h>
10616 EOF 10644 EOF
10617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10618 { (eval echo configure:10619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10646 { (eval echo configure:10647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10619 ac_err=`grep -v '^ *+' conftest.out` 10647 ac_err=`grep -v '^ *+' conftest.out`
10620 if test -z "$ac_err"; then 10648 if test -z "$ac_err"; then
10621 rm -rf conftest* 10649 rm -rf conftest*
10622 eval "ac_cv_header_$ac_safe=yes" 10650 eval "ac_cv_header_$ac_safe=yes"
10623 else 10651 else
10643 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10671 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10644 save_c_switch_site="$c_switch_site" 10672 save_c_switch_site="$c_switch_site"
10645 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10673 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10646 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10674 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10647 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10675 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10648 echo "configure:10649: checking for ncurses/curses.h" >&5 10676 echo "configure:10677: checking for ncurses/curses.h" >&5
10649 10677
10650 cat > conftest.$ac_ext <<EOF 10678 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure" 10679 #line 10680 "configure"
10652 #include "confdefs.h" 10680 #include "confdefs.h"
10653 #include <ncurses/curses.h> 10681 #include <ncurses/curses.h>
10654 EOF 10682 EOF
10655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10656 { (eval echo configure:10657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10684 { (eval echo configure:10685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10657 ac_err=`grep -v '^ *+' conftest.out` 10685 ac_err=`grep -v '^ *+' conftest.out`
10658 if test -z "$ac_err"; then 10686 if test -z "$ac_err"; then
10659 rm -rf conftest* 10687 rm -rf conftest*
10660 eval "ac_cv_header_$ac_safe=yes" 10688 eval "ac_cv_header_$ac_safe=yes"
10661 else 10689 else
10686 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10714 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10687 else 10715 else
10688 for lib in curses termlib termcap; do 10716 for lib in curses termlib termcap; do
10689 10717
10690 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10718 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10691 echo "configure:10692: checking for tgetent in -l$lib" >&5 10719 echo "configure:10720: checking for tgetent in -l$lib" >&5
10692 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10720 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10693 10721
10694 xe_check_libs=" -l$lib " 10722 xe_check_libs=" -l$lib "
10695 cat > conftest.$ac_ext <<EOF 10723 cat > conftest.$ac_ext <<EOF
10696 #line 10697 "configure" 10724 #line 10725 "configure"
10697 #include "confdefs.h" 10725 #include "confdefs.h"
10698 /* Override any gcc2 internal prototype to avoid an error. */ 10726 /* Override any gcc2 internal prototype to avoid an error. */
10699 /* We use char because int might match the return type of a gcc2 10727 /* We use char because int might match the return type of a gcc2
10700 builtin and then its argument prototype would still apply. */ 10728 builtin and then its argument prototype would still apply. */
10701 char tgetent(); 10729 char tgetent();
10702 10730
10703 int main() { 10731 int main() {
10704 tgetent() 10732 tgetent()
10705 ; return 0; } 10733 ; return 0; }
10706 EOF 10734 EOF
10707 if { (eval echo configure:10708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10708 rm -rf conftest* 10736 rm -rf conftest*
10709 eval "ac_cv_lib_$ac_lib_var=yes" 10737 eval "ac_cv_lib_$ac_lib_var=yes"
10710 else 10738 else
10711 echo "configure: failed program was:" >&5 10739 echo "configure: failed program was:" >&5
10712 cat conftest.$ac_ext >&5 10740 cat conftest.$ac_ext >&5
10733 if test -n "$libs_termcap"; then 10761 if test -n "$libs_termcap"; then
10734 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10762 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10735 else 10763 else
10736 10764
10737 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10765 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10738 echo "configure:10739: checking for tgetent in -lcurses" >&5 10766 echo "configure:10767: checking for tgetent in -lcurses" >&5
10739 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10767 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10740 10768
10741 xe_check_libs=" -lcurses " 10769 xe_check_libs=" -lcurses "
10742 cat > conftest.$ac_ext <<EOF 10770 cat > conftest.$ac_ext <<EOF
10743 #line 10744 "configure" 10771 #line 10772 "configure"
10744 #include "confdefs.h" 10772 #include "confdefs.h"
10745 /* Override any gcc2 internal prototype to avoid an error. */ 10773 /* Override any gcc2 internal prototype to avoid an error. */
10746 /* We use char because int might match the return type of a gcc2 10774 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */ 10775 builtin and then its argument prototype would still apply. */
10748 char tgetent(); 10776 char tgetent();
10749 10777
10750 int main() { 10778 int main() {
10751 tgetent() 10779 tgetent()
10752 ; return 0; } 10780 ; return 0; }
10753 EOF 10781 EOF
10754 if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10782 if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10755 rm -rf conftest* 10783 rm -rf conftest*
10756 eval "ac_cv_lib_$ac_lib_var=yes" 10784 eval "ac_cv_lib_$ac_lib_var=yes"
10757 else 10785 else
10758 echo "configure: failed program was:" >&5 10786 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5 10787 cat conftest.$ac_ext >&5
10767 echo "$ac_t""yes" 1>&6 10795 echo "$ac_t""yes" 1>&6
10768 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10796 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10769 else 10797 else
10770 echo "$ac_t""no" 1>&6 10798 echo "$ac_t""no" 1>&6
10771 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10799 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10772 echo "configure:10773: checking for tgetent in -ltermcap" >&5 10800 echo "configure:10801: checking for tgetent in -ltermcap" >&5
10773 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10801 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10774 10802
10775 xe_check_libs=" -ltermcap " 10803 xe_check_libs=" -ltermcap "
10776 cat > conftest.$ac_ext <<EOF 10804 cat > conftest.$ac_ext <<EOF
10777 #line 10778 "configure" 10805 #line 10806 "configure"
10778 #include "confdefs.h" 10806 #include "confdefs.h"
10779 /* Override any gcc2 internal prototype to avoid an error. */ 10807 /* Override any gcc2 internal prototype to avoid an error. */
10780 /* We use char because int might match the return type of a gcc2 10808 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */ 10809 builtin and then its argument prototype would still apply. */
10782 char tgetent(); 10810 char tgetent();
10783 10811
10784 int main() { 10812 int main() {
10785 tgetent() 10813 tgetent()
10786 ; return 0; } 10814 ; return 0; }
10787 EOF 10815 EOF
10788 if { (eval echo configure:10789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10816 if { (eval echo configure:10817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10789 rm -rf conftest* 10817 rm -rf conftest*
10790 eval "ac_cv_lib_$ac_lib_var=yes" 10818 eval "ac_cv_lib_$ac_lib_var=yes"
10791 else 10819 else
10792 echo "configure: failed program was:" >&5 10820 echo "configure: failed program was:" >&5
10793 cat conftest.$ac_ext >&5 10821 cat conftest.$ac_ext >&5
10831 } 10859 }
10832 10860
10833 10861
10834 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10862 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10835 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10863 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10836 echo "configure:10837: checking for gpm.h" >&5 10864 echo "configure:10865: checking for gpm.h" >&5
10837 10865
10838 cat > conftest.$ac_ext <<EOF 10866 cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure" 10867 #line 10868 "configure"
10840 #include "confdefs.h" 10868 #include "confdefs.h"
10841 #include <gpm.h> 10869 #include <gpm.h>
10842 EOF 10870 EOF
10843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10844 { (eval echo configure:10845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10872 { (eval echo configure:10873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10845 ac_err=`grep -v '^ *+' conftest.out` 10873 ac_err=`grep -v '^ *+' conftest.out`
10846 if test -z "$ac_err"; then 10874 if test -z "$ac_err"; then
10847 rm -rf conftest* 10875 rm -rf conftest*
10848 eval "ac_cv_header_$ac_safe=yes" 10876 eval "ac_cv_header_$ac_safe=yes"
10849 else 10877 else
10862 with_gpm=no 10890 with_gpm=no
10863 fi 10891 fi
10864 } 10892 }
10865 test -z "$with_gpm" && { 10893 test -z "$with_gpm" && {
10866 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10894 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10867 echo "configure:10868: checking for Gpm_Open in -lgpm" >&5 10895 echo "configure:10896: checking for Gpm_Open in -lgpm" >&5
10868 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10896 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10869 10897
10870 xe_check_libs=" -lgpm " 10898 xe_check_libs=" -lgpm "
10871 cat > conftest.$ac_ext <<EOF 10899 cat > conftest.$ac_ext <<EOF
10872 #line 10873 "configure" 10900 #line 10901 "configure"
10873 #include "confdefs.h" 10901 #include "confdefs.h"
10874 /* Override any gcc2 internal prototype to avoid an error. */ 10902 /* Override any gcc2 internal prototype to avoid an error. */
10875 /* We use char because int might match the return type of a gcc2 10903 /* We use char because int might match the return type of a gcc2
10876 builtin and then its argument prototype would still apply. */ 10904 builtin and then its argument prototype would still apply. */
10877 char Gpm_Open(); 10905 char Gpm_Open();
10878 10906
10879 int main() { 10907 int main() {
10880 Gpm_Open() 10908 Gpm_Open()
10881 ; return 0; } 10909 ; return 0; }
10882 EOF 10910 EOF
10883 if { (eval echo configure:10884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10911 if { (eval echo configure:10912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10884 rm -rf conftest* 10912 rm -rf conftest*
10885 eval "ac_cv_lib_$ac_lib_var=yes" 10913 eval "ac_cv_lib_$ac_lib_var=yes"
10886 else 10914 else
10887 echo "configure: failed program was:" >&5 10915 echo "configure: failed program was:" >&5
10888 cat conftest.$ac_ext >&5 10916 cat conftest.$ac_ext >&5
10928 fi 10956 fi
10929 10957
10930 10958
10931 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ 10959 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
10932 != "no no no" && echo "checking for database support" 1>&6 10960 != "no no no" && echo "checking for database support" 1>&6
10933 echo "configure:10934: checking for database support" >&5 10961 echo "configure:10962: checking for database support" >&5
10934 10962
10935 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 10963 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
10936 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 10964 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
10937 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 10965 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
10938 echo "configure:10939: checking for ndbm.h" >&5 10966 echo "configure:10967: checking for ndbm.h" >&5
10939 10967
10940 cat > conftest.$ac_ext <<EOF 10968 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure" 10969 #line 10970 "configure"
10942 #include "confdefs.h" 10970 #include "confdefs.h"
10943 #include <ndbm.h> 10971 #include <ndbm.h>
10944 EOF 10972 EOF
10945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10946 { (eval echo configure:10947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10974 { (eval echo configure:10975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10947 ac_err=`grep -v '^ *+' conftest.out` 10975 ac_err=`grep -v '^ *+' conftest.out`
10948 if test -z "$ac_err"; then 10976 if test -z "$ac_err"; then
10949 rm -rf conftest* 10977 rm -rf conftest*
10950 eval "ac_cv_header_$ac_safe=yes" 10978 eval "ac_cv_header_$ac_safe=yes"
10951 else 10979 else
10971 fi 10999 fi
10972 11000
10973 if test "$with_database_gnudbm" != "no"; then 11001 if test "$with_database_gnudbm" != "no"; then
10974 11002
10975 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 11003 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
10976 echo "configure:10977: checking for dbm_open in -lgdbm" >&5 11004 echo "configure:11005: checking for dbm_open in -lgdbm" >&5
10977 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 11005 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
10978 11006
10979 xe_check_libs=" -lgdbm " 11007 xe_check_libs=" -lgdbm "
10980 cat > conftest.$ac_ext <<EOF 11008 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure" 11009 #line 11010 "configure"
10982 #include "confdefs.h" 11010 #include "confdefs.h"
10983 /* Override any gcc2 internal prototype to avoid an error. */ 11011 /* Override any gcc2 internal prototype to avoid an error. */
10984 /* We use char because int might match the return type of a gcc2 11012 /* We use char because int might match the return type of a gcc2
10985 builtin and then its argument prototype would still apply. */ 11013 builtin and then its argument prototype would still apply. */
10986 char dbm_open(); 11014 char dbm_open();
10987 11015
10988 int main() { 11016 int main() {
10989 dbm_open() 11017 dbm_open()
10990 ; return 0; } 11018 ; return 0; }
10991 EOF 11019 EOF
10992 if { (eval echo configure:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10993 rm -rf conftest* 11021 rm -rf conftest*
10994 eval "ac_cv_lib_$ac_lib_var=yes" 11022 eval "ac_cv_lib_$ac_lib_var=yes"
10995 else 11023 else
10996 echo "configure: failed program was:" >&5 11024 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5 11025 cat conftest.$ac_ext >&5
11015 11043
11016 fi 11044 fi
11017 11045
11018 if test "$with_database_dbm" != "no"; then 11046 if test "$with_database_dbm" != "no"; then
11019 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 11047 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11020 echo "configure:11021: checking for dbm_open" >&5 11048 echo "configure:11049: checking for dbm_open" >&5
11021 11049
11022 cat > conftest.$ac_ext <<EOF 11050 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure" 11051 #line 11052 "configure"
11024 #include "confdefs.h" 11052 #include "confdefs.h"
11025 /* System header to define __stub macros and hopefully few prototypes, 11053 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char dbm_open(); below. */ 11054 which can conflict with char dbm_open(); below. */
11027 #include <assert.h> 11055 #include <assert.h>
11028 /* Override any gcc2 internal prototype to avoid an error. */ 11056 /* Override any gcc2 internal prototype to avoid an error. */
11041 dbm_open(); 11069 dbm_open();
11042 #endif 11070 #endif
11043 11071
11044 ; return 0; } 11072 ; return 0; }
11045 EOF 11073 EOF
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11074 if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11047 rm -rf conftest* 11075 rm -rf conftest*
11048 eval "ac_cv_func_dbm_open=yes" 11076 eval "ac_cv_func_dbm_open=yes"
11049 else 11077 else
11050 echo "configure: failed program was:" >&5 11078 echo "configure: failed program was:" >&5
11051 cat conftest.$ac_ext >&5 11079 cat conftest.$ac_ext >&5
11060 else 11088 else
11061 echo "$ac_t""no" 1>&6 11089 echo "$ac_t""no" 1>&6
11062 11090
11063 11091
11064 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11092 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11065 echo "configure:11066: checking for dbm_open in -ldbm" >&5 11093 echo "configure:11094: checking for dbm_open in -ldbm" >&5
11066 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11094 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11067 11095
11068 xe_check_libs=" -ldbm " 11096 xe_check_libs=" -ldbm "
11069 cat > conftest.$ac_ext <<EOF 11097 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure" 11098 #line 11099 "configure"
11071 #include "confdefs.h" 11099 #include "confdefs.h"
11072 /* Override any gcc2 internal prototype to avoid an error. */ 11100 /* Override any gcc2 internal prototype to avoid an error. */
11073 /* We use char because int might match the return type of a gcc2 11101 /* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */ 11102 builtin and then its argument prototype would still apply. */
11075 char dbm_open(); 11103 char dbm_open();
11076 11104
11077 int main() { 11105 int main() {
11078 dbm_open() 11106 dbm_open()
11079 ; return 0; } 11107 ; return 0; }
11080 EOF 11108 EOF
11081 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11082 rm -rf conftest* 11110 rm -rf conftest*
11083 eval "ac_cv_lib_$ac_lib_var=yes" 11111 eval "ac_cv_lib_$ac_lib_var=yes"
11084 else 11112 else
11085 echo "configure: failed program was:" >&5 11113 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5 11114 cat conftest.$ac_ext >&5
11117 } 11145 }
11118 11146
11119 11147
11120 if test "$with_database_berkdb" != "no"; then 11148 if test "$with_database_berkdb" != "no"; then
11121 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11149 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11122 echo "configure:11123: checking for Berkeley db.h" >&5 11150 echo "configure:11151: checking for Berkeley db.h" >&5
11123 for path in "db/db.h" "db.h"; do 11151 for path in "db/db.h" "db.h"; do
11124 cat > conftest.$ac_ext <<EOF 11152 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure" 11153 #line 11154 "configure"
11126 #include "confdefs.h" 11154 #include "confdefs.h"
11127 #ifdef HAVE_INTTYPES_H 11155 #ifdef HAVE_INTTYPES_H
11128 #define __BIT_TYPES_DEFINED__ 11156 #define __BIT_TYPES_DEFINED__
11129 #include <inttypes.h> 11157 #include <inttypes.h>
11130 typedef uint8_t u_int8_t; 11158 typedef uint8_t u_int8_t;
11138 11166
11139 int main() { 11167 int main() {
11140 11168
11141 ; return 0; } 11169 ; return 0; }
11142 EOF 11170 EOF
11143 if { (eval echo configure:11144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11171 if { (eval echo configure:11172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11144 rm -rf conftest* 11172 rm -rf conftest*
11145 db_h_path="$path"; break 11173 db_h_path="$path"; break
11146 else 11174 else
11147 echo "configure: failed program was:" >&5 11175 echo "configure: failed program was:" >&5
11148 cat conftest.$ac_ext >&5 11176 cat conftest.$ac_ext >&5
11154 else echo "$ac_t""$db_h_path" 1>&6 11182 else echo "$ac_t""$db_h_path" 1>&6
11155 fi 11183 fi
11156 11184
11157 if test "$with_database_berkdb" != "no"; then 11185 if test "$with_database_berkdb" != "no"; then
11158 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11186 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11159 echo "configure:11160: checking for Berkeley DB version" >&5 11187 echo "configure:11188: checking for Berkeley DB version" >&5
11160 cat > conftest.$ac_ext <<EOF 11188 cat > conftest.$ac_ext <<EOF
11161 #line 11162 "configure" 11189 #line 11190 "configure"
11162 #include "confdefs.h" 11190 #include "confdefs.h"
11163 #include <$db_h_path> 11191 #include <$db_h_path>
11164 #if DB_VERSION_MAJOR > 1 11192 #if DB_VERSION_MAJOR > 1
11165 yes 11193 yes
11166 #endif 11194 #endif
11175 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11203 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11176 fi 11204 fi
11177 rm -f conftest* 11205 rm -f conftest*
11178 11206
11179 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11207 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11180 echo "configure:11181: checking for $dbfunc" >&5 11208 echo "configure:11209: checking for $dbfunc" >&5
11181 11209
11182 cat > conftest.$ac_ext <<EOF 11210 cat > conftest.$ac_ext <<EOF
11183 #line 11184 "configure" 11211 #line 11212 "configure"
11184 #include "confdefs.h" 11212 #include "confdefs.h"
11185 /* System header to define __stub macros and hopefully few prototypes, 11213 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $dbfunc(); below. */ 11214 which can conflict with char $dbfunc(); below. */
11187 #include <assert.h> 11215 #include <assert.h>
11188 /* Override any gcc2 internal prototype to avoid an error. */ 11216 /* Override any gcc2 internal prototype to avoid an error. */
11201 $dbfunc(); 11229 $dbfunc();
11202 #endif 11230 #endif
11203 11231
11204 ; return 0; } 11232 ; return 0; }
11205 EOF 11233 EOF
11206 if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11234 if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11207 rm -rf conftest* 11235 rm -rf conftest*
11208 eval "ac_cv_func_$dbfunc=yes" 11236 eval "ac_cv_func_$dbfunc=yes"
11209 else 11237 else
11210 echo "configure: failed program was:" >&5 11238 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5 11239 cat conftest.$ac_ext >&5
11220 else 11248 else
11221 echo "$ac_t""no" 1>&6 11249 echo "$ac_t""no" 1>&6
11222 11250
11223 11251
11224 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11252 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11225 echo "configure:11226: checking for $dbfunc in -ldb" >&5 11253 echo "configure:11254: checking for $dbfunc in -ldb" >&5
11226 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11254 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11227 11255
11228 xe_check_libs=" -ldb " 11256 xe_check_libs=" -ldb "
11229 cat > conftest.$ac_ext <<EOF 11257 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure" 11258 #line 11259 "configure"
11231 #include "confdefs.h" 11259 #include "confdefs.h"
11232 /* Override any gcc2 internal prototype to avoid an error. */ 11260 /* Override any gcc2 internal prototype to avoid an error. */
11233 /* We use char because int might match the return type of a gcc2 11261 /* We use char because int might match the return type of a gcc2
11234 builtin and then its argument prototype would still apply. */ 11262 builtin and then its argument prototype would still apply. */
11235 char $dbfunc(); 11263 char $dbfunc();
11236 11264
11237 int main() { 11265 int main() {
11238 $dbfunc() 11266 $dbfunc()
11239 ; return 0; } 11267 ; return 0; }
11240 EOF 11268 EOF
11241 if { (eval echo configure:11242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11269 if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11242 rm -rf conftest* 11270 rm -rf conftest*
11243 eval "ac_cv_lib_$ac_lib_var=yes" 11271 eval "ac_cv_lib_$ac_lib_var=yes"
11244 else 11272 else
11245 echo "configure: failed program was:" >&5 11273 echo "configure: failed program was:" >&5
11246 cat conftest.$ac_ext >&5 11274 cat conftest.$ac_ext >&5
11300 fi 11328 fi
11301 11329
11302 if test "$with_socks" = "yes"; then 11330 if test "$with_socks" = "yes"; then
11303 11331
11304 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11332 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11305 echo "configure:11306: checking for SOCKSinit in -lsocks" >&5 11333 echo "configure:11334: checking for SOCKSinit in -lsocks" >&5
11306 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11334 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11307 11335
11308 xe_check_libs=" -lsocks " 11336 xe_check_libs=" -lsocks "
11309 cat > conftest.$ac_ext <<EOF 11337 cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure" 11338 #line 11339 "configure"
11311 #include "confdefs.h" 11339 #include "confdefs.h"
11312 /* Override any gcc2 internal prototype to avoid an error. */ 11340 /* Override any gcc2 internal prototype to avoid an error. */
11313 /* We use char because int might match the return type of a gcc2 11341 /* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */ 11342 builtin and then its argument prototype would still apply. */
11315 char SOCKSinit(); 11343 char SOCKSinit();
11316 11344
11317 int main() { 11345 int main() {
11318 SOCKSinit() 11346 SOCKSinit()
11319 ; return 0; } 11347 ; return 0; }
11320 EOF 11348 EOF
11321 if { (eval echo configure:11322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11349 if { (eval echo configure:11350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11322 rm -rf conftest* 11350 rm -rf conftest*
11323 eval "ac_cv_lib_$ac_lib_var=yes" 11351 eval "ac_cv_lib_$ac_lib_var=yes"
11324 else 11352 else
11325 echo "configure: failed program was:" >&5 11353 echo "configure: failed program was:" >&5
11326 cat conftest.$ac_ext >&5 11354 cat conftest.$ac_ext >&5
11369 } 11397 }
11370 11398
11371 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 11399 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
11372 fi 11400 fi
11373 11401
11374 test -z "$with_shlib" && test "$opsys $machine" = "cygwin32 intel386" && with_shlib=no
11375
11376 for ac_hdr in dlfcn.h 11402 for ac_hdr in dlfcn.h
11377 do 11403 do
11378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11380 echo "configure:11381: checking for $ac_hdr" >&5 11406 echo "configure:11407: checking for $ac_hdr" >&5
11381 11407
11382 cat > conftest.$ac_ext <<EOF 11408 cat > conftest.$ac_ext <<EOF
11383 #line 11384 "configure" 11409 #line 11410 "configure"
11384 #include "confdefs.h" 11410 #include "confdefs.h"
11385 #include <$ac_hdr> 11411 #include <$ac_hdr>
11386 EOF 11412 EOF
11387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11388 { (eval echo configure:11389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11414 { (eval echo configure:11415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11389 ac_err=`grep -v '^ *+' conftest.out` 11415 ac_err=`grep -v '^ *+' conftest.out`
11390 if test -z "$ac_err"; then 11416 if test -z "$ac_err"; then
11391 rm -rf conftest* 11417 rm -rf conftest*
11392 eval "ac_cv_header_$ac_safe=yes" 11418 eval "ac_cv_header_$ac_safe=yes"
11393 else 11419 else
11407 cat >> confdefs.h <<EOF 11433 cat >> confdefs.h <<EOF
11408 #define $ac_tr_hdr 1 11434 #define $ac_tr_hdr 1
11409 EOF 11435 EOF
11410 } 11436 }
11411 have_dlfcn=yes 11437 have_dlfcn=yes
11438 { test "$extra_verbose" = "yes" && cat << \EOF
11439 Defining HAVE_DLFCN_H
11440 EOF
11441 cat >> confdefs.h <<\EOF
11442 #define HAVE_DLFCN_H 1
11443 EOF
11444 }
11445
11412 else 11446 else
11413 echo "$ac_t""no" 1>&6 11447 echo "$ac_t""no" 1>&6
11414 fi 11448 fi
11415 done 11449 done
11416 11450
11417 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11451 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11418 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11452 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11419 echo "configure:11420: checking for dlopen in -ldl" >&5 11453 echo "configure:11454: checking for dlopen in -ldl" >&5
11420 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11454 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11421 11455
11422 xe_check_libs=" -ldl " 11456 xe_check_libs=" -ldl "
11423 cat > conftest.$ac_ext <<EOF 11457 cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure" 11458 #line 11459 "configure"
11425 #include "confdefs.h" 11459 #include "confdefs.h"
11426 /* Override any gcc2 internal prototype to avoid an error. */ 11460 /* Override any gcc2 internal prototype to avoid an error. */
11427 /* We use char because int might match the return type of a gcc2 11461 /* We use char because int might match the return type of a gcc2
11428 builtin and then its argument prototype would still apply. */ 11462 builtin and then its argument prototype would still apply. */
11429 char dlopen(); 11463 char dlopen();
11430 11464
11431 int main() { 11465 int main() {
11432 dlopen() 11466 dlopen()
11433 ; return 0; } 11467 ; return 0; }
11434 EOF 11468 EOF
11435 if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11436 rm -rf conftest* 11470 rm -rf conftest*
11437 eval "ac_cv_lib_$ac_lib_var=yes" 11471 eval "ac_cv_lib_$ac_lib_var=yes"
11438 else 11472 else
11439 echo "configure: failed program was:" >&5 11473 echo "configure: failed program was:" >&5
11440 cat conftest.$ac_ext >&5 11474 cat conftest.$ac_ext >&5
11459 fi 11493 fi
11460 11494
11461 } 11495 }
11462 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11496 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11463 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11497 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11464 echo "configure:11465: checking for _dlopen in -lc" >&5 11498 echo "configure:11499: checking for _dlopen in -lc" >&5
11465 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11499 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11466 11500
11467 xe_check_libs=" -lc " 11501 xe_check_libs=" -lc "
11468 cat > conftest.$ac_ext <<EOF 11502 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure" 11503 #line 11504 "configure"
11470 #include "confdefs.h" 11504 #include "confdefs.h"
11471 /* Override any gcc2 internal prototype to avoid an error. */ 11505 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2 11506 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */ 11507 builtin and then its argument prototype would still apply. */
11474 char _dlopen(); 11508 char _dlopen();
11475 11509
11476 int main() { 11510 int main() {
11477 _dlopen() 11511 _dlopen()
11478 ; return 0; } 11512 ; return 0; }
11479 EOF 11513 EOF
11480 if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11481 rm -rf conftest* 11515 rm -rf conftest*
11482 eval "ac_cv_lib_$ac_lib_var=yes" 11516 eval "ac_cv_lib_$ac_lib_var=yes"
11483 else 11517 else
11484 echo "configure: failed program was:" >&5 11518 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5 11519 cat conftest.$ac_ext >&5
11504 fi 11538 fi
11505 11539
11506 } 11540 }
11507 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11541 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11508 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11542 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11509 echo "configure:11510: checking for dlopen in -lc" >&5 11543 echo "configure:11544: checking for dlopen in -lc" >&5
11510 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11544 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11511 11545
11512 xe_check_libs=" -lc " 11546 xe_check_libs=" -lc "
11513 cat > conftest.$ac_ext <<EOF 11547 cat > conftest.$ac_ext <<EOF
11514 #line 11515 "configure" 11548 #line 11549 "configure"
11515 #include "confdefs.h" 11549 #include "confdefs.h"
11516 /* Override any gcc2 internal prototype to avoid an error. */ 11550 /* Override any gcc2 internal prototype to avoid an error. */
11517 /* We use char because int might match the return type of a gcc2 11551 /* We use char because int might match the return type of a gcc2
11518 builtin and then its argument prototype would still apply. */ 11552 builtin and then its argument prototype would still apply. */
11519 char dlopen(); 11553 char dlopen();
11520 11554
11521 int main() { 11555 int main() {
11522 dlopen() 11556 dlopen()
11523 ; return 0; } 11557 ; return 0; }
11524 EOF 11558 EOF
11525 if { (eval echo configure:11526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11526 rm -rf conftest* 11560 rm -rf conftest*
11527 eval "ac_cv_lib_$ac_lib_var=yes" 11561 eval "ac_cv_lib_$ac_lib_var=yes"
11528 else 11562 else
11529 echo "configure: failed program was:" >&5 11563 echo "configure: failed program was:" >&5
11530 cat conftest.$ac_ext >&5 11564 cat conftest.$ac_ext >&5
11549 fi 11583 fi
11550 11584
11551 } 11585 }
11552 test -z "$with_shlib" && { 11586 test -z "$with_shlib" && {
11553 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11587 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11554 echo "configure:11555: checking for shl_load in -ldld" >&5 11588 echo "configure:11589: checking for shl_load in -ldld" >&5
11555 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11589 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11556 11590
11557 xe_check_libs=" -ldld " 11591 xe_check_libs=" -ldld "
11558 cat > conftest.$ac_ext <<EOF 11592 cat > conftest.$ac_ext <<EOF
11559 #line 11560 "configure" 11593 #line 11594 "configure"
11560 #include "confdefs.h" 11594 #include "confdefs.h"
11561 /* Override any gcc2 internal prototype to avoid an error. */ 11595 /* Override any gcc2 internal prototype to avoid an error. */
11562 /* We use char because int might match the return type of a gcc2 11596 /* We use char because int might match the return type of a gcc2
11563 builtin and then its argument prototype would still apply. */ 11597 builtin and then its argument prototype would still apply. */
11564 char shl_load(); 11598 char shl_load();
11565 11599
11566 int main() { 11600 int main() {
11567 shl_load() 11601 shl_load()
11568 ; return 0; } 11602 ; return 0; }
11569 EOF 11603 EOF
11570 if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11604 if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11571 rm -rf conftest* 11605 rm -rf conftest*
11572 eval "ac_cv_lib_$ac_lib_var=yes" 11606 eval "ac_cv_lib_$ac_lib_var=yes"
11573 else 11607 else
11574 echo "configure: failed program was:" >&5 11608 echo "configure: failed program was:" >&5
11575 cat conftest.$ac_ext >&5 11609 cat conftest.$ac_ext >&5
11594 fi 11628 fi
11595 11629
11596 } 11630 }
11597 test -z "$with_shlib" && { 11631 test -z "$with_shlib" && {
11598 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11632 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11599 echo "configure:11600: checking for dld_init in -ldld" >&5 11633 echo "configure:11634: checking for dld_init in -ldld" >&5
11600 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11634 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11601 11635
11602 xe_check_libs=" -ldld " 11636 xe_check_libs=" -ldld "
11603 cat > conftest.$ac_ext <<EOF 11637 cat > conftest.$ac_ext <<EOF
11604 #line 11605 "configure" 11638 #line 11639 "configure"
11605 #include "confdefs.h" 11639 #include "confdefs.h"
11606 /* Override any gcc2 internal prototype to avoid an error. */ 11640 /* Override any gcc2 internal prototype to avoid an error. */
11607 /* We use char because int might match the return type of a gcc2 11641 /* We use char because int might match the return type of a gcc2
11608 builtin and then its argument prototype would still apply. */ 11642 builtin and then its argument prototype would still apply. */
11609 char dld_init(); 11643 char dld_init();
11610 11644
11611 int main() { 11645 int main() {
11612 dld_init() 11646 dld_init()
11613 ; return 0; } 11647 ; return 0; }
11614 EOF 11648 EOF
11615 if { (eval echo configure:11616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11616 rm -rf conftest* 11650 rm -rf conftest*
11617 eval "ac_cv_lib_$ac_lib_var=yes" 11651 eval "ac_cv_lib_$ac_lib_var=yes"
11618 else 11652 else
11619 echo "configure: failed program was:" >&5 11653 echo "configure: failed program was:" >&5
11620 cat conftest.$ac_ext >&5 11654 cat conftest.$ac_ext >&5
11638 echo "$ac_t""no" 1>&6 11672 echo "$ac_t""no" 1>&6
11639 fi 11673 fi
11640 11674
11641 } 11675 }
11642 if test "$with_shlib" = "yes"; then 11676 if test "$with_shlib" = "yes"; then
11643 { test "$extra_verbose" = "yes" && cat << \EOF 11677
11678 dll_ld=
11679 dll_ldflags=
11680 dll_cflags=
11681 dll_post=
11682 dll_ldo="-o"
11683 ld_dynamic_link_flags=
11684 xehost=$canonical
11685 xealias=$internal_configuration
11686
11687 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
11688 echo "configure:11689: checking how to build dynamic libraries for ${xehost}" >&5
11689 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
11690 case "$xehost" in
11691 *-*-linux-gnu*) ;;
11692 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
11693 esac
11694
11695 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11696 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11697 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11698
11699 case "$xehost_os" in
11700 aix3*)
11701 # AIX sometimes has problems with the GCC collect2 program. For some
11702 # reason, if we set the COLLECT_NAMES environment variable, the problems
11703 # vanish in a puff of smoke.
11704 if test "${COLLECT_NAMES+set}" != set; then
11705 COLLECT_NAMES=
11706 export COLLECT_NAMES
11707 fi
11708 ;;
11709 esac
11710
11711 # Now see if the compiler is really GCC.
11712 if test "$GCC" = "yes"; then
11713 XEGCC=yes
11714 else
11715 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
11716 echo "configure:11717: checking checking whether we are using GNU C" >&5
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11720
11721 #ifdef __GNUC__
11722 yes;
11723 #endif
11724
11725 EOF
11726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11727 egrep "yes" >/dev/null 2>&1; then
11728 rm -rf conftest*
11729 XEGCC=yes
11730 else
11731 rm -rf conftest*
11732 XEGCC=no
11733 fi
11734 rm -f conftest*
11735
11736 echo "$ac_t""${XEGCC}" 1>&6
11737 fi
11738
11739 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
11740 echo "configure:11741: checking how to produce PIC code" >&5
11741 wl=
11742
11743 can_build_shared=yes
11744 if test "$XEGCC" = yes; then
11745 wl='-Wl,'
11746
11747 case "$xehost_os" in
11748 aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
11749 # PIC is the default for these OSes.
11750 ;;
11751
11752 os2*)
11753 # We can build DLLs from non-PIC.
11754 ;;
11755 amigaos*)
11756 # FIXME: we need at least 68020 code to build shared libraries, but
11757 # adding the `-m68020' flag to GCC prevents building anything better,
11758 # like `-m68040'.
11759 dll_cflags='-m68020 -resident32 -malways-restore-a4'
11760 ;;
11761 *)
11762 dll_cflags='-fPIC'
11763 ;;
11764 esac
11765 else
11766 # PORTME Check for PIC flags for the system compiler.
11767 case "$xehost_os" in
11768 hpux9* | hpux10*)
11769 # Is there a better link_static_flag that works with the bundled CC?
11770 wl='-Wl,'
11771 dll_cflags='+Z'
11772 ;;
11773
11774 irix5* | irix6*)
11775 wl='-Wl,'
11776 # PIC (with -KPIC) is the default.
11777 ;;
11778
11779 os2*)
11780 # We can build DLLs from non-PIC.
11781 ;;
11782
11783 osf3* | osf4*)
11784 # All OSF/1 code is PIC.
11785 wl='-Wl,'
11786 ;;
11787
11788 sco3.2v5*)
11789 dll_cflags='-belf -Kpic'
11790 wl='-Wl,'
11791 ;;
11792
11793 unixware*)
11794 dll_cflags="-KPIC"
11795 wl="-Wl,"
11796 ;;
11797
11798 sysv4*)
11799 dll_cflags="-KPIC"
11800 wl="-Wl,"
11801 ;;
11802
11803 sysv5*)
11804 dll_cflags="-KPIC"
11805 wl="-Wl,"
11806 ;;
11807
11808 solaris2*)
11809 dll_cflags='-KPIC'
11810 wl='-Wl,'
11811 ;;
11812
11813 sunos4*)
11814 dll_cflags='-PIC'
11815 wl='-Qoption ld '
11816 ;;
11817
11818 uts4*)
11819 dll_cflags='-pic'
11820 ;;
11821
11822 *)
11823 can_build_shared=no
11824 ;;
11825 esac
11826 fi
11827
11828 if test -n "$dll_cflags"; then
11829 echo "$ac_t""${dll_cflags}" 1>&6
11830
11831 # Check to make sure the dll_cflags actually works.
11832 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
11833 echo "configure:11834: checking if PIC flag ${dll_cflags} really works" >&5
11834 save_CFLAGS="$CFLAGS"
11835 CFLAGS="$CFLAGS $dll_cflags -DPIC"
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11839
11840 int main() {
11841 int x=0;
11842 ; return 0; }
11843 EOF
11844 if { (eval echo configure:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11845 rm -rf conftest*
11846
11847 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
11848 # reports no error. So, we need to grep stderr for (Bundled).
11849 if grep '(Bundled)' config.log >/dev/null; then
11850 echo "$ac_t""no" 1>&6
11851 can_build_shared=no
11852 dll_cflags=
11853 else
11854 echo "$ac_t""yes" 1>&6
11855 fi
11856 else
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 rm -rf conftest*
11860 echo "$ac_t""no" 1>&6
11861 can_build_shared=no
11862 dll_cflags=
11863 fi
11864 rm -f conftest*
11865 CFLAGS="$save_CFLAGS"
11866 else
11867 echo "$ac_t""none" 1>&6
11868 fi
11869
11870 if test "$can_build_shared" = "yes"; then
11871 cc_produces_so=no
11872 xldf=
11873 xcldf=
11874 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
11875 echo "configure:11876: checking if C compiler can produce shared libraries" >&5
11876 if test "$XEGCC" = yes; then
11877 xcldf="-shared"
11878 xldf="-shared"
11879 else # Not using GCC
11880 case "$xehost_os" in
11881 aix3* | aix4*)
11882 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
11883 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
11884 ;;
11885
11886 freebsd2* | netbsd* | openbsd*)
11887 xldf="-Bshareable"
11888 xcldf="${wl}-Bshareable"
11889 ;;
11890
11891 freebsd3*)
11892 xcldf="-shared"
11893 ;;
11894
11895 hpux*)
11896 xldf="-b +s"
11897 xcldf="${wl}-b ${wl}+s"
11898 ;;
11899
11900 irix5* | irix6* | osf3* | osf4*)
11901 xcldf="${wl}-shared"
11902 xldf="-shared"
11903 ;;
11904
11905 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
11906 xcldf="-G"
11907 xldf="-G"
11908 ;;
11909
11910 sunos4*)
11911 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
11912 xldf="-assert pure-text -Bstatic"
11913 ;;
11914 esac
11915 fi # End if if we are using gcc
11916
11917 if test -n "$xcldf"; then
11918 save_LDFLAGS=$LDFLAGS
11919 save_LIBS=$LIBS
11920 save_xe_libs=$xe_libs
11921 LDFLAGS="$xcldf $LDFLAGS"
11922 LIBS=
11923 xe_libs=
11924 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11928
11929 int main() {
11930 int x=0;
11931 ; return 0; }
11932 EOF
11933 if { (eval echo configure:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11934 rm -rf conftest*
11935 cc_produces_so=yes
11936 else
11937 echo "configure: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11939 rm -rf conftest*
11940 cc_produces_so=no
11941 fi
11942 rm -f conftest*
11943 LDFLAGS=$save_LDFLAGS
11944 LIBS=$save_LIBS
11945 xe_libs=$save_xe_libs
11946 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
11947 else
11948 cc_produces_so=no
11949 fi
11950 echo "$ac_t""${cc_produces_so}" 1>&6
11951
11952 LTLD=$LD
11953 if test -z "$LTLD"; then
11954 ac_prog=ld
11955 if test "$XEGCC" = yes; then
11956 # Check if gcc -print-prog-name=ld gives a path.
11957 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
11958 echo "configure:11959: checking for ld used by GCC" >&5
11959 ac_prog=`($CC -print-prog-name=ld) 2>&5`
11960 case "$ac_prog" in
11961 # Accept absolute paths.
11962 /*)
11963 if test -z "$LTLD"; then
11964 case "$ac_prog" in
11965 *gcc-lib*) LTLD="$CC"
11966 ;;
11967 *) LTLD="$ac_prog"
11968 ;;
11969 esac
11970 fi
11971 ;;
11972 "")
11973 # If it fails, then pretend we aren't using GCC.
11974 ac_prog=ld
11975 ;;
11976 *)
11977 # If it is relative, then search for the first ld in PATH.
11978 with_gnu_ld=unknown
11979 ;;
11980 esac
11981 else
11982 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
11983 echo "configure:11984: checking for GNU ld" >&5
11984 fi
11985
11986 if test -z "$LTLD"; then
11987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11988 for ac_dir in $PATH; do
11989 test -z "$ac_dir" && ac_dir=.
11990 if test -f "$ac_dir/$ac_prog"; then
11991 LTLD="$ac_dir/$ac_prog"
11992 # Check to see if the program is GNU ld. I'd rather use --version,
11993 # but apparently some GNU ld's only accept -v.
11994 # Break only if it was the GNU/non-GNU ld that we prefer.
11995 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11996 xe_gnu_ld=yes
11997 else
11998 xe_gnu_ld=no
11999 fi
12000 fi
12001 done
12002 IFS="$ac_save_ifs"
12003 fi
12004
12005 if test -n "$LTLD"; then
12006 echo "$ac_t""${LTLD}" 1>&6
12007 else
12008 echo "$ac_t""no" 1>&6
12009 fi
12010
12011 if test -z "$LTLD" -a "$cc_produces_so" = no; then
12012 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
12013 exit 1
12014 fi
12015 fi
12016
12017 ld_dynamic_link_flags=
12018
12019 # Check to see if it really is or isn't GNU ld.
12020 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12021 echo "configure:12022: checking if the linker is GNU ld" >&5
12022 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12023 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12024 xe_gnu_ld=yes
12025 else
12026 xe_gnu_ld=no
12027 fi
12028 echo "$ac_t""${xe_gnu_ld}" 1>&6
12029
12030 case "$xehost_os" in
12031 amigaos* | sunos4*)
12032 # On these operating systems, we should treat GNU ld like the system ld.
12033 gnu_ld_acts_native=yes
12034 ;;
12035 *)
12036 gnu_ld_acts_native=no
12037 ;;
12038 esac
12039
12040 if test "$cc_produces_so" = "yes"; then
12041 dll_ld=$CC
12042 dll_ldflags=$xcldf
12043 can_build_shared=yes
12044 else
12045 # OK - only NOW do we futz about with ld.
12046 # See if the linker supports building shared libraries.
12047 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12048 echo "configure:12049: checking whether the linker supports shared libraries" >&5
12049 dll_ld=$CC
12050 dll_ldflags=$LDFLAGS
12051 ld_shlibs=yes
12052 can_build_shared=yes
12053 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12054 # See if GNU ld supports shared libraries.
12055 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12056 dll_ld=$CC
12057 dll_ldflags="-shared"
12058 ld_shlibs=yes
12059 else
12060 ld_shlibs=no
12061 fi
12062 else
12063 # PORTME fill in a description of your system's linker (not GNU ld)
12064 case "$xehost_os" in
12065 aix3*)
12066 dll_ld=$LTLD
12067 dll_ldflags=$xldf
12068 ;;
12069
12070 aix4*)
12071 dll_ldflags=$xcldf
12072 ;;
12073
12074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12075 # support. Future versions do this automatically, but an explicit c++rt0.o
12076 # doesn't break anything, and helps significantly (at the cost of a little
12077 # extra space).
12078 freebsd2.2*)
12079 dll_ld=$LTLD
12080 dll_ldflags=$xldf
12081 dll_post="/usr/lib/c++rt0.o"
12082 ;;
12083
12084 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
12085 freebsd2*)
12086 dll_ld=$LTLD
12087 dll_ldflags="-Bshareable"
12088 ;;
12089
12090 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
12091 freebsd3*)
12092 dll_ldflags="-shared"
12093 ;;
12094
12095 hpux*)
12096 dll_ld=$LTLD
12097 dll_ldflags=$xldf
12098 ;;
12099
12100 irix5* | irix6*)
12101 dll_ld=$LTLD
12102 dll_ldflags=$xldf
12103 ;;
12104
12105 netbsd*)
12106 # Tested with NetBSD 1.2 ld
12107 dll_ld=$LTLD
12108 dll_ldflags=$xldf
12109 ;;
12110
12111 openbsd*)
12112 dll_ld=$LTLD
12113 dll_ldflags=$xldf
12114 ;;
12115
12116 osf3* | osf4*)
12117 dll_ld=$LTLD
12118 dll_ldflags=$xldf
12119 ;;
12120
12121 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
12122 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12123 dll_ld=$LTLD
12124 case "$dll_ld" in
12125 *gcc*) dll_ldflags="-shared"
12126 dll_ld=$CC
12127 ;;
12128 *) dll_ldflags="-G"
12129 ;;
12130 esac
12131 ;;
12132
12133 sunos4*)
12134 if test "$XEGCC" = yes; then
12135 dll_ld=$CC
12136 else
12137 dll_ld=$LTLD
12138 fi
12139 dll_ldflags=$xldf
12140 ;;
12141
12142 uts4*)
12143 dll_ld=$LTLD
12144 dll_ldflags="-G"
12145 ;;
12146
12147 bsdi*)
12148 dll_ldflags="-r"
12149 dll_ld="shlicc2"
12150 ;;
12151
12152 *)
12153 ld_shlibs=no
12154 can_build_shared=no
12155 ;;
12156 esac
12157 fi
12158 echo "$ac_t""${ld_shlibs}" 1>&6
12159 if test "$ld_shlibs" = "no"; then
12160 can_build_shared=no
12161 fi
12162 fi # End of if cc_produces_so = no
12163
12164
12165 if test "$xe_gnu_ld" = yes; then
12166 if test "$ld_shlibs" = yes; then
12167 ld_dynamic_link_flags="${wl}-export-dynamic"
12168 fi
12169 fi
12170
12171 if test -z "$ld_dynamic_link_flags"; then
12172 case "$xehost_os" in
12173 aix3*)
12174 ld_dynamic_link_flags=
12175 ;;
12176
12177 aix4*)
12178 ld_dynamic_link_flags=
12179 ;;
12180
12181 freebsd2.2*)
12182 ld_dynamic_link_flags=
12183 ;;
12184
12185 freebsd2*)
12186 ld_dynamic_link_flags=
12187 ;;
12188
12189 freebsd3*)
12190 ld_dynamic_link_flags=
12191 ;;
12192
12193 hpux*)
12194 ld_dynamic_link_flags="${wl}-E"
12195 ;;
12196
12197 irix5* | irix6*)
12198 ld_dynamic_link_flags=
12199 ;;
12200
12201 netbsd*)
12202 ld_dynamic_link_flags=
12203 ;;
12204
12205 openbsd*)
12206 ld_dynamic_link_flags=
12207 ;;
12208
12209 osf3* | osf4*)
12210 ld_dynamic_link_flags=
12211 ;;
12212
12213 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
12214 ld_dynamic_link_flags="${wl}-Bexport"
12215 ;;
12216
12217 sunos4*)
12218 ld_dynamic_link_flags=
12219 ;;
12220
12221 uts4*)
12222 ld_dynamic_link_flags=
12223 ;;
12224
12225 bsdi*)
12226 ld_dynamic_link_flags=
12227 ;;
12228
12229 esac
12230 fi # End of if -z ld_dynamic_link_flags
12231 fi # End of if test "$can_build_shared" = "yes"
12232
12233
12234
12235
12236
12237
12238
12239
12240 if test "$can_build_shared" = "yes"; then
12241 { test "$extra_verbose" = "yes" && cat << \EOF
11644 Defining HAVE_SHLIB 12242 Defining HAVE_SHLIB
11645 EOF 12243 EOF
11646 cat >> confdefs.h <<\EOF 12244 cat >> confdefs.h <<\EOF
11647 #define HAVE_SHLIB 1 12245 #define HAVE_SHLIB 1
11648 EOF 12246 EOF
11649 } 12247 }
11650 12248
11651 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then 12249 extra_objs="$extra_objs sysdll.o" && if test "$extra_verbose" = "yes"; then
11652 echo " xemacs will be linked with \"sysdll.o\"" 12250 echo " xemacs will be linked with \"sysdll.o\""
11653 fi 12251 fi
11654 extra_objs="$extra_objs dll.o" && if test "$extra_verbose" = "yes"; then 12252 extra_objs="$extra_objs emodules.o" && if test "$extra_verbose" = "yes"; then
11655 echo " xemacs will be linked with \"dll.o\"" 12253 echo " xemacs will be linked with \"emodules.o\""
11656 fi 12254 fi
11657 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi 12255 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
11658 12256 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
11659 dll_ld="ld" 12257 for ac_func in dlerror _dlerror
11660 dll_lflags="-shared"
11661 dll_cflags="-r"
11662 dll_oflags="-o "
11663
11664 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
11665 echo "configure:11666: checking how to build a shared library" >&5
11666 case `uname -rs` in
11667 UNIX_SV*|UNIX_System_V*)
11668 dll_lflags="-G"
11669 dll_cflags=-Kpic
11670 dll_ld="ld"
11671 ;;
11672 BSD/OS*)
11673 dll_cflags=
11674 dll_lflags="-r"
11675 dll_ld="shlicc2"
11676 ;;
11677 FreeBSD*2*)
11678 dll_lflags="-Bshareable"
11679 dll_cflags="-fPIC -DPIC"
11680 dll_ld=ld
11681 ;;
11682 SunOS*4.*)
11683 dll_cflags="-P"
11684 dll_lflags="-dp -assert pure-text -assert nodefinitions"
11685 ;;
11686 SunOS*5.*)
11687 dll_ld="cc"
11688 dll_cflags="-KPIC"
11689 dll_lflags="-G"
11690 dll_oflags="-W0,-y-o -W0,-y"
11691 ;;
11692 IRIX*5.*|IRIX*6.*)
11693 dll_cflags="-KPIC"
11694 ;;
11695 OSF1*)
11696 ;;
11697 HP-UX*)
11698 dll_ld="ld"
11699 dll_lflags="-b"
11700 dll_cflags="+z"
11701 ;;
11702 SCO_SV*)
11703 dll_ld="ld"
11704 dll_lflags="-G"
11705 dll_cflags="-Kpic"
11706 ;;
11707 AIX*)
11708 dll_lflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:\${@:.ell=.exp} -b noentry -lc"
11709 dll_ld="ld"
11710 ;;
11711 *)
11712 ;;
11713 esac
11714
11715 if test "$GCC" = "yes" ; then
11716 dll_cflags="-fPIC"
11717 case `uname -rs` in
11718 SunOS*5.*)
11719 dll_ld="ld"
11720 dll_oflags="-o "
11721 dll_lflags="-G"
11722 ;;
11723 SCO_SV*)
11724 dll_ld="ld"
11725 dll_lflags="-G"
11726 dll_cflags="-b elf"
11727 ;;
11728 FreeBSD*)
11729 dll_cflags="-DDLSYM_NEEDS_UNDERSCORE -DPIC -fPIC"
11730 dll_lflags="-Bshareable"
11731 dll_ld=ld
11732 ;;
11733 BSD/OS*)
11734 dll_cflags=
11735 dll_lflags="-r"
11736 dll_ld="shlicc2"
11737 ;;
11738 UNIX_SV*)
11739 dll_cflags="-fPIC"
11740 ;;
11741 *)
11742 dll_ld="$CC"
11743 dll_lflags="-shared"
11744 esac
11745 fi
11746
11747 echo "$ac_t"""lflags: $dll_lflags cflags: $dll_cflags"" 1>&6
11748
11749
11750
11751
11752
11753 for ac_func in dlerror
11754 do 12258 do
11755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11756 echo "configure:11757: checking for $ac_func" >&5 12260 echo "configure:12261: checking for $ac_func" >&5
11757 12261
11758 cat > conftest.$ac_ext <<EOF 12262 cat > conftest.$ac_ext <<EOF
11759 #line 11760 "configure" 12263 #line 12264 "configure"
11760 #include "confdefs.h" 12264 #include "confdefs.h"
11761 /* System header to define __stub macros and hopefully few prototypes, 12265 /* System header to define __stub macros and hopefully few prototypes,
11762 which can conflict with char $ac_func(); below. */ 12266 which can conflict with char $ac_func(); below. */
11763 #include <assert.h> 12267 #include <assert.h>
11764 /* Override any gcc2 internal prototype to avoid an error. */ 12268 /* Override any gcc2 internal prototype to avoid an error. */
11777 $ac_func(); 12281 $ac_func();
11778 #endif 12282 #endif
11779 12283
11780 ; return 0; } 12284 ; return 0; }
11781 EOF 12285 EOF
11782 if { (eval echo configure:11783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 12286 if { (eval echo configure:12287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
11783 rm -rf conftest* 12287 rm -rf conftest*
11784 eval "ac_cv_func_$ac_func=yes" 12288 eval "ac_cv_func_$ac_func=yes"
11785 else 12289 else
11786 echo "configure: failed program was:" >&5 12290 echo "configure: failed program was:" >&5
11787 cat conftest.$ac_ext >&5 12291 cat conftest.$ac_ext >&5
11804 else 12308 else
11805 echo "$ac_t""no" 1>&6 12309 echo "$ac_t""no" 1>&6
11806 fi 12310 fi
11807 done 12311 done
11808 12312
11809 ld_dynamic_link_flags= 12313 else
11810 case "$opsys" in 12314 echo "configure: warning: disabling shared library support" 1>&2
11811 hpux*) ld_dynamic_link_flags="-Wl,-E" ;; 12315 with_shlib=no
11812 linux*) ld_dynamic_link_flags="-rdynamic" ;; 12316 fi
11813 *) ;; 12317 fi
11814 esac 12318
11815 fi 12319 cat > conftest.$ac_ext <<EOF
11816 12320 #line 12321 "configure"
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h" 12321 #include "confdefs.h"
11820 int main(int c,char *v[]){return 0;} 12322 int main(int c,char *v[]){return 0;}
11821 EOF 12323 EOF
11822 if { (eval echo configure:11823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12324 if { (eval echo configure:12325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11823 then 12325 then
11824 : 12326 :
11825 else 12327 else
11826 conftest_rc="$?" 12328 conftest_rc="$?"
11827 echo "configure: failed program was:" >&5 12329 echo "configure: failed program was:" >&5
12048 done 12550 done
12049 12551
12050 12552
12051 12553
12052 12554
12555 MODULEDIR=$moduledir
12556 while true; do
12557 case "$MODULEDIR" in
12558 *\$* ) eval "MODULEDIR=$MODULEDIR" ;;
12559 *) break ;;
12560 esac
12561 done
12562
12563
12564
12565
12566 SITELISPDIR=$sitelispdir
12567 while true; do
12568 case "$SITELISPDIR" in
12569 *\$* ) eval "SITELISPDIR=$SITELISPDIR" ;;
12570 *) break ;;
12571 esac
12572 done
12573
12574
12575
12576
12577 SITEMODULEDIR=$sitemoduledir
12578 while true; do
12579 case "$SITEMODULEDIR" in
12580 *\$* ) eval "SITEMODULEDIR=$SITEMODULEDIR" ;;
12581 *) break ;;
12582 esac
12583 done
12584
12585
12586
12053 12587
12054 ETCDIR=$etcdir 12588 ETCDIR=$etcdir
12055 while true; do 12589 while true; do
12056 case "$ETCDIR" in 12590 case "$ETCDIR" in
12057 *\$* ) eval "ETCDIR=$ETCDIR" ;; 12591 *\$* ) eval "ETCDIR=$ETCDIR" ;;
12098 12632
12099 12633
12100 12634
12101 12635
12102 12636
12103
12104 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'" 12637 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
12105 12638
12106 12639
12107 12640
12108 12641
12117 { test "$extra_verbose" = "yes" && cat << \EOF 12650 { test "$extra_verbose" = "yes" && cat << \EOF
12118 Defining INHIBIT_SITE_LISP 12651 Defining INHIBIT_SITE_LISP
12119 EOF 12652 EOF
12120 cat >> confdefs.h <<\EOF 12653 cat >> confdefs.h <<\EOF
12121 #define INHIBIT_SITE_LISP 1 12654 #define INHIBIT_SITE_LISP 1
12655 EOF
12656 }
12657
12658 fi
12659 if test "$with_site_modules" = "no"; then
12660 { test "$extra_verbose" = "yes" && cat << \EOF
12661 Defining INHIBIT_SITE_MODULES
12662 EOF
12663 cat >> confdefs.h <<\EOF
12664 #define INHIBIT_SITE_MODULES 1
12122 EOF 12665 EOF
12123 } 12666 }
12124 12667
12125 fi 12668 fi
12126 12669
12504 test "$file" = src/Makefile.in && \ 13047 test "$file" = src/Makefile.in && \
12505 file="src/Makefile.in:src/Makefile.in.in:src/depend" 13048 file="src/Makefile.in:src/Makefile.in.in:src/depend"
12506 ac_output_files="${ac_output_files+$ac_output_files }$file" 13049 ac_output_files="${ac_output_files+$ac_output_files }$file"
12507 done 13050 done
12508 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" 13051 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13052 if test "$with_shlib" = "yes"; then
13053 ac_output_files="$ac_output_files lib-src/ellcc.h"
13054 fi
12509 13055
12510 trap '' 1 2 15 13056 trap '' 1 2 15
12511 13057
12512 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 13058 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12513 13059
12615 s%@dnd_objs@%$dnd_objs%g 13161 s%@dnd_objs@%$dnd_objs%g
12616 s%@lwlib_objs@%$lwlib_objs%g 13162 s%@lwlib_objs@%$lwlib_objs%g
12617 s%@ALLOCA@%$ALLOCA%g 13163 s%@ALLOCA@%$ALLOCA%g
12618 s%@dll_ld@%$dll_ld%g 13164 s%@dll_ld@%$dll_ld%g
12619 s%@dll_cflags@%$dll_cflags%g 13165 s%@dll_cflags@%$dll_cflags%g
12620 s%@dll_oflags@%$dll_oflags%g 13166 s%@dll_ldflags@%$dll_ldflags%g
12621 s%@dll_lflags@%$dll_lflags%g 13167 s%@dll_post@%$dll_post%g
13168 s%@dll_ldo@%$dll_ldo%g
13169 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
12622 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g 13170 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
12623 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g 13171 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
12624 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g 13172 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
12625 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g 13173 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
12626 s%@PROGNAME@%$PROGNAME%g 13174 s%@PROGNAME@%$PROGNAME%g
12641 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g 13189 s%@PACKAGE_PATH_USER_DEFINED@%$PACKAGE_PATH_USER_DEFINED%g
12642 s%@PACKAGE_PATH@%$PACKAGE_PATH%g 13190 s%@PACKAGE_PATH@%$PACKAGE_PATH%g
12643 s%@lispdir@%$lispdir%g 13191 s%@lispdir@%$lispdir%g
12644 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g 13192 s%@LISPDIR_USER_DEFINED@%$LISPDIR_USER_DEFINED%g
12645 s%@LISPDIR@%$LISPDIR%g 13193 s%@LISPDIR@%$LISPDIR%g
13194 s%@moduledir@%$moduledir%g
13195 s%@MODULEDIR_USER_DEFINED@%$MODULEDIR_USER_DEFINED%g
13196 s%@MODULEDIR@%$MODULEDIR%g
13197 s%@sitelispdir@%$sitelispdir%g
13198 s%@SITELISPDIR_USER_DEFINED@%$SITELISPDIR_USER_DEFINED%g
13199 s%@SITELISPDIR@%$SITELISPDIR%g
13200 s%@sitemoduledir@%$sitemoduledir%g
13201 s%@SITEMODULEDIR_USER_DEFINED@%$SITEMODULEDIR_USER_DEFINED%g
13202 s%@SITEMODULEDIR@%$SITEMODULEDIR%g
12646 s%@etcdir@%$etcdir%g 13203 s%@etcdir@%$etcdir%g
12647 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g 13204 s%@ETCDIR_USER_DEFINED@%$ETCDIR_USER_DEFINED%g
12648 s%@ETCDIR@%$ETCDIR%g 13205 s%@ETCDIR@%$ETCDIR%g
12649 s%@lockdir@%$lockdir%g 13206 s%@lockdir@%$lockdir%g
12650 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g 13207 s%@LOCKDIR_USER_DEFINED@%$LOCKDIR_USER_DEFINED%g
12653 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g 13210 s%@ARCHLIBDIR_USER_DEFINED@%$ARCHLIBDIR_USER_DEFINED%g
12654 s%@ARCHLIBDIR@%$ARCHLIBDIR%g 13211 s%@ARCHLIBDIR@%$ARCHLIBDIR%g
12655 s%@docdir@%$docdir%g 13212 s%@docdir@%$docdir%g
12656 s%@bitmapdir@%$bitmapdir%g 13213 s%@bitmapdir@%$bitmapdir%g
12657 s%@extra_objs@%$extra_objs%g 13214 s%@extra_objs@%$extra_objs%g
12658 s%@ld_dynamic_link_flags@%$ld_dynamic_link_flags%g
12659 s%@machfile@%$machfile%g 13215 s%@machfile@%$machfile%g
12660 s%@opsysfile@%$opsysfile%g 13216 s%@opsysfile@%$opsysfile%g
12661 s%@c_switch_general@%$c_switch_general%g 13217 s%@c_switch_general@%$c_switch_general%g
12662 s%@c_switch_window_system@%$c_switch_window_system%g 13218 s%@c_switch_window_system@%$c_switch_window_system%g
12663 s%@c_switch_all@%$c_switch_all%g 13219 s%@c_switch_all@%$c_switch_all%g