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
This commit is contained in:
Dan Fandrich
2002-01-04 22:52:24 +00:00
parent b81e9401e4
commit 9fddd176bb

View File

@@ -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