From: David MacKenzie Date: Fri, 26 Aug 1994 04:59:03 +0000 (+0000) Subject: make AC_CANONICAL_HOST independent. X-Git-Tag: fsf-origin~516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68a5c238cebbb2f38204d1698e2b28aad43e8f51;p=thirdparty%2Fautoconf.git make AC_CANONICAL_HOST independent. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index 1dbf3b8e5..5ed11bf96 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -645,10 +645,7 @@ AC_DEFUN(AC_CANONICAL_SYSTEM, # The aliases save the names the user supplied, while $host etc. # will get canonicalized. -build_alias=$build -host_alias=$host -target_alias=$target -case $host_alias---$target_alias---$nonopt in +case $host---$target---$nonopt in NONE---*---* | *---NONE---* | *---*---NONE) ;; *) AC_MSG_ERROR(can only configure for one host and one target at a time) ;; esac @@ -666,8 +663,10 @@ dnl dnl Subroutines of AC_CANONICAL_SYSTEM. dnl AC_DEFUN(AC_CANONICAL_HOST, -[AC_MSG_CHECKING(host system type) +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_MSG_CHECKING(host system type) +host_alias=$host case "${host_alias}" in NONE) case $nonopt in @@ -691,9 +690,12 @@ AC_SUBST(host_vendor)dnl AC_SUBST(host_os)dnl ])dnl dnl +dnl Internal use only. AC_DEFUN(AC_CANONICAL_TARGET, -[AC_MSG_CHECKING(target system type) +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_MSG_CHECKING(target system type) +target_alias=$target case "${target_alias}" in NONE) case $nonopt in @@ -714,9 +716,12 @@ AC_SUBST(target_vendor)dnl AC_SUBST(target_os)dnl ])dnl dnl +dnl Internal use only. AC_DEFUN(AC_CANONICAL_BUILD, -[AC_MSG_CHECKING(build system type) +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_MSG_CHECKING(build system type) +build_alias=$build case "${build_alias}" in NONE) build= build_alias= ;; *) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 1dbf3b8e5..5ed11bf96 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -645,10 +645,7 @@ AC_DEFUN(AC_CANONICAL_SYSTEM, # The aliases save the names the user supplied, while $host etc. # will get canonicalized. -build_alias=$build -host_alias=$host -target_alias=$target -case $host_alias---$target_alias---$nonopt in +case $host---$target---$nonopt in NONE---*---* | *---NONE---* | *---*---NONE) ;; *) AC_MSG_ERROR(can only configure for one host and one target at a time) ;; esac @@ -666,8 +663,10 @@ dnl dnl Subroutines of AC_CANONICAL_SYSTEM. dnl AC_DEFUN(AC_CANONICAL_HOST, -[AC_MSG_CHECKING(host system type) +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_MSG_CHECKING(host system type) +host_alias=$host case "${host_alias}" in NONE) case $nonopt in @@ -691,9 +690,12 @@ AC_SUBST(host_vendor)dnl AC_SUBST(host_os)dnl ])dnl dnl +dnl Internal use only. AC_DEFUN(AC_CANONICAL_TARGET, -[AC_MSG_CHECKING(target system type) +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_MSG_CHECKING(target system type) +target_alias=$target case "${target_alias}" in NONE) case $nonopt in @@ -714,9 +716,12 @@ AC_SUBST(target_vendor)dnl AC_SUBST(target_os)dnl ])dnl dnl +dnl Internal use only. AC_DEFUN(AC_CANONICAL_BUILD, -[AC_MSG_CHECKING(build system type) +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_MSG_CHECKING(build system type) +build_alias=$build case "${build_alias}" in NONE) build= build_alias= ;; *)