This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid adding null components to LD_LIBRARY_PATH, OpenBSD has trouble
[perl5.git] / configure.gnu
index 868e454..2ef8331 100755 (executable)
@@ -27,7 +27,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 +40,13 @@ while test $# -gt 0; do
        case $1 in
     --help)
                cat <<EOM
-Usage: configure [options]
+Usage: configure.gnu [options]
 This is GNU configure-like front end for a metaconfig-generated Configure.
 It emulates the following GNU configure options (must be fully spelled out):
        --help
        --no-create
        --prefix=PREFIX
+       --cache-file  (ignored)
        --quiet
        --silent
        --verbose
@@ -64,6 +65,9 @@ EOM
                opts="$opts $arg"
                shift
                ;;
+       --cache-file=*)
+               shift           # Just ignore it.
+               ;;
        --quiet|--silent)
                exec >/dev/null 2>&1
                shift
@@ -107,6 +111,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