[libsoup/gnome-3-26] configure: Don't declare functions in AC_TRY_COMPILE



commit 87beac17e7b0c22a5acdfdd026d89c627dcae9dc
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Sat Jan 20 17:24:29 2018 +0800

    configure: Don't declare functions in AC_TRY_COMPILE
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792715

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5c44d98..94eaee0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -377,7 +377,7 @@ case "$host" in
         SAVED_CFLAGS="${CFLAGS}"
         CFLAGS="-fvisibility=hidden"
         AC_MSG_CHECKING([for -fvisibility=hidden compiler flag])
-        AC_TRY_COMPILE([], [int main (void) { return 0; }],
+        AC_TRY_COMPILE([], [return 0],
                        AC_MSG_RESULT(yes)
                        enable_fvisibility_hidden=yes,
                        AC_MSG_RESULT(no)


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