X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=1f8a1844dd81819ab0e80c7e395f9565fba95379;hb=93b356b38f66c378cf9e6c7d9ae362ed8a0b48ec;hp=1455dea64679694400afe5989690361e9247e998;hpb=0734be534387039b2e46b9dfc062ca5ed0802057;p=techtalk-pse.git diff --git a/configure.ac b/configure.ac index 1455dea..1f8a184 100644 --- a/configure.ac +++ b/configure.ac @@ -26,5 +26,22 @@ AC_CHECK_PROG([POD2TEXT],[pod2text],[pod2text],[no]) test "x$POD2TEXT" = "xno" && AC_MSG_ERROR([pod2text must be installed]) +dnl Check for required Perl modules. +missing_perl_modules=no +for pm in Pod::Usage Getopt::Long Glib Gtk2 Gtk2::MozEmbed; do + AC_MSG_CHECKING([for $pm]) + if ! perl -M$pm -e1 >/dev/null 2>&1; then + AC_MSG_RESULT([no]) + missing_perl_modules=yes + else + AC_MSG_RESULT([yes]) + fi +done +if test "x$missing_perl_modules" = "xyes"; then + AC_MSG_FAILURE([some Perl modules required to run the program are missing]) +fi + +AC_CONFIG_FILES([techtalk-pse:techtalk-pse.pl], + [chmod 0555 techtalk-pse]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT