12 Commits

Author SHA1 Message Date
Michael Davidsaver
9ce6ae78af Add option to auto-detect OpenSSL and MbedTLS 2023-06-07 11:10:14 -07:00
Azat Khuzhin
a0087e2c7a autotools: print $OPENSSL_LIBS/$OPENSSL_INCS 2022-07-10 10:07:39 +03:00
Azat Khuzhin
8bad28d607 autotools: fix autodetection of openssl location via brew 2022-07-09 20:15:17 +03:00
fanquake
c5642697e7
build: fail with a useful error message if pkg-config isn't available 2021-07-13 15:08:44 +08:00
fanquake
12996ba9bf
build: replace ntp_pkg_config macro with a call to PKG_PROG_PKG_CONFIG()
Note that 0.15.0 is quite an old version to be testing for, however I've left
this as-is for now.
2021-07-09 12:34:11 +08:00
fanquake
72d877a2c2 autotools: attempt to find OpenSSL via homebrew on macOS
When compiling for macOS, where users will likely have OpenSSL installed
via brew, rather than available on the system, use brew  --prefix to
figure out where OpenSSL is, and then augment the pkg-config path so
that libs are found.
2020-11-01 23:34:10 +03:00
yuangongji
53b3be4ee9 autotools: fails build when need but can not find openssl 2019-10-26 22:43:26 +08:00
Fabrice Fontaine
0374b55942 m4/libevent_openssl.m4: fix detection of openssl
Since commit 506df426dbeb0187bbd3654bd286b4100628fb16, OPENSSL_INCS is
added to CPPFLAGS without any white space, as a result openssl detection
fails on:
configure:10395: checking openssl/ssl.h usability
configure:10395: /home/fabrice/buildroot-test/buildroot/output/host/bin/riscv32-linux-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64-I/home/fabrice/buildroot-test/buildroot/output/host/bin/../riscv32-buildroot-linux-gnu/sysroot/usr/include  conftest.c >&5
<command-line>:0:0: warning: "_FILE_OFFSET_BITS" redefined
<command-line>:0:0: note: this is the location of the previous definition
<command-line>:0:23: error: division by zero in #if

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2019-06-08 23:51:19 +02:00
Carlo Marcelo Arenas Belón
506df426db autotools: confirm openssl is working before using
latest versions of macOS provide pkg-config and libraries for an ancient
version of openssl as part of the system, but no headers
2017-09-11 01:17:59 +03:00
Azat Khuzhin
671a24f29b autotools/win32: fix searching ssl library 2016-08-09 15:47:58 +03:00
Nick Mathewson
a37cbfdafc Merge remote-tracking branch 'origin/patches-2.0'
Conflicts:
	configure.in
2012-02-14 15:44:03 -05:00
Harlan Stenn
674dc3d34e Provide the autoconf m4 macros for the new OpenSSL via pkg-config stuff. 2011-08-28 14:31:28 -04:00