summaryrefslogtreecommitdiffabout
path: root/acinclude.m4
authorMichael Krelin <hacker@klever.net>2005-01-30 00:57:53 (UTC)
committer Michael Krelin <hacker@klever.net>2005-01-30 00:57:53 (UTC)
commit71f4cc84c3788c6904ede17cd626a9ca9c349e3b (patch) (side-by-side diff)
treecfe7736ae3416ad314b7451b756e587335c357c7 /acinclude.m4
parentacd2a536dd6bb3ef9438482725f77ac9044ae79b (diff)
downloadsitecing-71f4cc84c3788c6904ede17cd626a9ca9c349e3b.zip
sitecing-71f4cc84c3788c6904ede17cd626a9ca9c349e3b.tar.gz
sitecing-71f4cc84c3788c6904ede17cd626a9ca9c349e3b.tar.bz2
initial commit into repository
Diffstat (limited to 'acinclude.m4') (more/less context) (ignore whitespace changes)
-rw-r--r--acinclude.m437
1 files changed, 37 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644
index 0000000..e16972c
--- a/dev/null
+++ b/acinclude.m4
@@ -0,0 +1,37 @@
+dnl SC_BUILD_CONF(FILE-NAME,DIRECTIVE,CONTENTS)
+AC_DEFUN([SC_BUILD_CONF],[
+ echo -n "$2" >>"$1"
+ oc=0
+ for o in $3 ; do
+ oc=`expr ${oc} + 1`
+ if test ${oc} -ge 16 ; then
+ (echo ; echo -n "$2") >>"$1"
+ oc=0;
+ fi
+ echo -n " ${o}" >>"$1"
+ done
+ echo >>"$1"
+])
+
+dnl SC_WEB_ROOT(V_SRC,V_RUN)
+AC_DEFUN([SC_WEB_ROOT],[
+ $2="${PWD}"
+ X="${PWD}"
+ cd ${srcdir}
+ $1="${PWD}"
+ cd "${X}"
+ AC_SUBST([$1])
+ AC_SUBST([$2])
+])
+
+dnl SC_USER(VARIABLE[,DEFAULT])
+AC_DEFUN([SC_USER],[
+ $1=ifelse([$2], , ["${USER}"],[$2])
+ AC_ARG_WITH([sitecing-user],
+ AC_HELP_STRING([--with-sitecing-user=user],[set the owner of sitecing process]),
+ [
+ $1="${withval}"
+ ]
+ )
+ AC_SUBST([$1])
+])