X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=configure.ac;h=5737c65257c76c360332faa2256b4f6bdcdabb94;hb=ecb6dfe117a8890a86c7e586fb2315bf44aed882;hp=228f6969fff33945a93a9c08255fc4bf487fc9bc;hpb=46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51e;p=elogind.git diff --git a/configure.ac b/configure.ac index 228f6969f..5737c6525 100644 --- a/configure.ac +++ b/configure.ac @@ -180,6 +180,19 @@ AS_IF([test "x$with_python" != "xno"], [ ]) AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"]) +AC_ARG_ENABLE(sphinx, AS_HELP_STRING([--enable-sphinx], + [use sphinx to build documentation for python-systemd])) +AS_IF([test "x$enable_sphinx" = "xyes"], [ + AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build) + AS_IF([test -z "$SPHINX_BUILD"], [ + AC_MSG_ERROR([*** sphinx build requested, but sphinx-build not found]) + ]) + AS_IF([test "x$have_python_devel" != "xyes"], [ + AC_MSG_ERROR([*** sphinx build requested, but python support not enabled]) + ]) +]) +AM_CONDITIONAL(ENABLE_SPHINX, [test "x$enable_sphinx" = "xyes"]) + # ------------------------------------------------------------------------------ AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])]) @@ -635,6 +648,15 @@ if test "x$enable_polkit" != "xno"; then fi AM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"]) +# ------------------------------------------------------------------------------ +have_efi=no +AC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support])) +if test "x$enable_efi" != "xno"; then + AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled]) + have_efi=yes +fi +AM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"]) + # ------------------------------------------------------------------------------ AC_ARG_WITH(rc-local-script-path-start, AS_HELP_STRING([--with-rc-local-script-path-start=PATH], @@ -882,6 +904,7 @@ AC_MSG_RESULT([ localed: ${have_localed} coredump: ${have_coredump} polkit: ${have_polkit} + efi: ${have_efi} kmod: ${have_kmod} blkid: ${have_blkid} nss-myhostname: ${have_myhostname} @@ -892,6 +915,7 @@ AC_MSG_RESULT([ Python Headers: ${have_python_devel} man pages: ${have_manpages} gtk-doc: ${enable_gtk_doc} + sphinx documentation: ${enable_sphinx} Split /usr: ${enable_split_usr} SysV compatibility: ${SYSTEM_SYSV_COMPAT}