Hi,
This is a quick patch to once again make building Lensfun support
optional. It's still enabled by default, but at some point we lost the
ability to disable it from the configure script.
Martin
Index: configure.ac
===================================================================
RCS file: /cvsroot/ufraw/ufraw/configure.ac,v
retrieving revision 1.158
diff -u -r1.158 configure.ac
--- configure.ac 15 Nov 2010 01:04:15 -0000 1.158
+++ configure.ac 12 May 2011 21:00:20 -0000
@@ -258,11 +258,18 @@
[ have_exiv2=no
AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] )
-PKG_CHECK_MODULES(LENSFUN, lensfun >= 0.2.5,
- [ have_lensfun=yes
- AC_DEFINE(HAVE_LENSFUN, 1, have the lensfun library) ],
- [ have_lensfun=no
- AC_MSG_RESULT($LENSFUN_PKG_ERRORS) ] )
+AC_ARG_WITH([lensfun],
+ [AS_HELP_STRING([--with-lensfun],
+ [build with Lensfun support @<:@default=check@:>@])],
+ [],
+ [with_lensfun=check])
+
+have_lensfun=no
+AS_IF([test "x$with_lensfun" != xno],
+ [PKG_CHECK_MODULES(LENSFUN, lensfun >= 0.2.5,
+ [ have_lensfun=yes
+ AC_DEFINE(HAVE_LENSFUN, 1, have the lensfun library) ],
+ [ have_lensfun=no] ) ] )
# UFRAW_CPPFLAGS is added to the preprocessor flags AM_CPPFLAGS,
# affecting also the C and C++ compilers.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
ufraw-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-devel