diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac index 80e1a7f..128d0fa 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -221,6 +221,26 @@ AC_CHECK_LIB(poppler, _ZTI9MemStream, | |||
221 | AM_CONDITIONAL(HAVE_POPPLER, false))], | 221 | AM_CONDITIONAL(HAVE_POPPLER, false))], |
222 | AM_CONDITIONAL(HAVE_POPPLER, false)) | 222 | AM_CONDITIONAL(HAVE_POPPLER, false)) |
223 | 223 | ||
224 | AC_MSG_CHECKING(for ImageFactory::iptcData in -lexiv2) | ||
225 | AC_LANG_PUSH(C++) | ||
226 | SAVED_LDFLAGS=$LDFLAGS | ||
227 | LDFLAGS="$LDFLAGS -lexiv2" | ||
228 | AC_LINK_IFELSE( | ||
229 | [AC_LANG_PROGRAM([[#include <iostream> | ||
230 | #include <exiv2/exif.hpp> | ||
231 | #include <exiv2/image.hpp> | ||
232 | #include <exiv2/futils.hpp>]], | ||
233 | [[Exiv2::Image *foo = NULL; foo->iptcData(); ]])], | ||
234 | [AC_MSG_RESULT(yes) | ||
235 | AM_CONDITIONAL(HAVE_EXIV2, true) | ||
236 | AC_DEFINE(HAVE_EXIV2,1,[Have exifData in libexiv2])], | ||
237 | [AC_MSG_RESULT(no) | ||
238 | AM_CONDITIONAL(HAVE_EXIV2, false)]) | ||
239 | LDFLAGS=$SAVED_LDFLAGS | ||
240 | AC_LANG_POP(C++) | ||
241 | |||
242 | |||
243 | |||
224 | AC_MSG_CHECKING(for getPDFMajorVersion in -lpoppler) | 244 | AC_MSG_CHECKING(for getPDFMajorVersion in -lpoppler) |
225 | AC_LANG_PUSH(C++) | 245 | AC_LANG_PUSH(C++) |
226 | SAVED_LDFLAGS=$LDFLAGS | 246 | SAVED_LDFLAGS=$LDFLAGS |
@@ -329,7 +349,6 @@ else | |||
329 | fi | 349 | fi |
330 | 350 | ||
331 | # check for all C++ dependencies... | 351 | # check for all C++ dependencies... |
332 | exiv2=0 | ||
333 | qt=0 | 352 | qt=0 |
334 | qt4=0 | 353 | qt4=0 |
335 | 354 | ||
@@ -423,22 +442,6 @@ QT_LDFLAGS=$LDFLAGS | |||
423 | LDFLAGS=$SAVED_LDFLAGS | 442 | LDFLAGS=$SAVED_LDFLAGS |
424 | CPPFLAGS=$SAVED_CPPFLAGS | 443 | CPPFLAGS=$SAVED_CPPFLAGS |
425 | 444 | ||
426 | exiv2=1 | ||
427 | AC_MSG_CHECKING([whether to enable exiv2 extractor]) | ||
428 | AC_ARG_ENABLE(exiv2, | ||
429 | [AC_HELP_STRING([--enable-exiv2],[Enable exiv2 support]) | ||
430 | AC_HELP_STRING([--disable-exiv2],[Disable exiv2 support])], | ||
431 | [case "$enableval" in | ||
432 | no) AC_MSG_RESULT(no) | ||
433 | exiv2=0 | ||
434 | ;; | ||
435 | *) AC_MSG_RESULT(yes) | ||
436 | exiv2=1 | ||
437 | ;; | ||
438 | esac], | ||
439 | [ AC_MSG_RESULT(yes) | ||
440 | exiv2=1]) | ||
441 | AC_LANG_POP([C++]) | ||
442 | # end C++ checks | 445 | # end C++ checks |
443 | fi | 446 | fi |
444 | 447 | ||
@@ -465,11 +468,10 @@ fi | |||
465 | AM_CONDITIONAL(HAVE_QT_SVG, test x$qt_svg != x0) | 468 | AM_CONDITIONAL(HAVE_QT_SVG, test x$qt_svg != x0) |
466 | AM_CONDITIONAL(HAVE_QT_SVG4, test x$qt_svg4 != x0) | 469 | AM_CONDITIONAL(HAVE_QT_SVG4, test x$qt_svg4 != x0) |
467 | 470 | ||
468 | AM_CONDITIONAL(HAVE_EXIV2, test x$exiv2 != x0) | ||
469 | AC_DEFINE_UNQUOTED([HAVE_EXIV2], $exiv2, [We use EXIV2]) | ||
470 | |||
471 | ABI_GSF | 471 | ABI_GSF |
472 | 472 | ||
473 | AM_CONDITIONAL(WITH_GSF, test "x$have_gsf" = "xtrue") | ||
474 | |||
473 | # produce new line | 475 | # produce new line |
474 | echo "" | 476 | echo "" |
475 | AC_CHECK_LIB(gsf-1, gsf_init, AC_DEFINE(HAVE_GSF_INIT,1,[gsf_init supported])) | 477 | AC_CHECK_LIB(gsf-1, gsf_init, AC_DEFINE(HAVE_GSF_INIT,1,[gsf_init supported])) |
@@ -572,7 +574,7 @@ then | |||
572 | AC_MSG_ERROR([FATAL: zlib not found (headers not installed?)]) | 574 | AC_MSG_ERROR([FATAL: zlib not found (headers not installed?)]) |
573 | fi | 575 | fi |
574 | 576 | ||
575 | if test "x$exiv2" = "x0" | 577 | if test "x$HAVE_EXIV2" = "x#" |
576 | then | 578 | then |
577 | AC_MSG_NOTICE([NOTICE: exiv2 disabled]) | 579 | AC_MSG_NOTICE([NOTICE: exiv2 disabled]) |
578 | fi | 580 | fi |