aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-10-16 05:58:22 +0000
committerBruce Momjian <bruce@momjian.us>1998-10-16 05:58:22 +0000
commit9f69aa083159481e54632b3a9aa786a256a773db (patch)
treecdef9a43fab8dec70dc42ce0275ee017129285e9 /src
parent7483856772e8f5ce67c4ca5856c21747e287b80f (diff)
downloadpostgresql-9f69aa083159481e54632b3a9aa786a256a773db.tar.gz
postgresql-9f69aa083159481e54632b3a9aa786a256a773db.zip
add missing file for perl.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/perl5/Makefile.PL.in44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/interfaces/perl5/Makefile.PL.in b/src/interfaces/perl5/Makefile.PL.in
new file mode 100644
index 00000000000..115203ede33
--- /dev/null
+++ b/src/interfaces/perl5/Makefile.PL.in
@@ -0,0 +1,44 @@
+#-------------------------------------------------------
+#
+# $Id: Makefile.PL.in,v 1.1 1998/10/16 05:58:22 momjian Exp $
+#
+# Copyright (c) 1997, 1998 Edmund Mergl
+#
+#-------------------------------------------------------
+
+use ExtUtils::MakeMaker;
+use Config;
+use strict;
+
+my %opts;
+
+if (! $ENV{POSTGRES_HOME}) {
+
+ my $cwd = `pwd`;
+ chop $cwd;
+
+ %opts = (
+ NAME => 'Pg',
+ VERSION_FROM => 'Pg.pm',
+ INC => "-I$cwd/../libpq -I$cwd/../../include",
+ OBJECT => "Pg\$(OBJ_EXT)",
+ LIBS => ["-L@prefix@/lib -L$cwd/../libpq -lpq"],
+ );
+
+} else {
+
+ %opts = (
+ NAME => 'Pg',
+ VERSION_FROM => 'Pg.pm',
+ INC => "-I$ENV{POSTGRES_HOME}/include",
+ OBJECT => "Pg\$(OBJ_EXT)",
+ LIBS => ["-L$ENV{POSTGRES_HOME}/lib -lpq"],
+ );
+}
+
+
+WriteMakefile(%opts);
+
+exit(0);
+
+# end of Makefile.PL