summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-04 05:09:12 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-04 05:09:12 +0000
commitef44903b773bf0336058ebd182c5397ebc3409e7 (patch)
treee180cbe21df7b4547888af7a12e9107536515fd5 /configure
parentca10cc19a58653b717e14beba7e3d6a4b91b2a25 (diff)
downloadmpv-ef44903b773bf0336058ebd182c5397ebc3409e7.tar.bz2
mpv-ef44903b773bf0336058ebd182c5397ebc3409e7.tar.xz
Simplify some checks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18038 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure36
1 files changed, 15 insertions, 21 deletions
diff --git a/configure b/configure
index 110e7f7ea6..5addbd3670 100755
--- a/configure
+++ b/configure
@@ -2653,17 +2653,14 @@ int main(void) { return 0; }
EOF
_inttypes=no
cc_check && _inttypes=yes
-if test "$_inttypes" = yes ; then
- # nothing to do
- :
-else
- echores "no"
+echores "$_inttypes"
+
+if test "$_inttypes" = no ; then
echocheck "bitypes.h (inttypes.h predecessor)"
cat > $TMPC << EOF
#include <sys/bitypes.h>
int main(void) { return 0; }
EOF
- _inttypes=no
cc_check && _inttypes=yes
if test "$_inttypes" = yes ; then
die "You don't have inttypes.h, but sys/bitypes.h is present. Please copy etc/inttypes.h into the include path, and re-run configure."
@@ -2671,7 +2668,6 @@ EOF
die "Cannot find header either inttypes.h or bitypes.h (see DOCS/HTML/$_doc_lang/faq.html)."
fi
fi
-echores "$_inttypes"
echocheck "int_fastXY_t in inttypes.h"
@@ -3839,20 +3835,20 @@ if test "$_dga" = 1 ; then
_ld_dga='-lXxf86dga'
_vosrc="$_vosrc vo_dga.c"
_vomodules="dga $_vomodules"
- echores "yes (using DGA 1.0)"
+ _res_comment="(using DGA 1.0)"
elif test "$_dga" = 2 ; then
_def_dga='#define HAVE_DGA 1'
_def_dga2='#define HAVE_DGA2 1'
_ld_dga='-lXxf86dga'
_vosrc="$_vosrc vo_dga.c"
_vomodules="dga $_vomodules"
- echores "yes (using DGA 2.0)"
+ _res_comment="(using DGA 2.0)"
elif test "$_dga" = no ; then
- echores "no"
_novomodules="dga $_novomodules"
else
die "DGA version must be 1 or 2"
fi
+echores "$_dga"
echocheck "OpenGL"
@@ -5005,10 +5001,8 @@ else
fi
if test "$_dvdkit2" = yes; then
_have_dvd=yes
- echores "yes"
-else
- echores "no"
fi
+echores "$_dvdkit"
echocheck "DVD support (libdvdread)"
if test "$_dvdread" = auto ; then
@@ -5035,12 +5029,10 @@ case "$_dvdread" in
_ld_dvdread='-ldvdread'
_inputmodules="dvdread $_inputmodules"
_have_dvd=yes
- echores "yes"
;;
no)
_def_dvdread='#undef USE_DVDREAD'
_noinputmodules="dvdread $_noinputmodules"
- echores "no"
;;
libmpdvdkit2)
_largefiles=yes
@@ -5049,9 +5041,11 @@ case "$_dvdread" in
_noinputmodules="dvdread $_noinputmodules"
_def_mpdvdkit="#define USE_MPDVDKIT 2"
_have_dvd=yes
- echores "disabled by libmpdvdkit2"
+ _dvdread=no
+ _res_comment="disabled by libmpdvdkit2"
;;
esac
+echores "$_dvdread"
if test "$_have_dvd" = yes ; then
_def_have_dvd='#define HAVE_DVD 1'
@@ -5096,12 +5090,11 @@ fi
# _inc_extra="$_inc_extra -I$_dvdnavdir"
# fi
# _inputmodules="dvdnav $_inputmodules"
-# echores "yes"
# else
# _def_dvdnav='#undef USE_DVDNAV'
# _noinputmodules="dvdnav $_noinputmodules"
-# echores "no"
# fi
+# echores "$_dvdnav"
echocheck "cdparanoia"
if test "$_cdparanoia" = auto ; then
@@ -5953,7 +5946,7 @@ EOF
fi
fi
if test "$_live" = yes && test "$_network" = yes ; then
- echores "yes (using $_livelibdir)"
+ _res_comment="(using $_livelibdir)"
_def_live='#define STREAMING_LIVE555 1'
_live_libs_def="# LIVE555 Streaming Media libraries:
LIVE_LIB_DIR = $_livelibdir
@@ -5969,7 +5962,7 @@ LIVE_INCLUDES += -I\$(LIVE_LIB_DIR)/groupsock/include"
_ld_live='$(LIVE_LIBS)'
_inputmodules="live555 $_inputmodules"
elif test "$_live_dist" = yes && test "$_network" = yes ; then
- echores "yes (using distribution version)"
+ _res_comment="(using distribution version)"
_live="yes"
_def_live='#define STREAMING_LIVE555 1'
_live_libs_def="# LIVE555 Streaming Media libraries:
@@ -5986,10 +5979,11 @@ LIVE_INCLUDES += -I/usr/include/groupsock"
_ld_live='$(LIVE_LIBS)'
_inputmodules="live555 $_inputmodules"
else
- echores "no"
_def_live='#undef STREAMING_LIVE555'
_noinputmodules="live555 $_noinputmodules"
fi
+echores "$_live"
+
echocheck "FFmpeg libavutil (static)"
if test -d libavutil ; then