Commit b17a92f5 authored by Marc G. Fournier's avatar Marc G. Fournier

Add a 'build' script. All it currently does is prompts the user for additional 'lib'

directories to search to find libraries, and then runs ./configure directly
parent b8ddf442
#!/bin/sh
#
# PostgreSQL Build Script
#
if echo '\c' | grep -s c >/dev/null 2>&1
then
ECHO_N="echo -n"
ECHO_C=""
else
ECHO_N="echo"
ECHO_C='\c'
fi
$ECHO_N "Additional directories to search for library files []: $ECHO_C"
read a
if [ "$a." = "." ]
then
ADD_LIB_DIRS=
else
ADD_LIB_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
LDFLAGS=$ADD_LIB_DIRS
export LDFLAGS
fi
./configure
This diff is collapsed.
...@@ -103,12 +103,7 @@ AC_PATH_PROG(xargs, xargs) ...@@ -103,12 +103,7 @@ AC_PATH_PROG(xargs, xargs)
AC_PATH_PROG(ipcs, ipcs) AC_PATH_PROG(ipcs, ipcs)
AC_PATH_PROG(ipcrm, ipcrm) AC_PATH_PROG(ipcrm, ipcrm)
dnl Checks for libraries. AC_CHECK_LIB(tk41, main)
dnl readline (used in psql if present)
dnl if the library readline is present,
dnl set the shell variable USE_READLINE
dnl to have the value USE_READLINE=true
dnl and substitute it into the makefiles
AC_CHECK_LIB(readline, main) AC_CHECK_LIB(readline, main)
AC_CHECK_LIB(readline, write_history, AC_DEFINE(HAVE_HISTORY)) AC_CHECK_LIB(readline, write_history, AC_DEFINE(HAVE_HISTORY))
AC_CHECK_LIB(history, main) AC_CHECK_LIB(history, main)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment