configure: Check for libicns.
diff --git a/configure.ac b/configure.ac
index 5b8a199..b02c7aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,8 @@
 AC_ARG_WITH(gsm,       AS_HELP_STRING([--without-gsm],[do not use libgsm (GSM 06.10 codec support)]),
             [if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi])
 AC_ARG_WITH(hal,       AS_HELP_STRING([--without-hal],[do not use HAL (dynamic device support)]))
+AC_ARG_WITH(icns,      AS_HELP_STRING([--without-icns],[do not use ICNS icon support]),
+            [if test "x$withval" = "xno"; then ac_cv_header_icns_h=no; fi])
 AC_ARG_WITH(jack,      AS_HELP_STRING([--without-jack],[do not use the Jack sound support]),
             [if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi])
 AC_ARG_WITH(jpeg,      AS_HELP_STRING([--without-jpeg],[do not use JPEG]),
@@ -396,6 +398,7 @@
 	grp.h \
 	gsm.h \
 	gsm/gsm.h \
+	icns.h \
 	ieeefp.h \
 	inet/mib2.h \
 	io.h \
@@ -1487,6 +1490,17 @@
 WINE_NOTICE_WITH(gsm,[test "x$ac_cv_lib_soname_gsm" = "x"],
                  [libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.])
 
+dnl **** Check for libicns ****
+if test "$ac_cv_header_icns_h" = "yes"
+then
+    WINE_CHECK_SONAME(icns,icns_write_family_to_file)
+fi
+case $host_os in
+  darwin*|macosx*)
+    WINE_NOTICE_WITH(icns,[test "x$ac_cv_lib_soname_icns" = "x"],
+                     [libicns ${notice_platform}development files not found, ICNS icons won't be supported.]) ;;
+esac
+
 dnl **** Check for libjpeg ****
 if test "$ac_cv_header_jpeglib_h" = "yes"
 then