diff --git a/configure.ac b/configure.ac index 2947d14b97..56bca66562 100644 --- a/configure.ac +++ b/configure.ac @@ -326,18 +326,20 @@ if test "x$HAVE_WINSOCK2_H" = "xyes"; then fi dnl check for GMP/GSL, used by the gst_util_uint64_scale unit test only -AG_GST_CHECK_LIBHEADER(GMP, gmp, - __gmpz_init_set_d, , - gmp.h, - GMP_LIBS="-lgmp" - AC_SUBST(GMP_LIBS) - AC_DEFINE(HAVE_GMP, [1],[Have GMP library])) -AG_GST_CHECK_LIBHEADER(GSL, gsl, - gsl_rng_uniform_int, -lgslcblas, - gsl/gsl_rng.h, - GSL_LIBS="-lgsl -lgslcblas" - AC_SUBST(GSL_LIBS) - AC_DEFINE(HAVE_GSL, [1],[Have GSL library])) +if test "x$BUILD_TESTS" = "xyes"; then + AG_GST_CHECK_LIBHEADER(GMP, gmp, + __gmpz_init_set_d, , + gmp.h, + GMP_LIBS="-lgmp" + AC_SUBST(GMP_LIBS) + AC_DEFINE(HAVE_GMP, [1],[Have GMP library])) + AG_GST_CHECK_LIBHEADER(GSL, gsl, + gsl_rng_uniform_int, -lgslcblas, + gsl/gsl_rng.h, + GSL_LIBS="-lgsl -lgslcblas" + AC_SUBST(GSL_LIBS) + AC_DEFINE(HAVE_GSL, [1],[Have GSL library])) +fi dnl *** checks for types/defines ***