Changeset 04c308c in rtems


Ignore:
Timestamp:
Mar 19, 1999, 11:11:36 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
4fb9af8
Parents:
c0a36429
Message:

Incorporated automake I patch from Ralf Corsepius <corsepiu@…>:

This is the first real automake patch.

It adds automake support to c/build-tools and cleans up a few minor
issues.

I consider this to be a testing probe to examine problems with automake.
Therefore, this patch is just a more or less harmless replacement of the
former RTEMS Makefiles and I expect it not last for long. If you want to
give automake Makefiles a public try and if you want/need to learn about
problems with it, then it's about time for a new snapshot, IMO. I may
have screwed up something not directly related to automake, but I expect
very few (none to be precise) problems with automake. However, somebody
should at least try building on Cygwin. If you feel a bit more
adventureous, then I also can continue to submit more patches.

[FYI: I still have a couple of automake files laying around, but they
need some cleanup before being submitted as patches. Now, that I am just
into it, I'll perhaps submit another one tonight :-]

After applying this patch (patch -p1 -E <
<path-to>/rtems-rc-19990318-0), first run the "autogen" script from the
toplevel source directory, before committing to CVS. Be careful about
dependencies between Makefile.am and Makefile.ins when cutting tarballs
from CVS. Makefile.ins are required to be newer than Makefile.ams,
otherwise users would need to have automake, autoconf and perl. Some
people recommend to "touch" all Makefile.in after checkout from cvs (cf.
egcs/contrib/egcs_update).

ATTENTION:

  • This patch adds a number of new files.
  • remove aclocal/exeext.m4 and aclocal/cygwin.m4 from CVS, They are now covered by autoconf-2.13`s AC_EXEEXT.

Some features/side-effects which are probably interesting for you:
In a configured build-tree "cd c/build-tools", then try

  • "make RTEMS_BSP=<bsp> install"
  • "make RTEMS_BSP=<bsp> dist"
Files:
16 added
20 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    rc0a36429 r04c308c  
    1010dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    1111dnl PARTICULAR PURPOSE.
     12
     13dnl $Id$
     14
     15AC_DEFUN(RTEMS_TOP,
     16[dnl
     17RTEMS_TOPdir="$1";
     18AC_SUBST(RTEMS_TOPdir)
     19
     20PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     21AC_SUBST(PROJECT_ROOT)
     22
     23RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     24AC_SUBST(RTEMS_ROOT)
     25])dnl
     26
     27dnl $Id$
     28dnl
     29dnl Note: This option is considered obsolete
     30
     31AC_DEFUN(RTEMS_ENABLE_GMAKE_PRINT,
     32[
     33AC_ARG_ENABLE(gmake-print-directory,
     34[  --enable-gmake-print-directory       enable GNU Make's print directory],
     35[case "${enableval}" in
     36  yes) RTEMS_USE_OWN_PDIR=no ;;
     37  no) RTEMS_USE_OWN_PDIR=yes ;;
     38  *)  AC_MSG_ERROR(bad value ${enableval} for gmake-print-directory option)
     39;;
     40esac],[RTEMS_USE_OWN_PDIR=yes])
     41])
     42
     43dnl $Id$
     44
     45AC_DEFUN(RTEMS_ENABLE_MULTIPROCESSING,
     46[
     47AC_ARG_ENABLE(multiprocessing,
     48[  --enable-multiprocessing             enable multiprocessing interface],
     49[case "${enableval}" in
     50  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
     51  no) RTEMS_HAS_MULTIPROCESSING=no ;;
     52  *)  AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;;
     53esac],[RTEMS_HAS_MULTIPROCESSING=no])
     54])
     55
     56dnl $Id$
     57
     58AC_DEFUN(RTEMS_ENABLE_POSIX,
     59[
     60AC_ARG_ENABLE(posix,
     61[  --enable-posix                       enable posix interface],
     62[case "${enableval}" in
     63  yes) RTEMS_HAS_POSIX_API=yes ;;
     64  no) RTEMS_HAS_POSIX_API=no ;;
     65  *)  AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
     66esac],[RTEMS_HAS_POSIX_API=yes])
     67
     68changequote(,)dnl
     69case "${target}" in
     70  # hpux unix port should go here
     71  i[3456]86-go32-rtems*)
     72        RTEMS_HAS_POSIX_API=no
     73        ;;
     74  i[3456]86-pc-linux*)         # unix "simulator" port
     75        RTEMS_HAS_POSIX_API=no
     76        ;;
     77  i[3456]86-*freebsd2*) # unix "simulator" port
     78        RTEMS_HAS_POSIX_API=no
     79        ;;
     80  no_cpu-*rtems*)
     81        RTEMS_HAS_POSIX_API=no
     82        ;;
     83  sparc-sun-solaris*)             # unix "simulator" port
     84        RTEMS_HAS_POSIX_API=no
     85        ;;
     86  *)
     87        ;;
     88esac
     89changequote([,])dnl
     90AC_SUBST(RTEMS_HAS_POSIX_API)
     91])
     92
     93dnl $Id$
     94
     95AC_DEFUN(RTEMS_ENABLE_NETWORKING,
     96[
     97AC_ARG_ENABLE(networking,
     98[  --enable-networking                  enable TCP/IP stack],
     99[case "${enableval}" in
     100  yes) RTEMS_HAS_NETWORKING=yes ;;
     101  no) RTEMS_HAS_NETWORKING=no ;;
     102  *)  AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;
     103esac],[RTEMS_HAS_NETWORKING=yes])
     104])
     105
     106dnl $Id$
     107
     108AC_DEFUN(RTEMS_ENABLE_RDBG,
     109[
     110AC_ARG_ENABLE(rdbg,
     111[  --enable-rdbg                        enable remote debugger],
     112[case "${enableval}" in
     113  yes) RTEMS_HAS_RDBG=yes ;;
     114  no) RTEMS_HAS_RDBG=no ;;
     115  *)  AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;;
     116esac],[RTEMS_HAS_RDBG=no])
     117])
     118
     119dnl $Id$
     120
     121AC_DEFUN(RTEMS_ENABLE_INLINES,
     122[AC_ARG_ENABLE(rtems-inlines,
     123[  --enable-rtems-inlines               enable RTEMS inline functions]
     124[                                       (default:enabled, disable to use macros)],
     125[case "${enableval}" in
     126  yes) RTEMS_USE_MACROS=no ;;
     127  no) RTEMS_USE_MACROS=yes ;;
     128  *)  AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;
     129esac],[RTEMS_USE_MACROS=no])
     130])
     131
     132dnl $Id$
     133
     134AC_DEFUN(RTEMS_ENABLE_CXX,
     135[
     136AC_ARG_ENABLE(cxx,
     137[  --enable-cxx                         enable C++ support,]
     138[                                       and build the rtems++ library],
     139[case "${enableval}" in
     140  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
     141  no) RTEMS_HAS_CPLUSPLUS=no   ;;
     142  *)  AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
     143esac], [RTEMS_HAS_CPLUSPLUS=no])
     144])
     145
     146dnl $Id$
     147
     148AC_DEFUN(RTEMS_ENABLE_GCC28,
     149[
     150AC_ARG_ENABLE(gcc28,
     151[  --enable-gcc28                       enable use of gcc 2.8.x features],
     152[case "${enableval}" in
     153  yes) RTEMS_USE_GCC272=no ;;
     154  no) RTEMS_USE_GCC272=yes ;;
     155  *)  AC_MSG_ERROR(bad value ${enableval} for gcc-28 option) ;;
     156esac],[RTEMS_USE_GCC272=no])
     157])
     158
     159dnl $Id$
     160
     161AC_DEFUN(RTEMS_ENABLE_LIBCDIR,
     162[
     163AC_ARG_ENABLE(libcdir,
     164[  --enable-libcdir=directory           set the directory for the C library],
     165[ RTEMS_LIBC_DIR="${enableval}" ; \
     166test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] )
     167])
     168
     169AC_DEFUN(RTEMS_ENABLE_BARE,
     170[
     171AC_ARG_ENABLE(bare-cpu-cflags,
     172[  --enable-bare-cpu-cflags             specify a particular cpu cflag]
     173[                                       (bare bsp specific)],
     174[case "${enableval}" in
     175  no) BARE_CPU_CFLAGS="" ;;
     176  *)    BARE_CPU_CFLAGS="${enableval}" ;;
     177esac],
     178[BARE_CPU_CFLAGS=""])
     179
     180AC_ARG_ENABLE(bare-cpu-model,
     181[  --enable-bare-cpu-model              specify a particular cpu model]
     182[                                       (bare bsp specific)],
     183[case "${enableval}" in
     184  no)   BARE_CPU_MODEL="" ;;
     185  *)    BARE_CPU_MODEL="${enableval}" ;;
     186esac],
     187[BARE_CPU_MODEL=""])
     188])
     189
    12190
    13191dnl $Id$
     
    123301AC_MSG_RESULT($target_cpu)
    124302])
     303
     304dnl $Id$
     305
     306dnl check if RTEMS support a cpu
     307AC_DEFUN(RTEMS_CHECK_CPU,
     308[dnl
     309AC_REQUIRE([RTEMS_TOP])
     310AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
     311# Is this a supported CPU?
     312AC_MSG_CHECKING([if cpu $target_cpu is supported])
     313if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then
     314  AC_MSG_RESULT(yes)
     315else
     316  AC_MSG_ERROR(no)
     317fi
     318])dnl
     319
     320
     321dnl $Id$
     322
     323AC_DEFUN(RTEMS_CANONICAL_HOST,
     324[dnl
     325AC_REQUIRE([AC_CANONICAL_HOST])
     326RTEMS_HOST=$host_os
     327changequote(,)dnl
     328case "${target}" in
     329  # hpux unix port should go here
     330  i[3456]86-pc-linux*)         # unix "simulator" port
     331        RTEMS_HOST=Linux
     332        ;;
     333  i[3456]86-*freebsd2*) # unix "simulator" port
     334        RTEMS_HOST=FreeBSD
     335        ;;
     336  sparc-sun-solaris*)             # unix "simulator" port
     337        RTEMS_HOST=Solaris
     338        ;;
     339  *)
     340        ;;
     341esac
     342changequote([,])dnl
     343AC_SUBST(RTEMS_HOST)
     344])dnl
    125345
    126346dnl
     
    482702
    483703dnl
    484 dnl  $Id$
    485 dnl
    486 dnl Detect the Cygwin32 environment (unix under Win32)
    487 dnl
    488 dnl 98/06/16 David Fiddes       (D.J.Fiddes@hw.ac.uk)
    489 dnl                             Hacked from automake-1.3
    490 
    491 # Check to see if we're running under Cygwin32, without using
    492 # AC_CANONICAL_*.  If so, set output variable CYGWIN32 to "yes".
    493 # Otherwise set it to "no".
    494 
    495 dnl RTEMS_CYGWIN32()
    496 AC_DEFUN(RTEMS_CYGWIN32,
    497 [AC_CACHE_CHECK(for Cygwin32 environment, rtems_cv_cygwin32,
    498 [AC_TRY_COMPILE(,[return __CYGWIN32__;],
    499 rtems_cv_cygwin32=yes, rtems_cv_cygwin32=no)
    500 rm -f conftest*])
    501 CYGWIN32=
    502 test "$rtems_cv_cygwin32" = yes && CYGWIN32=yes])
    503 
    504 
    505 dnl
    506 dnl  $Id$
    507 dnl
    508 dnl Set the EXE extension
    509 dnl
    510 dnl 98/06/16 David Fiddes       (D.J.Fiddes@hw.ac.uk)
    511 dnl                             Hacked from automake-1.3
    512 
    513 # Check to see if we're running under Win32, without using
    514 # AC_CANONICAL_*.  If so, set output variable EXEEXT to ".exe".
    515 # Otherwise set it to "".
    516 
    517 dnl RTEMS_EXEEXT()
    518 dnl This knows we add .exe if we're building in the Cygwin32
    519 dnl environment. But if we're not, then it compiles a test program
    520 dnl to see if there is a suffix for executables.
    521 AC_DEFUN(RTEMS_EXEEXT,
    522 [AC_REQUIRE([RTEMS_CYGWIN32])
    523 AC_MSG_CHECKING([for executable suffix])
    524 AC_CACHE_VAL(rtems_cv_exeext,
    525 [if test "$CYGWIN32" = yes; then
    526 rtems_cv_exeext=.exe
    527 else
    528 cat > rtems_c_test.c << 'EOF'
    529 int main() {
    530 /* Nothing needed here */
    531 }
    532 EOF
    533 ${CC-cc} -o rtems_c_test $CFLAGS $CPPFLAGS $LDFLAGS rtems_c_test.c $LIBS 1>&5
    534 rtems_cv_exeext=`echo rtems_c_test.* | grep -v rtems_c_test.c | sed -e s/rtems_c_test//`
    535 rm -f rtems_c_test*])
    536 test x"${rtems_cv_exeext}" = x && rtems_cv_exeext=no
    537 fi
    538 EXEEXT=""
    539 test x"${rtems_cv_exeext}" != xno && EXEEXT=${rtems_cv_exeext}
    540 AC_MSG_RESULT(${rtems_cv_exeext})
    541 AC_SUBST(EXEEXT)])
    542 
    543 
    544 dnl
    545704dnl $Id$
    546705dnl
     
    677836
    678837
     838dnl $Id$
     839
     840AC_DEFUN(RTEMS_ENABLE_TESTS,
     841[
     842# If the tests are enabled, then find all the test suite Makefiles
     843AC_MSG_CHECKING([if the test suites are enabled? ])
     844tests_enabled=yes
     845AC_ARG_ENABLE(tests,
     846[  --enable-tests                       enable tests (default:disabled)],
     847  [case "${enableval}" in
     848    yes) AC_MSG_RESULT(yes) ;;
     849    no)  AC_MSG_RESULT(no) ; tests_enabled=no ;;
     850    *)   AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
     851  esac], AC_MSG_RESULT(no))
     852])
     853
     854dnl $Id$
     855dnl
     856dnl FIXME: this needs to be reworked
     857
     858AC_DEFUN(RTEMS_ENABLE_HWAPI,
     859[dnl
     860AC_ARG_ENABLE(hwapi, \
     861[  --enable-hwapi                       enable hardware API library],
     862[case "${enableval}" in
     863    yes) RTEMS_HAS_HWAPI=yes ;;
     864    no)  RTEMS_HAS_HWAPI=no ;;
     865    *)  AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;;
     866  esac],[RTEMS_HAS_HWAPI=no])
     867])dnl
     868
  • aclocal/canonical-host.m4

    rc0a36429 r04c308c  
    88case "${target}" in
    99  # hpux unix port should go here
    10   i[3456]86-go32-rtems*)
    11         rtems_bsp="go32 go32_p5"
    12         skip_startfiles="yes"
    13         ;;
    1410  i[3456]86-pc-linux*)         # unix "simulator" port
    1511        RTEMS_HOST=Linux
     
    2723AC_SUBST(RTEMS_HOST)
    2824])dnl
    29 
  • aclocal/enable-inlines.m4

    rc0a36429 r04c308c  
    44[AC_ARG_ENABLE(rtems-inlines,
    55[  --enable-rtems-inlines               enable RTEMS inline functions]
    6 [                                       (use macros)],
     6[                                       (default:enabled, disable to use macros)],
    77[case "${enableval}" in
    88  yes) RTEMS_USE_MACROS=no ;;
  • autogen

    rc0a36429 r04c308c  
    5454  aclocal -I $aclocal_dir;
    5555  autoconf;
     56  test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
    5657  test -f Makefile.am && automake $verbose ;
    5758)
  • c/Makefile.in

    rc0a36429 r04c308c  
    8282
    8383pre_install_src: env make_src_makefiles
    84         cd build-tools/scripts; $(MAKE)
     84        cd build-tools/scripts; \
     85         $(MAKE) RTEMS_BSP=${RTEMS_BSP} install-exec-local
    8586        @echo "Order of preinstall directories"
    8687        cat make_src_makefiles
     
    113114
    114115$(BUILD_DIRS):
    115         -$(MKDIR) $(BUILD_DIRS)
     116        $(RTEMS_ROOT)/mkinstalldirs $(BUILD_DIRS)
    116117        if test -d $(PROJECT_ROOT)/c/src/lib/libhwapi; then \
    117118                (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs) \
  • c/build-tools/Makefile.in

    rc0a36429 r04c308c  
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
    113#
    214# $Id$
    315#
    416
    5 @SET_MAKE@
     17
     18SHELL = @SHELL@
     19
    620srcdir = @srcdir@
    721top_srcdir = @top_srcdir@
    8 top_builddir = ../..
    9 subdir = c/build-tools
     22VPATH = @srcdir@
     23prefix = @prefix@
     24exec_prefix = @exec_prefix@
     25
     26bindir = @bindir@
     27sbindir = @sbindir@
     28libexecdir = @libexecdir@
     29datadir = @datadir@
     30sysconfdir = @sysconfdir@
     31sharedstatedir = @sharedstatedir@
     32localstatedir = @localstatedir@
     33libdir = @libdir@
     34infodir = @infodir@
     35mandir = @mandir@
     36includedir = @includedir@
     37oldincludedir = /usr/include
     38
     39DESTDIR =
     40
     41pkgdatadir = $(datadir)/@PACKAGE@
     42pkglibdir = $(libdir)/@PACKAGE@
     43pkgincludedir = $(includedir)/@PACKAGE@
     44
     45top_builddir = .
     46AUTOCONF = @AUTOCONF@
     47AUTOMAKE = @AUTOMAKE@
     48AUTOHEADER = @AUTOHEADER@
    1049
    1150INSTALL = @INSTALL@
    12 
    13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
     51INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     52INSTALL_DATA = @INSTALL_DATA@
     53INSTALL_SCRIPT = @INSTALL_SCRIPT@
     54transform = @program_transform_name@
     55
     56NORMAL_INSTALL = :
     57PRE_INSTALL = :
     58POST_INSTALL = :
     59NORMAL_UNINSTALL = :
     60PRE_UNINSTALL = :
     61POST_UNINSTALL = :
     62host_alias = @host_alias@
     63host_triplet = @host@
     64CC = @CC@
     65EXEEXT = @EXEEXT@
     66KSH = @KSH@
     67MAKEINFO = @MAKEINFO@
     68PACKAGE = @PACKAGE@
    1469PROJECT_ROOT = @PROJECT_ROOT@
    15 
    16 VPATH = @srcdir@
    17 
    18 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    19 include $(RTEMS_ROOT)/make/directory.cfg
    20 
    21 SUB_DIRS=os scripts src
    22 
    23 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     70RTEMS_ROOT = @RTEMS_ROOT@
     71RTEMS_TOPdir = @RTEMS_TOPdir@
     72VERSION = @VERSION@
     73
     74AUTOMAKE_OPTIONS = foreign
     75ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
     76
     77SUBDIRS = scripts src
     78ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     79mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
     80CONFIG_HEADER = ./src/config.h
     81CONFIG_CLEAN_FILES =
     82DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
     83
     84
     85DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     86
     87TAR = tar
     88GZIP_ENV = --best
     89all: all-redirect
     90.SUFFIXES:
     91$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     92        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
     93
     94Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    2495        cd $(top_builddir) \
    25          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     96          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     97
     98$(ACLOCAL_M4):  configure.in
     99        cd $(srcdir) && $(ACLOCAL)
     100
     101config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     102        $(SHELL) ./config.status --recheck
     103$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     104        cd $(srcdir) && $(AUTOCONF)
     105
     106# This directory's subdirectories are mostly independent; you can cd
     107# into them and run `make' without going through this Makefile.
     108# To change the values of `make' variables: instead of editing Makefiles,
     109# (1) if the variable is set in `config.status', edit `config.status'
     110#     (which will cause the Makefiles to be regenerated when you run `make');
     111# (2) otherwise, pass the desired values on the `make' command line.
     112
     113@SET_MAKE@
     114
     115all-recursive install-data-recursive install-exec-recursive \
     116installdirs-recursive install-recursive uninstall-recursive  \
     117check-recursive installcheck-recursive info-recursive dvi-recursive:
     118        @set fnord $(MAKEFLAGS); amf=$$2; \
     119        dot_seen=no; \
     120        target=`echo $@ | sed s/-recursive//`; \
     121        list='$(SUBDIRS)'; for subdir in $$list; do \
     122          echo "Making $$target in $$subdir"; \
     123          if test "$$subdir" = "."; then \
     124            dot_seen=yes; \
     125            local_target="$$target-am"; \
     126          else \
     127            local_target="$$target"; \
     128          fi; \
     129          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
     130           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
     131        done; \
     132        if test "$$dot_seen" = "no"; then \
     133          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
     134        fi; test -z "$$fail"
     135
     136mostlyclean-recursive clean-recursive distclean-recursive \
     137maintainer-clean-recursive:
     138        @set fnord $(MAKEFLAGS); amf=$$2; \
     139        dot_seen=no; \
     140        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
     141          rev="$$subdir $$rev"; \
     142          test "$$subdir" = "." && dot_seen=yes; \
     143        done; \
     144        test "$$dot_seen" = "no" && rev=". $$rev"; \
     145        target=`echo $@ | sed s/-recursive//`; \
     146        for subdir in $$rev; do \
     147          echo "Making $$target in $$subdir"; \
     148          if test "$$subdir" = "."; then \
     149            local_target="$$target-am"; \
     150          else \
     151            local_target="$$target"; \
     152          fi; \
     153          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
     154           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
     155        done && test -z "$$fail"
     156tags-recursive:
     157        list='$(SUBDIRS)'; for subdir in $$list; do \
     158          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
     159        done
     160
     161tags: TAGS
     162
     163ID: $(HEADERS) $(SOURCES) $(LISP)
     164        list='$(SOURCES) $(HEADERS)'; \
     165        unique=`for i in $$list; do echo $$i; done | \
     166          awk '    { files[$$0] = 1; } \
     167               END { for (i in files) print i; }'`; \
     168        here=`pwd` && cd $(srcdir) \
     169          && mkid -f$$here/ID $$unique $(LISP)
     170
     171TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
     172        tags=; \
     173        here=`pwd`; \
     174        list='$(SUBDIRS)'; for subdir in $$list; do \
     175   if test "$$subdir" = .; then :; else \
     176            test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
     177   fi; \
     178        done; \
     179        list='$(SOURCES) $(HEADERS)'; \
     180        unique=`for i in $$list; do echo $$i; done | \
     181          awk '    { files[$$0] = 1; } \
     182               END { for (i in files) print i; }'`; \
     183        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     184          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
     185
     186mostlyclean-tags:
     187
     188clean-tags:
     189
     190distclean-tags:
     191        -rm -f TAGS ID
     192
     193maintainer-clean-tags:
     194
     195distdir = $(PACKAGE)-$(VERSION)
     196top_distdir = $(distdir)
     197
     198# This target untars the dist file and tries a VPATH configuration.  Then
     199# it guarantees that the distribution is self-contained by making another
     200# tarfile.
     201distcheck: dist
     202        -rm -rf $(distdir)
     203        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
     204        mkdir $(distdir)/=build
     205        mkdir $(distdir)/=inst
     206        dc_install_base=`cd $(distdir)/=inst && pwd`; \
     207        cd $(distdir)/=build \
     208          && ../configure --srcdir=.. --prefix=$$dc_install_base \
     209          && $(MAKE) $(AM_MAKEFLAGS) \
     210          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     211          && $(MAKE) $(AM_MAKEFLAGS) check \
     212          && $(MAKE) $(AM_MAKEFLAGS) install \
     213          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     214          && $(MAKE) $(AM_MAKEFLAGS) dist
     215        -rm -rf $(distdir)
     216        @banner="$(distdir).tar.gz is ready for distribution"; \
     217        dashes=`echo "$$banner" | sed s/./=/g`; \
     218        echo "$$dashes"; \
     219        echo "$$banner"; \
     220        echo "$$dashes"
     221dist: distdir
     222        -chmod -R a+r $(distdir)
     223        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     224        -rm -rf $(distdir)
     225dist-all: distdir
     226        -chmod -R a+r $(distdir)
     227        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     228        -rm -rf $(distdir)
     229distdir: $(DISTFILES)
     230        -rm -rf $(distdir)
     231        mkdir $(distdir)
     232        -chmod 777 $(distdir)
     233        here=`cd $(top_builddir) && pwd`; \
     234        top_distdir=`cd $(distdir) && pwd`; \
     235        distdir=`cd $(distdir) && pwd`; \
     236        cd $(top_srcdir) \
     237          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
     238        @for file in $(DISTFILES); do \
     239          d=$(srcdir); \
     240          if test -d $$d/$$file; then \
     241            cp -pr $$/$$file $(distdir)/$$file; \
     242          else \
     243            test -f $(distdir)/$$file \
     244            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     245            || cp -p $$d/$$file $(distdir)/$$file || :; \
     246          fi; \
     247        done
     248        for subdir in $(SUBDIRS); do \
     249          if test "$$subdir" = .; then :; else \
     250            test -d $(distdir)/$$subdir \
     251            || mkdir $(distdir)/$$subdir \
     252            || exit 1; \
     253            chmod 777 $(distdir)/$$subdir; \
     254            (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
     255              || exit 1; \
     256          fi; \
     257        done
     258info-am:
     259info: info-recursive
     260dvi-am:
     261dvi: dvi-recursive
     262check-am: all-am
     263check: check-recursive
     264installcheck-am:
     265installcheck: installcheck-recursive
     266install-exec-am:
     267install-exec: install-exec-recursive
     268
     269install-data-am:
     270install-data: install-data-recursive
     271
     272install-am: all-am
     273        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     274install: install-recursive
     275uninstall-am:
     276uninstall: uninstall-recursive
     277all-am: Makefile
     278all-redirect: all-recursive
     279install-strip:
     280        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     281installdirs: installdirs-recursive
     282installdirs-am:
     283
     284
     285mostlyclean-generic:
     286
     287clean-generic:
     288
     289distclean-generic:
     290        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     291        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     292
     293maintainer-clean-generic:
     294mostlyclean-am:  mostlyclean-tags mostlyclean-generic
     295
     296mostlyclean: mostlyclean-recursive
     297
     298clean-am:  clean-tags clean-generic mostlyclean-am
     299
     300clean: clean-recursive
     301
     302distclean-am:  distclean-tags distclean-generic clean-am
     303
     304distclean: distclean-recursive
     305        -rm -f config.status
     306
     307maintainer-clean-am:  maintainer-clean-tags maintainer-clean-generic \
     308                distclean-am
     309        @echo "This command is intended for maintainers to use;"
     310        @echo "it deletes files that may require special tools to rebuild."
     311
     312maintainer-clean: maintainer-clean-recursive
     313        -rm -f config.status
     314
     315.PHONY: install-data-recursive uninstall-data-recursive \
     316install-exec-recursive uninstall-exec-recursive installdirs-recursive \
     317uninstalldirs-recursive all-recursive check-recursive \
     318installcheck-recursive info-recursive dvi-recursive \
     319mostlyclean-recursive distclean-recursive clean-recursive \
     320maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
     321distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
     322dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
     323install-exec install-data-am install-data install-am install \
     324uninstall-am uninstall all-redirect all-am all installdirs-am \
     325installdirs mostlyclean-generic distclean-generic clean-generic \
     326maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     327
     328
     329# Tell versions [3.59,3.63) of GNU make to not export all variables.
     330# Otherwise a system limit (for SysV at least) may be exceeded.
     331.NOEXPORT:
  • c/build-tools/scripts/Makefile.in

    rc0a36429 r04c308c  
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
    113#
    214# $Id$
    315#
    4 # RTEMS build tools
    5 # NOTE: of course we can't use any of these tools
    6 #               in this Makefile.  Most notably: install-if-change
    7 #
    8 
    9 @SET_MAKE@
     16
     17
     18SHELL = @SHELL@
     19
    1020srcdir = @srcdir@
    1121top_srcdir = @top_srcdir@
    12 top_builddir = ../../..
    13 subdir = c/build-tools/scripts
     22VPATH = @srcdir@
     23prefix = @prefix@
     24exec_prefix = @exec_prefix@
     25
     26bindir = @bindir@
     27sbindir = @sbindir@
     28libexecdir = @libexecdir@
     29datadir = @datadir@
     30sysconfdir = @sysconfdir@
     31sharedstatedir = @sharedstatedir@
     32localstatedir = @localstatedir@
     33libdir = @libdir@
     34infodir = @infodir@
     35mandir = @mandir@
     36includedir = @includedir@
     37oldincludedir = /usr/include
     38
     39DESTDIR =
     40
     41pkgdatadir = $(datadir)/@PACKAGE@
     42pkglibdir = $(libdir)/@PACKAGE@
     43pkgincludedir = $(includedir)/@PACKAGE@
     44
     45top_builddir = ..
     46
     47ACLOCAL = @ACLOCAL@
     48AUTOCONF = @AUTOCONF@
     49AUTOMAKE = @AUTOMAKE@
     50AUTOHEADER = @AUTOHEADER@
    1451
    1552INSTALL = @INSTALL@
    16 
    17 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
     53INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     54INSTALL_DATA = @INSTALL_DATA@
     55INSTALL_SCRIPT = @INSTALL_SCRIPT@
     56transform = @program_transform_name@
     57
     58NORMAL_INSTALL = :
     59PRE_INSTALL = :
     60POST_INSTALL = :
     61NORMAL_UNINSTALL = :
     62PRE_UNINSTALL = :
     63POST_UNINSTALL = :
     64host_alias = @host_alias@
     65host_triplet = @host@
     66CC = @CC@
     67EXEEXT = @EXEEXT@
     68KSH = @KSH@
     69MAKEINFO = @MAKEINFO@
     70PACKAGE = @PACKAGE@
    1871PROJECT_ROOT = @PROJECT_ROOT@
    19 
    20 VPATH = @srcdir@
    21 
    22 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    23 include $(RTEMS_ROOT)/make/leaf.cfg
    24 
    25 DESTDIR=$(PROJECT_RELEASE)/build-tools
    26 
    27 BUILD_PGMS=install-if-change rcs-clean lock-directory unlock-directory
    28 PGMS = $(BUILD_PGMS) search-id.sh
    29 
    30 CLEAN_ADDITIONS += $(BUILD_PGMS)
    31 
    32 INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)
    33 
    34 all:    $(DESTDIR) $(PGMS) install
    35 
    36 $(DESTDIR):
    37         @top_srcdir@/mkinstalldirs $@
    38 
    39 $(INSTALLED_PGMS): $(PGMS)
    40         $(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR)
    41 
    42 install:  $(DESTDIR) $(INSTALLED_PGMS)
    43 
    44 %: $(srcdir)/%.in $(top_builddir)/config.status
     72RTEMS_ROOT = @RTEMS_ROOT@
     73RTEMS_TOPdir = @RTEMS_TOPdir@
     74VERSION = @VERSION@
     75
     76AUTOMAKE_OPTIONS = foreign
     77
     78bin_SCRIPTS =  install-if-change lock-directory unlock-directory rcs-clean
     79
     80
     81noinst_SCRIPTS = search-id.sh
     82mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
     83CONFIG_HEADER = ../src/config.h
     84CONFIG_CLEAN_FILES =  install-if-change lock-directory rcs-clean \
     85unlock-directory
     86SCRIPTS =  $(bin_SCRIPTS) $(noinst_SCRIPTS)
     87
     88DIST_COMMON =  README Makefile.am Makefile.in install-if-change.in \
     89lock-directory.in rcs-clean.in unlock-directory.in
     90
     91
     92DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     93
     94TAR = tar
     95GZIP_ENV = --best
     96all: all-redirect
     97.SUFFIXES:
     98$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     99        cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/Makefile
     100
     101Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    45102        cd $(top_builddir) \
    46          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     103          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     104
     105install-if-change: $(top_builddir)/config.status install-if-change.in
     106        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     107lock-directory: $(top_builddir)/config.status lock-directory.in
     108        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     109rcs-clean: $(top_builddir)/config.status rcs-clean.in
     110        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     111unlock-directory: $(top_builddir)/config.status unlock-directory.in
     112        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     113
     114install-binSCRIPTS: $(bin_SCRIPTS)
     115        @$(NORMAL_INSTALL)
     116        $(mkinstalldirs) $(DESTDIR)$(bindir)
     117        @list='$(bin_SCRIPTS)'; for p in $$list; do \
     118          if test -f $$p; then \
     119            echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
     120            $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     121          else if test -f $(srcdir)/$$p; then \
     122            echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
     123            $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     124          else :; fi; fi; \
     125        done
     126
     127uninstall-binSCRIPTS:
     128        @$(NORMAL_UNINSTALL)
     129        list='$(bin_SCRIPTS)'; for p in $$list; do \
     130          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     131        done
     132tags: TAGS
     133TAGS:
     134
     135
     136distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
     137
     138subdir = scripts
     139
     140distdir: $(DISTFILES)
     141        here=`cd $(top_builddir) && pwd`; \
     142        top_distdir=`cd $(top_distdir) && pwd`; \
     143        distdir=`cd $(distdir) && pwd`; \
     144        cd $(top_srcdir) \
     145          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign scripts/Makefile
     146        @for file in $(DISTFILES); do \
     147          d=$(srcdir); \
     148          if test -d $$d/$$file; then \
     149            cp -pr $$/$$file $(distdir)/$$file; \
     150          else \
     151            test -f $(distdir)/$$file \
     152            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     153            || cp -p $$d/$$file $(distdir)/$$file || :; \
     154          fi; \
     155        done
     156info-am:
     157info: info-am
     158dvi-am:
     159dvi: dvi-am
     160check-am: all-am
     161check: check-am
     162installcheck-am:
     163installcheck: installcheck-am
     164install-exec-am: install-binSCRIPTS install-exec-local
     165install-exec: install-exec-am
     166
     167install-data-am:
     168install-data: install-data-am
     169
     170install-am: all-am
     171        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     172install: install-am
     173uninstall-am: uninstall-binSCRIPTS
     174uninstall: uninstall-am
     175all-am: Makefile $(SCRIPTS)
     176all-redirect: all-am
     177install-strip:
     178        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     179installdirs:
     180        $(mkinstalldirs)  $(DESTDIR)$(bindir)
     181
     182
     183mostlyclean-generic:
     184
     185clean-generic:
     186
     187distclean-generic:
     188        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     189        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     190
     191maintainer-clean-generic:
     192mostlyclean-am:  mostlyclean-generic
     193
     194mostlyclean: mostlyclean-am
     195
     196clean-am:  clean-generic mostlyclean-am
     197
     198clean: clean-am
     199
     200distclean-am:  distclean-generic clean-am
     201
     202distclean: distclean-am
     203
     204maintainer-clean-am:  maintainer-clean-generic distclean-am
     205        @echo "This command is intended for maintainers to use;"
     206        @echo "it deletes files that may require special tools to rebuild."
     207
     208maintainer-clean: maintainer-clean-am
     209
     210.PHONY: uninstall-binSCRIPTS install-binSCRIPTS tags distdir info-am \
     211info dvi-am dvi check check-am installcheck-am installcheck \
     212install-exec-local install-exec-am install-exec install-data-am \
     213install-data install-am install uninstall-am uninstall all-redirect \
     214all-am all installdirs mostlyclean-generic distclean-generic \
     215clean-generic maintainer-clean-generic clean mostlyclean distclean \
     216maintainer-clean
     217
     218
     219#
     220# HACK: install to the build-tree
     221#
     222install-exec-local: $(bin_SCRIPTS)
     223        $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
     224        $(INSTALL_SCRIPT) $(bin_SCRIPTS) \
     225         $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
     226
     227preinstall: install-exec-local
     228
     229# Tell versions [3.59,3.63) of GNU make to not export all variables.
     230# Otherwise a system limit (for SysV at least) may be exceeded.
     231.NOEXPORT:
  • c/build-tools/src/Makefile.in

    rc0a36429 r04c308c  
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
    113#
    214# $Id$
    315#
    416
    5 @SET_MAKE@
     17
     18SHELL = @SHELL@
     19
    620srcdir = @srcdir@
    721top_srcdir = @top_srcdir@
    8 top_builddir = ../../..
    9 subdir = c/build-tools/src
     22VPATH = @srcdir@
     23prefix = @prefix@
     24exec_prefix = @exec_prefix@
     25
     26bindir = @bindir@
     27sbindir = @sbindir@
     28libexecdir = @libexecdir@
     29datadir = @datadir@
     30sysconfdir = @sysconfdir@
     31sharedstatedir = @sharedstatedir@
     32localstatedir = @localstatedir@
     33libdir = @libdir@
     34infodir = @infodir@
     35mandir = @mandir@
     36includedir = @includedir@
     37oldincludedir = /usr/include
     38
     39DESTDIR =
     40
     41pkgdatadir = $(datadir)/@PACKAGE@
     42pkglibdir = $(libdir)/@PACKAGE@
     43pkgincludedir = $(includedir)/@PACKAGE@
     44
     45top_builddir = ..
     46
     47ACLOCAL = @ACLOCAL@
     48AUTOCONF = @AUTOCONF@
     49AUTOMAKE = @AUTOMAKE@
     50AUTOHEADER = @AUTOHEADER@
    1051
    1152INSTALL = @INSTALL@
    12 
    13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
     53INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     54INSTALL_DATA = @INSTALL_DATA@
     55INSTALL_SCRIPT = @INSTALL_SCRIPT@
     56transform = @program_transform_name@
     57
     58NORMAL_INSTALL = :
     59PRE_INSTALL = :
     60POST_INSTALL = :
     61NORMAL_UNINSTALL = :
     62PRE_UNINSTALL = :
     63POST_UNINSTALL = :
     64host_alias = @host_alias@
     65host_triplet = @host@
     66CC = @CC@
     67EXEEXT = @EXEEXT@
     68KSH = @KSH@
     69MAKEINFO = @MAKEINFO@
     70PACKAGE = @PACKAGE@
    1471PROJECT_ROOT = @PROJECT_ROOT@
    15 
    16 exec_prefix = @exec_prefix@
    17 bindir = @bindir@
    18 libdir = @libdir@
    19 includedir = @includedir@
    20 manext = 1
    21 mandir = @mandir@/man$(manext)
    22 
    23 # FIXME: $EXEEXT should be set in a central cfg-file used for native
    24 #        compiling (e.g. gcc.cfg) instead of setting EXEEXE here.
    25 EXEEXT=@EXEEXT@
    26 
    27 VPATH = @srcdir@
    28 
    29 # we use host compiler in this directory
    30 USE_HOST_COMPILER=yes
    31 
    32 # C source names, if any, go here -- minus the .c
    33 C_PIECES=cklength eolstrip packhex unhex
    34 C_FILES=$(C_PIECES:%=%.c)
    35 C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o)
    36 
    37 H_FILES=
    38 
    39 SRCS=$(C_FILES) $(CC_FILES) $(H_FILES)
    40 OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
    41 
    42 # FIXME: building into $(ARCH) doesn't make sense for host programs
    43 PGMS=$(ARCH)/cklength$(EXEEXT) $(ARCH)/eolstrip$(EXEEXT) \
    44         $(ARCH)/packhex$(EXEEXT) $(ARCH)/unhex$(EXEEXT)
    45 
    46 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    47 include $(RTEMS_ROOT)/make/leaf.cfg
     72RTEMS_ROOT = @RTEMS_ROOT@
     73RTEMS_TOPdir = @RTEMS_TOPdir@
     74VERSION = @VERSION@
     75
     76AUTOMAKE_OPTIONS = foreign
     77
     78bin_PROGRAMS = cklength eolstrip packhex unhex
     79
     80cklength_SOURCES = cklength.c
     81eolstrip_SOURCES = eolstrip.c
     82packhex_SOURCES = packhex.c
     83unhex_SOURCES = unhex.c
     84mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
     85CONFIG_HEADER = config.h
     86CONFIG_CLEAN_FILES =
     87bin_PROGRAMS =  cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \
     88unhex$(EXEEXT)
     89PROGRAMS =  $(bin_PROGRAMS)
     90
     91
     92DEFS = @DEFS@ -I. -I$(srcdir) -I.
     93CPPFLAGS = @CPPFLAGS@
     94LDFLAGS = @LDFLAGS@
     95LIBS = @LIBS@
     96cklength_OBJECTS =  cklength.o
     97cklength_LDADD = $(LDADD)
     98cklength_DEPENDENCIES =
     99cklength_LDFLAGS =
     100eolstrip_OBJECTS =  eolstrip.o
     101eolstrip_LDADD = $(LDADD)
     102eolstrip_DEPENDENCIES =
     103eolstrip_LDFLAGS =
     104packhex_OBJECTS =  packhex.o
     105packhex_LDADD = $(LDADD)
     106packhex_DEPENDENCIES =
     107packhex_LDFLAGS =
     108unhex_OBJECTS =  unhex.o
     109unhex_LDADD = $(LDADD)
     110unhex_DEPENDENCIES =
     111unhex_LDFLAGS =
     112CFLAGS = @CFLAGS@
     113COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     114CCLD = $(CC)
     115LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
     116DIST_COMMON =  ./stamp-h.in Makefile.am Makefile.in config.h.in
     117
     118
     119DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     120
     121TAR = tar
     122GZIP_ENV = --best
     123DEP_FILES =  .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \
     124.deps/unhex.P
     125SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES)
     126OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS)
     127
     128all: all-redirect
     129.SUFFIXES:
     130.SUFFIXES: .S .c .o .s
     131$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     132        cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile
     133
     134Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
     135        cd $(top_builddir) \
     136          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     137
     138
     139config.h: stamp-h
     140        @if test ! -f $@; then \
     141                rm -f stamp-h; \
     142                $(MAKE) stamp-h; \
     143        else :; fi
     144stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
     145        cd $(top_builddir) \
     146          && CONFIG_FILES= CONFIG_HEADERS=src/config.h \
     147             $(SHELL) ./config.status
     148        @echo timestamp > stamp-h 2> /dev/null
     149$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
     150        @if test ! -f $@; then \
     151                rm -f $(srcdir)/stamp-h.in; \
     152                $(MAKE) $(srcdir)/stamp-h.in; \
     153        else :; fi
     154$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
     155        cd $(top_srcdir) && $(AUTOHEADER)
     156        @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
     157
     158mostlyclean-hdr:
     159
     160clean-hdr:
     161
     162distclean-hdr:
     163        -rm -f config.h
     164
     165maintainer-clean-hdr:
     166
     167mostlyclean-binPROGRAMS:
     168
     169clean-binPROGRAMS:
     170        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
     171
     172distclean-binPROGRAMS:
     173
     174maintainer-clean-binPROGRAMS:
     175
     176install-binPROGRAMS: $(bin_PROGRAMS)
     177        @$(NORMAL_INSTALL)
     178        $(mkinstalldirs) $(DESTDIR)$(bindir)
     179        @list='$(bin_PROGRAMS)'; for p in $$list; do \
     180          if test -f $$p; then \
     181            echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
     182             $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
     183          else :; fi; \
     184        done
     185
     186uninstall-binPROGRAMS:
     187        @$(NORMAL_UNINSTALL)
     188        list='$(bin_PROGRAMS)'; for p in $$list; do \
     189          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
     190        done
     191
     192.s.o:
     193        $(COMPILE) -c $<
     194
     195.S.o:
     196        $(COMPILE) -c $<
     197
     198mostlyclean-compile:
     199        -rm -f *.o core *.core
     200
     201clean-compile:
     202
     203distclean-compile:
     204        -rm -f *.tab.c
     205
     206maintainer-clean-compile:
     207
     208cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES)
     209        @rm -f cklength$(EXEEXT)
     210        $(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS)
     211
     212eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES)
     213        @rm -f eolstrip$(EXEEXT)
     214        $(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS)
     215
     216packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES)
     217        @rm -f packhex$(EXEEXT)
     218        $(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS)
     219
     220unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES)
     221        @rm -f unhex$(EXEEXT)
     222        $(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS)
     223
     224tags: TAGS
     225
     226ID: $(HEADERS) $(SOURCES) $(LISP)
     227        list='$(SOURCES) $(HEADERS)'; \
     228        unique=`for i in $$list; do echo $$i; done | \
     229          awk '    { files[$$0] = 1; } \
     230               END { for (i in files) print i; }'`; \
     231        here=`pwd` && cd $(srcdir) \
     232          && mkid -f$$here/ID $$unique $(LISP)
     233
     234TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
     235        tags=; \
     236        here=`pwd`; \
     237        list='$(SOURCES) $(HEADERS)'; \
     238        unique=`for i in $$list; do echo $$i; done | \
     239          awk '    { files[$$0] = 1; } \
     240               END { for (i in files) print i; }'`; \
     241        test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
     242          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
     243
     244mostlyclean-tags:
     245
     246clean-tags:
     247
     248distclean-tags:
     249        -rm -f TAGS ID
     250
     251maintainer-clean-tags:
     252
     253distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
     254
     255subdir = src
     256
     257distdir: $(DISTFILES)
     258        here=`cd $(top_builddir) && pwd`; \
     259        top_distdir=`cd $(top_distdir) && pwd`; \
     260        distdir=`cd $(distdir) && pwd`; \
     261        cd $(top_srcdir) \
     262          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign src/Makefile
     263        @for file in $(DISTFILES); do \
     264          d=$(srcdir); \
     265          if test -d $$d/$$file; then \
     266            cp -pr $$/$$file $(distdir)/$$file; \
     267          else \
     268            test -f $(distdir)/$$file \
     269            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     270            || cp -p $$d/$$file $(distdir)/$$file || :; \
     271          fi; \
     272        done
     273
     274DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
     275
     276-include $(DEP_FILES)
     277
     278mostlyclean-depend:
     279
     280clean-depend:
     281
     282distclean-depend:
     283        -rm -rf .deps
     284
     285maintainer-clean-depend:
     286
     287%.o: %.c
     288        @echo '$(COMPILE) -c $<'; \
     289        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     290        @-cp .deps/$(*F).pp .deps/$(*F).P; \
     291        tr ' ' '\012' < .deps/$(*F).pp \
     292          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     293            >> .deps/$(*F).P; \
     294        rm .deps/$(*F).pp
     295
     296%.lo: %.c
     297        @echo '$(LTCOMPILE) -c $<'; \
     298        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     299        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
     300          < .deps/$(*F).pp > .deps/$(*F).P; \
     301        tr ' ' '\012' < .deps/$(*F).pp \
     302          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     303            >> .deps/$(*F).P; \
     304        rm -f .deps/$(*F).pp
     305info-am:
     306info: info-am
     307dvi-am:
     308dvi: dvi-am
     309check-am: all-am
     310check: check-am
     311installcheck-am:
     312installcheck: installcheck-am
     313all-recursive-am: config.h
     314        $(MAKE) $(AM_MAKEFLAGS) all-recursive
     315
     316install-exec-am: install-binPROGRAMS install-exec-local
     317install-exec: install-exec-am
     318
     319install-data-am:
     320install-data: install-data-am
     321
     322install-am: all-am
     323        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     324install: install-am
     325uninstall-am: uninstall-binPROGRAMS
     326uninstall: uninstall-am
     327all-am: Makefile $(PROGRAMS) config.h
     328all-redirect: all-am
     329install-strip:
     330        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     331installdirs:
     332        $(mkinstalldirs)  $(DESTDIR)$(bindir)
     333
     334
     335mostlyclean-generic:
     336
     337clean-generic:
     338
     339distclean-generic:
     340        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     341        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     342
     343maintainer-clean-generic:
     344mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
     345                mostlyclean-compile mostlyclean-tags mostlyclean-depend \
     346                mostlyclean-generic
     347
     348mostlyclean: mostlyclean-am
     349
     350clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-tags \
     351                clean-depend clean-generic mostlyclean-am
     352
     353clean: clean-am
     354
     355distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
     356                distclean-tags distclean-depend distclean-generic \
     357                clean-am
     358
     359distclean: distclean-am
     360
     361maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
     362                maintainer-clean-compile maintainer-clean-tags \
     363                maintainer-clean-depend maintainer-clean-generic \
     364                distclean-am
     365        @echo "This command is intended for maintainers to use;"
     366        @echo "it deletes files that may require special tools to rebuild."
     367
     368maintainer-clean: maintainer-clean-am
     369
     370.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
     371mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
     372maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
     373mostlyclean-compile distclean-compile clean-compile \
     374maintainer-clean-compile tags mostlyclean-tags distclean-tags \
     375clean-tags maintainer-clean-tags distdir mostlyclean-depend \
     376distclean-depend clean-depend maintainer-clean-depend info-am info \
     377dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
     378install-exec-local install-exec-am install-exec install-data-am \
     379install-data install-am install uninstall-am uninstall all-redirect \
     380all-am all installdirs mostlyclean-generic distclean-generic \
     381clean-generic maintainer-clean-generic clean mostlyclean distclean \
     382maintainer-clean
     383
    48384
    49385#
    50 # (OPTIONAL) Add local stuff here using +=
     386# HACK: install to the build-tree
    51387#
    52 
    53 DEFINES  +=
    54 CPPFLAGS += -I.
    55 CFLAGS   +=
    56 
    57 LD_PATHS  +=
    58 LD_LIBS   +=
    59 LDFLAGS   +=
    60 
    61 #
    62 # Add your list of files to delete here.  The config files
    63 #  already know how to delete some stuff, so you may want
    64 #  to just run 'make clean' first to see what gets missed.
    65 #  'make clobber' already includes 'make clean'
    66 #
    67 
    68 CLEAN_ADDITIONS += $(HOST_ARCH)
    69 CLOBBER_ADDITIONS +=
    70 
    71 DESTDIR=${PROJECT_RELEASE}/build-tools
    72 
    73 $(DESTDIR):
    74         @top_srcdir@/mkinstalldirs $@
    75 
    76 all:    $(ARCH) $(DESTDIR) $(SRCS) $(PGMS)
    77         $(INSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
    78 
    79 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    80         cd $(top_builddir) \
    81          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     388install-exec-local: $(bin_PROGRAMS)
     389        $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
     390        $(INSTALL_PROGRAM) $(bin_PROGRAMS) \
     391          $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
     392
     393preinstall: install-exec-local
     394
     395# Tell versions [3.59,3.63) of GNU make to not export all variables.
     396# Otherwise a system limit (for SysV at least) may be exceeded.
     397.NOEXPORT:
  • c/build-tools/src/config.h.in

    rc0a36429 r04c308c  
    1 /*
    2  *  This file is editted automatically by autoconf.
    3  *
    4  *  $Id$
    5  */
     1/* src/config.h.in.  Generated automatically from configure.in by autoheader.  */
    62
    73/* Define if you have the strerror function.  */
    84#undef HAVE_STRERROR
    9 
  • c/src/lib/libcpu/i386/Makefile.in

    rc0a36429 r04c308c  
    6262
    6363preinstall :
    64         $(MKDIR) $(PROJECT_INCLUDE)/libcpu
     64        $(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/libcpu
    6565        $(INSTALL_CHANGE) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/libcpu
    6666
  • c/src/lib/libcpu/powerpc/mpc860/include/Makefile.in

    rc0a36429 r04c308c  
    2929
    3030install:
    31         test -d $(PROJECT_INCLUDE)/mpc860 || $(MKDIR) $(PROJECT_INCLUDE)/mpc860
     31        $(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/mpc860
    3232        $(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)/mpc860
    3333
  • c/src/lib/libcpu/sh/sh7032/include/Makefile.in

    rc0a36429 r04c308c  
    3232
    3333install:
    34         test -d $(PROJECT_INCLUDE)/sh || $(MKDIR) $(PROJECT_INCLUDE)/sh
     34        $(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/sh
    3535        $(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)/sh
    3636
  • c/src/lib/libmisc/wrapup/Makefile.in

    rc0a36429 r04c308c  
    3838$(LIB): ${LIBS} $(RELS)
    3939        $(RM) -r $(ARCH)
    40         $(MKDIR) $(ARCH)
     40        mkdir $(ARCH)
    4141        cd $(ARCH); for lib in $(LIBS:%=../%); do \
    4242                         $(AR) -xv $$lib; \
  • c/src/libmisc/wrapup/Makefile.in

    rc0a36429 r04c308c  
    3838$(LIB): ${LIBS} $(RELS)
    3939        $(RM) -r $(ARCH)
    40         $(MKDIR) $(ARCH)
     40        mkdir $(ARCH)
    4141        cd $(ARCH); for lib in $(LIBS:%=../%); do \
    4242                         $(AR) -xv $$lib; \
  • configure

    rc0a36429 r04c308c  
    55
    66
    7 # Check to see if we're running under Cygwin32, without using
    8 # AC_CANONICAL_*.  If so, set output variable CYGWIN32 to "yes".
    9 # Otherwise set it to "no".
    10 
    11 
    12 
    13 
    14 
    15 # Check to see if we're running under Win32, without using
    16 # AC_CANONICAL_*.  If so, set output variable EXEEXT to ".exe".
    17 # Otherwise set it to "".
    187
    198
     
    4938  --with-cross-host=HOST      host (cygnus)"
    5039ac_help="$ac_help
    51 \
    52   --enable-gmake-print-directory    enable GNU Make's print directory"
     40  --enable-gmake-print-directory       enable GNU Make's print directory"
    5341ac_help="$ac_help
    54 \
    55   --enable-multiprocessing                  enable multiprocessing interface"
     42  --enable-multiprocessing             enable multiprocessing interface"
    5643ac_help="$ac_help
    57 \
    58   --enable-posix                    enable posix interface"
     44  --enable-posix                       enable posix interface"
    5945ac_help="$ac_help
    60 \
    61   --enable-networking                enable TCP/IP stack"
     46  --enable-networking                  enable TCP/IP stack"
    6247ac_help="$ac_help
    63 \
    64   --enable-rdbg                enable remote debugger"
     48  --enable-rdbg                        enable remote debugger"
    6549ac_help="$ac_help
    66 \
    67   --enable-rtems-inlines            enable RTEMS inline functions, the default (disable to use macros)"
     50  --enable-rtems-inlines               enable RTEMS inline functions
     51                                       (default:enabled, disable to use macros)"
    6852ac_help="$ac_help
    69 \
    70   --enable-cxx            enable C++ support, and build the rtems++ library"
     53  --enable-cxx                         enable C++ support,
     54                                      and build the rtems++ library"
    7155ac_help="$ac_help
    72 \
    73   --enable-gcc28                    enable use of gcc 2.8.x features"
     56  --enable-gcc28                       enable use of gcc 2.8.x features"
    7457ac_help="$ac_help
    75 \
    76   --enable-libcdir=directory        set the directory for the C library"
     58  --enable-libcdir=directory           set the directory for the C library"
    7759ac_help="$ac_help
    78   --enable-bare-cpu-cflags          \
    79          specify a particular cpu cflag (bare bsp specific)"
     60  --enable-bare-cpu-cflags             specify a particular cpu cflag
     61                                       (bare bsp specific)"
    8062ac_help="$ac_help
    81   --enable-bare-cpu-model              \
    82          specify a particular cpu model (bare bsp specific)"
     63  --enable-bare-cpu-model              specify a particular cpu model
     64                                       (bare bsp specific)"
    8365ac_help="$ac_help
    8466\
    8567    --enable-rtemsbsp=bsp1 bsp2 ..   BSPs to include in build"
    8668ac_help="$ac_help
    87 \
    88   --enable-tests                    enable tests (default:disabled)"
     69  --enable-tests                       enable tests (default:disabled)"
    8970ac_help="$ac_help
    9071\
    91   --enable-hwapi                 enable hardware API library"
     72  --enable-hwapi                       enable hardware API library"
    9273
    9374# Initialize some variables set by options.
     
    600581
    601582
     583RTEMS_TOPdir=".";
     584
     585
     586PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     587
     588
     589RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     590
     591
    602592
    603593echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    604 echo "configure:605: checking whether ${MAKE-make} sets \${MAKE}" >&5
     594echo "configure:595: checking whether ${MAKE-make} sets \${MAKE}" >&5
    605595set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    606596if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    675665
    676666echo $ac_n "checking host system type""... $ac_c" 1>&6
    677 echo "configure:678: checking host system type" >&5
     667echo "configure:668: checking host system type" >&5
    678668
    679669host_alias=$host
     
    696686
    697687echo $ac_n "checking target system type""... $ac_c" 1>&6
    698 echo "configure:699: checking target system type" >&5
     688echo "configure:689: checking target system type" >&5
    699689
    700690target_alias=$target
     
    714704
    715705echo $ac_n "checking build system type""... $ac_c" 1>&6
    716 echo "configure:717: checking build system type" >&5
     706echo "configure:707: checking build system type" >&5
    717707
    718708build_alias=$build
     
    736726  program_prefix=${target_alias}-
    737727
     728
    738729# Check whether --with-cross-host or --without-cross-host was given.
    739730if test "${with_cross_host+set}" = set; then
     
    744735
    745736
     737
    746738# Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given.
    747739if test "${enable_gmake_print_directory+set}" = set; then
    748740  enableval="$enable_gmake_print_directory"
    749   \
    750 case "${enableval}" in
     741  case "${enableval}" in
    751742  yes) RTEMS_USE_OWN_PDIR=no ;;
    752743  no) RTEMS_USE_OWN_PDIR=yes ;;
    753   *)  { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } ;;
     744  *)  { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; }
     745;;
    754746esac
    755747else
    756748  RTEMS_USE_OWN_PDIR=yes
    757749fi
     750
    758751
    759752
     
    761754if test "${enable_multiprocessing+set}" = set; then
    762755  enableval="$enable_multiprocessing"
    763   \
    764 case "${enableval}" in
     756  case "${enableval}" in
    765757  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
    766758  no) RTEMS_HAS_MULTIPROCESSING=no ;;
     
    772764
    773765
     766
    774767# Check whether --enable-posix or --disable-posix was given.
    775768if test "${enable_posix+set}" = set; then
    776769  enableval="$enable_posix"
    777   \
    778 case "${enableval}" in
     770  case "${enableval}" in
    779771  yes) RTEMS_HAS_POSIX_API=yes ;;
    780772  no) RTEMS_HAS_POSIX_API=no ;;
     
    784776  RTEMS_HAS_POSIX_API=yes
    785777fi
     778 
     779
     780case "${target}" in
     781  # hpux unix port should go here
     782  i[3456]86-go32-rtems*)
     783        RTEMS_HAS_POSIX_API=no
     784        ;;
     785  i[3456]86-pc-linux*)         # unix "simulator" port
     786        RTEMS_HAS_POSIX_API=no
     787        ;;
     788  i[3456]86-*freebsd2*) # unix "simulator" port
     789        RTEMS_HAS_POSIX_API=no
     790        ;;
     791  no_cpu-*rtems*)
     792        RTEMS_HAS_POSIX_API=no
     793        ;;
     794  sparc-sun-solaris*)             # unix "simulator" port
     795        RTEMS_HAS_POSIX_API=no
     796        ;;
     797  *)
     798        ;;
     799esac
     800
    786801
    787802
     
    789804if test "${enable_networking+set}" = set; then
    790805  enableval="$enable_networking"
    791   \
    792 case "${enableval}" in
     806  case "${enableval}" in
    793807  yes) RTEMS_HAS_NETWORKING=yes ;;
    794808  no) RTEMS_HAS_NETWORKING=no ;;
     
    800814
    801815
     816
    802817# Check whether --enable-rdbg or --disable-rdbg was given.
    803818if test "${enable_rdbg+set}" = set; then
    804819  enableval="$enable_rdbg"
    805   \
    806 case "${enableval}" in
     820  case "${enableval}" in
    807821  yes) RTEMS_HAS_RDBG=yes ;;
    808822  no) RTEMS_HAS_RDBG=no ;;
     
    817831if test "${enable_rtems_inlines+set}" = set; then
    818832  enableval="$enable_rtems_inlines"
    819   \
    820 case "${enableval}" in
     833  case "${enableval}" in
    821834  yes) RTEMS_USE_MACROS=no ;;
    822835  no) RTEMS_USE_MACROS=yes ;;
     
    828841
    829842
     843
    830844# Check whether --enable-cxx or --disable-cxx was given.
    831845if test "${enable_cxx+set}" = set; then
    832846  enableval="$enable_cxx"
    833   \
    834 case "${enableval}" in
     847  case "${enableval}" in
    835848  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
    836849  no) RTEMS_HAS_CPLUSPLUS=no   ;;
     
    842855
    843856
     857
    844858# Check whether --enable-gcc28 or --disable-gcc28 was given.
    845859if test "${enable_gcc28+set}" = set; then
    846860  enableval="$enable_gcc28"
    847   \
    848 case "${enableval}" in
     861  case "${enableval}" in
    849862  yes) RTEMS_USE_GCC272=no ;;
    850863  no) RTEMS_USE_GCC272=yes ;;
     
    856869
    857870
     871
    858872# Check whether --enable-libcdir or --disable-libcdir was given.
    859873if test "${enable_libcdir+set}" = set; then
    860874  enableval="$enable_libcdir"
    861   \
    862  RTEMS_LIBC_DIR="${enableval}" ; \
     875   RTEMS_LIBC_DIR="${enableval}" ; \
    863876test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
    864877fi
     878
    865879
    866880
     
    889903
    890904
     905
    891906RTEMS_PREFIX=${target_cpu}-${target_vendor}
    892907
     
    895910set dummy cat; ac_word=$2
    896911echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    897 echo "configure:898: checking for $ac_word" >&5
     912echo "configure:913: checking for $ac_word" >&5
    898913if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
    899914  echo $ac_n "(cached) $ac_c" 1>&6
     
    930945set dummy rm; ac_word=$2
    931946echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    932 echo "configure:933: checking for $ac_word" >&5
     947echo "configure:948: checking for $ac_word" >&5
    933948if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
    934949  echo $ac_n "(cached) $ac_c" 1>&6
     
    965980set dummy cp; ac_word=$2
    966981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    967 echo "configure:968: checking for $ac_word" >&5
     982echo "configure:983: checking for $ac_word" >&5
    968983if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
    969984  echo $ac_n "(cached) $ac_c" 1>&6
     
    10001015set dummy mv; ac_word=$2
    10011016echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1002 echo "configure:1003: checking for $ac_word" >&5
     1017echo "configure:1018: checking for $ac_word" >&5
    10031018if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
    10041019  echo $ac_n "(cached) $ac_c" 1>&6
     
    10351050set dummy ln; ac_word=$2
    10361051echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1037 echo "configure:1038: checking for $ac_word" >&5
     1052echo "configure:1053: checking for $ac_word" >&5
    10381053if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
    10391054  echo $ac_n "(cached) $ac_c" 1>&6
     
    10681083
    10691084echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    1070 echo "configure:1071: checking whether ln -s works" >&5
     1085echo "configure:1086: checking whether ln -s works" >&5
    10711086if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    10721087  echo $ac_n "(cached) $ac_c" 1>&6
     
    10911106set dummy chmod; ac_word=$2
    10921107echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1093 echo "configure:1094: checking for $ac_word" >&5
     1108echo "configure:1109: checking for $ac_word" >&5
    10941109if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
    10951110  echo $ac_n "(cached) $ac_c" 1>&6
     
    11261141set dummy sort; ac_word=$2
    11271142echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1128 echo "configure:1129: checking for $ac_word" >&5
     1143echo "configure:1144: checking for $ac_word" >&5
    11291144if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
    11301145  echo $ac_n "(cached) $ac_c" 1>&6
     
    11701185# ./install, which can be erroneously created by make from ./install.sh.
    11711186echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1172 echo "configure:1173: checking for a BSD compatible install" >&5
     1187echo "configure:1188: checking for a BSD compatible install" >&5
    11731188if test -z "$INSTALL"; then
    11741189if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    12261241set dummy perl; ac_word=$2
    12271242echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1228 echo "configure:1229: checking for $ac_word" >&5
     1243echo "configure:1244: checking for $ac_word" >&5
    12291244if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
    12301245  echo $ac_n "(cached) $ac_c" 1>&6
     
    12681283set dummy mkdir; ac_word=$2
    12691284echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1270 echo "configure:1271: checking for $ac_word" >&5
     1285echo "configure:1286: checking for $ac_word" >&5
    12711286if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
    12721287  echo $ac_n "(cached) $ac_c" 1>&6
     
    13041319
    13051320echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
    1306 echo "configure:1307: checking for working $MKDIR -m 0755" >&5
     1321echo "configure:1322: checking for working $MKDIR -m 0755" >&5
    13071322if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
    13081323  echo $ac_n "(cached) $ac_c" 1>&6
     
    13211336
    13221337echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
    1323 echo "configure:1324: checking for working $MKDIR -p" >&5
     1338echo "configure:1339: checking for working $MKDIR -p" >&5
    13241339if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
    13251340  echo $ac_n "(cached) $ac_c" 1>&6
     
    13411356set dummy touch; ac_word=$2
    13421357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1343 echo "configure:1344: checking for $ac_word" >&5
     1358echo "configure:1359: checking for $ac_word" >&5
    13441359if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
    13451360  echo $ac_n "(cached) $ac_c" 1>&6
     
    13761391set dummy cmp; ac_word=$2
    13771392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1378 echo "configure:1379: checking for $ac_word" >&5
     1393echo "configure:1394: checking for $ac_word" >&5
    13791394if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
    13801395  echo $ac_n "(cached) $ac_c" 1>&6
     
    14121427set dummy sed; ac_word=$2
    14131428echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1414 echo "configure:1415: checking for $ac_word" >&5
     1429echo "configure:1430: checking for $ac_word" >&5
    14151430if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
    14161431  echo $ac_n "(cached) $ac_c" 1>&6
     
    14491464set dummy $ac_prog; ac_word=$2
    14501465echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1451 echo "configure:1452: checking for $ac_word" >&5
     1466echo "configure:1467: checking for $ac_word" >&5
    14521467if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
    14531468  echo $ac_n "(cached) $ac_c" 1>&6
     
    14911506set dummy $ac_prog; ac_word=$2
    14921507echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1493 echo "configure:1494: checking for $ac_word" >&5
     1508echo "configure:1509: checking for $ac_word" >&5
    14941509if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    14951510  echo $ac_n "(cached) $ac_c" 1>&6
     
    15411556
    15421557echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    1543 echo "configure:1544: checking rtems target cpu" >&5
     1558echo "configure:1559: checking rtems target cpu" >&5
    15441559case "${target}" in
    15451560  # hpux unix port should go here
     
    15691584
    15701585
     1586
     1587# Is this a supported CPU?
     1588echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
     1589echo "configure:1590: checking if cpu $target_cpu is supported" >&5
     1590if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then
     1591  echo "$ac_t""yes" 1>&6
     1592else
     1593  { echo "configure: error: no" 1>&2; exit 1; }
     1594fi
     1595
     1596
     1597RTEMS_HOST=$host_os
    15711598case "${target}" in
    15721599  # hpux unix port should go here
    1573   i[3456]86-go32-rtems*)
    1574         rtems_bsp="go32 go32_p5"
    1575         skip_startfiles="yes"
    1576         RTEMS_HAS_POSIX_API=no
    1577         ;;
    15781600  i[3456]86-pc-linux*)         # unix "simulator" port
    15791601        RTEMS_HOST=Linux
    1580         # override these settings
    1581         RTEMS_HAS_POSIX_API=no
    15821602        ;;
    15831603  i[3456]86-*freebsd2*) # unix "simulator" port
    15841604        RTEMS_HOST=FreeBSD
    1585         # override these settings
    1586         RTEMS_HAS_POSIX_API=no
    1587         ;;
    1588   no_cpu-*rtems*)
    1589         RTEMS_HAS_POSIX_API=no
    15901605        ;;
    15911606  sparc-sun-solaris*)             # unix "simulator" port
    15921607        RTEMS_HOST=Solaris
    1593         # override these settings
    1594         RTEMS_HAS_POSIX_API=no
    15951608        ;;
    15961609  *)
     
    15981611esac
    15991612
     1613
     1614
     1615case "${target}" in
     1616  i[3456]86-go32-rtems*)
     1617    rtems_bsp="go32 go32_p5"
     1618    skip_startfiles="yes"
     1619    ;;
     1620  *)
     1621    ;;
     1622esac
    16001623
    16011624# Override the set of BSPs to be built.
     
    16091632
    16101633
    1611 # Is this a supported CPU?
    1612 echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
    1613 echo "configure:1614: checking if cpu $target_cpu is supported" >&5
    1614 if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
    1615   echo "$ac_t""yes" 1>&6
    1616 else
    1617   { echo "configure: error: no" 1>&2; exit 1; }
    1618 fi
    1619 
    16201634
    16211635if [ "${program_prefix}" = "NONE" ] ; then
     
    16351649set dummy $ac_prog; ac_word=$2
    16361650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1637 echo "configure:1638: checking for $ac_word" >&5
     1651echo "configure:1652: checking for $ac_word" >&5
    16381652if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
    16391653  echo $ac_n "(cached) $ac_c" 1>&6
     
    16791693
    16801694echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1681 echo "configure:1682: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1695echo "configure:1696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    16821696
    16831697ac_ext=c
     
    16901704cat > conftest.$ac_ext << EOF
    16911705
    1692 #line 1693 "configure"
     1706#line 1707 "configure"
    16931707#include "confdefs.h"
    16941708
    16951709main(){return(0);}
    16961710EOF
    1697 if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1711if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16981712  ac_cv_prog_cc_works=yes
    16991713  # If we can't run a trivial program, we are probably using a cross compiler.
     
    17211735fi
    17221736echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1737echo "configure:1738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    17241738echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    17251739cross_compiling=$ac_cv_prog_cc_cross
    17261740
    17271741echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1728 echo "configure:1729: checking whether we are using GNU C" >&5
     1742echo "configure:1743: checking whether we are using GNU C" >&5
    17291743if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    17301744  echo $ac_n "(cached) $ac_c" 1>&6
     
    17351749#endif
    17361750EOF
    1737 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1751if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    17381752  ac_cv_prog_gcc=yes
    17391753else
     
    17501764  CFLAGS=
    17511765  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1752 echo "configure:1753: checking whether ${CC-cc} accepts -g" >&5
     1766echo "configure:1767: checking whether ${CC-cc} accepts -g" >&5
    17531767if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    17541768  echo $ac_n "(cached) $ac_c" 1>&6
     
    17921806
    17931807echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
    1794 echo "configure:1795: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1808echo "configure:1809: checking whether $CC_FOR_TARGET accepts -specs" >&5
    17951809if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
    17961810  echo $ac_n "(cached) $ac_c" 1>&6
     
    18131827
    18141828echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
    1815 echo "configure:1816: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1829echo "configure:1830: checking whether $CC_FOR_TARGET accepts --pipe" >&5
    18161830if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
    18171831  echo $ac_n "(cached) $ac_c" 1>&6
     
    18541868set dummy $ac_prog; ac_word=$2
    18551869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1856 echo "configure:1857: checking for $ac_word" >&5
     1870echo "configure:1871: checking for $ac_word" >&5
    18571871if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
    18581872  echo $ac_n "(cached) $ac_c" 1>&6
     
    18981912
    18991913echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1900 echo "configure:1901: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1914echo "configure:1915: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    19011915
    19021916ac_ext=C
     
    19091923cat > conftest.$ac_ext << EOF
    19101924
    1911 #line 1912 "configure"
     1925#line 1926 "configure"
    19121926#include "confdefs.h"
    19131927
    19141928int main(){return(0);}
    19151929EOF
    1916 if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1930if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19171931  ac_cv_prog_cxx_works=yes
    19181932  # If we can't run a trivial program, we are probably using a cross compiler.
     
    19401954fi
    19411955echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1942 echo "configure:1943: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1956echo "configure:1957: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    19431957echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    19441958cross_compiling=$ac_cv_prog_cxx_cross
    19451959
    19461960echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    1947 echo "configure:1948: checking whether we are using GNU C++" >&5
     1961echo "configure:1962: checking whether we are using GNU C++" >&5
    19481962if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    19491963  echo $ac_n "(cached) $ac_c" 1>&6
     
    19541968#endif
    19551969EOF
    1956 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1970if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    19571971  ac_cv_prog_gxx=yes
    19581972else
     
    19691983  CXXFLAGS=
    19701984  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    1971 echo "configure:1972: checking whether ${CXX-g++} accepts -g" >&5
     1985echo "configure:1986: checking whether ${CXX-g++} accepts -g" >&5
    19721986if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    19731987  echo $ac_n "(cached) $ac_c" 1>&6
     
    20232037 
    20242038echo $ac_n "checking target's ar""... $ac_c" 1>&6
    2025 echo "configure:2026: checking target's ar" >&5
     2039echo "configure:2040: checking target's ar" >&5
    20262040if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    20272041  echo $ac_n "(cached) $ac_c" 1>&6
     
    20562070    # intends
    20572071    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2058 echo "configure:2059: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
     2072echo "configure:2073: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
    20592073    case "$AR_FOR_TARGET" in
    20602074    /*) # valid
     
    20732087set dummy "$program_prefix"ar; ac_word=$2
    20742088echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2075 echo "configure:2076: checking for $ac_word" >&5
     2089echo "configure:2090: checking for $ac_word" >&5
    20762090if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
    20772091  echo $ac_n "(cached) $ac_c" 1>&6
     
    21102124 
    21112125echo $ac_n "checking target's as""... $ac_c" 1>&6
    2112 echo "configure:2113: checking target's as" >&5
     2126echo "configure:2127: checking target's as" >&5
    21132127if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    21142128  echo $ac_n "(cached) $ac_c" 1>&6
     
    21432157    # intends
    21442158    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2145 echo "configure:2146: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
     2159echo "configure:2160: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
    21462160    case "$AS_FOR_TARGET" in
    21472161    /*) # valid
     
    21602174set dummy "$program_prefix"as; ac_word=$2
    21612175echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2162 echo "configure:2163: checking for $ac_word" >&5
     2176echo "configure:2177: checking for $ac_word" >&5
    21632177if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
    21642178  echo $ac_n "(cached) $ac_c" 1>&6
     
    21972211 
    21982212echo $ac_n "checking target's ld""... $ac_c" 1>&6
    2199 echo "configure:2200: checking target's ld" >&5
     2213echo "configure:2214: checking target's ld" >&5
    22002214if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    22012215  echo $ac_n "(cached) $ac_c" 1>&6
     
    22302244    # intends
    22312245    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2232 echo "configure:2233: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
     2246echo "configure:2247: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
    22332247    case "$LD_FOR_TARGET" in
    22342248    /*) # valid
     
    22472261set dummy "$program_prefix"ld; ac_word=$2
    22482262echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2249 echo "configure:2250: checking for $ac_word" >&5
     2263echo "configure:2264: checking for $ac_word" >&5
    22502264if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
    22512265  echo $ac_n "(cached) $ac_c" 1>&6
     
    22842298 
    22852299echo $ac_n "checking target's nm""... $ac_c" 1>&6
    2286 echo "configure:2287: checking target's nm" >&5
     2300echo "configure:2301: checking target's nm" >&5
    22872301if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    22882302  echo $ac_n "(cached) $ac_c" 1>&6
     
    23172331    # intends
    23182332    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2319 echo "configure:2320: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
     2333echo "configure:2334: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
    23202334    case "$NM_FOR_TARGET" in
    23212335    /*) # valid
     
    23342348set dummy "$program_prefix"nm; ac_word=$2
    23352349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2336 echo "configure:2337: checking for $ac_word" >&5
     2350echo "configure:2351: checking for $ac_word" >&5
    23372351if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
    23382352  echo $ac_n "(cached) $ac_c" 1>&6
     
    23722386 
    23732387echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
    2374 echo "configure:2375: checking target's ranlib" >&5
     2388echo "configure:2389: checking target's ranlib" >&5
    23752389if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    23762390  echo $ac_n "(cached) $ac_c" 1>&6
     
    24052419    # intends
    24062420    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2407 echo "configure:2408: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
     2421echo "configure:2422: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
    24082422    case "$RANLIB_FOR_TARGET" in
    24092423    /*) # valid
     
    24222436set dummy "$program_prefix"ranlib; ac_word=$2
    24232437echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2424 echo "configure:2425: checking for $ac_word" >&5
     2438echo "configure:2439: checking for $ac_word" >&5
    24252439if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    24262440  echo $ac_n "(cached) $ac_c" 1>&6
     
    24612475   
    24622476echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
    2463 echo "configure:2464: checking whether $AR_FOR_TARGET -s works" >&5
     2477echo "configure:2478: checking whether $AR_FOR_TARGET -s works" >&5
    24642478if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
    24652479  echo $ac_n "(cached) $ac_c" 1>&6
     
    24702484{ return b; }
    24712485EOF
    2472 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    2473   && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2486if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
     2487  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
    24742488  && test -s conftest.a ; \
    24752489then
     
    24962510 
    24972511echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
    2498 echo "configure:2499: checking target's objcopy" >&5
     2512echo "configure:2513: checking target's objcopy" >&5
    24992513if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    25002514  echo $ac_n "(cached) $ac_c" 1>&6
     
    25292543    # intends
    25302544    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2531 echo "configure:2532: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
     2545echo "configure:2546: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
    25322546    case "$OBJCOPY_FOR_TARGET" in
    25332547    /*) # valid
     
    25462560set dummy "$program_prefix"objcopy; ac_word=$2
    25472561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2548 echo "configure:2549: checking for $ac_word" >&5
     2562echo "configure:2563: checking for $ac_word" >&5
    25492563if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
    25502564  echo $ac_n "(cached) $ac_c" 1>&6
     
    25832597 
    25842598echo $ac_n "checking target's size""... $ac_c" 1>&6
    2585 echo "configure:2586: checking target's size" >&5
     2599echo "configure:2600: checking target's size" >&5
    25862600if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    25872601  echo $ac_n "(cached) $ac_c" 1>&6
     
    26162630    # intends
    26172631    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2618 echo "configure:2619: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
     2632echo "configure:2633: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
    26192633    case "$SIZE_FOR_TARGET" in
    26202634    /*) # valid
     
    26332647set dummy "$program_prefix"size; ac_word=$2
    26342648echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2635 echo "configure:2636: checking for $ac_word" >&5
     2649echo "configure:2650: checking for $ac_word" >&5
    26362650if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
    26372651  echo $ac_n "(cached) $ac_c" 1>&6
     
    26702684 
    26712685echo $ac_n "checking target's strip""... $ac_c" 1>&6
    2672 echo "configure:2673: checking target's strip" >&5
     2686echo "configure:2687: checking target's strip" >&5
    26732687if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    26742688  echo $ac_n "(cached) $ac_c" 1>&6
     
    27032717    # intends
    27042718    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
    2705 echo "configure:2706: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
     2719echo "configure:2720: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
    27062720    case "$STRIP_FOR_TARGET" in
    27072721    /*) # valid
     
    27202734set dummy "$program_prefix"strip; ac_word=$2
    27212735echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2722 echo "configure:2723: checking for $ac_word" >&5
     2736echo "configure:2737: checking for $ac_word" >&5
    27232737if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
    27242738  echo $ac_n "(cached) $ac_c" 1>&6
     
    27592773if test "${target_cpu}" = "i386"; then
    27602774    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
    2761 echo "configure:2762: checking for 16 bit mode assembler support" >&5
     2775echo "configure:2776: checking for 16 bit mode assembler support" >&5
    27622776if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
    27632777  echo $ac_n "(cached) $ac_c" 1>&6
     
    27692783         lgdt 0
    27702784EOF
    2771       if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
     2785      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
    27722786        rtems_cv_prog_gas_code16=yes
    27732787      else
     
    27842798set dummy gcc; ac_word=$2
    27852799echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2786 echo "configure:2787: checking for $ac_word" >&5
     2800echo "configure:2801: checking for $ac_word" >&5
    27872801if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    27882802  echo $ac_n "(cached) $ac_c" 1>&6
     
    28142828set dummy cc; ac_word=$2
    28152829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2816 echo "configure:2817: checking for $ac_word" >&5
     2830echo "configure:2831: checking for $ac_word" >&5
    28172831if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    28182832  echo $ac_n "(cached) $ac_c" 1>&6
     
    28652879set dummy cl; ac_word=$2
    28662880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    2867 echo "configure:2868: checking for $ac_word" >&5
     2881echo "configure:2882: checking for $ac_word" >&5
    28682882if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    28692883  echo $ac_n "(cached) $ac_c" 1>&6
     
    28972911
    28982912echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2899 echo "configure:2900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2913echo "configure:2914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    29002914
    29012915ac_ext=c
     
    29082922cat > conftest.$ac_ext << EOF
    29092923
    2910 #line 2911 "configure"
     2924#line 2925 "configure"
    29112925#include "confdefs.h"
    29122926
    29132927main(){return(0);}
    29142928EOF
    2915 if { (eval echo configure:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2929if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29162930  ac_cv_prog_cc_works=yes
    29172931  # If we can't run a trivial program, we are probably using a cross compiler.
     
    29392953fi
    29402954echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2941 echo "configure:2942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2955echo "configure:2956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    29422956echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    29432957cross_compiling=$ac_cv_prog_cc_cross
    29442958
    29452959echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    2946 echo "configure:2947: checking whether we are using GNU C" >&5
     2960echo "configure:2961: checking whether we are using GNU C" >&5
    29472961if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    29482962  echo $ac_n "(cached) $ac_c" 1>&6
     
    29532967#endif
    29542968EOF
    2955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2969if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    29562970  ac_cv_prog_gcc=yes
    29572971else
     
    29722986CFLAGS=
    29732987echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    2974 echo "configure:2975: checking whether ${CC-cc} accepts -g" >&5
     2988echo "configure:2989: checking whether ${CC-cc} accepts -g" >&5
    29752989if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    29762990  echo $ac_n "(cached) $ac_c" 1>&6
     
    30033017fi
    30043018
    3005 
    3006 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
    3007 echo "configure:3008: checking for Cygwin32 environment" >&5
    3008 if eval "test \"`echo '$''{'rtems_cv_cygwin32'+set}'`\" = set"; then
     3019echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
     3020echo "configure:3021: checking for Cygwin environment" >&5
     3021if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
    30093022  echo $ac_n "(cached) $ac_c" 1>&6
    30103023else
    30113024  cat > conftest.$ac_ext <<EOF
    3012 #line 3013 "configure"
     3025#line 3026 "configure"
    30133026#include "confdefs.h"
    30143027
    30153028int main() {
    3016 return __CYGWIN32__;
     3029
     3030#ifndef __CYGWIN__
     3031#define __CYGWIN__ __CYGWIN32__
     3032#endif
     3033return __CYGWIN__;
    30173034; return 0; }
    30183035EOF
    3019 if { (eval echo configure:3020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3036if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    30203037  rm -rf conftest*
    3021   rtems_cv_cygwin32=yes
     3038  ac_cv_cygwin=yes
    30223039else
    30233040  echo "configure: failed program was:" >&5
    30243041  cat conftest.$ac_ext >&5
    30253042  rm -rf conftest*
    3026   rtems_cv_cygwin32=no
     3043  ac_cv_cygwin=no
    30273044fi
    30283045rm -f conftest*
     
    30303047fi
    30313048
    3032 echo "$ac_t""$rtems_cv_cygwin32" 1>&6
    3033 CYGWIN32=
    3034 test "$rtems_cv_cygwin32" = yes && CYGWIN32=yes
     3049echo "$ac_t""$ac_cv_cygwin" 1>&6
     3050CYGWIN=
     3051test "$ac_cv_cygwin" = yes && CYGWIN=yes
     3052echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
     3053echo "configure:3054: checking for mingw32 environment" >&5
     3054if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
     3055  echo $ac_n "(cached) $ac_c" 1>&6
     3056else
     3057  cat > conftest.$ac_ext <<EOF
     3058#line 3059 "configure"
     3059#include "confdefs.h"
     3060
     3061int main() {
     3062return __MINGW32__;
     3063; return 0; }
     3064EOF
     3065if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3066  rm -rf conftest*
     3067  ac_cv_mingw32=yes
     3068else
     3069  echo "configure: failed program was:" >&5
     3070  cat conftest.$ac_ext >&5
     3071  rm -rf conftest*
     3072  ac_cv_mingw32=no
     3073fi
     3074rm -f conftest*
     3075rm -f conftest*
     3076fi
     3077
     3078echo "$ac_t""$ac_cv_mingw32" 1>&6
     3079MINGW32=
     3080test "$ac_cv_mingw32" = yes && MINGW32=yes
     3081
    30353082
    30363083echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    3037 echo "configure:3038: checking for executable suffix" >&5
    3038 if eval "test \"`echo '$''{'rtems_cv_exeext'+set}'`\" = set"; then
    3039   echo $ac_n "(cached) $ac_c" 1>&6
    3040 else
    3041   if test "$CYGWIN32" = yes; then
    3042 rtems_cv_exeext=.exe
    3043 else
    3044 cat > rtems_c_test.c << 'EOF'
    3045 int main() {
    3046 /* Nothing needed here */
    3047 }
    3048 EOF
    3049 ${CC-cc} -o rtems_c_test $CFLAGS $CPPFLAGS $LDFLAGS rtems_c_test.c $LIBS 1>&5
    3050 rtems_cv_exeext=`echo rtems_c_test.* | grep -v rtems_c_test.c | sed -e s/rtems_c_test//`
    3051 rm -f rtems_c_test*
    3052 fi
    3053 
    3054 test x"${rtems_cv_exeext}" = x && rtems_cv_exeext=no
    3055 fi
     3084echo "configure:3085: checking for executable suffix" >&5
     3085if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
     3086  echo $ac_n "(cached) $ac_c" 1>&6
     3087else
     3088  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
     3089  ac_cv_exeext=.exe
     3090else
     3091  rm -f conftest*
     3092  echo 'int main () { return 0; }' > conftest.$ac_ext
     3093  ac_cv_exeext=
     3094  if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3095    for file in conftest.*; do
     3096      case $file in
     3097      *.c | *.o | *.obj) ;;
     3098      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
     3099      esac
     3100    done
     3101  else
     3102    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
     3103  fi
     3104  rm -f conftest*
     3105  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
     3106fi
     3107fi
     3108
    30563109EXEEXT=""
    3057 test x"${rtems_cv_exeext}" != xno && EXEEXT=${rtems_cv_exeext}
    3058 echo "$ac_t""${rtems_cv_exeext}" 1>&6
     3110test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
     3111echo "$ac_t""${ac_cv_exeext}" 1>&6
     3112ac_exeext=$EXEEXT
    30593113
    30603114
     
    30733127test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"}
    30743128
    3075 for ac_func in strerror
    3076 do
    3077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    3078 echo "configure:3079: checking for $ac_func" >&5
    3079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    3080   echo $ac_n "(cached) $ac_c" 1>&6
    3081 else
    3082   cat > conftest.$ac_ext <<EOF
    3083 #line 3084 "configure"
    3084 #include "confdefs.h"
    3085 /* System header to define __stub macros and hopefully few prototypes,
    3086     which can conflict with char $ac_func(); below.  */
    3087 #include <assert.h>
    3088 /* Override any gcc2 internal prototype to avoid an error.  */
    3089 /* We use char because int might match the return type of a gcc2
    3090     builtin and then its argument prototype would still apply.  */
    3091 char $ac_func();
    3092 
    3093 int main() {
    3094 
    3095 /* The GNU C library defines this for functions which it implements
    3096     to always fail with ENOSYS.  Some functions are actually named
    3097     something starting with __ and the normal name is an alias.  */
    3098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    3099 choke me
    3100 #else
    3101 $ac_func();
    3102 #endif
    3103 
    3104 ; return 0; }
    3105 EOF
    3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    3107   rm -rf conftest*
    3108   eval "ac_cv_func_$ac_func=yes"
    3109 else
    3110   echo "configure: failed program was:" >&5
    3111   cat conftest.$ac_ext >&5
    3112   rm -rf conftest*
    3113   eval "ac_cv_func_$ac_func=no"
    3114 fi
    3115 rm -f conftest*
    3116 fi
    3117 
    3118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    3119   echo "$ac_t""yes" 1>&6
    3120     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    3121   cat >> confdefs.h <<EOF
    3122 #define $ac_tr_func 1
    3123 EOF
    3124  
    3125 else
    3126   echo "$ac_t""no" 1>&6
    3127 fi
    3128 done
    3129 
    3130 
    31313129if test "$target_cpu" = "unix" ; then
    31323130   
    31333131
    31343132echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
    3135 echo "configure:3136: checking whether $RTEMS_HOST supports System V semaphores" >&5
     3133echo "configure:3134: checking whether $RTEMS_HOST supports System V semaphores" >&5
    31363134if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
    31373135  echo $ac_n "(cached) $ac_c" 1>&6
     
    31423140else
    31433141  cat > conftest.$ac_ext <<EOF
    3144 #line 3145 "configure"
     3142#line 3143 "configure"
    31453143#include "confdefs.h"
    31463144
     
    31683166
    31693167EOF
    3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3168if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31713169then
    31723170  rtems_cv_sysv_sem="yes"
     
    31913189
    31923190echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
    3193 echo "configure:3194: checking whether $RTEMS_HOST supports System V shared memory" >&5
     3191echo "configure:3192: checking whether $RTEMS_HOST supports System V shared memory" >&5
    31943192if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
    31953193  echo $ac_n "(cached) $ac_c" 1>&6
     
    32003198else
    32013199  cat > conftest.$ac_ext <<EOF
    3202 #line 3203 "configure"
     3200#line 3201 "configure"
    32033201#include "confdefs.h"
    32043202
     
    32163214
    32173215EOF
    3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3216if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32193217then
    32203218  rtems_cv_sysv_shm="yes"
     
    32393237
    32403238echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
    3241 echo "configure:3242: checking whether $RTEMS_HOST supports System V messages" >&5
     3239echo "configure:3240: checking whether $RTEMS_HOST supports System V messages" >&5
    32423240if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
    32433241  echo $ac_n "(cached) $ac_c" 1>&6
     
    32483246else
    32493247  cat > conftest.$ac_ext <<EOF
    3250 #line 3251 "configure"
     3248#line 3249 "configure"
    32513249#include "confdefs.h"
    32523250
     
    32643262
    32653263EOF
    3266 if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3264if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32673265then
    32683266  rtems_cv_sysv_msg="yes"
     
    32893287
    32903288echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
    3291 echo "configure:3292: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
     3289echo "configure:3290: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
    32923290if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
    32933291  rtems_av_save_dir=`pwd`;
     
    33043302
    33053303echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
    3306 echo "configure:3307: checking for Makefile.in in c/src/exec/rtems" >&5
     3304echo "configure:3305: checking for Makefile.in in c/src/exec/rtems" >&5
    33073305if test -d $srcdir/c/src/exec/rtems; then
    33083306  rtems_av_save_dir=`pwd`;
     
    33193317
    33203318echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
    3321 echo "configure:3322: checking for Makefile.in in c/src/exec/sapi" >&5
     3319echo "configure:3320: checking for Makefile.in in c/src/exec/sapi" >&5
    33223320if test -d $srcdir/c/src/exec/sapi; then
    33233321  rtems_av_save_dir=`pwd`;
     
    33343332
    33353333echo $ac_n "checking for Makefile.in in c/src/exec/score/cpu/$target_cpu""... $ac_c" 1>&6
    3336 echo "configure:3337: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&5
     3334echo "configure:3335: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&5
    33373335if test -d $srcdir/c/src/exec/score/cpu/$target_cpu; then
    33383336  rtems_av_save_dir=`pwd`;
     
    33513349 
    33523350echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
    3353 echo "configure:3354: checking for Makefile.in in c/src/exec/posix" >&5
     3351echo "configure:3352: checking for Makefile.in in c/src/exec/posix" >&5
    33543352if test -d $srcdir/c/src/exec/posix; then
    33553353  rtems_av_save_dir=`pwd`;
     
    33733371  if test -z "$rtems_bsp"; then
    33743372    echo $ac_n "checking for bsps""... $ac_c" 1>&6
    3375 echo "configure:3376: checking for bsps" >&5
     3373echo "configure:3374: checking for bsps" >&5
    33763374    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
    33773375    for file in $files; do
     
    34383436       
    34393437echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6
    3440 echo "configure:3441: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5
     3438echo "configure:3439: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5
    34413439if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then
    34423440  rtems_av_save_dir=`pwd`;
     
    34533451       
    34543452echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6
    3455 echo "configure:3456: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5
     3453echo "configure:3454: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5
    34563454if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then
    34573455  rtems_av_save_dir=`pwd`;
     
    34763474
    34773475echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
    3478 echo "configure:3479: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
     3476echo "configure:3477: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
    34793477if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
    34803478  rtems_av_save_dir=`pwd`;
     
    34933491 
    34943492echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
    3495 echo "configure:3496: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
     3493echo "configure:3494: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
    34963494if test -d $srcdir/c/src/lib/start/$target_cpu; then
    34973495  rtems_av_save_dir=`pwd`;
     
    35093507
    35103508
    3511 
    35123509PROJECT_ROOT=`pwd;`
    35133510
     
    35253522# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
    35263523echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6
    3527 echo "configure:3528: checking if networking is enabled? " >&5
     3524echo "configure:3525: checking if networking is enabled? " >&5
    35283525echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6
    35293526if test "$RTEMS_HAS_NETWORKING" = "yes"; then
    35303527 
    35313528echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6
    3532 echo "configure:3533: checking for Makefile.in in c/src/lib/libnetworking" >&5
     3529echo "configure:3530: checking for Makefile.in in c/src/lib/libnetworking" >&5
    35333530if test -d $srcdir/c/src/lib/libnetworking; then
    35343531  rtems_av_save_dir=`pwd`;
     
    35453542 
    35463543echo $ac_n "checking for Makefile.in in c/src/lib/librpc""... $ac_c" 1>&6
    3547 echo "configure:3548: checking for Makefile.in in c/src/lib/librpc" >&5
     3544echo "configure:3545: checking for Makefile.in in c/src/lib/librpc" >&5
    35483545if test -d $srcdir/c/src/lib/librpc; then
    35493546  rtems_av_save_dir=`pwd`;
     
    35613558   
    35623559echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6
    3563 echo "configure:3564: checking for Makefile.in in c/src/lib/librdbg" >&5
     3560echo "configure:3561: checking for Makefile.in in c/src/lib/librdbg" >&5
    35643561if test -d $srcdir/c/src/lib/librdbg; then
    35653562  rtems_av_save_dir=`pwd`;
     
    35823579fi
    35833580
     3581
    35843582# If the tests are enabled, then find all the test suite Makefiles
    35853583echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
    3586 echo "configure:3587: checking if the test suites are enabled? " >&5
    3587 tests_enabled=no
     3584echo "configure:3585: checking if the test suites are enabled? " >&5
     3585tests_enabled=yes
    35883586# Check whether --enable-tests or --disable-tests was given.
    35893587if test "${enable_tests+set}" = set; then
    35903588  enableval="$enable_tests"
    3591   \
    35923589  case "${enableval}" in
    3593     yes) echo "$ac_t""yes" 1>&6 ; tests_enabled=yes ;;
     3590    yes) echo "$ac_t""yes" 1>&6 ;;
    35943591    no)  echo "$ac_t""no" 1>&6 ; tests_enabled=no ;;
    35953592    *)   { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;
     
    35973594else
    35983595  echo "$ac_t""no" 1>&6
    3599 
    3600 fi
     3596fi
     3597
    36013598
    36023599
    36033600
    36043601echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
    3605 echo "configure:3606: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
     3602echo "configure:3603: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
    36063603if test -d $srcdir/c/src/tests/tools/$target_cpu; then
    36073604  rtems_av_save_dir=`pwd`;
     
    36203617   
    36213618echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
    3622 echo "configure:3623: checking for Makefile.in in c/src/tests/libtests" >&5
     3619echo "configure:3620: checking for Makefile.in in c/src/tests/libtests" >&5
    36233620if test -d $srcdir/c/src/tests/libtests; then
    36243621  rtems_av_save_dir=`pwd`;
     
    36353632   
    36363633echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
    3637 echo "configure:3638: checking for Makefile.in in c/src/tests/sptests" >&5
     3634echo "configure:3635: checking for Makefile.in in c/src/tests/sptests" >&5
    36383635if test -d $srcdir/c/src/tests/sptests; then
    36393636  rtems_av_save_dir=`pwd`;
     
    36503647   
    36513648echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
    3652 echo "configure:3653: checking for Makefile.in in c/src/tests/tmtests" >&5
     3649echo "configure:3650: checking for Makefile.in in c/src/tests/tmtests" >&5
    36533650if test -d $srcdir/c/src/tests/tmtests; then
    36543651  rtems_av_save_dir=`pwd`;
     
    36663663       
    36673664echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
    3668 echo "configure:3669: checking for Makefile.in in c/src/tests/mptests" >&5
     3665echo "configure:3666: checking for Makefile.in in c/src/tests/mptests" >&5
    36693666if test -d $srcdir/c/src/tests/mptests; then
    36703667  rtems_av_save_dir=`pwd`;
     
    36833680     
    36843681echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
    3685 echo "configure:3686: checking for Makefile.in in c/src/tests/psxtests" >&5
     3682echo "configure:3683: checking for Makefile.in in c/src/tests/psxtests" >&5
    36863683if test -d $srcdir/c/src/tests/psxtests; then
    36873684  rtems_av_save_dir=`pwd`;
     
    37003697
    37013698# If the HWAPI is enabled, the find the HWAPI Makefiles
    3702 echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6
    3703 echo "configure:3704: checking if the HWAPI is enabled? " >&5
    37043699# Check whether --enable-hwapi or --disable-hwapi was given.
    37053700if test "${enable_hwapi+set}" = set; then
    37063701  enableval="$enable_hwapi"
    3707   \
    37083702  case "${enableval}" in
    3709     yes) echo "$ac_t""yes" 1>&6
    3710          if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
    3711             makefiles="$makefiles c/src/lib/libhwapi/Makefile"
    3712            
     3703    yes) RTEMS_HAS_HWAPI=yes ;;
     3704    no)  RTEMS_HAS_HWAPI=no ;;
     3705    *)  { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;;
     3706  esac
     3707else
     3708  RTEMS_HAS_HWAPI=no
     3709fi
     3710
     3711
     3712if test "$RTEMS_HAS_HWAPI" = "yes"; then
     3713  echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6
     3714echo "configure:3715: checking whether libwapi is present" >&5
     3715  if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
     3716    echo "$ac_t""yes" 1>&6
     3717    makefiles="$makefiles c/src/lib/libhwapi/Makefile"
     3718   
    37133719echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
    3714 echo "configure:3715: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
     3720echo "configure:3721: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
    37153721if test -d $srcdir/c/src/lib/libhwapi/analog; then
    37163722  rtems_av_save_dir=`pwd`;
     
    37253731
    37263732
    3727            
     3733   
    37283734echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
    3729 echo "configure:3730: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
     3735echo "configure:3736: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
    37303736if test -d $srcdir/c/src/lib/libhwapi/discrete; then
    37313737  rtems_av_save_dir=`pwd`;
     
    37403746
    37413747
    3742            
     3748   
    37433749echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
    3744 echo "configure:3745: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
     3750echo "configure:3751: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
    37453751if test -d $srcdir/c/src/lib/libhwapi/drivers; then
    37463752  rtems_av_save_dir=`pwd`;
     
    37553761
    37563762
    3757            
     3763   
    37583764echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
    3759 echo "configure:3760: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
     3765echo "configure:3766: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
    37603766if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
    37613767  rtems_av_save_dir=`pwd`;
     
    37703776
    37713777
    3772            
     3778   
    37733779echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
    3774 echo "configure:3775: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
     3780echo "configure:3781: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
    37753781if test -d $srcdir/c/src/lib/libhwapi/serial; then
    37763782  rtems_av_save_dir=`pwd`;
     
    37853791
    37863792
    3787            
     3793   
    37883794echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
    3789 echo "configure:3790: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
     3795echo "configure:3796: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
    37903796if test -d $srcdir/c/src/lib/libhwapi/support; then
    37913797  rtems_av_save_dir=`pwd`;
     
    38003806
    38013807
    3802            
     3808   
    38033809echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
    3804 echo "configure:3805: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
     3810echo "configure:3811: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
    38053811if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
    38063812  rtems_av_save_dir=`pwd`;
     
    38153821
    38163822
    3817          else
    3818             { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; }
    3819          fi
    3820          ;;
    3821     no)  echo "$ac_t""no" 1>&6 ;;
    3822     *)  { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;;
    3823   esac
    3824 else
    3825   echo "$ac_t""no" 1>&6
    3826 
    3827 fi
    3828 
     3823  else
     3824    { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; }
     3825  fi
     3826fi
    38293827
    38303828
     
    38523850# pick up all the Makefiles in required parts of the tree
    38533851
    3854 echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
    3855 echo "configure:3856: checking for Makefile.in in c/build-tools" >&5
    3856 if test -d $srcdir/c/build-tools; then
    3857   rtems_av_save_dir=`pwd`;
    3858   cd $srcdir;
    3859   rtems_av_tmp=`find c/build-tools -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
    3860   makefiles="$makefiles $rtems_av_tmp";
    3861   cd $rtems_av_save_dir;
    3862   echo "$ac_t""done" 1>&6
    3863 else
    3864   echo "$ac_t""no" 1>&6
    3865 fi
    3866 
    3867 
    3868 
    38693852echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
    3870 echo "configure:3871: checking for Makefile.in in make" >&5
     3853echo "configure:3854: checking for Makefile.in in make" >&5
    38713854if test -d $srcdir/make; then
    38723855  rtems_av_save_dir=`pwd`;
     
    38833866
    38843867echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6
    3885 echo "configure:3886: checking for Makefile.in in c/src/lib/libchip" >&5
     3868echo "configure:3869: checking for Makefile.in in c/src/lib/libchip" >&5
    38863869if test -d $srcdir/c/src/lib/libchip; then
    38873870  rtems_av_save_dir=`pwd`;
     
    38983881
    38993882echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
    3900 echo "configure:3901: checking for Makefile.in in c/src/lib/libmisc" >&5
     3883echo "configure:3884: checking for Makefile.in in c/src/lib/libmisc" >&5
    39013884if test -d $srcdir/c/src/lib/libmisc; then
    39023885  rtems_av_save_dir=`pwd`;
     
    39133896
    39143897echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
    3915 echo "configure:3916: checking for Makefile.in in c/src/tests/samples" >&5
     3898echo "configure:3899: checking for Makefile.in in c/src/tests/samples" >&5
    39163899if test -d $srcdir/c/src/tests/samples; then
    39173900  rtems_av_save_dir=`pwd`;
     
    39273910
    39283911
    3929 
     3912subdirs="c/build-tools"
     3913
     3914# FIXME: libwapi needs a separate configure.in in future ;-
     3915# AC_CONFIG_SUBDIRS(c/src/lib/libwapi)
    39303916
    39313917# try not to explicitly list a Makefile here
     
    39933979trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
    39943980
    3995 DEFS=-DHAVE_CONFIG_H
     3981# Transform confdefs.h into DEFS.
     3982# Protect against shell expansion while executing Makefile rules.
     3983# Protect against Makefile macro expansion.
     3984cat > conftest.defs <<\EOF
     3985s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
     3986s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
     3987s%\[%\\&%g
     3988s%\]%\\&%g
     3989s%\$%$$%g
     3990EOF
     3991DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
     3992rm -f conftest.defs
     3993
    39963994
    39973995# Without the "./", some shells look in PATH for config.status.
     
    40694067c/src/tests/tools/generic/Makefile
    40704068$makefiles
    4071 c/update-tools/Makefile c/build-tools/src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     4069c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    40724070EOF
    40734071cat >> $CONFIG_STATUS <<EOF
     
    41014099s%@infodir@%$infodir%g
    41024100s%@mandir@%$mandir%g
     4101s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
     4102s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     4103s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    41034104s%@SET_MAKE@%$SET_MAKE%g
    41044105s%@host@%$host%g
     
    41174118s%@build_vendor@%$build_vendor%g
    41184119s%@build_os@%$build_os%g
     4120s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
    41194121s%@CAT@%$CAT%g
    41204122s%@RM@%$RM%g
     
    41354137s%@M4@%$M4%g
    41364138s%@KSH@%$KSH%g
     4139s%@RTEMS_HOST@%$RTEMS_HOST%g
    41374140s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
    41384141s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
     
    41514154s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
    41524155s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
    4153 s%@RTEMS_HOST@%$RTEMS_HOST%g
    41544156s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
    41554157s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g
    4156 s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
    41574158s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
    41584159s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g
     
    41624163s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g
    41634164s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g
    4164 s%@PROJECT_ROOT@%$PROJECT_ROOT%g
    41654165s%@program_prefix@%$program_prefix%g
    41664166s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g
     
    41684168s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g
    41694169s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g
     4170s%@subdirs@%$subdirs%g
    41704171
    41714172CEOF
     
    43064307rm -f conftest.s*
    43074308
    4308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
    4309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
    4310 #
    4311 # ac_d sets the value in "#define NAME VALUE" lines.
    4312 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
    4313 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
    4314 ac_dC='\3'
    4315 ac_dD='%g'
    4316 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    4317 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    4318 ac_uB='\([      ]\)%\1#\2define\3'
    4319 ac_uC=' '
    4320 ac_uD='\4%g'
    4321 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    4322 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    4323 ac_eB='$%\1#\2define\3'
    4324 ac_eC=' '
    4325 ac_eD='%g'
    4326 
    4327 if test "${CONFIG_HEADERS+set}" != set; then
    4328 EOF
    4329 cat >> $CONFIG_STATUS <<EOF
    4330   CONFIG_HEADERS="c/build-tools/src/config.h"
    4331 EOF
    4332 cat >> $CONFIG_STATUS <<\EOF
    4333 fi
    4334 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
    4335   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    4336   case "$ac_file" in
    4337   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    4338        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    4339   *) ac_file_in="${ac_file}.in" ;;
    4340   esac
    4341 
    4342   echo creating $ac_file
    4343 
    4344   rm -f conftest.frag conftest.in conftest.out
    4345   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    4346   cat $ac_file_inputs > conftest.in
    4347 
    4348 EOF
    4349 
    4350 # Transform confdefs.h into a sed script conftest.vals that substitutes
    4351 # the proper values into config.h.in to produce config.h.  And first:
    4352 # Protect against being on the right side of a sed subst in config.status.
    4353 # Protect against being in an unquoted here document in config.status.
    4354 rm -f conftest.vals
    4355 cat > conftest.hdr <<\EOF
    4356 s/[\\&%]/\\&/g
    4357 s%[\\$`]%\\&%g
    4358 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    4359 s%ac_d%ac_u%gp
    4360 s%ac_u%ac_e%gp
    4361 EOF
    4362 sed -n -f conftest.hdr confdefs.h > conftest.vals
    4363 rm -f conftest.hdr
    4364 
    4365 # This sed command replaces #undef with comments.  This is necessary, for
    4366 # example, in the case of _POSIX_SOURCE, which is predefined and required
    4367 # on some systems where configure will not decide to define it.
    4368 cat >> conftest.vals <<\EOF
    4369 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
    4370 EOF
    4371 
    4372 # Break up conftest.vals because some shells have a limit on
    4373 # the size of here documents, and old seds have small limits too.
    4374 
    4375 rm -f conftest.tail
    4376 while :
    4377 do
    4378   ac_lines=`grep -c . conftest.vals`
    4379   # grep -c gives empty output for an empty file on some AIX systems.
    4380   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    4381   # Write a limited-size here document to conftest.frag.
    4382   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    4383   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
    4384   echo 'CEOF
    4385   sed -f conftest.frag conftest.in > conftest.out
    4386   rm -f conftest.in
    4387   mv conftest.out conftest.in
    4388 ' >> $CONFIG_STATUS
    4389   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    4390   rm -f conftest.vals
    4391   mv conftest.tail conftest.vals
    4392 done
    4393 rm -f conftest.vals
    4394 
    4395 cat >> $CONFIG_STATUS <<\EOF
    4396   rm -f conftest.frag conftest.h
    4397   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    4398   cat conftest.in >> conftest.h
    4399   rm -f conftest.in
    4400   if cmp -s $ac_file conftest.h 2>/dev/null; then
    4401     echo "$ac_file is unchanged"
    4402     rm -f conftest.h
    4403   else
    4404     # Remove last slash and all that follows it.  Not all systems have dirname.
    4405       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
    4406       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    4407       # The file is in a subdirectory.
    4408       test ! -d "$ac_dir" && mkdir "$ac_dir"
    4409     fi
    4410     rm -f $ac_file
    4411     mv conftest.h $ac_file
    4412   fi
    4413 fi; done
    4414 
    44154309EOF
    44164310cat >> $CONFIG_STATUS <<EOF
     
    44244318rm -fr confdefs* $ac_clean_files
    44254319test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
     4320
     4321if test "$no_recursion" != yes; then
     4322
     4323  # Remove --cache-file and --srcdir arguments so they do not pile up.
     4324  ac_sub_configure_args=
     4325  ac_prev=
     4326  for ac_arg in $ac_configure_args; do
     4327    if test -n "$ac_prev"; then
     4328      ac_prev=
     4329      continue
     4330    fi
     4331    case "$ac_arg" in
     4332    -cache-file | --cache-file | --cache-fil | --cache-fi \
     4333    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     4334      ac_prev=cache_file ;;
     4335    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
     4336    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
     4337      ;;
     4338    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     4339      ac_prev=srcdir ;;
     4340    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
     4341      ;;
     4342    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
     4343    esac
     4344  done
     4345
     4346  for ac_config_dir in c/build-tools; do
     4347
     4348    # Do not complain, so a configure script can configure whichever
     4349    # parts of a large source tree are present.
     4350    if test ! -d $srcdir/$ac_config_dir; then
     4351      continue
     4352    fi
     4353
     4354    echo configuring in $ac_config_dir
     4355
     4356    case "$srcdir" in
     4357    .) ;;
     4358    *)
     4359      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
     4360      else
     4361        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
     4362      fi
     4363      ;;
     4364    esac
     4365
     4366    ac_popdir=`pwd`
     4367    cd $ac_config_dir
     4368
     4369      # A "../" for each directory in /$ac_config_dir.
     4370      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
     4371
     4372    case "$srcdir" in
     4373    .) # No --srcdir option.  We are building in place.
     4374      ac_sub_srcdir=$srcdir ;;
     4375    /*) # Absolute path.
     4376      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
     4377    *) # Relative path.
     4378      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
     4379    esac
     4380
     4381    # Check for guested configure; otherwise get Cygnus style configure.
     4382    if test -f $ac_sub_srcdir/configure; then
     4383      ac_sub_configure=$ac_sub_srcdir/configure
     4384    elif test -f $ac_sub_srcdir/configure.in; then
     4385      ac_sub_configure=$ac_configure
     4386    else
     4387      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
     4388      ac_sub_configure=
     4389    fi
     4390
     4391    # The recursion is here.
     4392    if test -n "$ac_sub_configure"; then
     4393
     4394      # Make the cache file name correct relative to the subdirectory.
     4395      case "$cache_file" in
     4396      /*) ac_sub_cache_file=$cache_file ;;
     4397      *) # Relative path.
     4398        ac_sub_cache_file="$ac_dots$cache_file" ;;
     4399      esac
     4400  case "$ac_given_INSTALL" in
     4401        [/$]*) INSTALL="$ac_given_INSTALL" ;;
     4402        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     4403        esac
     4404
     4405      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
     4406      # The eval makes quoting arguments work.
     4407      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
     4408      then :
     4409      else
     4410        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
     4411      fi
     4412    fi
     4413
     4414    cd $ac_popdir
     4415  done
     4416fi
    44264417
    44274418
  • configure.in

    rc0a36429 r04c308c  
    33dnl  $Id$
    44
    5 AC_PREREQ(2.12)
     5AC_PREREQ(2.13)
    66AC_INIT(README)
    77RTEMS_TOP(.)
     
    1010AC_PROG_MAKE_SET
    1111AC_CANONICAL_SYSTEM
     12
    1213AC_ARG_WITH(cross-host,[  --with-cross-host=HOST      host (cygnus)], \
    1314host=$withval)
    1415
    15 AC_ARG_ENABLE(gmake-print-directory, \
    16 [  --enable-gmake-print-directory    enable GNU Make's print directory], \
    17 [case "${enableval}" in
    18   yes) RTEMS_USE_OWN_PDIR=no ;;
    19   no) RTEMS_USE_OWN_PDIR=yes ;;
    20   *)  AC_MSG_ERROR(bad value ${enableval} for gmake-print-directory option) ;;
    21 esac],[RTEMS_USE_OWN_PDIR=yes])
    22 
    23 AC_ARG_ENABLE(multiprocessing, \
    24 [  --enable-multiprocessing                 enable multiprocessing interface], \
    25 [case "${enableval}" in
    26   yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
    27   no) RTEMS_HAS_MULTIPROCESSING=no ;;
    28   *)  AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;;
    29 esac],[RTEMS_HAS_MULTIPROCESSING=no])
    30 
    31 AC_ARG_ENABLE(posix, \
    32 [  --enable-posix                   enable posix interface], \
    33 [case "${enableval}" in
    34   yes) RTEMS_HAS_POSIX_API=yes ;;
    35   no) RTEMS_HAS_POSIX_API=no ;;
    36   *)  AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;
    37 esac],[RTEMS_HAS_POSIX_API=yes])
    38 
    39 AC_ARG_ENABLE(networking, \
    40 [  --enable-networking                enable TCP/IP stack], \
    41 [case "${enableval}" in
    42   yes) RTEMS_HAS_NETWORKING=yes ;;
    43   no) RTEMS_HAS_NETWORKING=no ;;
    44   *)  AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;;
    45 esac],[RTEMS_HAS_NETWORKING=yes])
    46 
    47 AC_ARG_ENABLE(rdbg, \
    48 [  --enable-rdbg                enable remote debugger], \
    49 [case "${enableval}" in
    50   yes) RTEMS_HAS_RDBG=yes ;;
    51   no) RTEMS_HAS_RDBG=no ;;
    52   *)  AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;;
    53 esac],[RTEMS_HAS_RDBG=no])
    54 
    55 AC_ARG_ENABLE(rtems-inlines, \
    56 [  --enable-rtems-inlines           enable RTEMS inline functions, the default (disable to use macros)], \
    57 [case "${enableval}" in
    58   yes) RTEMS_USE_MACROS=no ;;
    59   no) RTEMS_USE_MACROS=yes ;;
    60   *)  AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;
    61 esac],[RTEMS_USE_MACROS=no])
    62 
    63 AC_ARG_ENABLE(cxx, \
    64 [  --enable-cxx            enable C++ support, and build the rtems++ library], \
    65 [case "${enableval}" in
    66   yes) RTEMS_HAS_CPLUSPLUS=yes ;;
    67   no) RTEMS_HAS_CPLUSPLUS=no   ;;
    68   *)  AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
    69 esac], [RTEMS_HAS_CPLUSPLUS=no])
    70 
    71 AC_ARG_ENABLE(gcc28, \
    72 [  --enable-gcc28                   enable use of gcc 2.8.x features], \
    73 [case "${enableval}" in
    74   yes) RTEMS_USE_GCC272=no ;;
    75   no) RTEMS_USE_GCC272=yes ;;
    76   *)  AC_MSG_ERROR(bad value ${enableval} for gcc-28 option) ;;
    77 esac],[RTEMS_USE_GCC272=no])
    78 
    79 AC_ARG_ENABLE(libcdir, \
    80 [  --enable-libcdir=directory       set the directory for the C library], \
    81 [ RTEMS_LIBC_DIR="${enableval}" ; \
    82 test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] )
    83 
    84 AC_ARG_ENABLE(bare-cpu-cflags,
    85 [  --enable-bare-cpu-cflags          \
    86          specify a particular cpu cflag (bare bsp specific)],
    87 [case "${enableval}" in
    88   no) BARE_CPU_CFLAGS="" ;;
    89   *)    BARE_CPU_CFLAGS="${enableval}" ;;
    90 esac],
    91 [BARE_CPU_CFLAGS=""])
    92 
    93 AC_ARG_ENABLE(bare-cpu-model,
    94 [  --enable-bare-cpu-model              \
    95          specify a particular cpu model (bare bsp specific)],
    96 [case "${enableval}" in
    97   no)   BARE_CPU_MODEL="" ;;
    98   *)    BARE_CPU_MODEL="${enableval}" ;;
    99 esac],
    100 [BARE_CPU_MODEL=""])
     16RTEMS_ENABLE_GMAKE_PRINT
     17RTEMS_ENABLE_MULTIPROCESSING
     18RTEMS_ENABLE_POSIX
     19RTEMS_ENABLE_NETWORKING
     20RTEMS_ENABLE_RDBG
     21RTEMS_ENABLE_INLINES
     22RTEMS_ENABLE_CXX
     23RTEMS_ENABLE_GCC28
     24RTEMS_ENABLE_LIBCDIR
     25RTEMS_ENABLE_BARE
    10126
    10227RTEMS_PREFIX=${target_cpu}-${target_vendor}
     
    11641
    11742dnl check mkdir behaviour, try to get mkdir -p -m 0755
     43dnl NOTE: This is considered obsolete
     44dnl MKDIR is not used anywhere in the source tree anymore.
     45dnl In Makefile.ins/Makefile.ams, use
     46dnl "mkinstalldirs" for recursive mkdir and
     47dnl "mkdir" for non-recursive mkdir, instead
    11848RTEMS_PATH_MKDIR
    11949RTEMS_PROG_MKDIR_M
     
    15181
    15282RTEMS_CANONICAL_TARGET_CPU
     83RTEMS_CHECK_CPU
     84RTEMS_CANONICAL_HOST
    15385
    15486changequote(,)dnl
    15587case "${target}" in
    156   # hpux unix port should go here
    15788  i[3456]86-go32-rtems*)
    158         rtems_bsp="go32 go32_p5"
    159         skip_startfiles="yes"
    160         RTEMS_HAS_POSIX_API=no
    161         ;;
    162   i[3456]86-pc-linux*)         # unix "simulator" port
    163         RTEMS_HOST=Linux
    164         # override these settings
    165         RTEMS_HAS_POSIX_API=no
    166         ;;
    167   i[3456]86-*freebsd2*) # unix "simulator" port
    168         RTEMS_HOST=FreeBSD
    169         # override these settings
    170         RTEMS_HAS_POSIX_API=no
    171         ;;
    172   no_cpu-*rtems*)
    173         RTEMS_HAS_POSIX_API=no
    174         ;;
    175   sparc-sun-solaris*)             # unix "simulator" port
    176         RTEMS_HOST=Solaris
    177         # override these settings
    178         RTEMS_HAS_POSIX_API=no
    179         ;;
    180   *)
    181         ;;
     89    rtems_bsp="go32 go32_p5"
     90    skip_startfiles="yes"
     91    ;;
     92  *)
     93    ;;
    18294esac
    18395changequote([,])dnl
    184 
    18596
    18697# Override the set of BSPs to be built.
     
    189100      rtems_bsp=$enableval \
    190101)
    191 
    192 # Is this a supported CPU?
    193 AC_MSG_CHECKING([if cpu $target_cpu is supported])
    194 if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
    195   AC_MSG_RESULT(yes)
    196 else
    197   AC_MSG_ERROR(no)
    198 fi
    199102
    200103RTEMS_TOOL_PREFIX
     
    237140dnl check host cc
    238141AC_PROG_CC
    239 
    240 RTEMS_CYGWIN32
    241 RTEMS_EXEEXT
     142dnl check for .exe (Cygwin)
     143AC_EXEEXT
    242144
    243145dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
     
    261163dnl Add -g if the host compiler accepts -g, assume -g means debugging
    262164test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"}
    263 
    264 dnl check for host library functions
    265 dnl NOTE: must be called after AC_PROG_CC
    266 AC_CHECK_FUNCS(strerror)
    267165
    268166dnl check for SysV IPC used by simulators
     
    380278dnl END configure.target.in
    381279
    382 
    383280PROJECT_ROOT=`pwd;`
    384281
     
    410307fi
    411308
    412 # If the tests are enabled, then find all the test suite Makefiles
    413 AC_MSG_CHECKING([if the test suites are enabled? ])
    414 tests_enabled=no
    415 AC_ARG_ENABLE(tests, \
    416 [  --enable-tests                   enable tests (default:disabled)], \
    417   [case "${enableval}" in
    418     yes) AC_MSG_RESULT(yes) ; tests_enabled=yes ;;
    419     no)  AC_MSG_RESULT(no) ; tests_enabled=no ;;
    420     *)   AC_MSG_ERROR(bad value ${enableval} for tests option) ;;
    421   esac],
    422 AC_MSG_RESULT(no)
    423 )
     309RTEMS_ENABLE_TESTS
    424310
    425311RTEMS_CHECK_MAKEFILE(c/src/tests/tools/$target_cpu)
     
    438324
    439325# If the HWAPI is enabled, the find the HWAPI Makefiles
    440 AC_MSG_CHECKING([if the HWAPI is enabled? ])
    441 AC_ARG_ENABLE(hwapi, \
    442 [  --enable-hwapi                 enable hardware API library], \
    443   [case "${enableval}" in
    444     yes) AC_MSG_RESULT(yes)
    445          if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
    446             makefiles="$makefiles c/src/lib/libhwapi/Makefile"
    447             RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/analog)
    448             RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/discrete)
    449             RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/drivers)
    450             RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/non_volatile_memory)
    451             RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/serial)
    452             RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/support)
    453             RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/wrapup)
    454          else
    455             AC_MSG_ERROR(No source code found for the HWAPI)
    456          fi
    457          ;;
    458     no)  AC_MSG_RESULT(no) ;;
    459     *)  AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;;
    460   esac],
    461   AC_MSG_RESULT(no)
    462 )
     326RTEMS_ENABLE_HWAPI
     327if test "$RTEMS_HAS_HWAPI" = "yes"; then
     328  AC_MSG_CHECKING(whether libwapi is present)
     329  if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
     330    AC_MSG_RESULT(yes)
     331    makefiles="$makefiles c/src/lib/libhwapi/Makefile"
     332    RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/analog)
     333    RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/discrete)
     334    RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/drivers)
     335    RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/non_volatile_memory)
     336    RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/serial)
     337    RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/support)
     338    RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/wrapup)
     339  else
     340    AC_MSG_ERROR(No source code found for the HWAPI)
     341  fi
     342fi
    463343
    464344AC_SUBST(RTEMS_GAS_CODE16)
     
    485365
    486366# pick up all the Makefiles in required parts of the tree
    487 RTEMS_CHECK_MAKEFILE(c/build-tools)
    488367RTEMS_CHECK_MAKEFILE(make)
    489368RTEMS_CHECK_MAKEFILE(c/src/lib/libchip)
     
    491370RTEMS_CHECK_MAKEFILE(c/src/tests/samples)
    492371
    493 AC_CONFIG_HEADER(c/build-tools/src/config.h)
     372AC_CONFIG_SUBDIRS(c/build-tools)
     373# FIXME: libwapi needs a separate configure.in in future ;-
     374# AC_CONFIG_SUBDIRS(c/src/lib/libwapi)
    494375
    495376# try not to explicitly list a Makefile here
  • tools/build/Makefile.in

    rc0a36429 r04c308c  
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
    113#
    214# $Id$
    315#
    416
    5 @SET_MAKE@
     17
     18SHELL = @SHELL@
     19
    620srcdir = @srcdir@
    721top_srcdir = @top_srcdir@
    8 top_builddir = ../..
    9 subdir = c/build-tools
     22VPATH = @srcdir@
     23prefix = @prefix@
     24exec_prefix = @exec_prefix@
     25
     26bindir = @bindir@
     27sbindir = @sbindir@
     28libexecdir = @libexecdir@
     29datadir = @datadir@
     30sysconfdir = @sysconfdir@
     31sharedstatedir = @sharedstatedir@
     32localstatedir = @localstatedir@
     33libdir = @libdir@
     34infodir = @infodir@
     35mandir = @mandir@
     36includedir = @includedir@
     37oldincludedir = /usr/include
     38
     39DESTDIR =
     40
     41pkgdatadir = $(datadir)/@PACKAGE@
     42pkglibdir = $(libdir)/@PACKAGE@
     43pkgincludedir = $(includedir)/@PACKAGE@
     44
     45top_builddir = .
     46AUTOCONF = @AUTOCONF@
     47AUTOMAKE = @AUTOMAKE@
     48AUTOHEADER = @AUTOHEADER@
    1049
    1150INSTALL = @INSTALL@
    12 
    13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
     51INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     52INSTALL_DATA = @INSTALL_DATA@
     53INSTALL_SCRIPT = @INSTALL_SCRIPT@
     54transform = @program_transform_name@
     55
     56NORMAL_INSTALL = :
     57PRE_INSTALL = :
     58POST_INSTALL = :
     59NORMAL_UNINSTALL = :
     60PRE_UNINSTALL = :
     61POST_UNINSTALL = :
     62host_alias = @host_alias@
     63host_triplet = @host@
     64CC = @CC@
     65EXEEXT = @EXEEXT@
     66KSH = @KSH@
     67MAKEINFO = @MAKEINFO@
     68PACKAGE = @PACKAGE@
    1469PROJECT_ROOT = @PROJECT_ROOT@
    15 
    16 VPATH = @srcdir@
    17 
    18 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    19 include $(RTEMS_ROOT)/make/directory.cfg
    20 
    21 SUB_DIRS=os scripts src
    22 
    23 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
     70RTEMS_ROOT = @RTEMS_ROOT@
     71RTEMS_TOPdir = @RTEMS_TOPdir@
     72VERSION = @VERSION@
     73
     74AUTOMAKE_OPTIONS = foreign
     75ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
     76
     77SUBDIRS = scripts src
     78ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     79mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
     80CONFIG_HEADER = ./src/config.h
     81CONFIG_CLEAN_FILES =
     82DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
     83
     84
     85DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     86
     87TAR = tar
     88GZIP_ENV = --best
     89all: all-redirect
     90.SUFFIXES:
     91$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     92        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
     93
     94Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    2495        cd $(top_builddir) \
    25          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     96          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     97
     98$(ACLOCAL_M4):  configure.in
     99        cd $(srcdir) && $(ACLOCAL)
     100
     101config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     102        $(SHELL) ./config.status --recheck
     103$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     104        cd $(srcdir) && $(AUTOCONF)
     105
     106# This directory's subdirectories are mostly independent; you can cd
     107# into them and run `make' without going through this Makefile.
     108# To change the values of `make' variables: instead of editing Makefiles,
     109# (1) if the variable is set in `config.status', edit `config.status'
     110#     (which will cause the Makefiles to be regenerated when you run `make');
     111# (2) otherwise, pass the desired values on the `make' command line.
     112
     113@SET_MAKE@
     114
     115all-recursive install-data-recursive install-exec-recursive \
     116installdirs-recursive install-recursive uninstall-recursive  \
     117check-recursive installcheck-recursive info-recursive dvi-recursive:
     118        @set fnord $(MAKEFLAGS); amf=$$2; \
     119        dot_seen=no; \
     120        target=`echo $@ | sed s/-recursive//`; \
     121        list='$(SUBDIRS)'; for subdir in $$list; do \
     122          echo "Making $$target in $$subdir"; \
     123          if test "$$subdir" = "."; then \
     124            dot_seen=yes; \
     125            local_target="$$target-am"; \
     126          else \
     127            local_target="$$target"; \
     128          fi; \
     129          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
     130           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
     131        done; \
     132        if test "$$dot_seen" = "no"; then \
     133          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
     134        fi; test -z "$$fail"
     135
     136mostlyclean-recursive clean-recursive distclean-recursive \
     137maintainer-clean-recursive:
     138        @set fnord $(MAKEFLAGS); amf=$$2; \
     139        dot_seen=no; \
     140        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
     141          rev="$$subdir $$rev"; \
     142          test "$$subdir" = "." && dot_seen=yes; \
     143        done; \
     144        test "$$dot_seen" = "no" && rev=". $$rev"; \
     145        target=`echo $@ | sed s/-recursive//`; \
     146        for subdir in $$rev; do \
     147          echo "Making $$target in $$subdir"; \
     148          if test "$$subdir" = "."; then \
     149            local_target="$$target-am"; \
     150          else \
     151            local_target="$$target"; \
     152          fi; \
     153          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
     154           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
     155        done && test -z "$$fail"
     156tags-recursive:
     157        list='$(SUBDIRS)'; for subdir in $$list; do \
     158          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
     159        done
     160
     161tags: TAGS
     162
     163ID: $(HEADERS) $(SOURCES) $(LISP)
     164        list='$(SOURCES) $(HEADERS)'; \
     165        unique=`for i in $$list; do echo $$i; done | \
     166          awk '    { files[$$0] = 1; } \
     167               END { for (i in files) print i; }'`; \
     168        here=`pwd` && cd $(srcdir) \
     169          && mkid -f$$here/ID $$unique $(LISP)
     170
     171TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
     172        tags=; \
     173        here=`pwd`; \
     174        list='$(SUBDIRS)'; for subdir in $$list; do \
     175   if test "$$subdir" = .; then :; else \
     176            test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
     177   fi; \
     178        done; \
     179        list='$(SOURCES) $(HEADERS)'; \
     180        unique=`for i in $$list; do echo $$i; done | \
     181          awk '    { files[$$0] = 1; } \
     182               END { for (i in files) print i; }'`; \
     183        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     184          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
     185
     186mostlyclean-tags:
     187
     188clean-tags:
     189
     190distclean-tags:
     191        -rm -f TAGS ID
     192
     193maintainer-clean-tags:
     194
     195distdir = $(PACKAGE)-$(VERSION)
     196top_distdir = $(distdir)
     197
     198# This target untars the dist file and tries a VPATH configuration.  Then
     199# it guarantees that the distribution is self-contained by making another
     200# tarfile.
     201distcheck: dist
     202        -rm -rf $(distdir)
     203        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
     204        mkdir $(distdir)/=build
     205        mkdir $(distdir)/=inst
     206        dc_install_base=`cd $(distdir)/=inst && pwd`; \
     207        cd $(distdir)/=build \
     208          && ../configure --srcdir=.. --prefix=$$dc_install_base \
     209          && $(MAKE) $(AM_MAKEFLAGS) \
     210          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     211          && $(MAKE) $(AM_MAKEFLAGS) check \
     212          && $(MAKE) $(AM_MAKEFLAGS) install \
     213          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     214          && $(MAKE) $(AM_MAKEFLAGS) dist
     215        -rm -rf $(distdir)
     216        @banner="$(distdir).tar.gz is ready for distribution"; \
     217        dashes=`echo "$$banner" | sed s/./=/g`; \
     218        echo "$$dashes"; \
     219        echo "$$banner"; \
     220        echo "$$dashes"
     221dist: distdir
     222        -chmod -R a+r $(distdir)
     223        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     224        -rm -rf $(distdir)
     225dist-all: distdir
     226        -chmod -R a+r $(distdir)
     227        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     228        -rm -rf $(distdir)
     229distdir: $(DISTFILES)
     230        -rm -rf $(distdir)
     231        mkdir $(distdir)
     232        -chmod 777 $(distdir)
     233        here=`cd $(top_builddir) && pwd`; \
     234        top_distdir=`cd $(distdir) && pwd`; \
     235        distdir=`cd $(distdir) && pwd`; \
     236        cd $(top_srcdir) \
     237          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
     238        @for file in $(DISTFILES); do \
     239          d=$(srcdir); \
     240          if test -d $$d/$$file; then \
     241            cp -pr $$/$$file $(distdir)/$$file; \
     242          else \
     243            test -f $(distdir)/$$file \
     244            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     245            || cp -p $$d/$$file $(distdir)/$$file || :; \
     246          fi; \
     247        done
     248        for subdir in $(SUBDIRS); do \
     249          if test "$$subdir" = .; then :; else \
     250            test -d $(distdir)/$$subdir \
     251            || mkdir $(distdir)/$$subdir \
     252            || exit 1; \
     253            chmod 777 $(distdir)/$$subdir; \
     254            (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
     255              || exit 1; \
     256          fi; \
     257        done
     258info-am:
     259info: info-recursive
     260dvi-am:
     261dvi: dvi-recursive
     262check-am: all-am
     263check: check-recursive
     264installcheck-am:
     265installcheck: installcheck-recursive
     266install-exec-am:
     267install-exec: install-exec-recursive
     268
     269install-data-am:
     270install-data: install-data-recursive
     271
     272install-am: all-am
     273        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     274install: install-recursive
     275uninstall-am:
     276uninstall: uninstall-recursive
     277all-am: Makefile
     278all-redirect: all-recursive
     279install-strip:
     280        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     281installdirs: installdirs-recursive
     282installdirs-am:
     283
     284
     285mostlyclean-generic:
     286
     287clean-generic:
     288
     289distclean-generic:
     290        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     291        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     292
     293maintainer-clean-generic:
     294mostlyclean-am:  mostlyclean-tags mostlyclean-generic
     295
     296mostlyclean: mostlyclean-recursive
     297
     298clean-am:  clean-tags clean-generic mostlyclean-am
     299
     300clean: clean-recursive
     301
     302distclean-am:  distclean-tags distclean-generic clean-am
     303
     304distclean: distclean-recursive
     305        -rm -f config.status
     306
     307maintainer-clean-am:  maintainer-clean-tags maintainer-clean-generic \
     308                distclean-am
     309        @echo "This command is intended for maintainers to use;"
     310        @echo "it deletes files that may require special tools to rebuild."
     311
     312maintainer-clean: maintainer-clean-recursive
     313        -rm -f config.status
     314
     315.PHONY: install-data-recursive uninstall-data-recursive \
     316install-exec-recursive uninstall-exec-recursive installdirs-recursive \
     317uninstalldirs-recursive all-recursive check-recursive \
     318installcheck-recursive info-recursive dvi-recursive \
     319mostlyclean-recursive distclean-recursive clean-recursive \
     320maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
     321distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
     322dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
     323install-exec install-data-am install-data install-am install \
     324uninstall-am uninstall all-redirect all-am all installdirs-am \
     325installdirs mostlyclean-generic distclean-generic clean-generic \
     326maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     327
     328
     329# Tell versions [3.59,3.63) of GNU make to not export all variables.
     330# Otherwise a system limit (for SysV at least) may be exceeded.
     331.NOEXPORT:
  • tools/build/scripts/Makefile.in

    rc0a36429 r04c308c  
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
    113#
    214# $Id$
    315#
    4 # RTEMS build tools
    5 # NOTE: of course we can't use any of these tools
    6 #               in this Makefile.  Most notably: install-if-change
    7 #
    8 
    9 @SET_MAKE@
     16
     17
     18SHELL = @SHELL@
     19
    1020srcdir = @srcdir@
    1121top_srcdir = @top_srcdir@
    12 top_builddir = ../../..
    13 subdir = c/build-tools/scripts
     22VPATH = @srcdir@
     23prefix = @prefix@
     24exec_prefix = @exec_prefix@
     25
     26bindir = @bindir@
     27sbindir = @sbindir@
     28libexecdir = @libexecdir@
     29datadir = @datadir@
     30sysconfdir = @sysconfdir@
     31sharedstatedir = @sharedstatedir@
     32localstatedir = @localstatedir@
     33libdir = @libdir@
     34infodir = @infodir@
     35mandir = @mandir@
     36includedir = @includedir@
     37oldincludedir = /usr/include
     38
     39DESTDIR =
     40
     41pkgdatadir = $(datadir)/@PACKAGE@
     42pkglibdir = $(libdir)/@PACKAGE@
     43pkgincludedir = $(includedir)/@PACKAGE@
     44
     45top_builddir = ..
     46
     47ACLOCAL = @ACLOCAL@
     48AUTOCONF = @AUTOCONF@
     49AUTOMAKE = @AUTOMAKE@
     50AUTOHEADER = @AUTOHEADER@
    1451
    1552INSTALL = @INSTALL@
    16 
    17 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
     53INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     54INSTALL_DATA = @INSTALL_DATA@
     55INSTALL_SCRIPT = @INSTALL_SCRIPT@
     56transform = @program_transform_name@
     57
     58NORMAL_INSTALL = :
     59PRE_INSTALL = :
     60POST_INSTALL = :
     61NORMAL_UNINSTALL = :
     62PRE_UNINSTALL = :
     63POST_UNINSTALL = :
     64host_alias = @host_alias@
     65host_triplet = @host@
     66CC = @CC@
     67EXEEXT = @EXEEXT@
     68KSH = @KSH@
     69MAKEINFO = @MAKEINFO@
     70PACKAGE = @PACKAGE@
    1871PROJECT_ROOT = @PROJECT_ROOT@
    19 
    20 VPATH = @srcdir@
    21 
    22 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    23 include $(RTEMS_ROOT)/make/leaf.cfg
    24 
    25 DESTDIR=$(PROJECT_RELEASE)/build-tools
    26 
    27 BUILD_PGMS=install-if-change rcs-clean lock-directory unlock-directory
    28 PGMS = $(BUILD_PGMS) search-id.sh
    29 
    30 CLEAN_ADDITIONS += $(BUILD_PGMS)
    31 
    32 INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)
    33 
    34 all:    $(DESTDIR) $(PGMS) install
    35 
    36 $(DESTDIR):
    37         @top_srcdir@/mkinstalldirs $@
    38 
    39 $(INSTALLED_PGMS): $(PGMS)
    40         $(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR)
    41 
    42 install:  $(DESTDIR) $(INSTALLED_PGMS)
    43 
    44 %: $(srcdir)/%.in $(top_builddir)/config.status
     72RTEMS_ROOT = @RTEMS_ROOT@
     73RTEMS_TOPdir = @RTEMS_TOPdir@
     74VERSION = @VERSION@
     75
     76AUTOMAKE_OPTIONS = foreign
     77
     78bin_SCRIPTS =  install-if-change lock-directory unlock-directory rcs-clean
     79
     80
     81noinst_SCRIPTS = search-id.sh
     82mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
     83CONFIG_HEADER = ../src/config.h
     84CONFIG_CLEAN_FILES =  install-if-change lock-directory rcs-clean \
     85unlock-directory
     86SCRIPTS =  $(bin_SCRIPTS) $(noinst_SCRIPTS)
     87
     88DIST_COMMON =  README Makefile.am Makefile.in install-if-change.in \
     89lock-directory.in rcs-clean.in unlock-directory.in
     90
     91
     92DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     93
     94TAR = tar
     95GZIP_ENV = --best
     96all: all-redirect
     97.SUFFIXES:
     98$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     99        cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/Makefile
     100
     101Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    45102        cd $(top_builddir) \
    46          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     103          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     104
     105install-if-change: $(top_builddir)/config.status install-if-change.in
     106        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     107lock-directory: $(top_builddir)/config.status lock-directory.in
     108        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     109rcs-clean: $(top_builddir)/config.status rcs-clean.in
     110        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     111unlock-directory: $(top_builddir)/config.status unlock-directory.in
     112        cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     113
     114install-binSCRIPTS: $(bin_SCRIPTS)
     115        @$(NORMAL_INSTALL)
     116        $(mkinstalldirs) $(DESTDIR)$(bindir)
     117        @list='$(bin_SCRIPTS)'; for p in $$list; do \
     118          if test -f $$p; then \
     119            echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
     120            $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     121          else if test -f $(srcdir)/$$p; then \
     122            echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
     123            $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     124          else :; fi; fi; \
     125        done
     126
     127uninstall-binSCRIPTS:
     128        @$(NORMAL_UNINSTALL)
     129        list='$(bin_SCRIPTS)'; for p in $$list; do \
     130          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
     131        done
     132tags: TAGS
     133TAGS:
     134
     135
     136distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
     137
     138subdir = scripts
     139
     140distdir: $(DISTFILES)
     141        here=`cd $(top_builddir) && pwd`; \
     142        top_distdir=`cd $(top_distdir) && pwd`; \
     143        distdir=`cd $(distdir) && pwd`; \
     144        cd $(top_srcdir) \
     145          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign scripts/Makefile
     146        @for file in $(DISTFILES); do \
     147          d=$(srcdir); \
     148          if test -d $$d/$$file; then \
     149            cp -pr $$/$$file $(distdir)/$$file; \
     150          else \
     151            test -f $(distdir)/$$file \
     152            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     153            || cp -p $$d/$$file $(distdir)/$$file || :; \
     154          fi; \
     155        done
     156info-am:
     157info: info-am
     158dvi-am:
     159dvi: dvi-am
     160check-am: all-am
     161check: check-am
     162installcheck-am:
     163installcheck: installcheck-am
     164install-exec-am: install-binSCRIPTS install-exec-local
     165install-exec: install-exec-am
     166
     167install-data-am:
     168install-data: install-data-am
     169
     170install-am: all-am
     171        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     172install: install-am
     173uninstall-am: uninstall-binSCRIPTS
     174uninstall: uninstall-am
     175all-am: Makefile $(SCRIPTS)
     176all-redirect: all-am
     177install-strip:
     178        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     179installdirs:
     180        $(mkinstalldirs)  $(DESTDIR)$(bindir)
     181
     182
     183mostlyclean-generic:
     184
     185clean-generic:
     186
     187distclean-generic:
     188        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     189        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     190
     191maintainer-clean-generic:
     192mostlyclean-am:  mostlyclean-generic
     193
     194mostlyclean: mostlyclean-am
     195
     196clean-am:  clean-generic mostlyclean-am
     197
     198clean: clean-am
     199
     200distclean-am:  distclean-generic clean-am
     201
     202distclean: distclean-am
     203
     204maintainer-clean-am:  maintainer-clean-generic distclean-am
     205        @echo "This command is intended for maintainers to use;"
     206        @echo "it deletes files that may require special tools to rebuild."
     207
     208maintainer-clean: maintainer-clean-am
     209
     210.PHONY: uninstall-binSCRIPTS install-binSCRIPTS tags distdir info-am \
     211info dvi-am dvi check check-am installcheck-am installcheck \
     212install-exec-local install-exec-am install-exec install-data-am \
     213install-data install-am install uninstall-am uninstall all-redirect \
     214all-am all installdirs mostlyclean-generic distclean-generic \
     215clean-generic maintainer-clean-generic clean mostlyclean distclean \
     216maintainer-clean
     217
     218
     219#
     220# HACK: install to the build-tree
     221#
     222install-exec-local: $(bin_SCRIPTS)
     223        $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
     224        $(INSTALL_SCRIPT) $(bin_SCRIPTS) \
     225         $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
     226
     227preinstall: install-exec-local
     228
     229# Tell versions [3.59,3.63) of GNU make to not export all variables.
     230# Otherwise a system limit (for SysV at least) may be exceeded.
     231.NOEXPORT:
  • tools/build/src/Makefile.in

    rc0a36429 r04c308c  
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
    113#
    214# $Id$
    315#
    416
    5 @SET_MAKE@
     17
     18SHELL = @SHELL@
     19
    620srcdir = @srcdir@
    721top_srcdir = @top_srcdir@
    8 top_builddir = ../../..
    9 subdir = c/build-tools/src
     22VPATH = @srcdir@
     23prefix = @prefix@
     24exec_prefix = @exec_prefix@
     25
     26bindir = @bindir@
     27sbindir = @sbindir@
     28libexecdir = @libexecdir@
     29datadir = @datadir@
     30sysconfdir = @sysconfdir@
     31sharedstatedir = @sharedstatedir@
     32localstatedir = @localstatedir@
     33libdir = @libdir@
     34infodir = @infodir@
     35mandir = @mandir@
     36includedir = @includedir@
     37oldincludedir = /usr/include
     38
     39DESTDIR =
     40
     41pkgdatadir = $(datadir)/@PACKAGE@
     42pkglibdir = $(libdir)/@PACKAGE@
     43pkgincludedir = $(includedir)/@PACKAGE@
     44
     45top_builddir = ..
     46
     47ACLOCAL = @ACLOCAL@
     48AUTOCONF = @AUTOCONF@
     49AUTOMAKE = @AUTOMAKE@
     50AUTOHEADER = @AUTOHEADER@
    1051
    1152INSTALL = @INSTALL@
    12 
    13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
     53INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     54INSTALL_DATA = @INSTALL_DATA@
     55INSTALL_SCRIPT = @INSTALL_SCRIPT@
     56transform = @program_transform_name@
     57
     58NORMAL_INSTALL = :
     59PRE_INSTALL = :
     60POST_INSTALL = :
     61NORMAL_UNINSTALL = :
     62PRE_UNINSTALL = :
     63POST_UNINSTALL = :
     64host_alias = @host_alias@
     65host_triplet = @host@
     66CC = @CC@
     67EXEEXT = @EXEEXT@
     68KSH = @KSH@
     69MAKEINFO = @MAKEINFO@
     70PACKAGE = @PACKAGE@
    1471PROJECT_ROOT = @PROJECT_ROOT@
    15 
    16 exec_prefix = @exec_prefix@
    17 bindir = @bindir@
    18 libdir = @libdir@
    19 includedir = @includedir@
    20 manext = 1
    21 mandir = @mandir@/man$(manext)
    22 
    23 # FIXME: $EXEEXT should be set in a central cfg-file used for native
    24 #        compiling (e.g. gcc.cfg) instead of setting EXEEXE here.
    25 EXEEXT=@EXEEXT@
    26 
    27 VPATH = @srcdir@
    28 
    29 # we use host compiler in this directory
    30 USE_HOST_COMPILER=yes
    31 
    32 # C source names, if any, go here -- minus the .c
    33 C_PIECES=cklength eolstrip packhex unhex
    34 C_FILES=$(C_PIECES:%=%.c)
    35 C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o)
    36 
    37 H_FILES=
    38 
    39 SRCS=$(C_FILES) $(CC_FILES) $(H_FILES)
    40 OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
    41 
    42 # FIXME: building into $(ARCH) doesn't make sense for host programs
    43 PGMS=$(ARCH)/cklength$(EXEEXT) $(ARCH)/eolstrip$(EXEEXT) \
    44         $(ARCH)/packhex$(EXEEXT) $(ARCH)/unhex$(EXEEXT)
    45 
    46 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    47 include $(RTEMS_ROOT)/make/leaf.cfg
     72RTEMS_ROOT = @RTEMS_ROOT@
     73RTEMS_TOPdir = @RTEMS_TOPdir@
     74VERSION = @VERSION@
     75
     76AUTOMAKE_OPTIONS = foreign
     77
     78bin_PROGRAMS = cklength eolstrip packhex unhex
     79
     80cklength_SOURCES = cklength.c
     81eolstrip_SOURCES = eolstrip.c
     82packhex_SOURCES = packhex.c
     83unhex_SOURCES = unhex.c
     84mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
     85CONFIG_HEADER = config.h
     86CONFIG_CLEAN_FILES =
     87bin_PROGRAMS =  cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \
     88unhex$(EXEEXT)
     89PROGRAMS =  $(bin_PROGRAMS)
     90
     91
     92DEFS = @DEFS@ -I. -I$(srcdir) -I.
     93CPPFLAGS = @CPPFLAGS@
     94LDFLAGS = @LDFLAGS@
     95LIBS = @LIBS@
     96cklength_OBJECTS =  cklength.o
     97cklength_LDADD = $(LDADD)
     98cklength_DEPENDENCIES =
     99cklength_LDFLAGS =
     100eolstrip_OBJECTS =  eolstrip.o
     101eolstrip_LDADD = $(LDADD)
     102eolstrip_DEPENDENCIES =
     103eolstrip_LDFLAGS =
     104packhex_OBJECTS =  packhex.o
     105packhex_LDADD = $(LDADD)
     106packhex_DEPENDENCIES =
     107packhex_LDFLAGS =
     108unhex_OBJECTS =  unhex.o
     109unhex_LDADD = $(LDADD)
     110unhex_DEPENDENCIES =
     111unhex_LDFLAGS =
     112CFLAGS = @CFLAGS@
     113COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     114CCLD = $(CC)
     115LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
     116DIST_COMMON =  ./stamp-h.in Makefile.am Makefile.in config.h.in
     117
     118
     119DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     120
     121TAR = tar
     122GZIP_ENV = --best
     123DEP_FILES =  .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \
     124.deps/unhex.P
     125SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES)
     126OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS)
     127
     128all: all-redirect
     129.SUFFIXES:
     130.SUFFIXES: .S .c .o .s
     131$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     132        cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile
     133
     134Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
     135        cd $(top_builddir) \
     136          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     137
     138
     139config.h: stamp-h
     140        @if test ! -f $@; then \
     141                rm -f stamp-h; \
     142                $(MAKE) stamp-h; \
     143        else :; fi
     144stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
     145        cd $(top_builddir) \
     146          && CONFIG_FILES= CONFIG_HEADERS=src/config.h \
     147             $(SHELL) ./config.status
     148        @echo timestamp > stamp-h 2> /dev/null
     149$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
     150        @if test ! -f $@; then \
     151                rm -f $(srcdir)/stamp-h.in; \
     152                $(MAKE) $(srcdir)/stamp-h.in; \
     153        else :; fi
     154$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
     155        cd $(top_srcdir) && $(AUTOHEADER)
     156        @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
     157
     158mostlyclean-hdr:
     159
     160clean-hdr:
     161
     162distclean-hdr:
     163        -rm -f config.h
     164
     165maintainer-clean-hdr:
     166
     167mostlyclean-binPROGRAMS:
     168
     169clean-binPROGRAMS:
     170        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
     171
     172distclean-binPROGRAMS:
     173
     174maintainer-clean-binPROGRAMS:
     175
     176install-binPROGRAMS: $(bin_PROGRAMS)
     177        @$(NORMAL_INSTALL)
     178        $(mkinstalldirs) $(DESTDIR)$(bindir)
     179        @list='$(bin_PROGRAMS)'; for p in $$list; do \
     180          if test -f $$p; then \
     181            echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
     182             $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
     183          else :; fi; \
     184        done
     185
     186uninstall-binPROGRAMS:
     187        @$(NORMAL_UNINSTALL)
     188        list='$(bin_PROGRAMS)'; for p in $$list; do \
     189          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
     190        done
     191
     192.s.o:
     193        $(COMPILE) -c $<
     194
     195.S.o:
     196        $(COMPILE) -c $<
     197
     198mostlyclean-compile:
     199        -rm -f *.o core *.core
     200
     201clean-compile:
     202
     203distclean-compile:
     204        -rm -f *.tab.c
     205
     206maintainer-clean-compile:
     207
     208cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES)
     209        @rm -f cklength$(EXEEXT)
     210        $(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS)
     211
     212eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES)
     213        @rm -f eolstrip$(EXEEXT)
     214        $(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS)
     215
     216packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES)
     217        @rm -f packhex$(EXEEXT)
     218        $(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS)
     219
     220unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES)
     221        @rm -f unhex$(EXEEXT)
     222        $(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS)
     223
     224tags: TAGS
     225
     226ID: $(HEADERS) $(SOURCES) $(LISP)
     227        list='$(SOURCES) $(HEADERS)'; \
     228        unique=`for i in $$list; do echo $$i; done | \
     229          awk '    { files[$$0] = 1; } \
     230               END { for (i in files) print i; }'`; \
     231        here=`pwd` && cd $(srcdir) \
     232          && mkid -f$$here/ID $$unique $(LISP)
     233
     234TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
     235        tags=; \
     236        here=`pwd`; \
     237        list='$(SOURCES) $(HEADERS)'; \
     238        unique=`for i in $$list; do echo $$i; done | \
     239          awk '    { files[$$0] = 1; } \
     240               END { for (i in files) print i; }'`; \
     241        test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
     242          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
     243
     244mostlyclean-tags:
     245
     246clean-tags:
     247
     248distclean-tags:
     249        -rm -f TAGS ID
     250
     251maintainer-clean-tags:
     252
     253distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
     254
     255subdir = src
     256
     257distdir: $(DISTFILES)
     258        here=`cd $(top_builddir) && pwd`; \
     259        top_distdir=`cd $(top_distdir) && pwd`; \
     260        distdir=`cd $(distdir) && pwd`; \
     261        cd $(top_srcdir) \
     262          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign src/Makefile
     263        @for file in $(DISTFILES); do \
     264          d=$(srcdir); \
     265          if test -d $$d/$$file; then \
     266            cp -pr $$/$$file $(distdir)/$$file; \
     267          else \
     268            test -f $(distdir)/$$file \
     269            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     270            || cp -p $$d/$$file $(distdir)/$$file || :; \
     271          fi; \
     272        done
     273
     274DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
     275
     276-include $(DEP_FILES)
     277
     278mostlyclean-depend:
     279
     280clean-depend:
     281
     282distclean-depend:
     283        -rm -rf .deps
     284
     285maintainer-clean-depend:
     286
     287%.o: %.c
     288        @echo '$(COMPILE) -c $<'; \
     289        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     290        @-cp .deps/$(*F).pp .deps/$(*F).P; \
     291        tr ' ' '\012' < .deps/$(*F).pp \
     292          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     293            >> .deps/$(*F).P; \
     294        rm .deps/$(*F).pp
     295
     296%.lo: %.c
     297        @echo '$(LTCOMPILE) -c $<'; \
     298        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     299        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
     300          < .deps/$(*F).pp > .deps/$(*F).P; \
     301        tr ' ' '\012' < .deps/$(*F).pp \
     302          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     303            >> .deps/$(*F).P; \
     304        rm -f .deps/$(*F).pp
     305info-am:
     306info: info-am
     307dvi-am:
     308dvi: dvi-am
     309check-am: all-am
     310check: check-am
     311installcheck-am:
     312installcheck: installcheck-am
     313all-recursive-am: config.h
     314        $(MAKE) $(AM_MAKEFLAGS) all-recursive
     315
     316install-exec-am: install-binPROGRAMS install-exec-local
     317install-exec: install-exec-am
     318
     319install-data-am:
     320install-data: install-data-am
     321
     322install-am: all-am
     323        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     324install: install-am
     325uninstall-am: uninstall-binPROGRAMS
     326uninstall: uninstall-am
     327all-am: Makefile $(PROGRAMS) config.h
     328all-redirect: all-am
     329install-strip:
     330        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     331installdirs:
     332        $(mkinstalldirs)  $(DESTDIR)$(bindir)
     333
     334
     335mostlyclean-generic:
     336
     337clean-generic:
     338
     339distclean-generic:
     340        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     341        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     342
     343maintainer-clean-generic:
     344mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
     345                mostlyclean-compile mostlyclean-tags mostlyclean-depend \
     346                mostlyclean-generic
     347
     348mostlyclean: mostlyclean-am
     349
     350clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-tags \
     351                clean-depend clean-generic mostlyclean-am
     352
     353clean: clean-am
     354
     355distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
     356                distclean-tags distclean-depend distclean-generic \
     357                clean-am
     358
     359distclean: distclean-am
     360
     361maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
     362                maintainer-clean-compile maintainer-clean-tags \
     363                maintainer-clean-depend maintainer-clean-generic \
     364                distclean-am
     365        @echo "This command is intended for maintainers to use;"
     366        @echo "it deletes files that may require special tools to rebuild."
     367
     368maintainer-clean: maintainer-clean-am
     369
     370.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
     371mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
     372maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
     373mostlyclean-compile distclean-compile clean-compile \
     374maintainer-clean-compile tags mostlyclean-tags distclean-tags \
     375clean-tags maintainer-clean-tags distdir mostlyclean-depend \
     376distclean-depend clean-depend maintainer-clean-depend info-am info \
     377dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
     378install-exec-local install-exec-am install-exec install-data-am \
     379install-data install-am install uninstall-am uninstall all-redirect \
     380all-am all installdirs mostlyclean-generic distclean-generic \
     381clean-generic maintainer-clean-generic clean mostlyclean distclean \
     382maintainer-clean
     383
    48384
    49385#
    50 # (OPTIONAL) Add local stuff here using +=
     386# HACK: install to the build-tree
    51387#
    52 
    53 DEFINES  +=
    54 CPPFLAGS += -I.
    55 CFLAGS   +=
    56 
    57 LD_PATHS  +=
    58 LD_LIBS   +=
    59 LDFLAGS   +=
    60 
    61 #
    62 # Add your list of files to delete here.  The config files
    63 #  already know how to delete some stuff, so you may want
    64 #  to just run 'make clean' first to see what gets missed.
    65 #  'make clobber' already includes 'make clean'
    66 #
    67 
    68 CLEAN_ADDITIONS += $(HOST_ARCH)
    69 CLOBBER_ADDITIONS +=
    70 
    71 DESTDIR=${PROJECT_RELEASE}/build-tools
    72 
    73 $(DESTDIR):
    74         @top_srcdir@/mkinstalldirs $@
    75 
    76 all:    $(ARCH) $(DESTDIR) $(SRCS) $(PGMS)
    77         $(INSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
    78 
    79 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    80         cd $(top_builddir) \
    81          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     388install-exec-local: $(bin_PROGRAMS)
     389        $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
     390        $(INSTALL_PROGRAM) $(bin_PROGRAMS) \
     391          $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
     392
     393preinstall: install-exec-local
     394
     395# Tell versions [3.59,3.63) of GNU make to not export all variables.
     396# Otherwise a system limit (for SysV at least) may be exceeded.
     397.NOEXPORT:
  • tools/build/src/config.h.in

    rc0a36429 r04c308c  
    1 /*
    2  *  This file is editted automatically by autoconf.
    3  *
    4  *  $Id$
    5  */
     1/* src/config.h.in.  Generated automatically from configure.in by autoheader.  */
    62
    73/* Define if you have the strerror function.  */
    84#undef HAVE_STRERROR
    9 
Note: See TracChangeset for help on using the changeset viewer.