diff options
author | Arun Isaac | 2020-02-18 00:29:33 +0530 |
---|---|---|
committer | Arun Isaac | 2020-02-18 00:29:33 +0530 |
commit | 5f91419a86508125715a306e67fb7f2d3634b7d0 (patch) | |
tree | 3e1908f08b6624863c47ce937fec75313673d267 /configure.ac | |
parent | b2a79064c7fcdcda5f730233a7c5a97e92134943 (diff) | |
download | guile-xapian-5f91419a86508125715a306e67fb7f2d3634b7d0.tar.gz guile-xapian-5f91419a86508125715a306e67fb7f2d3634b7d0.tar.lz guile-xapian-5f91419a86508125715a306e67fb7f2d3634b7d0.zip |
Rerun pkg-config to find xapian include flags for swig.
* configure.ac: Rerun pkg-config to find xapian include flags for
swig. Store result in SWIG_FLAGS.
* Makefile.am: Use SWIG_CFLAGS.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6814e48..2d9139a 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,13 @@ GUILE_PROGS PKG_CHECK_MODULES([XAPIAN], [xapian-core]) PKG_CHECK_MODULES([ZLIB], [zlib]) +dnl pkg-config does not output xapian include flags when the include +dnl path is already in CPATH. See +dnl https://unix.stackexchange.com/questions/362289/why-is-pkg-config-cflags-openssl-returning-nothing-on-rhel-6-8 +dnl But, swig does not use CPATH. So, we need to invoke pkg-config +dnl again forcing it to output all include flags. +AC_SUBST([SWIG_FLAGS], [$(PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --cflags xapian-core)]) + AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) AC_OUTPUT |