configure.ac: use libmikmod-config instead of pkg-config
[mk: use AC_SUBST instead of appending to MPD_CFLAGS / MPD_LIBS]
This commit is contained in:
parent
52123c1de8
commit
7487f9810c
11
configure.ac
11
configure.ac
@ -671,9 +671,14 @@ fi
|
|||||||
AM_CONDITIONAL(HAVE_AUDIOFILE, test x$enable_audiofile = xyes)
|
AM_CONDITIONAL(HAVE_AUDIOFILE, test x$enable_audiofile = xyes)
|
||||||
|
|
||||||
if test x$enable_mod = xyes; then
|
if test x$enable_mod = xyes; then
|
||||||
PKG_CHECK_MODULES(LIBMIKMOD, [libmikmod],
|
AC_PATH_PROG(LIBMIKMOD_CONFIG, libmikmod-config)
|
||||||
AC_DEFINE(HAVE_MIKMOD, 1, [Define for mikmod support]),
|
if test x$LIBMIKMOD_CONFIG != x ; then
|
||||||
enable_mod=no)
|
AC_SUBST(LIBMIKMOD_CFLAGS, `$LIBMIKMOD_CONFIG --cflags`)
|
||||||
|
AC_SUBST(LIBMIKMOD_LIBS, `$LIBMIKMOD_CONFIG --libs`)
|
||||||
|
AC_DEFINE(HAVE_MIKMOD, 1, [Define for mikmod support])
|
||||||
|
else
|
||||||
|
enable_mod=no
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_MIKMOD, test x$enable_mod = xyes)
|
AM_CONDITIONAL(HAVE_MIKMOD, test x$enable_mod = xyes)
|
||||||
|
Loading…
Reference in New Issue
Block a user