1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/net/p5-SNMP/files/patch-aa
James FitzGibbon 1dbc6ad7ab Make this one stop asking questions.
Locked-in-a-room,bound,gagged,and-beaten-up-by: Satoshi
1997-07-02 13:06:58 +00:00

19 lines
796 B
Plaintext

--- Makefile.PL.orig Tue Feb 27 20:35:19 1996
+++ Makefile.PL Wed Jul 2 09:04:10 1997
@@ -17,13 +17,9 @@
my @IncludeFiles = qw[asn1.h parse.h snmp.h snmp_api.h
snmp_client.h snmp_impl.h];
-my @IncludeDirs = qw[/usr/include /usr/local/include];
+my $IncludeDir = find_files(\@IncludeFiles, [ ( "$ENV{PREFIX}/include/snmp" ) ] );
-my $IncludeDir = find_files(\@IncludeFiles,\@IncludeDirs) ||
- prompt("Where are the cmu-snmpv2 include files installed?","/usr/local/include");
-
-my $LibDir = find_files(["libsnmp.a"],[qw[/usr/lib /usr/local/lib]]) ||
- prompt("Where is libsnmp.a installed?","/usr/local/lib");
+my $LibDir = find_files(["libsnmp.a"], [ ( "$ENV{PREFIX}/lib" ) ] );
@IncludeFiles = map {"$IncludeDir/$_";} @IncludeFiles;
$Params{LIBS} = "-L$LibDir -lsnmp";