X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=configure;h=e1011479483a09adaef318d195c3492aad9d0d80;hb=1fd066cbdf7ee74f73ad41ee661bdb6d8d7e141c;hp=9d61bd6fb732c2bd806063240750ab56a3d6d2c2;hpb=8e07c86ebc651fe92eb7e3b25f801f57cfb8dd6f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/configure b/configure old mode 100644 new mode 100755 index 9d61bd6..e101147 --- a/configure +++ b/configure @@ -21,6 +21,18 @@ # (exit $?0) || exec sh $0 $argv:q + +case "$0" in +*configure) + if cmp $0 `echo $0 | sed -e s/configure/Configure/` >/dev/null; then + echo "Your configure and Configure scripts seem to be identical." + echo "This can happen on filesystems that aren't fully case sensitive." + echo "You'll have to explicitly extract Configure and run that." + exit 1 + fi + ;; +esac + opts='' verbose='' create='-e' @@ -34,6 +46,7 @@ It emulates the following GNU configure options (must be fully spelled out): --help --no-create --prefix=PREFIX + --cache-file (ignored) --quiet --silent --verbose @@ -52,6 +65,9 @@ EOM opts="$opts $arg" shift ;; + --cache-file=*) + shift # Just ignore it. + ;; --quiet|--silent) exec >/dev/null 2>&1 shift @@ -102,7 +118,7 @@ case "$verbose" in *) copt="$copt -d";; esac -set X ./Configure $copt $create $opts +set X sh Configure $copt $create $opts shift echo "$@" exec "$@"