@ -268,34 +268,21 @@ INCLUDES = . include $(GENDIR)
LDFLAGS += -Llibs/$( CONFIG)
i f e q ( $( SYSTEM ) , D a r w i n )
i f n e q ( $( wildcard /usr /local /ssl /include ) , )
INCLUDES += /usr/local/ssl/include
e n d i f
i f n e q ( $( wildcard /opt /local /include ) , )
INCLUDES += /opt/local/include
e n d i f
i f n e q ( $( wildcard /usr /local /include ) , )
INCLUDES += /usr/local/include
e n d i f
LIBS = m z
i f n e q ( $( wildcard /usr /local /ssl /lib ) , )
LDFLAGS += -L/usr/local/ssl/lib
e n d i f
i f n e q ( $( wildcard /opt /local /lib ) , )
LDFLAGS += -L/opt/local/lib
e n d i f
i f n e q ( $( wildcard /usr /local /lib ) , )
LDFLAGS += -L/usr/local/lib
e n d i f
LIBS += m
e n d i f
i f e q ( $( SYSTEM ) , L i n u x )
LIBS = rt m z pthread
LIBS += rt m pthread
LDFLAGS += -pthread
e n d i f
i f e q ( $( SYSTEM ) , M I N G W 3 2 )
LIBS = m z pthread
LIBS += m pthread
LDFLAGS += -pthread
e n d i f
i f e q ( $( SYSTEM ) , F r e e B S D )
LIBS += pthread
LDFLAGS += -pthread
e n d i f
@ -387,6 +374,39 @@ ZLIB_CHECK_CMD = $(PKG_CONFIG) --exists zlib
PROTOBUF_CHECK_CMD = $( PKG_CONFIG) --atleast-version= 3.0.0-alpha-3 protobuf
e l s e # HAS_PKG_CONFIG
i f e q ( $( SYSTEM ) , D a r w i n )
i f n e q ( $( wildcard /usr /local /ssl /include ) , )
INCLUDES += /usr/local/ssl/include
e n d i f
i f n e q ( $( wildcard /opt /local /include ) , )
INCLUDES += /opt/local/include
e n d i f
i f n e q ( $( wildcard /usr /local /include ) , )
INCLUDES += /usr/local/include
e n d i f
i f n e q ( $( wildcard /usr /local /ssl /lib ) , )
LDFLAGS += -L/usr/local/ssl/lib
e n d i f
i f n e q ( $( wildcard /opt /local /lib ) , )
LDFLAGS += -L/opt/local/lib
e n d i f
i f n e q ( $( wildcard /usr /local /lib ) , )
LDFLAGS += -L/usr/local/lib
e n d i f
e n d i f
i f e q ( $( SYSTEM ) , L i n u x )
LIBS += z
e n d i f
i f e q ( $( SYSTEM ) , M I N G W 3 2 )
LIBS += z
e n d i f
i f e q ( $( SYSTEM ) , F r e e B S D )
LIBS += z
e n d i f
i f e q ( $( SYSTEM ) , M I N G W 3 2 )
OPENSSL_LIBS = ssl32 eay32
e l s e