Commit b38ba5d4 authored by Christophe Mutricy's avatar Christophe Mutricy

Add some option in configure to help Gentoo people. Closes #1045. Closes #1046

parent de4e45c3
...@@ -11,8 +11,9 @@ The VideoLAN team would like to thank the following contributors: ...@@ -11,8 +11,9 @@ The VideoLAN team would like to thank the following contributors:
Alex Antropoff <alant at transtelecom dot md> - RFC3016 (LATM) RTP packetizer extension Alex Antropoff <alant at transtelecom dot md> - RFC3016 (LATM) RTP packetizer extension
Alexander Didebulidze <alexander.didebulidze at stusta dot mhn dot de> - Georgian localization Alexander Didebulidze <alexander.didebulidze at stusta dot mhn dot de> - Georgian localization
Alexander Gall <gall at switch dot ch> - Solaris fixes and CDDB fixes Alexander Gall <gall at switch dot ch> - Solaris fixes and CDDB fixes
Andrea Guzzo <xant at xant dot net> - dc1394 firewire support Alexis Ballier <aballlier at gentoo dot org> - Additional options in configure
Alex Izvorski <aizvorski at gmail dot com> - some more x264 options Alex Izvorski <aizvorski at gmail dot com> - some more x264 options
Andrea Guzzo <xant at xant dot net> - dc1394 firewire support
André de Barros Martins Ribeiro <andrerib at ajato.com.br> - Brazilian portuguese localization André de Barros Martins Ribeiro <andrerib at ajato.com.br> - Brazilian portuguese localization
Andre Pang <adre.pang at csiro dot au> - Annodex support Andre Pang <adre.pang at csiro dot au> - Annodex support
Andres Krapf <dae at via.ecp.fr> - FreeBSD port and tests, KDE interface Andres Krapf <dae at via.ecp.fr> - FreeBSD port and tests, KDE interface
......
...@@ -3122,10 +3122,14 @@ AC_CHECK_HEADERS(sysfs/libsysfs.h, [ ...@@ -3122,10 +3122,14 @@ AC_CHECK_HEADERS(sysfs/libsysfs.h, [
dnl dnl
dnl skins2 module dnl skins2 module
dnl dnl
AC_CHECK_HEADERS(libtar.h, [ AC_ARG_ENABLE(libtar,
VLC_ADD_LDFLAGS([skins2],[-ltar]) [ --enable libtar support for skins2 (default enabled)])
] )
AS_IF([test "${enable_libtar}" != "no"],[
AC_CHECK_HEADERS(libtar.h, [
VLC_ADD_LDFLAGS([skins2],[-ltar])
] )
])
dnl dnl
...@@ -3821,6 +3825,8 @@ dnl SDL module ...@@ -3821,6 +3825,8 @@ dnl SDL module
dnl dnl
AC_ARG_ENABLE(sdl, AC_ARG_ENABLE(sdl,
[ --enable-sdl SDL support (default enabled)]) [ --enable-sdl SDL support (default enabled)])
AC_ARG_ENABLE(sdl-image,
[ --enable-sdl-image SDL image support (default enabled)])
if test "${enable_sdl}" != "no" if test "${enable_sdl}" != "no"
then then
SDL_PATH="${PATH}" SDL_PATH="${PATH}"
...@@ -3874,21 +3880,23 @@ then ...@@ -3874,21 +3880,23 @@ then
Please install it and try again. Alternatively you can also configure with Please install it and try again. Alternatively you can also configure with
--disable-sdl.]) --disable-sdl.])
])]) ])])
AC_CHECK_HEADERS(${SDL_IMAGE}, [AC_DEFINE_UNQUOTED(SDL_IMAGE_INCLUDE_FILE, AS_IF([ test "${enable_sdl_image}" != "no"],[
<${SDL_IMAGE}>, Indicate the path of SDL_image.h) AC_CHECK_HEADERS(${SDL_IMAGE}, [AC_DEFINE_UNQUOTED(SDL_IMAGE_INCLUDE_FILE,
VLC_ADD_PLUGINS([sdl_image]) <${SDL_IMAGE}>, Indicate the path of SDL_image.h)
AC_CHECK_LIB(png, png_set_rows, VLC_ADD_PLUGINS([sdl_image])
[VLC_ADD_LDFLAGS([sdl_image],[-lpng -lz])],[],[-lz]) AC_CHECK_LIB(png, png_set_rows,
AC_CHECK_LIB(jpeg, jpeg_start_decompress, [VLC_ADD_LDFLAGS([sdl_image],[-lpng -lz])],[],[-lz])
[VLC_ADD_LDFLAGS([sdl_image],[-ljpeg])]) AC_CHECK_LIB(jpeg, jpeg_start_decompress,
AC_CHECK_LIB(tiff, TIFFClientOpen, [VLC_ADD_LDFLAGS([sdl_image],[-ljpeg])])
[VLC_ADD_LDFLAGS([sdl_image],[-ltiff])]) AC_CHECK_LIB(tiff, TIFFClientOpen,
VLC_ADD_LDFLAGS([sdl_image], [-lSDL_image])], [VLC_ADD_LDFLAGS([sdl_image],[-ltiff])])
[ AC_CHECK_HEADERS(SDL_image.h, AC_DEFINE(SDL_IMAGE_INCLUDE_FILE, <SDL_image.h>, VLC_ADD_LDFLAGS([sdl_image], [-lSDL_image])],
As a last resort we also test for SDL_image.h presence), [ AC_CHECK_HEADERS(SDL_image.h, AC_DEFINE(SDL_IMAGE_INCLUDE_FILE, <SDL_image.h>,
[ AC_MSG_WARN([The development package for SDL_image is not installed. As a last resort we also test for SDL_image.h presence),
You should install it alongside your SDL package.]) [ AC_MSG_WARN([The development package for SDL_image is not installed.
])]) You should install it alongside your SDL package.])
])])
])
CPPFLAGS="${CPPFLAGS_save}" CPPFLAGS="${CPPFLAGS_save}"
if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
then then
......
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