From 5d2b424804ec93567ddf15639f84c4098d80f659 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 Dec 2003 14:36:50 +0000 Subject: * Use a system name that does not include the OS manufacturer (i.e., "i686-linux" instead of "i686-suse-linux"). --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fe5fa136e95f..3e0bca31ef9e 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,14 @@ AC_PREFIX_DEFAULT(/nix) AC_CANONICAL_HOST +# Construct a Nix system name (like "i686-linux"). +AC_MSG_CHECKING([for the canonical Nix system name]) +machine_name=`uname -m` +sys_name=`uname -s | tr [A-Z] [a-z]` +system="${machine_name}-${sys_name}" +AC_MSG_RESULT($system) +AC_SUBST(system) + AC_PROG_CC AC_PROG_CXX AC_PROG_RANLIB -- cgit 1.4.1