summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-10-21 20:56:42 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-10-21 20:56:42 +0000
commit85b225865e2c2ec11f6474527ea380d09fb8abf8 (patch)
treee52640c49ad94997f26fe82f96a48c1d0e543f6d
parent918c3a2bec9e6c70ccb137f611a5a84b72a5d26a (diff)
Updated CFLAGS check so we don't clobber them...
git-svn-id: file:///fltk/svn/fltk/trunk@46 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--configure.in13
1 files changed, 9 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 69862e4de..cb5291ecb 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
dnl# -*- sh -*-
dnl# the "configure" script is made from this by running GNU "autoconf"
dnl#
-dnl# "$Id: configure.in,v 1.6 1998/10/21 20:42:08 mike Exp $"
+dnl# "$Id: configure.in,v 1.7 1998/10/21 20:56:42 mike Exp $"
dnl#
dnl# for the Fast Light Tool Kit (FLTK).
dnl#
@@ -70,8 +70,13 @@ AC_ARG_ENABLE(winstyle, [ --enable-windows-style turn on windows look-n-feel [
BORDER_WIDTH=2
fi)
-CFLAGS="$DEBUGFLAG $CFLAGS"
-CXXFLAGS="$DEBUGFLAG $CXXFLAGS"
+if test -n "$CFLAGS"; then
+ CFLAGS="$DEBUGFLAG $CFLAGS"
+fi
+
+if test -n "$CXXFLAGS"; then
+ CXXFLAGS="$DEBUGFLAG $CXXFLAGS"
+fi
AC_PROG_CC
AC_PROG_CXX
@@ -141,5 +146,5 @@ AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude)
dnl#
-dnl# End of "$Id: configure.in,v 1.6 1998/10/21 20:42:08 mike Exp $".
+dnl# End of "$Id: configure.in,v 1.7 1998/10/21 20:56:42 mike Exp $".
dnl#