[Spice-devel] [PATCH 1/1] configure.ac: use AC_LANG_SOURCE in AC_COMPILE_IFELSE, silence remaining warnings
Alon Levy
alevy at redhat.com
Sun Jan 16 15:27:57 PST 2011
---
configure.ac | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 8719f32..740abe7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -314,7 +314,7 @@ AC_DEFUN([SPICE_CC_TRY_FLAG], [
spice_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $1"
- AC_COMPILE_IFELSE([ ], [spice_cc_flag=yes], [spice_cc_flag=no])
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [spice_cc_flag=yes], [spice_cc_flag=no])
CFLAGS="$spice_save_CFLAGS"
if test "x$spice_cc_flag" = "xyes"; then
@@ -435,13 +435,13 @@ dnl -fvisibility stuff
have_gcc4=no
AC_MSG_CHECKING(for -fvisibility)
-AC_COMPILE_IFELSE([
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#if defined(__GNUC__) && (__GNUC__ >= 4)
#else
error Need GCC 4.0 for visibility
#endif
int main () { return 0; }
-], have_gcc4=yes)
+])], have_gcc4=yes)
if test "x$have_gcc4" = "xyes" -a ! "$os_win32" = "yes" ; then
VISIBILITY_HIDDEN_CFLAGS="-fvisibility=hidden"
--
1.7.3.4
More information about the Spice-devel
mailing list