Skip to content

Commit 3efe49d

Browse files
committed
build: attempt to pass --enable-repobuild automatically to submodules
This patch is related to issues: #15 CESNET/Nemea-Modules#96 Argument "--enable-repobuild" is added now by default to configure in subdirs.
1 parent f06c921 commit 3efe49d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ AC_ARG_ENABLE([detectors], AC_HELP_STRING([--disable-detectors], [Disable NEMEA
3737
AC_CONFIG_FILES([Makefile
3838
nemea.spec])
3939
AC_CONFIG_SUBDIRS([nemea-framework nemea-supervisor modules detectors])
40+
41+
# By default, users expects "repobuild" behavior, i.e., use relative path to NEMEA framework.
42+
# If there is some "repobuild" arg of configure, do not add "--enable-repobuild".
43+
if test -z "$ac_configure_args" || echo "$ac_configure_args" | grep -q -v -e 'repobuild'; then
44+
ac_configure_args="$ac_configure_args --enable-repobuild"
45+
fi
46+
4047
AC_OUTPUT
4148

4249
echo "Components:"

0 commit comments

Comments
 (0)