-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autoconf detection of Perl5 and Perl5 modules
Add m4 macros for checking for perl modules (JSON) Fix #74, #29. Signed-off-by: Nico Williams <nico@twosigma.com>
- Loading branch information
1 parent
7b6bf87
commit 298ee93
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters