Skip to content
Snippets Groups Projects
Commit 73f26fd3 authored by Malcolm Davenport's avatar Malcolm Davenport
Browse files

Fix for cdr_pgsql for Debian per Bug #609

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent ee480fec
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment