2 AC_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(gqview, 2.1.5)
14 dnl reasonable guesses for where stuff is installed
15 if test "x$prefix" = "xNONE"; then
21 AM_PATH_GTK_2_0(2.4.0,,AC_MSG_ERROR(GTK+ >= 2.4.0 not installed.))
23 AC_DEFINE_UNQUOTED(GQVIEW_HELPDIR, "$prefix/share/doc/gqview-$VERSION", [Location of documentation files])
24 AC_DEFINE_UNQUOTED(GQVIEW_HTMLDIR, "$prefix/share/doc/gqview-$VERSION/html", [Location of html documentation])
26 dnl checks for functions
27 AC_CHECK_FUNCS(strverscmp)
29 dnl check for little cms (lcms, this test pulled from gimp)
30 AC_ARG_WITH(lcms, [ --without-lcms build without lcms support])
33 if test "x$with_lcms" != "xno"; then
34 AC_CHECK_LIB(lcms, cmsCreate_sRGBProfile, [
35 AC_CHECK_HEADER(lcms.h,
37 AC_CHECK_HEADER(lcms/lcms.h,
39 AC_DEFINE(HAVE_LCMS_LCMS_H, 1,
40 [Define to 1 if the lcms header must be included as lcms/lcms.h]))
43 if test "$have_lcms" = "yes"; then
45 AC_DEFINE(HAVE_LCMS, 1, [define to enable use of color profiles with lcms])
47 have_lcms="no (lcms not found or unusable)"
50 have_lcms="no (lcms support disabled)"
53 AM_CONDITIONAL(HAVE_LCMS, test "$have_lcms" = "yes")
55 AC_ARG_WITH(exiv2, [ --without-exiv2 build without exiv2 support])
59 if test "x$with_exiv2" != "xno"; then
60 PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.11,
62 AC_DEFINE(HAVE_EXIV2, 1, have exiv2) ],
63 [ AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] )
67 ALL_LINGUAS="ar be bg ca cs da de eo es et eu fi fr hu id it ja ko nl no pl pt_BR ro ru sk sl sv th tr uk vi zh_CN.GB2312 zh_TW"
68 GETTEXT_PACKAGE=$PACKAGE
69 AC_SUBST(GETTEXT_PACKAGE)
71 AM_GLIB_DEFINE_LOCALEDIR(GQVIEW_LOCALEDIR)
81 src/icons/svg/Makefile