Add --without-ipatests option

--without-ipatests skips building and installation of the ipatests
package. By default the ipatests package is always build and installed
by make install.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Simo Sorce <ssorce@redhat.com>
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Christian Heimes
2017-02-22 15:48:36 +01:00
committed by Petr Vobornik
parent 20c1eb9844
commit 2747f2ad78
2 changed files with 28 additions and 10 deletions
+7 -3
View File
@@ -2,12 +2,16 @@ ACLOCAL_AMFLAGS = -I m4
if ENABLE_SERVER
SERVER_SUBDIRS = daemons init install ipaserver
else
SERVER_SUBDIRS =
endif
if WITH_IPATESTS
IPATESTS_SUBDIRS = ipatests
endif
IPACLIENT_SUBDIRS = ipaclient ipalib ipapython
SUBDIRS = asn1 util client contrib po \
$(IPACLIENT_SUBDIRS) ipaplatform ipatests $(SERVER_SUBDIRS)
$(IPACLIENT_SUBDIRS) ipaplatform $(IPATESTS_SUBDIRS) $(SERVER_SUBDIRS)
MOSTLYCLEANFILES = ipasetup.pyc ipasetup.pyo \
+21 -7
View File
@@ -27,13 +27,20 @@ AC_HEADER_STDC
PKG_PROG_PKG_CONFIG
AC_ARG_ENABLE([server],
[ --disable-server Disable server support],
[case "${enableval}" in
yes) enable_server=true ;;
no) enable_server=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --disable-server]) ;;
esac],[enable_server=true])
AM_CONDITIONAL([ENABLE_SERVER], [test x$enable_server = xtrue])
[AC_HELP_STRING([--disable-server], [Disable server support])],
[case "${enableval}" in
yes) enable_server=yes ;;
no) enable_server=no ;;
*) AC_MSG_ERROR([bad value ${enableval} for --disable-server]) ;;
esac],
[enable_server=yes])
AM_CONDITIONAL([ENABLE_SERVER], [test x$enable_server = xyes])
AC_ARG_WITH([ipatests],
[AC_HELP_STRING([--without-ipatests], [Build without ipatests])],
[with_ipatests=${withval}],
[with_ipatests=yes])
AM_CONDITIONAL([WITH_IPATESTS], [test x"$with_ipatests" = xyes])
AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
@@ -516,3 +523,10 @@ AM_COND_IF([ENABLE_SERVER], [
echo "\
build mode: client only"
])
AM_COND_IF([WITH_IPATESTS], [
echo "\
with ipatests: yes"
], [
echo "\
with ipatests: no"
])