1
+ # Generated automatically from Makefile.PL.in by configure.
1
2
# -------------------------------------------------------
2
3
#
3
- # $Id: Makefile.PL,v 1.10 1998/10/16 04:37:38 momjian Exp $
4
+ # $Id: Makefile.PL,v 1.11 1998/10/16 17:00:44 momjian Exp $
4
5
#
5
6
# Copyright (c) 1997, 1998 Edmund Mergl
6
7
#
@@ -10,44 +11,21 @@ use ExtUtils::MakeMaker;
10
11
use Config;
11
12
use strict;
12
13
13
- # This Makefile.PL is intended for standalone use when PostgreSQL is
14
- # already installed. In that case, install the perl module as follows:
15
- #
16
- # setenv POSTGRES_HOME /path/to/root/of/installed/postgres
17
- # perl Makefile.PL
18
- # make
19
- # make test
20
- # make install
21
-
22
- # During normal installation of PostgreSQL, this file will be replaced
23
- # by one derived from Makefile.PL.in so that the installed shared
24
- # library libpq.so will be found during installation of this module.
25
- # As a result, the POSTGRES_HOME environment variable need not be set
26
- # during PostgreSQL installation. Note that ../Makefile takes care of
27
- # the `perl Makefile.PL' command. Note also that it is still possible
28
- # to follow the standalone installation procedure, even after
29
- # configuring and installing PostgreSQL, because the `else'
30
- # conditional branch below is identical in both Makefile.PL and
31
- # Makefile.PL.in.
32
-
33
14
my %opts ;
34
15
35
16
if (! $ENV {POSTGRES_HOME }) {
36
17
37
18
my $cwd = ` pwd` ;
38
19
chop $cwd ;
39
20
40
- print " To install the perl interface for PostgreSQL do the following:\n " ;
41
- print " - install PostgreSQL\n " ;
42
- print " - set the POSTGRES_HOME environment variable appropriately\n " ;
43
- print " - in this directory ($cwd ):\n " ;
44
- print " perl Makefile.PL\n " ;
45
- print " make\n " ;
46
- print " make test [ with a postmaster running ]\n " ;
47
- print " make install\n " ;
21
+ %opts = (
22
+ NAME => ' Pg' ,
23
+ VERSION_FROM => ' Pg.pm' ,
24
+ INC => " -I$cwd /../libpq -I$cwd /../../include" ,
25
+ OBJECT => " Pg\$ (OBJ_EXT)" ,
26
+ LIBS => [" -L/usr/local/pgsql/lib -L$cwd /../libpq -lpq" ],
27
+ );
48
28
49
- exit (1);
50
-
51
29
} else {
52
30
53
31
%opts = (
0 commit comments