From abce2980c929dbb6ccb9d45c7cd88df3106c6ee4 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 20 Feb 2008 19:53:44 +0000 Subject: added new m4 directory --- (limited to 'm4/outoforder.m4') diff --git a/m4/outoforder.m4 b/m4/outoforder.m4 new file mode 100644 index 0000000..7add221 --- /dev/null +++ b/m4/outoforder.m4 @@ -0,0 +1,36 @@ +dnl m4 for utility macros used by all out of order projects + +dnl this writes a "config.nice" file which reinvokes ./configure with all +dnl of the arguments. this is different from config.status which simply +dnl regenerates the output files. config.nice is useful after you rebuild +dnl ./configure (via autoconf or autogen.sh) +AC_DEFUN([OOO_CONFIG_NICE],[ + echo configure: creating $1 + rm -f $1 + cat >$1<> $1 + fi + done + echo '"[$]@"' >> $1 + chmod +x $1 +]) + +dnl this macro adds a maintainer mode option to enable programmer specific +dnl code in makefiles +AC_DEFUN([OOO_MAINTAIN_MODE],[ + AC_ARG_ENABLE( + maintainer, + [AC_HELP_STRING([--enable-maintainer],[Enable maintainer mode for this project])], + AC_MSG_RESULT([Enabling Maintainer Mode!!]) + OOO_MAINTAIN=1, + OOO_MAINTAIN=0) + AC_SUBST(OOO_MAINTAIN) +]) -- cgit v0.9.2