1 AC_MSG_CHECKING([devices supported by gputils])
4 CHECK=".checkdevices/check";
5 RESULT="pics.supported";
8 mkdir -p ".checkdevices";
10 for i in "${LIBDEV}/pic1"*.c; do
13 P=$(echo "$p" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ);
14 printf " include \"p%s.inc\"\n END" "$p" > "${CHECK}.asm";
15 if "$mCCAS" -p "$p" -o "${CHECK}.o" -c "${CHECK}.asm" >/dev/null 2>&1 && "$mLD" "${CHECK}.o" >/dev/null 2>&1; then
16 GOOD_PICS="$GOOD_PICS $p";
17 N_GOOD=`expr $N_GOOD + 1`;
18 echo "$P" >> "$RESULT";
20 BAD_PICS="$BAD_PICS $p";
21 N_BAD=`expr $N_BAD + 1`;
24 AC_MSG_RESULT([[$N_GOOD devices ($GOOD_PICS)]])
27 if test -n "$BAD_PICS"; then
29 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31 !!! WARNING: The installed gputils do not support all
32 !!! PIC devices currently supported by SDCC.
33 !!! If you continue to build SDCC, library files for the
34 !!! following devices will not be built, and you will
35 !!! not be able to compile any projects for these devices:
39 ==> $N_BAD devices are *not* supported
40 $N_GOOD devices are supported
43 !!! Please update your gputils to a recent snapshot and
44 !!! run configure again using the updated gputils. Make
45 !!! sure to have them in PATH prior to the previously
46 !!! found ones (or remove the older version completely).
48 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
52 echo "Continuing in $d seconds ...";