mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Extend configure check for FLAC to use pkg-config when
possible.
This commit is contained in:
parent
838e35af96
commit
c4826262f5
1 changed files with 10 additions and 3 deletions
|
@ -3,9 +3,16 @@ AC_ARG_ENABLE(flac,
|
|||
)
|
||||
HAVE_FLAC=no
|
||||
if test "x$enable_flac" != "xno"; then
|
||||
AM_PATH_LIBFLAC(HAVE_FLAC=yes, HAVE_FLAC=no)
|
||||
if test "x$HAVE_FLAC" = xyes; then
|
||||
AC_DEFINE(HAVE_FLAC, 1, [define this if you have flac libs])
|
||||
if test "x$PKG_CONFIG" != "x"; then
|
||||
PKG_CHECK_MODULES([FLAC], [flac], HAVE_FLAC=yes, HAVE_JACK=no)
|
||||
if test "x$HAVE_FLAC" = "xyes"; then
|
||||
AC_DEFINE(HAVE_JACK, 1, [Define if you have libFLAC])
|
||||
fi
|
||||
else
|
||||
AM_PATH_LIBFLAC(HAVE_FLAC=yes, HAVE_FLAC=no)
|
||||
if test "x$HAVE_FLAC" = xyes; then
|
||||
AC_DEFINE(HAVE_FLAC, 1, [define this if you have flac libs])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_FLAC, test "x$HAVE_FLAC" = "xyes")
|
||||
|
|
Loading…
Reference in a new issue