'') ;;
*)
# Only add $xxx if it isn't already in ccdlflags.
- case "$ccdlflags" in
- *${xxx}*) ;;
+ case " $ccdlflags " in
+ *" $xxx "*) ;;
*) ccdlflags="$ccdlflags $xxx"
cat <<EOM >&4
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='?'
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 " "