+dnl Check for optional GNOME icons (from gnome-icon-theme package).
+AC_ARG_WITH(icons,
+ AC_HELP_STRING([--with-icons=PATH],
+ [Set path to installed icons @<:@default=/usr/share/icons@:>@]),
+ [],[with_icons=/usr/share/icons])
+icons=""
+if test "x$with_icons" != "xno"; then
+ for size in 16 24 32 48; do
+ for f in devices/computer.png; do
+ fname="${with_icons}/gnome/${size}x${size}/${f}"
+ AC_MSG_CHECKING([checking for icon $fname])
+ if test -f "$fname"; then
+ AC_MSG_RESULT([yes])
+ icons="$size $f $fname $icons"
+ else
+ AC_MSG_RESULT([no])
+ fi
+ done
+ done
+fi
+AC_SUBST(with_icons)
+AC_SUBST(icons)
+