| 1 |
dnl |
| 2 |
dnl perl and some of its module are required to build some headers |
| 3 |
dnl |
| 4 |
|
| 5 |
AC_DEFUN([AC_KRB_PROG_PERL], |
| 6 |
[AC_CHECK_PROGS(PERL, perl, perl) |
| 7 |
if test "$PERL" = ""; then |
| 8 |
AC_MSG_ERROR([perl not found - Cannot build Heimdal without perl]) |
| 9 |
fi |
| 10 |
]) |
| 11 |
|
| 12 |
AC_DEFUN([AC_KRB_PERL_MOD], |
| 13 |
[ |
| 14 |
AC_MSG_CHECKING([for Perl5 module $1]) |
| 15 |
if ! $PERL -M$1 -e 'exit(0);' >/dev/null 2>&1; then |
| 16 |
AC_MSG_RESULT([no]) |
| 17 |
AC_MSG_ERROR([perl module $1 not found - Cannot build Heimdal without perl module $1]) |
| 18 |
else |
| 19 |
AC_MSG_RESULT([yes]) |
| 20 |
fi |
| 21 |
]) |