aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-12-16 07:47:17 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-16 07:47:17 +0100
commit779a116ff3a4de2333ce647b32a253a80cbfc2a5 (patch)
treed134265a5e453426c7b687133b95cc8c44e222a9 /nx-X11/programs/Xserver
parente92c2a87808ec922b6bc90d5d5002ca77318f697 (diff)
downloadnx-libs-779a116ff3a4de2333ce647b32a253a80cbfc2a5.tar.gz
nx-libs-779a116ff3a4de2333ce647b32a253a80cbfc2a5.tar.bz2
nx-libs-779a116ff3a4de2333ce647b32a253a80cbfc2a5.zip
Support building with legacy zlib versions that do not ship a pkg-config file.
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/Imakefile2
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Imakefile4
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/compext/Imakefile2
3 files changed, 4 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/Imakefile b/nx-X11/programs/Xserver/Imakefile
index 86c5abf81..25ebd73b9 100644
--- a/nx-X11/programs/Xserver/Imakefile
+++ b/nx-X11/programs/Xserver/Imakefile
@@ -292,7 +292,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
XPMLIB = -lXpm
XMLLIB = `pkg-config --libs libxml-2.0`
PIXMANLIB = `pkg-config --libs pixman-1`
-ZLIB = `pkg-config --libs zlib`
+ZLIB = $$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' || echo "-lz")
PNGLIB = `pkg-config --libs libpng`
JPEGLIB = -ljpeg
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Imakefile b/nx-X11/programs/Xserver/hw/nxagent/Imakefile
index c5773215c..a67b2accf 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Imakefile
+++ b/nx-X11/programs/Xserver/hw/nxagent/Imakefile
@@ -175,7 +175,7 @@ INCLUDES = \
$(VFBINCLUDES) \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I pixman-1` \
- `pkg-config --cflags-only-I zlib` \
+ $$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' || echo "-lz") \
`pkg-config --cflags-only-I libpng` \
$(NULL)
#else
@@ -199,7 +199,7 @@ INCLUDES = \
$(VFBINCLUDES) \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I pixman-1` \
- `pkg-config --cflags-only-I zlib` \
+ $$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' || echo "-lz") \
`pkg-config --cflags-only-I libpng` \
$(NULL)
#endif
diff --git a/nx-X11/programs/Xserver/hw/nxagent/compext/Imakefile b/nx-X11/programs/Xserver/hw/nxagent/compext/Imakefile
index d364370ac..06c686c0f 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/compext/Imakefile
+++ b/nx-X11/programs/Xserver/hw/nxagent/compext/Imakefile
@@ -34,7 +34,7 @@ OBJS = \
-I$(XBUILDINCDIR) \
-I../../../../../lib/include/X11 \
`pkg-config --cflags-only-I pixman-1` \
- `pkg-config --cflags-only-I zlib` \
+ $$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --libs 'zlib' || echo "-lz") \
`pkg-config --cflags-only-I libpng` \
$(NULL)