]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
drop the / from the OSNAME
authorGonéri Le Bouder <goneri@rulezlan.org>
Sat, 31 Dec 2011 14:33:42 +0000 (15:33 +0100)
committerJon Dowland <jmtd@debian.org>
Wed, 16 May 2012 14:08:40 +0000 (15:08 +0100)
on GNU kFreeBSD, uname -s returns "GNU/kFreeBSD", the / is not
accepted a macro and the build fails with -Werror

../../config/config.h:9:15: error: missing whitespace after the macro name [-Werror]

Signed-off-by: Gonéri Le Bouder <goneri@rulezlan.org>
config/configure.inc

index 2bafea00e8e3d3bf2b85a70d4657154adb2fb0e3..0a1b4c0c8915f8d921dd39cc71241be6eef56fa5 100644 (file)
@@ -653,7 +653,7 @@ EOF
     AC_PROG_CPP
     AC_PROG_INSTALL
 
-    ac_os=`uname -s | sed 's/[-_].*//'`
+    ac_os=`uname -s | sed 's/[-_].*//' | sed 's,/,,'`
     _os=`echo $ac_os | tr '[a-z]' '[A-Z]'`
     AC_DEFINE OS_$_os  1
     eval OS_${_os}=1