summaryrefslogtreecommitdiffstats
path: root/kooka/configure.in.in
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit47d455dd55be855e4cc691c32f687f723d9247ee (patch)
tree52e236aaa2576bdb3840ebede26619692fed6d7d /kooka/configure.in.in
downloadtdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz
tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kooka/configure.in.in')
-rw-r--r--kooka/configure.in.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/kooka/configure.in.in b/kooka/configure.in.in
new file mode 100644
index 00000000..df590f5d
--- /dev/null
+++ b/kooka/configure.in.in
@@ -0,0 +1,33 @@
+dnl AC_SEARCH_LIBS(pgm2asc,Pgm2asc)
+dnl AC_CHECK_LIB(Pgm2asc,pgm2asc)
+dnl should define HAVE_LIBPGM2ASC if available
+
+AC_ARG_WITH([kadmos],
+ [AC_HELP_STRING([--with-kadmos],
+ [Enable the kadmos OCR engine @<:@default=check@:>@])],
+ [], with_kadmos=check)
+
+AC_ARG_WITH([kadmos-dir],
+ AC_HELP_STRING([--with-kadmos-dir],
+ [sets the path to the kadmos engine @<:@default=/usr/local@:>@]),
+ [ac_kadmos_value=$withval], [ac_kadmos_value=/usr/local])
+
+KADMOS_INC=
+KADMOS_LIB=
+
+if test "x$with_kadmos" != xno; then
+ if test -r "$ac_kadmos_value/kadmos.h"; then
+ KADMOS_INC="-I$ac_kadmos_value"
+ KADMOS_LIB="$ac_kadmos_value/librep.a"
+ AC_DEFINE_UNQUOTED(HAVE_KADMOS, 1, [Defines if your system has the kadmos libraries])
+ else
+ AC_MSG_WARN([couldn't find kadmos engine header file under $ac_kadmos_value/kadmos.h])
+ fi
+
+ if test "x$with_kadmos" != xcheck && test -z "$KADMOS_LIB"; then
+ AC_MSG_ERROR([--with-kadmos was given, but test for kadmos failed])
+ fi
+fi
+
+AC_SUBST(KADMOS_LIB)
+AC_SUBST(KADMOS_INC)