]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: fix uClibc-ng scanf check
authorWaldemar Brodkorb <wbx@uclibc-ng.org>
Fri, 3 Jun 2016 02:23:28 +0000 (04:23 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2016 08:04:25 +0000 (10:04 +0200)
uClibc-ng tries to be compatible with GNU libc and defines
__GLIBC__ and pretend to be version 2.2.
We once changed it to 2.10, but then some hard to fix problems
in different software packages (gcc) occured.
It would be better if we disable the special GNU libc checks
for uClibc-ng here. uClibc-ng implements the required scanf
functionality.

Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
configure.ac

index 3ba723f3e98bfbd9d87283a832c2855e7e58e161..ec197ee8339d628b8df9ad603bfe2e99a6892693 100644 (file)
@@ -581,7 +581,7 @@ AC_CACHE_VAL([scanf_cv_alloc_modifier],
      #include <stdio.h>
      #include <unistd.h>
 
-     #ifdef __GLIBC__
+     #if defined(__GLIBC__) && !defined(__UCLIBC__)
 
      #if !(__GLIBC_PREREQ(2, 7))
      #error %m is not available