mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
check: Only check for gmp/gsl if building of tests is not disabled
This commit is contained in:
parent
81d3fda6e8
commit
43b157b775
1 changed files with 14 additions and 12 deletions
26
configure.ac
26
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 ***
|
||||
|
||||
|
|
Loading…
Reference in a new issue