parse-datetime: Make the build rule work with parallel 'make'.
[gnulib.git] / m4 / musl.m4
blob252054c99bf9b93fee782f0c8d08b38b65005a74
1 # musl.m4 serial 1
2 dnl Copyright (C) 2019-2020 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 # Test for musl libc, despite the musl libc authors don't like it
8 # <https://wiki.musl-libc.org/faq.html>
9 # <https://lists.gnu.org/archive/html/bug-gnulib/2018-02/msg00079.html>.
10 # From Bruno Haible.
12 AC_DEFUN_ONCE([gl_MUSL_LIBC],
14   AC_REQUIRE([AC_CANONICAL_HOST])
15   case "$host_os" in
16     *-musl*) AC_DEFINE([MUSL_LIBC], [1], [Define to 1 on musl libc.]) ;;
17   esac