]> 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>
Tue, 14 Jun 2016 09:37:48 +0000 (11:37 +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 48e994b10ae79f063081913089ac7b79daa1eb70..70df8c6b43a12e0be568e80b9840fcf6b18fd787 100644 (file)
@@ -565,7 +565,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