diff --git a/configure b/configure
index b03601602f49fb6971442cf717311c3813007bbf..cda0d910b7cdbb24d5d1e0bdc47994930da0f44b 100755
--- a/configure
+++ b/configure
@@ -1671,11 +1671,11 @@ fi
 if (imlib2-config --version) >/dev/null 2>&1 ; then
     temp_cflags `imlib2-config --cflags`
     temp_extralibs `imlib2-config --libs`
-check_ld <<EOF && imlib2=yes || imlib2=no
+    check_ld <<EOF && imlib2=yes || imlib2=no
 #include <Imlib2.h>
 int main( void ) { return (int) imlib_load_font("foo"); }
 EOF
-restore_flags
+    restore_flags
 fi
 
 ##########################################