# HG changeset patch # User Chris Cannam # Date 1407436475 -3600 # Node ID cff0f07178d6deae8788448f5e1e5b779b9028c0 # Parent 7284eef3c4efe4ae9829709c09d8809eba954ca1 Add CFLAGS (like CXXFLAGS) to configure diff -r 7284eef3c4ef -r cff0f07178d6 configure --- a/configure Wed Aug 06 16:31:46 2014 +0100 +++ b/configure Thu Aug 07 19:34:35 2014 +0100 @@ -3952,9 +3952,14 @@ *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;; esac + case " $CFLAGS " in + *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; + *) CFLAGS="$CFLAGS -fPIC -Wall" ;; + esac fi + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF diff -r 7284eef3c4ef -r cff0f07178d6 configure.ac --- a/configure.ac Wed Aug 06 16:31:46 2014 +0100 +++ b/configure.ac Thu Aug 07 19:34:35 2014 +0100 @@ -46,9 +46,14 @@ *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;; esac + case " $CFLAGS " in + *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;; + *) CFLAGS="$CFLAGS -fPIC -Wall" ;; + esac fi changequote([,])dnl AC_SUBST(CXXFLAGS) +AC_SUBST(CFLAGS) AC_OUTPUT([Makefile])