Changeset 1670eede in rtems


Ignore:
Timestamp:
11/29/97 18:20:04 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b4dfd17e
Parents:
80868140
Message:

Changes from Ralf Corsepius (corsepiu@…) to automatically
generate the list of Makefiles in the configure script.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    r80868140 r1670eede  
    6868override MAKEFLAGS=
    6969
     70# CVS formerly was xxx -- using CVS covers up a weird feature of the aclocal
     71#  file in that it thinks CVS directories need a Makefile generated.
    7072$(MTARGETS): make_subdir
    7173        BASEDIR=`pwd`; \
    72         for bsp in $(RTEMS_BSP) xxx; \
    73         do if [ $$bsp != xxx ] ; then  \
     74        for bsp in $(RTEMS_BSP) CVS; \
     75        do if [ $$bsp != CVS ] ; then  \
    7476            cd $$BASEDIR; \
    7577            cmd="cd c; $(MAKE) RTEMS_BSP=$$bsp $(FLAGS_TO_PASS) \
  • aclocal.m4

    r80868140 r1670eede  
    4040AC_MSG_RESULT($rtems_cv_prog_MKDIR_M)
    4141])
     42
     43dnl RTEMS_CHECK_MAKEFILE_T(path)
     44dnl Private macro of RTEMS_CHECK_MAKEFILE
     45AC_DEFUN(RTEMS_CHECK_MAKEFILE_T,
     46[ test -f $srcdir/$1/Makefile.in && \
     47    makefiles="$makefiles $1/Makefile"
     48])
     49
     50dnl RTEMS_CHECK_MAKEFILE_R(path,temp,callback)
     51dnl Private macro of RTEMS_CHECK_MAKEFILE
     52dnl $1 path prefix
     53dnl $2 temporary variable
     54dnl $3 callback
     55AC_DEFUN(RTEMS_CHECK_MAKEFILE_R,
     56[ RTEMS_CHECK_MAKEFILE_T($1)
     57  $2list=`ls $srcdir/$1`
     58  for $2 in $$2list; do
     59    if test -d "$srcdir/$1/$$2"; then
     60      $3
     61    fi
     62  done
     63])
     64
     65dnl RTEMS_CHECK_MAKEFILE(path)
     66dnl Check for Makefile.in's within the directory starting
     67dnl at path and append an entry for Makefile to global variable
     68dnl "makefiles" (from configure.in) for each Makefile.in found
     69dnl
     70dnl NOTE: This function should be called recursivly, but m4-macro
     71dnl expansion doesn't allow recursive macros. Therefore this
     72dnl macro is expanded into a nonrecursive macro, limited to
     73dnl a descrete directory depth, that should be sufficent.
     74dnl
     75AC_DEFUN(RTEMS_CHECK_MAKEFILE,
     76[ AC_MSG_CHECKING(for Makefiles in $1)
     77  if test -d $srcdir/$1; then
     78    RTEMS_CHECK_MAKEFILE_R($1,item,
     79      RTEMS_CHECK_MAKEFILE_R($1/$item,item0,
     80        RTEMS_CHECK_MAKEFILE_T($1/$item/$item0)
     81      )
     82    )
     83    AC_MSG_RESULT(done)
     84  else
     85    AC_MSG_RESULT(no)
     86  fi
     87])
     88
     89dnl canonicalize target name
     90dnl NOTE: Most rtems targets do not fullfil autoconf
     91dnl targets naming conventions "processor-vendor-os"
     92dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
     93dnl and we have to fix it for rtems ourselves
     94
     95AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
     96[AC_MSG_CHECKING(rtems target cpu)
     97changequote(<<, >>)dnl
     98target_cpu=`echo $target | /usr/bin/sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     99changequote([, ])dnl
     100AC_MSG_RESULT($target_cpu)
     101])
  • configure

    r80868140 r1670eede  
    552552
    553553
    554 a29k_mk="c/src/exec/score/cpu/a29k/Makefile \
    555 c/src/lib/libbsp/a29k/Makefile \
    556 c/src/lib/libbsp/a29k/portsw/Makefile \
    557 c/src/lib/libbsp/a29k/portsw/console/Makefile \
    558 c/src/lib/libbsp/a29k/portsw/include/Makefile \
    559 c/src/lib/libbsp/a29k/portsw/shmsupp/Makefile \
    560 c/src/lib/libbsp/a29k/portsw/startup/Makefile \
    561 c/src/lib/libbsp/a29k/portsw/wrapup/Makefile \
    562 c/src/lib/start/a29k/Makefile"
    563 
    564554i386_mk="c/src/exec/score/cpu/i386/Makefile \
    565555c/src/lib/libbsp/i386/Makefile \
     
    590580c/src/lib/libbsp/i386/go32/timer/Makefile \
    591581c/src/lib/libbsp/i386/go32/wrapup/Makefile"
    592 
    593 m68k_mk="c/src/exec/score/cpu/m68k/Makefile \
    594 c/src/lib/libbsp/m68k/Makefile \
    595 c/src/lib/libbsp/m68k/dmv152/Makefile \
    596 c/src/lib/libbsp/m68k/dmv152/clock/Makefile \
    597 c/src/lib/libbsp/m68k/dmv152/console/Makefile \
    598 c/src/lib/libbsp/m68k/dmv152/include/Makefile \
    599 c/src/lib/libbsp/m68k/dmv152/spurious/Makefile \
    600 c/src/lib/libbsp/m68k/dmv152/startup/Makefile \
    601 c/src/lib/libbsp/m68k/dmv152/timer/Makefile \
    602 c/src/lib/libbsp/m68k/dmv152/wrapup/Makefile \
    603 c/src/lib/libbsp/m68k/efi332/Makefile \
    604 c/src/lib/libbsp/m68k/efi332/clock/Makefile \
    605 c/src/lib/libbsp/m68k/efi332/console/Makefile \
    606 c/src/lib/libbsp/m68k/efi332/include/Makefile \
    607 c/src/lib/libbsp/m68k/efi332/spurious/Makefile \
    608 c/src/lib/libbsp/m68k/efi332/startup/Makefile \
    609 c/src/lib/libbsp/m68k/efi332/start332/Makefile \
    610 c/src/lib/libbsp/m68k/efi332/timer/Makefile \
    611 c/src/lib/libbsp/m68k/efi332/wrapup/Makefile \
    612 c/src/lib/libbsp/m68k/efi68k/Makefile \
    613 c/src/lib/libbsp/m68k/efi68k/clock/Makefile \
    614 c/src/lib/libbsp/m68k/efi68k/console/Makefile \
    615 c/src/lib/libbsp/m68k/efi68k/include/Makefile \
    616 c/src/lib/libbsp/m68k/efi68k/spurious/Makefile \
    617 c/src/lib/libbsp/m68k/efi68k/startup/Makefile \
    618 c/src/lib/libbsp/m68k/efi68k/start68k/Makefile \
    619 c/src/lib/libbsp/m68k/efi68k/timer/Makefile \
    620 c/src/lib/libbsp/m68k/efi68k/wrapup/Makefile \
    621 c/src/lib/libbsp/m68k/gen68302/Makefile \
    622 c/src/lib/libbsp/m68k/gen68302/clock/Makefile \
    623 c/src/lib/libbsp/m68k/gen68302/console/Makefile \
    624 c/src/lib/libbsp/m68k/gen68302/include/Makefile \
    625 c/src/lib/libbsp/m68k/gen68302/start302/Makefile \
    626 c/src/lib/libbsp/m68k/gen68302/startup/Makefile \
    627 c/src/lib/libbsp/m68k/gen68302/timer/Makefile \
    628 c/src/lib/libbsp/m68k/gen68302/wrapup/Makefile \
    629 c/src/lib/libbsp/m68k/gen68360/Makefile \
    630 c/src/lib/libbsp/m68k/gen68360/clock/Makefile \
    631 c/src/lib/libbsp/m68k/gen68360/console/Makefile \
    632 c/src/lib/libbsp/m68k/gen68360/include/Makefile \
    633 c/src/lib/libbsp/m68k/gen68360/start360/Makefile \
    634 c/src/lib/libbsp/m68k/gen68360/startup/Makefile \
    635 c/src/lib/libbsp/m68k/gen68360/timer/Makefile \
    636 c/src/lib/libbsp/m68k/gen68360/network/Makefile \
    637 c/src/lib/libbsp/m68k/gen68360/wrapup/Makefile \
    638 c/src/lib/libbsp/m68k/idp/Makefile \
    639 c/src/lib/libbsp/m68k/idp/clock/Makefile \
    640 c/src/lib/libbsp/m68k/idp/console/Makefile \
    641 c/src/lib/libbsp/m68k/idp/include/Makefile \
    642 c/src/lib/libbsp/m68k/idp/startup/Makefile \
    643 c/src/lib/libbsp/m68k/idp/timer/Makefile \
    644 c/src/lib/libbsp/m68k/idp/wrapup/Makefile \
    645 c/src/lib/libbsp/m68k/mvme136/Makefile \
    646 c/src/lib/libbsp/m68k/mvme136/clock/Makefile \
    647 c/src/lib/libbsp/m68k/mvme136/console/Makefile \
    648 c/src/lib/libbsp/m68k/mvme136/include/Makefile \
    649 c/src/lib/libbsp/m68k/mvme136/shmsupp/Makefile \
    650 c/src/lib/libbsp/m68k/mvme136/startup/Makefile \
    651 c/src/lib/libbsp/m68k/mvme136/timer/Makefile \
    652 c/src/lib/libbsp/m68k/mvme136/wrapup/Makefile \
    653 c/src/lib/libbsp/m68k/mvme147/Makefile \
    654 c/src/lib/libbsp/m68k/mvme147/clock/Makefile \
    655 c/src/lib/libbsp/m68k/mvme147/console/Makefile \
    656 c/src/lib/libbsp/m68k/mvme147/include/Makefile \
    657 c/src/lib/libbsp/m68k/mvme147/startup/Makefile \
    658 c/src/lib/libbsp/m68k/mvme147/timer/Makefile \
    659 c/src/lib/libbsp/m68k/mvme147/wrapup/Makefile \
    660 c/src/lib/libbsp/m68k/mvme147s/Makefile \
    661 c/src/lib/libbsp/m68k/mvme147s/clock/Makefile \
    662 c/src/lib/libbsp/m68k/mvme147s/console/Makefile \
    663 c/src/lib/libbsp/m68k/mvme147s/include/Makefile \
    664 c/src/lib/libbsp/m68k/mvme147s/shmsupp/Makefile \
    665 c/src/lib/libbsp/m68k/mvme147s/startup/Makefile \
    666 c/src/lib/libbsp/m68k/mvme147s/timer/Makefile \
    667 c/src/lib/libbsp/m68k/mvme147s/wrapup/Makefile \
    668 c/src/lib/libbsp/m68k/mvme162/Makefile \
    669 c/src/lib/libbsp/m68k/mvme162/clock/Makefile \
    670 c/src/lib/libbsp/m68k/mvme162/console/Makefile \
    671 c/src/lib/libbsp/m68k/mvme162/consolex/Makefile \
    672 c/src/lib/libbsp/m68k/mvme162/include/Makefile \
    673 c/src/lib/libbsp/m68k/mvme162/startup/Makefile \
    674 c/src/lib/libbsp/m68k/mvme162/timer/Makefile \
    675 c/src/lib/libbsp/m68k/mvme162/tod/Makefile \
    676 c/src/lib/libbsp/m68k/mvme162/tools/Makefile \
    677 c/src/lib/libbsp/m68k/mvme162/wrapup/Makefile \
    678 c/src/lib/libbsp/m68k/ods68302/Makefile \
    679 c/src/lib/libbsp/m68k/ods68302/clock/Makefile \
    680 c/src/lib/libbsp/m68k/ods68302/console/Makefile \
    681 c/src/lib/libbsp/m68k/ods68302/include/Makefile \
    682 c/src/lib/libbsp/m68k/ods68302/start302/Makefile \
    683 c/src/lib/libbsp/m68k/ods68302/startup/Makefile \
    684 c/src/lib/libbsp/m68k/ods68302/timer/Makefile \
    685 c/src/lib/libbsp/m68k/ods68302/wrapup/Makefile \
    686 c/src/lib/libcpu/m68k/Makefile \
    687 c/src/lib/libcpu/m68k/m68040/Makefile \
    688 c/src/lib/libcpu/m68k/m68040/fpsp/Makefile \
    689 c/src/lib/start/m68k/Makefile"
    690 
    691 no_cpu_mk="c/src/exec/score/cpu/no_cpu/Makefile \
    692 c/src/lib/libbsp/no_cpu/Makefile \
    693 c/src/lib/libbsp/no_cpu/no_bsp/Makefile \
    694 c/src/lib/libbsp/no_cpu/no_bsp/clock/Makefile \
    695 c/src/lib/libbsp/no_cpu/no_bsp/console/Makefile \
    696 c/src/lib/libbsp/no_cpu/no_bsp/include/Makefile \
    697 c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/Makefile \
    698 c/src/lib/libbsp/no_cpu/no_bsp/startup/Makefile \
    699 c/src/lib/libbsp/no_cpu/no_bsp/timer/Makefile \
    700 c/src/lib/libbsp/no_cpu/no_bsp/wrapup/Makefile"
    701 
    702 sparc_mk="c/src/exec/score/cpu/sparc/Makefile \
    703 c/src/lib/libbsp/sparc/Makefile \
    704 c/src/lib/libbsp/sparc/erc32/Makefile \
    705 c/src/lib/libbsp/sparc/erc32/clock/Makefile \
    706 c/src/lib/libbsp/sparc/erc32/console/Makefile \
    707 c/src/lib/libbsp/sparc/erc32/include/Makefile \
    708 c/src/lib/libbsp/sparc/erc32/startsis/Makefile \
    709 c/src/lib/libbsp/sparc/erc32/startup/Makefile \
    710 c/src/lib/libbsp/sparc/erc32/timer/Makefile \
    711 c/src/lib/libbsp/sparc/erc32/wrapup/Makefile \
    712 c/src/lib/libcpu/sparc/Makefile \
    713 c/src/lib/libcpu/sparc/reg_win/Makefile"
    714 
    715 hppa1_1_mk="c/src/exec/score/cpu/hppa1_1/Makefile \
    716 c/src/exec/score/tools/hppa1_1/Makefile \
    717 c/src/lib/libbsp/hppa1_1/Makefile \
    718 c/src/lib/libbsp/hppa1_1/pxfl/Makefile \
    719 c/src/lib/libbsp/hppa1_1/simhppa/Makefile \
    720 c/src/lib/libbsp/hppa1_1/simhppa/include/Makefile \
    721 c/src/lib/libbsp/hppa1_1/simhppa/shmsupp/Makefile \
    722 c/src/lib/libbsp/hppa1_1/simhppa/startup/Makefile \
    723 c/src/lib/libbsp/hppa1_1/simhppa/tools/Makefile \
    724 c/src/lib/libbsp/hppa1_1/simhppa/tty/Makefile \
    725 c/src/lib/libbsp/hppa1_1/simhppa/wrapup/Makefile \
    726 c/src/lib/libcpu/hppa1_1/Makefile \
    727 c/src/lib/libcpu/hppa1_1/clock/Makefile \
    728 c/src/lib/libcpu/hppa1_1/include/Makefile \
    729 c/src/lib/libcpu/hppa1_1/milli/Makefile \
    730 c/src/lib/libcpu/hppa1_1/runway/Makefile \
    731 c/src/lib/libcpu/hppa1_1/semaphore/Makefile \
    732 c/src/lib/libcpu/hppa1_1/timer/Makefile \
    733 c/src/lib/start/hppa1_1/Makefile"
    734 
    735 i960_mk="c/src/exec/score/cpu/i960/Makefile \
    736 c/src/lib/libbsp/i960/Makefile \
    737 c/src/lib/libbsp/i960/cvme961/Makefile \
    738 c/src/lib/libbsp/i960/cvme961/clock/Makefile \
    739 c/src/lib/libbsp/i960/cvme961/console/Makefile \
    740 c/src/lib/libbsp/i960/cvme961/include/Makefile \
    741 c/src/lib/libbsp/i960/cvme961/shmsupp/Makefile \
    742 c/src/lib/libbsp/i960/cvme961/startup/Makefile \
    743 c/src/lib/libbsp/i960/cvme961/timer/Makefile \
    744 c/src/lib/libbsp/i960/cvme961/wrapup/Makefile \
    745 c/src/lib/start/i960/Makefile"
    746 
    747 mips64orion_mk="c/src/exec/score/cpu/mips64orion/Makefile \
    748 c/src/lib/libbsp/mips64orion/Makefile \
    749 c/src/lib/libbsp/mips64orion/p4000/Makefile \
    750 c/src/lib/libbsp/mips64orion/p4000/console/Makefile \
    751 c/src/lib/libbsp/mips64orion/p4000/include/Makefile \
    752 c/src/lib/libbsp/mips64orion/p4000/liblnk/Makefile \
    753 c/src/lib/libbsp/mips64orion/p4000/startup/Makefile \
    754 c/src/lib/libbsp/mips64orion/p4000/wrapup/Makefile \
    755 c/src/lib/libcpu/mips64orion/Makefile \
    756 c/src/lib/libcpu/mips64orion/clock/Makefile \
    757 c/src/lib/libcpu/mips64orion/include/Makefile \
    758 c/src/lib/libcpu/mips64orion/timer/Makefile \
    759 c/src/lib/start/mips64orion/Makefile"
    760 
    761 powerpc_mk="c/src/exec/score/cpu/ppc/Makefile \
    762 c/src/lib/libbsp/ppc/Makefile \
    763 c/src/lib/libbsp/ppc/papyrus/Makefile \
    764 c/src/lib/libbsp/ppc/papyrus/dlentry/Makefile \
    765 c/src/lib/libbsp/ppc/papyrus/flashentry/Makefile \
    766 c/src/lib/libbsp/ppc/papyrus/include/Makefile \
    767 c/src/lib/libbsp/ppc/papyrus/startup/Makefile \
    768 c/src/lib/libbsp/ppc/papyrus/wrapup/Makefile \
    769 c/src/lib/libcpu/ppc/Makefile \
    770 c/src/lib/libcpu/ppc/ppc403/Makefile \
    771 c/src/lib/libcpu/ppc/ppc403/clock/Makefile \
    772 c/src/lib/libcpu/ppc/ppc403/console/Makefile \
    773 c/src/lib/libcpu/ppc/ppc403/include/Makefile \
    774 c/src/lib/libcpu/ppc/ppc403/timer/Makefile \
    775 c/src/lib/libcpu/ppc/ppc403/vectors/Makefile"
    776 
    777 posix_mk="c/src/exec/score/cpu/unix/Makefile \
    778 c/src/exec/score/tools/unix/Makefile \
    779 c/src/lib/libbsp/unix/Makefile \
    780 c/src/lib/libbsp/unix/posix/Makefile \
    781 c/src/lib/libbsp/unix/posix/clock/Makefile \
    782 c/src/lib/libbsp/unix/posix/console/Makefile \
    783 c/src/lib/libbsp/unix/posix/include/Makefile \
    784 c/src/lib/libbsp/unix/posix/shmsupp/Makefile \
    785 c/src/lib/libbsp/unix/posix/startup/Makefile \
    786 c/src/lib/libbsp/unix/posix/timer/Makefile \
    787 c/src/lib/libbsp/unix/posix/wrapup/Makefile"
    788582
    789583ka9q_mk="c/src/lib/libka9q/Makefile"
     
    960754
    961755echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    962 echo "configure:963: checking whether ${MAKE-make} sets \${MAKE}" >&5
     756echo "configure:757: checking whether ${MAKE-make} sets \${MAKE}" >&5
    963757set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    964758if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    1033827
    1034828echo $ac_n "checking host system type""... $ac_c" 1>&6
    1035 echo "configure:1036: checking host system type" >&5
     829echo "configure:830: checking host system type" >&5
    1036830
    1037831host_alias=$host
     
    1054848
    1055849echo $ac_n "checking target system type""... $ac_c" 1>&6
    1056 echo "configure:1057: checking target system type" >&5
     850echo "configure:851: checking target system type" >&5
    1057851
    1058852target_alias=$target
     
    1072866
    1073867echo $ac_n "checking build system type""... $ac_c" 1>&6
    1074 echo "configure:1075: checking build system type" >&5
     868echo "configure:869: checking build system type" >&5
    1075869
    1076870build_alias=$build
     
    1197991RTEMS_PREFIX=${target_cpu}-${target_vendor}
    1198992
    1199 #
    1200 #  Generate the configure.host file
    1201 #
    1202 
    1203993
    1204994# Extract the first word of "cat", so it can be a program name with args.
    1205995set dummy cat; ac_word=$2
    1206996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1207 echo "configure:1208: checking for $ac_word" >&5
     997echo "configure:998: checking for $ac_word" >&5
    1208998if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
    1209999  echo $ac_n "(cached) $ac_c" 1>&6
     
    12361026set dummy rm; ac_word=$2
    12371027echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1238 echo "configure:1239: checking for $ac_word" >&5
     1028echo "configure:1029: checking for $ac_word" >&5
    12391029if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
    12401030  echo $ac_n "(cached) $ac_c" 1>&6
     
    12671057set dummy cp; ac_word=$2
    12681058echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1269 echo "configure:1270: checking for $ac_word" >&5
     1059echo "configure:1060: checking for $ac_word" >&5
    12701060if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
    12711061  echo $ac_n "(cached) $ac_c" 1>&6
     
    12981088set dummy mv; ac_word=$2
    12991089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1300 echo "configure:1301: checking for $ac_word" >&5
     1090echo "configure:1091: checking for $ac_word" >&5
    13011091if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
    13021092  echo $ac_n "(cached) $ac_c" 1>&6
     
    13291119set dummy ln; ac_word=$2
    13301120echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1331 echo "configure:1332: checking for $ac_word" >&5
     1121echo "configure:1122: checking for $ac_word" >&5
    13321122if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
    13331123  echo $ac_n "(cached) $ac_c" 1>&6
     
    13601150set dummy chmod; ac_word=$2
    13611151echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1362 echo "configure:1363: checking for $ac_word" >&5
     1152echo "configure:1153: checking for $ac_word" >&5
    13631153if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
    13641154  echo $ac_n "(cached) $ac_c" 1>&6
     
    13911181set dummy sort; ac_word=$2
    13921182echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1393 echo "configure:1394: checking for $ac_word" >&5
     1183echo "configure:1184: checking for $ac_word" >&5
    13941184if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
    13951185  echo $ac_n "(cached) $ac_c" 1>&6
     
    14231213set dummy mkdir; ac_word=$2
    14241214echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1425 echo "configure:1426: checking for $ac_word" >&5
     1215echo "configure:1216: checking for $ac_word" >&5
    14261216if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
    14271217  echo $ac_n "(cached) $ac_c" 1>&6
     
    14551245
    14561246echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
    1457 echo "configure:1458: checking for working $MKDIR -m 0755" >&5
     1247echo "configure:1248: checking for working $MKDIR -m 0755" >&5
    14581248if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
    14591249  echo $ac_n "(cached) $ac_c" 1>&6
     
    14721262
    14731263echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
    1474 echo "configure:1475: checking for working $MKDIR -p" >&5
     1264echo "configure:1265: checking for working $MKDIR -p" >&5
    14751265if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
    14761266  echo $ac_n "(cached) $ac_c" 1>&6
     
    14921282set dummy enscript; ac_word=$2
    14931283echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1494 echo "configure:1495: checking for $ac_word" >&5
     1284echo "configure:1285: checking for $ac_word" >&5
    14951285if eval "test \"`echo '$''{'ac_cv_path_PR'+set}'`\" = set"; then
    14961286  echo $ac_n "(cached) $ac_c" 1>&6
     
    15261316set dummy mp; ac_word=$2
    15271317echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1528 echo "configure:1529: checking for $ac_word" >&5
     1318echo "configure:1319: checking for $ac_word" >&5
    15291319if eval "test \"`echo '$''{'ac_cv_path_PR'+set}'`\" = set"; then
    15301320  echo $ac_n "(cached) $ac_c" 1>&6
     
    15611351set dummy pr; ac_word=$2
    15621352echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1563 echo "configure:1564: checking for $ac_word" >&5
     1353echo "configure:1354: checking for $ac_word" >&5
    15641354if eval "test \"`echo '$''{'ac_cv_path_PR'+set}'`\" = set"; then
    15651355  echo $ac_n "(cached) $ac_c" 1>&6
     
    16031393set dummy $ac_prog; ac_word=$2
    16041394echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1605 echo "configure:1606: checking for $ac_word" >&5
     1395echo "configure:1396: checking for $ac_word" >&5
    16061396if eval "test \"`echo '$''{'ac_cv_path_PRINT'+set}'`\" = set"; then
    16071397  echo $ac_n "(cached) $ac_c" 1>&6
     
    16381428set dummy touch; ac_word=$2
    16391429echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1640 echo "configure:1641: checking for $ac_word" >&5
     1430echo "configure:1431: checking for $ac_word" >&5
    16411431if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
    16421432  echo $ac_n "(cached) $ac_c" 1>&6
     
    16691459set dummy cmp; ac_word=$2
    16701460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1671 echo "configure:1672: checking for $ac_word" >&5
     1461echo "configure:1462: checking for $ac_word" >&5
    16721462if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
    16731463  echo $ac_n "(cached) $ac_c" 1>&6
     
    17001490set dummy dirname; ac_word=$2
    17011491echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1702 echo "configure:1703: checking for $ac_word" >&5
     1492echo "configure:1493: checking for $ac_word" >&5
    17031493if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
    17041494  echo $ac_n "(cached) $ac_c" 1>&6
     
    17311521set dummy basename; ac_word=$2
    17321522echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1733 echo "configure:1734: checking for $ac_word" >&5
     1523echo "configure:1524: checking for $ac_word" >&5
    17341524if eval "test \"`echo '$''{'ac_cv_path_BASENAME'+set}'`\" = set"; then
    17351525  echo $ac_n "(cached) $ac_c" 1>&6
     
    17631553set dummy unifdef; ac_word=$2
    17641554echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1765 echo "configure:1766: checking for $ac_word" >&5
     1555echo "configure:1556: checking for $ac_word" >&5
    17661556if eval "test \"`echo '$''{'ac_cv_path_UNIFDEF'+set}'`\" = set"; then
    17671557  echo $ac_n "(cached) $ac_c" 1>&6
     
    17941584set dummy ed; ac_word=$2
    17951585echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1796 echo "configure:1797: checking for $ac_word" >&5
     1586echo "configure:1587: checking for $ac_word" >&5
    17971587if eval "test \"`echo '$''{'ac_cv_path_ED'+set}'`\" = set"; then
    17981588  echo $ac_n "(cached) $ac_c" 1>&6
     
    18251615set dummy sed; ac_word=$2
    18261616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1827 echo "configure:1828: checking for $ac_word" >&5
     1617echo "configure:1618: checking for $ac_word" >&5
    18281618if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
    18291619  echo $ac_n "(cached) $ac_c" 1>&6
     
    18581648set dummy $ac_prog; ac_word=$2
    18591649echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1860 echo "configure:1861: checking for $ac_word" >&5
     1650echo "configure:1651: checking for $ac_word" >&5
    18611651if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
    18621652  echo $ac_n "(cached) $ac_c" 1>&6
     
    18941684set dummy $ac_prog; ac_word=$2
    18951685echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1896 echo "configure:1897: checking for $ac_word" >&5
     1686echo "configure:1687: checking for $ac_word" >&5
    18971687if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
    18981688  echo $ac_n "(cached) $ac_c" 1>&6
     
    19291719set dummy fgrep; ac_word=$2
    19301720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1931 echo "configure:1932: checking for $ac_word" >&5
     1721echo "configure:1722: checking for $ac_word" >&5
    19321722if eval "test \"`echo '$''{'ac_cv_path_FGREP'+set}'`\" = set"; then
    19331723  echo $ac_n "(cached) $ac_c" 1>&6
     
    19601750set dummy grep; ac_word=$2
    19611751echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1962 echo "configure:1963: checking for $ac_word" >&5
     1752echo "configure:1753: checking for $ac_word" >&5
    19631753if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
    19641754  echo $ac_n "(cached) $ac_c" 1>&6
     
    19911781set dummy egrep; ac_word=$2
    19921782echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1993 echo "configure:1994: checking for $ac_word" >&5
     1783echo "configure:1784: checking for $ac_word" >&5
    19941784if eval "test \"`echo '$''{'ac_cv_path_EGREP'+set}'`\" = set"; then
    19951785  echo $ac_n "(cached) $ac_c" 1>&6
     
    20231813set dummy catman; ac_word=$2
    20241814echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2025 echo "configure:2026: checking for $ac_word" >&5
     1815echo "configure:1816: checking for $ac_word" >&5
    20261816if eval "test \"`echo '$''{'ac_cv_path_CATMAN'+set}'`\" = set"; then
    20271817  echo $ac_n "(cached) $ac_c" 1>&6
     
    20571847set dummy $ac_prog; ac_word=$2
    20581848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2059 echo "configure:2060: checking for $ac_word" >&5
     1849echo "configure:1850: checking for $ac_word" >&5
    20601850if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    20611851  echo $ac_n "(cached) $ac_c" 1>&6
     
    20981888set dummy ident; ac_word=$2
    20991889echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2100 echo "configure:2101: checking for $ac_word" >&5
     1890echo "configure:1891: checking for $ac_word" >&5
    21011891if eval "test \"`echo '$''{'ac_cv_path_RCS_IDENT'+set}'`\" = set"; then
    21021892  echo $ac_n "(cached) $ac_c" 1>&6
     
    21291919set dummy co; ac_word=$2
    21301920echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2131 echo "configure:2132: checking for $ac_word" >&5
     1921echo "configure:1922: checking for $ac_word" >&5
    21321922if eval "test \"`echo '$''{'ac_cv_path_RCS_CO'+set}'`\" = set"; then
    21331923  echo $ac_n "(cached) $ac_c" 1>&6
     
    21601950
    21611951
     1952
     1953echo "TARGET"
     1954echo "cpu    $target_cpu"
     1955echo "os     $target_os"
     1956echo "vendor $target_vendor"
     1957
     1958
     1959case "${target}" in
     1960  # hpux unix port should go here
     1961  hppa1.1-rtems*)
     1962        target_cpu=hppa1_1
     1963        ;;
     1964  i[3456]86-go32-rtems*)
     1965        target_cpu=i386
     1966        rtems_bsp="go32 go32_p5"
     1967        aux_makefiles=$i386_go32_mk
     1968        RTEMS_HAS_POSIX_API=no
     1969        ;;
     1970  i[3456]86-rtems*)
     1971        target_cpu=i386
     1972        rtems_bsp="force386 i386ex"
     1973        aux_makefiles=$i386_mk
     1974        ;;
     1975  i[3456]86-pc-linux*)         # unix "simulator" port
     1976        target_cpu=unix
     1977        RTEMS_HAS_POSIX_API=no
     1978        ;;
     1979  no_cpu-rtems*)
     1980        target_cpu=no_cpu
     1981        RTEMS_HAS_POSIX_API=no
     1982        ;;
     1983  powerpc-rtems*|ppc-rtems*)
     1984        target_cpu=ppc
     1985        ;;
     1986  sparc-sun-solaris*)             # unix "simulator" port
     1987        target_cpu=unix
     1988        RTEMS_HAS_POSIX_API=no
     1989        ;;
     1990  *)
     1991        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
     1992echo "configure:1993: checking rtems target cpu" >&5
     1993target_cpu=`echo $target | /usr/bin/sed 's%^\([^-]*\)-\(.*\)$%\1%'`
     1994echo "$ac_t""$target_cpu" 1>&6
     1995
     1996        ;;
     1997esac
     1998
     1999echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
     2000echo "configure:2001: checking if cpu $target_cpu is supported" >&5
     2001if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
     2002  echo "$ac_t""yes" 1>&6
     2003  makefiles="c/src/exec/score/cpu/$target_cpu/Makefile"
     2004else
     2005  { echo "configure: error: no" 1>&2; exit 1; }
     2006fi
     2007
     2008 echo $ac_n "checking for Makefiles in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
     2009echo "configure:2010: checking for Makefiles in c/src/exec/score/tools/$target_cpu" >&5
     2010  if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
     2011      test -f $srcdir/c/src/exec/score/tools/$target_cpu/Makefile.in && \
     2012    makefiles="$makefiles c/src/exec/score/tools/$target_cpu/Makefile"
     2013
     2014  itemlist=`ls $srcdir/c/src/exec/score/tools/$target_cpu`
     2015  for item in $itemlist; do
     2016    if test -d "$srcdir/c/src/exec/score/tools/$target_cpu/$item"; then
     2017        test -f $srcdir/c/src/exec/score/tools/$target_cpu/$item/Makefile.in && \
     2018    makefiles="$makefiles c/src/exec/score/tools/$target_cpu/$item/Makefile"
     2019
     2020  item0list=`ls $srcdir/c/src/exec/score/tools/$target_cpu/$item`
     2021  for item0 in $item0list; do
     2022    if test -d "$srcdir/c/src/exec/score/tools/$target_cpu/$item/$item0"; then
     2023       test -f $srcdir/c/src/exec/score/tools/$target_cpu/$item/$item0/Makefile.in && \
     2024    makefiles="$makefiles c/src/exec/score/tools/$target_cpu/$item/$item0/Makefile"
     2025
     2026     
     2027    fi
     2028  done
     2029
     2030   
     2031    fi
     2032  done
     2033
     2034    echo "$ac_t""done" 1>&6
     2035  else
     2036    echo "$ac_t""no" 1>&6
     2037  fi
     2038
     2039
     2040if test -n "$aux_makefiles";then
     2041  makefiles="$makefiles $aux_makefiles"
     2042  echo "MAKEFILES PRESET TO $makefiles"
     2043else
     2044echo $ac_n "checking for c/src/lib/libbsp/$target_cpu""... $ac_c" 1>&6
     2045echo "configure:2046: checking for c/src/lib/libbsp/$target_cpu" >&5
     2046if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
     2047  echo "$ac_t""yes" 1>&6
     2048  files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
     2049  for file in $files; do
     2050    case $file in
     2051      shared*);;
     2052      Makefile*);;
     2053      READ*);;
     2054      *) rtems_bsp="$rtems_bsp $file";;
     2055    esac;
     2056  done
     2057   echo $ac_n "checking for Makefiles in c/src/lib/libbsp/$target_cpu""... $ac_c" 1>&6
     2058echo "configure:2059: checking for Makefiles in c/src/lib/libbsp/$target_cpu" >&5
     2059  if test -d $srcdir/c/src/lib/libbsp/$target_cpu; then
     2060      test -f $srcdir/c/src/lib/libbsp/$target_cpu/Makefile.in && \
     2061    makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
     2062
     2063  itemlist=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
     2064  for item in $itemlist; do
     2065    if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$item"; then
     2066        test -f $srcdir/c/src/lib/libbsp/$target_cpu/$item/Makefile.in && \
     2067    makefiles="$makefiles c/src/lib/libbsp/$target_cpu/$item/Makefile"
     2068
     2069  item0list=`ls $srcdir/c/src/lib/libbsp/$target_cpu/$item`
     2070  for item0 in $item0list; do
     2071    if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$item/$item0"; then
     2072       test -f $srcdir/c/src/lib/libbsp/$target_cpu/$item/$item0/Makefile.in && \
     2073    makefiles="$makefiles c/src/lib/libbsp/$target_cpu/$item/$item0/Makefile"
     2074
     2075     
     2076    fi
     2077  done
     2078
     2079   
     2080    fi
     2081  done
     2082
     2083    echo "$ac_t""done" 1>&6
     2084  else
     2085    echo "$ac_t""no" 1>&6
     2086  fi
     2087
     2088else
     2089  echo "$ac_t""no" 1>&6
     2090fi
     2091
     2092 echo $ac_n "checking for Makefiles in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
     2093echo "configure:2094: checking for Makefiles in c/src/lib/libcpu/$target_cpu" >&5
     2094  if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
     2095      test -f $srcdir/c/src/lib/libcpu/$target_cpu/Makefile.in && \
     2096    makefiles="$makefiles c/src/lib/libcpu/$target_cpu/Makefile"
     2097
     2098  itemlist=`ls $srcdir/c/src/lib/libcpu/$target_cpu`
     2099  for item in $itemlist; do
     2100    if test -d "$srcdir/c/src/lib/libcpu/$target_cpu/$item"; then
     2101        test -f $srcdir/c/src/lib/libcpu/$target_cpu/$item/Makefile.in && \
     2102    makefiles="$makefiles c/src/lib/libcpu/$target_cpu/$item/Makefile"
     2103
     2104  item0list=`ls $srcdir/c/src/lib/libcpu/$target_cpu/$item`
     2105  for item0 in $item0list; do
     2106    if test -d "$srcdir/c/src/lib/libcpu/$target_cpu/$item/$item0"; then
     2107       test -f $srcdir/c/src/lib/libcpu/$target_cpu/$item/$item0/Makefile.in && \
     2108    makefiles="$makefiles c/src/lib/libcpu/$target_cpu/$item/$item0/Makefile"
     2109
     2110     
     2111    fi
     2112  done
     2113
     2114   
     2115    fi
     2116  done
     2117
     2118    echo "$ac_t""done" 1>&6
     2119  else
     2120    echo "$ac_t""no" 1>&6
     2121  fi
     2122
     2123 echo $ac_n "checking for Makefiles in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
     2124echo "configure:2125: checking for Makefiles in c/src/lib/start/$target_cpu" >&5
     2125  if test -d $srcdir/c/src/lib/start/$target_cpu; then
     2126      test -f $srcdir/c/src/lib/start/$target_cpu/Makefile.in && \
     2127    makefiles="$makefiles c/src/lib/start/$target_cpu/Makefile"
     2128
     2129  itemlist=`ls $srcdir/c/src/lib/start/$target_cpu`
     2130  for item in $itemlist; do
     2131    if test -d "$srcdir/c/src/lib/start/$target_cpu/$item"; then
     2132        test -f $srcdir/c/src/lib/start/$target_cpu/$item/Makefile.in && \
     2133    makefiles="$makefiles c/src/lib/start/$target_cpu/$item/Makefile"
     2134
     2135  item0list=`ls $srcdir/c/src/lib/start/$target_cpu/$item`
     2136  for item0 in $item0list; do
     2137    if test -d "$srcdir/c/src/lib/start/$target_cpu/$item/$item0"; then
     2138       test -f $srcdir/c/src/lib/start/$target_cpu/$item/$item0/Makefile.in && \
     2139    makefiles="$makefiles c/src/lib/start/$target_cpu/$item/$item0/Makefile"
     2140
     2141     
     2142    fi
     2143  done
     2144
     2145   
     2146    fi
     2147  done
     2148
     2149    echo "$ac_t""done" 1>&6
     2150  else
     2151    echo "$ac_t""no" 1>&6
     2152  fi
     2153
     2154
     2155fi      # aux_makefiles
     2156
     2157echo "MAKEFILES $makefiles"
     2158
     2159
     2160
    21622161#
    21632162#  Target configurations are listed in alphabetical order. 
    21642163#  The BSPs for a target configuration are also listed in alphabetical order.
    21652164#
    2166 
    2167 case "${target}" in
    2168   a29k-rtems*)
    2169         rtems_bsp=portsw
    2170         makefiles=$a29k_mk
    2171         ;;
    2172   # hpux unix port should go here
    2173   hppa1.1-rtems*)
    2174         rtems_bsp=simhppa
    2175         makefiles=$hppa1_1_mk
    2176         ;;
    2177   i[3456]86-go32-rtems*)
    2178         rtems_bsp="go32 go32_p5"
    2179         makefiles=$i386_go32_mk
    2180         RTEMS_HAS_POSIX_API=no
    2181         ;;
    2182   i[3456]86-rtems*)
    2183         rtems_bsp="force386 i386ex"
    2184         makefiles=$i386_mk
    2185         ;;
    2186   i[3456]86-pc-linux*)         # unix "simulator" port
    2187         rtems_bsp=posix
    2188         makefiles=$posix_mk
    2189         RTEMS_HAS_POSIX_API=no
    2190         ;;
    2191   i960-rtems*)
    2192         rtems_bsp=cvme961
    2193         makefiles=$i960_mk
    2194         ;;
    2195   m68k-rtems*)
    2196         rtems_bsp="dmv152 efi332 efi68k gen68302 gen68360 gen68360_040 idp \
    2197                    mvme136 mvme147 mvme147s mvme162 mvme162lx ods68302"
    2198         makefiles=$m68k_mk
    2199         ;;
    2200   mips64orion-rtems*)
    2201         rtems_bsp="p4600 p4650"
    2202         makefiles=$mips64orion_mk
    2203         ;;
    2204   no_cpu-rtems*)
    2205         rtems_bsp=no_bsp
    2206         makefiles=$no_cpu_mk
    2207         RTEMS_HAS_POSIX_API=no
    2208         ;;
    2209   powerpc-rtems*|ppc-rtems*)
    2210         rtems_bsp=papyrus
    2211         makefiles=$powerpc_mk
    2212         ;;
    2213   sparc-sun-solaris*)             # unix "simulator" port
    2214         rtems_bsp=posix
    2215         makefiles=$posix_mk
    2216         RTEMS_HAS_POSIX_API=no
    2217         ;;
    2218   sparc-rtems*)         
    2219         rtems_bsp=erc32
    2220         makefiles=$sparc_mk
    2221         ;;
    2222   *)                   
    2223         rtems_bsp=no_bsp
    2224         makefiles=$no_cpu_mk
    2225         echo Error: RTEMS is not supported on target: $target
    2226         exit 1
    2227         ;;
    2228 esac
    22292165
    22302166
     
    22372173fi
    22382174
    2239 
    22402175echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    2241 echo "configure:2242: checking whether ln -s works" >&5
     2176echo "configure:2177: checking whether ln -s works" >&5
    22422177if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    22432178  echo $ac_n "(cached) $ac_c" 1>&6
     
    22942229RTEMS_BSP=$enableval
    22952230fi
     2231
    22962232
    22972233
     
    25042440c/src/tests/tools/unix/posix/Makefile
    25052441$makefiles
    2506 c/update-tools/Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     2442c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    25072443EOF
    25082444cat >> $CONFIG_STATUS <<EOF
     
    27122648c/src/tests/tools/unix/posix/Makefile
    27132649$makefiles
    2714 c/update-tools/Makefile "}
     2650c/update-tools/Makefile"}
    27152651EOF
    27162652cat >> $CONFIG_STATUS <<\EOF
  • configure.in

    r80868140 r1670eede  
    22AC_PREREQ(2.12)
    33AC_INIT(README)
    4 
    5 a29k_mk="c/src/exec/score/cpu/a29k/Makefile \
    6 c/src/lib/libbsp/a29k/Makefile \
    7 c/src/lib/libbsp/a29k/portsw/Makefile \
    8 c/src/lib/libbsp/a29k/portsw/console/Makefile \
    9 c/src/lib/libbsp/a29k/portsw/include/Makefile \
    10 c/src/lib/libbsp/a29k/portsw/shmsupp/Makefile \
    11 c/src/lib/libbsp/a29k/portsw/startup/Makefile \
    12 c/src/lib/libbsp/a29k/portsw/wrapup/Makefile \
    13 c/src/lib/start/a29k/Makefile"
    144
    155i386_mk="c/src/exec/score/cpu/i386/Makefile \
     
    4131c/src/lib/libbsp/i386/go32/timer/Makefile \
    4232c/src/lib/libbsp/i386/go32/wrapup/Makefile"
    43 
    44 m68k_mk="c/src/exec/score/cpu/m68k/Makefile \
    45 c/src/lib/libbsp/m68k/Makefile \
    46 c/src/lib/libbsp/m68k/dmv152/Makefile \
    47 c/src/lib/libbsp/m68k/dmv152/clock/Makefile \
    48 c/src/lib/libbsp/m68k/dmv152/console/Makefile \
    49 c/src/lib/libbsp/m68k/dmv152/include/Makefile \
    50 c/src/lib/libbsp/m68k/dmv152/spurious/Makefile \
    51 c/src/lib/libbsp/m68k/dmv152/startup/Makefile \
    52 c/src/lib/libbsp/m68k/dmv152/timer/Makefile \
    53 c/src/lib/libbsp/m68k/dmv152/wrapup/Makefile \
    54 c/src/lib/libbsp/m68k/efi332/Makefile \
    55 c/src/lib/libbsp/m68k/efi332/clock/Makefile \
    56 c/src/lib/libbsp/m68k/efi332/console/Makefile \
    57 c/src/lib/libbsp/m68k/efi332/include/Makefile \
    58 c/src/lib/libbsp/m68k/efi332/spurious/Makefile \
    59 c/src/lib/libbsp/m68k/efi332/startup/Makefile \
    60 c/src/lib/libbsp/m68k/efi332/start332/Makefile \
    61 c/src/lib/libbsp/m68k/efi332/timer/Makefile \
    62 c/src/lib/libbsp/m68k/efi332/wrapup/Makefile \
    63 c/src/lib/libbsp/m68k/efi68k/Makefile \
    64 c/src/lib/libbsp/m68k/efi68k/clock/Makefile \
    65 c/src/lib/libbsp/m68k/efi68k/console/Makefile \
    66 c/src/lib/libbsp/m68k/efi68k/include/Makefile \
    67 c/src/lib/libbsp/m68k/efi68k/spurious/Makefile \
    68 c/src/lib/libbsp/m68k/efi68k/startup/Makefile \
    69 c/src/lib/libbsp/m68k/efi68k/start68k/Makefile \
    70 c/src/lib/libbsp/m68k/efi68k/timer/Makefile \
    71 c/src/lib/libbsp/m68k/efi68k/wrapup/Makefile \
    72 c/src/lib/libbsp/m68k/gen68302/Makefile \
    73 c/src/lib/libbsp/m68k/gen68302/clock/Makefile \
    74 c/src/lib/libbsp/m68k/gen68302/console/Makefile \
    75 c/src/lib/libbsp/m68k/gen68302/include/Makefile \
    76 c/src/lib/libbsp/m68k/gen68302/start302/Makefile \
    77 c/src/lib/libbsp/m68k/gen68302/startup/Makefile \
    78 c/src/lib/libbsp/m68k/gen68302/timer/Makefile \
    79 c/src/lib/libbsp/m68k/gen68302/wrapup/Makefile \
    80 c/src/lib/libbsp/m68k/gen68360/Makefile \
    81 c/src/lib/libbsp/m68k/gen68360/clock/Makefile \
    82 c/src/lib/libbsp/m68k/gen68360/console/Makefile \
    83 c/src/lib/libbsp/m68k/gen68360/include/Makefile \
    84 c/src/lib/libbsp/m68k/gen68360/start360/Makefile \
    85 c/src/lib/libbsp/m68k/gen68360/startup/Makefile \
    86 c/src/lib/libbsp/m68k/gen68360/timer/Makefile \
    87 c/src/lib/libbsp/m68k/gen68360/network/Makefile \
    88 c/src/lib/libbsp/m68k/gen68360/wrapup/Makefile \
    89 c/src/lib/libbsp/m68k/idp/Makefile \
    90 c/src/lib/libbsp/m68k/idp/clock/Makefile \
    91 c/src/lib/libbsp/m68k/idp/console/Makefile \
    92 c/src/lib/libbsp/m68k/idp/include/Makefile \
    93 c/src/lib/libbsp/m68k/idp/startup/Makefile \
    94 c/src/lib/libbsp/m68k/idp/timer/Makefile \
    95 c/src/lib/libbsp/m68k/idp/wrapup/Makefile \
    96 c/src/lib/libbsp/m68k/mvme136/Makefile \
    97 c/src/lib/libbsp/m68k/mvme136/clock/Makefile \
    98 c/src/lib/libbsp/m68k/mvme136/console/Makefile \
    99 c/src/lib/libbsp/m68k/mvme136/include/Makefile \
    100 c/src/lib/libbsp/m68k/mvme136/shmsupp/Makefile \
    101 c/src/lib/libbsp/m68k/mvme136/startup/Makefile \
    102 c/src/lib/libbsp/m68k/mvme136/timer/Makefile \
    103 c/src/lib/libbsp/m68k/mvme136/wrapup/Makefile \
    104 c/src/lib/libbsp/m68k/mvme147/Makefile \
    105 c/src/lib/libbsp/m68k/mvme147/clock/Makefile \
    106 c/src/lib/libbsp/m68k/mvme147/console/Makefile \
    107 c/src/lib/libbsp/m68k/mvme147/include/Makefile \
    108 c/src/lib/libbsp/m68k/mvme147/startup/Makefile \
    109 c/src/lib/libbsp/m68k/mvme147/timer/Makefile \
    110 c/src/lib/libbsp/m68k/mvme147/wrapup/Makefile \
    111 c/src/lib/libbsp/m68k/mvme147s/Makefile \
    112 c/src/lib/libbsp/m68k/mvme147s/clock/Makefile \
    113 c/src/lib/libbsp/m68k/mvme147s/console/Makefile \
    114 c/src/lib/libbsp/m68k/mvme147s/include/Makefile \
    115 c/src/lib/libbsp/m68k/mvme147s/shmsupp/Makefile \
    116 c/src/lib/libbsp/m68k/mvme147s/startup/Makefile \
    117 c/src/lib/libbsp/m68k/mvme147s/timer/Makefile \
    118 c/src/lib/libbsp/m68k/mvme147s/wrapup/Makefile \
    119 c/src/lib/libbsp/m68k/mvme162/Makefile \
    120 c/src/lib/libbsp/m68k/mvme162/clock/Makefile \
    121 c/src/lib/libbsp/m68k/mvme162/console/Makefile \
    122 c/src/lib/libbsp/m68k/mvme162/consolex/Makefile \
    123 c/src/lib/libbsp/m68k/mvme162/include/Makefile \
    124 c/src/lib/libbsp/m68k/mvme162/startup/Makefile \
    125 c/src/lib/libbsp/m68k/mvme162/timer/Makefile \
    126 c/src/lib/libbsp/m68k/mvme162/tod/Makefile \
    127 c/src/lib/libbsp/m68k/mvme162/tools/Makefile \
    128 c/src/lib/libbsp/m68k/mvme162/wrapup/Makefile \
    129 c/src/lib/libbsp/m68k/ods68302/Makefile \
    130 c/src/lib/libbsp/m68k/ods68302/clock/Makefile \
    131 c/src/lib/libbsp/m68k/ods68302/console/Makefile \
    132 c/src/lib/libbsp/m68k/ods68302/include/Makefile \
    133 c/src/lib/libbsp/m68k/ods68302/start302/Makefile \
    134 c/src/lib/libbsp/m68k/ods68302/startup/Makefile \
    135 c/src/lib/libbsp/m68k/ods68302/timer/Makefile \
    136 c/src/lib/libbsp/m68k/ods68302/wrapup/Makefile \
    137 c/src/lib/libcpu/m68k/Makefile \
    138 c/src/lib/libcpu/m68k/m68040/Makefile \
    139 c/src/lib/libcpu/m68k/m68040/fpsp/Makefile \
    140 c/src/lib/start/m68k/Makefile"
    141 
    142 no_cpu_mk="c/src/exec/score/cpu/no_cpu/Makefile \
    143 c/src/lib/libbsp/no_cpu/Makefile \
    144 c/src/lib/libbsp/no_cpu/no_bsp/Makefile \
    145 c/src/lib/libbsp/no_cpu/no_bsp/clock/Makefile \
    146 c/src/lib/libbsp/no_cpu/no_bsp/console/Makefile \
    147 c/src/lib/libbsp/no_cpu/no_bsp/include/Makefile \
    148 c/src/lib/libbsp/no_cpu/no_bsp/shmsupp/Makefile \
    149 c/src/lib/libbsp/no_cpu/no_bsp/startup/Makefile \
    150 c/src/lib/libbsp/no_cpu/no_bsp/timer/Makefile \
    151 c/src/lib/libbsp/no_cpu/no_bsp/wrapup/Makefile"
    152 
    153 sparc_mk="c/src/exec/score/cpu/sparc/Makefile \
    154 c/src/lib/libbsp/sparc/Makefile \
    155 c/src/lib/libbsp/sparc/erc32/Makefile \
    156 c/src/lib/libbsp/sparc/erc32/clock/Makefile \
    157 c/src/lib/libbsp/sparc/erc32/console/Makefile \
    158 c/src/lib/libbsp/sparc/erc32/include/Makefile \
    159 c/src/lib/libbsp/sparc/erc32/startsis/Makefile \
    160 c/src/lib/libbsp/sparc/erc32/startup/Makefile \
    161 c/src/lib/libbsp/sparc/erc32/timer/Makefile \
    162 c/src/lib/libbsp/sparc/erc32/wrapup/Makefile \
    163 c/src/lib/libcpu/sparc/Makefile \
    164 c/src/lib/libcpu/sparc/reg_win/Makefile"
    165 
    166 hppa1_1_mk="c/src/exec/score/cpu/hppa1_1/Makefile \
    167 c/src/exec/score/tools/hppa1_1/Makefile \
    168 c/src/lib/libbsp/hppa1_1/Makefile \
    169 c/src/lib/libbsp/hppa1_1/pxfl/Makefile \
    170 c/src/lib/libbsp/hppa1_1/simhppa/Makefile \
    171 c/src/lib/libbsp/hppa1_1/simhppa/include/Makefile \
    172 c/src/lib/libbsp/hppa1_1/simhppa/shmsupp/Makefile \
    173 c/src/lib/libbsp/hppa1_1/simhppa/startup/Makefile \
    174 c/src/lib/libbsp/hppa1_1/simhppa/tools/Makefile \
    175 c/src/lib/libbsp/hppa1_1/simhppa/tty/Makefile \
    176 c/src/lib/libbsp/hppa1_1/simhppa/wrapup/Makefile \
    177 c/src/lib/libcpu/hppa1_1/Makefile \
    178 c/src/lib/libcpu/hppa1_1/clock/Makefile \
    179 c/src/lib/libcpu/hppa1_1/include/Makefile \
    180 c/src/lib/libcpu/hppa1_1/milli/Makefile \
    181 c/src/lib/libcpu/hppa1_1/runway/Makefile \
    182 c/src/lib/libcpu/hppa1_1/semaphore/Makefile \
    183 c/src/lib/libcpu/hppa1_1/timer/Makefile \
    184 c/src/lib/start/hppa1_1/Makefile"
    185 
    186 i960_mk="c/src/exec/score/cpu/i960/Makefile \
    187 c/src/lib/libbsp/i960/Makefile \
    188 c/src/lib/libbsp/i960/cvme961/Makefile \
    189 c/src/lib/libbsp/i960/cvme961/clock/Makefile \
    190 c/src/lib/libbsp/i960/cvme961/console/Makefile \
    191 c/src/lib/libbsp/i960/cvme961/include/Makefile \
    192 c/src/lib/libbsp/i960/cvme961/shmsupp/Makefile \
    193 c/src/lib/libbsp/i960/cvme961/startup/Makefile \
    194 c/src/lib/libbsp/i960/cvme961/timer/Makefile \
    195 c/src/lib/libbsp/i960/cvme961/wrapup/Makefile \
    196 c/src/lib/start/i960/Makefile"
    197 
    198 mips64orion_mk="c/src/exec/score/cpu/mips64orion/Makefile \
    199 c/src/lib/libbsp/mips64orion/Makefile \
    200 c/src/lib/libbsp/mips64orion/p4000/Makefile \
    201 c/src/lib/libbsp/mips64orion/p4000/console/Makefile \
    202 c/src/lib/libbsp/mips64orion/p4000/include/Makefile \
    203 c/src/lib/libbsp/mips64orion/p4000/liblnk/Makefile \
    204 c/src/lib/libbsp/mips64orion/p4000/startup/Makefile \
    205 c/src/lib/libbsp/mips64orion/p4000/wrapup/Makefile \
    206 c/src/lib/libcpu/mips64orion/Makefile \
    207 c/src/lib/libcpu/mips64orion/clock/Makefile \
    208 c/src/lib/libcpu/mips64orion/include/Makefile \
    209 c/src/lib/libcpu/mips64orion/timer/Makefile \
    210 c/src/lib/start/mips64orion/Makefile"
    211 
    212 powerpc_mk="c/src/exec/score/cpu/ppc/Makefile \
    213 c/src/lib/libbsp/ppc/Makefile \
    214 c/src/lib/libbsp/ppc/papyrus/Makefile \
    215 c/src/lib/libbsp/ppc/papyrus/dlentry/Makefile \
    216 c/src/lib/libbsp/ppc/papyrus/flashentry/Makefile \
    217 c/src/lib/libbsp/ppc/papyrus/include/Makefile \
    218 c/src/lib/libbsp/ppc/papyrus/startup/Makefile \
    219 c/src/lib/libbsp/ppc/papyrus/wrapup/Makefile \
    220 c/src/lib/libcpu/ppc/Makefile \
    221 c/src/lib/libcpu/ppc/ppc403/Makefile \
    222 c/src/lib/libcpu/ppc/ppc403/clock/Makefile \
    223 c/src/lib/libcpu/ppc/ppc403/console/Makefile \
    224 c/src/lib/libcpu/ppc/ppc403/include/Makefile \
    225 c/src/lib/libcpu/ppc/ppc403/timer/Makefile \
    226 c/src/lib/libcpu/ppc/ppc403/vectors/Makefile"
    227 
    228 posix_mk="c/src/exec/score/cpu/unix/Makefile \
    229 c/src/exec/score/tools/unix/Makefile \
    230 c/src/lib/libbsp/unix/Makefile \
    231 c/src/lib/libbsp/unix/posix/Makefile \
    232 c/src/lib/libbsp/unix/posix/clock/Makefile \
    233 c/src/lib/libbsp/unix/posix/console/Makefile \
    234 c/src/lib/libbsp/unix/posix/include/Makefile \
    235 c/src/lib/libbsp/unix/posix/shmsupp/Makefile \
    236 c/src/lib/libbsp/unix/posix/startup/Makefile \
    237 c/src/lib/libbsp/unix/posix/timer/Makefile \
    238 c/src/lib/libbsp/unix/posix/wrapup/Makefile"
    23933
    24034ka9q_mk="c/src/lib/libka9q/Makefile"
     
    471265RTEMS_PREFIX=${target_cpu}-${target_vendor}
    472266
    473 #
    474 #  Generate the configure.host file
    475 #
    476 
    477267dnl BEGIN configure.host.in
    478268
     
    571361dnl END configure.host.in
    572362
     363dnl BEGIN configure.target.in
     364
     365echo "TARGET"
     366echo "cpu    $target_cpu"
     367echo "os     $target_os"
     368echo "vendor $target_vendor"
     369
     370dnl canonicalize target name
     371dnl NOTE: Most rtems targets do not fullfil autoconf
     372dnl targets naming conventions "processor-vendor-os"
     373dnl Therefore autoconf's AC_CANONICAL_TARGET will fail for them
     374dnl and we have to fix it for rtems ourselves
     375
     376case "${target}" in
     377  # hpux unix port should go here
     378  hppa1.1-rtems*)
     379        target_cpu=hppa1_1
     380        ;;
     381  i[[3456]]86-go32-rtems*)
     382        target_cpu=i386
     383        rtems_bsp="go32 go32_p5"
     384        aux_makefiles=$i386_go32_mk
     385        RTEMS_HAS_POSIX_API=no
     386        ;;
     387  i[[3456]]86-rtems*)
     388        target_cpu=i386
     389        rtems_bsp="force386 i386ex"
     390        aux_makefiles=$i386_mk
     391        ;;
     392  i[[3456]]86-pc-linux*)         # unix "simulator" port
     393        target_cpu=unix
     394        RTEMS_HAS_POSIX_API=no
     395        ;;
     396  no_cpu-rtems*)
     397        target_cpu=no_cpu
     398        RTEMS_HAS_POSIX_API=no
     399        ;;
     400  powerpc-rtems*|ppc-rtems*)
     401        target_cpu=ppc
     402        ;;
     403  sparc-sun-solaris*)             # unix "simulator" port
     404        target_cpu=unix
     405        RTEMS_HAS_POSIX_API=no
     406        ;;
     407  *)
     408        RTEMS_CANONICAL_TARGET_CPU
     409        ;;
     410esac
     411
     412AC_MSG_CHECKING([if cpu $target_cpu is supported])
     413if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
     414  AC_MSG_RESULT(yes)
     415  makefiles="c/src/exec/score/cpu/$target_cpu/Makefile"
     416else
     417  AC_MSG_ERROR(no)
     418fi
     419
     420RTEMS_CHECK_MAKEFILE(c/src/exec/score/tools/$target_cpu)
     421
     422if test -n "$aux_makefiles";then
     423  makefiles="$makefiles $aux_makefiles"
     424  echo "MAKEFILES PRESET TO $makefiles"
     425else
     426AC_MSG_CHECKING([for c/src/lib/libbsp/$target_cpu])
     427if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
     428  AC_MSG_RESULT(yes)
     429  files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
     430  for file in $files; do
     431    case $file in
     432      shared*);;
     433      Makefile*);;
     434      READ*);;
     435      *) rtems_bsp="$rtems_bsp $file";;
     436    esac;
     437  done
     438  RTEMS_CHECK_MAKEFILE(c/src/lib/libbsp/$target_cpu)
     439else
     440  AC_MSG_RESULT(no)
     441fi
     442
     443RTEMS_CHECK_MAKEFILE(c/src/lib/libcpu/$target_cpu)
     444RTEMS_CHECK_MAKEFILE(c/src/lib/start/$target_cpu)
     445
     446fi      # aux_makefiles
     447
     448echo "MAKEFILES $makefiles"
     449
     450dnl END configure.target.in
     451
     452
    573453#
    574454#  Target configurations are listed in alphabetical order. 
    575455#  The BSPs for a target configuration are also listed in alphabetical order.
    576456#
    577 
    578 case "${target}" in
    579   a29k-rtems*)
    580         rtems_bsp=portsw
    581         makefiles=$a29k_mk
    582         ;;
    583   # hpux unix port should go here
    584   hppa1.1-rtems*)
    585         rtems_bsp=simhppa
    586         makefiles=$hppa1_1_mk
    587         ;;
    588   i[[3456]]86-go32-rtems*)
    589         rtems_bsp="go32 go32_p5"
    590         makefiles=$i386_go32_mk
    591         RTEMS_HAS_POSIX_API=no
    592         ;;
    593   i[[3456]]86-rtems*)
    594         rtems_bsp="force386 i386ex"
    595         makefiles=$i386_mk
    596         ;;
    597   i[[3456]]86-pc-linux*)         # unix "simulator" port
    598         rtems_bsp=posix
    599         makefiles=$posix_mk
    600         RTEMS_HAS_POSIX_API=no
    601         ;;
    602   i960-rtems*)
    603         rtems_bsp=cvme961
    604         makefiles=$i960_mk
    605         ;;
    606   m68k-rtems*)
    607         rtems_bsp="dmv152 efi332 efi68k gen68302 gen68360 gen68360_040 idp \
    608                    mvme136 mvme147 mvme147s mvme162 mvme162lx ods68302"
    609         makefiles=$m68k_mk
    610         ;;
    611   mips64orion-rtems*)
    612         rtems_bsp="p4600 p4650"
    613         makefiles=$mips64orion_mk
    614         ;;
    615   no_cpu-rtems*)
    616         rtems_bsp=no_bsp
    617         makefiles=$no_cpu_mk
    618         RTEMS_HAS_POSIX_API=no
    619         ;;
    620   powerpc-rtems*|ppc-rtems*)
    621         rtems_bsp=papyrus
    622         makefiles=$powerpc_mk
    623         ;;
    624   sparc-sun-solaris*)             # unix "simulator" port
    625         rtems_bsp=posix
    626         makefiles=$posix_mk
    627         RTEMS_HAS_POSIX_API=no
    628         ;;
    629   sparc-rtems*)         
    630         rtems_bsp=erc32
    631         makefiles=$sparc_mk
    632         ;;
    633   *)                   
    634         rtems_bsp=no_bsp
    635         makefiles=$no_cpu_mk
    636         echo Error: RTEMS is not supported on target: $target
    637         exit 1
    638         ;;
    639 esac
    640457
    641458dnl NOTE: host_os is automatically set by autoconf
     
    648465  fi
    649466fi
    650 
    651467
    652468AC_PROG_LN_S
     
    688504AC_SUBST(program_prefix)
    689505
    690 AC_OUTPUT( Makefile
     506
     507AC_OUTPUT(
     508Makefile
    691509c/Makefile
    692510c/build-tools/Makefile
     
    770588c/src/tests/tools/unix/posix/Makefile
    771589$makefiles
    772 c/update-tools/Makefile )
     590c/update-tools/Makefile)
    773591
    774592echo
Note: See TracChangeset for help on using the changeset viewer.