X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=e0c3b3c2745998a17ddfb02933c973ccedbc7909;hb=aabe5a87dc13e08dc70b6814116ce723263a8969;hp=05a31d6a6bf55001c4b767363e035c83c639ed0d;hpb=4d611bb029dc40fedd43359bd7ddef8c86803735;p=vlc diff --git a/configure.ac b/configure.ac index 05a31d6a6b..e0c3b3c274 100644 --- a/configure.ac +++ b/configure.ac @@ -73,7 +73,11 @@ AC_C_INLINE dnl dnl Check for the contrib directory dnl -topdir="`pwd`" +topdir="`dirname $0`" +if test "`echo \"$topdir\" | cut -c 1`" != "/"; then + topdir="`pwd`/$topdir" +fi + if test -d ${topdir}/extras/contrib/lib; then export PATH=${topdir}/extras/contrib/bin:$PATH CPPFLAGS="${CPPFLAGS} -I${topdir}/extras/contrib/include" @@ -2043,44 +2047,20 @@ dnl Look for a ffmpeg-config (we are on debian ) VLC_ADD_LDFLAGS([ffmpeg stream_out_switcher],[`${FFMPEG_CONFIG} --plugin-libs avcodec avformat postproc`]) else - Trying with pkg-config +dnl Trying with pkg-config PKG_CHECK_MODULES(FFMPEG,libavcodec libavformat, [ AC_CHECK_HEADERS(ffmpeg/avcodec.h) AC_CHECK_HEADERS(postproc/postprocess.h) - VLC_ADD_PLUGINS([ffmpeg]) + VLC_ADD_BUILTINS([ffmpeg]) if test "${enable_sout}" != "no"; then - VLC_ADD_PLUGINS([stream_out_switcher]) + VLC_ADD_BUILTINS([stream_out_switcher]) fi VLC_ADD_CFLAGS([ffmpeg stream_out_switcher],[${FFMPEG_CFLAGS}]) - VLC_ADD_LDFLAGS([ffmpeg stream_out_switcher],[${FFMPEG_LIBS}]) + VLC_ADD_LDFLAGS([ffmpeg],[${FFMPEG_LIBS}]) - ], - [ + ],[ - AC_ARG_WITH(ffmpeg-mp3lame, - [ --with-ffmpeg-mp3lame specify if ffmpeg has been compiled with mp3lame support], - [ - VLC_ADD_LDFLAGS([ffmpeg],[-lmp3lame]) ]) - - AC_ARG_WITH(ffmpeg-faac, - [ --with-ffmpeg-faac specify if ffmpeg has been compiled with faac support], - [ - VLC_ADD_LDFLAGS([ffmpeg],[-lfaac]) ]) - - AC_ARG_WITH(ffmpeg-dts, - [ --with-ffmpeg-dts specify if ffmpeg has been compiled with dts support], - [ - VLC_ADD_LDFLAGS([ffmpeg],[-ldts]) ]) - - AC_ARG_WITH(ffmpeg-zlib, - [ --with-ffmpeg-zlib specify if ffmpeg has been compiled with zlib support], - [ - VLC_ADD_LDFLAGS([ffmpeg],[-lz]) ]) - - AC_ARG_WITH(ffmpeg-tree, - [ --with-ffmpeg-tree=PATH ffmpeg tree for static linking]) - dnl dnl test for !(--with-ffmpeg-tree) dnl @@ -2183,6 +2163,30 @@ dnl Look for a ffmpeg-config (we are on debian ) fi fi ]) + + AC_ARG_WITH(ffmpeg-mp3lame, + [ --with-ffmpeg-mp3lame specify if ffmpeg has been compiled with mp3lame support], + [ + VLC_ADD_LDFLAGS([ffmpeg],[-lmp3lame]) ]) + + AC_ARG_WITH(ffmpeg-faac, + [ --with-ffmpeg-faac specify if ffmpeg has been compiled with faac support], + [ + VLC_ADD_LDFLAGS([ffmpeg],[-lfaac]) ]) + + AC_ARG_WITH(ffmpeg-dts, + [ --with-ffmpeg-dts specify if ffmpeg has been compiled with dts support], + [ + VLC_ADD_LDFLAGS([ffmpeg],[-ldts]) ]) + + AC_ARG_WITH(ffmpeg-zlib, + [ --with-ffmpeg-zlib specify if ffmpeg has been compiled with zlib support], + [ + VLC_ADD_LDFLAGS([ffmpeg],[-lz]) ]) + + AC_ARG_WITH(ffmpeg-tree, + [ --with-ffmpeg-tree=PATH ffmpeg tree for static linking]) + fi fi @@ -2689,6 +2693,7 @@ AC_CHECK_HEADERS(png.h, [ AC_CHECK_LIB(png, png_set_rows, [ VLC_ADD_LDFLAGS([png],[-lpng -lz]) VLC_ADD_PLUGINS([png]) + VLC_ADD_PLUGINS([osdmenu]) AC_DEFINE(HAVE_LIBPNG, [], [Define if you have the PNG library: libpng])], [],[-lz]) LDFLAGS="${LDFLAGS_save}"