Skip to content

Commit

Permalink
check for pdf support in leptonica
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Mar 15, 2016
1 parent 2c675dc commit db9e194
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure.ac
Expand Up @@ -438,14 +438,15 @@ do
fi
done
done

if test "$have_lept" = yes ; then
AC_MSG_RESULT(yes)
AC_CHECK_LIB(lept,pixCreate,[], AC_MSG_ERROR([leptonica library missing]))
AC_CHECK_LIB(lept,l_generateCIDataForPdf,[], AC_MSG_ERROR([leptonica library with pdf support (>= 1.71) is missing]))
else
AC_MSG_ERROR([leptonica not found])
fi

AC_MSG_CHECKING([leptonica version >= 1.71])
AC_MSG_CHECKING([leptonica headers version >= 1.71])
AC_PREPROC_IFELSE(
[AC_LANG_PROGRAM([#include "allheaders.h"],
[#if (LIBLEPT_MAJOR_VERSION >= 1) && (LIBLEPT_MINOR_VERSION >= 71)
Expand Down

0 comments on commit db9e194

Please sign in to comment.