]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
With the logger removed, we no longer need to test for printf %m support.
authorRoy Marples <roy@marples.name>
Sun, 2 Apr 2017 08:53:17 +0000 (09:53 +0100)
committerRoy Marples <roy@marples.name>
Sun, 2 Apr 2017 08:53:17 +0000 (09:53 +0100)
configure

index 114ba5b57b50594272c25fc821f16660fc8b18b5..b2dce672dbd52ca358ad62091b3b770e23bb426a 100755 (executable)
--- a/configure
+++ b/configure
@@ -83,8 +83,6 @@ for x do
        --without-arc4random) ARC4RANDOM=no;;
        --without-strlcpy) STRLCPY=no;;
        --without-pidfile_lock) PIDFILE_LOCK=no;;
-       --with-printf_m) HAVE_PRINTF_M=yes;;
-       --without-printf_m) HAVE_PRINTF_M=no;;
        --without-reallocarrray) REALLOCARRAY=no;;
        --without-md5) MD5=no;;
        --without-sha2) SHA2=no;;
@@ -834,37 +832,6 @@ if [ "$DPRINTF" = no ]; then
        echo "#include          \"compat/dprintf.h\"" >>$CONFIG_H
 fi
 
-if [ -z "$HAVE_PRINTF_M" ]; then
-       printf "Testing for printf %%m support ..."
-       cat <<EOF >_printf_m.c
-#include <sys/param.h>
-#include <stdio.h>
-#ifdef __GLIBC__
-/* glibc has always had it */
-#elif defined(__UCLIBC_HAS_PRINTF_M_SPEC__)
-/* test uClibc */
-#else
-/* If you're using musl libc (or any other libc with printf %m support),
- * you'll have to pass --with-printf_m to configure to shrink the binary
- * size. */
-#error libc does not support printf %m
-#endif
-int main(void) {
-       return printf("%m\n");
-}
-EOF
-       if $XCC _printf_m.c -o _printf_m 2>&3; then
-               HAVE_PRINTF_M=yes
-       else
-               HAVE_PRINTF_M=no
-       fi
-       echo "$HAVE_PRINTF_M"
-       rm -f _printf_m.c _printf_m
-fi
-if [ "$HAVE_PRINTF_M" = yes ]; then
-       echo "#define HAVE_PRINTF_M" >>$CONFIG_H
-fi
-
 if [ -z "$TAILQ_FOREACH_SAFE" ]; then
        printf "Testing for TAILQ_FOREACH_SAFE ... "
        cat <<EOF >_queue.c