trouble on Ubuntu, where the Gtk test programs don't check the return value
from system() and thus fall foul of the combination of our -Werror and
<https://wiki.ubuntu.com/CompilerFlags#-D_FORTIFY_SOURCE=2>.
git-svn-id: http://svn.tartarus.org/sgt/putty@8638
cda61777-01e9-0310-a592-
d414129be87e
"\n".
"CC = \@CC\@\n".
"\n".
- &splitline("CFLAGS = \@CFLAGS\@ \@CPPFLAGS\@ \@DEFS\@ \@GTK_CFLAGS\@ " .
+ &splitline("CFLAGS = \@CFLAGS\@ \@PUTTYCFLAGS\@ \@CPPFLAGS\@ " .
+ "\@DEFS\@ \@GTK_CFLAGS\@ " .
(join " ", map {"-I$dirpfx$_"} @srcdirs))."\n".
"XLDFLAGS = \@LDFLAGS\@ \@LIBS\@ \@GTK_LIBS\@\n".
"ULDFLAGS = \@LDFLAGS\@ \@LIBS\@\n".
AC_PROG_INSTALL
AC_PROG_CC
if test "X$GCC" = Xyes; then
- CFLAGS="$CFLAGS -Wall -Werror"
+ PUTTYCFLAGS="-Wall -Werror"
+else
+ PUTTYCFLAGS=""
fi
+AC_SUBST(PUTTYCFLAGS)
AC_ARG_WITH(gssapi,
[ --without-gssapi disable GSS-API support])