Ignore:
Timestamp:
Jul 26, 1999, 8:00:37 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
83f62bf
Parents:
b0ac03f4
Message:

This is part of a major patch from Ralf Corsepius <corsepiu@…>
to move RTEMS more to automake/autoconf and GNU compliance.

Finally, here they are: the "big-patch" patches - merged into one big
patch (~1.5MB).

Sorry for the delay, but testing took much more time than I had expected

  • esp. reworking the acpolish script triggered many more tiny issues than I had expected (cf. below).

At least, now you've got something to spend your weekend with :-.

WARNINGS:

  • I've gone a little (??) further than I had announced before.
  • Several directories have been moved.
  • Several files have been added and removed
  • I have tested it with many BSPs/CPUs and a variety of permutiations of configuration flags, but not with all.
  • Most parts of the patch are automatically generated, however there are many tiny manual modifications.

APPLYING THE PATCH:

./autogen -c
mkdir tools
mv c/src/exec/score/tools tools/cpu
mv c/build-tools tools/build
mv c/update-tools tools/update
patch -p1 -E < rtems-rc-19990709-0.diff
./autogen

If the patch doesn't apply to rtems-cvs, I would suggest that you should
try to apply it brute-force and then to run tools/update/rtems-polish.sh
-ac -am afterwards. A recursive diff between rtems-19990709 + patch and
rtems-cvs + patch then should report only a few dozen significant
changes to configuration files which need to be merged manually (IIRC, I
did not change any source files).

* Attention: There are files to be removed, moved, copied and added
in/to CVS!

