summaryrefslogtreecommitdiff
path: root/graphics/ocropus/files/patch-configure.ac
blob: a0d4abb730db428d08b61a8e053b55cf4464c2ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- ./configure.ac.orig	2009-06-01 05:18:41.000000000 +0900
+++ ./configure.ac	2010-02-02 21:28:54.000000000 +0900
@@ -115,13 +115,20 @@
 
 AC_LANG_CPLUSPLUS
 
+# Unconditional AC_CHECK_LIB should be done before conditional ones.
+# --- libpthread (needed by tesseract) ---
+AC_CHECK_LIB(pthread, pthread_create,,)
+
 # --- iulib (required) ---
 # NB: we can only use functions with C linkage here
 AC_CHECK_LIB(iulib, exit,,
-    AC_MSG_ERROR([no iulib; please install iulib first (see INSTALL)]))
-
-# --- libpthread (needed by tesseract) ---
-AC_CHECK_LIB(pthread, pthread_create,,)
+    AC_CHECK_LIB([avcodec], [avcodec_open], ,
+        [AC_MSG_ERROR([no iulib; please install iulib first (see INSTALL)])])
+    AC_CHECK_LIB([avformat], [url_fopen], ,
+        [AC_MSG_ERROR([no iulib; please install iulib first (see INSTALL)])])
+    AC_CHECK_LIB([iulib], [sleep], ,
+        [AC_MSG_ERROR([no iulib; please install iulib first (see INSTALL)])])
+)
 
 # --- libtesseract (ahouls become optional) ---
 if test x$notesseract != x1; then
@@ -176,14 +183,14 @@
     LDFLAGS="$LDFLAGS -L$leptheaders/../../lib"
     AC_CHECK_LIB(lept,pixCreate,,AC_MSG_ERROR([leptonica not found! Choose --without-leptonica if you don't want to use it.]))
 fi
-AM_CONDITIONAL([use_leptonica], [test x$use_leptonica == xyes])
+AM_CONDITIONAL([use_leptonica], [test x$use_leptonica = xyes])
 
 # --- GSL (optional for glinerec) ---
-AC_SUBST(use_gsl, "yes")
+AC_SUBST(use_gsl, "no")
 AC_CHECK_LIB(gslcblas, abort,,AC_SUBST(use_gsl, "no"))
 AC_CHECK_LIB(gsl, gsl_error,,AC_SUBST(use_gsl, "no"))
 AC_CHECK_LIB(blas, exit,,AC_SUBST(use_gsl, "no"))
-AM_CONDITIONAL([use_gsl], [test x$use_gsl == xyes])
+AM_CONDITIONAL([use_gsl], [test x$use_gsl = xyes])
 
 
 # --- SDL (optional for graphical debugging) ---