diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-05-05 17:56:28 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-05-05 19:10:28 +0100 |
commit | 411467f1f613ee5ba034694150fdd6310a45cdb0 (patch) | |
tree | 0b11ba01c1442265fb610cebf04a6a5a46ad67a8 /m4 | |
parent | 0d7199c228146e310ac498a748565f9275ef5fdd (diff) | |
download | telepathy-glib-411467f1f613ee5ba034694150fdd6310a45cdb0.tar.gz |
configure: squash ‘AC_LANG_SOURCE call detected’ warning.
Since I upgraded my toolchain, autogen has started complaining:
configure.ac:109: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
m4/tp-linker-flag.m4:18: TP_LINKER_FLAG is expanded from...
m4/tp-linker-flag.m4:41: TP_ADD_LINKER_FLAG is expanded from...
configure.ac:109: the top level
Reading
<http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html>
suggests that AC_LANG_PROGRAM() is implemented in terms of
AC_LANG_SOURCE() and so should work fine in this context, but it doesn't
seem to. In any case, since the program is empty we can just use the
single-argument form and squash the warning.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/tp-linker-flag.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/tp-linker-flag.m4 b/m4/tp-linker-flag.m4 index 23eb41ad9..8fd35068a 100644 --- a/m4/tp-linker-flag.m4 +++ b/m4/tp-linker-flag.m4 @@ -22,7 +22,7 @@ AC_DEFUN([TP_LINKER_FLAG], save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $1" - AC_COMPILE_IFELSE(AC_LANG_PROGRAM([], []), [flag_ok=yes], [flag_ok=no]) + AC_COMPILE_IFELSE(AC_LANG_SOURCE([]), [flag_ok=yes], [flag_ok=no]) LDFLAGS="$save_LDFLAGS" |