ObjOpenSSL  Check-in [32bcbfa301]

Overview
Comment:configure: Do not use pkg-config to find OpenSSL

This allows working with both OpenSSL and LibreSSL.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 32bcbfa30178012b9e2b01b83b13ff4bc14c9ef4327710e872c66d1f05ca3d6c
User & Date: js on 2018-11-05 22:24:15
Other Links: manifest | tags
Context
2018-11-10
10:59
Update buildsys check-in: 7c3cddfa2e user: js tags: trunk
2018-11-05
22:24
configure: Do not use pkg-config to find OpenSSL check-in: 32bcbfa301 user: js tags: trunk
2018-10-07
21:07
Support for async connecting check-in: b3c83672df user: js tags: trunk
Changes

Modified .gitignore from [24cd89b83e] to [bf55e62232].

1
2
3
4

5
6
7
8
9
10
11
1
2
3
4
5
6
7
8
9
10
11
12




+







*.dylib
*.framework
*.o
*.so
*.so.*
*~
.deps
aclocal.m4
autom4te.cache
buildsys.mk
config.log
config.status

Modified autogen.sh from [b49a128683] to [2112946f72].

1
2
3
4
5
6

7
8
9
10
1
2
3
4
5

6
7
8
9
10





-
+




#!/bin/sh
set -e

# Set a version for OpenBSD
: ${AUTOCONF_VERSION:=2.69}
: ${AUTOMAKE_VERSION:=1.15}
: ${AUTOMAKE_VERSION:=1.16}
export AUTOCONF_VERSION AUTOMAKE_VERSION

aclocal -I build-aux/m4
autoconf

Modified configure.ac from [5a034e549d] to [1eafb580d4].

40
41
42
43
44
45
46
47

48
49

50
51
52
53
54
55
56


57
58
59
60
61
62
63
64
40
41
42
43
44
45
46

47


48
49






50
51

52
53
54
55
56
57
58







-
+
-
-
+

-
-
-
-
-
-
+
+
-







AC_ARG_ENABLE(static, AS_HELP_STRING([--enable-static], [build static library]))
AS_IF([test x"$enable_static" = x"yes" -o x"$enable_shared" = x"no"], [
	AC_PATH_TOOL(AR, ar)
	AC_PROG_RANLIB
	AC_SUBST(OBJOPENSSL_STATIC_LIB, "libobjopenssl.a")
])

PKG_CHECK_MODULES(openssl, [openssl >= 1.0.2], [
AC_CHECK_LIB(ssl, main, [
	CPPFLAGS="$CPPFLAGS $openssl_CFLAGS"
	LIBS="$LIBS $openssl_LIBS"
	LIBS="$LIBS -lssl -lcrypto"
], [
	PKG_CHECK_MODULES(eopenssl, [eopenssl >= 1.0.2], [
		CPPFLAGS="$CPPFLAGS $eopenssl_CFLAGS"
		LIBS="$LIBS $eopenssl_LIBS"
	], [
		AC_MSG_ERROR(You need openssl >= 1.0.2 installed!)
	])
	AC_MSG_ERROR(You need openssl >= 1.0.2 installed!)
], [-lcrypto])
])

AS_IF([test x"$GOBJC" = x"yes"], [
	OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror"
])

BUILDSYS_INIT