# HG changeset patch # User jkeil # Date 1041708364 0 # Node ID 0c0b84a656fe47d26bd71a063ab21dedf6a39ac2 # Parent 43b2ecb7543c73066c0722ea02c52eb0be5cb3f2 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 "!". diff -r 43b2ecb7543c -r 0c0b84a656fe configure --- a/configure Sat Jan 04 19:23:29 2003 +0000 +++ b/configure Sat Jan 04 19:26:04 2003 +0000 @@ -84,6 +84,16 @@ 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 @@ 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 @@ EOF fi -if x86 && ! cygwin; then +if x86 && not cygwin; then if test "$_win32" = no ; then if test "$_win32libdir" ; then cat <