From: Aneurin Price Date: Wed, 1 Jun 2011 16:20:36 +0000 (+0100) Subject: configure.inc: strip trailing characters from 'uname -s' output X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ba74d70a09a18cf62151636120a95ff980218821;p=packages%2Fb%2Fbup.git configure.inc: strip trailing characters from 'uname -s' output On Cygwin, 'uname -s' includes the version of the underlying operating system; here it is 'CYGWIN_NT-6.0'. The configure script attempts to define this in config/config.h, but '#define OS_CYGWIN_NT-6.0 1' is an invalid macro definition. This truncates the value to just 'CYGWIN', to match $OS in the Makefile. Signed-off-by: Aneurin Price --- diff --git a/config/configure.inc b/config/configure.inc index a698422..0ecdc67 100644 --- a/config/configure.inc +++ b/config/configure.inc @@ -651,7 +651,7 @@ EOF AC_PROG_CPP AC_PROG_INSTALL - ac_os=`uname -s` + ac_os=`uname -s | sed 's/[-_].*//'` _os=`echo $ac_os | tr '[a-z]' '[A-Z]'` AC_DEFINE OS_$_os 1 eval OS_${_os}=1