mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
e130d2e511
This helps prevent outdated copies of the m4 files being used if multiple copies are available in the search path. See https://www.gnu.org/software/automake/manual/html_node/Serials.html Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=765552
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
# Increment this whenever this file is changed.
|
|
#serial 1
|
|
|
|
dnl GLIB_TESTS
|
|
dnl
|
|
|
|
AC_DEFUN([GLIB_TESTS],
|
|
[
|
|
AC_ARG_ENABLE(installed-tests,
|
|
AS_HELP_STRING([--enable-installed-tests],
|
|
[Enable installation of some test cases]),
|
|
[case ${enableval} in
|
|
yes) ENABLE_INSTALLED_TESTS="1" ;;
|
|
no) ENABLE_INSTALLED_TESTS="" ;;
|
|
*) AC_MSG_ERROR([bad value ${enableval} for --enable-installed-tests]) ;;
|
|
esac])
|
|
AM_CONDITIONAL([ENABLE_INSTALLED_TESTS], test "$ENABLE_INSTALLED_TESTS" = "1")
|
|
AC_ARG_ENABLE(always-build-tests,
|
|
AS_HELP_STRING([--enable-always-build-tests],
|
|
[Enable always building tests during 'make all']),
|
|
[case ${enableval} in
|
|
yes) ENABLE_ALWAYS_BUILD_TESTS="1" ;;
|
|
no) ENABLE_ALWAYS_BUILD_TESTS="" ;;
|
|
*) AC_MSG_ERROR([bad value ${enableval} for --enable-always-build-tests]) ;;
|
|
esac])
|
|
AM_CONDITIONAL([ENABLE_ALWAYS_BUILD_TESTS], test "$ENABLE_ALWAYS_BUILD_TESTS" = "1")
|
|
if test "$ENABLE_INSTALLED_TESTS" = "1"; then
|
|
AC_SUBST(installed_test_metadir, [${datadir}/installed-tests/]AC_PACKAGE_NAME)
|
|
AC_SUBST(installed_testdir, [${libexecdir}/installed-tests/]AC_PACKAGE_NAME)
|
|
fi
|
|
])
|