#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.18 1997/04/04 10:38:23 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.19 1997/04/04 11:21:39 scrappy Exp $
#
# NOTES
# Essentially all Postgres make files include this file and use the
X11_LIBDIR= /usr/lib
X11_LIB= -lX11 @SOCKET_LIB@ @NSL_LIB@
-##############################################################################
-#
-# YACC
-
-YFLAGS= -d
##############################################################################
#
# See the subdirectory template for default settings for these
#-------------------------------------------------------------
CC= @CC@
+YFLAGS= @YFLAGS@
+YACC= @YACC@
LEX= @LEX@
AROPT= @AROPT@
CFLAGS= @CPPFLAGS@ @CFLAGS@
ifeq ($(PORTNAME), dgux)
%.so: %.o
$(CC) -shared -o $@ $<
-
-YACC= bison -y
-
endif
#----------------------------------------------------------------------------
#--------------------------------------------------------------------------
ifeq ($(PORTNAME), i386_solaris)
-# cc won't work!
-
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
-
endif
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
ifeq ($(PORTNAME), sparc_solaris)
-
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<
-
endif
#-----------------------------------------------------------------------------
ifeq ($(PORTNAME), svr4)
-YACC= bison -y
-
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
MAKE_EXPORTS= true
# The univel port is almost guaranteed NOT to work yet.
#
ifeq ($(PORTNAME), univel)
-YACC= bison -y
-
# MAKE_EXPORTS is required for svr4 loaders that want a file of
# symbol names to tell them what to export/import.
#MAKE_EXPORTS= true
# The above allows any user on the local system to connect to any database
# under any username.
-host template1 192.168.0.0 255.255.255.0 ident sameuser
+#host template1 192.168.0.0 255.255.255.0 ident sameuser
# The above allows any user from any host with IP address 192.168.0.x to
# connect to database template1 as the same username that ident on that host
USE_LOCALE=`grep USE_LOCALE $TEMPLATE | awk -F: '{print $2}'`
DLSUFFIX=`grep DLSUFFIX $TEMPLATE | awk -F: '{print $2}'`
DL_LIB=`grep DL_LIB $TEMPLATE | awk -F: '{print $2}'`
+ YACC=`grep YACC $TEMPLATE | awk -F: '{print $2}'`
+ YFLAGS=`grep YFLAGS $TEMPLATE | awk -F: '{print $2}'`
fi
$ECHO_N "Additional directories to search for .h files [$SRCH_INC]: $ECHO_C"
IDIR=${a}
fi
+echo ""
echo "Define USE_LOCALE to get Postgres work (sort, search)"
$ECHO_N "with national alphabet. [$USE_LOCALE]: $ECHO_C"
read a
NOHBA=${a}
fi
-export BUILDRUN USE_LOCALE DEF_PGPORT NOHBA AROPT DLSUFFIX DL_LIB
-export SHARED_LIB CFLAGS CPPFLAGS LDFLAGS
+export BUILDRUN USE_LOCALE DEF_PGPORT NOHBA AROPT DLSUFFIX DL_LIB YACC
+export SHARED_LIB CFLAGS CPPFLAGS LDFLAGS YFLAGS
./configure --prefix=${IDIR}