From: Akim Demaille Date: Tue, 8 Feb 2000 09:54:19 +0000 (+0000) Subject: Promote AC_LANG_CASE. X-Git-Tag: autoconf-2.50~1216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13110f0768fce99a41d43e2083477363b2851af5;p=thirdparty%2Fautoconf.git Promote AC_LANG_CASE. * acgeneral.m4 (AC_TRY_COMPILER, AC_TRY_LINK_FUNC, AC_CHECK_LIB, AC_TRY_COMPILE, AC_TRY_LINK, AC_TRY_RUN_NATIVE, AC_CHECK_FUNC): Use AC_LANG_CASE instead of ifelse (AC_LANG, ...). (AC_TRY_LINK_FUNC): Quote the body the the AC_DEFUN (whoa, how could this survive so long?!?). --- diff --git a/ChangeLog b/ChangeLog index 98113edfa..c50fed5af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-02-08 Akim Demaille + + Promote AC_LANG_CASE. + + * acgeneral.m4 (AC_TRY_COMPILER, AC_TRY_LINK_FUNC, AC_CHECK_LIB, + AC_TRY_COMPILE, AC_TRY_LINK, AC_TRY_RUN_NATIVE, AC_CHECK_FUNC): + Use AC_LANG_CASE instead of ifelse (AC_LANG, ...). + (AC_TRY_LINK_FUNC): Quote the body the the AC_DEFUN (whoa, how + could this survive so long?!?). + 2000-02-08 Akim Demaille * acgeneral.m4: Formatting changes. diff --git a/TODO b/TODO index ca3f159fd..227d96caf 100644 --- a/TODO +++ b/TODO @@ -73,6 +73,10 @@ having to tell users to rm config.cache before sending us config.log. I don't understand why we have this weird system of AC_SAVE and RESTORE, why not push/pop etc? +** AC_LANG +I don't understand why we have this weird system of AC_SAVE and +RESTORE, why not push/pop etc? + ** AC_PROVIDE I think it is the epilogue that should provide, not the prologue. Not clear: there are risks of circular dependencies :(. In fact the diff --git a/acgeneral.m4 b/acgeneral.m4 index 9433a1677..d30570a50 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -2151,7 +2151,7 @@ popdef([AC_Prog])dnl # language. AC_DEFUN(AC_TRY_COMPILER, [cat >conftest.$ac_ext <conftest.$ac_ext <conftest.$ac_ext <conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ -]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +]AC_LANG_CASE(CPLUSPLUS, [#ifdef __cplusplus extern "C" #endif ])dnl diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 9433a1677..d30570a50 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -2151,7 +2151,7 @@ popdef([AC_Prog])dnl # language. AC_DEFUN(AC_TRY_COMPILER, [cat >conftest.$ac_ext <conftest.$ac_ext <conftest.$ac_ext <conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ -]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +]AC_LANG_CASE(CPLUSPLUS, [#ifdef __cplusplus extern "C" #endif ])dnl