comparison configure.in @ 1692:6265c9c31f53

[xemacs-hg @ 2003-09-18 05:13:54 by youngs] 2003-09-18 Steve Youngs <youngs@xemacs.org> * configure: Re-generate after Martin's configure.in patch. 2003-09-13 Martin Buchholz <martin@xemacs.org> * configure.in (OS_RELEASE): Add support for SunOS 5.10. On current OSes produced by Sun, `uname -r' prints "5.9". It seems likely that on future OSes, `uname -r' will print "5.10". We need to accept multi-digit release numbers. 2003-09-13 Martin Buchholz <martin@xemacs.org> * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
author youngs
date Thu, 18 Sep 2003 05:14:00 +0000
parents d3af5b868526
children 7032283c28db
comparison
equal deleted inserted replaced
1691:0d5689071ed2 1692:6265c9c31f53
1482 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp 1482 #test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
1483 RANLIB=':' ;; 1483 RANLIB=':' ;;
1484 esac 1484 esac
1485 1485
1486 case "$canonical" in 1486 case "$canonical" in
1487 *-solaris* ) 1487 *-solaris* )
1488 opsys=sol2 1488 opsys=sol2
1489 os_release=`uname -r | sed -e 's/^\([[0-9]]\)\.\([[0-9]]\).*/\1\2/'` 1489 os_release_major=`uname -r | sed -e 's/^\([[0-9]]\{1,\}\)\.\([[0-9]]\{1,\}\).*/\1/'`
1490 os_release_minor=`uname -r | sed -e 's/^\([[0-9]]\{1,\}\)\.\([[0-9]]\{1,\}\).*/\2/'`
1491 case "$os_release_minor" in [[0-9]])
1492 os_release_minor="0${os_release_minor}";;
1493 esac
1494 os_release="${os_release_major}${os_release_minor}"
1490 AC_DEFINE_UNQUOTED(OS_RELEASE, $os_release) ;; 1495 AC_DEFINE_UNQUOTED(OS_RELEASE, $os_release) ;;
1491 1496
1492 dnl The last Sun386 ran 4.0. 1497 dnl The last Sun386 ran 4.0.
1493 i*86-*-sunos4* ) opsys=sunos4-0 ;; 1498 i*86-*-sunos4* ) opsys=sunos4-0 ;;
1494 *-sunos4.0* ) opsys=sunos4-0 ;; 1499 *-sunos4.0* ) opsys=sunos4-0 ;;
1754 dnl See http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html 1759 dnl See http://www.opengroup.org/onlinepubs/007908799/xsh/compilation.html
1755 case "$opsys" in 1760 case "$opsys" in
1756 sol2) 1761 sol2)
1757 AC_DEFINE(__EXTENSIONS__) 1762 AC_DEFINE(__EXTENSIONS__)
1758 dnl Solaris 2 before 2.5 had some bugs with feature test macro interaction. 1763 dnl Solaris 2 before 2.5 had some bugs with feature test macro interaction.
1759 if test "$os_release" -ge 55; then 1764 if test "$os_release" -ge 505; then
1760 AC_DEFINE(_XOPEN_SOURCE,500) 1765 AC_DEFINE(_XOPEN_SOURCE,500)
1761 AC_DEFINE(_XOPEN_SOURCE_EXTENDED) 1766 AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
1762 fi ;; 1767 fi ;;
1763 linux) 1768 linux)
1764 AC_DEFINE(_POSIX_C_SOURCE,199506L) 1769 AC_DEFINE(_POSIX_C_SOURCE,199506L)
2661 else AC_MSG_RESULT(no) 2666 else AC_MSG_RESULT(no)
2662 fi 2667 fi
2663 2668
2664 dnl Link with "-z ignore" on Solaris if supported 2669 dnl Link with "-z ignore" on Solaris if supported
2665 if test "$opsys" = "sol2"; then 2670 if test "$opsys" = "sol2"; then
2666 if test "$os_release" -ge 56; then 2671 if test "$os_release" -ge 506; then
2667 AC_MSG_CHECKING(for \"-z ignore\" linker flag) 2672 AC_MSG_CHECKING(for \"-z ignore\" linker flag)
2668 case "`ld -h 2>&1`" in 2673 case "`ld -h 2>&1`" in
2669 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) 2674 *-z\ ignore\|record* ) AC_MSG_RESULT(yes)
2670 XE_PREPEND(-z ignore, ld_switch_site) ;; 2675 XE_PREPEND(-z ignore, ld_switch_site) ;;
2671 *) AC_MSG_RESULT(no) ;; 2676 *) AC_MSG_RESULT(no) ;;