diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c7ebd4123..0ae5b767d 100644 --- a/configure.ac +++ b/configure.ac @@ -387,7 +387,23 @@ AC_CACHE_VAL([scanf_cv_alloc_modifier], [scanf_cv_alloc_modifier=no] ) , - [scanf_cv_alloc_modifier=no] + + [AC_COMPILE_IFELSE([AC_LANG_SOURCE([ + #include <stdio.h> + + #ifdef __GLIBC__ + + #if !(__GLIBC_PREREQ(2, 7)) + #error %m is not available + #endif + + #else + + #error Your C-library is not supported. + #endif + ])], + [scanf_cv_alloc_modifier=ms], + [scanf_cv_alloc_modifier=no])] ) ) |