File: krb-prog-perl.m4

package info (click to toggle)
heimdal 7.8.git20221117.28daf24%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 37,024 kB
  • sloc: ansic: 363,849; sh: 7,613; javascript: 6,382; makefile: 4,567; perl: 1,936; yacc: 1,786; lex: 732; python: 725; awk: 468; java: 119; asm: 30
file content (21 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dnl
dnl perl and some of its module are required to build some headers
dnl

AC_DEFUN([AC_KRB_PROG_PERL],
[AC_CHECK_PROGS(PERL, perl, perl)
if test "$PERL" = ""; then
  AC_MSG_ERROR([perl not found - Cannot build Heimdal without perl])
fi
])

AC_DEFUN([AC_KRB_PERL_MOD],
[
AC_MSG_CHECKING([for Perl5 module $1])
if ! $PERL -M$1 -e 'exit(0);' >/dev/null 2>&1; then
  AC_MSG_RESULT([no])
  AC_MSG_ERROR([perl module $1 not found - Cannot build Heimdal without perl module $1])
else
  AC_MSG_RESULT([yes])
fi
])