[babl] configure.ac: Use AC_LANG_PROGRAM to generate test-program



commit c87b3813182ff9141b4e52738e4ea66549b9ff77
Author: Martin Nordholts <martinn src gnome org>
Date:   Wed Sep 29 21:55:30 2010 +0200

    configure.ac: Use AC_LANG_PROGRAM to generate test-program
    
    Use AC_LANG_PROGRAM to generate test-program for AC_COMPILE_IFELSE, so
    we don't get
    
      warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    
    in autoconf 2.68.
    
    Second try, we must quote macro arguments...

 configure.ac |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 25d3399..2723a74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -275,7 +275,7 @@ if test "x$enable_mmx" = xyes; then
   mmx_save_CFLAGS="$CFLAGS"
   CFLAGS="$mmx_save_CFLAGS $MMX_EXTRA_CFLAGS"
 
-  AC_COMPILE_IFELSE(AC_LANG_PROGRAM(,[asm ("movq 0, %mm0");]),
+  AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[asm ("movq 0, %mm0");])],
 
     AC_DEFINE(USE_MMX, 1, [Define to 1 if MMX assembly is available.])
     AC_MSG_RESULT(yes)
@@ -288,7 +288,7 @@ if test "x$enable_mmx" = xyes; then
 
       CFLAGS="$CFLAGS $sse_flag"
 
-      AC_COMPILE_IFELSE(AC_LANG_PROGRAM(,[asm ("movntps %xmm0, 0");]),
+      AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[asm ("movntps %xmm0, 0");])],
         AC_DEFINE(USE_SSE, 1, [Define to 1 if SSE assembly is available.])
         AC_MSG_RESULT(yes)
       ,
@@ -351,7 +351,7 @@ if test "x$enable_altivec" = xyes; then
          [Define to 1 if the altivec runtime test should use a sysctl.])
         ;;
       *)
-        AC_COMPILE_IFELSE(AC_LANG_PROGRAM(,[asm ("vand %v0, %v0, %v0");]),
+        AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[asm ("vand %v0, %v0, %v0");])],
           can_use_altivec=yes, can_use_altivec=no)
         ;;
     esac



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]