]> git.proxmox.com Git - swtpm.git/commitdiff
Expect tool is required
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 2 Apr 2015 02:38:24 +0000 (22:38 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 2 Apr 2015 02:39:17 +0000 (22:39 -0400)
Check for the expect tool in configure.
Require the expect tool in the spec file.

configure.ac
dist/swtpm.spec.in

index 8a49fcf71ee66cb8588f0955275267e047bdc486..20ba6b9ee7b25f4abcc4d08db74711d1530ff925 100644 (file)
@@ -270,6 +270,11 @@ fi
 AM_CONDITIONAL([WITH_GNUTLS], [test "x$with_gnutls" == "xyes"])
 AC_SUBST([GNUTLS_LIBS])
 
+AC_PATH_PROG([EXPECT], expect)
+if test "x$EXPECT" == "x"; then
+       AC_MSG_ERROR([expect is required: expect package])
+fi
+
 HARDENING_CFLAGS="-fstack-protector-all -Wstack-protector -pie -fPIE "
 HARDENING_CFLAGS+="-D_FORTIFY_SOURCE=2 -Wl,-z,relro,-z,now"
 AC_SUBST([HARDENING_CFLAGS])
index 5af0ccd0188eb4e301e18a48e341c506da82127b..f5b2397095fdc337e9d3b87c7edf138ab104193f 100644 (file)
@@ -30,7 +30,7 @@ BuildRequires:  libtasn1-devel libtasn1
 BuildRequires:  libtasn1-tools
 %endif
 %endif
-Requires:       fuse
+Requires:       fuse expect
 
 %description
 TPM emulator built on libtpms providing TPM functionality for QEMU VMs