Code

small update of Lithuanian translation
[inkscape.git] / configure.ac
index bd0bdbd0ae61ac325e15313093bea2369188ec4a..2160021ce26cfa3bb9b3e406a7fa2456272ba165 100644 (file)
@@ -74,7 +74,7 @@ GETTEXT_PACKAGE="AC_PACKAGE_NAME"
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Translation domain used])
 dnl Add the languages which your application supports here.
-ALL_LINGUAS="am az be ca cs da de el es es_MX et eu fr ga gl hu it ja mk nb nl nn pa pl pt pt_BR ru sk sl sr sr@Latn sv tr uk zh_CN"
+ALL_LINGUAS="am az be ca cs da de el es es_MX et eu fr ga gl hu it ja lt mk nb nl nn pa pl pt pt_BR ru sk sl sr sr@Latn sv tr uk zh_CN zh_TW"
 AM_GLIB_GNU_GETTEXT
 
 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
@@ -422,6 +422,43 @@ AM_CONDITIONAL(WITH_PYTHON, test "x$with_python" = "xyes")
 AC_SUBST(PYTHON_CFLAGS)
 AC_SUBST(PYTHON_LIBS)
 
+dnl ******************************
+dnl LittleCms checking
+dnl ******************************
+
+AC_ARG_ENABLE(lcms,
+       AC_HELP_STRING([--enable-lcms], [enable LittleCms for color management (disabled by default)]),
+       [enable_lcms=$enableval], [enable_lcms=no])
+
+if test "x$enable_lcms" = "xno"; then
+       dnl Asked to ignore LittleCms
+       lcms=no
+else
+        dnl Have to test LittleCms presence
+       PKG_CHECK_MODULES(LCMS, lcms >= 1.14, lcms=yes, lcms=no)
+       if test "x$lcms" != "xyes"; then
+               dnl No lcms found
+               if test "x$enable_lcms" = "xyes"; then
+                       dnl LittleCms was explicitly asked for, so stop
+                       AC_MSG_ERROR([--enable-lcms was specified, but appropriate LittleCms development packages could not be found])
+               else
+                       # lcms is no, tell us for the log file
+                       AC_MSG_RESULT($lcms)
+               fi
+       else
+               dnl Working lcms
+               LCMS_LIBS="-llcms "
+       fi
+fi
+
+if test "x$lcms" = "xyes"; then
+       LIBS="$LIBS $LCMS_LIBS"
+       AC_DEFINE(ENABLE_LCMS, 1, [Use LittleCms color management])
+fi
+AM_CONDITIONAL(USE_LCMS, test "x$lcms" = "xyes")
+AC_SUBST(LCMS_CFLAGS)
+AC_SUBST(LCMS_LIBS)
+
 dnl ******************************
 dnl Inkboard dependency checking
 dnl ******************************
@@ -781,7 +818,7 @@ share/extensions/Makefile
 share/fonts/Makefile
 share/gradients/Makefile
 share/icons/Makefile
-share/keyboards/Makefile
+share/keys/Makefile
 share/markers/Makefile
 share/palettes/Makefile
 share/patterns/Makefile
@@ -821,5 +858,6 @@ Configuration:
         Use relocation support:   ${enable_binreloc}
         Use Python extensions:    ${with_python}
         Use Perl extensions:      ${with_perl}
+       Enable LittleCms:         ${enable_lcms}
        Enable Inkboard:          ${with_inkboard}
 "