From 8aedda5850a367f583da2d953f0d93d66100a44f Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 26 Oct 2006 17:36:26 +0000 Subject: [PATCH] * minor new port: i386-pc-linux-fc6. * m4/macros/linux_headers.m4: handle newer Linux kernels which removed UTS_RELEASE from . * minor new ports: i386-pc-linux-centos4.4 and powerpc-apple-darwin8.7.0. * config.guess.long: recognize CentOS Linux. --- .cvsignore | 3 +++ ChangeLog | 14 ++++++++++++++ NEWS | 5 ++++- config.guess.long | 2 ++ m4/macros/linux_headers.m4 | 7 +++++++ 5 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.cvsignore b/.cvsignore index f05ce15..33be610 100644 --- a/.cvsignore +++ b/.cvsignore @@ -170,3 +170,6 @@ A.powerpc-apple-darwin8.6.0 A.i386-unknown-freebsd6.1 A.i386-unknown-openbsd3.9 A.i386-pc-solaris2.11-nexentaos +A.i386-pc-linux-centos4.4 +A.powerpc-apple-darwin8.7.0 +A.i386-pc-linux-fc6 diff --git a/ChangeLog b/ChangeLog index 563d3ba..685a8c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2006-10-26 Erez Zadok + + * minor new port: i386-pc-linux-fc6. + + * m4/macros/linux_headers.m4: handle newer Linux kernels which + removed UTS_RELEASE from . + +2006-10-25 Erez Zadok + + * minor new ports: i386-pc-linux-centos4.4 and + powerpc-apple-darwin8.7.0. + + * config.guess.long: recognize CentOS Linux. + 2006-06-20 Erez Zadok * minor new port: i386-pc-solaris2.11-nexentaos (GNU/OpenSolaris). diff --git a/NEWS b/NEWS index 8ae6977..129fe50 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,10 @@ -*** Notes specific to am-utils version 6.2a2 +*** Notes specific to am-utils version 6.2a3 - minor new ports: + i386-pc-linux-centos4.4 (RHEL4 clone) + i386-pc-linux-fc6 (Fedora Core 6) i386-pc-solaris2.11-nexentaos (GNU/OpenSolaris) + powerpc-apple-darwin8.7.0 *** Notes specific to am-utils version 6.2a2 diff --git a/config.guess.long b/config.guess.long index e64bfb8..4af3a58 100755 --- a/config.guess.long +++ b/config.guess.long @@ -35,6 +35,8 @@ case "${GCONFIG}" in echo ${GCONFIG}-rhel${long} elif grep -q 'Fedora Core' /etc/redhat-release; then echo ${GCONFIG}-fc${long} + elif grep -q 'CentOS' /etc/redhat-release; then + echo ${GCONFIG}-centos${long} else echo ${GCONFIG}-rh${long} fi diff --git a/m4/macros/linux_headers.m4 b/m4/macros/linux_headers.m4 index 8b0dd72..63c5d6a 100644 --- a/m4/macros/linux_headers.m4 +++ b/m4/macros/linux_headers.m4 @@ -14,7 +14,14 @@ AC_DEFUN([AMU_LINUX_HEADERS], ], [ if (argc > 1) +#ifdef UTS_RELEASE printf("%s", UTS_RELEASE); +#else +# define AMU_MA(a) ((a) >> 16) +# define AMU_MI(a) (((a) & 0xffff) >> 8) +# define AMU_PL(a) ((a) & 0xff) + printf("%d.%d.%d", AMU_MA(LINUX_VERSION_CODE), AMU_MI(LINUX_VERSION_CODE), AMU_PL(LINUX_VERSION_CODE)); +#endif ], [ host_header_version=$value ], [ echo -- 2.34.1