From: Guillem Jover Date: Fri, 9 Jun 2017 03:14:24 +0000 (+0200) Subject: build: Match any glibc and musl ABIs on the host_os AS_CASE X-Git-Tag: 0.8.4~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8a1b08b74dd0682b88ce334fcc795b727014713;p=thirdparty%2Flibbsd.git build: Match any glibc and musl ABIs on the host_os AS_CASE Reported-by: Helmut Grohne --- diff --git a/configure.ac b/configure.ac index 5fed4c9..6b3ba2d 100644 --- a/configure.ac +++ b/configure.ac @@ -45,14 +45,14 @@ AM_CONDITIONAL([HAVE_LIBTESTU01], [test "x$ac_cv_lib_testu01_unif01_CreateExternGenBits" = "xyes"]) AS_CASE([$host_os], - [*-gnu], [ + [*-gnu*], [ # In old glibc versions (< 2.17) clock_gettime() is in librt. saved_LIBS="$LIBS" AC_SEARCH_LIBS([clock_gettime], [rt], [CLOCK_GETTIME_LIBS="-lrt"]) AC_SUBST([CLOCK_GETTIME_LIBS]) LIBS="$saved_LIBS" ], - [*-musl], [ + [*-musl*], [ # Upstream refuses to define this, we will do it ourselves then. AC_DEFINE([__MUSL__], [1], [Define to 1 if we are building for musl]) ],