summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-19 14:29:23 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-19 14:29:23 +0000
commite4add5c328fd8ff92767526464ce3643ec402a01 (patch)
tree703ace29946f0a32854808d81e8e6c16f653d366 /Build/source
parent3140bf500118573f645f3804cc743ce269945e5b (diff)
compiler warnings:
do not warn for unknown pragmas enable in libs/libpng/ enable in libs/teckit/ enable in libs/graphite/ in libs/freetype/: add -fno-strict-aliasing to CFLAGS regenerate git-svn-id: svn://tug.org/texlive/trunk@13833 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rwxr-xr-xBuild/source/configure20
-rw-r--r--Build/source/libs/freetype/ChangeLog5
-rwxr-xr-xBuild/source/libs/freetype/freetype-1.5/configure2
-rw-r--r--Build/source/libs/freetype/freetype-1.5/configure.in2
-rw-r--r--Build/source/libs/graphite/ChangeLog5
-rw-r--r--Build/source/libs/graphite/Makefile.am2
-rw-r--r--Build/source/libs/graphite/Makefile.in7
-rw-r--r--Build/source/libs/graphite/aclocal.m41
-rwxr-xr-xBuild/source/libs/graphite/configure90
-rw-r--r--Build/source/libs/graphite/configure.ac2
-rw-r--r--Build/source/libs/libpng/ChangeLog6
-rw-r--r--Build/source/libs/libpng/Makefile.am1
-rw-r--r--Build/source/libs/libpng/Makefile.in3
-rw-r--r--Build/source/libs/libpng/aclocal.m41
-rwxr-xr-xBuild/source/libs/libpng/configure61
-rw-r--r--Build/source/libs/libpng/configure.ac2
-rw-r--r--Build/source/libs/libpng/libpng-1.2.37/png.c2
-rw-r--r--Build/source/libs/teckit/ChangeLog5
-rw-r--r--Build/source/libs/teckit/Makefile.am2
-rw-r--r--Build/source/libs/teckit/Makefile.in5
-rw-r--r--Build/source/libs/teckit/aclocal.m41
-rwxr-xr-xBuild/source/libs/teckit/configure90
-rw-r--r--Build/source/libs/teckit/configure.ac2
-rw-r--r--Build/source/m4/kpse-warnings.m46
-rwxr-xr-xBuild/source/texk/afm2pl/configure4
-rwxr-xr-xBuild/source/texk/bibtex8/configure4
-rwxr-xr-xBuild/source/texk/cjkutils/configure4
-rwxr-xr-xBuild/source/texk/detex/configure4
-rwxr-xr-xBuild/source/texk/dtl/configure4
-rwxr-xr-xBuild/source/texk/dvi2tty/configure4
-rwxr-xr-xBuild/source/texk/dvidvi/configure4
-rwxr-xr-xBuild/source/texk/dviljk/configure4
-rwxr-xr-xBuild/source/texk/dvipdfmx/configure4
-rwxr-xr-xBuild/source/texk/dvipng/configure4
-rwxr-xr-xBuild/source/texk/dvipos/configure4
-rwxr-xr-xBuild/source/texk/dvipsk/configure4
-rwxr-xr-xBuild/source/texk/dvipsk/squeeze/configure4
-rwxr-xr-xBuild/source/texk/gsftopk/configure4
-rwxr-xr-xBuild/source/texk/kpathsea/configure4
-rwxr-xr-xBuild/source/texk/lacheck/configure4
-rwxr-xr-xBuild/source/texk/lcdf-typetools/configure20
-rwxr-xr-xBuild/source/texk/makeindexk/configure4
-rwxr-xr-xBuild/source/texk/musixflx/configure4
-rwxr-xr-xBuild/source/texk/ps2pkm/configure4
-rwxr-xr-xBuild/source/texk/seetexk/configure4
-rwxr-xr-xBuild/source/texk/tex4htk/configure4
-rwxr-xr-xBuild/source/texk/ttf2pk/configure4
-rwxr-xr-xBuild/source/texk/ttfdump/configure4
-rwxr-xr-xBuild/source/texk/web2c/configure20
-rwxr-xr-xBuild/source/texk/web2c/web2c/configure4
-rwxr-xr-xBuild/source/texk/xdv2pdf/configure20
-rwxr-xr-xBuild/source/texk/xdvik/configure4
-rwxr-xr-xBuild/source/texk/xdvik/squeeze/configure4
-rwxr-xr-xBuild/source/texk/xdvipdfmx/configure4
54 files changed, 463 insertions, 28 deletions
diff --git a/Build/source/configure b/Build/source/configure
index 523884ecee7..d9498fad81e 100755
--- a/Build/source/configure
+++ b/Build/source/configure
@@ -14787,6 +14787,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
@@ -17199,6 +17203,10 @@ else
kpse_cv_warning_cxxflags=
elif test "x$GXX" = xyes; then
kpse_cv_warning_cxxflags="-Wall -Wunused"
+ case `$CXX -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
if test "x$enable_compiler_warnings" != xyes; then
kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wimplicit -Wparentheses -Wreturn-type"
@@ -19265,11 +19273,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19268: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19276: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:19272: \$? = $ac_status" >&5
+ echo "$as_me:19280: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -19364,11 +19372,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19367: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19375: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:19371: \$? = $ac_status" >&5
+ echo "$as_me:19379: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -19416,11 +19424,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19419: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19427: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:19423: \$? = $ac_status" >&5
+ echo "$as_me:19431: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
diff --git a/Build/source/libs/freetype/ChangeLog b/Build/source/libs/freetype/ChangeLog
index db2474786b7..196eb2669aa 100644
--- a/Build/source/libs/freetype/ChangeLog
+++ b/Build/source/libs/freetype/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * freetype-1.5/configure.in, freetype-1.5/configure: avoid lots
+ of gcc warnings, adding -fno-strict-aliasing to XX_CFLAGS.
+
2009-04-22 Peter Breitenlohner <peb@mppmu.mpg.de>
Adapt to TL2009 build system.
diff --git a/Build/source/libs/freetype/freetype-1.5/configure b/Build/source/libs/freetype/freetype-1.5/configure
index 631163c7cdf..f1bb5424ef3 100755
--- a/Build/source/libs/freetype/freetype-1.5/configure
+++ b/Build/source/libs/freetype/freetype-1.5/configure
@@ -19960,7 +19960,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "x$CC" = xgcc; then
- XX_CFLAGS="-Wall -pedantic -ansi -D_REENTRANT"
+ XX_CFLAGS="-Wall -fno-strict-aliasing -pedantic -ansi -D_REENTRANT"
else
case "$host" in
*-dec-osf*)
diff --git a/Build/source/libs/freetype/freetype-1.5/configure.in b/Build/source/libs/freetype/freetype-1.5/configure.in
index 15937225dfc..115cbaec601 100644
--- a/Build/source/libs/freetype/freetype-1.5/configure.in
+++ b/Build/source/libs/freetype/freetype-1.5/configure.in
@@ -37,7 +37,7 @@ AC_PROG_CPP
dnl get Compiler flags right.
if test "x$CC" = xgcc; then
- XX_CFLAGS="-Wall -pedantic -ansi -D_REENTRANT"
+ XX_CFLAGS="-Wall -fno-strict-aliasing -pedantic -ansi -D_REENTRANT"
else
case "$host" in
*-dec-osf*)
diff --git a/Build/source/libs/graphite/ChangeLog b/Build/source/libs/graphite/ChangeLog
index d261a3bba12..48d30944b8f 100644
--- a/Build/source/libs/graphite/ChangeLog
+++ b/Build/source/libs/graphite/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * configure.ac: enable compiler warnings.
+ * Makefile.am (AM_CFLAGS, AM_CXXFLAGS): enable compiler warnings.
+
2009-03-20 Peter Breitenlohner <peb@mppmu.mpg.de>
Adapt to TL2009 build system.
diff --git a/Build/source/libs/graphite/Makefile.am b/Build/source/libs/graphite/Makefile.am
index aa2f7421dc7..645a7f7ece3 100644
--- a/Build/source/libs/graphite/Makefile.am
+++ b/Build/source/libs/graphite/Makefile.am
@@ -8,6 +8,8 @@ ACLOCAL_AMFLAGS = -I ../../m4
INCLUDES = -I$(top_srcdir)/include/graphite -I$(top_srcdir)/src/generic
INCLUDES += -I$(top_srcdir)/src/font -I$(top_srcdir)/src/segment
AM_CPPFLAGS = -DNDEBUG
+AM_CFLAGS = $(WARNING_CFLAGS)
+AM_CXXFLAGS = $(WARNING_CXXFLAGS)
noinst_LIBRARIES = libgraphite.a
diff --git a/Build/source/libs/graphite/Makefile.in b/Build/source/libs/graphite/Makefile.in
index 2fd509e1742..feaa2ac8bc8 100644
--- a/Build/source/libs/graphite/Makefile.in
+++ b/Build/source/libs/graphite/Makefile.in
@@ -50,7 +50,8 @@ DIST_COMMON = README $(am__configure_deps) $(noinst_HEADERS) \
../../build-aux/mkinstalldirs ../../build-aux/texinfo.tex \
../../build-aux/ylwrap COPYING ChangeLog INSTALL TODO
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__aclocal_m4_deps = $(top_srcdir)/../../m4/kpse-warnings.m4 \
+ $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
@@ -154,6 +155,8 @@ SHELL = @SHELL@
SIZEOF_WCHAR_T = @SIZEOF_WCHAR_T@
STRIP = @STRIP@
VERSION = @VERSION@
+WARNING_CFLAGS = @WARNING_CFLAGS@
+WARNING_CXXFLAGS = @WARNING_CXXFLAGS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
@@ -210,6 +213,8 @@ INCLUDES = -I$(top_srcdir)/include/graphite \
-I$(top_srcdir)/src/generic -I$(top_srcdir)/src/font \
-I$(top_srcdir)/src/segment
AM_CPPFLAGS = -DNDEBUG
+AM_CFLAGS = $(WARNING_CFLAGS)
+AM_CXXFLAGS = $(WARNING_CXXFLAGS)
noinst_LIBRARIES = libgraphite.a
noinst_HEADERS = \
include/graphite/FileFont.h \
diff --git a/Build/source/libs/graphite/aclocal.m4 b/Build/source/libs/graphite/aclocal.m4
index d360465f230..a6397fb2452 100644
--- a/Build/source/libs/graphite/aclocal.m4
+++ b/Build/source/libs/graphite/aclocal.m4
@@ -989,3 +989,4 @@ AC_SUBST([am__tar])
AC_SUBST([am__untar])
]) # _AM_PROG_TAR
+m4_include([../../m4/kpse-warnings.m4])
diff --git a/Build/source/libs/graphite/configure b/Build/source/libs/graphite/configure
index 5162eada595..ac825b05fc3 100755
--- a/Build/source/libs/graphite/configure
+++ b/Build/source/libs/graphite/configure
@@ -647,6 +647,8 @@ SIZEOF_WCHAR_T
EGREP
GREP
CPP
+WARNING_CXXFLAGS
+WARNING_CFLAGS
LN_S
RANLIB
am__fastdepCC_FALSE
@@ -747,6 +749,7 @@ ac_user_opts='
enable_option_checking
enable_maintainer_mode
enable_dependency_tracking
+enable_compiler_warnings
'
ac_precious_vars='build_alias
host_alias
@@ -1395,6 +1398,9 @@ Optional Features:
(and sometimes confusing) to the casual installer
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
+ --enable-compiler-warnings=[no|min|yes|max]
+ Turn on compiler warnings [default: yes if
+ maintainer-mode, min otherwise]
Some influential environment variables:
CXX C++ compiler command
@@ -4206,6 +4212,90 @@ $as_echo "no, using $LN_S" >&6; }
fi
+# Check whether --enable-compiler-warnings was given.
+if test "${enable_compiler_warnings+set}" = set; then
+ enableval=$enable_compiler_warnings;
+fi
+case $enable_compiler_warnings in
+ no | min | yes | max) : ;;
+ *) if test "x$enable_maintainer_mode" = xyes; then
+ enable_compiler_warnings=yes
+else
+ enable_compiler_warnings=min
+fi
+ ;;
+esac
+
+
+{ $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
+$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
+if test "${kpse_cv_warning_cflags+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$enable_compiler_warnings" = xno; then
+ kpse_cv_warning_cflags=
+elif test "x$GCC" = xyes; then
+ kpse_cv_warning_cflags="-Wall -Wunused"
+ case `$CC -dumpversion` in
+ 3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
+esac
+
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
+ if test "x$enable_compiler_warnings" != xmin; then
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
+ if test "x$enable_compiler_warnings" != xyes; then
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wimplicit -Wparentheses -Wreturn-type"
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wswitch -Wtrigraphs -Wshadow -Wpointer-arith"
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
+ case `$CC -dumpversion` in
+ 3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;;
+esac
+
+ fi
+ fi
+else
+ : # FIXME: warning flags for non-gcc compilers
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $kpse_cv_warning_cflags" >&5
+$as_echo "$kpse_cv_warning_cflags" >&6; }
+WARNING_CFLAGS=$kpse_cv_warning_cflags
+
+
+{ $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C++ compiler" >&5
+$as_echo_n "checking what warning flags to pass to the C++ compiler... " >&6; }
+if test "${kpse_cv_warning_cxxflags+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$enable_compiler_warnings" = xno; then
+ kpse_cv_warning_cxxflags=
+elif test "x$GXX" = xyes; then
+ kpse_cv_warning_cxxflags="-Wall -Wunused"
+ case `$CXX -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;;
+esac
+
+ if test "x$enable_compiler_warnings" != xmin; then
+ if test "x$enable_compiler_warnings" != xyes; then
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wimplicit -Wparentheses -Wreturn-type"
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wswitch -Wtrigraphs -Wshadow -Wpointer-arith"
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align -Wwrite-strings"
+ fi
+ fi
+else
+ : # FIXME: warning flags for non-g++ compilers
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $kpse_cv_warning_cxxflags" >&5
+$as_echo "$kpse_cv_warning_cxxflags" >&6; }
+WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
+
+
+
+
# Checks for header files.
ac_ext=c
diff --git a/Build/source/libs/graphite/configure.ac b/Build/source/libs/graphite/configure.ac
index c3de73b6476..24dfcdc746b 100644
--- a/Build/source/libs/graphite/configure.ac
+++ b/Build/source/libs/graphite/configure.ac
@@ -23,6 +23,8 @@ AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_LN_S
+KPSE_COMPILER_WARNINGS
+
# Checks for header files.
AC_HEADER_STDC
diff --git a/Build/source/libs/libpng/ChangeLog b/Build/source/libs/libpng/ChangeLog
index 02a805b6739..54db9853d4a 100644
--- a/Build/source/libs/libpng/ChangeLog
+++ b/Build/source/libs/libpng/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * configure.ac: enable compiler warnings.
+ * Makefile.am (AM_CFLAGS): enable compiler warnings.
+ * libpng-1.2.37/png.c (png_64bit_product): declare as static.
+
2009-06-04 Martin Schröder <martin@oneiros.de>
Import libpng-1.2.37.
diff --git a/Build/source/libs/libpng/Makefile.am b/Build/source/libs/libpng/Makefile.am
index 71d0c14c8af..6a249f92b5f 100644
--- a/Build/source/libs/libpng/Makefile.am
+++ b/Build/source/libs/libpng/Makefile.am
@@ -27,6 +27,7 @@ dist-hook:
INCLUDES = -I$(top_srcdir)/$(LIBPNG_TREE) $(ZLIB_INCLUDES)
AM_CPPFLAGS = $(LIBPNG_DEFINES)
+AM_CFLAGS = $(WARNING_CFLAGS)
noinst_LIBRARIES=libpng.a
diff --git a/Build/source/libs/libpng/Makefile.in b/Build/source/libs/libpng/Makefile.in
index 23ae04a5dc5..cf94b428574 100644
--- a/Build/source/libs/libpng/Makefile.in
+++ b/Build/source/libs/libpng/Makefile.in
@@ -48,6 +48,7 @@ DIST_COMMON = README $(am__configure_deps) \
../../build-aux/texinfo.tex ../../build-aux/ylwrap ChangeLog
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../../m4/kpse-common.m4 \
+ $(top_srcdir)/../../m4/kpse-warnings.m4 \
$(top_srcdir)/../../m4/kpse-zlib-flags.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
@@ -151,6 +152,7 @@ SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+WARNING_CFLAGS = @WARNING_CFLAGS@
ZLIB_DEPEND = @ZLIB_DEPEND@
ZLIB_INCLUDES = @ZLIB_INCLUDES@
ZLIB_LIBS = @ZLIB_LIBS@
@@ -200,6 +202,7 @@ ACLOCAL_AMFLAGS = -I ../../m4
EXTRA_DIST = $(LIBPNG_TREE)
INCLUDES = -I$(top_srcdir)/$(LIBPNG_TREE) $(ZLIB_INCLUDES)
AM_CPPFLAGS = $(LIBPNG_DEFINES)
+AM_CFLAGS = $(WARNING_CFLAGS)
noinst_LIBRARIES = libpng.a
nodist_libpng_a_SOURCES = \
$(LIBPNG_TREE)/png.c \
diff --git a/Build/source/libs/libpng/aclocal.m4 b/Build/source/libs/libpng/aclocal.m4
index 9543c90a2a9..fcf3b484aeb 100644
--- a/Build/source/libs/libpng/aclocal.m4
+++ b/Build/source/libs/libpng/aclocal.m4
@@ -990,4 +990,5 @@ AC_SUBST([am__untar])
]) # _AM_PROG_TAR
m4_include([../../m4/kpse-common.m4])
+m4_include([../../m4/kpse-warnings.m4])
m4_include([../../m4/kpse-zlib-flags.m4])
diff --git a/Build/source/libs/libpng/configure b/Build/source/libs/libpng/configure
index 65a65f59edc..6378893daa1 100755
--- a/Build/source/libs/libpng/configure
+++ b/Build/source/libs/libpng/configure
@@ -653,6 +653,7 @@ POW_LIB
EGREP
GREP
CPP
+WARNING_CFLAGS
RANLIB
am__fastdepCC_FALSE
am__fastdepCC_TRUE
@@ -741,6 +742,7 @@ ac_user_opts='
enable_option_checking
enable_maintainer_mode
enable_dependency_tracking
+enable_compiler_warnings
with_system_zlib
with_zlib_includes
with_zlib_libdir
@@ -1385,6 +1387,9 @@ Optional Features:
(and sometimes confusing) to the casual installer
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
+ --enable-compiler-warnings=[no|min|yes|max]
+ Turn on compiler warnings [default: yes if
+ maintainer-mode, min otherwise]
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -3623,6 +3628,62 @@ else
fi
+# Check whether --enable-compiler-warnings was given.
+if test "${enable_compiler_warnings+set}" = set; then
+ enableval=$enable_compiler_warnings;
+fi
+case $enable_compiler_warnings in
+ no | min | yes | max) : ;;
+ *) if test "x$enable_maintainer_mode" = xyes; then
+ enable_compiler_warnings=yes
+else
+ enable_compiler_warnings=min
+fi
+ ;;
+esac
+
+
+{ $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
+$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
+if test "${kpse_cv_warning_cflags+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$enable_compiler_warnings" = xno; then
+ kpse_cv_warning_cflags=
+elif test "x$GCC" = xyes; then
+ kpse_cv_warning_cflags="-Wall -Wunused"
+ case `$CC -dumpversion` in
+ 3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
+esac
+
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
+ if test "x$enable_compiler_warnings" != xmin; then
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
+ if test "x$enable_compiler_warnings" != xyes; then
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wimplicit -Wparentheses -Wreturn-type"
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wswitch -Wtrigraphs -Wshadow -Wpointer-arith"
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
+ case `$CC -dumpversion` in
+ 3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;;
+esac
+
+ fi
+ fi
+else
+ : # FIXME: warning flags for non-gcc compilers
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $kpse_cv_warning_cflags" >&5
+$as_echo "$kpse_cv_warning_cflags" >&6; }
+WARNING_CFLAGS=$kpse_cv_warning_cflags
+
+
+
+
+
ac_config_headers="$ac_config_headers config.h"
diff --git a/Build/source/libs/libpng/configure.ac b/Build/source/libs/libpng/configure.ac
index 5b7171cb161..c0368b4a28d 100644
--- a/Build/source/libs/libpng/configure.ac
+++ b/Build/source/libs/libpng/configure.ac
@@ -29,6 +29,8 @@ AC_SUBST([PNGLIB_RELEASE])
AC_PROG_CC
AC_PROG_RANLIB
+KPSE_COMPILER_WARNINGS
+
AC_CONFIG_HEADERS([config.h])
# Checks for header files.
diff --git a/Build/source/libs/libpng/libpng-1.2.37/png.c b/Build/source/libs/libpng/libpng-1.2.37/png.c
index 62b86e1d026..9a0fef5a50d 100644
--- a/Build/source/libs/libpng/libpng-1.2.37/png.c
+++ b/Build/source/libs/libpng/libpng-1.2.37/png.c
@@ -825,7 +825,7 @@ png_convert_size(size_t size)
* A and D, and X || Y is (X << 16) + Y.
*/
-void png_64bit_product (long v1, long v2, unsigned long *hi_product,
+static void png_64bit_product (long v1, long v2, unsigned long *hi_product,
unsigned long *lo_product)
{
int a, b, c, d;
diff --git a/Build/source/libs/teckit/ChangeLog b/Build/source/libs/teckit/ChangeLog
index 9cc14b044f6..1074a70374b 100644
--- a/Build/source/libs/teckit/ChangeLog
+++ b/Build/source/libs/teckit/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * configure.ac: enable compiler warnings.
+ * Makefile.am (AM_CFLAGS, AM_CXXFLAGS): enable compiler warnings.
+
2009-05-07 Peter Breitenlohner <peb@mppmu.mpg.de>
Adapt to TL2009 build system.
diff --git a/Build/source/libs/teckit/Makefile.am b/Build/source/libs/teckit/Makefile.am
index 37261ca1ea7..19e895098fe 100644
--- a/Build/source/libs/teckit/Makefile.am
+++ b/Build/source/libs/teckit/Makefile.am
@@ -7,6 +7,8 @@ ACLOCAL_AMFLAGS = -I ../../m4
INCLUDES = -I$(top_srcdir)/source/Public-headers $(ZLIB_INCLUDES)
AM_CPPFLAGS = -DNDEBUG
+AM_CFLAGS = $(WARNING_CFLAGS)
+AM_CXXFLAGS = $(WARNING_CXXFLAGS)
noinst_LIBRARIES = libTECkit.a
EXTRA_LIBRARIES = libTECkit_Compiler.a
diff --git a/Build/source/libs/teckit/Makefile.in b/Build/source/libs/teckit/Makefile.in
index 85d40883b4b..8d11161a605 100644
--- a/Build/source/libs/teckit/Makefile.in
+++ b/Build/source/libs/teckit/Makefile.in
@@ -48,6 +48,7 @@ DIST_COMMON = README $(am__configure_deps) $(noinst_HEADERS) \
COPYING ChangeLog INSTALL NEWS
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../../m4/kpse-common.m4 \
+ $(top_srcdir)/../../m4/kpse-warnings.m4 \
$(top_srcdir)/../../m4/kpse-zlib-flags.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
@@ -144,6 +145,8 @@ SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+WARNING_CFLAGS = @WARNING_CFLAGS@
+WARNING_CXXFLAGS = @WARNING_CXXFLAGS@
ZLIB_DEPEND = @ZLIB_DEPEND@
ZLIB_INCLUDES = @ZLIB_INCLUDES@
ZLIB_LIBS = @ZLIB_LIBS@
@@ -193,6 +196,8 @@ top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I ../../m4
INCLUDES = -I$(top_srcdir)/source/Public-headers $(ZLIB_INCLUDES)
AM_CPPFLAGS = -DNDEBUG
+AM_CFLAGS = $(WARNING_CFLAGS)
+AM_CXXFLAGS = $(WARNING_CXXFLAGS)
noinst_LIBRARIES = libTECkit.a
EXTRA_LIBRARIES = libTECkit_Compiler.a
libTECkit_Compiler_a_SOURCES = \
diff --git a/Build/source/libs/teckit/aclocal.m4 b/Build/source/libs/teckit/aclocal.m4
index 9543c90a2a9..fcf3b484aeb 100644
--- a/Build/source/libs/teckit/aclocal.m4
+++ b/Build/source/libs/teckit/aclocal.m4
@@ -990,4 +990,5 @@ AC_SUBST([am__untar])
]) # _AM_PROG_TAR
m4_include([../../m4/kpse-common.m4])
+m4_include([../../m4/kpse-warnings.m4])
m4_include([../../m4/kpse-zlib-flags.m4])
diff --git a/Build/source/libs/teckit/configure b/Build/source/libs/teckit/configure
index 0b152a978f8..4371700f17a 100755
--- a/Build/source/libs/teckit/configure
+++ b/Build/source/libs/teckit/configure
@@ -650,6 +650,8 @@ ZLIB_INCLUDES
EGREP
GREP
CPP
+WARNING_CXXFLAGS
+WARNING_CFLAGS
LN_S
RANLIB
am__fastdepCC_FALSE
@@ -742,6 +744,7 @@ ac_user_opts='
enable_option_checking
enable_maintainer_mode
enable_dependency_tracking
+enable_compiler_warnings
with_system_zlib
with_zlib_includes
with_zlib_libdir
@@ -1389,6 +1392,9 @@ Optional Features:
(and sometimes confusing) to the casual installer
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
+ --enable-compiler-warnings=[no|min|yes|max]
+ Turn on compiler warnings [default: yes if
+ maintainer-mode, min otherwise]
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -4133,6 +4139,90 @@ $as_echo "no, using $LN_S" >&6; }
fi
+# Check whether --enable-compiler-warnings was given.
+if test "${enable_compiler_warnings+set}" = set; then
+ enableval=$enable_compiler_warnings;
+fi
+case $enable_compiler_warnings in
+ no | min | yes | max) : ;;
+ *) if test "x$enable_maintainer_mode" = xyes; then
+ enable_compiler_warnings=yes
+else
+ enable_compiler_warnings=min
+fi
+ ;;
+esac
+
+
+{ $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
+$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
+if test "${kpse_cv_warning_cflags+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$enable_compiler_warnings" = xno; then
+ kpse_cv_warning_cflags=
+elif test "x$GCC" = xyes; then
+ kpse_cv_warning_cflags="-Wall -Wunused"
+ case `$CC -dumpversion` in
+ 3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
+esac
+
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
+ if test "x$enable_compiler_warnings" != xmin; then
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
+ if test "x$enable_compiler_warnings" != xyes; then
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wimplicit -Wparentheses -Wreturn-type"
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wswitch -Wtrigraphs -Wshadow -Wpointer-arith"
+ kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
+ case `$CC -dumpversion` in
+ 3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;;
+esac
+
+ fi
+ fi
+else
+ : # FIXME: warning flags for non-gcc compilers
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $kpse_cv_warning_cflags" >&5
+$as_echo "$kpse_cv_warning_cflags" >&6; }
+WARNING_CFLAGS=$kpse_cv_warning_cflags
+
+
+{ $as_echo "$as_me:$LINENO: checking what warning flags to pass to the C++ compiler" >&5
+$as_echo_n "checking what warning flags to pass to the C++ compiler... " >&6; }
+if test "${kpse_cv_warning_cxxflags+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$enable_compiler_warnings" = xno; then
+ kpse_cv_warning_cxxflags=
+elif test "x$GXX" = xyes; then
+ kpse_cv_warning_cxxflags="-Wall -Wunused"
+ case `$CXX -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;;
+esac
+
+ if test "x$enable_compiler_warnings" != xmin; then
+ if test "x$enable_compiler_warnings" != xyes; then
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wimplicit -Wparentheses -Wreturn-type"
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wswitch -Wtrigraphs -Wshadow -Wpointer-arith"
+ kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wcast-qual -Wcast-align -Wwrite-strings"
+ fi
+ fi
+else
+ : # FIXME: warning flags for non-g++ compilers
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $kpse_cv_warning_cxxflags" >&5
+$as_echo "$kpse_cv_warning_cxxflags" >&6; }
+WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags
+
+
+
+
# Checks for header files.
ac_ext=c
diff --git a/Build/source/libs/teckit/configure.ac b/Build/source/libs/teckit/configure.ac
index fa377cd3d89..9d429875cce 100644
--- a/Build/source/libs/teckit/configure.ac
+++ b/Build/source/libs/teckit/configure.ac
@@ -21,6 +21,8 @@ AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_LN_S
+KPSE_COMPILER_WARNINGS
+
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])
diff --git a/Build/source/m4/kpse-warnings.m4 b/Build/source/m4/kpse-warnings.m4
index 7c3a490b707..406f3dd9a4e 100644
--- a/Build/source/m4/kpse-warnings.m4
+++ b/Build/source/m4/kpse-warnings.m4
@@ -39,6 +39,9 @@ elif test "x$GCC" = xyes; then
AS_CASE([`$CC -dumpversion`],
[3.4.* | 4.*],
[kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement"])
+ AS_CASE([`$CC -dumpversion`],
+ [3.@<:@234@:>@.* | 4.*],
+ [kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas"])
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
@@ -95,6 +98,9 @@ if test "x$enable_compiler_warnings" = xno; then
kpse_cv_warning_cxxflags=
elif test "x$GXX" = xyes; then
kpse_cv_warning_cxxflags="-Wall -Wunused"
+ AS_CASE([`$CXX -dumpversion`],
+ [3.@<:@234@:>@.* | 4.*],
+ [kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas"])
if test "x$enable_compiler_warnings" != xmin; then
if test "x$enable_compiler_warnings" != xyes; then
kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wimplicit -Wparentheses -Wreturn-type"
diff --git a/Build/source/texk/afm2pl/configure b/Build/source/texk/afm2pl/configure
index 66785347e3a..1c6e7561751 100755
--- a/Build/source/texk/afm2pl/configure
+++ b/Build/source/texk/afm2pl/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/bibtex8/configure b/Build/source/texk/bibtex8/configure
index 72056c77967..abfcc38cfc7 100755
--- a/Build/source/texk/bibtex8/configure
+++ b/Build/source/texk/bibtex8/configure
@@ -12903,6 +12903,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/cjkutils/configure b/Build/source/texk/cjkutils/configure
index 70c19b5f093..604ac6c9a1f 100755
--- a/Build/source/texk/cjkutils/configure
+++ b/Build/source/texk/cjkutils/configure
@@ -12919,6 +12919,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/detex/configure b/Build/source/texk/detex/configure
index dc1c073706c..961d34e1c2d 100755
--- a/Build/source/texk/detex/configure
+++ b/Build/source/texk/detex/configure
@@ -12915,6 +12915,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dtl/configure b/Build/source/texk/dtl/configure
index 18b786c36ec..d5eccf563fd 100755
--- a/Build/source/texk/dtl/configure
+++ b/Build/source/texk/dtl/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dvi2tty/configure b/Build/source/texk/dvi2tty/configure
index 7fab1b6c78b..c74a546b947 100755
--- a/Build/source/texk/dvi2tty/configure
+++ b/Build/source/texk/dvi2tty/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dvidvi/configure b/Build/source/texk/dvidvi/configure
index 99171f32931..159c00f889f 100755
--- a/Build/source/texk/dvidvi/configure
+++ b/Build/source/texk/dvidvi/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dviljk/configure b/Build/source/texk/dviljk/configure
index 110b88d8af3..f52ea948b2e 100755
--- a/Build/source/texk/dviljk/configure
+++ b/Build/source/texk/dviljk/configure
@@ -12903,6 +12903,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dvipdfmx/configure b/Build/source/texk/dvipdfmx/configure
index 0da47a9f596..58e07a7daf6 100755
--- a/Build/source/texk/dvipdfmx/configure
+++ b/Build/source/texk/dvipdfmx/configure
@@ -12938,6 +12938,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dvipng/configure b/Build/source/texk/dvipng/configure
index bb110fca2b2..e528b643b4a 100755
--- a/Build/source/texk/dvipng/configure
+++ b/Build/source/texk/dvipng/configure
@@ -12994,6 +12994,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dvipos/configure b/Build/source/texk/dvipos/configure
index ea54c0373d1..f3cef974b7e 100755
--- a/Build/source/texk/dvipos/configure
+++ b/Build/source/texk/dvipos/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dvipsk/configure b/Build/source/texk/dvipsk/configure
index 27cfecc410a..e5ca594f4ea 100755
--- a/Build/source/texk/dvipsk/configure
+++ b/Build/source/texk/dvipsk/configure
@@ -12913,6 +12913,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/dvipsk/squeeze/configure b/Build/source/texk/dvipsk/squeeze/configure
index e03a923671d..39707b6c594 100755
--- a/Build/source/texk/dvipsk/squeeze/configure
+++ b/Build/source/texk/dvipsk/squeeze/configure
@@ -3491,6 +3491,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/gsftopk/configure b/Build/source/texk/gsftopk/configure
index 53a8e53b6c3..7ed00bf0309 100755
--- a/Build/source/texk/gsftopk/configure
+++ b/Build/source/texk/gsftopk/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/kpathsea/configure b/Build/source/texk/kpathsea/configure
index e0dd91a104e..d17494ce346 100755
--- a/Build/source/texk/kpathsea/configure
+++ b/Build/source/texk/kpathsea/configure
@@ -12929,6 +12929,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/lacheck/configure b/Build/source/texk/lacheck/configure
index e2863bcc4c1..3836f31fb25 100755
--- a/Build/source/texk/lacheck/configure
+++ b/Build/source/texk/lacheck/configure
@@ -12907,6 +12907,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/lcdf-typetools/configure b/Build/source/texk/lcdf-typetools/configure
index b3c126281ac..96a86c2fd8f 100755
--- a/Build/source/texk/lcdf-typetools/configure
+++ b/Build/source/texk/lcdf-typetools/configure
@@ -12970,6 +12970,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
@@ -14005,6 +14009,10 @@ else
kpse_cv_warning_cxxflags=
elif test "x$GXX" = xyes; then
kpse_cv_warning_cxxflags="-Wall -Wunused"
+ case `$CXX -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
if test "x$enable_compiler_warnings" != xyes; then
kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wimplicit -Wparentheses -Wreturn-type"
@@ -16071,11 +16079,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16074: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16082: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:16078: \$? = $ac_status" >&5
+ echo "$as_me:16086: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -16170,11 +16178,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16173: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16181: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:16177: \$? = $ac_status" >&5
+ echo "$as_me:16185: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -16222,11 +16230,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16225: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16233: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:16229: \$? = $ac_status" >&5
+ echo "$as_me:16237: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
diff --git a/Build/source/texk/makeindexk/configure b/Build/source/texk/makeindexk/configure
index ac17497c408..d52587f6e78 100755
--- a/Build/source/texk/makeindexk/configure
+++ b/Build/source/texk/makeindexk/configure
@@ -12903,6 +12903,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/musixflx/configure b/Build/source/texk/musixflx/configure
index 4534f68e6e2..95c51b0652f 100755
--- a/Build/source/texk/musixflx/configure
+++ b/Build/source/texk/musixflx/configure
@@ -3491,6 +3491,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/ps2pkm/configure b/Build/source/texk/ps2pkm/configure
index f7761c05c5e..3010fc54f91 100755
--- a/Build/source/texk/ps2pkm/configure
+++ b/Build/source/texk/ps2pkm/configure
@@ -12903,6 +12903,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/seetexk/configure b/Build/source/texk/seetexk/configure
index f8433e57add..2a2d50522b1 100755
--- a/Build/source/texk/seetexk/configure
+++ b/Build/source/texk/seetexk/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/tex4htk/configure b/Build/source/texk/tex4htk/configure
index 8378196d197..e3fd9b7311e 100755
--- a/Build/source/texk/tex4htk/configure
+++ b/Build/source/texk/tex4htk/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/ttf2pk/configure b/Build/source/texk/ttf2pk/configure
index a9bc53efc70..3028381def7 100755
--- a/Build/source/texk/ttf2pk/configure
+++ b/Build/source/texk/ttf2pk/configure
@@ -12924,6 +12924,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/ttfdump/configure b/Build/source/texk/ttfdump/configure
index abc14108d9d..f32264f1b35 100755
--- a/Build/source/texk/ttfdump/configure
+++ b/Build/source/texk/ttfdump/configure
@@ -12912,6 +12912,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/web2c/configure b/Build/source/texk/web2c/configure
index bda0898b583..ec20050f727 100755
--- a/Build/source/texk/web2c/configure
+++ b/Build/source/texk/web2c/configure
@@ -13155,6 +13155,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
@@ -14187,6 +14191,10 @@ else
kpse_cv_warning_cxxflags=
elif test "x$GXX" = xyes; then
kpse_cv_warning_cxxflags="-Wall -Wunused"
+ case `$CXX -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
if test "x$enable_compiler_warnings" != xyes; then
kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wimplicit -Wparentheses -Wreturn-type"
@@ -16253,11 +16261,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16256: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16264: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:16260: \$? = $ac_status" >&5
+ echo "$as_me:16268: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -16352,11 +16360,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16355: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16363: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:16359: \$? = $ac_status" >&5
+ echo "$as_me:16367: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -16404,11 +16412,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16407: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16415: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:16411: \$? = $ac_status" >&5
+ echo "$as_me:16419: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
diff --git a/Build/source/texk/web2c/web2c/configure b/Build/source/texk/web2c/web2c/configure
index 90eff9587da..0bbadd8fa9d 100755
--- a/Build/source/texk/web2c/web2c/configure
+++ b/Build/source/texk/web2c/web2c/configure
@@ -12911,6 +12911,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/xdv2pdf/configure b/Build/source/texk/xdv2pdf/configure
index 03fd04aded5..ad089194f10 100755
--- a/Build/source/texk/xdv2pdf/configure
+++ b/Build/source/texk/xdv2pdf/configure
@@ -12941,6 +12941,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
@@ -13976,6 +13980,10 @@ else
kpse_cv_warning_cxxflags=
elif test "x$GXX" = xyes; then
kpse_cv_warning_cxxflags="-Wall -Wunused"
+ case `$CXX -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
if test "x$enable_compiler_warnings" != xyes; then
kpse_cv_warning_cxxflags="$kpse_cv_warning_cxxflags -Wimplicit -Wparentheses -Wreturn-type"
@@ -16042,11 +16050,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16045: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16053: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:16049: \$? = $ac_status" >&5
+ echo "$as_me:16057: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -16141,11 +16149,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16144: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16152: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:16148: \$? = $ac_status" >&5
+ echo "$as_me:16156: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -16193,11 +16201,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16196: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16204: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:16200: \$? = $ac_status" >&5
+ echo "$as_me:16208: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
diff --git a/Build/source/texk/xdvik/configure b/Build/source/texk/xdvik/configure
index ef4b2e10c00..bcef356d847 100755
--- a/Build/source/texk/xdvik/configure
+++ b/Build/source/texk/xdvik/configure
@@ -12989,6 +12989,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/xdvik/squeeze/configure b/Build/source/texk/xdvik/squeeze/configure
index 689a3402ed4..7598ea1966f 100755
--- a/Build/source/texk/xdvik/squeeze/configure
+++ b/Build/source/texk/xdvik/squeeze/configure
@@ -3491,6 +3491,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then
diff --git a/Build/source/texk/xdvipdfmx/configure b/Build/source/texk/xdvipdfmx/configure
index fd4959249ce..b1c40d80b36 100755
--- a/Build/source/texk/xdvipdfmx/configure
+++ b/Build/source/texk/xdvipdfmx/configure
@@ -12962,6 +12962,10 @@ elif test "x$GCC" = xyes; then
3.4.* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;;
esac
+ case `$CC -dumpversion` in
+ 3.[234].* | 4.*) kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;;
+esac
+
if test "x$enable_compiler_warnings" != xmin; then
kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
if test "x$enable_compiler_warnings" != xyes; then