Commit d9328c1e authored by Sam Hocevar's avatar Sam Hocevar

* configure.ac: link the mkv plugin with -lmatroska_pic -lebml_pic if found.

parent bf81d020
...@@ -1387,7 +1387,12 @@ AC_LANG_PUSH(C++) ...@@ -1387,7 +1387,12 @@ AC_LANG_PUSH(C++)
AC_CHECK_HEADERS(EbmlVersion.h matroska/KaxVersion.h, [ AC_CHECK_HEADERS(EbmlVersion.h matroska/KaxVersion.h, [
AX_ADD_PLUGINS([mkv]) AX_ADD_PLUGINS([mkv])
AX_ADD_CXXFLAGS([mkv],[-I/usr/local/include/ebml -I/usr/include/ebml]) AX_ADD_CXXFLAGS([mkv],[-I/usr/local/include/ebml -I/usr/include/ebml])
AC_CHECK_LIB(ebml_pic,main,[
# We have ebml_pic, that's good, we can build an mkv.so plugin !
AX_ADD_LDFLAGS([mkv],[-lmatroska_pic -lebml_pic])
],[
AX_ADD_LDFLAGS([mkv],[-lmatroska -lebml]) AX_ADD_LDFLAGS([mkv],[-lmatroska -lebml])
])
],[ ],[
AC_MSG_ERROR([libebml or libmatroska include files not found]) AC_MSG_ERROR([libebml or libmatroska include files not found])
]) ])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment