-for d in [a-z]*; do
- test -d $d && dlist="$dlist $d"
-done
-find $dlist -type f -name "*.cc" | sort > $tmp.1
-
-# If the library is not configured to support wchar_t, don't run those tests.
-if test -f "$outdir/testsuite_wchar_t"; then
- mv $tmp.1 $tmp.2
-else
- grep -v wchar_t $tmp.1 > $tmp.2
+dlist="$dlist abi backward ext performance tr1 decimal"
+find $dlist "(" -type f -o -type l ")" -name "*.cc" -print > $tmp.01
+find $dlist "(" -type f -o -type l ")" -name "*.c" -print > $tmp.02
+cat $tmp.01 $tmp.02 | sort > $tmp.1
+if test ! -s "$tmp.1"; then
+ exit 1