From: Jelmer Vernooij Date: Wed, 26 Nov 2008 15:22:11 +0000 (+0100) Subject: Use a simple shell loop instead of _AC_SUBST_VARS. X-Git-Tag: samba-4.0.0alpha6~480^2~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1d887251d33055d3f5dc858044a1ead63d25e78;p=thirdparty%2Fsamba.git Use a simple shell loop instead of _AC_SUBST_VARS. Autoconf has removed _AC_SUBST_VARS in newer versions. --- diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4 index d61e00b22ef..461b25c6af1 100644 --- a/source4/build/m4/public.m4 +++ b/source4/build/m4/public.m4 @@ -188,10 +188,19 @@ use strict; use vars qw(%enabled %config); -%config = (AC_FOREACH([AC_Var], m4_defn([_AC_SUBST_VARS]), [ - AC_Var => '$AC_Var',]) -); +%config = ( +CEOF + +for ac_var in $ac_subst_vars +do + eval ac_val=\$$ac_var + if echo "$skip_vars" | grep -v " $ac_var " >/dev/null 2>/dev/null; then + echo "$ac_var => '$ac_val'," >> $1 + fi +done +cat >>$1<