diff options
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6621120..d1b2602 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,7 @@ if test -s "`which hg`" && test -d "$srcdir/.hg"; then AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev]) fi +ORIGCFLAGS="$CFLAGS" # Checks for programs. AC_PROG_CC @@ -35,7 +36,7 @@ AC_DEFUN(DB_TRYADDCFLAGS, }]) # set compile flags prior to other tests -if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then +if test -z "$ORIGCFLAGS" && test "$GCC" = "yes"; then AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC) CFLAGS="-Os -W -Wall" fi |