- AC_CACHE_CHECK([whether GSL needs -fgnu89-inline to link],
- pspp_cv_gsl_needs_fgnu89_inline, [
- PSPP_LINK2_IFELSE(
- [AC_LANG_PROGRAM([#include <gsl/gsl_math.h>
- ], [GSL_MAX_INT(1,2);])],
- [AC_LANG_SOURCE([#include <gsl/gsl_math.h>
- void x (void) {}])],
- [pspp_cv_gsl_needs_fgnu89_inline=no],
- [pspp_cv_gsl_needs_fgnu89_inline=yes])])
- if test "$pspp_cv_gsl_needs_fgnu89_inline" = "yes"; then
- CFLAGS="$CFLAGS -fgnu89-inline"
- fi
+ PSPP_CHECK_CC_OPTION(
+ [-fgnu89-inline],
+ [AC_CACHE_CHECK([whether GSL needs -fgnu89-inline to link],
+ pspp_cv_gsl_needs_fgnu89_inline, [
+ PSPP_LINK2_IFELSE(
+ [AC_LANG_PROGRAM([#include <gsl/gsl_math.h>
+ ], [GSL_MAX_INT(1,2);])],
+ [AC_LANG_SOURCE([#include <gsl/gsl_math.h>
+ void x (void) {}])],
+ [pspp_cv_gsl_needs_fgnu89_inline=no],
+ [pspp_cv_gsl_needs_fgnu89_inline=yes])])
+ if test "$pspp_cv_gsl_needs_fgnu89_inline" = "yes"; then
+ CFLAGS="$CFLAGS -fgnu89-inline"
+ fi])