summaryrefslogtreecommitdiff
path: root/m4/ax_prog_cxx_for_build.m4
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2013-04-01 12:22:44 +0200
committerPeter Simons <simons@cryp.to>2013-04-01 13:04:00 +0200
commit925e84ab31333ca5a51b1a1a56741ec55e08aaec (patch)
tree524d381ba9dc8c2e73c22316a33be1da5d1d9eb3 /m4/ax_prog_cxx_for_build.m4
parente985a139c09f06711b7a63e508d583f6f7d2dfd9 (diff)
downloadautoconf-archive-925e84ab31333ca5a51b1a1a56741ec55e08aaec.tar.gz
Do not use AC_CANONICAL_SYSTEM in ax_prog_c{c,xx}_for_build.m4
AC_CANONICAL_SYSTEM requires AC_CANONICAL_TARGET which is bad practice for packages that do not build compilers. Using AC_CANONICAL_HOST performs only the subset of AC_CANONICAL_SYSTEM relevant to the host type.
Diffstat (limited to 'm4/ax_prog_cxx_for_build.m4')
-rw-r--r--m4/ax_prog_cxx_for_build.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_prog_cxx_for_build.m4 b/m4/ax_prog_cxx_for_build.m4
index 6bd64c4..8cc0f73 100644
--- a/m4/ax_prog_cxx_for_build.m4
+++ b/m4/ax_prog_cxx_for_build.m4
@@ -31,14 +31,14 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 1
+#serial 2
AU_ALIAS([AC_PROG_CXX_FOR_BUILD], [AX_PROG_CXX_FOR_BUILD])
AC_DEFUN([AX_PROG_CXX_FOR_BUILD], [dnl
AC_REQUIRE([AX_PROG_CC_FOR_BUILD])dnl
AC_REQUIRE([AC_PROG_CXX])dnl
AC_REQUIRE([AC_PROG_CXXCPP])dnl
-AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
dnl Use the standard macros, but make them use other variable names
dnl