diff --git a/configure.ac b/configure.ac index 904b2ba50b..16e011d5fa 100644 --- a/configure.ac +++ b/configure.ac @@ -1820,7 +1820,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) @@ -1901,8 +1901,7 @@ AC_ARG_ENABLE(Bsymbolic, [SAVED_LDFLAGS="${LDFLAGS}" AC_MSG_CHECKING([for -Bsymbolic-functions linker flag]) LDFLAGS=-Wl,-Bsymbolic-functions - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], - [[int main (void) { return 0; }]])], + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[return 0]])], [AC_MSG_RESULT(yes) enable_Bsymbolic=yes], [AC_MSG_RESULT(no)