+AC_ARG_ENABLE(geotag, AC_HELP_STRING([--enable-geotag],
+ [enable Geotag Support (default is enable).]),
+ [ac_cv_enable_geotag=$enableval],
+ [ac_cv_enable_geotag=yes])
+AC_CACHE_CHECK([whether to enable Geotag Support],
+ [ac_cv_enable_geotag], [ac_cv_enable_geotag=yes])
+case $ac_cv_enable_geotag in
+ yes)
+ AC_CHECK_LIB(exif,exif_loader_new,,AC_MSG_ERROR([libexif is needed for Geotag features[,] but is not found. The feature can be disabled with --disable-geotag]))
+ AC_DEFINE(VIK_CONFIG_GEOTAG, [], [GEOTAG STUFF])
+ ;;
+esac
+AM_CONDITIONAL([GEOTAG], [test x$ac_cv_enable_geotag = xyes])
+