diff options
author | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-04 19:26:04 +0000 |
---|---|---|
committer | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-04 19:26:04 +0000 |
commit | cec2b45070f052644891c6a83b0a7120499a0034 (patch) | |
tree | 6a24c181943b5daa717c5f8ac3ecfc0f0da16469 /configure | |
parent | 27c6c58db87f14606db381a436b0866d072a4a6c (diff) | |
download | mpv-cec2b45070f052644891c6a83b0a7120499a0034.tar.bz2 mpv-cec2b45070f052644891c6a83b0a7120499a0034.tar.xz |
Yet another instance of solaris' /bin/sh not happy with the posix "!" boolean
operator (``!: not found'').
Added a shell utility function "not" and use that instead of operator "!".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8781 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -84,6 +84,16 @@ ppc() { esac } +# not boolean test: implement the posix shell "!" operator for a +# non-posix /bin/sh. +# usage: not {command} +# returns exit status "success" when the execution of "command" +# fails. +not() { + eval "$@" + test $? -ne 0 +} + # Use this before starting a check echocheck() { echo "============ Checking for $@ ============" >> "$TMPLOG" @@ -707,7 +717,7 @@ EOF cc_check -march=$proc -mcpu=$proc || proc=k6 fi if test "$proc" = "k6"; then - if ! cc_check -march=$proc -mcpu=$proc; then + if not cc_check -march=$proc -mcpu=$proc; then if cc_check -march=i586 -mcpu=i686; then proc=i586-i686 else @@ -5406,7 +5416,7 @@ Use --enable-sdl to force usage of libSDL. EOF fi -if x86 && ! cygwin; then +if x86 && not cygwin; then if test "$_win32" = no ; then if test "$_win32libdir" ; then cat <<EOF |