Check-in [014ac5852d]
Overview
Comment:Updated with basic building support for OpenSSL
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tls-1-7
Files: files | file ages | folders
SHA1: 014ac5852dc075a6d309dc7dcfe9d9577957dc67
User & Date: rkeene on 2016-11-24 05:11:00
Other Links: branch diff | manifest | tags
Context
2016-11-24
05:18
Updated to use a meaningful package name and version check-in: 8f8805845f user: rkeene tags: tls-1-7
05:11
Updated with basic building support for OpenSSL check-in: 014ac5852d user: rkeene tags: tls-1-7
05:03
Start of work for checking for TLS libraries check-in: 3e598ec287 user: rkeene tags: tls-1-7
Changes
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
65
66
67
68
69
70
71
	fi

	tcltls_ssl_lib="$withval"
], [
	tcltls_ssl_lib='auto'
])




dnl XXX:TODO: Automatically determine the SSL library to use
dnl           defaulting to OpenSSL for compatibility reasons
if test "$tcltls_ssl_lib" = 'auto'; then
	tcltls_ssl_lib='openssl'
fi

AC_MSG_CHECKING([which TLS library to use])
AS_CASE([$tcltls_ssl_lib],
	[openssl], [
		AC_MSG_RESULT([openssl])




	],
	[libressl], [
		AC_MSG_RESULT([libressl])
	],
	[nss], [
		AC_MSG_RESULT([nss])
	],
	[
		AC_MSG_ERROR([Unsupported SSL library: $tcltls_ssl_lib])
	]
)


dnl Produce output
AC_OUTPUT(Makefile pkgIndex.tcl)







>
>
>










>
>
>
>











<



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
65
66
67
68
69
70
71
72
73
74

75
76
77
	fi

	tcltls_ssl_lib="$withval"
], [
	tcltls_ssl_lib='auto'
])


AC_CHECK_TOOL([PKGCONFIG], [pkg-config], [false])

dnl XXX:TODO: Automatically determine the SSL library to use
dnl           defaulting to OpenSSL for compatibility reasons
if test "$tcltls_ssl_lib" = 'auto'; then
	tcltls_ssl_lib='openssl'
fi

AC_MSG_CHECKING([which TLS library to use])
AS_CASE([$tcltls_ssl_lib],
	[openssl], [
		AC_MSG_RESULT([openssl])

		LIBS="${LIBS} `"${PKGCONFIG}" openssl --libs`"
		CFLAGS="${CFLAGS} `"${PKGCONFIG}" openssl --cflags-only-other`"
		CPPFLAGS="${CPPFLAGS} `"${PKGCONFIG}" openssl --cflags-only-I`"
	],
	[libressl], [
		AC_MSG_RESULT([libressl])
	],
	[nss], [
		AC_MSG_RESULT([nss])
	],
	[
		AC_MSG_ERROR([Unsupported SSL library: $tcltls_ssl_lib])
	]
)


dnl Produce output
AC_OUTPUT(Makefile pkgIndex.tcl)