2
1

zlib-1.2.1-configure.patch 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --- zlib/configure
  2. +++ zlib/configure
  3. @@ -160,8 +160,8 @@
  4. if test $shared -eq 1; then
  5. echo Checking for shared library support...
  6. # we must test in two steps (cc then ld), required at least on SunOS 4.x
  7. - if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
  8. - test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
  9. + if ($CC -c $SFLAGS $test.c) 2>>config.log &&
  10. + ($LDSHARED -o $test$shared_ext $test.o) 2>>config.log; then
  11. CFLAGS="$SFLAGS"
  12. LIBS="$LIBS $SHAREDLIBV"
  13. echo Building shared library $SHAREDLIBV with $CC.
  14. @@ -185,7 +185,7 @@
  15. #include <unistd.h>
  16. int main() { return 0; }
  17. EOF
  18. -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
  19. +if ($CC -c $CFLAGS $test.c) 2>>config.log; then
  20. sed < zconf.in.h "/HAVE_UNISTD_H/s%0%1%" > zconf.h
  21. echo "Checking for unistd.h... Yes."
  22. else
  23. @@ -208,7 +208,7 @@
  24. }
  25. EOF
  26. -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
  27. +if ($CC -c $CFLAGS $test.c) 2>>config.log; then
  28. echo "Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()"
  29. cat > $test.c <<EOF
  30. @@ -232,7 +232,7 @@
  31. }
  32. EOF
  33. - if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
  34. + if ($CC $CFLAGS -o $test $test.c) 2>>config.log; then
  35. echo "Checking for vsnprintf() in stdio.h... Yes."
  36. cat >$test.c <<EOF
  37. @@ -257,7 +257,7 @@
  38. }
  39. EOF
  40. - if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
  41. + if ($CC -c $CFLAGS $test.c) 2>>config.log; then
  42. echo "Checking for return value of vsnprintf()... Yes."
  43. else
  44. CFLAGS="$CFLAGS -DHAS_vsnprintf_void"
  45. @@ -295,7 +295,7 @@
  46. }
  47. EOF
  48. - if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
  49. + if ($CC -c $CFLAGS $test.c) 2>>config.log; then
  50. echo "Checking for return value of vsprintf()... Yes."
  51. else
  52. CFLAGS="$CFLAGS -DHAS_vsprintf_void"
  53. @@ -325,7 +325,7 @@
  54. }
  55. EOF
  56. - if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
  57. + if ($CC $CFLAGS -o $test $test.c) 2>>config.log; then
  58. echo "Checking for snprintf() in stdio.h... Yes."
  59. cat >$test.c <<EOF
  60. @@ -344,7 +344,7 @@
  61. }
  62. EOF
  63. - if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
  64. + if ($CC -c $CFLAGS $test.c) 2>>config.log; then
  65. echo "Checking for return value of snprintf()... Yes."
  66. else
  67. CFLAGS="$CFLAGS -DHAS_snprintf_void"
  68. @@ -376,7 +376,7 @@
  69. }
  70. EOF
  71. - if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
  72. + if ($CC -c $CFLAGS $test.c) 2>>config.log; then
  73. echo "Checking for return value of sprintf()... Yes."
  74. else
  75. CFLAGS="$CFLAGS -DHAS_sprintf_void"
  76. @@ -392,7 +392,7 @@
  77. #include <errno.h>
  78. int main() { return 0; }
  79. EOF
  80. -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
  81. +if ($CC -c $CFLAGS $test.c) 2>>config.log; then
  82. echo "Checking for errno.h... Yes."
  83. else
  84. echo "Checking for errno.h... No."
  85. @@ -407,7 +407,7 @@
  86. return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);
  87. }
  88. EOF
  89. -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
  90. +if ($CC -c $CFLAGS $test.c) 2>>config.log; then
  91. CFLAGS="$CFLAGS -DUSE_MMAP"
  92. echo Checking for mmap support... Yes.
  93. else