2017-05-01 11:00:56 +02:00
|
|
|
dnl audacious-vgmstream m4 script
|
2008-05-18 19:17:49 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2017-05-01 11:00:56 +02:00
|
|
|
|
2008-05-18 19:17:49 +02:00
|
|
|
AC_PREREQ(2.53)
|
2017-05-01 11:00:56 +02:00
|
|
|
AC_INIT(audacious-vgmstream,1.3.0)
|
|
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
2017-05-01 17:08:52 +02:00
|
|
|
AC_CONFIG_HEADERS(audacious/config.h)
|
2008-05-18 19:17:49 +02:00
|
|
|
AM_DISABLE_STATIC
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
AC_PATH_X
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
2014-08-10 21:33:01 +02:00
|
|
|
PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 3.5.0],,
|
2017-05-01 11:00:56 +02:00
|
|
|
[AC_MSG_ERROR([Cannot find audacious >= 3.5.0 correctly installed])]
|
2008-05-18 19:17:49 +02:00
|
|
|
)
|
|
|
|
|
2008-06-15 06:01:03 +02:00
|
|
|
PKG_CHECK_MODULES(VORBISFILE, [vorbisfile],,
|
|
|
|
[AC_MSG_ERROR([Cannot find libvorbisfile])]
|
|
|
|
)
|
|
|
|
|
2008-07-05 13:49:29 +02:00
|
|
|
PKG_CHECK_MODULES(MPG123, [libmpg123],,
|
|
|
|
[AC_MSG_ERROR([Cannot find libmpg123])]
|
|
|
|
)
|
|
|
|
|
2008-05-18 19:17:49 +02:00
|
|
|
PKG_CHECK_MODULES(GTK, [glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango],
|
|
|
|
, [AC_MSG_ERROR([Cannot find glib2/gtk2/pango])]
|
|
|
|
)
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS $AUDACIOUS_CFLAGS"
|
2008-07-05 13:49:29 +02:00
|
|
|
LIBS="$LIBS $AUDACIOUS_LIBS $GTK_LIBS $VORBISFILE_LIBS $MPG123_LIBS"
|
2008-05-18 19:17:49 +02:00
|
|
|
|
|
|
|
plugindir=`pkg-config audacious --variable=plugin_dir`
|
|
|
|
AC_SUBST(plugindir)
|
|
|
|
|
|
|
|
INPUT_PLUGIN_DIR="Input"
|
|
|
|
AC_SUBST(INPUT_PLUGIN_DIR)
|
|
|
|
|
|
|
|
#AC_CHECK_HEADERS(regex.h,,AC_MSG_ERROR(regex.h missing))
|
|
|
|
#AC_CHECK_FUNCS(regcomp regexec regfree)
|
|
|
|
|
|
|
|
AC_PATH_X
|
|
|
|
AC_PATH_XTRA
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
2017-05-01 17:08:52 +02:00
|
|
|
Makefile.audacious
|
|
|
|
src/Makefile.audacious
|
|
|
|
src/coding/Makefile.audacious
|
|
|
|
src/layout/Makefile.audacious
|
|
|
|
src/meta/Makefile.audacious
|
|
|
|
audacious/Makefile.audacious
|
2008-05-18 19:17:49 +02:00
|
|
|
])
|