+ for my $patch (
+ <<'CONFIGURE_SUBST_X_EOF',
+--- configure-orig 2007-03-27 01:13:44.000000000 +0200
++++ configure 2007-03-27 01:17:07.000000000 +0200
+@@ -3749,7 +3749,13 @@
+ rm -f "$tmp/stdin"
+ case $ac_file in
+ -) cat "$tmp/out"; rm -f "$tmp/out";;
+- *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
++ *) rm -f "$ac_file"; mv "$tmp/out" $ac_file
++ for f in $ac_file_inputs; do
++ if test -x $f; then
++ chmod +x $ac_file
++ fi
++ done
++ ;;
+ esac
+ ;;
+
+CONFIGURE_SUBST_X_EOF
+ <<'CONFIGURE_SUBST_X_EOF',