Check-in [1af85e464a]
Overview
Comment:Added support for specifying a path to OpenSSL/LibreSSL
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tls-1-7
Files: files | file ages | folders
SHA1: 1af85e464a6cc84fc9572143d04014ef489b8a4c
User & Date: rkeene on 2016-12-06 15:36:14
Other Links: branch diff | manifest | tags
Context
2016-12-06
16:15
Updated to support the --with-ssl-dir configure option check-in: e37183415a user: rkeene tags: tls-1-7
15:36
Added support for specifying a path to OpenSSL/LibreSSL check-in: 1af85e464a user: rkeene tags: tls-1-7
15:23
Updated to allow the user to override autodetection of libraries for OpenSSL/etc check-in: 2d15b1f24e user: rkeene tags: tls-1-7
Changes

Modified aclocal/tcltls_openssl.m4 from [3df4178baf] to [a679608cfd].

1
















2
3
4
5
6
7
8
AC_DEFUN([TCLTLS_SSL_OPENSSL], [
















	dnl Use pkg-config to find the libraries
	AC_ARG_VAR([TCLTLS_SSL_LIBS], [libraries to pass to the linker for OpenSSL or LibreSSL])
	AC_ARG_VAR([TCLTLS_SSL_CFLAGS], [C compiler flags for OpenSSL or LibreSSL])
	AC_ARG_VAR([TCLTLS_SSL_CPPFLAGS], [C preprocessor flags for OpenSSL or LibreSSL])
	if test -z "$TCLTLS_SSL_LIBS"; then
		TCLTLS_SSL_LIBS="`"${PKGCONFIG}" openssl --libs`" || AC_MSG_ERROR([Unable to get OpenSSL Configuration])
	fi

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
AC_DEFUN([TCLTLS_SSL_OPENSSL], [
	AC_ARG_WITH([openssl-dir],
		AS_HELP_STRING(
			[--with-openssl-dir=<dir>],
			[path to root directory of OpenSSL or LibreSSL installation]
		), [
			if test -e "$withval/libssl.$SHOBJEXT"; then
				TCLTLS_SSL_LIBS="-L$withval -lssl -lcrypto"
				withval="`AS_DIRNAME(["$withval"])`"
			else
				TCLTLS_SSL_LIBS="-L$withval/lib -lssl -lcrypto"
			fi
			TCLTLS_SSL_CFLAGS="-I$withval/include"
			TCLTLS_SSL_CPPFLAGS="-I$withval/include"
		]
	)

	dnl Use pkg-config to find the libraries
	AC_ARG_VAR([TCLTLS_SSL_LIBS], [libraries to pass to the linker for OpenSSL or LibreSSL])
	AC_ARG_VAR([TCLTLS_SSL_CFLAGS], [C compiler flags for OpenSSL or LibreSSL])
	AC_ARG_VAR([TCLTLS_SSL_CPPFLAGS], [C preprocessor flags for OpenSSL or LibreSSL])
	if test -z "$TCLTLS_SSL_LIBS"; then
		TCLTLS_SSL_LIBS="`"${PKGCONFIG}" openssl --libs`" || AC_MSG_ERROR([Unable to get OpenSSL Configuration])
	fi