From 2e935f0186169655f422c103d677ad3d878b9eab Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 30 Apr 2001 17:24:00 +0000 Subject: Defeat GCC over-optimization in AC_TRY_LINK tests. --- configure.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 87d787320..4e118de5e 100644 --- a/configure.in +++ b/configure.in @@ -533,36 +533,36 @@ AC_MSG_CHECKING(if boolcodes is available) AC_TRY_LINK([#ifdef TERM_H_NEEDS_CURSES_H #include #endif -#include ], [char **test = boolcodes;], +#include ], [char **test = boolcodes; printf(*test);], AC_DEFINE(HAVE_BOOLCODES) boolcodes=yes, boolcodes=no) AC_MSG_RESULT($boolcodes) AC_MSG_CHECKING(if numcodes is available) AC_TRY_LINK([#ifdef TERM_H_NEEDS_CURSES_H #include #endif -#include ], [char **test = numcodes;], +#include ], [char **test = numcodes; printf(*test);], AC_DEFINE(HAVE_NUMCODES) numcodes=yes, numcodes=no) AC_MSG_RESULT($numcodes) AC_MSG_CHECKING(if strcodes is available) AC_TRY_LINK([#ifdef TERM_H_NEEDS_CURSES_H #include #endif -#include ], [char **test = strcodes;], +#include ], [char **test = strcodes; printf(*test);], AC_DEFINE(HAVE_STRCODES) strcodes=yes, strcodes=no) AC_MSG_RESULT($strcodes) AC_MSG_CHECKING(if boolnames is available) AC_TRY_LINK([#include -#include ], [char **test = boolnames;], +#include ], [char **test = boolnames; printf(*test);], AC_DEFINE(HAVE_BOOLNAMES) boolnames=yes, boolnames=no) AC_MSG_RESULT($boolnames) AC_MSG_CHECKING(if numnames is available) AC_TRY_LINK([#include -#include ], [char **test = numnames;], +#include ], [char **test = numnames; printf(*test);], AC_DEFINE(HAVE_NUMNAMES) numnames=yes, numnames=no) AC_MSG_RESULT($numnames) AC_MSG_CHECKING(if strnames is available) AC_TRY_LINK([#include -#include ], [char **test = strnames;], +#include ], [char **test = strnames; printf(*test);], AC_DEFINE(HAVE_STRNAMES) strnames=yes, strnames=no) AC_MSG_RESULT($strnames) -- cgit 1.4.1