summaryrefslogtreecommitdiff
path: root/aix/configure.diff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:47 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:21:47 -0700
commit7c2a874e50b871d04fbd19501f7b42cff55e5abc (patch)
tree1879cd29182ababb17cde77cee5ce74505db4006 /aix/configure.diff
parenta383133c4e7b93113cee912f213cf9502d785fa7 (diff)
downloadzlib-1.2.0.tar.gz
zlib-1.2.0.tar.bz2
zlib-1.2.0.zip
zlib 1.2.0v1.2.0
Diffstat (limited to 'aix/configure.diff')
-rw-r--r--aix/configure.diff57
1 files changed, 57 insertions, 0 deletions
diff --git a/aix/configure.diff b/aix/configure.diff
new file mode 100644
index 0000000..c699129
--- /dev/null
+++ b/aix/configure.diff
@@ -0,0 +1,57 @@
1*** ../orig/zlib-1.1.4/configure Wed Jul 8 14:19:35 1998
2--- configure Sun Feb 9 11:11:19 2003
3***************
4*** 18,23 ****
5--- 18,24 ----
6 # If you have problems, try without defining CC and CFLAGS before reporting
7 # an error.
8
9+ LDFLAGS="-L. -lz"
10 LIBS=libz.a
11 SHAREDLIB=libz.so
12 VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`
13***************
14*** 116,121 ****
15--- 117,128 ----
16 SFLAGS=${CFLAGS-"-Kconform_pic -O"}
17 CFLAGS=${CFLAGS-"-O"}
18 LDSHARED=${LDSHARED-"cc -G"};;
19+ AIX*)
20+ SFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
21+ CFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
22+ LDTESTSHARED=${LDSHARED-"cc -G"}
23+ LDSHAREDFLAGS="-L. libz.so"
24+ LDSHARED=${LDSHARED-"cc -G"};;
25 # send working options for other systems to support@gzip.org
26 *) SFLAGS=${CFLAGS-"-O"}
27 CFLAGS=${CFLAGS-"-O"}
28***************
29*** 127,135 ****
30 echo Checking for shared library support...
31 # we must test in two steps (cc then ld), required at least on SunOS 4.x
32 if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
33! test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
34 CFLAGS="$SFLAGS"
35 LIBS="$SHAREDLIB.$VER"
36 echo Building shared library $SHAREDLIB.$VER with $CC.
37 elif test -z "$old_cc" -a -z "$old_cflags"; then
38 echo No shared library suppport.
39--- 134,143 ----
40 echo Checking for shared library support...
41 # we must test in two steps (cc then ld), required at least on SunOS 4.x
42 if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
43! test "`($LDTESTSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
44 CFLAGS="$SFLAGS"
45 LIBS="$SHAREDLIB.$VER"
46+ LDFLAGS="$LDSHAREDFLAGS"
47 echo Building shared library $SHAREDLIB.$VER with $CC.
48 elif test -z "$old_cc" -a -z "$old_cflags"; then
49 echo No shared library suppport.
50***************
51*** 209,212 ****
52--- 217,221 ----
53 /^exec_prefix *=/s%=.*%=$exec_prefix%
54 /^libdir *=/s%=.*%=$libdir%
55 /^includedir *=/s%=.*%=$includedir%
56+ /^LDFLAGS *=/s%=.*%=$LDFLAGS%
57 " > Makefile