diff options
author | Austin Seipp <aseipp@pobox.com> | 2013-02-10 02:22:29 -0600 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2013-02-10 02:39:42 -0600 |
commit | 213e1c71e8c574e989f463ca623bef6d2dcccea6 (patch) | |
tree | a6e4938efb5c6381883c8e88c3d03700af2fe27e /aclocal.m4 | |
parent | 61e8d5df26522b01922bc5358b9c233de0d1fc29 (diff) | |
download | haskell-213e1c71e8c574e989f463ca623bef6d2dcccea6.tar.gz |
Make sure ./configure tests valid C99 programs. Issue #7678.
Clang gives a big fat warning that there's no return value for the
statement, since the prototype defaults to 'int'.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 32af656b5b..d134028e04 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -893,7 +893,7 @@ AC_SUBST(Alex3) AC_DEFUN([FP_PROG_LD_FLAG], [ AC_CACHE_CHECK([whether ld understands $1], [fp_cv_$2], -[echo 'foo() {}' > conftest.c +[echo 'int foo() { return 0; }' > conftest.c ${CC-cc} -c conftest.c if ${LdCmd} -r $1 -o conftest2.o conftest.o > /dev/null 2>&1; then fp_cv_$2=$1 @@ -934,7 +934,7 @@ FP_PROG_LD_FLAG([--reduce-memory-overheads],[LdReduceMemoryOverheads]) AC_DEFUN([FP_PROG_LD_BUILD_ID], [ AC_CACHE_CHECK([whether ld understands --build-id], [fp_cv_ld_build_id], -[echo 'foo() {}' > conftest.c +[echo 'int foo() { return 0; }' > conftest.c ${CC-cc} -c conftest.c if ${LdCmd} -r --build-id=none -o conftest2.o conftest.o > /dev/null 2>&1; then fp_cv_ld_build_id=yes @@ -975,7 +975,7 @@ AC_SUBST([LdIsGNULd], [`echo $fp_cv_gnu_ld | sed 'y/yesno/YESNO/'`]) AC_DEFUN([FP_PROG_LD_NO_COMPACT_UNWIND], [ AC_CACHE_CHECK([whether ld understands -no_compact_unwind], [fp_cv_ld_no_compact_unwind], -[echo 'foo() {}' > conftest.c +[echo 'int foo() { return 0; }' > conftest.c ${CC-cc} -c conftest.c if ${LdCmd} -r -no_compact_unwind -o conftest2.o conftest.o > /dev/null 2>&1; then fp_cv_ld_no_compact_unwind=yes |