]> arthur.barton.de Git - bup.git/commit - config/configure.inc
configure.inc: strip trailing characters from 'uname -s' output
authorAneurin Price <aneurin.price@gmail.com>
Wed, 1 Jun 2011 16:20:36 +0000 (17:20 +0100)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 9 Jun 2011 02:57:58 +0000 (22:57 -0400)
commitba74d70a09a18cf62151636120a95ff980218821
tree3b4923fe37f0b5c6a38a6c7d01a37e284c02715a
parent1f32836b877445d7e7dfa357acabb08c6793970c
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 <aneurin.price@gmail.com>
config/configure.inc