blob: e2e86a0481e074923e2b4cf2f00da9da7b497771 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
From: Nathan Phillip Brink <ohnobinki@ohnopublishing.net>
Subject: Don't compile against internal zlib. Missing ./configure.ac
changes because ./configure.ac wasn't shipped with the dist
tarball.
Date: 2011/04/27
--- a/autoconf/configure.in
+++ b/autoconf/configure.in
@@ -702,6 +702,8 @@
wi_ARG_DISABLE_CCDV
wi_PROG_CCDV
+PKG_CHECK_MODULES([ZLIB], [zlib])
+
AC_SUBST(SSL_INCLUDES)
AC_SUBST(SSL_LIBS)
AC_SUBST(ENCRYPT_SRC)
@@ -716,7 +718,7 @@
AC_SUBST(SEDOBJ)
AC_SUBST(CCDV)
-AC_OUTPUT(Makefile data/Makefile data/networks/Makefile src/Makefile tools/Makefile tools/ircdcron/Makefile tools/ssl-cert/Makefile zlib/Makefile)
+AC_OUTPUT(Makefile data/Makefile data/networks/Makefile src/Makefile tools/Makefile tools/ircdcron/Makefile tools/ssl-cert/Makefile)
echo
echo =================================================================
--- a/Makefile.in
+++ b/Makefile.in
@@ -28,3 +28,3 @@
SHELL=/bin/sh
-SUBDIRS=zlib src tools data @SUBDIR_MESSAGES@
+SUBDIRS = src tools data @SUBDIR_MESSAGES@
SUBDIRS2=data/networks tools/ircdcron tools/ssl-cert
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -53,9 +53,9 @@
SSL_LIBS = @SSL_LIBS@
SSL_INCLUDES = @SSL_INCLUDES@
-IRCDLIBS = ../zlib/libz.a @LIBS@ $(SSL_LIBS)
+IRCDLIBS = $(ZLIB_LIBS) @LIBS@ $(SSL_LIBS)
-INCLUDES = -I../include -I../zlib $(SSL_INCLUDES)
+INCLUDES = -I../include $(ZLIB_CFLAGS) $(SSL_INCLUDES)
CPPFLAGS = ${INCLUDES} @CPPFLAGS@
default: all
|