X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/774d564bb7dd1ed64ca0d7e534aa67e93f991f02..c95ca9b8cd1e9cb94201b96527b666a2e68bd781:/configure.gnu?ds=sidebyside diff --git a/configure.gnu b/configure.gnu index 868e454..ae5aec9 100755 --- a/configure.gnu +++ b/configure.gnu @@ -1,10 +1,8 @@ #! /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 +# Written by Andy Dougherty # and Matthew Green . # # Reformatted and modified for inclusion in the dist-3.0 package by @@ -27,7 +25,7 @@ case "$0" in 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 explicitely extract Configure and run that." + echo "You'll have to explicitly extract Configure and run that." exit 1 fi ;; @@ -40,12 +38,13 @@ while test $# -gt 0; do case $1 in --help) cat </dev/null 2>&1 shift @@ -82,7 +90,7 @@ EOM exit 1 ;; *) - opts="$opts $1" + opts="$opts '$1'" shift ;; esac @@ -107,6 +115,14 @@ case "$ccflags" in '') ;; *) opts="$opts -Dccflags='$ccflags'";; esac +case "$LDFLAGS" in +'') ;; +*) ldflags="$ldflags $LDFLAGS";; +esac +case "$ldflags" in +'') ;; +*) opts="$opts -Dldflags='$ldflags'";; +esac # Don't use -s if they want verbose mode case "$verbose" in @@ -114,7 +130,7 @@ case "$verbose" in *) copt="$copt -d";; esac -set X sh Configure $copt $create $opts +eval "set X sh Configure $copt $create $opts" shift echo "$@" exec "$@"