Macros by Category Revision History
Search:

ac_prog_perl_modules

SYNOPSIS

AC_PROG_PERL_MODULES([MODULES], [ACTION-IF-TRUE], [ACTION-IF-FALSE])

DESCRIPTION

Checks to see if the given perl modules are available. If true the shell commands in ACTION-IF-TRUE are executed. If not the shell commands in ACTION-IF-FALSE are run. Note if $PERL is not set (for example by calling AC_CHECK_PROG, or AC_PATH_PROG), AC_CHECK_PROG(PERL, perl, perl) will be run.

Example:

  AC_CHECK_PERL_MODULES(Text::Wrap Net::LDAP, ,
                        AC_MSG_WARN(Need some Perl modules)

SOURCE CODE

http://autoconf-archive.cryp.to/ac_prog_perl_modules.m4

LICENSE

Copyright © 2009 Dean Povey <povey@wedgetail.com>

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.