]> granicus.if.org Git - postgis/commitdiff
remove warnings from autoconf process
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 3 Jun 2009 22:46:42 +0000 (22:46 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 3 Jun 2009 22:46:42 +0000 (22:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4130 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 4eaef05fcf6f0a967acafb55a90b0ba74395f643..c2370b5c7e9a1e23b467db83feb84b0c69ab5fbe 100644 (file)
@@ -36,8 +36,8 @@ dnl
 dnl For GCC enable additional warning flags -Wall and -Wmissing-prototypes (using macro included with libtool)
 dnl
 WARNFLAGS=""
-AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -Wall], [dummy], [-Wall], [], [WARNFLAGS="$WARNFLAGS -Wall"], []) 
-AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -Wmissing-prototypes], [dummy], [-Wmissing-prototypes], [], [WARNFLAGS="$WARNFLAGS -Wmissing-prototypes"], []) 
+AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -Wall], [_cv_wall], [-Wall], [], [WARNFLAGS="$WARNFLAGS -Wall"], []) 
+AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -Wmissing-prototypes], [_cv_misprot], [-Wmissing-prototypes], [], [WARNFLAGS="$WARNFLAGS -Wmissing-prototypes"], []) 
 AC_SUBST([WARNFLAGS])
 
 dnl
@@ -311,7 +311,6 @@ PGSQL_SHAREDIR=`$PGCONFIG --sharedir`
 
 AC_SUBST([PGSQL_SHAREDIR])
 
-
 dnl Ensure that we can parse libpq-fe.h
 CPPFLAGS_SAVE="$CPPFLAGS"
 CPPFLAGS="$PGSQL_FE_CPPFLAGS"