$NetBSD: patch-ac,v 1.4 2005/11/03 22:35:53 rillig Exp $ --- src/unix/configure.orig Sat Dec 15 16:20:04 2001 +++ src/unix/configure Fri Mar 15 15:01:38 2002 @@ -4608,8 +4608,8 @@ -Wno-parentheses \ " -CFLAGS="-g" -OPTFLAGS="-O2" +test -z "$CFLAGS" && CFLAGS="-g" +test -z "$OPTFLAGS" && OPTFLAGS="-O2" case "`uname -s`" in Darwin) CFLAGS="$CFLAGS -no-cpp-precomp"; LDFLAGS="$LDFLAGS -flat_namespace" ;; @@ -4630,6 +4630,7 @@ fi if test "$enable_debug" = yes; then + CFLAGS="$CFLAGS -g" OPTFLAGS="" else DEBUGFLAGS=""