$OpenBSD: patch-configure_in,v 1.4 2008/10/27 17:58:52 kili Exp $
--- configure.in.orig	Mon Sep 15 01:29:52 2008
+++ configure.in	Sun Oct 26 14:24:17 2008
@@ -297,22 +297,15 @@ AC_CHECK_FILE(/usr/include/libxml2/libxml,[CFLAGS="$CF
  AC_CHECK_FILE(/usr/local/include/libxml2/libxml,[CFLAGS="$CFLAGS -I/usr/local/include -I/usr/local/include/libxml2/"],
   AC_DEFINE(_NO_LIBXML))])
 
-dnl Some old versions of lib(un)gif don't work for us, they've got the
+dnl Some old versions of libungif don't work for us, they've got the
 dnl Function argument in the wrong place. So check the header files.
-dnl check for both libgif and libungif, I think they use the same args.
 
-AC_CHECK_LIB(gif, DGifOpenFileName, [
+AC_CHECK_LIB(ungif, DGifOpenFileName, [
 echo -n checking for ExtensionBlock.Function in gif_lib.h...
 AC_TRY_COMPILE([#include <gif_lib.h>], [ ExtensionBlock foo; foo.Function=3; ], echo " " yes , [echo " " no
     ac_cv_lib_ungif_DGifOpenFileName=no
     AC_DEFINE(_NO_LIBUNGIF)])
-] , [
-  AC_CHECK_LIB(ungif, DGifOpenFileName, [
-  echo -n checking for ExtensionBlock.Function in gif_lib.h...
-  AC_TRY_COMPILE([#include <gif_lib.h>], [ ExtensionBlock foo; foo.Function=3; ], echo " " yes , [echo " " no
-      ac_cv_lib_ungif_DGifOpenFileName=no
-      AC_DEFINE(_NO_LIBUNGIF)])
-  ] , AC_DEFINE(_NO_LIBUNGIF))])
+] , AC_DEFINE(_NO_LIBUNGIF))
 
 dnl some people have installed libraries without include files.
 dnl bloody useless thing to do, but check for both (don't need to check for
