[Pkg-mpd-commits] [mpdscribble] 02/02: Fix autoconf 2.68 warning
Andrey Rahmatullin
wrar-guest at moszumanska.debian.org
Wed Feb 12 21:45:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
wrar-guest pushed a commit to branch upstream
in repository mpdscribble.
commit 979e96a50f12506420bbc65c409d00cb709e7c9e
Author: Andrey Rahmatullin <wrar at wrar.name>
Date: Thu Feb 13 02:59:43 2014 +0600
Fix autoconf 2.68 warning
cflags.m4 emits warnings such as:
configure.ac:146: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/cflags.m4:1: CHECK_CFLAG is expanded from...
configure.ac:146: the top level
This is a new warning in autoconf 2.68:
** The macros AC_PREPROC_IFELSE, AC_COMPILE_IFELSE, AC_LINK_IFELSE, and
AC_RUN_IFELSE now warn if the first argument failed to use
AC_LANG_SOURCE or AC_LANG_PROGRAM to generate the conftest file
contents. A new macro AC_LANG_DEFINES_PROVIDED exists if you have
a compelling reason why you cannot use AC_LANG_SOURCE but must
avoid the warning.
---
m4/cflags.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/m4/cflags.m4 b/m4/cflags.m4
index cc6d5fa..eec4e0b 100644
--- a/m4/cflags.m4
+++ b/m4/cflags.m4
@@ -3,7 +3,7 @@ AC_DEFUN([CHECK_CFLAG], [
AC_CACHE_CHECK([whether the C compiler accepts $1],[check_cflag_$var],[
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $1"
- AC_COMPILE_IFELSE([int main(void) { return 0; }],
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main(void) { return 0; }])],
[eval "check_cflag_$var=yes"],
[eval "check_cflag_$var=no"])
CFLAGS="$save_CFLAGS"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/mpdscribble.git
More information about the Pkg-mpd-commits
mailing list