@@ -14,12 +14,12 @@ AC_PROG_MAKE_SET
14
14
15
15
AM_CONFIG_HEADER(config.h)
16
16
17
- AC_ARG_WITH( xmms, [ --with-xmms compile XMMS plugin],WITHXMMS=$withval, WITHXMMS=no)
18
-
19
- AC_ARG_WITH( xmmsmp4,[ --with-xmmsmp4 compile XMMS MP4 plugin],WITHXMMSMP4=$withval, WITHXMMSMP4=no)
17
+ AC_ARG_WITH( xmms, [ --with-xmms compile XMMS plugins],WITHXMMS=$withval, WITHXMMS=no)
20
18
21
19
AC_ARG_WITH( drm, [ --with-drm compile libfaad with DRM support],WITHDRM=$withval, WITHDRM=no)
22
20
21
+ AC_ARG_WITH( mp4v2, [ --with-mp4v2 compile libmp4v2],WITHMP4V2=$withval, WITHMP4V2=no)
22
+
23
23
dnl Checks for header files required for mp4.h
24
24
AC_HEADER_STDC
25
25
AC_CHECK_HEADERS(stdint.h inttypes.h)
@@ -32,6 +32,8 @@ AC_HEADER_TIME
32
32
AC_C_INLINE
33
33
AC_C_BIGENDIAN
34
34
35
+ AC_TYPE_OFF_T
36
+
35
37
AC_DEFUN(MY_CHECK_TYPEDEF_FROM_INCLUDE,
36
38
[
37
39
AC_MSG_CHECKING([for $1])
@@ -69,39 +71,51 @@ AC_CHECK_LIB(mp4v2, MP4Create, , external_mp4v2=no, -lstdc++)
69
71
AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=no, , -lstdc++)
70
72
AC_CHECK_HEADER(mp4.h, , external_mp4v2=no)
71
73
74
+ AM_CONDITIONAL(WITH_MP4V2, false)
75
+
72
76
if test x$external_mp4v2 = xyes; then
73
77
AM_CONDITIONAL(HAVE_MPEG4IP, true)
74
78
MPEG4IP_PLAYER_PLUGIN_DIR=`mpeg4ip-config --player-plugin-dir`
75
79
AC_SUBST(MPEG4IP_PLAYER_PLUGIN_DIR)
76
- AC_CONFIG_FILES(plugins/mpeg4ip/Makefile)
77
80
AC_MSG_NOTICE([*** Building with external mp4v2 ***])
78
81
else
79
82
AM_CONDITIONAL(HAVE_MPEG4IP, false)
80
- AC_CONFIG_FILES(common/mp4v2/Makefile)
83
+ if test x$WITHMP4V2 = xyes; then
84
+ AM_CONDITIONAL(WITH_MP4V2, true)
85
+ fi
81
86
fi
82
87
83
88
if test x$WITHXMMS = xyes; then
84
- xmmsplugin=yes
85
- AC_CHECK_PROGS(XMMS_CONFIG, xmms-config,"no_found")
86
- if test "$XMMS_CONFIG" = "no_found"; then
87
- AC_MSG_ERROR("*** xmms-config not found - omitting xmms plugin build")
88
- xmmsplugin=no
89
- AM_CONDITIONAL(HAVE_XMMS, false)
90
- else
91
- AM_CONDITIONAL(HAVE_XMMS, true)
92
- AC_CONFIG_SUBDIRS(plugins/xmms)
89
+ AC_CHECK_PROGS(XMMS_CONFIG, xmms-config,"not_found")
90
+ if test "$XMMS_CONFIG" = "not_found"; then
91
+ AC_MSG_ERROR("*** xmms-config not found - xmms plugin can't be build")
93
92
fi
93
+ AC_CHECK_HEADER(pthread.h,,
94
+ AC_MSG_ERROR(*** pthread headers support not installed or not found))
95
+ AC_CHECK_HEADER(id3.h,,
96
+ AC_MSG_ERROR(*** id3lib headers support not installed or not found))
97
+ AC_CHECK_PROGS(GTK_CONFIG, gtk-config, "not_found")
98
+
99
+ if test x$GTK_CONFIG = xnot_found; then
100
+ AC_MSG_ERROR("*** gtk-config not found - xmms plugin can't be build")
101
+ fi
102
+
103
+ AM_CONDITIONAL(HAVE_XMMS, true)
104
+ AC_MSG_NOTICE("xmms plugin requires libmp4v2 to be build")
105
+ AM_CONDITIONAL(WITH_MP4V2, true)
94
106
else
95
107
AM_CONDITIONAL(HAVE_XMMS, false)
96
- xmmsplugin=no
97
108
fi
98
109
99
110
if test x$WITHDRM = xyes; then
100
111
AC_DEFINE(DRM, 1, [Define if you want to use libfaad together with Digital Radio Mondiale (DRM)])
101
112
fi
102
113
103
- AC_CONFIG_FILES(libfaad/Makefile frontend/Makefile common/Makefile Makefile plugins/Makefile)
104
- AC_OUTPUT
114
+ AC_CONFIG_FILES(libfaad/Makefile frontend/Makefile common/Makefile plugins/Makefile Makefile )
105
115
106
- dnl AC_CONFIG_SUBDIRS(plugins/xmmsmp4/src)
107
- dnl AC_OUTPUT(plugins/xmmsmp4/Makefile plugins/xmmsmp4/src/Makefile)
116
+ AC_CONFIG_FILES(plugins/mpeg4ip/Makefile)
117
+ AC_CONFIG_FILES(plugins/xmms/Makefile plugins/xmms/src/Makefile)
118
+ AC_CONFIG_FILES(plugins/xmmsmp4/Makefile plugins/xmmsmp4/src/Makefile)
119
+
120
+ AC_CONFIG_FILES(common/mp4ff/Makefile common/mp4v2/Makefile)
121
+ AC_OUTPUT
0 commit comments