|
|
@@ -17,69 +17,17 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
|
|
|
AM_GNU_GETTEXT_VERSION([0.18])
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
|
|
-# Allow compilation without dselect
|
|
|
-AC_ARG_WITH(dselect,
|
|
|
- AS_HELP_STRING([--without-dselect],
|
|
|
- [do not build dselect package-management frontend]),
|
|
|
- [build_dselect=$with_dselect],
|
|
|
- [build_dselect=yes])
|
|
|
-AM_CONDITIONAL(WITH_DSELECT, [test "x$build_dselect" = "xyes"])
|
|
|
-
|
|
|
-# Allow compilation without start-stop-daemon
|
|
|
-AC_ARG_WITH(start-stop-daemon,
|
|
|
- AS_HELP_STRING([--without-start-stop-daemon],
|
|
|
- [do not build or use start-stop-daemon]),
|
|
|
- [build_start_stop_daemon=$with_start_stop_daemon],
|
|
|
- [build_start_stop_daemon=yes])
|
|
|
-AM_CONDITIONAL(WITH_START_STOP_DAEMON,
|
|
|
- [test "x$build_start_stop_daemon" = "xyes"])
|
|
|
-if test "x$build_start_stop_daemon" = "xyes"; then
|
|
|
- AC_DEFINE(WITH_START_STOP_DAEMON, 1,
|
|
|
- [Define to 1 if start-stop-daemon is compiled.])
|
|
|
-else
|
|
|
- AC_DEFINE(WITH_START_STOP_DAEMON, 0)
|
|
|
-fi
|
|
|
-
|
|
|
-# Allow compilation without update-alternatives
|
|
|
-AC_ARG_WITH(update-alternatives,
|
|
|
- AS_HELP_STRING([--without-update-alternatives],
|
|
|
- [do not build or use update-alternatives]),
|
|
|
- [build_update_alternatives=$with_update_alternatives],
|
|
|
- [build_update_alternatives=yes])
|
|
|
-AM_CONDITIONAL(WITH_UPDATE_ALTERNATIVES,
|
|
|
- [test "x$build_update_alternatives" = "xyes"])
|
|
|
-
|
|
|
-# Allow compilation without install-info
|
|
|
-AC_ARG_WITH(install-info,
|
|
|
- AS_HELP_STRING([--without-install-info],
|
|
|
- [do not build or use install-info]),
|
|
|
- [build_install_info=$with_install_info],
|
|
|
- [build_install_info=yes])
|
|
|
-AM_CONDITIONAL(WITH_INSTALL_INFO,
|
|
|
- [test "x$build_install_info" = "xyes"])
|
|
|
-
|
|
|
-# Allow alternate admin directory
|
|
|
-admindir="${localstatedir}/lib/${PACKAGE_NAME}"
|
|
|
-AC_ARG_WITH(admindir,
|
|
|
- AS_HELP_STRING([--with-admindir=DIR],
|
|
|
- [dpkg database directory [[LOCALSTATEDIR/lib/dpkg]]]),
|
|
|
-[case "$with_admindir" in
|
|
|
- "") AC_MSG_ERROR([invalid admindir specified]) ;;
|
|
|
- *) admindir="$with_admindir" ;;
|
|
|
-esac])
|
|
|
-AC_SUBST(admindir)
|
|
|
-
|
|
|
-# Allow alternate log directory
|
|
|
-logdir="${localstatedir}/log"
|
|
|
-AC_ARG_WITH(logdir,
|
|
|
- AS_HELP_STRING([--with-logdir=DIR],
|
|
|
- [system logging directory [[LOCALSTATEDIR/log]]]),
|
|
|
-[case "$with_logdir" in
|
|
|
- "") AC_MSG_ERROR([invalid logdir specified]) ;;
|
|
|
- *) logdir="$with_logdir" ;;
|
|
|
-esac])
|
|
|
-AC_SUBST(logdir)
|
|
|
-
|
|
|
+# Allow compilation without optional programs
|
|
|
+DPKG_WITH_PROG([dselect])
|
|
|
+DPKG_WITH_PROG([start-stop-daemon])
|
|
|
+DPKG_WITH_PROG([update-alternatives])
|
|
|
+DPKG_WITH_PROG([install-info])
|
|
|
+
|
|
|
+# Allow alternate directories
|
|
|
+DPKG_WITH_DIR([admindir], [${localstatedir}/lib/${PACKAGE_NAME}],
|
|
|
+ [dpkg database directory [LOCALSTATEDIR/lib/dpkg]])
|
|
|
+DPKG_WITH_DIR([logdir], [${localstatedir}/log],
|
|
|
+ [system logging directory [LOCALSTATEDIR/log]])
|
|
|
|
|
|
# Checks for programs.
|
|
|
AC_PROG_CC
|