Mercurial > mplayer.hg
changeset 2467:1e0a75f83c9c
I was wrong: test didn't work
changed "test !" to simpler constructions where used
added a : which avoided compilation
author | pl |
---|---|
date | Thu, 25 Oct 2001 13:32:48 +0000 |
parents | 451426046a14 |
children | 24427e03cd66 |
files | configure |
diffstat | 1 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Oct 25 13:19:18 2001 +0000 +++ b/configure Thu Oct 25 13:32:48 2001 +0000 @@ -835,12 +835,13 @@ LINGUAS="en" fi echo Checking for language ... "$LINGUAS" -_mp_help="help_mp-"$LINGUAS".h" -if test ! -f "$_mp_help" ; then -echo "Language file ("$_mp_help") not found!" -LINGUAS="en" -_mp_help="help_mp-"$LINGUAS".h" -fi +_mp_help="help_mp-${LINGUAS}.h" + +test -f "$_mp_help" || { + echo "Language file (${_mp_help}) not found!" + LINGUAS="en" + _mp_help="help_mp-"$LINGUAS".h" +} echo Using ... "$_mp_help" file cc_check $_extraincdir $_extralibdir -lvgagl -lvga && _svga=yes @@ -892,8 +893,9 @@ _png=no if irix64 ; then - # Don't check for -lpng on irix since irix has its own libpng - # incompatible with the GNU one + # Don't check for -lpng on irix since it has its own libpng + # incompatible with the GNU libpng + : else cc_check $_extraincdir $_extralibdir -lpng -lz -lm && _png=yes fi @@ -2042,12 +2044,13 @@ _have_soundcard_h='#undef HAVE_SYS_SOUNDCARD_H' fi -# malloc.h useless in FreeBSD -if test "$_malloc_h" = yes && test ! freebsd ; then +if test "$_malloc_h" = yes ; then _have_malloc_h='#define HAVE_MALLOC_H 1' else _have_malloc_h='#undef HAVE_MALLOC_H' fi +# malloc.h useless in FreeBSD +freebsd && _have_malloc_h='#undef HAVE_MALLOC_H' if test "$_memalign" = yes ; then _have_memalign='#define HAVE_MEMALIGN 1'