summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-02-20 17:50:55 -0600
committerDavid Barksdale <amatus@amat.us>2017-02-20 17:50:55 -0600
commit24b8e62f2ed410ad5320f7cd1cace020fbaeb179 (patch)
treedb92fbd43b96f84e455a6374b301f5628d27a046
parent39e6893e4b3bc527b00b684ef804661c4b6588f2 (diff)
downloadgnunet-24b8e62f2ed410ad5320f7cd1cace020fbaeb179.tar.gz
gnunet-24b8e62f2ed410ad5320f7cd1cace020fbaeb179.zip
Don't put POSTGRESQL_CPPFLAGS in CFLAGS
-rw-r--r--configure.ac4
-rw-r--r--src/psycstore/Makefile.am5
2 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index dc9eabbc4..b31d0a6c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -811,13 +811,15 @@ AM_CONDITIONAL(HAVE_SQLITE, test x$sqlite = xtrue)
811AC_SUBST(SQLITE_CPPFLAGS) 811AC_SUBST(SQLITE_CPPFLAGS)
812AC_SUBST(SQLITE_LDFLAGS) 812AC_SUBST(SQLITE_LDFLAGS)
813 813
814LDFLAGS=$SAVE_LDFLAGS
815CPPFLAGS=$SAVE_CPPFLAGS
816
814# test for postgres 817# test for postgres
815postgres=false 818postgres=false
816# even running the check for postgres breaks emscripten ... 819# even running the check for postgres breaks emscripten ...
817if test "$taler_only" != yes; then 820if test "$taler_only" != yes; then
818 AX_LIB_POSTGRESQL([]) 821 AX_LIB_POSTGRESQL([])
819 if test "$found_postgresql" = "yes"; then 822 if test "$found_postgresql" = "yes"; then
820 CFLAGS="$CFLAGS $POSTGRESQL_CPPFLAGS"
821 CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS" 823 CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
822 AC_CHECK_HEADERS([libpq-fe.h], 824 AC_CHECK_HEADERS([libpq-fe.h],
823 postgres=true) 825 postgres=true)
diff --git a/src/psycstore/Makefile.am b/src/psycstore/Makefile.am
index 07c019e1d..a342c06e6 100644
--- a/src/psycstore/Makefile.am
+++ b/src/psycstore/Makefile.am
@@ -94,7 +94,10 @@ libgnunet_plugin_psycstore_postgres_la_LIBADD = \
94 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \ 94 $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lpq \
95 $(LTLIBINTL) 95 $(LTLIBINTL)
96libgnunet_plugin_psycstore_postgres_la_LDFLAGS = \ 96libgnunet_plugin_psycstore_postgres_la_LDFLAGS = \
97 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS) 97 $(GN_PLUGIN_LDFLAGS) $(POSTGRESQL_LDFLAGS)
98libgnunet_plugin_psycstore_postgres_la_CPPFLAGS = \
99 $(POSTGRESQL_CPPFLAGS) $(AM_CPPFLAGS)
100
98 101
99libgnunet_plugin_psycstore_sqlite_la_SOURCES = \ 102libgnunet_plugin_psycstore_sqlite_la_SOURCES = \
100 plugin_psycstore_sqlite.c 103 plugin_psycstore_sqlite.c