mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-10 17:09:30 +02:00
35 lines
749 B
Bash
35 lines
749 B
Bash
#!/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 .h files []: $ECHO_C"
|
|
read a
|
|
if [ "$a." = "." ]
|
|
then
|
|
ADD_INC_DIRS=
|
|
else
|
|
ADD_INC_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`
|
|
INC_CFLAGS="$ADD_INC_DIRS"
|
|
CPPFLAGS="$ADD_INC_DIRS" ; export CPPFLAGS
|
|
fi
|
|
|
|
$ECHO_N "Additional directories to search for library files []: $ECHO_C"
|
|
read a
|
|
if [ "$a." != "." ]
|
|
then
|
|
ADD_LIB_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
|
|
LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
|
|
fi
|
|
|
|
./configure
|
|
|