diff --git a/configure.in.in b/configure.in.in index 1cdda0b..ba32728 100644 --- a/configure.in.in +++ b/configure.in.in @@ -133,7 +133,11 @@ fi # # libexiv2 # +SAVE_CXXFLAGS=$CXXFLAGS +CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" KDE_CHECK_HEADERS(exiv2/image.hpp, have_exiv2=yes, have_exiv2=no) +KDE_CHECK_HEADERS(exiv2/exiv2.hpp) +CXXFLAGS=$SAVE_CXXFLAGS if test "$have_exiv2" = "yes"; then LIB_EXIV2="-lexiv2" diff --git a/src/imageutils/jpegcontent.cpp b/src/imageutils/jpegcontent.cpp index bab3b9a..02125c4 100644 --- a/src/imageutils/jpegcontent.cpp +++ b/src/imageutils/jpegcontent.cpp @@ -18,6 +18,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if defined(HAVE_CONFIG_H) +#include "config.h" +#endif + // System #include #include @@ -39,8 +43,12 @@ extern "C" { #include // Exiv2 +#if defined(HAVE_EXIV2_EXIV2_HPP) +#include +#else #include #include +#endif // Local #include "imageutils/imageutils.h"