summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2000-07-07 19:42:59 +0000
committerSteve Langasek <vorlon@debian.org>2000-07-07 19:42:59 +0000
commit70342e49552a7ec399b3a995ec7a67eb229816fe (patch)
treeb6652816f636647dd2dc7ddce3b5b3f44602ddff
parentb154eb85d9e5aa6c6cdb6632600da36ec0deb5c1 (diff)
downloadlinux-pam-git-70342e49552a7ec399b3a995ec7a67eb229816fe.tar.gz
Relevant BUGIDs: task 15788
Purpose of commit: improved autoconf support Commit summary: --------------- Added macros that allow multiple configure scripts to pull variables from a common config.cache
-rw-r--r--aclocal.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644
index 00000000..cc18f4f8
--- /dev/null
+++ b/aclocal.m4
@@ -0,0 +1,12 @@
+dnl PAM_CACHE_LOAD()
+dnl Load the specified variable from the toplevel PAM config.cache, and
+dnl call AC_SUBST
+
+AC_DEFUN(PAM_CACHE_LOAD,
+[ifelse([$2], , $1=$ac_cv_pam_[$1], $1=$ac_cv_[$2]) AC_SUBST($1)])
+
+dnl PAM_CACHE_SAVE()
+dnl Save the specified variable to the config.cache and call AC_SUBST
+
+AC_DEFUN(PAM_CACHE_SAVE,
+[ac_cv_pam_$1=$$1 AC_SUBST($1)])