diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-25 13:32:48 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-25 13:32:48 +0000 |
commit | 545ad8c358335844ac93b0fce24ba27d3084bf4f (patch) | |
tree | 9e51edd4fe3bf2dc94e1d20a875f6f4a8eb0742a /configure | |
parent | 0e622ee33647691ce17e6077c2ed585cc5385d4f (diff) | |
download | mpv-545ad8c358335844ac93b0fce24ba27d3084bf4f.tar.bz2 mpv-545ad8c358335844ac93b0fce24ba27d3084bf4f.tar.xz |
I was wrong: test didn't work
changed "test !" to simpler constructions where used
added a : which avoided compilation
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2468 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -835,12 +835,13 @@ if test -z "$LINGUAS" ; then 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 @@ cc_check $_extraincdir $_extralibdir -ltermcap && _termcap=yes _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 @@ else _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' |