aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authormalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-07 23:48:22 +0000
committermalcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b>2004-01-07 23:48:22 +0000
commita4095fe5e0980c428927cac9cf41d217093e9473 (patch)
tree1db4028bac65384fb07364312ad23dedacecd037 /cdr
parentf922e85278257b815d2081100ab4d5255496b327 (diff)
Fix for cdr_pgsql for Debian per Bug #609
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1899 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rwxr-xr-xcdr/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdr/Makefile b/cdr/Makefile
index fb5f48281..7ffbbd707 100755
--- a/cdr/Makefile
+++ b/cdr/Makefile
@@ -11,7 +11,7 @@
# the GNU General Public License
#
-MODS=cdr_csv.so
+MODS=cdr_csv.so cdr_pgsql.so
CFLAGS+=-fPIC
@@ -27,6 +27,7 @@ MODS+=$(shell if [ -f "/usr/local/include/odbcinst.h" ]; then echo "cdr_odbc.so"
MODS+=$(shell if [ -d /usr/local/pgsql/include ] || [ -d /usr/include/pgsql ] || [ -d /usr/local/include/pgsql ] || [ -d /opt/pgsql/include ] || [ -f /usr/include/libpq-fe.h ] ; then echo "cdr_pgsql.so"; fi)
CFLAGS+=$(shell if [ -d /usr/local/pgsql/include ]; then echo "-I/usr/local/pgsql/include"; fi)
CFLAGS+=$(shell if [ -d /usr/include/pgsql ]; then echo "-I/usr/include/pgsql"; fi)
+CFLAGS+=$(shell if [ -d /usr/include/postgresql ]; then echo "-I/usr/include/postgresql"; fi)
CFLAGS+=$(shell if [ -d /usr/local/include/pgsql ]; then echo "-I/usr/local/include/pgsql"; fi)
CFLAGS+=$(shell if [ -d /opt/pgsql/include ]; then echo "-I/opt/pgsql/include"; fi)
CFLAGS+=$(shell if [ -f /usr/include/libpq-fe.h ]; then echo "-I/usr/include"; fi)