From: Akim Demaille Date: Wed, 19 Jul 2000 09:20:19 +0000 (+0000) Subject: autoconf -W error does not work. X-Git-Tag: autoconf-2.50~708 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcd8cd12607af0f245456abf10e2eafa50f0f800;p=thirdparty%2Fautoconf.git autoconf -W error does not work. * acgeneral.m4 (_AC_DIAGNOSE): use _AC_WARNING_IFELSE, _AC_WARNING_ENABLE is dead. --- diff --git a/ChangeLog b/ChangeLog index a74250973..1a2a0b62b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-07-19 Akim Demaille + + autoconf -W error does not work. + + * acgeneral.m4 (_AC_DIAGNOSE): use _AC_WARNING_IFELSE, + _AC_WARNING_ENABLE is dead. + 2000-07-19 Akim Demaille Martin Wilck found a Fortran 77 compiler which always exits with diff --git a/acgeneral.m4 b/acgeneral.m4 index 93b854ef6..5b26dd772 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -2507,8 +2507,7 @@ s,@$1@,,;t t])]) # AC_WARNING_IFELSE(CATEGORY, IF-TRUE, IF-FALSE) # ---------------------------------------------- # If the CATEGORY of warnings is enabled, expand IF_TRUE otherwise -# IF-FALSE. CATEGORY is enabled iff `AC_WARNING_ENABLE(CATEGORY)' or -# `AC_WARNING_ENABLE(all)' is defined. +# IF-FALSE. # # The variable `_AC_WARNINGS' contains a comma separated list of # warnings which order is the converse from the one specified by @@ -2539,9 +2538,9 @@ define([_AC_WARNING_IFELSE], # Report MESSAGE as a warning, unless the user requested -W error, # in which case report a fatal error. define([_AC_DIAGNOSE], -[ifdef([AC_WARNING_ENABLE(error)], - [m4_fatal([$1])], - [m4_warn([$1])])]) +[AC_WARNING_IFELSE([error], + [m4_fatal([$1])], + [m4_warn([$1])])]) # AC_DIAGNOSE(CATEGORY, MESSAGE) diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 93b854ef6..5b26dd772 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -2507,8 +2507,7 @@ s,@$1@,,;t t])]) # AC_WARNING_IFELSE(CATEGORY, IF-TRUE, IF-FALSE) # ---------------------------------------------- # If the CATEGORY of warnings is enabled, expand IF_TRUE otherwise -# IF-FALSE. CATEGORY is enabled iff `AC_WARNING_ENABLE(CATEGORY)' or -# `AC_WARNING_ENABLE(all)' is defined. +# IF-FALSE. # # The variable `_AC_WARNINGS' contains a comma separated list of # warnings which order is the converse from the one specified by @@ -2539,9 +2538,9 @@ define([_AC_WARNING_IFELSE], # Report MESSAGE as a warning, unless the user requested -W error, # in which case report a fatal error. define([_AC_DIAGNOSE], -[ifdef([AC_WARNING_ENABLE(error)], - [m4_fatal([$1])], - [m4_warn([$1])])]) +[AC_WARNING_IFELSE([error], + [m4_fatal([$1])], + [m4_warn([$1])])]) # AC_DIAGNOSE(CATEGORY, MESSAGE)