Permalink
Browse files

Check ExtUtils::Embed is installed

  • Loading branch information...
1 parent 378acc6 commit f39fe49027bdb075a56d7d09f6b8f687dcb305aa @spiritloose committed Oct 18, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 configure.ac
View
@@ -40,6 +40,10 @@ if test "$PERL" = no; then
fi
AC_SUBST(PERL)
+HAS_EXTUTILS_EMBED=`$PERL -MExtUtils::Embed -e 'print "yes"'`
+if test "$HAS_EXTUTILS_EMBED" != "yes"; then
+ AC_MSG_ERROR([ExtUtils::Embed not found. Please install it.])
+fi
PERL_CCOPTS=`$PERL -MExtUtils::Embed -e ccopts | sed -e 's/-D_FILE_OFFSET_BITS=64//'`
PERL_LDOPTS=`$PERL -MExtUtils::Embed -e ldopts`
AC_SUBST(PERL_CCOPTS)

0 comments on commit f39fe49

Please sign in to comment.