@ -2384,7 +2384,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_compiler_gnu=$ac_cv_c_compiler_gnu
pgac_CFLAGS_before_template=$ CFLAGS
unset CFLAGS
#
#
# Read the template
# Read the template
@ -2399,13 +2399,16 @@ pgac_CFLAGS_before_template=$CFLAGS
if test "$ac_env_CFLAGS_set" = set; then
if test "$ac_env_CFLAGS_set" = set; then
CFLAGS=$ac_env_CFLAGS_value
CFLAGS=$ac_env_CFLAGS_value
elif test "$pgac_CFLAGS_before_template" != "$CFLAGS" ; then
elif test "${CFLAGS+set}" = set ; then
: # (keep what template set)
: # (keep what template set)
elif test "$GCC" = yes; then
elif test "$GCC" = yes; then
CFLAGS="-O2"
CFLAGS="-O2"
else
else
# if the user selected debug mode, don't use -O
if test "$enable_debug" != yes; then
CFLAGS="-O"
CFLAGS="-O"
fi
fi
fi
# Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
# Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
@ -2473,7 +2476,7 @@ if test "$ac_env_CFLAGS_set" != set; then
fi
fi
# supply -g if --enable-debug
# supply -g if --enable-debug
if test "$enable_debug" = yes -a "$ac_cv_prog_cc_g" = yes; then
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
CFLAGS="$CFLAGS -g"
CFLAGS="$CFLAGS -g"
fi
fi
@ -9314,7 +9317,8 @@ for ac_kw in inline __inline__ __inline; do
#line $LINENO "configure"
#line $LINENO "configure"
#include "confdefs.h"
#include "confdefs.h"
#ifndef __cplusplus
#ifndef __cplusplus
static $ac_kw int static_foo () {return 0; }
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw int foo () {return 0; }
$ac_kw int foo () {return 0; }
#endif
#endif