summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorPeter Eisentraut2000-06-17 00:10:40 +0000
committerPeter Eisentraut2000-06-17 00:10:40 +0000
commit1652d433582dc819746ba166a6dbdb9e9643e69a (patch)
tree132c0b4ef005551c728cb331a2486bb3b0dfa472 /src/interfaces
parentb36d31030be202830cc21e29ec2fd3aaedbc1ea3 (diff)
Remove fmgrstamp-h business -- not needed and confusing
Add options to configure to automatically build for Kerberos support; no more editing of make files.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/lib/Makefile.in5
-rw-r--r--src/interfaces/libpgeasy/Makefile.in6
-rw-r--r--src/interfaces/libpgtcl/Makefile.in6
-rw-r--r--src/interfaces/libpq++/Makefile.in8
-rw-r--r--src/interfaces/libpq++/examples/Makefile8
-rw-r--r--src/interfaces/libpq/Makefile.in11
-rw-r--r--src/interfaces/libpq/fe-auth.c10
7 files changed, 15 insertions, 39 deletions
diff --git a/src/interfaces/ecpg/lib/Makefile.in b/src/interfaces/ecpg/lib/Makefile.in
index e0eb3a94f3..b0fbf2d9a9 100644
--- a/src/interfaces/ecpg/lib/Makefile.in
+++ b/src/interfaces/ecpg/lib/Makefile.in
@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.67 2000/06/06 22:00:52 petere Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.68 2000/06/17 00:09:59 petere Exp $
#
#-------------------------------------------------------------------------
@@ -19,9 +19,6 @@ include $(SRCDIR)/Makefile.global
CFLAGS+= -I../include -I$(LIBPQDIR)
-ifdef KRBVERS
-CFLAGS+= $(KRBFLAGS)
-endif
OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
connect.o misc.o
diff --git a/src/interfaces/libpgeasy/Makefile.in b/src/interfaces/libpgeasy/Makefile.in
index dee016378b..6e49dc3626 100644
--- a/src/interfaces/libpgeasy/Makefile.in
+++ b/src/interfaces/libpgeasy/Makefile.in
@@ -4,7 +4,7 @@
# Makefile for pgeasy library
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/interfaces/libpgeasy/Attic/Makefile.in,v 1.7 2000/06/06 22:00:53 petere Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/libpgeasy/Attic/Makefile.in,v 1.8 2000/06/17 00:10:00 petere Exp $
#
#-------------------------------------------------------------------------
@@ -17,10 +17,6 @@ include $(SRCDIR)/Makefile.global
CFLAGS+= -I$(LIBPQDIR)
-ifdef KRBVERS
-CFLAGS+= $(KRBFLAGS)
-endif
-
OBJS= libpgeasy.o halt.o
SHLIB_LINK+= $(LIBPQ)
diff --git a/src/interfaces/libpgtcl/Makefile.in b/src/interfaces/libpgtcl/Makefile.in
index 2b25f22219..1a7bcf8e80 100644
--- a/src/interfaces/libpgtcl/Makefile.in
+++ b/src/interfaces/libpgtcl/Makefile.in
@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.43 2000/06/14 17:07:31 momjian Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.44 2000/06/17 00:10:05 petere Exp $
#
#-------------------------------------------------------------------------
@@ -19,10 +19,6 @@ include $(SRCDIR)/Makefile.global
CFLAGS+= -I$(LIBPQDIR)
-ifdef KRBVERS
-CFLAGS+= $(KRBFLAGS)
-endif
-
OBJS= pgtcl.o pgtclCmds.o pgtclId.o
SHLIB_LINK+= $(LIBPQ)
diff --git a/src/interfaces/libpq++/Makefile.in b/src/interfaces/libpq++/Makefile.in
index c0ee103f11..d7f0402504 100644
--- a/src/interfaces/libpq++/Makefile.in
+++ b/src/interfaces/libpq++/Makefile.in
@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.26 2000/06/06 22:01:06 petere Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile.in,v 1.27 2000/06/17 00:10:17 petere Exp $
#
#-------------------------------------------------------------------------
@@ -18,17 +18,13 @@ SRCDIR= ../..
include $(SRCDIR)/Makefile.global
CXX=@CXX@
-CXXFLAGS=@CXXFLAGS@
+CXXFLAGS=@CXXFLAGS@ @INCLUDES@
SRCHEADERDIR = $(SRCDIR)/include
LIBPQHEADERDIR = $(SRCHEADERDIR)/libpq
CXXFLAGS+= -I$(SRCHEADERDIR) -I$(LIBPQDIR)
-ifdef KRBVERS
-CXXFLAGS+= $(KRBFLAGS)
-endif
-
OBJS = pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o
ifeq ($(PORTNAME), win)
diff --git a/src/interfaces/libpq++/examples/Makefile b/src/interfaces/libpq++/examples/Makefile
index b30588e4c9..c6ce50f8c6 100644
--- a/src/interfaces/libpq++/examples/Makefile
+++ b/src/interfaces/libpq++/examples/Makefile
@@ -19,14 +19,6 @@ CXXFLAGS+= -I$(HEADERDIR)
LDFLAGS+= -L$(LIBPQDIR) -lpq++
-#
-# And where libpq goes, so goes the authentication stuff...
-#
-ifdef KRBVERS
-LDFLAGS+= $(KRBLIBS)
-CXXFLAGS+= $(KRBFLAGS)
-endif
-
PROGS= testlibpq0 testlibpq1 testlibpq2 testlibpq3 \
testlibpq4 testlibpq5 testlibpq6 testlo
diff --git a/src/interfaces/libpq/Makefile.in b/src/interfaces/libpq/Makefile.in
index a5675bd5e0..7b5bb61adc 100644
--- a/src/interfaces/libpq/Makefile.in
+++ b/src/interfaces/libpq/Makefile.in
@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.59 2000/06/06 22:01:03 petere Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.60 2000/06/17 00:10:09 petere Exp $
#
#-------------------------------------------------------------------------
@@ -19,11 +19,6 @@ include $(SRCDIR)/Makefile.global
CFLAGS+= -DFRONTEND
-ifdef KRBVERS
-CFLAGS+= $(KRBFLAGS)
-SHLIB_LINK += $(KRBLIBS)
-endif
-
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
pqexpbuffer.o dllist.o pqsignal.o @SNPRINTF@ @INET_ATON@
@@ -35,6 +30,10 @@ endif
# make sure it gets included in shared libpq.
SHLIB_LINK+= $(findstring -lcrypt,$(LIBS))
+# Include kerberos libraries into libpq
+SHLIB_LINK += $(KRB_LIBS)
+
+
# Shared library stuff, also default 'all' target
include $(SRCDIR)/Makefile.shlib
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c
index 8cb9a889ad..e0f1bd7533 100644
--- a/src/interfaces/libpq/fe-auth.c
+++ b/src/interfaces/libpq/fe-auth.c
@@ -10,7 +10,7 @@
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.42 2000/05/27 04:13:05 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.43 2000/06/17 00:10:09 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -119,7 +119,7 @@ static void
pg_krb4_init()
{
char *realm;
- static init_done = 0;
+ static int init_done = 0;
if (init_done)
return;
@@ -129,7 +129,7 @@ pg_krb4_init()
* If the user set PGREALM, then we use a ticket file with a special
* name: <usual-ticket-file-name>@<PGREALM-value>
*/
- if (realm = getenv("PGREALM"))
+ if ((realm = getenv("PGREALM")))
{
char tktbuf[MAXPGPATH];
@@ -184,7 +184,7 @@ pg_krb4_authname(char *PQerrormsg)
* (canonicalized to omit all domain suffixes).
*/
static int
-pg_krb4_sendauth(const char *PQerrormsg, int sock,
+pg_krb4_sendauth(char *PQerrormsg, int sock,
struct sockaddr_in * laddr,
struct sockaddr_in * raddr,
const char *hostname)
@@ -213,7 +213,7 @@ pg_krb4_sendauth(const char *PQerrormsg, int sock,
(u_long) 0,
(MSG_DAT *) NULL,
(CREDENTIALS *) NULL,
- (Key_schedule *) NULL,
+ NULL,
laddr,
raddr,
PG_KRB4_VERSION);