]> sigrok.org Git - libserialport.git/commitdiff
libserialport: Fix Linux files not compiled in with a toolchain for ucLinux
authorPaul Cercueil <redacted>
Mon, 29 Aug 2016 13:05:20 +0000 (15:05 +0200)
committerUwe Hermann <redacted>
Sun, 4 Sep 2016 16:42:43 +0000 (18:42 +0200)
Buildroot can create toolchains for the no-MMU flavour of Linux, with a triple
containing 'uclinux' instead of just 'linux'.

Signed-off-by: Paul Cercueil <redacted>
configure.ac

index f6b66e8eba68cbc81c58d14aafe86a1a7e861966..8ac87a326a088af7aa9cbb9ca2540366f53d7341 100644 (file)
@@ -74,7 +74,7 @@ AC_DEFINE_UNQUOTED([SP_LIB_VERSION_REVISION], [$SP_LIB_VERSION_REVISION], [.])
 AC_DEFINE_UNQUOTED([SP_LIB_VERSION_AGE], [$SP_LIB_VERSION_AGE], [.])
 AC_DEFINE_UNQUOTED([SP_LIB_VERSION_STRING], ["$SP_LIB_VERSION"], [.])
 
-AM_CONDITIONAL([LINUX], [test -z "${host_os##linux*}"])
+AM_CONDITIONAL([LINUX], [test -z "${host_os##linux*}" || test -z "${host_os##uclinux*}"])
 AM_CONDITIONAL([WIN32], [test -z "${host_os##mingw*}" || test -z "${host_os##cygwin*}"])
 AM_CONDITIONAL([MACOSX], [test -z "${host_os##darwin*}"])
 AM_CONDITIONAL([FREEBSD], [test -z "${host_os##freebsd*}"])