1
0
forked from bip/bip

Add missing OpenSSL CFLAGS/LDFLAGs to build.

Those were removed by mistake in the previous autotool refactor.
This commit is contained in:
Arnaud Cornet 2018-11-18 15:37:46 -05:00 committed by Pierre-Louis Bonicoli
parent 34a92dedb1
commit 2bf967bacc
Signed by untrusted user: pilou
GPG Key ID: ADC2651DDACD3538
2 changed files with 9 additions and 2 deletions

View File

@ -15,7 +15,11 @@ AC_PROG_YACC
m4_ifndef([PKG_PROG_PKG_CONFIG], [m4_fatal([Please install pkg-config.])])
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(OPENSSL, [libssl >= 0.9.8 libcrypto >= 0.9.8], [with_openssl=yes], [with_openssl=no])
PKG_CHECK_MODULES(OPENSSL, [libssl >= 0.9.8 libcrypto >= 0.9.8], [
with_openssl=yes
AC_DEFINE([HAVE_LIBSSL], [1],
[Build SSL support])
], [ with_openssl=no ])
AC_CACHE_CHECK([whether $CC accepts PIE flags], [ap_cv_cc_pie], [
save_CFLAGS=$CFLAGS

View File

@ -12,10 +12,13 @@ libbip_a_SOURCES = conf.y lex.l \
tuple.h \
util.c util.h
libbip_a_CFLAGS = ${OPENSSL_CFLAGS}
bin_PROGRAMS = bip bipmkpw
bip_SOURCES = bip_main.c
bip_LDADD = libbip.a
bip_LDADD = libbip.a ${OPENSSL_LIBS}
bipmkpw_SOURCES = bipmkpw.c md5.c util.c
AM_YFLAGS= -d