Skip to content

Commit

Permalink
configure: check for which
Browse files Browse the repository at this point in the history
Don't use type becuase its not supported in Free BSD AFAICT.

Fixes: tpm2-software#785

Signed-off-by: William Roberts <[email protected]>
  • Loading branch information
William Roberts committed Jul 16, 2021
1 parent f0a0b80 commit e0dfb0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ PKG_CHECK_MODULES([TSS2_SYS],[tss2-sys >= 2.4.0])
PKG_CHECK_MODULES([TSS2_MU],[tss2-mu])
PKG_CHECK_MODULES([TSS2_TCTILDR],[tss2-tctildr])
PKG_CHECK_MODULES([TSS2_RC],[tss2-rc])
AC_CHECK_PROG([WHICH], [which], [which])
AC_ARG_VAR([GDBUS_CODEGEN],[The gdbus-codegen executable.])
AC_CHECK_PROG([GDBUS_CODEGEN], [gdbus-codegen], [gdbus-codegen])
AS_IF([test ! -x "$(which $GDBUS_CODEGEN)"],
AS_IF([test ! -x "$(type -p $GDBUS_CODEGEN)"],
[AC_MSG_ERROR([*** gdbus-codegen is required to build tpm2-abrmd])])

# Check OS and set library and compile flags accordingly
Expand Down

0 comments on commit e0dfb0c

Please sign in to comment.