diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-27 08:52:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-27 08:52:23 +0000 |
commit | d881cabc2f55f3fe42170a90bffcc9493343068b (patch) | |
tree | 1e646e246e26e504d0c9c812b3a20186bf10a8ef | |
parent | a2a49db6a27662716da9af7965ddf8baee9c3616 (diff) | |
download | libextractor-d881cabc2f55f3fe42170a90bffcc9493343068b.tar.gz libextractor-d881cabc2f55f3fe42170a90bffcc9493343068b.zip |
better ltdl.h check
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | doc/version.texi | 4 | ||||
-rw-r--r-- | src/main/extractor.c | 25 |
3 files changed, 14 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac index 53a1a78..159545b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -277,7 +277,8 @@ fi | |||
277 | AC_HEADER_STDC | 277 | AC_HEADER_STDC |
278 | AC_HEADER_DIRENT | 278 | AC_HEADER_DIRENT |
279 | AC_HEADER_STDBOOL | 279 | AC_HEADER_STDBOOL |
280 | AC_CHECK_HEADERS([ltdl.h iconv.h fcntl.h netinet/in.h stdlib.h string.h unistd.h libintl.h limits.h stddef.h zlib.h]) | 280 | AC_CHECK_HEADERS([iconv.h fcntl.h netinet/in.h stdlib.h string.h unistd.h libintl.h limits.h stddef.h zlib.h]) |
281 | AC_CHECK_HEADERS([ltdl.h],,AC_MSG_ERROR([Compiling GNU libextractor requires installed libltdl library (part of GNU libtool)])) | ||
281 | 282 | ||
282 | # Checks for typedefs, structures, and compiler characteristics. | 283 | # Checks for typedefs, structures, and compiler characteristics. |
283 | AC_C_INLINE | 284 | AC_C_INLINE |
diff --git a/doc/version.texi b/doc/version.texi index 7f35eb0..a4e2bc7 100644 --- a/doc/version.texi +++ b/doc/version.texi | |||
@@ -1,4 +1,4 @@ | |||
1 | @set UPDATED 29 March 2010 | 1 | @set UPDATED 17 May 2010 |
2 | @set UPDATED-MONTH March 2010 | 2 | @set UPDATED-MONTH May 2010 |
3 | @set EDITION 0.6.1 | 3 | @set EDITION 0.6.1 |
4 | @set VERSION 0.6.1 | 4 | @set VERSION 0.6.1 |
diff --git a/src/main/extractor.c b/src/main/extractor.c index f1daadc..36ed638 100644 --- a/src/main/extractor.c +++ b/src/main/extractor.c | |||
@@ -28,6 +28,16 @@ | |||
28 | #include <sys/shm.h> | 28 | #include <sys/shm.h> |
29 | #endif | 29 | #endif |
30 | #include <signal.h> | 30 | #include <signal.h> |
31 | #include <ltdl.h> | ||
32 | |||
33 | #if HAVE_LIBBZ2 | ||
34 | #include <bzlib.h> | ||
35 | #endif | ||
36 | |||
37 | #if HAVE_ZLIB | ||
38 | #include <zlib.h> | ||
39 | #endif | ||
40 | |||
31 | 41 | ||
32 | 42 | ||
33 | /** | 43 | /** |
@@ -54,21 +64,6 @@ | |||
54 | #define DEBUG 1 | 64 | #define DEBUG 1 |
55 | 65 | ||
56 | 66 | ||
57 | #if HAVE_LTDL_H | ||
58 | #include <ltdl.h> | ||
59 | #else | ||
60 | #include <../../libltdl/ltdl.h> | ||
61 | #endif | ||
62 | |||
63 | #if HAVE_LIBBZ2 | ||
64 | #include <bzlib.h> | ||
65 | #endif | ||
66 | |||
67 | #if HAVE_ZLIB | ||
68 | #include <zlib.h> | ||
69 | #endif | ||
70 | |||
71 | |||
72 | /** | 67 | /** |
73 | * Linked list of extractor plugins. An application builds this list | 68 | * Linked list of extractor plugins. An application builds this list |
74 | * by telling libextractor to load various keyword-extraction | 69 | * by telling libextractor to load various keyword-extraction |