Add minimal support to `pkg-config imlib2`; imlib2-config has been
dropped since imlib2-1.7.5.

--- configure.orig	2004-07-20 16:49:27 UTC
+++ configure
@@ -4494,7 +4494,7 @@ EOF
     SWFMovie_save(movie, "foo"); /* 0.2a API */
 }
 EOF
-if $CC -c tmp.c > /dev/null 2>&1; then
+if $CC -c $CFLAGS $CPPFLAGS tmp.c > /dev/null 2>&1; then
 
 cat >>confdefs.h <<_ACEOF
 #define MING_0_2a 1
@@ -4867,6 +4867,12 @@ IMLIB2CONFIG=$ac_cv_path_IMLIB2CONFIG
 esac
 fi
 IMLIB2CONFIG=$ac_cv_path_IMLIB2CONFIG
+
+if test -z "$IMLIB2CONFIG"; then
+  if pkg-config imlib2; then
+    IMLIB2CONFIG="pkg-config imlib2"
+  fi
+fi
 
 if test -n "$IMLIB2CONFIG"; then
   echo "$as_me:$LINENO: result: $IMLIB2CONFIG" >&5
