--- Makefile.PL.orig 2001-09-19 09:42:17 UTC +++ Makefile.PL @@ -5,31 +5,17 @@ use strict; use ExtUtils::MakeMaker; use Config; -if ((not $ARGV[0]) or (not $ARGV[1])) -{ - print "Usage: perl Makefile.PL \n"; - print "(e.g. 'perl Makefile.PL ../sendmail ../sendmail/obj.FreeBSD.4.0-RELEASE.i386')\n"; - print "\n"; - exit; -} - if (not $Config{usethreads}) { print "To use this module, your perl interpreter must have been compiled with\n"; print "\t-Dusethreads.\n"; print "\n"; - exit; + exit 1; } -my $SENDMAIL_PATH = MM->canonpath($ARGV[0]); -my $SENDMAIL_OBJ_PATH = MM->canonpath($ARGV[1]); +my $MILTER_LIB = "/usr/lib"; +my $MILTER_INCLUDE = "/usr/include/libmilter"; -my $MILTER_LIB = MM->catdir($SENDMAIL_OBJ_PATH, "libmilter"); -my $SMUTIL_LIB = MM->catdir($SENDMAIL_OBJ_PATH, "libsmutil"); -my $SM_LIB = MM->catdir($SENDMAIL_OBJ_PATH, "libsm"); -my $MILTER_INCLUDE = MM->catdir($SENDMAIL_PATH, "include"); -my $SENDMAIL_INCLUDE = MM->catdir($SENDMAIL_PATH, "sendmail"); - sub milter_configure { my $hash_ref = {}; @@ -37,7 +23,7 @@ sub milter_configure my $ccflags; # Standard milter libraries - $libs = "-L$MILTER_LIB -L$SMUTIL_LIB -L$SM_LIB -lmilter -lsmutil -lsm"; + $libs = "-L$MILTER_LIB -lmilter"; # POSIX threads support. if ($Config{libs} =~ /-lpthread/) @@ -82,6 +68,6 @@ WriteMakefile( 'CONFIGURE' => \&milter_configure, 'OBJECT' => '$(BASEEXT)$(OBJ_EXT) intpools$(OBJ_EXT) callbacks$(OBJ_EXT)', 'DEFINE' => '', - 'INC' => "-I$SENDMAIL_INCLUDE -I$MILTER_INCLUDE", + 'INC' => "-I$MILTER_INCLUDE", );