Commit e20e20d9 authored by Daniel Thayer's avatar Daniel Thayer

Add "--with-openssl" option to the "configure" script

Added a new option "--with-openssl" to the "configure" script so
that a user can specify the location of the OpenSSL library and
headers.  This is needed in cases where OpenSSL is not found
automatically or if the wrong version is found.  For example, in order
to build CAF on macOS, we need to specify "--with-openssl=/opt/local"
when using MacPorts, or "--with-openssl=/usr/local/opt/openssl" when
using Homebrew.
parent 7839b237
...@@ -43,6 +43,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]... ...@@ -43,6 +43,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--with-clang=FILE path to clang++ executable --with-clang=FILE path to clang++ executable
--with-gcc=FILE path to g++ executable --with-gcc=FILE path to g++ executable
--with-qt-prefix=PATH prefix path for Qt5 cmake modules --with-qt-prefix=PATH prefix path for Qt5 cmake modules
--with-openssl=PATH path to OpenSSL library and headers
--dual-build build using both gcc and clang --dual-build build using both gcc and clang
--build-static build as static and shared library --build-static build as static and shared library
--build-static-only build as static library only --build-static-only build as static library only
...@@ -307,6 +308,9 @@ while [ $# -ne 0 ]; do ...@@ -307,6 +308,9 @@ while [ $# -ne 0 ]; do
--with-qt-prefix=*) --with-qt-prefix=*)
append_cache_entry CAF_QT_PREFIX_PATH STRING "$optarg" append_cache_entry CAF_QT_PREFIX_PATH STRING "$optarg"
;; ;;
--with-openssl=*)
append_cache_entry OPENSSL_ROOT_DIR PATH $optarg
;;
--build-type=*) --build-type=*)
append_cache_entry CMAKE_BUILD_TYPE STRING $optarg append_cache_entry CMAKE_BUILD_TYPE STRING $optarg
;; ;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment