Mercurial > mplayer.hg
comparison configure @ 2482:4733bb1a9b72
added detection of zlib
author | alex |
---|---|
date | Fri, 26 Oct 2001 13:50:05 +0000 |
parents | 93a7eef13072 |
children | e5a6dd35b88e |
comparison
equal
deleted
inserted
replaced
2481:0e9a5504a246 | 2482:4733bb1a9b72 |
---|---|
3 # | 3 # |
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz | 4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz |
5 # pontscho@makacs.poliod.hu | 5 # pontscho@makacs.poliod.hu |
6 # | 6 # |
7 # Changes in reversed order: | 7 # Changes in reversed order: |
8 # | |
9 # 2001/10/26 by al3x | |
10 # - added detection of zlib (used by libmpdemux/demux_mov.c) | |
8 # | 11 # |
9 # 2001/10/22 by Jeroen Dobbelaere | 12 # 2001/10/22 by Jeroen Dobbelaere |
10 # - added selection of libmad | 13 # - added selection of libmad |
11 # | 14 # |
12 # 2001/08/27 by Johannes Feigl | 15 # 2001/08/27 by Johannes Feigl |
1145 int main( void ) { return 0; } | 1148 int main( void ) { return 0; } |
1146 EOF | 1149 EOF |
1147 _libdl=no | 1150 _libdl=no |
1148 cc_check -ldl && _libdl=yes | 1151 cc_check -ldl && _libdl=yes |
1149 | 1152 |
1153 # check for zlib.h | |
1154 cat > $TMPC << EOF | |
1155 #include <zlib.h> | |
1156 int main( void ) { return 0; } | |
1157 EOF | |
1158 _zlib=no | |
1159 cc_check -lz && _zlib=yes | |
1150 | 1160 |
1151 # check for sys/soundcard.h | 1161 # check for sys/soundcard.h |
1152 cat > $TMPC << EOF | 1162 cat > $TMPC << EOF |
1153 #include <sys/soundcard.h> | 1163 #include <sys/soundcard.h> |
1154 int main( void ) { return 0; } | 1164 int main( void ) { return 0; } |
1697 echo "Checking for mad support ... $_mad" | 1707 echo "Checking for mad support ... $_mad" |
1698 echo "Checking for OggVorbis support ... $_vorbis" | 1708 echo "Checking for OggVorbis support ... $_vorbis" |
1699 echo "Checking for Win32 DLL support ... $_win32" | 1709 echo "Checking for Win32 DLL support ... $_win32" |
1700 echo "Checking for DirectShow ... $_dshow" | 1710 echo "Checking for DirectShow ... $_dshow" |
1701 echo "Checking for iconv function ... $_iconv" | 1711 echo "Checking for iconv function ... $_iconv" |
1712 echo "Checking for zlib ... $_zlib" | |
1702 | 1713 |
1703 # check if compiler supports C++ and C++-libs are installed correctly | 1714 # check if compiler supports C++ and C++-libs are installed correctly |
1704 if test "$_win32" = yes && test "$_dshow" = yes ; then | 1715 if test "$_win32" = yes && test "$_dshow" = yes ; then |
1705 cat > $TMPCPP << EOF | 1716 cat > $TMPCPP << EOF |
1706 /* very useful C++ test program by atmos */ | 1717 /* very useful C++ test program by atmos */ |
2074 _have_libdl='#define HAVE_LIBDL 1' | 2085 _have_libdl='#define HAVE_LIBDL 1' |
2075 else | 2086 else |
2076 _have_libdl='#undef HAVE_LIBDL' | 2087 _have_libdl='#undef HAVE_LIBDL' |
2077 fi | 2088 fi |
2078 | 2089 |
2090 if test "$_zlib" = yes ; then | |
2091 _have_zlib='#define HAVE_ZLIB 1' | |
2092 _zlib='-lz' | |
2093 else | |
2094 _have_zlib='#undef HAVE_ZLIB' | |
2095 _zlib='' | |
2096 fi | |
2079 | 2097 |
2080 # Checking for CFLAGS | 2098 # Checking for CFLAGS |
2081 if test "$_profile" || test "$_debug" ; then | 2099 if test "$_profile" || test "$_debug" ; then |
2082 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" | 2100 CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" |
2083 elif test -z "$CFLAGS" ; then | 2101 elif test -z "$CFLAGS" ; then |
2359 EXTRA_INC=$_extraincdir $_gtkinc | 2377 EXTRA_INC=$_extraincdir $_gtkinc |
2360 WIN32_PATH=-DWIN32_PATH=\\"$_win32libdir\\" | 2378 WIN32_PATH=-DWIN32_PATH=\\"$_win32libdir\\" |
2361 | 2379 |
2362 X11_INC=$_x11incdir | 2380 X11_INC=$_x11incdir |
2363 X11DIR=$_x11libdir | 2381 X11DIR=$_x11libdir |
2364 X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib $_libmad | 2382 X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis $_xineramalib $_libmad $_zlib |
2365 | 2383 |
2366 TERMCAP_LIB=$_libtermcap | 2384 TERMCAP_LIB=$_libtermcap |
2367 XMM_LIBS = $_xmmplibs | 2385 XMM_LIBS = $_xmmplibs |
2368 LIRC_LIBS = $_lirclibs | 2386 LIRC_LIBS = $_lirclibs |
2369 CSS_USE=$_css | 2387 CSS_USE=$_css |
2488 $_have_alloca_h | 2506 $_have_alloca_h |
2489 | 2507 |
2490 /* Define this if your system has the "sys/mman.h" header file */ | 2508 /* Define this if your system has the "sys/mman.h" header file */ |
2491 $_have_mman_h | 2509 $_have_mman_h |
2492 | 2510 |
2493 | |
2494 /* Define this if you have the elf dynamic linker -ldl library */ | 2511 /* Define this if you have the elf dynamic linker -ldl library */ |
2495 $_have_libdl | 2512 $_have_libdl |
2496 | 2513 |
2497 /* Define this if you have the kstat kernel statistics library */ | 2514 /* Define this if you have the kstat kernel statistics library */ |
2498 $_have_libkstat | 2515 $_have_libkstat |
2516 | |
2517 /* Define this if you have zlib */ | |
2518 $_have_zlib | |
2499 | 2519 |
2500 /* LIRC (remote control, see www.lirc.org) support: */ | 2520 /* LIRC (remote control, see www.lirc.org) support: */ |
2501 $_lircdefs | 2521 $_lircdefs |
2502 | 2522 |
2503 /* DeCSS support using libcss */ | 2523 /* DeCSS support using libcss */ |