wrong OS name detection for GNU variants

Robert Millan zeratul2 at wanadoo.es
Mon Oct 20 21:31:05 CEST 2003


The OS name detection for variants of GNU (with a triplet of the form
*-kernel-gnu) is broken because the rule "*-gnu*" matches all them and forces
it to be "GNU/Hurd". For example, a GNU/KFreeBSD system will be matched and be
identified as "GNU/Hurd".

This patch fixes the problem by simply removing the specific test case for
GNU/Hurd. That case is not needed since in the GNU system uname already
returns the canonical OS name and not the kernel name like on GNU/Linux.

Robert Millan

"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."

 -- J.R.R.T, Ainulindale (Silmarillion)
-------------- next part --------------
diff -ur gnupg.old/configure.ac gnupg/configure.ac
--- gnupg.old/configure.ac	2003-09-04 02:49:15.000000000 +0000
+++ gnupg/configure.ac	2003-10-20 20:21:14.000000000 +0000
@@ -467,10 +467,6 @@
-dnl let that after linux to avoid gnu-linux problems
-    *-gnu*)
-        ;;
         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
         test "$PRINTABLE_OS_NAME" = "Linux" && PRINTABLE_OS_NAME="GNU/Linux"
Only in gnupg/: configure.ac.~

More information about the Gnupg-devel mailing list