NEWS/CHANGES:

  1. Configuration takes place in 3 stages: 1. per host (toplevel configure script), 2. per target (c/configure), 3. per bsp c/src/configure automatically triggered from ./configure and c/Makefile.am.
  2. Building of subdirectory c/ takes place in c/$(target_alias) for cross-targets in c/ for native targets
  3. Building of subdirectory c/src takes place in c/${target_alias}/<bsp> for cross-targets, c/<bsp> for native targets
  4. c/build-tools moved to tools/build
  5. c/src/exec/score/cpu/tools moved to tools/cpu (=cpu-tools split out)
  6. c/update-tools moved to tools/update
  7. New subdirectory c/src/make, handles files from make/ on a per BSP basis
  8. Maintainer mode support: Ie. if configuring with --enable-maintainer-mode disabled (the default), then tracking of many dependencies will be disabled in Makefiles. Esp. many dependencies for auto* generated files will be switched off in Makefiles. Ie. if not using "--enable-maintainer-mode" many auto* generated files will not be updated automatically, i.e. normal users should not be required to have auto* tools anymore (untested).
  9. Independent configuration scripts for / (toplevel), tools/build, tools/cpu, tools/update, c/, c/src/, c/src/exec, c/src/lib, c/src/tests, c/src/make
  10. Automake support for all directories above and besides c/src
  11. "preinstall" now is implemented as depth-first recursive make target
  1. host compiled tools (exception bsp-tools) are accessed in location in the build tree instead of inside the build-tree when building RTEMS.
  2. RTEMS_ROOT and PROJECT_ROOT now point to directories inside the build-tree - many tiny changes as consequence from this.
  3. --with-cross-host support removed (offically announced obsolete by cygnus)
  4. Changing the order of building libraries below c/src/lib/
  5. Former toplevel configure script broken into aclocal/*.m4 macros
  6. Newlib now detected by configure macros, RTEMS_HAS_NEWLIB removed from *cfg.
  7. sptables.h now generated by autoconf
  8. Rules for "mkinstalldirs temporary installation tree" moved from c/Makefile to subdirectories.
  9. Cpu-tools do not get installed.
  10. FIX: Use ACLOCAL_AMFLAGS instead of ACLOCAL = -I ... in Makefile.ams which are in directories with own configure scripts.
  11. Hardcoding BSP names into libbsp/.../tools to avoid RTEMS_BSP get overridden from the environment.
  12. FIX: Handling of MP_PIECES in various Makefiles
  13. FIX: Removing "::" rules from some Makefile.ins
  14. FIX: File permission chaos: (-m 444 and -m 555 vs. -m 644 and -m 755) - Now all include files use -m 644.
  15. Removed many gnumake-conditionals in Makefile.ins - Partially replaced with automake-conditional, partially replaced with conditionalized Makefile variables (... _yes_V)
  16. Massively reworked acpolish: acpolish now parses Makefile.ins and interprets parts of the Makefile.ins.
  17. FIX: Some $(wildcard $(srcdir)/*.h) macros removed / replaced with explicit lists of files in Makefile.ins.
  18. FIX: Replacing MKLIB with RANLIB in Makefile.ins
  19. HACK: Add preinstallation for pc386 specific $(PROJECT_RELEASE)/BootImgs? directory

... many more details, I can't recall

KNOWN BUGS:

  1. make [debug|profile]_install do not do what they are promissing. "make [debug|profile] install" does what "make [debug|profile]_install" has been doing. Proposal: remove [debug|profile]_install
  2. Dependencies between temporary installation tree and source tree are not yet handled correctly.
  3. Dependencies between temporary installation tree and source tree are handled ineffencently (Using INSTALL_CHANGE instead of make dependencies)
  4. RTEMS_ROOT, PROJECT_ROOT, top_builddir, RTEMS_TOPdir now are redundant.
  5. The new configure scripts still are in their infancy. They contain redundant checks and might still contain bugs, too.
  6. RTEMS autoconf Makefile.ins use a mixture of configuration information gathered in c/$(target_alias)/<bsp>/make and of information collected from their configure scripts.
  7. make dist is not fully functional
  8. Subdirectory host-/build-/target- configure options (--target, --host, --build) do not conform to Cygnus/GNU conventions.
  9. Some RTEMS autoconf Makefile.in's makefile targets are not supported in automake Makefile.ams/ins (e.g. get, clobber).
  10. Some automake standard targets are not propagated from toplevel and c/Makefile.am to autoconf subdirectories (eg. make dist).
  11. rpcgen generated files are not part of the source-tree (Automake conventions favor supplying generated files inside the source-tree, however there is no support for rpcgen generated files in automake, cf. yacc/lex support in automake).
  12. RTEMS_HAS_RDBG handling is flaky. make/*.cfg use RTEMS_HAS_RDBG per CPU, while librdb's sources can only be built per BSP. Raises the more general question whether librdbg located correctly in the source-tree.
  13. All make/*cfg files are configured per cpu, currently there is no location to store per-bsp configuration information --> bsp.cfg, per aconfig.h?
  14. "make install" without having run "make all" beforehand does not work.
  15. handling of --enable-multiprocessing seems to be broken in make/custom/*
  16. Makefile.ins still exploit many gmake features.
  17. File permisson chaos on libraries (no explict -m for libraries/rels/etc).
  18. mcp750 Makefiles are broken (Note: I *do* mean buggy - I am not talking about "not-conforming to conventions", here :-).
  19. Dependencies between configure scripts are not handled, eg. aborting "make RTEMS_BSP=<bsp>" can leave the build-tree in an unusable state.
  20. "make clean" does not delete <build-tree>/<bsp>. This is intentional for now, because rerunning "make" after "make clean" requires an explicit "make preinstall" afterwards now. This should be done automatically, but doesn't work in this case for now. To work around this problem <build-tree>/<bsp> is kept during "make clean" for now (HACK).

TODO:

  1. split out host-compiled bsp-tools
  2. Use Cygnus/GNU standards for cross-compiling target-subdir (CC=CC_FOR_TARGET .. configure --host=${target_alias} --build=`config.guess'}), to be added to toplevel configure script after splitting out bsp-tools.
  3. Exploit per cpu support directory (c/src/<cpu>)- Splitting out per-cpu libraries - Are there any?
  4. Further automake support
  5. Converting subdirectories into standalone / self-contained subdirectories (Esp. moving their headers to the same common root as their sources, eg. mv lib/include/rtems++ lib/librtems++/include/rtems++) - This is the main obstacle which prevents moving further towards automake.
  6. Propagating values from *.cfg into Makefiles instead of propagating them at make time via Makefile-fragments (i.e. try to avoid using *.cfg).
  7. Testing on cygwin host (I *do* expect cygwin specific problems).
  8. The ARCH in o-$(ARCH)-$(VARIANT) build-subdirectories is not needed anymore.

GENERAL ISSUES:

  1. Temporary installation tree -- Ian and I seem to disagree basically. Though I think that I understand his argumentation, I do not share it. IMO, his way of using the buildtree is mis-using the build-tree, relying on an inofficial feature of RTEMS's current implementation, which doesn't even work correctly in the current build-tree, though it attempts hard to do so. From my very POV, it unnecessarily complicates the structures of the source- and build-trees. It is not supported by automake (No automatic generation for the necessary rules) and complicates the transition to automake significantly (Generating the rules with an enhanced version of acpolish could be possible). As Ian correctly pointed out, here a management decision is needed - though I don't see the need to draw this decision in short terms.
  1. preinstallation generally is a sure means to spoil the structure of the source tree, IMHO (No ranting intended, I am completly serious about this one). eg. through tree dependencies. The worst problem related to this I have found in the meantime is bsp_specs. bsp_specs is part of libbsp, ie. there is *no* way to build *any* part of the source tree *without* having a BSP *preinstalled*. Note: This issue is related to issue 1., but is not identical - The difference is the change of the order make rules have to be triggered. While preinstallation triggers rules spread all over the source tree before a "make all" can be run, a temporary installation tree could also be installed by post "make all" hooks (all-local:, to be run after make all in a directory is completed) if the directories' dependencies would be a tree,
  1. Stuctural dependencies between subdirectories.
  2. Depth of the source tree (Prevents multilibbing and introduces many unnecessary configure scripts).
  3. per cpu vs. per bsp configuration (There are no real per-cpu parts yets :-).
  4. automake does not support $makefiles in AC_OUTPUT. Unlike before, we now should try to avoid RTEMS_CHECK_MAKEFILE and to hard-code as much paths to Makefiles as possible.
  5. General redesign of the source tree
  6. Main installation point - Changing it to ${prefix}/${target_alias}. ?

Besides item 8. (which is a must, IMHO), as far as I see most of them
can not be solved soon and will remain issues in the mid- to long-term
:-.

REMARKS:

  • You (as the maintainer) should always use --enable-maintainer-mode when building RTEMS to ensure that maintainer mode generated files (esp. those in c/src/make) will be updated when make/* files have changed.
  • Use @RTEMS_BSP@ in Makefile.ins and Makefile.ams below c/src/, $(RTEMS_BSP) or ${RTEMS_BSP} will be overridden from environment variables when using make RTEMS_BSP="....".
  • c/src/make is a temporary cludge until configuration issues are solved. At the moment it is configured per bsp, but contains per-target/cpu info only. Its main purpose now is to circumvent modifying make/*.cfg files, because I consider make/* to be frozen for backward compatibilty.
  • This patch should only affect configuration files. At least I do not remember having touched any source files.
  • To build the bare bsp you now need to mention it in --enable-rtemsbsp.

Example: building gensh1 and sh1/bare simultaneously:
../rtems-rc-19990709-1/configure --target=sh-rtems \
--enable-rtemsbsp="bare gensh1" \
--prefix=/tmp/rtems \
--enable-bare-cpu-cflags='-DMHZ=20 -m1
-DCPU_CONSOLE_DEVNAME=\"/dev/null\"' \
--enable-bare-cpu-model=sh7032 \
--enable-maintainer-mode \
--enable-cxx
make
make install

  • The next steps in development would be to split out bsp-tools and then to change to Cygnus/GNU canonicalization conventions for building the c/ subdirectory afterwards (i.e. many standard AC_*.m4 macros could be used instead of customized versions)

FINAL REMARK:
The issues mentioned in the lists above sound much worser than the
situation actually is. Most of them are not specific to this patch, but
are also valid for the snapshot. I just wrote down what I came across
when working on the patch over the last few weeks.

I wouldn't be too surprised if you don't like the patch at the current
point in development. I am willing to discuss details and problems, I
also have no problem if you would post-pone applying this patch to times
after 4.1, but rejecting it as a whole for all times would be a false
management decision, IMHO.

Therefore I would suggest that you, if your time constaints allow it,
should at least play a little while with this patch to understand what
is going on and before drawing a decision on how to handle this
proposal. I know this patch is neither perfect nor complete, but I
consider it to be a major breakthrough. Don't be anxious because of the
size of the patch, the core of the patch is rather small, the size is
mainly the side effect of some systematic cleanups inside the Makefiles
(result of acpolish).

Feel free to ask if you encounter problems, if you don't understand
something or if you meet bugs - I am far from being perfect and am
prepared to answer them.

Ralf.

--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@… FAX: +49/731/501-999
http://www.faw.uni-ulm.de

Location:
c/src/lib/libbsp/m68k/mvme162/tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme162/tools/Makefile.am

    rb0ac03f4 r6693a68  
    33#
    44
    5 AUTOMAKE_OPTIONS = foreign
    6 ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
     5AUTOMAKE_OPTIONS = foreign 1.4
     6ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
    77
    88noinst_PROGRAMS=sload
     
    1212# HACK: install to build-tree
    1313install-exec-local: $(PROGRAMS)
    14         $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/bin
    15         $(INSTALL_PROGRAM) $(PROGRAMS) $(PROJECT_ROOT)/${RTEMS_BSP}/bin
     14        $(mkinstalldirs) $(PROJECT_ROOT)/mvme162/bin
     15        $(INSTALL_PROGRAM) $(PROGRAMS) $(PROJECT_ROOT)/mvme162/bin
    1616
    1717include $(top_srcdir)/../../../../../../../automake/local.am
  • c/src/lib/libbsp/m68k/mvme162/tools/Makefile.in

    rb0ac03f4 r6693a68  
    4545
    4646top_builddir = .
     47
     48ACLOCAL = @ACLOCAL@
    4749AUTOCONF = @AUTOCONF@
    4850AUTOMAKE = @AUTOMAKE@
     
    6870target_triplet = @target@
    6971CC = @CC@
     72INSTALL_CHANGE = @INSTALL_CHANGE@
     73MAINT = @MAINT@
    7074MAKEINFO = @MAKEINFO@
    7175PACKAGE = @PACKAGE@
     76PACKHEX = @PACKHEX@
    7277PROJECT_ROOT = @PROJECT_ROOT@
    7378RTEMS_CPU = @RTEMS_CPU@
     
    7580RTEMS_TOPdir = @RTEMS_TOPdir@
    7681VERSION = @VERSION@
    77 
    78 AUTOMAKE_OPTIONS = foreign
    79 ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
     82project_bindir = @project_bindir@
     83project_includedir = @project_includedir@
     84project_libdir = @project_libdir@
     85rtems_bspdir = @rtems_bspdir@
     86rtems_makedir = @rtems_makedir@
     87tooldir = @tooldir@
     88
     89AUTOMAKE_OPTIONS = foreign 1.4
     90ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
    8091
    8192noinst_PROGRAMS = sload
     
    114125.SUFFIXES:
    115126.SUFFIXES: .S .c .o .s
    116 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../../automake/local.am
     127$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../../automake/local.am
    117128        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
    118129
     
    121132          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
    122133
    123 $(ACLOCAL_M4): configure.in
    124         cd $(srcdir) && $(ACLOCAL)
     134$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
     135        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    125136
    126137config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    127138        $(SHELL) ./config.status --recheck
    128 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     139$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
    129140        cd $(srcdir) && $(AUTOCONF)
    130141
     
    349360# HACK: install to build-tree
    350361install-exec-local: $(PROGRAMS)
    351         $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/bin
    352         $(INSTALL_PROGRAM) $(PROGRAMS) $(PROJECT_ROOT)/${RTEMS_BSP}/bin
     362        $(mkinstalldirs) $(PROJECT_ROOT)/mvme162/bin
     363        $(INSTALL_PROGRAM) $(PROGRAMS) $(PROJECT_ROOT)/mvme162/bin
    353364
    354365debug-am:
  • c/src/lib/libbsp/m68k/mvme162/tools/aclocal.m4

    rb0ac03f4 r6693a68  
    2727RTEMS_TOPdir="$1";
    2828AC_SUBST(RTEMS_TOPdir)
    29 
    30 PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
    31 test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    32 AC_SUBST(PROJECT_ROOT)
    3329
    3430dnl Determine RTEMS Version string from the VERSION file
     
    4743fi
    4844AC_MSG_RESULT($RTEMS_VERSION)
    49 
    50 RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    51 AC_SUBST(RTEMS_ROOT)
    5245])dnl
    5346
     
    185178AC_SUBST($1)])
    186179
     180# Add --enable-maintainer-mode option to configure.
     181# From Jim Meyering
     182
     183# serial 1
     184
     185AC_DEFUN(AM_MAINTAINER_MODE,
     186[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
     187  dnl maintainer-mode is disabled by default
     188  AC_ARG_ENABLE(maintainer-mode,
     189[  --enable-maintainer-mode enable make rules and dependencies not useful
     190                          (and sometimes confusing) to the casual installer],
     191      USE_MAINTAINER_MODE=$enableval,
     192      USE_MAINTAINER_MODE=no)
     193  AC_MSG_RESULT($USE_MAINTAINER_MODE)
     194  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
     195  MAINT=$MAINTAINER_MODE_TRUE
     196  AC_SUBST(MAINT)dnl
     197]
     198)
     199
     200# Define a conditional.
     201
     202AC_DEFUN(AM_CONDITIONAL,
     203[AC_SUBST($1_TRUE)
     204AC_SUBST($1_FALSE)
     205if $2; then
     206  $1_TRUE=
     207  $1_FALSE='#'
     208else
     209  $1_TRUE='#'
     210  $1_FALSE=
     211fi])
     212
     213dnl
     214dnl $Id$
     215dnl
     216
     217AC_DEFUN(RTEMS_PROJECT_ROOT,
     218[dnl
     219AC_REQUIRE([RTEMS_TOP])
     220if test "$TARGET_SUBDIR" = "." ; then
     221PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
     222else
     223PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
     224fi
     225AC_SUBST(PROJECT_ROOT)
     226
     227RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
     228AC_SUBST(RTEMS_ROOT)
     229
     230INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
     231AC_SUBST(INSTALL_CHANGE)
     232
     233PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
     234AC_SUBST(PACKHEX)
     235])
     236
     237
     238AC_DEFUN(RTEMS_TOOLPATHS,
     239[
     240# tooldir='$(exec_prefix)/'$target_alias
     241# Temporary work-around until building in source tree is supported
     242AC_REQUIRE([RTEMS_PROJECT_ROOT])
     243
     244tooldir='$(PROJECT_ROOT)'
     245AC_SUBST(tooldir)
     246
     247project_includedir='$(tooldir)'/include
     248AC_SUBST(project_includedir)
     249
     250project_libdir='$(tooldir)/lib$(MULTISUBDIR)'
     251AC_SUBST(project_libdir)
     252
     253project_bindir='$(tooldir)/bin'
     254AC_SUBST(project_bindir)
     255
     256rtems_bspdir='$(prefix)/${RTEMS_BSP}'
     257AC_SUBST(rtems_bspdir)
     258rtems_makedir='$(prefix)/make'
     259AC_SUBST(rtems_makedir)
     260])
     261
  • c/src/lib/libbsp/m68k/mvme162/tools/configure

    rb0ac03f4 r6693a68  
    1414ac_help="$ac_help
    1515  --with-target-subdir=DIR"
     16ac_help="$ac_help
     17  --enable-maintainer-mode enable make rules and dependencies not useful
     18                          (and sometimes confusing) to the casual installer"
    1619
    1720# Initialize some variables set by options.
     
    556559
    557560
    558 PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
    559 test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    560 
    561 
    562561echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    563 echo "configure:564: checking for RTEMS Version" >&5
     562echo "configure:563: checking for RTEMS Version" >&5
    564563if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    565564RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    572571fi
    573572echo "$ac_t""$RTEMS_VERSION" 1>&6
    574 
    575 RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    576 
    577573
    578574
     
    605601
    606602echo $ac_n "checking host system type""... $ac_c" 1>&6
    607 echo "configure:608: checking host system type" >&5
     603echo "configure:604: checking host system type" >&5
    608604
    609605host_alias=$host
     
    626622
    627623echo $ac_n "checking target system type""... $ac_c" 1>&6
    628 echo "configure:629: checking target system type" >&5
     624echo "configure:625: checking target system type" >&5
    629625
    630626target_alias=$target
     
    644640
    645641echo $ac_n "checking build system type""... $ac_c" 1>&6
    646 echo "configure:647: checking build system type" >&5
     642echo "configure:643: checking build system type" >&5
    647643
    648644build_alias=$build
     
    667663
    668664echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    669 echo "configure:670: checking rtems target cpu" >&5
     665echo "configure:666: checking rtems target cpu" >&5
    670666case "${target}" in
    671667  # hpux unix port should go here
     
    705701# ./install, which can be erroneously created by make from ./install.sh.
    706702echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    707 echo "configure:708: checking for a BSD compatible install" >&5
     703echo "configure:704: checking for a BSD compatible install" >&5
    708704if test -z "$INSTALL"; then
    709705if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    758754
    759755echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    760 echo "configure:761: checking whether build environment is sane" >&5
     756echo "configure:757: checking whether build environment is sane" >&5
    761757# Just in case
    762758sleep 1
     
    815811
    816812echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    817 echo "configure:818: checking whether ${MAKE-make} sets \${MAKE}" >&5
     813echo "configure:814: checking whether ${MAKE-make} sets \${MAKE}" >&5
    818814set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    819815if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    854850missing_dir=`cd $ac_aux_dir && pwd`
    855851echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    856 echo "configure:857: checking for working aclocal" >&5
     852echo "configure:853: checking for working aclocal" >&5
    857853# Run test in a subshell; some versions of sh will print an error if
    858854# an executable is not found, even if stderr is redirected.
     
    867863
    868864echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    869 echo "configure:870: checking for working autoconf" >&5
     865echo "configure:866: checking for working autoconf" >&5
    870866# Run test in a subshell; some versions of sh will print an error if
    871867# an executable is not found, even if stderr is redirected.
     
    880876
    881877echo $ac_n "checking for working automake""... $ac_c" 1>&6
    882 echo "configure:883: checking for working automake" >&5
     878echo "configure:879: checking for working automake" >&5
    883879# Run test in a subshell; some versions of sh will print an error if
    884880# an executable is not found, even if stderr is redirected.
     
    893889
    894890echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    895 echo "configure:896: checking for working autoheader" >&5
     891echo "configure:892: checking for working autoheader" >&5
    896892# Run test in a subshell; some versions of sh will print an error if
    897893# an executable is not found, even if stderr is redirected.
     
    906902
    907903echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    908 echo "configure:909: checking for working makeinfo" >&5
     904echo "configure:905: checking for working makeinfo" >&5
    909905# Run test in a subshell; some versions of sh will print an error if
    910906# an executable is not found, even if stderr is redirected.
     
    919915
    920916
     917echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
     918echo "configure:919: checking whether to enable maintainer-specific portions of Makefiles" >&5
     919    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
     920if test "${enable_maintainer_mode+set}" = set; then
     921  enableval="$enable_maintainer_mode"
     922  USE_MAINTAINER_MODE=$enableval
     923else
     924  USE_MAINTAINER_MODE=no
     925fi
     926
     927  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
     928 
     929
     930if test $USE_MAINTAINER_MODE = yes; then
     931  MAINTAINER_MODE_TRUE=
     932  MAINTAINER_MODE_FALSE='#'
     933else
     934  MAINTAINER_MODE_TRUE='#'
     935  MAINTAINER_MODE_FALSE=
     936fi
     937  MAINT=$MAINTAINER_MODE_TRUE
     938 
     939
    921940
    922941# Extract the first word of "gcc", so it can be a program name with args.
    923942set dummy gcc; ac_word=$2
    924943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    925 echo "configure:926: checking for $ac_word" >&5
     944echo "configure:945: checking for $ac_word" >&5
    926945if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    927946  echo $ac_n "(cached) $ac_c" 1>&6
     
    953972set dummy cc; ac_word=$2
    954973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    955 echo "configure:956: checking for $ac_word" >&5
     974echo "configure:975: checking for $ac_word" >&5
    956975if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    957976  echo $ac_n "(cached) $ac_c" 1>&6
     
    10041023set dummy cl; ac_word=$2
    10051024echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1006 echo "configure:1007: checking for $ac_word" >&5
     1025echo "configure:1026: checking for $ac_word" >&5
    10071026if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10081027  echo $ac_n "(cached) $ac_c" 1>&6
     
    10361055
    10371056echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1038 echo "configure:1039: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1057echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10391058
    10401059ac_ext=c
     
    10471066cat > conftest.$ac_ext << EOF
    10481067
    1049 #line 1050 "configure"
     1068#line 1069 "configure"
    10501069#include "confdefs.h"
    10511070
    10521071main(){return(0);}
    10531072EOF
    1054 if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1073if { (eval echo configure:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10551074  ac_cv_prog_cc_works=yes
    10561075  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10781097fi
    10791098echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1080 echo "configure:1081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1099echo "configure:1100: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10811100echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10821101cross_compiling=$ac_cv_prog_cc_cross
    10831102
    10841103echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1085 echo "configure:1086: checking whether we are using GNU C" >&5
     1104echo "configure:1105: checking whether we are using GNU C" >&5
    10861105if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10871106  echo $ac_n "(cached) $ac_c" 1>&6
     
    10921111#endif
    10931112EOF
    1094 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1113if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10951114  ac_cv_prog_gcc=yes
    10961115else
     
    11111130CFLAGS=
    11121131echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1113 echo "configure:1114: checking whether ${CC-cc} accepts -g" >&5
     1132echo "configure:1133: checking whether ${CC-cc} accepts -g" >&5
    11141133if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11151134  echo $ac_n "(cached) $ac_c" 1>&6
     
    11441163
    11451164echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1146 echo "configure:1147: checking how to run the C preprocessor" >&5
     1165echo "configure:1166: checking how to run the C preprocessor" >&5
    11471166# On Suns, sometimes $CPP names a directory.
    11481167if test -n "$CPP" && test -d "$CPP"; then
     
    11591178  # not just through cpp.
    11601179  cat > conftest.$ac_ext <<EOF
    1161 #line 1162 "configure"
     1180#line 1181 "configure"
    11621181#include "confdefs.h"
    11631182#include <assert.h>
     
    11651184EOF
    11661185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1167 { (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1186{ (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    11681187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    11691188if test -z "$ac_err"; then
     
    11761195  CPP="${CC-cc} -E -traditional-cpp"
    11771196  cat > conftest.$ac_ext <<EOF
    1178 #line 1179 "configure"
     1197#line 1198 "configure"
    11791198#include "confdefs.h"
    11801199#include <assert.h>
     
    11821201EOF
    11831202ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1184 { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1203{ (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    11851204ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    11861205if test -z "$ac_err"; then
     
    11931212  CPP="${CC-cc} -nologo -E"
    11941213  cat > conftest.$ac_ext <<EOF
    1195 #line 1196 "configure"
     1214#line 1215 "configure"
    11961215#include "confdefs.h"
    11971216#include <assert.h>
     
    11991218EOF
    12001219ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1201 { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1220{ (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12021221ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12031222if test -z "$ac_err"; then
     
    12241243
    12251244echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1226 echo "configure:1227: checking for ANSI C header files" >&5
     1245echo "configure:1246: checking for ANSI C header files" >&5
    12271246if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    12281247  echo $ac_n "(cached) $ac_c" 1>&6
    12291248else
    12301249  cat > conftest.$ac_ext <<EOF
    1231 #line 1232 "configure"
     1250#line 1251 "configure"
    12321251#include "confdefs.h"
    12331252#include <stdlib.h>
     
    12371256EOF
    12381257ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1239 { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1258{ (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12401259ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12411260if test -z "$ac_err"; then
     
    12541273  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    12551274cat > conftest.$ac_ext <<EOF
    1256 #line 1257 "configure"
     1275#line 1276 "configure"
    12571276#include "confdefs.h"
    12581277#include <string.h>
     
    12721291  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    12731292cat > conftest.$ac_ext <<EOF
    1274 #line 1275 "configure"
     1293#line 1294 "configure"
    12751294#include "confdefs.h"
    12761295#include <stdlib.h>
     
    12931312else
    12941313  cat > conftest.$ac_ext <<EOF
    1295 #line 1296 "configure"
     1314#line 1315 "configure"
    12961315#include "confdefs.h"
    12971316#include <ctype.h>
     
    13041323
    13051324EOF
    1306 if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1325if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    13071326then
    13081327  :
     
    13311350ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    13321351echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1333 echo "configure:1334: checking for $ac_hdr" >&5
     1352echo "configure:1353: checking for $ac_hdr" >&5
    13341353if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    13351354  echo $ac_n "(cached) $ac_c" 1>&6
    13361355else
    13371356  cat > conftest.$ac_ext <<EOF
    1338 #line 1339 "configure"
     1357#line 1358 "configure"
    13391358#include "confdefs.h"
    13401359#include <$ac_hdr>
    13411360EOF
    13421361ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1343 { (eval echo configure:1344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1362{ (eval echo configure:1363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13441363ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13451364if test -z "$ac_err"; then
     
    13711390ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    13721391echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1373 echo "configure:1374: checking for $ac_hdr" >&5
     1392echo "configure:1393: checking for $ac_hdr" >&5
    13741393if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    13751394  echo $ac_n "(cached) $ac_c" 1>&6
    13761395else
    13771396  cat > conftest.$ac_ext <<EOF
    1378 #line 1379 "configure"
     1397#line 1398 "configure"
    13791398#include "confdefs.h"
    13801399#include <$ac_hdr>
    13811400EOF
    13821401ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1383 { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1402{ (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13841403ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13851404if test -z "$ac_err"; then
     
    14101429do
    14111430echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1412 echo "configure:1413: checking for $ac_func" >&5
     1431echo "configure:1432: checking for $ac_func" >&5
    14131432if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    14141433  echo $ac_n "(cached) $ac_c" 1>&6
    14151434else
    14161435  cat > conftest.$ac_ext <<EOF
    1417 #line 1418 "configure"
     1436#line 1437 "configure"
    14181437#include "confdefs.h"
    14191438/* System header to define __stub macros and hopefully few prototypes,
     
    14381457; return 0; }
    14391458EOF
    1440 if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1459if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14411460  rm -rf conftest*
    14421461  eval "ac_cv_func_$ac_func=yes"
     
    14631482
    14641483echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    1465 echo "configure:1466: checking for working mmap" >&5
     1484echo "configure:1485: checking for working mmap" >&5
    14661485if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    14671486  echo $ac_n "(cached) $ac_c" 1>&6
     
    14711490else
    14721491  cat > conftest.$ac_ext <<EOF
    1473 #line 1474 "configure"
     1492#line 1493 "configure"
    14741493#include "confdefs.h"
    14751494
     
    16111630
    16121631EOF
    1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1632if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16141633then
    16151634  ac_cv_func_mmap_fixed_mapped=yes
     
    16321651
    16331652fi
     1653
     1654
     1655
     1656if test "$TARGET_SUBDIR" = "." ; then
     1657PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
     1658else
     1659PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
     1660fi
     1661
     1662
     1663RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
     1664
     1665
     1666INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
     1667
     1668
     1669PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
     1670
     1671
     1672
     1673# tooldir='$(exec_prefix)/'$target_alias
     1674# Temporary work-around until building in source tree is supported
     1675
     1676
     1677tooldir='$(PROJECT_ROOT)'
     1678
     1679
     1680project_includedir='$(tooldir)'/include
     1681
     1682
     1683project_libdir='$(tooldir)/lib$(MULTISUBDIR)'
     1684
     1685
     1686project_bindir='$(tooldir)/bin'
     1687
     1688
     1689rtems_bspdir='$(prefix)/${RTEMS_BSP}'
     1690
     1691rtems_makedir='$(prefix)/make'
     1692
    16341693
    16351694
     
    17801839s%@mandir@%$mandir%g
    17811840s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
    1782 s%@PROJECT_ROOT@%$PROJECT_ROOT%g
    1783 s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    17841841s%@host@%$host%g
    17851842s%@host_alias@%$host_alias%g
     
    18091866s%@MAKEINFO@%$MAKEINFO%g
    18101867s%@SET_MAKE@%$SET_MAKE%g
     1868s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
     1869s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
     1870s%@MAINT@%$MAINT%g
    18111871s%@CC@%$CC%g
    18121872s%@CPP@%$CPP%g
     1873s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     1874s%@RTEMS_ROOT@%$RTEMS_ROOT%g
     1875s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
     1876s%@PACKHEX@%$PACKHEX%g
     1877s%@tooldir@%$tooldir%g
     1878s%@project_includedir@%$project_includedir%g
     1879s%@project_libdir@%$project_libdir%g
     1880s%@project_bindir@%$project_bindir%g
     1881s%@rtems_bspdir@%$rtems_bspdir%g
     1882s%@rtems_makedir@%$rtems_makedir%g
    18131883
    18141884CEOF
  • c/src/lib/libbsp/m68k/mvme162/tools/configure.in

    rb0ac03f4 r6693a68  
    1010
    1111AM_INIT_AUTOMAKE(rtems-lib-libbsp-m68k-mvme162-tools,$RTEMS_VERSION,no)
     12AM_MAINTAINER_MODE
    1213
    1314AC_PROG_CC
     
    1718AC_FUNC_MMAP
    1819
     20RTEMS_PROJECT_ROOT
     21RTEMS_TOOLPATHS
     22
    1923AC_OUTPUT(
    2024Makefile)
Note: See TracChangeset for help on using the changeset viewer.