|
Removed
Link Here
|
| 1 |
--- Makefile.PL.orig Mon Jun 7 19:59:14 1999 |
| 2 |
+++ Makefile.PL Thu May 10 06:53:52 2001 |
| 3 |
@@ -1,45 +1,10 @@ |
| 4 |
use ExtUtils::MakeMaker; |
| 5 |
|
| 6 |
-if (shift(@ARGV) =~ /CCLIENT_DIR=(.*)/) { |
| 7 |
- $CCLIENT_DIR = $1; |
| 8 |
-} else { |
| 9 |
- die "You need to specify the CCLIENT_DIR directory--read README\n"; |
| 10 |
-} |
| 11 |
- |
| 12 |
-if (! -r "$CCLIENT_DIR/c-client.a") { |
| 13 |
- die "CCLIENT_DIR $CCLIENT_DIR does not contain c-client.a\n"; |
| 14 |
-} |
| 15 |
-# |
| 16 |
-# We want to turn Cclient.o (ours) plus the object files in the |
| 17 |
-# $CCLIENT_DIR/c-client.a archive into a shared object. Simply |
| 18 |
-# including both in the MakeMaker OBJECT list works fine for Linux |
| 19 |
-# but under Digital UNIX, the combination of its ar and "ld -shared" |
| 20 |
-# can't cope with simply "ar cr tmp.a Cclient.o .../c-client.a". |
| 21 |
-# To get around that look at the contents of the c-client.a archive |
| 22 |
-# and extract all .o files from it into the current directory. Then |
| 23 |
-# we set OBJECT to be our Cclient.o plus all of those. Blech. |
| 24 |
-# |
| 25 |
- |
| 26 |
-print "Examining archive file $CCLIENT_DIR/c-client.a...\n"; |
| 27 |
-chomp(@contents = `ar t $CCLIENT_DIR/c-client.a`); |
| 28 |
-@objects = grep(/\.o$/, @contents); |
| 29 |
-print "Extracting object files from archive: ", join(", ", @objects), "\n"; |
| 30 |
-system("ar", "x", "$CCLIENT_DIR/c-client.a", @objects); |
| 31 |
-my $err = $? >> 8; |
| 32 |
-if ($err) { |
| 33 |
- print "Extraction failed: ar returned exit code $err\n", |
| 34 |
- "Please extract them manually into the current directory\n", |
| 35 |
- "edit Makefile.PL to remove this section of code and then rerun\n", |
| 36 |
- " perl Makefile.PL\n"; |
| 37 |
- exit 1; |
| 38 |
-} |
| 39 |
-print "Extraction was apparently successful\n"; |
| 40 |
- |
| 41 |
WriteMakefile( |
| 42 |
NAME => "Mail::Cclient", |
| 43 |
VERSION_FROM => "Cclient.pm", |
| 44 |
- INC => "-I$CCLIENT_DIR", |
| 45 |
- LIBS => ["-lc"], |
| 46 |
- OBJECT => "Cclient.o @objects" |
| 47 |
+ INC => "-I\${PREFIX}/include/c-client", |
| 48 |
+ LIBS => "-L\${PREFIX}/lib -lc-client4", |
| 49 |
+ OBJECT => "Cclient.o" |
| 50 |
); |
| 51 |
|