From 9fddd176bb65f8b8374209add95d4e5b22f159ae Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 4 Jan 2002 22:52:24 +0000 Subject: [PATCH] Only add gcc-specific CFLAGS if we're running gcc. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3714 67ed7778-7388-44ab-90cf-0a291f65f57c --- configure.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 573b14be9..ccc6ec28b 100644 --- a/configure.in +++ b/configure.in @@ -36,12 +36,12 @@ if test "$gettext_without_libintl" != "true" -a "$USE_NLS" = "yes"; then fi dnl --------------------------------------------------------------------------- -dnl Turn on debugging and all warnings +dnl Turn on debugging and all warnings when using gcc dnl --------------------------------------------------------------------------- -CFLAGS="$CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes" -LDFLAGS="$LDFLAGS -g -Wall" -AC_SUBST(CFLAGS) -AC_SUBST(LDFLAGS) +if test "$ac_cv_prog_gcc" = "yes"; then + CFLAGS="$CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes" + LDFLAGS="$LDFLAGS -g -Wall" +fi dnl Solaris hack for grep and tr changequote(, )dnl