mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Merge remote-tracking branch 'origin/patches-2.0'
Conflicts: configure.in
This commit is contained in:
commit
a37cbfdafc
@ -176,6 +176,7 @@ else
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(EV_LIB_WS32)
|
AC_SUBST(EV_LIB_WS32)
|
||||||
AC_SUBST(EV_LIB_GDI)
|
AC_SUBST(EV_LIB_GDI)
|
||||||
|
AC_SUBST(OPENSSL_LIBADD)
|
||||||
|
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ case "$enable_openssl" in
|
|||||||
OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
|
OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
|
||||||
case "$OPENSSL_LIBS" in
|
case "$OPENSSL_LIBS" in
|
||||||
'') ;;
|
'') ;;
|
||||||
*) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32"
|
*) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
|
||||||
have_openssl=yes
|
have_openssl=yes
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -28,9 +28,9 @@ case "$enable_openssl" in
|
|||||||
OPENSSL_LIBS=""
|
OPENSSL_LIBS=""
|
||||||
AC_SEARCH_LIBS([SSL_new], [ssl],
|
AC_SEARCH_LIBS([SSL_new], [ssl],
|
||||||
[have_openssl=yes
|
[have_openssl=yes
|
||||||
OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32"],
|
OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"],
|
||||||
[have_openssl=no],
|
[have_openssl=no],
|
||||||
[-lcrypto $EV_LIB_GDI $EV_LIB_WS32])
|
[-lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD])
|
||||||
LIBS="$save_LIBS"
|
LIBS="$save_LIBS"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -22,7 +22,7 @@ if OPENSSL
|
|||||||
AM_CPPFLAGS += $(OPENSSL_INCS)
|
AM_CPPFLAGS += $(OPENSSL_INCS)
|
||||||
noinst_PROGRAMS += le-proxy
|
noinst_PROGRAMS += le-proxy
|
||||||
le_proxy_SOURCES = le-proxy.c
|
le_proxy_SOURCES = le-proxy.c
|
||||||
le_proxy_LDADD = $(LDADD) ../libevent_openssl.la -lssl -lcrypto
|
le_proxy_LDADD = $(LDADD) ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
verify:
|
verify:
|
||||||
|
@ -65,7 +65,7 @@ regress_LDFLAGS = $(PTHREAD_CFLAGS)
|
|||||||
|
|
||||||
if OPENSSL
|
if OPENSSL
|
||||||
regress_SOURCES += regress_ssl.c
|
regress_SOURCES += regress_ssl.c
|
||||||
regress_LDADD += ../libevent_openssl.la -lssl -lcrypto
|
regress_LDADD += ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bench_SOURCES = bench.c
|
bench_SOURCES = bench.c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user