2002-01-06 21:52:21 +00:00
|
|
|
dnl check for sidplay
|
2001-12-17 19:04:24 +00:00
|
|
|
|
2004-02-11 16:44:05 +00:00
|
|
|
AC_DEFUN([GST_PATH_SIDPLAY],
|
2001-12-17 19:04:24 +00:00
|
|
|
[
|
2004-09-17 20:52:31 +00:00
|
|
|
AC_MSG_CHECKING([for libsidplay 1.36.x])
|
2001-12-17 19:04:24 +00:00
|
|
|
|
2002-01-06 21:52:21 +00:00
|
|
|
AC_LANG_PUSH(C++)
|
2001-12-17 19:04:24 +00:00
|
|
|
|
2002-01-06 21:52:21 +00:00
|
|
|
AC_CHECK_HEADER(sidplay/player.h, HAVE_SIDPLAY="yes", HAVE_SIDPLAY="no")
|
2001-12-17 19:04:24 +00:00
|
|
|
|
2002-01-06 21:52:21 +00:00
|
|
|
if test $HAVE_SIDPLAY = "yes"; then
|
|
|
|
SIDPLAY_LIBS="-lsidplay"
|
2001-12-17 19:04:24 +00:00
|
|
|
|
2002-01-06 21:52:21 +00:00
|
|
|
AC_MSG_CHECKING([whether -lsidplay works])
|
|
|
|
ac_libs_safe=$LIBS
|
2001-12-17 19:04:24 +00:00
|
|
|
|
2002-01-06 21:52:21 +00:00
|
|
|
LIBS="-lsidplay"
|
2001-12-17 19:04:24 +00:00
|
|
|
|
|
|
|
AC_TRY_RUN([
|
|
|
|
#include <sidplay/player.h>
|
|
|
|
int main()
|
2002-01-06 21:52:21 +00:00
|
|
|
{ sidTune tune = sidTune(0); }
|
2001-12-17 19:04:24 +00:00
|
|
|
],
|
2002-01-06 21:52:21 +00:00
|
|
|
HAVE_SIDPLAY="yes",
|
|
|
|
HAVE_SIDPLAY="no",
|
|
|
|
HAVE_SIDPLAY="no")
|
|
|
|
|
|
|
|
LIBS="$ac_libs_safe"
|
2001-12-17 19:04:24 +00:00
|
|
|
|
2002-01-06 21:52:21 +00:00
|
|
|
AC_MSG_RESULT([$HAVE_SIDPLAY])
|
2001-12-17 19:04:24 +00:00
|
|
|
fi
|
2002-01-06 21:52:21 +00:00
|
|
|
|
|
|
|
SIDPLAY_CFLAGS=
|
|
|
|
SIDPLAY_LIBS="-lsidplay"
|
|
|
|
AC_SUBST(SIDPLAY_CFLAGS)
|
2001-12-17 19:04:24 +00:00
|
|
|
AC_SUBST(SIDPLAY_LIBS)
|
|
|
|
|
2002-01-06 21:52:21 +00:00
|
|
|
AC_LANG_POP(C++)
|
|
|
|
])
|