ObjOpenSSL  Diff

Differences From Artifact [5a034e549d]:

To Artifact [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