diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-23 14:20:21 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-23 14:20:21 +0000 |
commit | 7d5a03d76f46cbbd3b12828754a21953f132a1ef (patch) | |
tree | d35462986e84c5ae3f616dee1d19ae86f5186784 /Build/source/m4 | |
parent | cd7ad3298750c47b535a0bff96ba77ff9ee68f7d (diff) |
Autoconf 2.65
git-svn-id: svn://tug.org/texlive/trunk@16140 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4')
-rw-r--r-- | Build/source/m4/kpse-warnings.m4 | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/Build/source/m4/kpse-warnings.m4 b/Build/source/m4/kpse-warnings.m4 index 1eab00b5425..b72a1b74721 100644 --- a/Build/source/m4/kpse-warnings.m4 +++ b/Build/source/m4/kpse-warnings.m4 @@ -28,6 +28,10 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_KPSE_WARNING_OBJCFLAGS], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_KPSE_WARNING_OBJCFLAGS])]) +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], + [_KPSE_WARNING_OBJCXXFLAGS], + [m4_define([AC_PROG_OBJCXX], + m4_defn([AC_PROG_OBJCXX])[_KPSE_WARNING_OBJCXXFLAGS])]) ]) # KPSE_COMPILER_WARNINGS # _KPSE_COMPILER_WARNINGS_OPTION @@ -62,7 +66,7 @@ if test "x$enable_compiler_warnings" = xno; then elif test "x$GCC" = xyes; then _KPSE_WARNING_GNU_CFLAGS([CC], [cflags])[]dnl else - : # FIXME: warning flags for non-GNU C compilers + kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers fi]) WARNING_CFLAGS=$kpse_cv_warning_cflags AC_SUBST([WARNING_CFLAGS]) @@ -82,7 +86,7 @@ if test "x$enable_compiler_warnings" = xno; then elif test "x$GXX" = xyes; then _KPSE_WARNING_GNU_CXXFLAGS([CXX], [cxxflags])[]dnl else - : # FIXME: warning flags for non-GNU C++ compilers + kpse_cv_warning_cxxflags= # FIXME: warning flags for non-GNU C++ compilers fi]) WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags AC_SUBST([WARNING_CXXFLAGS]) @@ -104,13 +108,35 @@ if test "x$enable_compiler_warnings" = xno; then elif test "x$GOBJC" = xyes; then _KPSE_WARNING_GNU_CFLAGS([OBJC], [objcflags])[]dnl else - : # FIXME: warning flags for non-GNU C compilers + kpse_cv_warning_objcflags= # FIXME: warning flags for non-GNU Objective C compilers fi]) WARNING_OBJCFLAGS=$kpse_cv_warning_objcflags AC_SUBST([WARNING_OBJCFLAGS]) m4_define([_KPSE_WARNING_OBJCFLAGS], [])[]dnl ]) # _KPSE_WARNING_OBJCFLAGS +_KPSE_WARNING_OBJCXXFLAGS +# ----------------------- +# Internal subroutine. +# Determine and substitute WARNING_OBJCXXFLAGS for Objective C++ compiler. +AC_DEFUN([_KPSE_WARNING_OBJCXXFLAGS], +[AC_REQUIRE([_KPSE_COMPILER_WARNINGS_OPTION])[]dnl +AC_REQUIRE([AC_PROG_OBJCXX])[]dnl +AC_CACHE_CHECK([what warning flags to pass to the Objective C++ compiler], + [kpse_cv_warning_objcxxflags], + [dnl +if test "x$enable_compiler_warnings" = xno; then + kpse_cv_warning_objcxxflags= +elif test "x$GOBJCXX" = xyes; then + _KPSE_WARNING_GNU_CXXFLAGS([OBJCXX], [objcxxflags])[]dnl +else + kpse_cv_warning_objcxxflags= # FIXME: warning flags for non-GNU Objective C++ compilers +fi]) +WARNING_OBJCXXFLAGS=$kpse_cv_warning_objcxxflags +AC_SUBST([WARNING_OBJCXXFLAGS]) +m4_define([_KPSE_WARNING_OBJCXXFLAGS], [])[]dnl +]) # _KPSE_WARNING_OBJCXXFLAGS + # _KPSE_WARNING_GNU_CFLAGS(COMPILER, TAG) # --------------------------------------- # Internal subroutine. |