summaryrefslogtreecommitdiffstats
path: root/amarok/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/configure.in.in')
-rw-r--r--amarok/configure.in.in20
1 files changed, 17 insertions, 3 deletions
diff --git a/amarok/configure.in.in b/amarok/configure.in.in
index 67f53d6c..9c7be42d 100644
--- a/amarok/configure.in.in
+++ b/amarok/configure.in.in
@@ -995,15 +995,29 @@ if test "$have_mp4v2" != "no"; then
ac_cppflags_save=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I."
AC_CHECK_HEADERS(systems.h)
- AC_CHECK_HEADERS([mp4v2/mp4v2.h], [have_mp4_h=yes], [],
+ AC_CHECK_HEADERS([mp4v2/mp4v2.h], [have_mp4v2_h=yes], [],
[#ifdef HAVE_SYSTEMS_H
# include <systems.h>
#endif
])
+ if test "$have_mp4v2_h" = "yes"; then
+ AC_DEFINE(HAVE_MP4V2_H, 1, [have mp4v2 h])
+ else
+ AC_CHECK_HEADERS([mp4.h], [have_mp4_h=yes], [],
+ [#ifdef HAVE_SYSTEMS_H
+ # include <systems.h>
+ #endif
+ ])
+ if test "$have_mp4_h" = "yes"; then
+ AC_DEFINE(HAVE_MP4_H, 1, [have mp4 h])
+ fi
+ fi
- AC_CHECK_LIB( mp4v2, MP4Read, have_mp4v2=yes, have_mp4v2=no )
+ if test "$have_mp4v2_h" = "yes" -o "$have_mp4_h" = "yes"; then
+ AC_CHECK_LIB( mp4v2, MP4Read, have_mp4v2=yes, have_mp4v2=no )
+ fi
- if test "$have_mp4v2" = "yes" -a "$have_mp4_h" = "yes"; then
+ if test "$have_mp4v2" = "yes"; then
AC_DEFINE(HAVE_MP4V2, 1, [have mp4v2])
MP4V2_INCLUDES="-I$mp4v2_dir/include"
MP4V2_LIBS="-L$mp4v2_dir/lib -lmp4v2"