+DX_LIB_LIBGERBV
+AC_DEFINE([GLIB_DISABLE_DEPRECATION_WARNINGS], [1],
+ [Define to shut up glib deprecation silliness.])
+
+AS_IF([test x"$dx_cv_libgerbv_lib_found" = x"yes"],
+[AC_CACHE_CHECK([if libgerbv supports G85 slots], [dx_cv_gerbv_supports_g85],
+[save_CFLAGS=$CFLAGS
+CFLAGS="$CFLAGS $LIBGERBV_CFLAGS"
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+[#include <gerbv.h>
+#include <stddef.h>
+], [static int g85_supported@<:@
+ offsetof(gerbv_drill_stats_t, G85) >= 0 ? 1 : -1
+@:>@;])], [dx_cv_gerbv_supports_g85=yes], [dx_cv_gerbv_supports_g85=no])
+CFLAGS=$save_CFLAGS])])
+
+AS_IF([test x"$dx_cv_gerbv_supports_g85" != x"yes"],
+[AC_MSG_FAILURE([Your installation of libgerbv appears not to
+support slots. An updated version of libgerbv is likely required.
+The latest version may be found at <http://gerbv.geda-project.org/>.
+m4_newline([DX_LIB_USERFLAG_BLURB([libgerbv])])
+m4_newline([DX_LIB_PKGCONFIG_BLURB([libgerbv])])
+])])