Fix compiler warnings from new compiler flags.
[platform/upstream/flac.git] / configure.ac
index 8925640..b99f402 100644 (file)
@@ -19,7 +19,7 @@
 # instead of FLAC__ since autoconf triggers off 'AC_' in strings
 
 AC_PREREQ(2.60)
-AC_INIT([flac], [1.2.1], [flac-dev@xiph.org], [flac], [http://flac.sourceforge.net/])
+AC_INIT([flac], [1.3.0pre1], [flac-dev@xiph.org], [flac], [https://www.xiph.org/flac/])
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_SRCDIR([src/flac/main.c])
 AC_CONFIG_MACRO_DIR([m4])
@@ -356,6 +356,10 @@ fi
 
 XIPH_GCC_VERSION
 
+XIPH_ADD_CFLAGS([-Wextra])
+XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2])
+XIPH_ADD_CFLAGS([-fstack-protector --param ssp-buffer-size=4])
+
 if test x$ac_cv_c_compiler_gnu = xyes ; then
        if test x$enable_gcc_werror = "xyes" ; then
                CFLAGS="-Wall -Wextra -Werror $CFLAGS"
@@ -431,6 +435,7 @@ AC_CONFIG_FILES([ \
        include/share/Makefile \
        include/share/grabbag/Makefile \
        include/test_libs_common/Makefile \
+       doc/Doxyfile \
        doc/Makefile \
        doc/html/Makefile \
        doc/html/images/Makefile \
@@ -444,13 +449,13 @@ AC_CONFIG_FILES([ \
        test/metaflac-test-files/Makefile \
        test/pictures/Makefile \
        build/Makefile \
-       obj/Makefile \
-       obj/debug/Makefile \
-       obj/debug/bin/Makefile \
-       obj/debug/lib/Makefile \
-       obj/release/Makefile \
-       obj/release/bin/Makefile \
-       obj/release/lib/Makefile \
+       objs/Makefile \
+       objs/debug/Makefile \
+       objs/debug/bin/Makefile \
+       objs/debug/lib/Makefile \
+       objs/release/Makefile \
+       objs/release/bin/Makefile \
+       objs/release/lib/Makefile \
 ])
 AC_OUTPUT