summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in
index f91fc97..ad74532 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -78,6 +78,25 @@ CXXFLAGS="$cxx_flags_safe"
CFLAGS="$cflags_safe"
AC_LANG_RESTORE
+dnl Check bibletime API version
+AC_LANG_SAVE
+AC_LANG_CPLUSPLUS
+cxx_flags_safe="$CXXFLAGS"
+cflags_safe="$CFLAGS"
+CXXFLAGS="$CXXFLAGS -I$ac_cv_sword_incdir"
+CFLAGS="$CFLAGS -I$ac_cv_sword_incdir"
+AC_MSG_CHECKING([if Sword provides API 1.7.x])
+AC_TRY_COMPILE([#include <versekey.h>
+static sword::VerseKey staticKey;
+sword::VerseKey keyBound;
+],[keyBound = staticKey.getUpperBound();],
+[AC_MSG_RESULT(yes)
+AC_DEFINE(SWORD_API_1_7,1,[Defined if sword api is 1.7.x or newer])],
+AC_MSG_RESULT(no))
+CXXFLAGS="$cxx_flags_safe"
+CFLAGS="$cflags_safe"
+AC_LANG_RESTORE
+
dnl add here all your Makefiles. They are created by configure
AC_CONFIG_FILES([ README ])