diff --git a/modules/Makefile.in b/modules/Makefile.in index 55c69d18..84cffb56 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -5,7 +5,7 @@ INCLUDES=@INCLUDES@ -I.. LIBS=@LIBS@ PERL=@PERL@ ifneq "$(PERL)" "" -PERLCC=`$(PERL) -MExtUtils::Embed -e ccopts` +PERLCC=-DHAVE_PERL `$(PERL) -MExtUtils::Embed -e ccopts` PERLLD=`$(PERL) -MExtUtils::Embed -e ccopts -e ldopts` endif VPATH=.:.. diff --git a/modules/modperl.cpp b/modules/modperl.cpp index ae56c7cc..01ad026f 100644 --- a/modules/modperl.cpp +++ b/modules/modperl.cpp @@ -1,3 +1,4 @@ +#ifdef HAVE_PERL #include "main.h" #include "User.h" #include "Nick.h" @@ -148,3 +149,5 @@ bool CModPerl::OnLoad( const CString & sArgs ) return( true ); } +#endif /* HAVE_PERL */ +