]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: Make deviceatlas require PCRE
authorDavid CARLIER <dcarlier@afilias.info>
Fri, 6 Nov 2015 15:13:06 +0000 (15:13 +0000)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Nov 2015 07:26:24 +0000 (08:26 +0100)
Makefile deviceatlas throwing an error if the necessary pcre flag
is not passed avoiding surprising bunch of 'undefined reference'
for the user. Plus a tiny typo in OPENSSL area.

[wt: backport to 1.6]

Makefile

index 3af735eeb71b6e3e5f93e94dea6ca680995f687f..d42d5fb6eb57ed675e0a4748773e28de299ef24e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -569,7 +569,7 @@ OPTIONS_OBJS  += src/dlmalloc.o
 endif
 
 ifneq ($(USE_OPENSSL),)
-# OpenSSL is packaged in various forms and with various dependences.
+# OpenSSL is packaged in various forms and with various dependencies.
 # In general -lssl is enough, but on some platforms, -lcrypto may be needed,
 # reason why it's added by default. Some even need -lz, then you'll need to
 # pass it in the "ADDLIB" variable if needed. If your SSL libraries are not
@@ -614,6 +614,9 @@ OPTIONS_OBJS    += src/hlua.o
 endif
 
 ifneq ($(USE_DEVICEATLAS),)
+ifeq ($(USE_PCRE),)
+$(error the DeviceAtlas module needs the PCRE library in order to compile)
+endif
 # Use DEVICEATLAS_SRC and possibly DEVICEATLAS_INC and DEVICEATLAS_LIB to force path
 # to DeviceAtlas headers and libraries if needed.
 DEVICEATLAS_SRC =