From 775739c50205c209c4e4056995dbaae2f02a7f9b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 30 Jun 2014 09:44:07 +0000 Subject: [PATCH] Revert [26bc10be24] as some compile can't output to /dev/null. --- configure | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a0d093ae..0b175696 100755 --- a/configure +++ b/configure @@ -272,8 +272,17 @@ if ! type "$CC" >/dev/null 2>&1; then fi echo "Using compiler .. $CC" -if ! echo "int main(void) { return 0; }" | $CC -x c -o /dev/null - 2>/dev/null -then +cat <_test.c +int main(void) { + return 0; +} +EOF +_CC=false +if $CC _test.c -o _test >/dev/null 2>&1; then + [ -x _test ] && _CC=true +fi +rm -f _test.c _test +if ! $_CC; then echo "$CC does not create executables" exit 1 fi -- 2.47.3