diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-03-26 06:54:01 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-03-26 06:54:01 +0000 |
commit | 17c43214113c71f405ab85945925b7e210c54ed7 (patch) | |
tree | 6d8540e18f2433fb5fce9d4e9ba8c1c2056f39ce /src | |
parent | 7cbe19384fcdab8c0203224a53d60e91f844b165 (diff) |
Add ability to change installation directory in build, prior to configure
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.global.in | 4 | ||||
-rw-r--r-- | src/build | 11 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in index edaa3f94f3b..bb21d7d38c3 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.13 1997/03/25 07:16:30 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.14 1997/03/26 06:53:57 scrappy Exp $ # # NOTES # Essentially all Postgres make files include this file and use the @@ -82,7 +82,7 @@ LIBPQDIR:= $(SRCDIR)/libpq # For convenience, POSTGRESDIR is where BINDIR, and LIBDIR # and other target destinations are rooted. Of course, each of these is # changable separately. -POSTGRESDIR= /usr/local/pgsql +POSTGRESDIR= @prefix@ # Where the postgres executables live (changeable by just putting them # somewhere else and putting that directory in your shell PATH) diff --git a/src/build b/src/build index e68deaea8ff..b934369d42a 100644 --- a/src/build +++ b/src/build @@ -30,5 +30,14 @@ then LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS fi -./configure +$ECHO_N "Installation directory [/usr/local/pgsql]: $ECHO_C" +read a +if [ "$a." != "." ] +then + IDIR=${a} +else + IDIR=/usr/local/pgsql +fi + +./configure --prefix=${IDIR} |