comparison acinclude.m4 @ 7201:35f92559a4a1

[gaim-migrate @ 7770] Forgot this. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 09 Oct 2003 00:16:59 +0000
parents 27354602734d
children f15fcdbecf0a
comparison
equal deleted inserted replaced
7200:2ddd145c9420 7201:35f92559a4a1
747 if test $mb_cv_var_daylight = yes; then 747 if test $mb_cv_var_daylight = yes; then
748 AC_DEFINE([HAVE_DAYLIGHT], 1, 748 AC_DEFINE([HAVE_DAYLIGHT], 1,
749 [Define if you have the external 'daylight' variable.]) 749 [Define if you have the external 'daylight' variable.])
750 fi 750 fi
751 ]) 751 ])
752
753 dnl Available from the GNU Autoconf Macro Archive at:
754 dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_prog_perl_modules.html
755 dnl
756 AC_DEFUN([AC_PROG_PERL_MODULES],[dnl
757 ac_perl_modules="$1"
758 # Make sure we have perl
759 if test -z "$PERL"; then
760 AC_CHECK_PROG(PERL,perl,perl)
761 fi
762
763 if test "x$PERL" != x; then
764 ac_perl_modules_failed=0
765 for ac_perl_module in $ac_perl_modules; do
766 AC_MSG_CHECKING(for perl module $ac_perl_module)
767
768 # Would be nice to log result here, but can't rely on autoconf internals
769 $PERL "-M$ac_perl_module" -e exit > /dev/null 2>&1
770 if test $? -ne 0; then
771 AC_MSG_RESULT(no);
772 ac_perl_modules_failed=1
773 else
774 AC_MSG_RESULT(ok);
775 fi
776 done
777
778 # Run optional shell commands
779 if test "$ac_perl_modules_failed" = 0; then
780 :
781 $2
782 else
783 :
784 $3
785 fi
786 else
787 AC_MSG_WARN(could not find perl)
788 fi])dnl