diff options
author | Darren Tucker <dtucker@dtucker.net> | 2023-01-07 00:34:18 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2023-01-07 00:34:18 +0100 |
commit | 5532e010a0eeb6aa264396514f9aed7948471538 (patch) | |
tree | 418c3f72b7c105e7f122ef4d6bd21ea846a55511 /configure.ac | |
parent | Set OPENSSL_BIN from OpenSSL directory. (diff) | |
download | openssh-5532e010a0eeb6aa264396514f9aed7948471538.tar.xz openssh-5532e010a0eeb6aa264396514f9aed7948471538.zip |
Check openssl_bin path is executable before using.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index be8d9ad82..f6802500f 100644 --- a/configure.ac +++ b/configure.ac @@ -2696,14 +2696,11 @@ AC_ARG_WITH([ssl-dir], esac if test -d "$withval/lib"; then libcrypto_path="${withval}/lib" - openssl_bin="${withval}/bin/openssl" elif test -d "$withval/lib64"; then libcrypto_path="$withval/lib64" - openssl_bin="${withval}/bin/openssl" else # Built but not installed libcrypto_path="${withval}" - openssl_bin="${withval}/apps/openssl" fi if test -n "${rpath_opt}"; then LDFLAGS="-L${libcrypto_path} ${rpath_opt}${libcrypto_path} ${LDFLAGS}" @@ -2715,6 +2712,11 @@ AC_ARG_WITH([ssl-dir], else CPPFLAGS="-I${withval} ${CPPFLAGS}" fi + if test -x "${withval}/bin/openssl"; then + openssl_bin="${withval}/bin/openssl" + elif test -x "${withval}/apps/openssl"; then + openssl_bin="${withval}/apps/openssl" + fi fi ] ) |