summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-03 14:10:35 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-03 14:10:35 +0200
commita2618d05f91b0ef5cd0216d088025eb4a61d4de5 (patch)
treec9ef1310e7ad54b5edaa9229c2f1c50e99dfe37a /source4/build/m4
parenta35263e1ab81cac7855158012157769e3e9000f7 (diff)
downloadsamba-a2618d05f91b0ef5cd0216d088025eb4a61d4de5.tar.gz
samba-a2618d05f91b0ef5cd0216d088025eb4a61d4de5.tar.bz2
samba-a2618d05f91b0ef5cd0216d088025eb4a61d4de5.zip
Fix embedding of Samba 4.
(This used to be commit 3862f3132549332e0a44fad65d7c49a27e1dbd4a)
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/public.m412
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4
index d932f09a69..d61e00b22e 100644
--- a/source4/build/m4/public.m4
+++ b/source4/build/m4/public.m4
@@ -155,16 +155,22 @@ SMB_INFO_ENABLES="$SMB_INFO_ENABLES
\$enabled{$1} = \"$2\";"
])
-dnl SMB_WRITE_MAKEVARS(path)
+dnl SMB_WRITE_MAKEVARS(path, skip_vars)
AC_DEFUN([SMB_WRITE_MAKEVARS],
[
echo "configure: creating $1"
cat >$1<<CEOF
# $1 - Autogenerated by configure, DO NOT EDIT!
-AC_FOREACH([AC_Var], m4_defn([_AC_SUBST_VARS]), [
-AC_Var = $AC_Var])
$MAKE_SETTINGS
CEOF
+skip_vars=" $2 "
+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
])
dnl SMB_WRITE_PERLVARS(path)