2007-02-06 Martin Mares <mj@ucw.cz>
+ * lib/configure: tr on Solaris is a bit weird and it requires `[A-Z]'
+ instead of `A-Z'. Fortunately, the extra brackets don't hurt otherwise.
+
* lib/types.h, lib/configure: Solaris should use <stdint.h> to get precise
integer types.
sys=freebsd
fi
host=${3:-$cpu-$sys}
-host=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr 'A-Z' 'a-z'`
+# CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless.
+host=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)$/\1--\2/' | tr '[A-Z]' '[a-z]'`
cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
rel=${4:-$rel}
c=config.h
m=config.mk
-echo >$c "#define PCI_ARCH_`echo $cpu | tr 'a-z' 'A-Z'`"
-echo >>$c "#define PCI_OS_`echo $sys | tr 'a-z' 'A-Z'`"
+echo >$c "#define PCI_ARCH_`echo $cpu | tr '[a-z]' '[A-Z]'`"
+echo >>$c "#define PCI_OS_`echo $sys | tr '[a-z]' '[A-Z]'`"
rm -f $m
echo_n "Looking for access methods..."