diff --git a/configure.ac b/configure.ac
index f49c762..bb10328 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1772,6 +1772,21 @@ PKG_CHECK_MODULES(LCMS, lcms2 >= lcms_required_version,,
 
 
 ######################
+# Check for file-cmyk
+######################
+
+if test -n "$TIFF_LIBS" && test -n "$JPEG_LIBS" && test -n "$LCMS_LIBS"; then
+  FILE_CMYK_SAVE='file-cmyk-save$(EXEEXT)'
+  FILE_CMYK_CFLAGS="$LCMS_CFLAGS"
+  FILE_CMYK_LIBS="$TIFF_LIBS $JPEG_LIBS $LCMS_LIBS"
+fi
+
+AC_SUBST(FILE_CMYK_SAVE)
+AC_SUBST(FLIE_CMYK_CFLAGS)
+AC_SUBST(FILE_CMYK_LIBS)
+
+
+######################
 # Check for libXcursor
 ######################
 
diff --git a/plug-ins/common/Makefile.am b/plug-ins/common/Makefile.am
index 318bedc..7a61298 100644
--- a/plug-ins/common/Makefile.am
+++ b/plug-ins/common/Makefile.am
@@ -76,6 +76,7 @@ libexec_PROGRAMS = \
 	emboss \
 	$(FILE_AA) \
 	file-cel \
+	$(FILE_CMYK_SAVE) \
 	file-compressor \
 	file-csource \
 	file-desktop-link \
@@ -145,6 +146,7 @@ libexec_PROGRAMS = \
 
 EXTRA_PROGRAMS = \
 	file-aa \
+	file-cmyk-save \
 	file-jp2-load \
 	file-mng \
 	file-pdf-load \
@@ -628,6 +630,27 @@ file_cel_LDADD = \
 	$(RT_LIBS)		\
 	$(INTLLIBS)		\
 	$(file_cel_RC)
+ 
+file_cmyk_save_CFLAGS = $(FILE_CMYK_CFLAGS)
+
+file_cmyk_save_SOURCES = \
+	file-cmyk-save.c
+
+file_cmyk_save_LDADD = \
+	$(libgimpui)		\
+	$(libgimpwidgets)	\
+	$(libgimpmodule)	\
+	$(libgimp)		\
+	$(libgimpmath)		\
+	$(libgimpconfig)	\
+	$(libgimpcolor)		\
+	$(libgimpbase)		\
+	$(GTK_LIBS)		\
+	$(GEGL_LIBS)		\
+	$(FILE_CMYK_LIBS)	\
+	$(RT_LIBS)		\
+	$(INTLLIBS)		\
+	$(file_cmyk_save_RC)
 
 file_compressor_CFLAGS = $(LZMA_CFLAGS)
 
diff --git a/plug-ins/common/gimprc.common b/plug-ins/common/gimprc.common
index 0ff328d..65ad792 100644
--- a/plug-ins/common/gimprc.common
+++ b/plug-ins/common/gimprc.common
@@ -25,6 +25,7 @@ edge_neon_RC = edge-neon.rc.o
 emboss_RC = emboss.rc.o
 file_aa_RC = file-aa.rc.o
 file_cel_RC = file-cel.rc.o
+file_cmyk_save_RC = file-cmyk-save.rc.o
 file_compressor_RC = file-compressor.rc.o
 file_csource_RC = file-csource.rc.o
 file_desktop_link_RC = file-desktop-link.rc.o
diff --git a/plug-ins/common/plugin-defs.pl b/plug-ins/common/plugin-defs.pl
index 8ec6073..0cc6a07 100644
--- a/plug-ins/common/plugin-defs.pl
+++ b/plug-ins/common/plugin-defs.pl
@@ -26,6 +26,7 @@
     'emboss' => { ui => 1 },
     'file-aa' => { ui => 1, gegl => 1, optional => 1, libs => 'AA_LIBS' },
     'file-cel' => { ui => 1, gegl => 1 },
+    'file-cmyk-save' => { ui => 1, optional => 1, libs => 'FILE_CMYK_LIBS', cflags => 'FILE_CMYK_CFLAGS' },
     'file-csource' => { ui => 1, gegl => 1 },
     'file-compressor' => { gio => 1, libdep => 'Z:BZIP2:LZMA', cflags => 'LZMA_CFLAGS' },
     'file-desktop-link' => {},
