diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2023-10-03 09:55:02 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2023-10-03 09:55:02 +0200 |
commit | f2ca727978da5b1ed84f97bf37d604e8a4e60091 (patch) | |
tree | d28c1c977ec2590655ea79edc583f408699467b3 /configure.ac | |
parent | tools: Add TPM2DAEMON_SOCK_NAME for --remove-socketdir. (diff) | |
download | gnupg2-f2ca727978da5b1ed84f97bf37d604e8a4e60091.tar.xz gnupg2-f2ca727978da5b1ed84f97bf37d604e8a4e60091.zip |
build: Simplify detecting a TPM emulator.
* configure.ac (TPMSERVER): Don't supply hard-coded path.
(SWTPM, SWTPM_IOCTL, TSSSTARTUP): Likewise.
--
Having hard-coded path has bad side effect; It may not be detected
even if it's available with PATH.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 1729cf4f5..118e588f7 100644 --- a/configure.ac +++ b/configure.ac @@ -1615,10 +1615,10 @@ if test "$build_tpm2d" = "yes"; then if test "$have_libtss" != no; then AC_DEFINE(HAVE_LIBTSS, 1, [Defined if we have TPM2 support library]) # look for a TPM emulator for testing - AC_PATH_PROG(TPMSERVER, tpm_server,,/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss) - AC_PATH_PROG(SWTPM, swtpm,,/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss) - AC_PATH_PROG(SWTPM_IOCTL, swtpm_ioctl,,/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss) - AC_PATH_PROG(TSSSTARTUP, tssstartup,,/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss) + AC_PATH_PROG(TPMSERVER, tpm_server) + AC_PATH_PROG(SWTPM, swtpm) + AC_PATH_PROG(SWTPM_IOCTL, swtpm_ioctl) + AC_PATH_PROG(TSSSTARTUP, tssstartup) fi fi if test "$have_libtss" = no; then |