Clean up and document API for hashes
[p5sagit/p5-mst-13.2.git] / Configure
index 4201a5c..a6e202c 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -4729,8 +4729,8 @@ if "$useshrplib"; then
        '') ;;
        *)      
                # Only add $xxx if it isn't already in ccdlflags.
-               case "$ccdlflags" in
-               *${xxx}*)       ;;
+               case " $ccdlflags " in
+               *" $xxx "*)     ;;
                *)      ccdlflags="$ccdlflags $xxx"
                        cat <<EOM >&4
 
@@ -8575,7 +8575,7 @@ main()
        printf("%d\n",i);
 }
 EOCP
-       if $cc try.c -o try >/dev/null 2>&1 ; then
+       if $cc $ccflags $ldflags -o try try.c $libs >/dev/null 2>&1 ; then
                dflt=`try`
        else
                dflt='?'
@@ -8589,7 +8589,7 @@ esac
 rp='How many bits does your rand() function produce?'
 . ./myread
 randbits="$ans"
-$rm -f try.c try
+$rm -f try.c try.o try
 
 : see if ar generates random libraries by itself
 echo " "