Blame m4/glibtests.m4

rpm-build c487f7
dnl GLIB_TESTS
rpm-build c487f7
dnl
rpm-build c487f7
rpm-build c487f7
AC_DEFUN([GLIB_TESTS],
rpm-build c487f7
[
rpm-build c487f7
  AC_ARG_ENABLE(installed-tests,
rpm-build c487f7
                AS_HELP_STRING([--enable-installed-tests],
rpm-build c487f7
                               [Enable installation of some test cases]),
rpm-build c487f7
                [case ${enableval} in
rpm-build c487f7
                  yes) ENABLE_INSTALLED_TESTS="1"  ;;
rpm-build c487f7
                  no)  ENABLE_INSTALLED_TESTS="" ;;
rpm-build c487f7
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-installed-tests]) ;;
rpm-build c487f7
                 esac])
rpm-build c487f7
  AM_CONDITIONAL([ENABLE_INSTALLED_TESTS], test "$ENABLE_INSTALLED_TESTS" = "1")
rpm-build c487f7
  AC_ARG_ENABLE(always-build-tests,
rpm-build c487f7
                AS_HELP_STRING([--enable-always-build-tests],
rpm-build c487f7
                               [Enable always building tests during 'make all']),
rpm-build c487f7
                [case ${enableval} in
rpm-build c487f7
                  yes) ENABLE_ALWAYS_BUILD_TESTS="1"  ;;
rpm-build c487f7
                  no)  ENABLE_ALWAYS_BUILD_TESTS="" ;;
rpm-build c487f7
                  *) AC_MSG_ERROR([bad value ${enableval} for --enable-always-build-tests]) ;;
rpm-build c487f7
                 esac])
rpm-build c487f7
  AM_CONDITIONAL([ENABLE_ALWAYS_BUILD_TESTS], test "$ENABLE_ALWAYS_BUILD_TESTS" = "1")
rpm-build c487f7
  if test "$ENABLE_INSTALLED_TESTS" = "1"; then
rpm-build c487f7
    AC_SUBST(installed_test_metadir, [${datadir}/installed-tests/]AC_PACKAGE_NAME)
rpm-build c487f7
    AC_SUBST(installed_testdir, [${libexecdir}/installed-tests/]AC_PACKAGE_NAME)
rpm-build c487f7
  fi
rpm-build c487f7
])