+2013-09-23 Paul Eggert <eggert@cs.ucla.edu>
+
+ warnings: port --enable-gcc-warnings to Solaris Studio 12.3
+ Problem reported by Dagobert Michelsen via Eric Blake in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
+ * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
+ not AC_COMPILE_IFELSE.
+
2013-09-23 Eric Blake <eblake@redhat.com>
configmake: support new --runstatedir option
-# warnings.m4 serial 10
+# warnings.m4 serial 11
dnl Copyright (C) 2008-2013 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_save_compiler_FLAGS="$gl_Flags"
gl_AS_VAR_APPEND(m4_defn([gl_Flags]),
[" $gl_unknown_warnings_are_errors ]m4_defn([gl_Positive])["])
- AC_COMPILE_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([])])],
- [AS_VAR_SET(gl_Warn, [yes])],
- [AS_VAR_SET(gl_Warn, [no])])
+ AC_LINK_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([])])],
+ [AS_VAR_SET(gl_Warn, [yes])],
+ [AS_VAR_SET(gl_Warn, [no])])
gl_Flags="$gl_save_compiler_FLAGS"
])
AS_VAR_IF(gl_Warn, [yes], [$2], [$3])