aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 25 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8f8ccfc..7c744ff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,29 @@ AC_CHECK_LIB([expat], [XML_Parse],[],
GRECS_SETUP([grecs],[tests getopt git2chg])
+#
+AC_SUBST(FORMATDIR)
+AC_ARG_ENABLE([split-format],
+ [AC_HELP_STRING([--enable-split-format],
+ [build split format files])],
+ [split_fmt=$enableval],
+ [split_fmt=no])
+
+if test $split_fmt = yes; then
+ FORMATDIR="\$(sysconfdir)/\$(PACKAGE)"
+else
+ FORMATDIR="\$(sysconfdir)"
+fi
+AM_CONDITIONAL([SPLIT_FORMATS],[test $split_fmt = yes])
+
+AC_ARG_WITH([format-dir],
+ [AC_HELP_STRING([--format-dir=DIR],
+ [install format files to that directory])],
+ [case $withval in
+ /*) FORMATDIR=$withval;;
+ *) FORMATDIR='$(prefix)/'$withval
+ esac])
+
# Initialize the test suite.
AC_CONFIG_TESTDIR(tests)
AC_CONFIG_FILES([tests/Makefile tests/atlocal])
@@ -70,7 +93,8 @@ AM_MISSING_PROG([AUTOM4TE], [autom4te])
AC_CONFIG_FILES([Makefile
lib/Makefile
- src/Makefile])
+ src/Makefile
+ etc/Makefile])
AC_OUTPUT

Return to:

Send suggestions and report system problems to the System administrator.