summaryrefslogtreecommitdiff
path: root/m4/glibtests.m4
diff options
context:
space:
mode:
authorZhang zhengguang <zhengguang.zhang@intel.com>2014-11-04 11:12:11 +0800
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-11-04 11:12:11 +0800
commit9f52ffa8b526e717e324fe0835ab794478650f11 (patch)
tree4c1ec36d951519b39e0e1e7acd90bccfcd6fc2ff /m4/glibtests.m4
parent39e527cdc1af04afdf13207f5503afa7b772043e (diff)
downloadlibsoup-9f52ffa8b526e717e324fe0835ab794478650f11.tar.gz
libsoup-9f52ffa8b526e717e324fe0835ab794478650f11.tar.bz2
libsoup-9f52ffa8b526e717e324fe0835ab794478650f11.zip
Imported Upstream version 2.46.0upstream/2.46.0
Diffstat (limited to 'm4/glibtests.m4')
-rw-r--r--m4/glibtests.m428
1 files changed, 28 insertions, 0 deletions
diff --git a/m4/glibtests.m4 b/m4/glibtests.m4
new file mode 100644
index 00000000..7d5920a4
--- /dev/null
+++ b/m4/glibtests.m4
@@ -0,0 +1,28 @@
+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
+])