X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=configure;h=e1011479483a09adaef318d195c3492aad9d0d80;hb=2ddcc7aa6c936ba8e7a9703319dfd8959bb54574;hp=effd0c8b64c33a4d9b4cfce32f22075cb3606a19;hpb=16d20bd98cd29be76029ebf04027a7edd34d817b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/configure b/configure old mode 100644 new mode 100755 index effd0c8..e101147 --- a/configure +++ b/configure @@ -1,65 +1,124 @@ #! /bin/sh +# +# $Id: configure,v 3.0.1.1 1995/07/25 14:16:21 ram Exp $ +# # GNU configure-like front end to metaconfig's Configure. # -# Written by Andy Dougherty (doughera@lafcol.lafayette.edu) -# and matthew green (mrg@mame.mu.oz.au) +# Written by Andy Dougherty +# and Matthew Green . +# +# Reformatted and modified for inclusion in the dist-3.0 package by +# Raphael Manfredi . +# +# This script belongs to the public domain and may be freely redistributed. +# +# The remaining of this leading shell comment may be removed if you +# include this script in your own package. +# +# $Log: configure,v $ +# Revision 3.0.1.1 1995/07/25 14:16:21 ram +# patch56: created # -# public domain. + +(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='' -for f in $* -do - case $f in +verbose='' +create='-e' +while test $# -gt 0; do + case $1 in --help) - echo This is GNU configure-like front end for a MetaConfig Configure. - echo It understands the follow GNU configure options: - echo " --prefix=PREFIX" - echo " --help" - echo "" - echo And these environment variables: - echo " CFLAGS" - echo " CC" - echo " DEFS" - echo 0 - ;; - --prefix=*) - shift - arg=`echo $f | sed 's/--prefix=/-Dprefix=/'` - opts="$opts $arg" - ;; - --*) - opt=`echo $f | sed 's/=.*//'` - echo This GNU configure front end does not understand $opt - exit 1 - ;; - *) - shift - opts="$opts $f" - ;; - esac + cat </dev/null 2>&1 + shift + ;; + --verbose) + verbose=true + shift + ;; + --version) + copt="$copt -V" + shift + ;; + --*) + opt=`echo $1 | sed 's/=.*//'` + echo "This GNU configure front end does not understand $opt" + exit 1 + ;; + *) + opts="$opts $1" + shift + ;; + esac done case "$CC" in - '') ;; - *) opts="$opts -Dcc='$CC'" ;; +'') ;; +*) opts="$opts -Dcc='$CC'";; esac -# join DEFS and CFLAGS together. - +# Join DEFS and CFLAGS together. ccflags='' -if test "x$DEFS" != x -then - ccflags=$DEFS -fi -if test "x$CFLAGS" != x -then - ccflags="$ccflags $CFLAGS" -fi +case "$DEFS" in +'') ;; +*) ccflags=$DEFS;; +esac +case "$CFLAGS" in +'') ;; +*) ccflags="$ccflags $CFLAGS";; +esac +case "$ccflags" in +'') ;; +*) opts="$opts -Dccflags='$ccflags'";; +esac -if test "x$ccflags" != x -then - opts="$opts -Dccflags='$ccflags'" -fi +# Don't use -s if they want verbose mode +case "$verbose" in +'') copt="$copt -ds";; +*) copt="$copt -d";; +esac -echo ./Configure "$opts" -des -./Configure "$opts" -des +set X sh Configure $copt $create $opts +shift +echo "$@" +exec "$@"