]> git.sesse.net Git - vlc/commitdiff
CrystalHD: improve configuration on some linux
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 13 Feb 2011 16:15:19 +0000 (17:15 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 13 Feb 2011 20:13:52 +0000 (21:13 +0100)
configure.ac

index beec261ec02a35687bbdc4817db91f4b1ca56b02..8a7e8c5c254da9015d64b04405ecca8d7aa0c31e 100644 (file)
@@ -2454,7 +2454,7 @@ dnl
 AC_ARG_ENABLE(crystalhd,
   [  --enable-crystalhd       crystalhd codec plugin (default disabled)])
 if test "${enable_crystalhd}" == "yes"; then
-    AC_CHECK_HEADERS(libcrystalhd/libcrystalhd_if.h, [
+    AC_CHECK_HEADER(libcrystalhd/libcrystalhd_if.h, [
       VLC_ADD_PLUGIN([crystalhd])
       VLC_ADD_LIBS([crystalhd], [-lcrystalhd])
     ],[
@@ -2468,7 +2468,9 @@ if test "${enable_crystalhd}" == "yes"; then
           AC_MSG_ERROR("Could not find CrystalHD development headers")
         ])
       fi
-    ])
+    ],[#define __LINUX_USER__
+       #include <libcrystalhd/bc_dts_types.h>
+      ])
 fi
 
 dnl