mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-30 16:17:02 +01:00
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>
This commit is contained in:
parent
25c84ffd10
commit
f2ca727978
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user