Skip to content

Commit 2d9f022

Browse files
committed
configure: check for perl and perl-FindBin
Perl as well as the perl module FindBin are required to run the IBMCA tests. Check for it during configuration and fail if it is not available. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
1 parent a0e43ee commit 2d9f022

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

configure.ac

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ AC_DISABLE_STATIC
4848
AC_PROG_CC
4949
LT_INIT
5050

51+
dnl --- check for perl
52+
AC_PATH_PROG(PERL, perl)
53+
if test -z "$PERL" ; then
54+
AC_MSG_ERROR([Please install perl])
55+
fi
56+
57+
AC_MSG_CHECKING([if perl module 'FindBin' is installed])
58+
(echo "use FindBin;" ; echo "exit(0);") | $PERL > /dev/null 2>&1
59+
if test $? != 0 ; then
60+
AC_MSG_RESULT(no)
61+
AC_MSG_ERROR([Please install perl-FindBin])
62+
fi
63+
AC_MSG_RESULT(yes)
64+
5165
# Checks for libraries.
5266
AC_CHECK_LIB([crypto], [RAND_add], [], AC_MSG_ERROR([*** openssl >= 1.1.1 is required ***]))
5367
AC_CHECK_LIB([crypto], [OSSL_LIB_CTX_new], [openssl_3_0="yes"], [openssl_3_0="no"])

0 commit comments

Comments
 (0)