aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorViktor Kojouharov <vkojouharov@gmail.com>2010-09-14 08:35:42 +0000
committerViktor Kojouharov <vkojouharov@gmail.com>2010-09-14 08:35:42 +0000
commit35c4b294bd3dac4f72992cec085f561917cae896 (patch)
tree52173cd10d47b4fc38f63c8045cee37f4c6a1785 /configure.ac
parentalways save the config on exit (diff)
downloadephoto-35c4b294bd3dac4f72992cec085f561917cae896.tar.gz
optional libexif support.
initial rotation support with edje map (the swallow still needs to be refitted in the available space after the rotation) SVN revision: 52238
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac30
1 files changed, 29 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8a768ff..5f14a83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,6 +177,34 @@ PKG_CHECK_MODULES([EIO], eio,
]
)
+AC_ARG_ENABLE([libexif],
+ [AC_HELP_STRING([--enable-libexif], [enable libexif support @<:@default=yes@:>@])],
+ [
+ if test "x${enableval}" = "xyes" ; then
+ _ephoto_enable_libexif="yes"
+ else
+ _ephoto_enable_libexif="no"
+ fi
+ ],
+ [_ephoto_enable_libexif="yes"]
+)
+
+AC_MSG_CHECKING([whether ethumb is built])
+AC_MSG_RESULT([${_ephoto_enable_libexif}])
+
+have_libexif="no"
+
+if test "x${_ephoto_enable_libexif}" = "xyes" ; then
+ PKG_CHECK_MODULES(EXIF, libexif, [
+ have_libexif="yes"
+ AC_DEFINE(HAVE_LIBEXIF, 1, [have libexif support])
+ ],[
+ have_libexif="no"
+ ])
+fi
+
+AM_CONDITIONAL(BUILD_LIBEXIF, test $have_libexif = yes)
+
AC_OUTPUT([
Makefile
ephoto.spec
@@ -220,7 +248,7 @@ echo " Eina.............: $have_eina"
echo " Ethumb...........: $have_ethumb"
echo " Elementary.......: $have_elementary"
echo " Eio..............: $have_eio"
-echo " Libexif .........: $have_exif"
+echo " Libexif .........: $have_libexif"
echo
echo "Installation Path.........: $prefix"
echo