[tracker-miners] configure: Don't put includes in function body of AC_LANG_PROGRAM



commit b70291dd201bc9d7f052d9bd75c7b20cd49805dd
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Sat Jan 20 17:11:48 2018 +0800

    configure: Don't put includes in function body of AC_LANG_PROGRAM
    
    The second argument of AC_LANG_PROGRAM is the content of main function.
    We cannot put any includes there, or we end up testing whether the
    compiler supports nested functions because headers may have definitions
    for inline functions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792713

 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f502026..591a7a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,8 +173,8 @@ if test "x$have_statvfs" = "xyes" ; then
 fi
 
 # Check for defines we expect
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
-#include "stdio.h"
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include "stdio.h"]], [[
 printf ("%s", __FUNCTION__);
    ]])],
    [have_function=yes],


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