From 241d339efdebb923e9e5c86341eb8eba673b0274 Mon Sep 17 00:00:00 2001 From: ivo Date: Sat, 23 Oct 2004 22:43:19 +0000 Subject: Add --enable and --disable options for vo_pnm and vo_md5sum to configure. It's now possible to compile libvo without pnm and/or md5sum support. Default is enable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13745 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 41 +++++++++++++++++++++++++++++++++++++++++ libvo/Makefile | 2 +- libvo/video_out.c | 8 ++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6ab921d35c..8f81519f4f 100755 --- a/configure +++ b/configure @@ -253,6 +253,8 @@ Video output: --enable-bl build with Blinkenlights support [disable] --enable-tdfxvid build with tdfx_vid support [disable] --disable-tga disable targa output support [enable] + --disable-pnm disable pnm output support [enable] + --disable-md5sum disable md5sum output support [enable] Audio output: --disable-alsa disable ALSA sound support [autodetect] @@ -1264,6 +1266,8 @@ _win32waveout=auto _nas=auto _png=auto _jpg=auto +_pnm=yes +_md5sum=yes _gif=auto _gl=auto _ggi=auto @@ -1414,6 +1418,10 @@ for ac_option do --disable-png) _png=no ;; --enable-jpeg) _jpg=yes ;; --disable-jpeg) _jpg=no ;; + --enable-pnm) _pnm=yes ;; + --disable-pnm) _pnm=no ;; + --enable-md5sum) _md5sum=yes ;; + --disable-md5sum) _md5sum=no ;; --enable-gif) _gif=yes ;; --disable-gif) _gif=no ;; --enable-gl) _gl=yes ;; @@ -3879,6 +3887,33 @@ else fi + +echocheck "PNM support" +if test "$_pnm" = yes; then + _def_pnm="#define HAVE_PNM" + _vosrc="$_vosrc vo_pnm.c" + _vomodules="pnm $_vomodules" +else + _def_pnm="#undef HAVE_PNM" + _novomodules="pnm $_novomodules" +fi +echores "$_pnm" + + + +echocheck "md5sum support" +if test "$_md5sum" = yes; then + _def_md5sum="#define HAVE_MD5SUM" + _vosrc="$_vosrc vo_md5sum.c md5sum.c" + _vomodules="md5sum $_vomodules" +else + _def_md5sum="#undef HAVE_MD5SUM" + _novomodules="md5sum $_novomodules" +fi +echores "$_md5sum" + + + echocheck "GIF support" # This is to appease people who want to force gif support. # If it is forced to yes, then we still do checks to determine @@ -6959,6 +6994,12 @@ $_def_png /* enable JPEG support */ $_def_jpg +/* enable PNM support */ +$_def_pnm + +/* enable md5sum support */ +$_def_md5sum + /* enable GIF support */ $_def_gif $_def_gif_4 diff --git a/libvo/Makefile b/libvo/Makefile index 643e6c7ce6..b5eb305c78 100644 --- a/libvo/Makefile +++ b/libvo/Makefile @@ -3,7 +3,7 @@ include config.mak LIBNAME = libvo.a -SRCS=geometry.c aspect.c aclib.c osd.c font_load.c gtf.c spuenc.c video_out.c vo_null.c vo_mpegpes.c vo_yuv4mpeg.c $(OPTIONAL_SRCS) sub.c font_load_ft.c vo_pnm.c vo_md5sum.c md5sum.c +SRCS=geometry.c aspect.c aclib.c osd.c font_load.c gtf.c spuenc.c video_out.c vo_null.c vo_mpegpes.c vo_yuv4mpeg.c $(OPTIONAL_SRCS) sub.c font_load_ft.c OBJS=$(SRCS:.c=.o) ifeq ($(VIDIX),yes) diff --git a/libvo/video_out.c b/libvo/video_out.c index a7b7a589e2..d621a1599f 100644 --- a/libvo/video_out.c +++ b/libvo/video_out.c @@ -122,8 +122,12 @@ extern vo_functions_t video_out_tga; #ifdef MACOSX extern vo_functions_t video_out_quartz; #endif +#ifdef HAVE_PNM extern vo_functions_t video_out_pnm; +#endif +#ifdef HAVE_MD5SUM extern vo_functions_t video_out_md5sum; +#endif vo_functions_t* video_out_drivers[] = { @@ -237,8 +241,12 @@ vo_functions_t* video_out_drivers[] = #ifdef HAVE_TGA &video_out_tga, #endif +#ifdef HAVE_PNM &video_out_pnm, +#endif +#ifdef HAVE_MD5SUM &video_out_md5sum, +#endif NULL }; -- cgit v1.2.3