From df065781ee913681ba86a636a2516cb0162cab19 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 18 Jul 2013 20:37:19 -0400 Subject: fix invalid C in new trycppif tests in configure script an empty program is not valid and would be reasonable grounds for the compiler to give an error, which would break these tests. --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 042c41bd..b679986f 100755 --- a/configure +++ b/configure @@ -56,7 +56,8 @@ while eval "fnmatch '*/' \"\${$1}\"" ; do eval "$1=\${$1%/}" ; done trycppif () { printf "checking preprocessor condition %s... " "$1" -echo "#if $1" > "$tmpc" +echo "typedef int x;" > "$tmpc" +echo "#if $1" >> "$tmpc" echo "#error yes" >> "$tmpc" echo "#endif" >> "$tmpc" if $CC $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then -- cgit v1.2.1