]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix configure for Sun shell.
authorMark Adler <madler@alumni.caltech.edu>
Sat, 23 Mar 2013 20:50:10 +0000 (13:50 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sat, 23 Mar 2013 20:50:10 +0000 (13:50 -0700)
configure

index bc39fd74f077742572b8dd99756bfd1aa8bca341..bb5b1b8a271ca465f0b242a794cf51afe4229807 100755 (executable)
--- a/configure
+++ b/configure
@@ -365,7 +365,9 @@ cat > $test.c << EOF
 int foo() { return 0; }
 EOF
 echo "Checking for obsessive-compulsive compiler options..." >> configure.log
-if ! try $CC -c $CFLAGS $test.c; then
+if try $CC -c $CFLAGS $test.c; then
+  :
+else
   echo "Compiler error reporting is too harsh for $0 (perhaps remove -Werror)." | tee -a configure.log
   leave 1
 fi