From: Nick Mathewson Date: Mon, 18 Jun 2012 15:47:05 +0000 (-0400) Subject: oops: AC_RUN_IFELSE gets offended if I don't give it a AC_LANG_PROGRAM X-Git-Tag: tor-0.2.3.18-rc~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c0158101cd18c1854c45e51d28316b517184e36;p=thirdparty%2Ftor.git oops: AC_RUN_IFELSE gets offended if I don't give it a AC_LANG_PROGRAM --- diff --git a/acinclude.m4 b/acinclude.m4 index ae14411f6b..9ab684877a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -71,14 +71,12 @@ AC_DEFUN([TOR_CHECK_LDFLAGS], [ CFLAGS="$CFLAGS -pedantic -Werror" LDFLAGS="$LDFLAGS $2 $1" LIBS="$LIBS $3" - AC_RUN_IFELSE([ -#include -int main(int argc, char **argv) { fputs("", stdout); return 0; }], - [AS_VAR_SET(VAR,yes)], - [AS_VAR_SET(VAR,no)], - [AC_TRY_LINK([], [return 0;], - [AS_VAR_SET(VAR,yes)], - [AS_VAR_SET(VAR,no)])]) + AC_RUN_IFELSE([AC_LANG_PROGRAM([#include ], [fputs("", stdout)])], + [AS_VAR_SET(VAR,yes)], + [AS_VAR_SET(VAR,no)], + [AC_TRY_LINK([], [return 0;], + [AS_VAR_SET(VAR,yes)], + [AS_VAR_SET(VAR,no)])]) CFLAGS="$tor_saved_CFLAGS" LDFLAGS="$tor_saved_LDFLAGS" LIBS="$tor_saved_LIBS"