summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 58f59aa..84a4181 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,11 +8,15 @@ AC_CONFIG_AUX_DIR(.)
AM_INIT_AUTOMAKE([gnu] [1.7] [dist-bzip2] [no-dist-gzip])
AC_PREFIX_DEFAULT([/usr])
-AC_ARG_ENABLE([dist],
- [AC_HELP_STRING([--enable-dist=DIST],
+AC_ARG_WITH([dist],
+ [AC_HELP_STRING([--with-dist=DIST],
[distribution target (default: openpkg)])],
- [distribution=$srcdir/dist_conf/$enable_dist],
+ [distribution=$srcdir/dist_conf/$withval],
[distribution=$srcdir/dist_conf/kolab])
+
+AS_IF([test -f $distribution],,
+ AC_MSG_ERROR([incorrect value for --with-dist: $withval])
+)
AC_SUBST_FILE(distribution)
common=dist_conf/common