Changeset 8cdb582 in rtems


Ignore:
Timestamp:
04/12/99 15:41:33 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
82f490f
Parents:
d115315
Message:

Patch from Ralf Corsepius <corsepiu@…>:

This patch addresses a few minor issues and contains a few (minor)
preparations for automake.

  • configure.in: Fix for handing c/src/tests subdirectory handling (FIX)
  • aclocal/rtems-top.m4: + Add TARGET_SUBDIR and --with-target-subdir (preparation of future

enhancements for cross-compiling)

+ Activate RTEMS_ROOT handling (automake preparation)

  • automake/*.am: replace comments "#" with "##" so that comments won't get included into Makefile.in's anymore
  • c/update-tools/* automake support (NEW)
  • ./autogen update/enhancement (cf. ./autogen for details)

After applying this patch please run:

./autogen
cvs add c/update-tools/configure.in
cvs add c/update-tools/Makefile.am
cvs add c/update-tools/aclocal.m4

Files:
6 added
63 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    rd115315 r8cdb582  
    2020AC_DEFUN(RTEMS_TOP,
    2121[dnl
     22AC_ARG_WITH(target-subdir,
     23[  --with-target-subdir=DIR],
     24TARGET_SUBDIR="$withval",
     25TARGET_SUBDIR=".")
     26
    2227RTEMS_TOPdir="$1";
    2328AC_SUBST(RTEMS_TOPdir)
    2429
    2530PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     31test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    2632AC_SUBST(PROJECT_ROOT)
    2733
     
    4248AC_MSG_RESULT($RTEMS_VERSION)
    4349
    44 dnl FIXME: This once gets activated in future or will be removed
    45 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    46 dnl AC_SUBST(RTEMS_ROOT)
     50RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     51AC_SUBST(RTEMS_ROOT)
    4752])dnl
    4853
  • aclocal/rtems-top.m4

    rd115315 r8cdb582  
    88AC_DEFUN(RTEMS_TOP,
    99[dnl
     10AC_ARG_WITH(target-subdir,
     11[  --with-target-subdir=DIR],
     12TARGET_SUBDIR="$withval",
     13TARGET_SUBDIR=".")
     14
    1015RTEMS_TOPdir="$1";
    1116AC_SUBST(RTEMS_TOPdir)
    1217
    1318PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     19test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    1420AC_SUBST(PROJECT_ROOT)
    1521
     
    3036AC_MSG_RESULT($RTEMS_VERSION)
    3137
    32 dnl FIXME: This once gets activated in future or will be removed
    33 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    34 dnl AC_SUBST(RTEMS_ROOT)
     38RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     39AC_SUBST(RTEMS_ROOT)
    3540])dnl
  • autogen

    rd115315 r8cdb582  
    1414
    1515progname=`basename $0`
    16 am_verbose="";
     16verbose="";
    1717quiet="false"
     18mode="generate"
    1819
    1920usage()
     
    2627  echo "        -q .. quiet, don't display directories";
    2728  echo "        -v .. verbose, pass -v to automake when invoking automake"
     29  echo "        -c .. clean, remove all aclocal/autoconf/automake generated files"
    2830  echo
    2931  exit 1;
     
    4648  verbose="-v";
    4749  shift;;
     50-c|--cl|--cle|--clea|--clean)
     51  mode="clean";
     52  shift;;
    4853-*) echo "unknown option $1" ;
    4954  usage ;;
     
    5459
    5560pwd=`pwd`;
    56 confs=`find $pwd -name 'configure.in' -print`
    5761
    58 aclocal_dir=$pwd/aclocal
    59 for i in $confs; do
    60 dir=`dirname $i`;
    61 ( test "$quiet" = "true" || echo "$dir";
    62   cd $dir;
    63   aclocal -I $aclocal_dir;
    64   autoconf;
    65   test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
    66   test -f Makefile.am && automake $verbose ;
    67 )
    68 done
     62case $mode in
     63generate)
     64  confs=`find $pwd -name 'configure.in' -print`
     65  aclocal_dir=$pwd/aclocal
     66  for i in $confs; do
     67  dir=`dirname $i`;
     68  ( test "$quiet" = "true" || echo "$dir";
     69    cd $dir;
     70    aclocal -I $aclocal_dir;
     71    autoconf;
     72    test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
     73    test -f Makefile.am && automake $verbose ;
     74  )
     75  done
     76  ;;
     77clean)
     78  test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
     79  files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;
     80  for i in $files; do if test -f $i; then
     81    rm -f $i
     82    test "$verbose" = "-v" && echo "$i"   
     83  fi; done
     84
     85  test "$quiet" = "true" || echo "removing configure files"
     86  files=`find . -name 'configure' -print` ;
     87  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
     88  for i in $files; do if test -f $i; then
     89    rm -f $i
     90    test "$verbose" = "-v" && echo "$i"   
     91  fi; done
     92 
     93  test "$quiet" = "true" || echo "removing aclocal.m4 files"
     94  files=`find . -name 'aclocal.m4' -print` ;
     95  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
     96  for i in $files; do if test -f $i; then
     97    rm -f $i
     98    test "$verbose" = "-v" && echo "$i"   
     99  fi; done
     100
     101  find . -name '*~' -print | xargs rm -f
     102  find . -name '*.orig' -print | xargs rm -f
     103  find . -name '*.rej' -print | xargs rm -f
     104  find . -name 'config.status' -print | xargs rm -f
     105  find . -name 'config.log' -print | xargs rm -f
     106  find . -name '.deps' -print | xargs rm -rf
     107  ;;
     108esac
  • automake/local.am

    rd115315 r8cdb582  
    1 # $Id$
     1## $Id$
    22
    3 # NOTE: This is a temporary work-around to keep
    4 # "make debug" and "make debug_install" working.
    5 # Once automake is fully integrated these make targets
    6 # and this file will probably be removed
     3## NOTE: This is a temporary work-around to keep
     4## "make debug" and "make debug_install" working.
     5## Once automake is fully integrated these make targets
     6## and this file will probably be removed
    77
    88debug-am:
     
    1313
    1414debug_install: debug_install-am
     15
     16.PHONY: debug debug_install debug-am
    1517
    1618
     
    2325profile_install: profile_install-am
    2426
     27.PHONY: profile profile_install profile-am
    2528
    26 .PHONY: debug debug_install profile profile_install
     29
     30preinstall-am:
     31
     32preinstall: preinstall-am
     33
     34.PHONY: preinstall preinstall-am
     35
  • automake/subdirs.am

    rd115315 r8cdb582  
    1 # $Id$
     1## $Id$
    22
    3 # Borrowed from automake-1.4, adapted to support RTEMS's
    4 # "make debug", "make debug_install", "make profile", "make profile_install"
     3## Borrowed from automake-1.4, adapted to support RTEMS's
     4## "make debug", "make debug_install", "make profile", "make profile_install"
    55
    6 # NOTE: This is a temporary work-around to keep
    7 # "make debug" and "make debug_install" working.
    8 # Once automake is fully integrated these make targets
    9 # and this file will probably be removed
     6## NOTE: This is a temporary work-around to keep
     7## "make debug" and "make debug_install" working.
     8## Once automake is fully integrated these make targets
     9## and this file will probably be removed
    1010
    11 
     11preinstall-recursive \
    1212debug-recursive debug_install-recursive \
    1313profile-recursive profile_install-recursive:
     
    4040profile_install: profile_install-recursive
    4141
     42preinstall: preinstall-recursive
     43
    4244.PHONY: \
    43 debug debug-recursive debug_install \
    44 profile profile-recursive profile_install
     45debug debug-recursive \
     46debug_install \
     47profile profile-recursive \
     48profile_install \
     49preinstall preinstall-recursive
  • c/build-tools/Makefile.in

    rd115315 r8cdb582  
    1616
    1717
    18 # $Id$
    19 
    20 # Borrowed from automake-1.4, adapted to support RTEMS's
    21 # "make debug", "make debug_install", "make profile", "make profile_install"
    22 
    23 # NOTE: This is a temporary work-around to keep
    24 # "make debug" and "make debug_install" working.
    25 # Once automake is fully integrated these make targets
    26 # and this file will probably be removed
    27 
    28 
    29 # $Id$
    30 
    31 # NOTE: This is a temporary work-around to keep
    32 # "make debug" and "make debug_install" working.
    33 # Once automake is fully integrated these make targets
    34 # and this file will probably be removed
    3518
    3619
     
    8770PACKAGE = @PACKAGE@
    8871PROJECT_ROOT = @PROJECT_ROOT@
     72RTEMS_ROOT = @RTEMS_ROOT@
    8973RTEMS_TOPdir = @RTEMS_TOPdir@
    9074VERSION = @VERSION@
     
    9882CONFIG_HEADER = ./src/config.h
    9983CONFIG_CLEAN_FILES =
    100 DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in \
    101 src/config.h.in src/stamp-h.in
     84DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
    10285
    10386
     
    122105$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
    123106        cd $(srcdir) && $(AUTOCONF)
    124 
    125 src/config.h: src/stamp-h
    126         @if test ! -f $@; then \
    127                 rm -f src/stamp-h; \
    128                 $(MAKE) src/stamp-h; \
    129         else :; fi
    130 src/stamp-h: $(srcdir)/src/config.h.in $(top_builddir)/config.status
    131         cd $(top_builddir) \
    132           && CONFIG_FILES= CONFIG_HEADERS=src/config.h \
    133              $(SHELL) ./config.status
    134         @echo timestamp > src/stamp-h 2> /dev/null
    135 $(srcdir)/src/config.h.in: $(srcdir)/src/stamp-h.in
    136         @if test ! -f $@; then \
    137                 rm -f $(srcdir)/src/stamp-h.in; \
    138                 $(MAKE) $(srcdir)/src/stamp-h.in; \
    139         else :; fi
    140 $(srcdir)/src/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
    141         cd $(top_srcdir) && $(AUTOHEADER)
    142         @echo timestamp > $(srcdir)/src/stamp-h.in 2> /dev/null
    143 
    144 mostlyclean-hdr:
    145 
    146 clean-hdr:
    147 
    148 distclean-hdr:
    149         -rm -f src/config.h
    150 
    151 maintainer-clean-hdr:
    152107
    153108# This directory's subdirectories are mostly independent; you can cd
     
    339294
    340295maintainer-clean-generic:
    341 mostlyclean-am:  mostlyclean-hdr mostlyclean-tags mostlyclean-generic
     296mostlyclean-am:  mostlyclean-tags mostlyclean-generic
    342297
    343298mostlyclean: mostlyclean-recursive
    344299
    345 clean-am:  clean-hdr clean-tags clean-generic mostlyclean-am
     300clean-am:  clean-tags clean-generic mostlyclean-am
    346301
    347302clean: clean-recursive
    348303
    349 distclean-am:  distclean-hdr distclean-tags distclean-generic clean-am
     304distclean-am:  distclean-tags distclean-generic clean-am
    350305
    351306distclean: distclean-recursive
    352307        -rm -f config.status
    353308
    354 maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-tags \
    355                 maintainer-clean-generic distclean-am
     309maintainer-clean-am:  maintainer-clean-tags maintainer-clean-generic \
     310                distclean-am
    356311        @echo "This command is intended for maintainers to use;"
    357312        @echo "it deletes files that may require special tools to rebuild."
     
    360315        -rm -f config.status
    361316
    362 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
    363 install-data-recursive uninstall-data-recursive install-exec-recursive \
    364 uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
    365 all-recursive check-recursive installcheck-recursive info-recursive \
    366 dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
     317.PHONY: install-data-recursive uninstall-data-recursive \
     318install-exec-recursive uninstall-exec-recursive installdirs-recursive \
     319uninstalldirs-recursive all-recursive check-recursive \
     320installcheck-recursive info-recursive dvi-recursive \
     321mostlyclean-recursive distclean-recursive clean-recursive \
    367322maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
    368323distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
     
    374329
    375330
     331preinstall-recursive \
    376332debug-recursive debug_install-recursive \
    377333profile-recursive profile_install-recursive:
     
    402358profile_install: profile_install-recursive
    403359
     360preinstall: preinstall-recursive
     361
    404362.PHONY: \
    405 debug debug-recursive debug_install \
    406 profile profile-recursive profile_install
     363debug debug-recursive \
     364debug_install \
     365profile profile-recursive \
     366profile_install \
     367preinstall preinstall-recursive
    407368
    408369debug-am:
     
    414375debug_install: debug_install-am
    415376
     377.PHONY: debug debug_install debug-am
     378
    416379profile-am:
    417380
     
    422385profile_install: profile_install-am
    423386
    424 .PHONY: debug debug_install profile profile_install
     387.PHONY: profile profile_install profile-am
     388
     389preinstall-am:
     390
     391preinstall: preinstall-am
     392
     393.PHONY: preinstall preinstall-am
    425394
    426395# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/build-tools/aclocal.m4

    rd115315 r8cdb582  
    2020AC_DEFUN(RTEMS_TOP,
    2121[dnl
     22AC_ARG_WITH(target-subdir,
     23[  --with-target-subdir=DIR],
     24TARGET_SUBDIR="$withval",
     25TARGET_SUBDIR=".")
     26
    2227RTEMS_TOPdir="$1";
    2328AC_SUBST(RTEMS_TOPdir)
    2429
    2530PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     31test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    2632AC_SUBST(PROJECT_ROOT)
    2733
     
    4248AC_MSG_RESULT($RTEMS_VERSION)
    4349
    44 dnl FIXME: This once gets activated in future or will be removed
    45 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    46 dnl AC_SUBST(RTEMS_ROOT)
     50RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     51AC_SUBST(RTEMS_ROOT)
    4752])dnl
    4853
  • c/build-tools/configure

    rd115315 r8cdb582  
    1212ac_default_prefix=/usr/local
    1313# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-target-subdir=DIR"
    1416
    1517# Initialize some variables set by options.
     
    541543ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
    542544
     545# Check whether --with-target-subdir or --without-target-subdir was given.
     546if test "${with_target_subdir+set}" = set; then
     547  withval="$with_target_subdir"
     548  TARGET_SUBDIR="$withval"
     549else
     550  TARGET_SUBDIR="."
     551fi
     552
     553
    543554RTEMS_TOPdir="../..";
    544555
    545556
    546557PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     558test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    547559
    548560
    549561echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    550 echo "configure:551: checking for RTEMS Version" >&5
     562echo "configure:563: checking for RTEMS Version" >&5
    551563if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    552564RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    560572echo "$ac_t""$RTEMS_VERSION" 1>&6
    561573
     574RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     575
    562576
    563577
     
    569583
    570584echo $ac_n "checking host system type""... $ac_c" 1>&6
    571 echo "configure:572: checking host system type" >&5
     585echo "configure:586: checking host system type" >&5
    572586
    573587host_alias=$host
     
    602616# ./install, which can be erroneously created by make from ./install.sh.
    603617echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    604 echo "configure:605: checking for a BSD compatible install" >&5
     618echo "configure:619: checking for a BSD compatible install" >&5
    605619if test -z "$INSTALL"; then
    606620if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    655669
    656670echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    657 echo "configure:658: checking whether build environment is sane" >&5
     671echo "configure:672: checking whether build environment is sane" >&5
    658672# Just in case
    659673sleep 1
     
    712726
    713727echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    714 echo "configure:715: checking whether ${MAKE-make} sets \${MAKE}" >&5
     728echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
    715729set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    716730if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    751765missing_dir=`cd $ac_aux_dir && pwd`
    752766echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    753 echo "configure:754: checking for working aclocal" >&5
     767echo "configure:768: checking for working aclocal" >&5
    754768# Run test in a subshell; some versions of sh will print an error if
    755769# an executable is not found, even if stderr is redirected.
     
    764778
    765779echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    766 echo "configure:767: checking for working autoconf" >&5
     780echo "configure:781: checking for working autoconf" >&5
    767781# Run test in a subshell; some versions of sh will print an error if
    768782# an executable is not found, even if stderr is redirected.
     
    777791
    778792echo $ac_n "checking for working automake""... $ac_c" 1>&6
    779 echo "configure:780: checking for working automake" >&5
     793echo "configure:794: checking for working automake" >&5
    780794# Run test in a subshell; some versions of sh will print an error if
    781795# an executable is not found, even if stderr is redirected.
     
    790804
    791805echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    792 echo "configure:793: checking for working autoheader" >&5
     806echo "configure:807: checking for working autoheader" >&5
    793807# Run test in a subshell; some versions of sh will print an error if
    794808# an executable is not found, even if stderr is redirected.
     
    803817
    804818echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    805 echo "configure:806: checking for working makeinfo" >&5
     819echo "configure:820: checking for working makeinfo" >&5
    806820# Run test in a subshell; some versions of sh will print an error if
    807821# an executable is not found, even if stderr is redirected.
     
    817831
    818832echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
    819 echo "configure:820: checking for Cygwin environment" >&5
     833echo "configure:834: checking for Cygwin environment" >&5
    820834if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
    821835  echo $ac_n "(cached) $ac_c" 1>&6
    822836else
    823837  cat > conftest.$ac_ext <<EOF
    824 #line 825 "configure"
     838#line 839 "configure"
    825839#include "confdefs.h"
    826840
     
    833847; return 0; }
    834848EOF
    835 if { (eval echo configure:836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     849if { (eval echo configure:850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    836850  rm -rf conftest*
    837851  ac_cv_cygwin=yes
     
    850864test "$ac_cv_cygwin" = yes && CYGWIN=yes
    851865echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
    852 echo "configure:853: checking for mingw32 environment" >&5
     866echo "configure:867: checking for mingw32 environment" >&5
    853867if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
    854868  echo $ac_n "(cached) $ac_c" 1>&6
    855869else
    856870  cat > conftest.$ac_ext <<EOF
    857 #line 858 "configure"
     871#line 872 "configure"
    858872#include "confdefs.h"
    859873
     
    862876; return 0; }
    863877EOF
    864 if { (eval echo configure:865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     878if { (eval echo configure:879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    865879  rm -rf conftest*
    866880  ac_cv_mingw32=yes
     
    881895
    882896echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
    883 echo "configure:884: checking for executable suffix" >&5
     897echo "configure:898: checking for executable suffix" >&5
    884898if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
    885899  echo $ac_n "(cached) $ac_c" 1>&6
     
    891905  echo 'int main () { return 0; }' > conftest.$ac_ext
    892906  ac_cv_exeext=
    893   if { (eval echo configure:894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     907  if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    894908    for file in conftest.*; do
    895909      case $file in
     
    915929set dummy gcc; ac_word=$2
    916930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    917 echo "configure:918: checking for $ac_word" >&5
     931echo "configure:932: checking for $ac_word" >&5
    918932if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    919933  echo $ac_n "(cached) $ac_c" 1>&6
     
    945959set dummy cc; ac_word=$2
    946960echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    947 echo "configure:948: checking for $ac_word" >&5
     961echo "configure:962: checking for $ac_word" >&5
    948962if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    949963  echo $ac_n "(cached) $ac_c" 1>&6
     
    9961010set dummy cl; ac_word=$2
    9971011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    998 echo "configure:999: checking for $ac_word" >&5
     1012echo "configure:1013: checking for $ac_word" >&5
    9991013if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    10001014  echo $ac_n "(cached) $ac_c" 1>&6
     
    10281042
    10291043echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1030 echo "configure:1031: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1044echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10311045
    10321046ac_ext=c
     
    10391053cat > conftest.$ac_ext << EOF
    10401054
    1041 #line 1042 "configure"
     1055#line 1056 "configure"
    10421056#include "confdefs.h"
    10431057
    10441058main(){return(0);}
    10451059EOF
    1046 if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1060if { (eval echo configure:1061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10471061  ac_cv_prog_cc_works=yes
    10481062  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10701084fi
    10711085echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1072 echo "configure:1073: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1086echo "configure:1087: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10731087echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10741088cross_compiling=$ac_cv_prog_cc_cross
    10751089
    10761090echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1077 echo "configure:1078: checking whether we are using GNU C" >&5
     1091echo "configure:1092: checking whether we are using GNU C" >&5
    10781092if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10791093  echo $ac_n "(cached) $ac_c" 1>&6
     
    10841098#endif
    10851099EOF
    1086 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1100if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10871101  ac_cv_prog_gcc=yes
    10881102else
     
    11031117CFLAGS=
    11041118echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1105 echo "configure:1106: checking whether ${CC-cc} accepts -g" >&5
     1119echo "configure:1120: checking whether ${CC-cc} accepts -g" >&5
    11061120if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11071121  echo $ac_n "(cached) $ac_c" 1>&6
     
    11371151do
    11381152echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1139 echo "configure:1140: checking for $ac_func" >&5
     1153echo "configure:1154: checking for $ac_func" >&5
    11401154if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    11411155  echo $ac_n "(cached) $ac_c" 1>&6
    11421156else
    11431157  cat > conftest.$ac_ext <<EOF
    1144 #line 1145 "configure"
     1158#line 1159 "configure"
    11451159#include "confdefs.h"
    11461160/* System header to define __stub macros and hopefully few prototypes,
     
    11651179; return 0; }
    11661180EOF
    1167 if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1181if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    11681182  rm -rf conftest*
    11691183  eval "ac_cv_func_$ac_func=yes"
     
    11961210set dummy $ac_prog; ac_word=$2
    11971211echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1198 echo "configure:1199: checking for $ac_word" >&5
     1212echo "configure:1213: checking for $ac_word" >&5
    11991213if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    12001214  echo $ac_n "(cached) $ac_c" 1>&6
     
    13841398s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
    13851399s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     1400s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    13861401s%@host@%$host%g
    13871402s%@host_alias@%$host_alias%g
  • c/build-tools/scripts/Makefile.in

    rd115315 r8cdb582  
    1515#
    1616
    17 
    18 # $Id$
    19 
    20 # NOTE: This is a temporary work-around to keep
    21 # "make debug" and "make debug_install" working.
    22 # Once automake is fully integrated these make targets
    23 # and this file will probably be removed
    2417
    2518
     
    7871PACKAGE = @PACKAGE@
    7972PROJECT_ROOT = @PROJECT_ROOT@
     73RTEMS_ROOT = @RTEMS_ROOT@
    8074RTEMS_TOPdir = @RTEMS_TOPdir@
    8175VERSION = @VERSION@
     
    242236debug_install: debug_install-am
    243237
     238.PHONY: debug debug_install debug-am
     239
    244240profile-am:
    245241
     
    250246profile_install: profile_install-am
    251247
    252 .PHONY: debug debug_install profile profile_install
     248.PHONY: profile profile_install profile-am
     249
     250preinstall-am:
     251
     252preinstall: preinstall-am
     253
     254.PHONY: preinstall preinstall-am
    253255
    254256# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/build-tools/src/Makefile.in

    rd115315 r8cdb582  
    1515#
    1616
    17 
    18 # $Id$
    19 
    20 # NOTE: This is a temporary work-around to keep
    21 # "make debug" and "make debug_install" working.
    22 # Once automake is fully integrated these make targets
    23 # and this file will probably be removed
    2417
    2518
     
    7871PACKAGE = @PACKAGE@
    7972PROJECT_ROOT = @PROJECT_ROOT@
     73RTEMS_ROOT = @RTEMS_ROOT@
    8074RTEMS_TOPdir = @RTEMS_TOPdir@
    8175VERSION = @VERSION@
     
    408402debug_install: debug_install-am
    409403
     404.PHONY: debug debug_install debug-am
     405
    410406profile-am:
    411407
     
    416412profile_install: profile_install-am
    417413
    418 .PHONY: debug debug_install profile profile_install
     414.PHONY: profile profile_install profile-am
     415
     416preinstall-am:
     417
     418preinstall: preinstall-am
     419
     420.PHONY: preinstall preinstall-am
    419421
    420422# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/src/exec/score/tools/generic/Makefile.in

    rd115315 r8cdb582  
    1515#
    1616
    17 
    18 # $Id$
    19 
    20 # NOTE: This is a temporary work-around to keep
    21 # "make debug" and "make debug_install" working.
    22 # Once automake is fully integrated these make targets
    23 # and this file will probably be removed
    2417
    2518
     
    7871PACKAGE = @PACKAGE@
    7972PROJECT_ROOT = @PROJECT_ROOT@
     73RTEMS_ROOT = @RTEMS_ROOT@
    8074RTEMS_TOPdir = @RTEMS_TOPdir@
    8175VERSION = @VERSION@
     
    249243debug_install: debug_install-am
    250244
     245.PHONY: debug debug_install debug-am
     246
    251247profile-am:
    252248
     
    257253profile_install: profile_install-am
    258254
    259 .PHONY: debug debug_install profile profile_install
     255.PHONY: profile profile_install profile-am
     256
     257preinstall-am:
     258
     259preinstall: preinstall-am
     260
     261.PHONY: preinstall preinstall-am
    260262
    261263# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/src/exec/score/tools/generic/aclocal.m4

    rd115315 r8cdb582  
    2020AC_DEFUN(RTEMS_TOP,
    2121[dnl
     22AC_ARG_WITH(target-subdir,
     23[  --with-target-subdir=DIR],
     24TARGET_SUBDIR="$withval",
     25TARGET_SUBDIR=".")
     26
    2227RTEMS_TOPdir="$1";
    2328AC_SUBST(RTEMS_TOPdir)
    2429
    2530PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     31test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    2632AC_SUBST(PROJECT_ROOT)
    2733
     
    4248AC_MSG_RESULT($RTEMS_VERSION)
    4349
    44 dnl FIXME: This once gets activated in future or will be removed
    45 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    46 dnl AC_SUBST(RTEMS_ROOT)
     50RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     51AC_SUBST(RTEMS_ROOT)
    4752])dnl
    4853
  • c/src/exec/score/tools/generic/configure

    rd115315 r8cdb582  
    1212ac_default_prefix=/usr/local
    1313# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-target-subdir=DIR"
    1416
    1517# Initialize some variables set by options.
     
    542544
    543545
     546# Check whether --with-target-subdir or --without-target-subdir was given.
     547if test "${with_target_subdir+set}" = set; then
     548  withval="$with_target_subdir"
     549  TARGET_SUBDIR="$withval"
     550else
     551  TARGET_SUBDIR="."
     552fi
     553
     554
    544555RTEMS_TOPdir="../../../../../..";
    545556
    546557
    547558PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     559test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    548560
    549561
    550562echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    551 echo "configure:552: checking for RTEMS Version" >&5
     563echo "configure:564: checking for RTEMS Version" >&5
    552564if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    553565RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    560572fi
    561573echo "$ac_t""$RTEMS_VERSION" 1>&6
     574
     575RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    562576
    563577
     
    590604
    591605echo $ac_n "checking host system type""... $ac_c" 1>&6
    592 echo "configure:593: checking host system type" >&5
     606echo "configure:607: checking host system type" >&5
    593607
    594608host_alias=$host
     
    611625
    612626echo $ac_n "checking target system type""... $ac_c" 1>&6
    613 echo "configure:614: checking target system type" >&5
     627echo "configure:628: checking target system type" >&5
    614628
    615629target_alias=$target
     
    629643
    630644echo $ac_n "checking build system type""... $ac_c" 1>&6
    631 echo "configure:632: checking build system type" >&5
     645echo "configure:646: checking build system type" >&5
    632646
    633647build_alias=$build
     
    654668
    655669echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    656 echo "configure:657: checking rtems target cpu" >&5
     670echo "configure:671: checking rtems target cpu" >&5
    657671case "${target}" in
    658672  # hpux unix port should go here
     
    694708# ./install, which can be erroneously created by make from ./install.sh.
    695709echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    696 echo "configure:697: checking for a BSD compatible install" >&5
     710echo "configure:711: checking for a BSD compatible install" >&5
    697711if test -z "$INSTALL"; then
    698712if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    747761
    748762echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    749 echo "configure:750: checking whether build environment is sane" >&5
     763echo "configure:764: checking whether build environment is sane" >&5
    750764# Just in case
    751765sleep 1
     
    804818
    805819echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    806 echo "configure:807: checking whether ${MAKE-make} sets \${MAKE}" >&5
     820echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
    807821set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    808822if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    843857missing_dir=`cd $ac_aux_dir && pwd`
    844858echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    845 echo "configure:846: checking for working aclocal" >&5
     859echo "configure:860: checking for working aclocal" >&5
    846860# Run test in a subshell; some versions of sh will print an error if
    847861# an executable is not found, even if stderr is redirected.
     
    856870
    857871echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    858 echo "configure:859: checking for working autoconf" >&5
     872echo "configure:873: checking for working autoconf" >&5
    859873# Run test in a subshell; some versions of sh will print an error if
    860874# an executable is not found, even if stderr is redirected.
     
    869883
    870884echo $ac_n "checking for working automake""... $ac_c" 1>&6
    871 echo "configure:872: checking for working automake" >&5
     885echo "configure:886: checking for working automake" >&5
    872886# Run test in a subshell; some versions of sh will print an error if
    873887# an executable is not found, even if stderr is redirected.
     
    882896
    883897echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    884 echo "configure:885: checking for working autoheader" >&5
     898echo "configure:899: checking for working autoheader" >&5
    885899# Run test in a subshell; some versions of sh will print an error if
    886900# an executable is not found, even if stderr is redirected.
     
    895909
    896910echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    897 echo "configure:898: checking for working makeinfo" >&5
     911echo "configure:912: checking for working makeinfo" >&5
    898912# Run test in a subshell; some versions of sh will print an error if
    899913# an executable is not found, even if stderr is redirected.
     
    915929set dummy $ac_prog; ac_word=$2
    916930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    917 echo "configure:918: checking for $ac_word" >&5
     931echo "configure:932: checking for $ac_word" >&5
    918932if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    919933  echo $ac_n "(cached) $ac_c" 1>&6
     
    11221136s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
    11231137s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     1138s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    11241139s%@host@%$host%g
    11251140s%@host_alias@%$host_alias%g
  • c/src/exec/score/tools/hppa1.1/Makefile.in

    rd115315 r8cdb582  
    1 # Makefile.in generated automatically by automake 1.2 from Makefile.am
    2 
    3 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
    44# This Makefile.in is free software; the Free Software Foundation
    5 # gives unlimited permission to copy, distribute and modify it.
     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.
    612
    713#
     
    1016
    1117
    12 SHELL = /bin/sh
     18
     19SHELL = @SHELL@
    1320
    1421srcdir = @srcdir@
     
    3138oldincludedir = /usr/include
    3239
     40DESTDIR =
     41
    3342pkgdatadir = $(datadir)/@PACKAGE@
    3443pkglibdir = $(libdir)/@PACKAGE@
     
    4150
    4251INSTALL = @INSTALL@
    43 INSTALL_PROGRAM = @INSTALL_PROGRAM@
     52INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
    4453INSTALL_DATA = @INSTALL_DATA@
    4554INSTALL_SCRIPT = @INSTALL_SCRIPT@
    4655transform = @program_transform_name@
    4756
    48 NORMAL_INSTALL = true
    49 PRE_INSTALL = true
    50 POST_INSTALL = true
    51 NORMAL_UNINSTALL = true
    52 PRE_UNINSTALL = true
    53 POST_UNINSTALL = true
     57NORMAL_INSTALL = :
     58PRE_INSTALL = :
     59POST_INSTALL = :
     60NORMAL_UNINSTALL = :
     61PRE_UNINSTALL = :
     62POST_UNINSTALL = :
    5463build_alias = @build_alias@
    5564build_triplet = @build@
     
    6271PACKAGE = @PACKAGE@
    6372PROJECT_ROOT = @PROJECT_ROOT@
     73RTEMS_ROOT = @RTEMS_ROOT@
    6474RTEMS_TOPdir = @RTEMS_TOPdir@
    6575VERSION = @VERSION@
     
    7282ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
    7383
    74 noinst_PROGRAMS=genoffsets
    75 
    76 genoffsets_SOURCES = \
    77 genoffsets.c
     84noinst_PROGRAMS = genoffsets
     85
     86genoffsets_SOURCES =  genoffsets.c
     87
    7888
    7989# We use files that have not been installed yet.
    8090
    81 CPU_DIR=../../cpu/$(RTEMS_CPU)
    82 
    83 INCLUDES = \
    84 -I$(PROJECT_INCLUDE) \
    85 -I$(CPU_DIR)
     91CPU_DIR = ../../cpu/$(RTEMS_CPU)
     92
     93INCLUDES =  -I$(PROJECT_INCLUDE) -I$(CPU_DIR)
     94
    8695ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    8796mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../../mkinstalldirs
     
    96105genoffsets_OBJECTS =  genoffsets.o
    97106genoffsets_LDADD = $(LDADD)
     107genoffsets_DEPENDENCIES =
    98108genoffsets_LDFLAGS =
    99109CFLAGS = @CFLAGS@
    100 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    101 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
     110COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     111CCLD = $(CC)
     112LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
    102113DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
    103114
     
    106117
    107118TAR = tar
    108 GZIP = --best
     119GZIP_ENV = --best
    109120DEP_FILES =  .deps/genoffsets.P
    110121SOURCES = $(genoffsets_SOURCES)
    111122OBJECTS = $(genoffsets_OBJECTS)
    112123
    113 default: all
    114 
     124all: all-redirect
    115125.SUFFIXES:
    116 .SUFFIXES: .c .o
    117 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     126.SUFFIXES: .S .c .o .s
     127$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../automake/local.am
    118128        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
    119129
    120 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
     130Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    121131        cd $(top_builddir) \
    122132          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     
    125135        cd $(srcdir) && $(ACLOCAL)
    126136
    127 config.status: $(srcdir)/configure
     137config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    128138        $(SHELL) ./config.status --recheck
    129139$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     
    133143
    134144clean-noinstPROGRAMS:
    135         test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
     145        -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
    136146
    137147distclean-noinstPROGRAMS:
     
    139149maintainer-clean-noinstPROGRAMS:
    140150
    141 .c.o:
     151.s.o:
    142152        $(COMPILE) -c $<
    143153
     154.S.o:
     155        $(COMPILE) -c $<
     156
    144157mostlyclean-compile:
    145         rm -f *.o core
     158        -rm -f *.o core *.core
    146159
    147160clean-compile:
    148161
    149162distclean-compile:
    150         rm -f *.tab.c
     163        -rm -f *.tab.c
    151164
    152165maintainer-clean-compile:
     
    158171tags: TAGS
    159172
    160 ID: $(HEADERS) $(SOURCES)
    161         here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)
    162 
    163 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES)
     173ID: $(HEADERS) $(SOURCES) $(LISP)
     174        list='$(SOURCES) $(HEADERS)'; \
     175        unique=`for i in $$list; do echo $$i; done | \
     176          awk '    { files[$$0] = 1; } \
     177               END { for (i in files) print i; }'`; \
     178        here=`pwd` && cd $(srcdir) \
     179          && mkid -f$$here/ID $$unique $(LISP)
     180
     181TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
    164182        tags=; \
    165183        here=`pwd`; \
    166         test -z "$(ETAGS_ARGS)$(SOURCES)$(HEADERS)$$tags" \
    167           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $(SOURCES) $(HEADERS) -o $$here/TAGS)
     184        list='$(SOURCES) $(HEADERS)'; \
     185        unique=`for i in $$list; do echo $$i; done | \
     186          awk '    { files[$$0] = 1; } \
     187               END { for (i in files) print i; }'`; \
     188        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     189          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
    168190
    169191mostlyclean-tags:
     
    172194
    173195distclean-tags:
    174         rm -f TAGS ID
     196        -rm -f TAGS ID
    175197
    176198maintainer-clean-tags:
     
    183205# tarfile.
    184206distcheck: dist
    185         rm -rf $(distdir)
    186         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
     207        -rm -rf $(distdir)
     208        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
    187209        mkdir $(distdir)/=build
    188210        mkdir $(distdir)/=inst
     
    190212        cd $(distdir)/=build \
    191213          && ../configure --srcdir=.. --prefix=$$dc_install_base \
    192           && $(MAKE) \
    193           && $(MAKE) dvi \
    194           && $(MAKE) check \
    195           && $(MAKE) install \
    196           && $(MAKE) installcheck \
    197           && $(MAKE) dist
    198         rm -rf $(distdir)
    199         @echo "========================"; \
    200         echo "$(distdir).tar.gz is ready for distribution"; \
    201         echo "========================"
     214          && $(MAKE) $(AM_MAKEFLAGS) \
     215          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     216          && $(MAKE) $(AM_MAKEFLAGS) check \
     217          && $(MAKE) $(AM_MAKEFLAGS) install \
     218          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     219          && $(MAKE) $(AM_MAKEFLAGS) dist
     220        -rm -rf $(distdir)
     221        @banner="$(distdir).tar.gz is ready for distribution"; \
     222        dashes=`echo "$$banner" | sed s/./=/g`; \
     223        echo "$$dashes"; \
     224        echo "$$banner"; \
     225        echo "$$dashes"
    202226dist: distdir
    203227        -chmod -R a+r $(distdir)
    204         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
    205         rm -rf $(distdir)
     228        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     229        -rm -rf $(distdir)
    206230dist-all: distdir
    207231        -chmod -R a+r $(distdir)
    208         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
    209         rm -rf $(distdir)
     232        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     233        -rm -rf $(distdir)
    210234distdir: $(DISTFILES)
    211         rm -rf $(distdir)
     235        -rm -rf $(distdir)
    212236        mkdir $(distdir)
    213237        -chmod 777 $(distdir)
    214238        here=`cd $(top_builddir) && pwd`; \
    215         top_distdir=`cd $(top_distdir) && pwd`; \
     239        top_distdir=`cd $(distdir) && pwd`; \
     240        distdir=`cd $(distdir) && pwd`; \
    216241        cd $(top_srcdir) \
    217242          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
    218243        @for file in $(DISTFILES); do \
    219244          d=$(srcdir); \
    220           test -f $(distdir)/$$file \
    221           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
    222           || cp -p $$d/$$file $(distdir)/$$file; \
     245          if test -d $$d/$$file; then \
     246            cp -pr $$/$$file $(distdir)/$$file; \
     247          else \
     248            test -f $(distdir)/$$file \
     249            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     250            || cp -p $$d/$$file $(distdir)/$$file || :; \
     251          fi; \
    223252        done
    224253
    225 MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    226 
    227254DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
    228 -include .deps/.P
    229 .deps/.P: $(BUILT_SOURCES)
    230         echo > $@
    231255
    232256-include $(DEP_FILES)
     
    237261
    238262distclean-depend:
     263        -rm -rf .deps
    239264
    240265maintainer-clean-depend:
    241         rm -rf .deps
    242 
    243 .deps/%.P: %.c
    244         @echo "Computing dependencies for $<..."
    245         @o='o'; \
    246         test -n "$o" && o='$$o'; \
    247         $(MKDEP) $< >$@.tmp \
    248           && sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," < $@.tmp > $@ \
    249           && rm -f $@.tmp
    250 info:
    251 dvi:
    252 check: all
    253         $(MAKE)
    254 installcheck:
    255 install-exec: install-exec-local
    256         @$(NORMAL_INSTALL)
    257 
    258 install-data:
    259         @$(NORMAL_INSTALL)
    260 
    261 install: install-exec install-data all
    262         @:
    263 
    264 uninstall:
    265 
    266 all: Makefile $(PROGRAMS)
    267 
     266
     267%.o: %.c
     268        @echo '$(COMPILE) -c $<'; \
     269        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     270        @-cp .deps/$(*F).pp .deps/$(*F).P; \
     271        tr ' ' '\012' < .deps/$(*F).pp \
     272          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     273            >> .deps/$(*F).P; \
     274        rm .deps/$(*F).pp
     275
     276%.lo: %.c
     277        @echo '$(LTCOMPILE) -c $<'; \
     278        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     279        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
     280          < .deps/$(*F).pp > .deps/$(*F).P; \
     281        tr ' ' '\012' < .deps/$(*F).pp \
     282          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     283            >> .deps/$(*F).P; \
     284        rm -f .deps/$(*F).pp
     285info-am:
     286info: info-am
     287dvi-am:
     288dvi: dvi-am
     289check-am: all-am
     290check: check-am
     291installcheck-am:
     292installcheck: installcheck-am
     293install-exec-am: install-exec-local
     294install-exec: install-exec-am
     295
     296install-data-am:
     297install-data: install-data-am
     298
     299install-am: all-am
     300        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     301install: install-am
     302uninstall-am:
     303uninstall: uninstall-am
     304all-am: Makefile $(PROGRAMS)
     305all-redirect: all-am
    268306install-strip:
    269         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
     307        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
    270308installdirs:
    271309
    272310
    273311mostlyclean-generic:
    274         test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
    275312
    276313clean-generic:
    277         test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    278314
    279315distclean-generic:
    280         rm -f Makefile $(DISTCLEANFILES)
    281         rm -f config.cache config.log stamp-h stamp-h[0-9]*
    282         test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
     316        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     317        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
    283318
    284319maintainer-clean-generic:
    285         test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
    286         test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
    287 mostlyclean:  mostlyclean-noinstPROGRAMS mostlyclean-compile \
     320mostlyclean-am:  mostlyclean-noinstPROGRAMS mostlyclean-compile \
    288321                mostlyclean-tags mostlyclean-depend mostlyclean-generic
    289322
    290 clean:  clean-noinstPROGRAMS clean-compile clean-tags clean-depend \
    291                 clean-generic mostlyclean
    292 
    293 distclean:  distclean-noinstPROGRAMS distclean-compile distclean-tags \
    294                 distclean-depend distclean-generic clean
    295         rm -f config.status
    296 
    297 maintainer-clean:  maintainer-clean-noinstPROGRAMS \
     323mostlyclean: mostlyclean-am
     324
     325clean-am:  clean-noinstPROGRAMS clean-compile clean-tags clean-depend \
     326                clean-generic mostlyclean-am
     327
     328clean: clean-am
     329
     330distclean-am:  distclean-noinstPROGRAMS distclean-compile distclean-tags \
     331                distclean-depend distclean-generic clean-am
     332
     333distclean: distclean-am
     334        -rm -f config.status
     335
     336maintainer-clean-am:  maintainer-clean-noinstPROGRAMS \
    298337                maintainer-clean-compile maintainer-clean-tags \
    299338                maintainer-clean-depend maintainer-clean-generic \
    300                 distclean
     339                distclean-am
    301340        @echo "This command is intended for maintainers to use;"
    302341        @echo "it deletes files that may require special tools to rebuild."
    303         rm -f config.status
    304 
    305 .PHONY: default mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
     342
     343maintainer-clean: maintainer-clean-am
     344        -rm -f config.status
     345
     346.PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
    306347clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
    307348mostlyclean-compile distclean-compile clean-compile \
    308349maintainer-clean-compile tags mostlyclean-tags distclean-tags \
    309350clean-tags maintainer-clean-tags distdir mostlyclean-depend \
    310 distclean-depend clean-depend maintainer-clean-depend info dvi \
    311 installcheck install-exec install-data install uninstall all \
    312 installdirs mostlyclean-generic distclean-generic clean-generic \
    313 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     351distclean-depend clean-depend maintainer-clean-depend info-am info \
     352dvi-am dvi check check-am installcheck-am installcheck \
     353install-exec-local install-exec-am install-exec install-data-am \
     354install-data install-am install uninstall-am uninstall all-redirect \
     355all-am all installdirs mostlyclean-generic distclean-generic \
     356clean-generic maintainer-clean-generic clean mostlyclean distclean \
     357maintainer-clean
    314358
    315359
     
    321365        $(INSTALL_PROGRAM) genoffsets ${PROJECT_ROOT}/${RTEMS_BSP}/bin
    322366
    323 include $(top_srcdir)/../../../../../../automake/local.am
     367debug-am:
     368
     369debug: debug-am
     370
     371debug_install-am:
     372
     373debug_install: debug_install-am
     374
     375.PHONY: debug debug_install debug-am
     376
     377profile-am:
     378
     379profile: profile-am
     380
     381profile_install-am:
     382
     383profile_install: profile_install-am
     384
     385.PHONY: profile profile_install profile-am
     386
     387preinstall-am:
     388
     389preinstall: preinstall-am
     390
     391.PHONY: preinstall preinstall-am
    324392
    325393# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/src/exec/score/tools/hppa1.1/aclocal.m4

    rd115315 r8cdb582  
    1 dnl aclocal.m4 generated automatically by aclocal 1.2
     1dnl aclocal.m4 generated automatically by aclocal 1.4
     2
     3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4dnl This file is free software; the Free Software Foundation
     5dnl gives unlimited permission to copy and/or distribute it,
     6dnl with or without modifications, as long as this notice is preserved.
     7
     8dnl This program is distributed in the hope that it will be useful,
     9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11dnl PARTICULAR PURPOSE.
    212
    313dnl $Id$
     
    1020AC_DEFUN(RTEMS_TOP,
    1121[dnl
     22AC_ARG_WITH(target-subdir,
     23[  --with-target-subdir=DIR],
     24TARGET_SUBDIR="$withval",
     25TARGET_SUBDIR=".")
     26
    1227RTEMS_TOPdir="$1";
    1328AC_SUBST(RTEMS_TOPdir)
    1429
    1530PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     31test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    1632AC_SUBST(PROJECT_ROOT)
    1733
     
    3248AC_MSG_RESULT($RTEMS_VERSION)
    3349
    34 dnl FIXME: This once gets activated in future or will be removed
    35 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    36 dnl AC_SUBST(RTEMS_ROOT)
     50RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     51AC_SUBST(RTEMS_ROOT)
    3752])dnl
    3853
     
    90105
    91106AC_DEFUN(AM_INIT_AUTOMAKE,
    92 [AC_REQUIRE([AM_PROG_INSTALL])
     107[AC_REQUIRE([AC_PROG_INSTALL])
    93108PACKAGE=[$1]
    94109AC_SUBST(PACKAGE)
     
    100115fi
    101116ifelse([$3],,
    102 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    103 AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
    104 AM_SANITY_CHECK
    105 AC_ARG_PROGRAM
     117AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     118AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
     119AC_REQUIRE([AM_SANITY_CHECK])
     120AC_REQUIRE([AC_ARG_PROGRAM])
    106121dnl FIXME This is truly gross.
    107122missing_dir=`cd $ac_aux_dir && pwd`
     
    111126AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
    112127AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
    113 AC_PROG_MAKE_SET])
    114 
    115 
    116 # serial 1
    117 
    118 AC_DEFUN(AM_PROG_INSTALL,
    119 [AC_REQUIRE([AC_PROG_INSTALL])
    120 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    121 AC_SUBST(INSTALL_SCRIPT)dnl
    122 ])
     128AC_REQUIRE([AC_PROG_MAKE_SET])])
    123129
    124130#
     
    138144if (
    139145   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
    140    if test "$@" = "X"; then
     146   if test "[$]*" = "X"; then
    141147      # -L didn't work.
    142148      set X `ls -t $srcdir/configure conftestfile`
    143149   fi
     150   if test "[$]*" != "X $srcdir/configure conftestfile" \
     151      && test "[$]*" != "X conftestfile $srcdir/configure"; then
     152
     153      # If neither matched, then we have a broken ls.  This can happen
     154      # if, for instance, CONFIG_SHELL is bash and it inherits a
     155      # broken ls alias from the environment.  This has actually
     156      # happened.  Such a system could not be considered "sane".
     157      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     158alias in your environment])
     159   fi
     160
    144161   test "[$]2" = conftestfile
    145162   )
  • c/src/exec/score/tools/hppa1.1/configure

    rd115315 r8cdb582  
    22
    33# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.12
     4# Generated automatically using autoconf version 2.13
    55# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    66#
     
    1212ac_default_prefix=/usr/local
    1313# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-target-subdir=DIR"
    1416
    1517# Initialize some variables set by options.
     
    5052subdirs=
    5153MFLAGS= MAKEFLAGS=
     54SHELL=${CONFIG_SHELL-/bin/sh}
    5255# Maximum number of lines to put in a shell here document.
    5356ac_max_here_lines=12
     
    333336
    334337  -version | --version | --versio | --versi | --vers)
    335     echo "configure generated by autoconf version 2.12"
     338    echo "configure generated by autoconf version 2.13"
    336339    exit 0 ;;
    337340
     
    503506ac_cpp='$CPP $CPPFLAGS'
    504507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    506509cross_compiling=$ac_cv_prog_cc_cross
    507510
     511ac_exeext=
     512ac_objext=o
    508513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    509514  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    539544
    540545
     546# Check whether --with-target-subdir or --without-target-subdir was given.
     547if test "${with_target_subdir+set}" = set; then
     548  withval="$with_target_subdir"
     549  TARGET_SUBDIR="$withval"
     550else
     551  TARGET_SUBDIR="."
     552fi
     553
     554
    541555RTEMS_TOPdir="../../../../../..";
    542556
    543557
    544558PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     559test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    545560
    546561
    547562echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    548 echo "configure:549: checking for RTEMS Version" >&5
     563echo "configure:564: checking for RTEMS Version" >&5
    549564if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    550565RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    557572fi
    558573echo "$ac_t""$RTEMS_VERSION" 1>&6
     574
     575RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    559576
    560577
     
    582599
    583600# Make sure we can run config.sub.
    584 if $ac_config_sub sun4 >/dev/null 2>&1; then :
     601if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
    585602else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
    586603fi
    587604
    588605echo $ac_n "checking host system type""... $ac_c" 1>&6
    589 echo "configure:590: checking host system type" >&5
     606echo "configure:607: checking host system type" >&5
    590607
    591608host_alias=$host
     
    594611  case $nonopt in
    595612  NONE)
    596     if host_alias=`$ac_config_guess`; then :
     613    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    597614    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    598615    fi ;;
     
    601618esac
    602619
    603 host=`$ac_config_sub $host_alias`
     620host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
    604621host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    605622host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    608625
    609626echo $ac_n "checking target system type""... $ac_c" 1>&6
    610 echo "configure:611: checking target system type" >&5
     627echo "configure:628: checking target system type" >&5
    611628
    612629target_alias=$target
     
    619636esac
    620637
    621 target=`$ac_config_sub $target_alias`
     638target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
    622639target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    623640target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    626643
    627644echo $ac_n "checking build system type""... $ac_c" 1>&6
    628 echo "configure:629: checking build system type" >&5
     645echo "configure:646: checking build system type" >&5
    629646
    630647build_alias=$build
     
    637654esac
    638655
    639 build=`$ac_config_sub $build_alias`
     656build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
    640657build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    641658build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    651668
    652669echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    653 echo "configure:654: checking rtems target cpu" >&5
     670echo "configure:671: checking rtems target cpu" >&5
    654671case "${target}" in
    655672  # hpux unix port should go here
     
    686703# IRIX /sbin/install
    687704# AIX /bin/install
     705# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    688706# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    689707# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    690708# ./install, which can be erroneously created by make from ./install.sh.
    691709echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    692 echo "configure:693: checking for a BSD compatible install" >&5
     710echo "configure:711: checking for a BSD compatible install" >&5
    693711if test -z "$INSTALL"; then
    694712if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    695713  echo $ac_n "(cached) $ac_c" 1>&6
    696714else
    697     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
     715    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    698716  for ac_dir in $PATH; do
    699717    # Account for people who put trailing slashes in PATH elements.
     
    702720    *)
    703721      # OSF1 and SCO ODT 3.0 have their own names for install.
    704       for ac_prog in ginstall installbsd scoinst install; do
     722      # Don't use installbsd from OSF since it installs stuff as root
     723      # by default.
     724      for ac_prog in ginstall scoinst install; do
    705725        if test -f $ac_dir/$ac_prog; then
    706726          if test $ac_prog = install &&
    707727            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    708728            # AIX install.  It has an incompatible calling convention.
    709             # OSF/1 installbsd also uses dspmsg, but is usable.
    710729            :
    711730          else
     
    737756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    738757
     758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     759
    739760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    740761
    741 
    742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    743 
    744 
    745 PACKAGE=rtems-exec-score-tools-hppa
    746 
    747 VERSION=$RTEMS_VERSION
    748 
    749 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
    750   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
    751 fi
    752 
    753762echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    754 echo "configure:755: checking whether build environment is sane" >&5
     763echo "configure:764: checking whether build environment is sane" >&5
    755764# Just in case
    756765sleep 1
     
    763772if (
    764773   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
    765    if test "" = "X"; then
     774   if test "$*" = "X"; then
    766775      # -L didn't work.
    767776      set X `ls -t $srcdir/configure conftestfile`
    768777   fi
     778   if test "$*" != "X $srcdir/configure conftestfile" \
     779      && test "$*" != "X conftestfile $srcdir/configure"; then
     780
     781      # If neither matched, then we have a broken ls.  This can happen
     782      # if, for instance, CONFIG_SHELL is bash and it inherits a
     783      # broken ls alias from the environment.  This has actually
     784      # happened.  Such a system could not be considered "sane".
     785      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
     786alias in your environment" 1>&2; exit 1; }
     787   fi
     788
    769789   test "$2" = conftestfile
    770790   )
     
    797817test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    798818
    799 missing_dir=`cd $ac_aux_dir && pwd`
    800 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    801 echo "configure:802: checking for working aclocal" >&5
    802 # Run test in a subshell; some versions of sh will print an error if
    803 # an executable is not found, even if stderr is redirected.
    804 # Redirect stdin to placate older versions of autoconf.  Sigh.
    805 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
    806    ACLOCAL=aclocal
    807    echo "$ac_t""found" 1>&6
    808 else
    809    ACLOCAL="$missing_dir/missing aclocal"
    810    echo "$ac_t""missing" 1>&6
    811 fi
    812 
    813 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    814 echo "configure:815: checking for working autoconf" >&5
    815 # Run test in a subshell; some versions of sh will print an error if
    816 # an executable is not found, even if stderr is redirected.
    817 # Redirect stdin to placate older versions of autoconf.  Sigh.
    818 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
    819    AUTOCONF=autoconf
    820    echo "$ac_t""found" 1>&6
    821 else
    822    AUTOCONF="$missing_dir/missing autoconf"
    823    echo "$ac_t""missing" 1>&6
    824 fi
    825 
    826 echo $ac_n "checking for working automake""... $ac_c" 1>&6
    827 echo "configure:828: checking for working automake" >&5
    828 # Run test in a subshell; some versions of sh will print an error if
    829 # an executable is not found, even if stderr is redirected.
    830 # Redirect stdin to placate older versions of autoconf.  Sigh.
    831 if (automake --version) < /dev/null > /dev/null 2>&1; then
    832    AUTOMAKE=automake
    833    echo "$ac_t""found" 1>&6
    834 else
    835    AUTOMAKE="$missing_dir/missing automake"
    836    echo "$ac_t""missing" 1>&6
    837 fi
    838 
    839 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    840 echo "configure:841: checking for working autoheader" >&5
    841 # Run test in a subshell; some versions of sh will print an error if
    842 # an executable is not found, even if stderr is redirected.
    843 # Redirect stdin to placate older versions of autoconf.  Sigh.
    844 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
    845    AUTOHEADER=autoheader
    846    echo "$ac_t""found" 1>&6
    847 else
    848    AUTOHEADER="$missing_dir/missing autoheader"
    849    echo "$ac_t""missing" 1>&6
    850 fi
    851 
    852 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    853 echo "configure:854: checking for working makeinfo" >&5
    854 # Run test in a subshell; some versions of sh will print an error if
    855 # an executable is not found, even if stderr is redirected.
    856 # Redirect stdin to placate older versions of autoconf.  Sigh.
    857 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
    858    MAKEINFO=makeinfo
    859    echo "$ac_t""found" 1>&6
    860 else
    861    MAKEINFO="$missing_dir/missing makeinfo"
    862    echo "$ac_t""missing" 1>&6
    863 fi
    864 
    865819echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    866 echo "configure:867: checking whether ${MAKE-make} sets \${MAKE}" >&5
     820echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
    867821set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    868822if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    891845
    892846
     847PACKAGE=rtems-exec-score-tools-hppa
     848
     849VERSION=$RTEMS_VERSION
     850
     851if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     852  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
     853fi
     854
     855
     856
     857missing_dir=`cd $ac_aux_dir && pwd`
     858echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
     859echo "configure:860: checking for working aclocal" >&5
     860# Run test in a subshell; some versions of sh will print an error if
     861# an executable is not found, even if stderr is redirected.
     862# Redirect stdin to placate older versions of autoconf.  Sigh.
     863if (aclocal --version) < /dev/null > /dev/null 2>&1; then
     864   ACLOCAL=aclocal
     865   echo "$ac_t""found" 1>&6
     866else
     867   ACLOCAL="$missing_dir/missing aclocal"
     868   echo "$ac_t""missing" 1>&6
     869fi
     870
     871echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
     872echo "configure:873: checking for working autoconf" >&5
     873# Run test in a subshell; some versions of sh will print an error if
     874# an executable is not found, even if stderr is redirected.
     875# Redirect stdin to placate older versions of autoconf.  Sigh.
     876if (autoconf --version) < /dev/null > /dev/null 2>&1; then
     877   AUTOCONF=autoconf
     878   echo "$ac_t""found" 1>&6
     879else
     880   AUTOCONF="$missing_dir/missing autoconf"
     881   echo "$ac_t""missing" 1>&6
     882fi
     883
     884echo $ac_n "checking for working automake""... $ac_c" 1>&6
     885echo "configure:886: checking for working automake" >&5
     886# Run test in a subshell; some versions of sh will print an error if
     887# an executable is not found, even if stderr is redirected.
     888# Redirect stdin to placate older versions of autoconf.  Sigh.
     889if (automake --version) < /dev/null > /dev/null 2>&1; then
     890   AUTOMAKE=automake
     891   echo "$ac_t""found" 1>&6
     892else
     893   AUTOMAKE="$missing_dir/missing automake"
     894   echo "$ac_t""missing" 1>&6
     895fi
     896
     897echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
     898echo "configure:899: checking for working autoheader" >&5
     899# Run test in a subshell; some versions of sh will print an error if
     900# an executable is not found, even if stderr is redirected.
     901# Redirect stdin to placate older versions of autoconf.  Sigh.
     902if (autoheader --version) < /dev/null > /dev/null 2>&1; then
     903   AUTOHEADER=autoheader
     904   echo "$ac_t""found" 1>&6
     905else
     906   AUTOHEADER="$missing_dir/missing autoheader"
     907   echo "$ac_t""missing" 1>&6
     908fi
     909
     910echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
     911echo "configure:912: checking for working makeinfo" >&5
     912# Run test in a subshell; some versions of sh will print an error if
     913# an executable is not found, even if stderr is redirected.
     914# Redirect stdin to placate older versions of autoconf.  Sigh.
     915if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
     916   MAKEINFO=makeinfo
     917   echo "$ac_t""found" 1>&6
     918else
     919   MAKEINFO="$missing_dir/missing makeinfo"
     920   echo "$ac_t""missing" 1>&6
     921fi
     922
     923
     924
    893925# Extract the first word of "gcc", so it can be a program name with args.
    894926set dummy gcc; ac_word=$2
    895927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    896 echo "configure:897: checking for $ac_word" >&5
     928echo "configure:929: checking for $ac_word" >&5
    897929if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    898930  echo $ac_n "(cached) $ac_c" 1>&6
     
    901933  ac_cv_prog_CC="$CC" # Let the user override the test.
    902934else
    903   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    904   for ac_dir in $PATH; do
     935  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     936  ac_dummy="$PATH"
     937  for ac_dir in $ac_dummy; do
    905938    test -z "$ac_dir" && ac_dir=.
    906939    if test -f $ac_dir/$ac_word; then
     
    923956set dummy cc; ac_word=$2
    924957echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    925 echo "configure:926: checking for $ac_word" >&5
     958echo "configure:959: checking for $ac_word" >&5
    926959if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    927960  echo $ac_n "(cached) $ac_c" 1>&6
     
    930963  ac_cv_prog_CC="$CC" # Let the user override the test.
    931964else
    932   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     965  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    933966  ac_prog_rejected=no
    934   for ac_dir in $PATH; do
     967  ac_dummy="$PATH"
     968  for ac_dir in $ac_dummy; do
    935969    test -z "$ac_dir" && ac_dir=.
    936970    if test -f $ac_dir/$ac_word; then
     
    9671001fi
    9681002
     1003  if test -z "$CC"; then
     1004    case "`uname -s`" in
     1005    *win32* | *WIN32*)
     1006      # Extract the first word of "cl", so it can be a program name with args.
     1007set dummy cl; ac_word=$2
     1008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1009echo "configure:1010: checking for $ac_word" >&5
     1010if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1011  echo $ac_n "(cached) $ac_c" 1>&6
     1012else
     1013  if test -n "$CC"; then
     1014  ac_cv_prog_CC="$CC" # Let the user override the test.
     1015else
     1016  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1017  ac_dummy="$PATH"
     1018  for ac_dir in $ac_dummy; do
     1019    test -z "$ac_dir" && ac_dir=.
     1020    if test -f $ac_dir/$ac_word; then
     1021      ac_cv_prog_CC="cl"
     1022      break
     1023    fi
     1024  done
     1025  IFS="$ac_save_ifs"
     1026fi
     1027fi
     1028CC="$ac_cv_prog_CC"
     1029if test -n "$CC"; then
     1030  echo "$ac_t""$CC" 1>&6
     1031else
     1032  echo "$ac_t""no" 1>&6
     1033fi
     1034 ;;
     1035    esac
     1036  fi
    9691037  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    9701038fi
    9711039
    9721040echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    973 echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1041echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    9741042
    9751043ac_ext=c
     
    9771045ac_cpp='$CPP $CPPFLAGS'
    9781046ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    979 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1047ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    9801048cross_compiling=$ac_cv_prog_cc_cross
    9811049
    982 cat > conftest.$ac_ext <<EOF
    983 #line 984 "configure"
     1050cat > conftest.$ac_ext << EOF
     1051
     1052#line 1053 "configure"
    9841053#include "confdefs.h"
     1054
    9851055main(){return(0);}
    9861056EOF
    987 if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1057if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9881058  ac_cv_prog_cc_works=yes
    9891059  # If we can't run a trivial program, we are probably using a cross compiler.
     
    9991069fi
    10001070rm -fr conftest*
     1071ac_ext=c
     1072# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1073ac_cpp='$CPP $CPPFLAGS'
     1074ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1075ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1076cross_compiling=$ac_cv_prog_cc_cross
    10011077
    10021078echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     
    10051081fi
    10061082echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1007 echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1083echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10081084echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10091085cross_compiling=$ac_cv_prog_cc_cross
    10101086
    10111087echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1012 echo "configure:1013: checking whether we are using GNU C" >&5
     1088echo "configure:1089: checking whether we are using GNU C" >&5
    10131089if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10141090  echo $ac_n "(cached) $ac_c" 1>&6
     
    10191095#endif
    10201096EOF
    1021 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1097if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10221098  ac_cv_prog_gcc=yes
    10231099else
     
    10301106if test $ac_cv_prog_gcc = yes; then
    10311107  GCC=yes
    1032   ac_test_CFLAGS="${CFLAGS+set}"
    1033   ac_save_CFLAGS="$CFLAGS"
    1034   CFLAGS=
    1035   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1036 echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
     1108else
     1109  GCC=
     1110fi
     1111
     1112ac_test_CFLAGS="${CFLAGS+set}"
     1113ac_save_CFLAGS="$CFLAGS"
     1114CFLAGS=
     1115echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     1116echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
    10371117if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    10381118  echo $ac_n "(cached) $ac_c" 1>&6
     
    10491129
    10501130echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    1051   if test "$ac_test_CFLAGS" = set; then
    1052     CFLAGS="$ac_save_CFLAGS"
    1053   elif test $ac_cv_prog_cc_g = yes; then
     1131if test "$ac_test_CFLAGS" = set; then
     1132  CFLAGS="$ac_save_CFLAGS"
     1133elif test $ac_cv_prog_cc_g = yes; then
     1134  if test "$GCC" = yes; then
    10541135    CFLAGS="-g -O2"
    10551136  else
     1137    CFLAGS="-g"
     1138  fi
     1139else
     1140  if test "$GCC" = yes; then
    10561141    CFLAGS="-O2"
    1057   fi
    1058 else
    1059   GCC=
    1060   test "${CFLAGS+set}" = set || CFLAGS="-g"
     1142  else
     1143    CFLAGS=
     1144  fi
    10611145fi
    10621146
     
    11011185# and sets the high bit in the cache file unless we assign to the vars.
    11021186(set) 2>&1 |
    1103   case `(ac_space=' '; set) 2>&1` in
     1187  case `(ac_space=' '; set | grep ac_space) 2>&1` in
    11041188  *ac_space=\ *)
    11051189    # `set' does not quote correctly, so add quotes (double-quote substitution
     
    11801264    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    11811265  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    1182     echo "$CONFIG_STATUS generated by autoconf version 2.12"
     1266    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    11831267    exit 0 ;;
    11841268  -help | --help | --hel | --he | --h)
     
    12001284$ac_vpsub
    12011285$extrasub
     1286s%@SHELL@%$SHELL%g
    12021287s%@CFLAGS@%$CFLAGS%g
    12031288s%@CPPFLAGS@%$CPPFLAGS%g
    12041289s%@CXXFLAGS@%$CXXFLAGS%g
     1290s%@FFLAGS@%$FFLAGS%g
    12051291s%@DEFS@%$DEFS%g
    12061292s%@LDFLAGS@%$LDFLAGS%g
     
    12231309s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
    12241310s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     1311s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    12251312s%@host@%$host%g
    12261313s%@host_alias@%$host_alias%g
     
    12391326s%@build_os@%$build_os%g
    12401327s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     1328s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    12411329s%@INSTALL_DATA@%$INSTALL_DATA%g
    1242 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    12431330s%@PACKAGE@%$PACKAGE%g
    12441331s%@VERSION@%$VERSION%g
  • c/src/exec/score/tools/sh/Makefile.in

    rd115315 r8cdb582  
    1 # Makefile.in generated automatically by automake 1.2 from Makefile.am
    2 
    3 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
    44# This Makefile.in is free software; the Free Software Foundation
    5 # gives unlimited permission to copy, distribute and modify it.
     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.
    612
    713#
     
    1016
    1117
    12 SHELL = /bin/sh
     18
     19SHELL = @SHELL@
    1320
    1421srcdir = @srcdir@
     
    3138oldincludedir = /usr/include
    3239
     40DESTDIR =
     41
    3342pkgdatadir = $(datadir)/@PACKAGE@
    3443pkglibdir = $(libdir)/@PACKAGE@
     
    4150
    4251INSTALL = @INSTALL@
    43 INSTALL_PROGRAM = @INSTALL_PROGRAM@
     52INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
    4453INSTALL_DATA = @INSTALL_DATA@
    4554INSTALL_SCRIPT = @INSTALL_SCRIPT@
    4655transform = @program_transform_name@
    4756
    48 NORMAL_INSTALL = true
    49 PRE_INSTALL = true
    50 POST_INSTALL = true
    51 NORMAL_UNINSTALL = true
    52 PRE_UNINSTALL = true
    53 POST_UNINSTALL = true
     57NORMAL_INSTALL = :
     58PRE_INSTALL = :
     59POST_INSTALL = :
     60NORMAL_UNINSTALL = :
     61PRE_UNINSTALL = :
     62POST_UNINSTALL = :
    5463build_alias = @build_alias@
    5564build_triplet = @build@
     
    6271PACKAGE = @PACKAGE@
    6372PROJECT_ROOT = @PROJECT_ROOT@
     73RTEMS_ROOT = @RTEMS_ROOT@
    6474RTEMS_TOPdir = @RTEMS_TOPdir@
    6575VERSION = @VERSION@
     
    7282ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
    7383
    74 noinst_PROGRAMS=shgen
    75 
    76 shgen_SOURCES = \
    77 sci.h \
    78 sci.c \
    79 shgen.c
     84noinst_PROGRAMS = shgen
     85
     86shgen_SOURCES =  sci.h sci.c shgen.c
     87
    8088ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    8189mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../../mkinstalldirs
     
    9098shgen_OBJECTS =  sci.o shgen.o
    9199shgen_LDADD = $(LDADD)
     100shgen_DEPENDENCIES =
    92101shgen_LDFLAGS =
    93102CFLAGS = @CFLAGS@
    94 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    95 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
     103COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     104CCLD = $(CC)
     105LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
    96106DIST_COMMON =  AUTHORS COPYING Makefile.am Makefile.in TODO aclocal.m4 \
    97107configure configure.in
     
    101111
    102112TAR = tar
    103 GZIP = --best
     113GZIP_ENV = --best
    104114DEP_FILES =  .deps/sci.P .deps/shgen.P
    105115SOURCES = $(shgen_SOURCES)
    106116OBJECTS = $(shgen_OBJECTS)
    107117
    108 default: all
    109 
     118all: all-redirect
    110119.SUFFIXES:
    111 .SUFFIXES: .c .o
    112 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     120.SUFFIXES: .S .c .o .s
     121$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../automake/local.am
    113122        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
    114123
    115 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
     124Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    116125        cd $(top_builddir) \
    117126          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     
    120129        cd $(srcdir) && $(ACLOCAL)
    121130
    122 config.status: $(srcdir)/configure
     131config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    123132        $(SHELL) ./config.status --recheck
    124133$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     
    128137
    129138clean-noinstPROGRAMS:
    130         test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
     139        -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
    131140
    132141distclean-noinstPROGRAMS:
     
    134143maintainer-clean-noinstPROGRAMS:
    135144
    136 .c.o:
     145.s.o:
    137146        $(COMPILE) -c $<
    138147
     148.S.o:
     149        $(COMPILE) -c $<
     150
    139151mostlyclean-compile:
    140         rm -f *.o core
     152        -rm -f *.o core *.core
    141153
    142154clean-compile:
    143155
    144156distclean-compile:
    145         rm -f *.tab.c
     157        -rm -f *.tab.c
    146158
    147159maintainer-clean-compile:
     
    153165tags: TAGS
    154166
    155 ID: $(HEADERS) $(SOURCES)
    156         here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)
    157 
    158 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES)
     167ID: $(HEADERS) $(SOURCES) $(LISP)
     168        list='$(SOURCES) $(HEADERS)'; \
     169        unique=`for i in $$list; do echo $$i; done | \
     170          awk '    { files[$$0] = 1; } \
     171               END { for (i in files) print i; }'`; \
     172        here=`pwd` && cd $(srcdir) \
     173          && mkid -f$$here/ID $$unique $(LISP)
     174
     175TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
    159176        tags=; \
    160177        here=`pwd`; \
    161         test -z "$(ETAGS_ARGS)$(SOURCES)$(HEADERS)$$tags" \
    162           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $(SOURCES) $(HEADERS) -o $$here/TAGS)
     178        list='$(SOURCES) $(HEADERS)'; \
     179        unique=`for i in $$list; do echo $$i; done | \
     180          awk '    { files[$$0] = 1; } \
     181               END { for (i in files) print i; }'`; \
     182        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     183          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
    163184
    164185mostlyclean-tags:
     
    167188
    168189distclean-tags:
    169         rm -f TAGS ID
     190        -rm -f TAGS ID
    170191
    171192maintainer-clean-tags:
     
    178199# tarfile.
    179200distcheck: dist
    180         rm -rf $(distdir)
    181         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
     201        -rm -rf $(distdir)
     202        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
    182203        mkdir $(distdir)/=build
    183204        mkdir $(distdir)/=inst
     
    185206        cd $(distdir)/=build \
    186207          && ../configure --srcdir=.. --prefix=$$dc_install_base \
    187           && $(MAKE) \
    188           && $(MAKE) dvi \
    189           && $(MAKE) check \
    190           && $(MAKE) install \
    191           && $(MAKE) installcheck \
    192           && $(MAKE) dist
    193         rm -rf $(distdir)
    194         @echo "========================"; \
    195         echo "$(distdir).tar.gz is ready for distribution"; \
    196         echo "========================"
     208          && $(MAKE) $(AM_MAKEFLAGS) \
     209          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     210          && $(MAKE) $(AM_MAKEFLAGS) check \
     211          && $(MAKE) $(AM_MAKEFLAGS) install \
     212          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     213          && $(MAKE) $(AM_MAKEFLAGS) dist
     214        -rm -rf $(distdir)
     215        @banner="$(distdir).tar.gz is ready for distribution"; \
     216        dashes=`echo "$$banner" | sed s/./=/g`; \
     217        echo "$$dashes"; \
     218        echo "$$banner"; \
     219        echo "$$dashes"
    197220dist: distdir
    198221        -chmod -R a+r $(distdir)
    199         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
    200         rm -rf $(distdir)
     222        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     223        -rm -rf $(distdir)
    201224dist-all: distdir
    202225        -chmod -R a+r $(distdir)
    203         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
    204         rm -rf $(distdir)
     226        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     227        -rm -rf $(distdir)
    205228distdir: $(DISTFILES)
    206         rm -rf $(distdir)
     229        -rm -rf $(distdir)
    207230        mkdir $(distdir)
    208231        -chmod 777 $(distdir)
    209232        here=`cd $(top_builddir) && pwd`; \
    210         top_distdir=`cd $(top_distdir) && pwd`; \
     233        top_distdir=`cd $(distdir) && pwd`; \
     234        distdir=`cd $(distdir) && pwd`; \
    211235        cd $(top_srcdir) \
    212236          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
    213237        @for file in $(DISTFILES); do \
    214238          d=$(srcdir); \
    215           test -f $(distdir)/$$file \
    216           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
    217           || cp -p $$d/$$file $(distdir)/$$file; \
     239          if test -d $$d/$$file; then \
     240            cp -pr $$/$$file $(distdir)/$$file; \
     241          else \
     242            test -f $(distdir)/$$file \
     243            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     244            || cp -p $$d/$$file $(distdir)/$$file || :; \
     245          fi; \
    218246        done
    219247
    220 MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    221 
    222248DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
    223 -include .deps/.P
    224 .deps/.P: $(BUILT_SOURCES)
    225         echo > $@
    226249
    227250-include $(DEP_FILES)
     
    232255
    233256distclean-depend:
     257        -rm -rf .deps
    234258
    235259maintainer-clean-depend:
    236         rm -rf .deps
    237 
    238 .deps/%.P: %.c
    239         @echo "Computing dependencies for $<..."
    240         @o='o'; \
    241         test -n "$o" && o='$$o'; \
    242         $(MKDEP) $< >$@.tmp \
    243           && sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," < $@.tmp > $@ \
    244           && rm -f $@.tmp
    245 info:
    246 dvi:
    247 check: all
    248         $(MAKE)
    249 installcheck:
    250 install-exec:
    251         @$(NORMAL_INSTALL)
    252 
    253 install-data:
    254         @$(NORMAL_INSTALL)
    255 
    256 install: install-exec install-data all
    257         @:
    258 
    259 uninstall:
    260 
    261 all: Makefile $(PROGRAMS)
    262 
     260
     261%.o: %.c
     262        @echo '$(COMPILE) -c $<'; \
     263        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     264        @-cp .deps/$(*F).pp .deps/$(*F).P; \
     265        tr ' ' '\012' < .deps/$(*F).pp \
     266          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     267            >> .deps/$(*F).P; \
     268        rm .deps/$(*F).pp
     269
     270%.lo: %.c
     271        @echo '$(LTCOMPILE) -c $<'; \
     272        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     273        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
     274          < .deps/$(*F).pp > .deps/$(*F).P; \
     275        tr ' ' '\012' < .deps/$(*F).pp \
     276          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     277            >> .deps/$(*F).P; \
     278        rm -f .deps/$(*F).pp
     279info-am:
     280info: info-am
     281dvi-am:
     282dvi: dvi-am
     283check-am: all-am
     284check: check-am
     285installcheck-am:
     286installcheck: installcheck-am
     287install-exec-am:
     288install-exec: install-exec-am
     289
     290install-data-am:
     291install-data: install-data-am
     292
     293install-am: all-am
     294        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     295install: install-am
     296uninstall-am:
     297uninstall: uninstall-am
     298all-am: Makefile $(PROGRAMS)
     299all-redirect: all-am
    263300install-strip:
    264         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
     301        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
    265302installdirs:
    266303
    267304
    268305mostlyclean-generic:
    269         test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
    270306
    271307clean-generic:
    272         test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    273308
    274309distclean-generic:
    275         rm -f Makefile $(DISTCLEANFILES)
    276         rm -f config.cache config.log stamp-h stamp-h[0-9]*
    277         test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
     310        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     311        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
    278312
    279313maintainer-clean-generic:
    280         test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
    281         test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
    282 mostlyclean:  mostlyclean-noinstPROGRAMS mostlyclean-compile \
     314mostlyclean-am:  mostlyclean-noinstPROGRAMS mostlyclean-compile \
    283315                mostlyclean-tags mostlyclean-depend mostlyclean-generic
    284316
    285 clean:  clean-noinstPROGRAMS clean-compile clean-tags clean-depend \
    286                 clean-generic mostlyclean
    287 
    288 distclean:  distclean-noinstPROGRAMS distclean-compile distclean-tags \
    289                 distclean-depend distclean-generic clean
    290         rm -f config.status
    291 
    292 maintainer-clean:  maintainer-clean-noinstPROGRAMS \
     317mostlyclean: mostlyclean-am
     318
     319clean-am:  clean-noinstPROGRAMS clean-compile clean-tags clean-depend \
     320                clean-generic mostlyclean-am
     321
     322clean: clean-am
     323
     324distclean-am:  distclean-noinstPROGRAMS distclean-compile distclean-tags \
     325                distclean-depend distclean-generic clean-am
     326
     327distclean: distclean-am
     328        -rm -f config.status
     329
     330maintainer-clean-am:  maintainer-clean-noinstPROGRAMS \
    293331                maintainer-clean-compile maintainer-clean-tags \
    294332                maintainer-clean-depend maintainer-clean-generic \
    295                 distclean
     333                distclean-am
    296334        @echo "This command is intended for maintainers to use;"
    297335        @echo "it deletes files that may require special tools to rebuild."
    298         rm -f config.status
    299 
    300 .PHONY: default mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
     336
     337maintainer-clean: maintainer-clean-am
     338        -rm -f config.status
     339
     340.PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
    301341clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
    302342mostlyclean-compile distclean-compile clean-compile \
    303343maintainer-clean-compile tags mostlyclean-tags distclean-tags \
    304344clean-tags maintainer-clean-tags distdir mostlyclean-depend \
    305 distclean-depend clean-depend maintainer-clean-depend info dvi \
    306 installcheck install-exec install-data install uninstall all \
    307 installdirs mostlyclean-generic distclean-generic clean-generic \
     345distclean-depend clean-depend maintainer-clean-depend info-am info \
     346dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
     347install-exec install-data-am install-data install-am install \
     348uninstall-am uninstall all-redirect all-am all installdirs \
     349mostlyclean-generic distclean-generic clean-generic \
    308350maintainer-clean-generic clean mostlyclean distclean maintainer-clean
    309351
    310352
    311 include $(top_srcdir)/../../../../../../automake/local.am
     353debug-am:
     354
     355debug: debug-am
     356
     357debug_install-am:
     358
     359debug_install: debug_install-am
     360
     361.PHONY: debug debug_install debug-am
     362
     363profile-am:
     364
     365profile: profile-am
     366
     367profile_install-am:
     368
     369profile_install: profile_install-am
     370
     371.PHONY: profile profile_install profile-am
     372
     373preinstall-am:
     374
     375preinstall: preinstall-am
     376
     377.PHONY: preinstall preinstall-am
    312378
    313379# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/src/exec/score/tools/sh/aclocal.m4

    rd115315 r8cdb582  
    1 dnl aclocal.m4 generated automatically by aclocal 1.2
     1dnl aclocal.m4 generated automatically by aclocal 1.4
     2
     3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4dnl This file is free software; the Free Software Foundation
     5dnl gives unlimited permission to copy and/or distribute it,
     6dnl with or without modifications, as long as this notice is preserved.
     7
     8dnl This program is distributed in the hope that it will be useful,
     9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11dnl PARTICULAR PURPOSE.
    212
    313dnl $Id$
     
    1020AC_DEFUN(RTEMS_TOP,
    1121[dnl
     22AC_ARG_WITH(target-subdir,
     23[  --with-target-subdir=DIR],
     24TARGET_SUBDIR="$withval",
     25TARGET_SUBDIR=".")
     26
    1227RTEMS_TOPdir="$1";
    1328AC_SUBST(RTEMS_TOPdir)
    1429
    1530PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     31test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    1632AC_SUBST(PROJECT_ROOT)
    1733
     
    3248AC_MSG_RESULT($RTEMS_VERSION)
    3349
    34 dnl FIXME: This once gets activated in future or will be removed
    35 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    36 dnl AC_SUBST(RTEMS_ROOT)
     50RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     51AC_SUBST(RTEMS_ROOT)
    3752])dnl
    3853
     
    90105
    91106AC_DEFUN(AM_INIT_AUTOMAKE,
    92 [AC_REQUIRE([AM_PROG_INSTALL])
     107[AC_REQUIRE([AC_PROG_INSTALL])
    93108PACKAGE=[$1]
    94109AC_SUBST(PACKAGE)
     
    100115fi
    101116ifelse([$3],,
    102 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    103 AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
    104 AM_SANITY_CHECK
    105 AC_ARG_PROGRAM
     117AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     118AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
     119AC_REQUIRE([AM_SANITY_CHECK])
     120AC_REQUIRE([AC_ARG_PROGRAM])
    106121dnl FIXME This is truly gross.
    107122missing_dir=`cd $ac_aux_dir && pwd`
     
    111126AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
    112127AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
    113 AC_PROG_MAKE_SET])
    114 
    115 
    116 # serial 1
    117 
    118 AC_DEFUN(AM_PROG_INSTALL,
    119 [AC_REQUIRE([AC_PROG_INSTALL])
    120 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    121 AC_SUBST(INSTALL_SCRIPT)dnl
    122 ])
     128AC_REQUIRE([AC_PROG_MAKE_SET])])
    123129
    124130#
     
    138144if (
    139145   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
    140    if test "$@" = "X"; then
     146   if test "[$]*" = "X"; then
    141147      # -L didn't work.
    142148      set X `ls -t $srcdir/configure conftestfile`
    143149   fi
     150   if test "[$]*" != "X $srcdir/configure conftestfile" \
     151      && test "[$]*" != "X conftestfile $srcdir/configure"; then
     152
     153      # If neither matched, then we have a broken ls.  This can happen
     154      # if, for instance, CONFIG_SHELL is bash and it inherits a
     155      # broken ls alias from the environment.  This has actually
     156      # happened.  Such a system could not be considered "sane".
     157      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     158alias in your environment])
     159   fi
     160
    144161   test "[$]2" = conftestfile
    145162   )
  • c/src/exec/score/tools/sh/configure

    rd115315 r8cdb582  
    22
    33# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.12
     4# Generated automatically using autoconf version 2.13
    55# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    66#
     
    1212ac_default_prefix=/usr/local
    1313# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-target-subdir=DIR"
    1416
    1517# Initialize some variables set by options.
     
    5052subdirs=
    5153MFLAGS= MAKEFLAGS=
     54SHELL=${CONFIG_SHELL-/bin/sh}
    5255# Maximum number of lines to put in a shell here document.
    5356ac_max_here_lines=12
     
    333336
    334337  -version | --version | --versio | --versi | --vers)
    335     echo "configure generated by autoconf version 2.12"
     338    echo "configure generated by autoconf version 2.13"
    336339    exit 0 ;;
    337340
     
    503506ac_cpp='$CPP $CPPFLAGS'
    504507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    506509cross_compiling=$ac_cv_prog_cc_cross
    507510
     511ac_exeext=
     512ac_objext=o
    508513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    509514  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    539544
    540545
     546# Check whether --with-target-subdir or --without-target-subdir was given.
     547if test "${with_target_subdir+set}" = set; then
     548  withval="$with_target_subdir"
     549  TARGET_SUBDIR="$withval"
     550else
     551  TARGET_SUBDIR="."
     552fi
     553
     554
    541555RTEMS_TOPdir="../../../../../..";
    542556
    543557
    544558PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     559test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    545560
    546561
    547562echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    548 echo "configure:549: checking for RTEMS Version" >&5
     563echo "configure:564: checking for RTEMS Version" >&5
    549564if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    550565RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    557572fi
    558573echo "$ac_t""$RTEMS_VERSION" 1>&6
     574
     575RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    559576
    560577
     
    582599
    583600# Make sure we can run config.sub.
    584 if $ac_config_sub sun4 >/dev/null 2>&1; then :
     601if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
    585602else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
    586603fi
    587604
    588605echo $ac_n "checking host system type""... $ac_c" 1>&6
    589 echo "configure:590: checking host system type" >&5
     606echo "configure:607: checking host system type" >&5
    590607
    591608host_alias=$host
     
    594611  case $nonopt in
    595612  NONE)
    596     if host_alias=`$ac_config_guess`; then :
     613    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    597614    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    598615    fi ;;
     
    601618esac
    602619
    603 host=`$ac_config_sub $host_alias`
     620host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
    604621host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    605622host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    608625
    609626echo $ac_n "checking target system type""... $ac_c" 1>&6
    610 echo "configure:611: checking target system type" >&5
     627echo "configure:628: checking target system type" >&5
    611628
    612629target_alias=$target
     
    619636esac
    620637
    621 target=`$ac_config_sub $target_alias`
     638target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
    622639target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    623640target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    626643
    627644echo $ac_n "checking build system type""... $ac_c" 1>&6
    628 echo "configure:629: checking build system type" >&5
     645echo "configure:646: checking build system type" >&5
    629646
    630647build_alias=$build
     
    637654esac
    638655
    639 build=`$ac_config_sub $build_alias`
     656build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
    640657build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    641658build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    651668
    652669echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    653 echo "configure:654: checking rtems target cpu" >&5
     670echo "configure:671: checking rtems target cpu" >&5
    654671case "${target}" in
    655672  # hpux unix port should go here
     
    686703# IRIX /sbin/install
    687704# AIX /bin/install
     705# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    688706# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    689707# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    690708# ./install, which can be erroneously created by make from ./install.sh.
    691709echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    692 echo "configure:693: checking for a BSD compatible install" >&5
     710echo "configure:711: checking for a BSD compatible install" >&5
    693711if test -z "$INSTALL"; then
    694712if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    695713  echo $ac_n "(cached) $ac_c" 1>&6
    696714else
    697     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
     715    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    698716  for ac_dir in $PATH; do
    699717    # Account for people who put trailing slashes in PATH elements.
     
    702720    *)
    703721      # OSF1 and SCO ODT 3.0 have their own names for install.
    704       for ac_prog in ginstall installbsd scoinst install; do
     722      # Don't use installbsd from OSF since it installs stuff as root
     723      # by default.
     724      for ac_prog in ginstall scoinst install; do
    705725        if test -f $ac_dir/$ac_prog; then
    706726          if test $ac_prog = install &&
    707727            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    708728            # AIX install.  It has an incompatible calling convention.
    709             # OSF/1 installbsd also uses dspmsg, but is usable.
    710729            :
    711730          else
     
    737756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    738757
     758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     759
    739760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    740761
    741 
    742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    743 
    744 
    745 PACKAGE=rtems-exec-score-tools-sh
    746 
    747 VERSION=$RTEMS_VERSION
    748 
    749 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
    750   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
    751 fi
    752 
    753762echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    754 echo "configure:755: checking whether build environment is sane" >&5
     763echo "configure:764: checking whether build environment is sane" >&5
    755764# Just in case
    756765sleep 1
     
    763772if (
    764773   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
    765    if test "" = "X"; then
     774   if test "$*" = "X"; then
    766775      # -L didn't work.
    767776      set X `ls -t $srcdir/configure conftestfile`
    768777   fi
     778   if test "$*" != "X $srcdir/configure conftestfile" \
     779      && test "$*" != "X conftestfile $srcdir/configure"; then
     780
     781      # If neither matched, then we have a broken ls.  This can happen
     782      # if, for instance, CONFIG_SHELL is bash and it inherits a
     783      # broken ls alias from the environment.  This has actually
     784      # happened.  Such a system could not be considered "sane".
     785      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
     786alias in your environment" 1>&2; exit 1; }
     787   fi
     788
    769789   test "$2" = conftestfile
    770790   )
     
    797817test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    798818
    799 missing_dir=`cd $ac_aux_dir && pwd`
    800 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    801 echo "configure:802: checking for working aclocal" >&5
    802 # Run test in a subshell; some versions of sh will print an error if
    803 # an executable is not found, even if stderr is redirected.
    804 # Redirect stdin to placate older versions of autoconf.  Sigh.
    805 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
    806    ACLOCAL=aclocal
    807    echo "$ac_t""found" 1>&6
    808 else
    809    ACLOCAL="$missing_dir/missing aclocal"
    810    echo "$ac_t""missing" 1>&6
    811 fi
    812 
    813 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    814 echo "configure:815: checking for working autoconf" >&5
    815 # Run test in a subshell; some versions of sh will print an error if
    816 # an executable is not found, even if stderr is redirected.
    817 # Redirect stdin to placate older versions of autoconf.  Sigh.
    818 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
    819    AUTOCONF=autoconf
    820    echo "$ac_t""found" 1>&6
    821 else
    822    AUTOCONF="$missing_dir/missing autoconf"
    823    echo "$ac_t""missing" 1>&6
    824 fi
    825 
    826 echo $ac_n "checking for working automake""... $ac_c" 1>&6
    827 echo "configure:828: checking for working automake" >&5
    828 # Run test in a subshell; some versions of sh will print an error if
    829 # an executable is not found, even if stderr is redirected.
    830 # Redirect stdin to placate older versions of autoconf.  Sigh.
    831 if (automake --version) < /dev/null > /dev/null 2>&1; then
    832    AUTOMAKE=automake
    833    echo "$ac_t""found" 1>&6
    834 else
    835    AUTOMAKE="$missing_dir/missing automake"
    836    echo "$ac_t""missing" 1>&6
    837 fi
    838 
    839 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    840 echo "configure:841: checking for working autoheader" >&5
    841 # Run test in a subshell; some versions of sh will print an error if
    842 # an executable is not found, even if stderr is redirected.
    843 # Redirect stdin to placate older versions of autoconf.  Sigh.
    844 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
    845    AUTOHEADER=autoheader
    846    echo "$ac_t""found" 1>&6
    847 else
    848    AUTOHEADER="$missing_dir/missing autoheader"
    849    echo "$ac_t""missing" 1>&6
    850 fi
    851 
    852 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    853 echo "configure:854: checking for working makeinfo" >&5
    854 # Run test in a subshell; some versions of sh will print an error if
    855 # an executable is not found, even if stderr is redirected.
    856 # Redirect stdin to placate older versions of autoconf.  Sigh.
    857 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
    858    MAKEINFO=makeinfo
    859    echo "$ac_t""found" 1>&6
    860 else
    861    MAKEINFO="$missing_dir/missing makeinfo"
    862    echo "$ac_t""missing" 1>&6
    863 fi
    864 
    865819echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    866 echo "configure:867: checking whether ${MAKE-make} sets \${MAKE}" >&5
     820echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
    867821set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    868822if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    891845
    892846
     847PACKAGE=rtems-exec-score-tools-sh
     848
     849VERSION=$RTEMS_VERSION
     850
     851if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     852  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
     853fi
     854
     855
     856
     857missing_dir=`cd $ac_aux_dir && pwd`
     858echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
     859echo "configure:860: checking for working aclocal" >&5
     860# Run test in a subshell; some versions of sh will print an error if
     861# an executable is not found, even if stderr is redirected.
     862# Redirect stdin to placate older versions of autoconf.  Sigh.
     863if (aclocal --version) < /dev/null > /dev/null 2>&1; then
     864   ACLOCAL=aclocal
     865   echo "$ac_t""found" 1>&6
     866else
     867   ACLOCAL="$missing_dir/missing aclocal"
     868   echo "$ac_t""missing" 1>&6
     869fi
     870
     871echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
     872echo "configure:873: checking for working autoconf" >&5
     873# Run test in a subshell; some versions of sh will print an error if
     874# an executable is not found, even if stderr is redirected.
     875# Redirect stdin to placate older versions of autoconf.  Sigh.
     876if (autoconf --version) < /dev/null > /dev/null 2>&1; then
     877   AUTOCONF=autoconf
     878   echo "$ac_t""found" 1>&6
     879else
     880   AUTOCONF="$missing_dir/missing autoconf"
     881   echo "$ac_t""missing" 1>&6
     882fi
     883
     884echo $ac_n "checking for working automake""... $ac_c" 1>&6
     885echo "configure:886: checking for working automake" >&5
     886# Run test in a subshell; some versions of sh will print an error if
     887# an executable is not found, even if stderr is redirected.
     888# Redirect stdin to placate older versions of autoconf.  Sigh.
     889if (automake --version) < /dev/null > /dev/null 2>&1; then
     890   AUTOMAKE=automake
     891   echo "$ac_t""found" 1>&6
     892else
     893   AUTOMAKE="$missing_dir/missing automake"
     894   echo "$ac_t""missing" 1>&6
     895fi
     896
     897echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
     898echo "configure:899: checking for working autoheader" >&5
     899# Run test in a subshell; some versions of sh will print an error if
     900# an executable is not found, even if stderr is redirected.
     901# Redirect stdin to placate older versions of autoconf.  Sigh.
     902if (autoheader --version) < /dev/null > /dev/null 2>&1; then
     903   AUTOHEADER=autoheader
     904   echo "$ac_t""found" 1>&6
     905else
     906   AUTOHEADER="$missing_dir/missing autoheader"
     907   echo "$ac_t""missing" 1>&6
     908fi
     909
     910echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
     911echo "configure:912: checking for working makeinfo" >&5
     912# Run test in a subshell; some versions of sh will print an error if
     913# an executable is not found, even if stderr is redirected.
     914# Redirect stdin to placate older versions of autoconf.  Sigh.
     915if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
     916   MAKEINFO=makeinfo
     917   echo "$ac_t""found" 1>&6
     918else
     919   MAKEINFO="$missing_dir/missing makeinfo"
     920   echo "$ac_t""missing" 1>&6
     921fi
     922
     923
     924
    893925# Extract the first word of "gcc", so it can be a program name with args.
    894926set dummy gcc; ac_word=$2
    895927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    896 echo "configure:897: checking for $ac_word" >&5
     928echo "configure:929: checking for $ac_word" >&5
    897929if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    898930  echo $ac_n "(cached) $ac_c" 1>&6
     
    901933  ac_cv_prog_CC="$CC" # Let the user override the test.
    902934else
    903   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    904   for ac_dir in $PATH; do
     935  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     936  ac_dummy="$PATH"
     937  for ac_dir in $ac_dummy; do
    905938    test -z "$ac_dir" && ac_dir=.
    906939    if test -f $ac_dir/$ac_word; then
     
    923956set dummy cc; ac_word=$2
    924957echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    925 echo "configure:926: checking for $ac_word" >&5
     958echo "configure:959: checking for $ac_word" >&5
    926959if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    927960  echo $ac_n "(cached) $ac_c" 1>&6
     
    930963  ac_cv_prog_CC="$CC" # Let the user override the test.
    931964else
    932   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     965  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    933966  ac_prog_rejected=no
    934   for ac_dir in $PATH; do
     967  ac_dummy="$PATH"
     968  for ac_dir in $ac_dummy; do
    935969    test -z "$ac_dir" && ac_dir=.
    936970    if test -f $ac_dir/$ac_word; then
     
    9671001fi
    9681002
     1003  if test -z "$CC"; then
     1004    case "`uname -s`" in
     1005    *win32* | *WIN32*)
     1006      # Extract the first word of "cl", so it can be a program name with args.
     1007set dummy cl; ac_word=$2
     1008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1009echo "configure:1010: checking for $ac_word" >&5
     1010if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1011  echo $ac_n "(cached) $ac_c" 1>&6
     1012else
     1013  if test -n "$CC"; then
     1014  ac_cv_prog_CC="$CC" # Let the user override the test.
     1015else
     1016  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1017  ac_dummy="$PATH"
     1018  for ac_dir in $ac_dummy; do
     1019    test -z "$ac_dir" && ac_dir=.
     1020    if test -f $ac_dir/$ac_word; then
     1021      ac_cv_prog_CC="cl"
     1022      break
     1023    fi
     1024  done
     1025  IFS="$ac_save_ifs"
     1026fi
     1027fi
     1028CC="$ac_cv_prog_CC"
     1029if test -n "$CC"; then
     1030  echo "$ac_t""$CC" 1>&6
     1031else
     1032  echo "$ac_t""no" 1>&6
     1033fi
     1034 ;;
     1035    esac
     1036  fi
    9691037  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    9701038fi
    9711039
    9721040echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    973 echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1041echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    9741042
    9751043ac_ext=c
     
    9771045ac_cpp='$CPP $CPPFLAGS'
    9781046ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    979 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1047ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    9801048cross_compiling=$ac_cv_prog_cc_cross
    9811049
    982 cat > conftest.$ac_ext <<EOF
    983 #line 984 "configure"
     1050cat > conftest.$ac_ext << EOF
     1051
     1052#line 1053 "configure"
    9841053#include "confdefs.h"
     1054
    9851055main(){return(0);}
    9861056EOF
    987 if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1057if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9881058  ac_cv_prog_cc_works=yes
    9891059  # If we can't run a trivial program, we are probably using a cross compiler.
     
    9991069fi
    10001070rm -fr conftest*
     1071ac_ext=c
     1072# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1073ac_cpp='$CPP $CPPFLAGS'
     1074ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1075ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1076cross_compiling=$ac_cv_prog_cc_cross
    10011077
    10021078echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     
    10051081fi
    10061082echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1007 echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1083echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10081084echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10091085cross_compiling=$ac_cv_prog_cc_cross
    10101086
    10111087echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1012 echo "configure:1013: checking whether we are using GNU C" >&5
     1088echo "configure:1089: checking whether we are using GNU C" >&5
    10131089if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10141090  echo $ac_n "(cached) $ac_c" 1>&6
     
    10191095#endif
    10201096EOF
    1021 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1097if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10221098  ac_cv_prog_gcc=yes
    10231099else
     
    10301106if test $ac_cv_prog_gcc = yes; then
    10311107  GCC=yes
    1032   ac_test_CFLAGS="${CFLAGS+set}"
    1033   ac_save_CFLAGS="$CFLAGS"
    1034   CFLAGS=
    1035   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1036 echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
     1108else
     1109  GCC=
     1110fi
     1111
     1112ac_test_CFLAGS="${CFLAGS+set}"
     1113ac_save_CFLAGS="$CFLAGS"
     1114CFLAGS=
     1115echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     1116echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
    10371117if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    10381118  echo $ac_n "(cached) $ac_c" 1>&6
     
    10491129
    10501130echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    1051   if test "$ac_test_CFLAGS" = set; then
    1052     CFLAGS="$ac_save_CFLAGS"
    1053   elif test $ac_cv_prog_cc_g = yes; then
     1131if test "$ac_test_CFLAGS" = set; then
     1132  CFLAGS="$ac_save_CFLAGS"
     1133elif test $ac_cv_prog_cc_g = yes; then
     1134  if test "$GCC" = yes; then
    10541135    CFLAGS="-g -O2"
    10551136  else
     1137    CFLAGS="-g"
     1138  fi
     1139else
     1140  if test "$GCC" = yes; then
    10561141    CFLAGS="-O2"
    1057   fi
    1058 else
    1059   GCC=
    1060   test "${CFLAGS+set}" = set || CFLAGS="-g"
     1142  else
     1143    CFLAGS=
     1144  fi
    10611145fi
    10621146
    10631147echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
    1064 echo "configure:1065: checking for fabs in -lm" >&5
     1148echo "configure:1149: checking for fabs in -lm" >&5
    10651149ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
    10661150if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    10701154LIBS="-lm  $LIBS"
    10711155cat > conftest.$ac_ext <<EOF
    1072 #line 1073 "configure"
     1156#line 1157 "configure"
    10731157#include "confdefs.h"
    10741158/* Override any gcc2 internal prototype to avoid an error.  */
     
    10811165; return 0; }
    10821166EOF
    1083 if { (eval echo configure:1084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1167if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10841168  rm -rf conftest*
    10851169  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11481232# and sets the high bit in the cache file unless we assign to the vars.
    11491233(set) 2>&1 |
    1150   case `(ac_space=' '; set) 2>&1` in
     1234  case `(ac_space=' '; set | grep ac_space) 2>&1` in
    11511235  *ac_space=\ *)
    11521236    # `set' does not quote correctly, so add quotes (double-quote substitution
     
    12271311    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    12281312  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    1229     echo "$CONFIG_STATUS generated by autoconf version 2.12"
     1313    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    12301314    exit 0 ;;
    12311315  -help | --help | --hel | --he | --h)
     
    12471331$ac_vpsub
    12481332$extrasub
     1333s%@SHELL@%$SHELL%g
    12491334s%@CFLAGS@%$CFLAGS%g
    12501335s%@CPPFLAGS@%$CPPFLAGS%g
    12511336s%@CXXFLAGS@%$CXXFLAGS%g
     1337s%@FFLAGS@%$FFLAGS%g
    12521338s%@DEFS@%$DEFS%g
    12531339s%@LDFLAGS@%$LDFLAGS%g
     
    12701356s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
    12711357s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     1358s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    12721359s%@host@%$host%g
    12731360s%@host_alias@%$host_alias%g
     
    12861373s%@build_os@%$build_os%g
    12871374s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     1375s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    12881376s%@INSTALL_DATA@%$INSTALL_DATA%g
    1289 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    12901377s%@PACKAGE@%$PACKAGE%g
    12911378s%@VERSION@%$VERSION%g
  • c/src/exec/score/tools/unix/Makefile.in

    rd115315 r8cdb582  
    1515#
    1616
    17 
    18 # $Id$
    19 
    20 # NOTE: This is a temporary work-around to keep
    21 # "make debug" and "make debug_install" working.
    22 # Once automake is fully integrated these make targets
    23 # and this file will probably be removed
    2417
    2518
     
    7871PACKAGE = @PACKAGE@
    7972PROJECT_ROOT = @PROJECT_ROOT@
     73RTEMS_ROOT = @RTEMS_ROOT@
    8074RTEMS_TOPdir = @RTEMS_TOPdir@
    8175VERSION = @VERSION@
     
    377371debug_install: debug_install-am
    378372
     373.PHONY: debug debug_install debug-am
     374
    379375profile-am:
    380376
     
    385381profile_install: profile_install-am
    386382
    387 .PHONY: debug debug_install profile profile_install
     383.PHONY: profile profile_install profile-am
     384
     385preinstall-am:
     386
     387preinstall: preinstall-am
     388
     389.PHONY: preinstall preinstall-am
    388390
    389391# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/src/exec/score/tools/unix/aclocal.m4

    rd115315 r8cdb582  
    2020AC_DEFUN(RTEMS_TOP,
    2121[dnl
     22AC_ARG_WITH(target-subdir,
     23[  --with-target-subdir=DIR],
     24TARGET_SUBDIR="$withval",
     25TARGET_SUBDIR=".")
     26
    2227RTEMS_TOPdir="$1";
    2328AC_SUBST(RTEMS_TOPdir)
    2429
    2530PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     31test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    2632AC_SUBST(PROJECT_ROOT)
    2733
     
    4248AC_MSG_RESULT($RTEMS_VERSION)
    4349
    44 dnl FIXME: This once gets activated in future or will be removed
    45 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    46 dnl AC_SUBST(RTEMS_ROOT)
     50RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     51AC_SUBST(RTEMS_ROOT)
    4752])dnl
    4853
  • c/src/exec/score/tools/unix/configure

    rd115315 r8cdb582  
    1212ac_default_prefix=/usr/local
    1313# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-target-subdir=DIR"
    1416
    1517# Initialize some variables set by options.
     
    542544
    543545
     546# Check whether --with-target-subdir or --without-target-subdir was given.
     547if test "${with_target_subdir+set}" = set; then
     548  withval="$with_target_subdir"
     549  TARGET_SUBDIR="$withval"
     550else
     551  TARGET_SUBDIR="."
     552fi
     553
     554
    544555RTEMS_TOPdir="../../../../../..";
    545556
    546557
    547558PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     559test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    548560
    549561
    550562echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    551 echo "configure:552: checking for RTEMS Version" >&5
     563echo "configure:564: checking for RTEMS Version" >&5
    552564if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    553565RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    560572fi
    561573echo "$ac_t""$RTEMS_VERSION" 1>&6
     574
     575RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    562576
    563577
     
    590604
    591605echo $ac_n "checking host system type""... $ac_c" 1>&6
    592 echo "configure:593: checking host system type" >&5
     606echo "configure:607: checking host system type" >&5
    593607
    594608host_alias=$host
     
    611625
    612626echo $ac_n "checking target system type""... $ac_c" 1>&6
    613 echo "configure:614: checking target system type" >&5
     627echo "configure:628: checking target system type" >&5
    614628
    615629target_alias=$target
     
    629643
    630644echo $ac_n "checking build system type""... $ac_c" 1>&6
    631 echo "configure:632: checking build system type" >&5
     645echo "configure:646: checking build system type" >&5
    632646
    633647build_alias=$build
     
    654668
    655669echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    656 echo "configure:657: checking rtems target cpu" >&5
     670echo "configure:671: checking rtems target cpu" >&5
    657671case "${target}" in
    658672  # hpux unix port should go here
     
    694708# ./install, which can be erroneously created by make from ./install.sh.
    695709echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    696 echo "configure:697: checking for a BSD compatible install" >&5
     710echo "configure:711: checking for a BSD compatible install" >&5
    697711if test -z "$INSTALL"; then
    698712if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    747761
    748762echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    749 echo "configure:750: checking whether build environment is sane" >&5
     763echo "configure:764: checking whether build environment is sane" >&5
    750764# Just in case
    751765sleep 1
     
    804818
    805819echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    806 echo "configure:807: checking whether ${MAKE-make} sets \${MAKE}" >&5
     820echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
    807821set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    808822if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    843857missing_dir=`cd $ac_aux_dir && pwd`
    844858echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    845 echo "configure:846: checking for working aclocal" >&5
     859echo "configure:860: checking for working aclocal" >&5
    846860# Run test in a subshell; some versions of sh will print an error if
    847861# an executable is not found, even if stderr is redirected.
     
    856870
    857871echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    858 echo "configure:859: checking for working autoconf" >&5
     872echo "configure:873: checking for working autoconf" >&5
    859873# Run test in a subshell; some versions of sh will print an error if
    860874# an executable is not found, even if stderr is redirected.
     
    869883
    870884echo $ac_n "checking for working automake""... $ac_c" 1>&6
    871 echo "configure:872: checking for working automake" >&5
     885echo "configure:886: checking for working automake" >&5
    872886# Run test in a subshell; some versions of sh will print an error if
    873887# an executable is not found, even if stderr is redirected.
     
    882896
    883897echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    884 echo "configure:885: checking for working autoheader" >&5
     898echo "configure:899: checking for working autoheader" >&5
    885899# Run test in a subshell; some versions of sh will print an error if
    886900# an executable is not found, even if stderr is redirected.
     
    895909
    896910echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    897 echo "configure:898: checking for working makeinfo" >&5
     911echo "configure:912: checking for working makeinfo" >&5
    898912# Run test in a subshell; some versions of sh will print an error if
    899913# an executable is not found, even if stderr is redirected.
     
    912926set dummy gcc; ac_word=$2
    913927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    914 echo "configure:915: checking for $ac_word" >&5
     928echo "configure:929: checking for $ac_word" >&5
    915929if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    916930  echo $ac_n "(cached) $ac_c" 1>&6
     
    942956set dummy cc; ac_word=$2
    943957echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    944 echo "configure:945: checking for $ac_word" >&5
     958echo "configure:959: checking for $ac_word" >&5
    945959if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    946960  echo $ac_n "(cached) $ac_c" 1>&6
     
    9931007set dummy cl; ac_word=$2
    9941008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    995 echo "configure:996: checking for $ac_word" >&5
     1009echo "configure:1010: checking for $ac_word" >&5
    9961010if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    9971011  echo $ac_n "(cached) $ac_c" 1>&6
     
    10251039
    10261040echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    1027 echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1041echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    10281042
    10291043ac_ext=c
     
    10361050cat > conftest.$ac_ext << EOF
    10371051
    1038 #line 1039 "configure"
     1052#line 1053 "configure"
    10391053#include "confdefs.h"
    10401054
    10411055main(){return(0);}
    10421056EOF
    1043 if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1057if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10441058  ac_cv_prog_cc_works=yes
    10451059  # If we can't run a trivial program, we are probably using a cross compiler.
     
    10671081fi
    10681082echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1069 echo "configure:1070: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1083echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10701084echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10711085cross_compiling=$ac_cv_prog_cc_cross
    10721086
    10731087echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1074 echo "configure:1075: checking whether we are using GNU C" >&5
     1088echo "configure:1089: checking whether we are using GNU C" >&5
    10751089if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10761090  echo $ac_n "(cached) $ac_c" 1>&6
     
    10811095#endif
    10821096EOF
    1083 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1097if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10841098  ac_cv_prog_gcc=yes
    10851099else
     
    11001114CFLAGS=
    11011115echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1102 echo "configure:1103: checking whether ${CC-cc} accepts -g" >&5
     1116echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
    11031117if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    11041118  echo $ac_n "(cached) $ac_c" 1>&6
     
    12951309s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
    12961310s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     1311s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    12971312s%@host@%$host%g
    12981313s%@host_alias@%$host_alias%g
  • c/src/lib/libbsp/hppa1.1/simhppa/tools/Makefile.in

    rd115315 r8cdb582  
    1 # Makefile.in generated automatically by automake 1.2 from Makefile.am
    2 
    3 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
    44# This Makefile.in is free software; the Free Software Foundation
    5 # gives unlimited permission to copy, distribute and modify it.
     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.
    612
    713#
     
    1016
    1117
    12 SHELL = /bin/sh
     18
     19SHELL = @SHELL@
    1320
    1421srcdir = @srcdir@
     
    3138oldincludedir = /usr/include
    3239
     40DESTDIR =
     41
    3342pkgdatadir = $(datadir)/@PACKAGE@
    3443pkglibdir = $(libdir)/@PACKAGE@
     
    4150
    4251INSTALL = @INSTALL@
    43 INSTALL_PROGRAM = @INSTALL_PROGRAM@
     52INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
    4453INSTALL_DATA = @INSTALL_DATA@
    4554INSTALL_SCRIPT = @INSTALL_SCRIPT@
    4655transform = @program_transform_name@
    4756
    48 NORMAL_INSTALL = true
    49 PRE_INSTALL = true
    50 POST_INSTALL = true
    51 NORMAL_UNINSTALL = true
    52 PRE_UNINSTALL = true
    53 POST_UNINSTALL = true
     57NORMAL_INSTALL = :
     58PRE_INSTALL = :
     59POST_INSTALL = :
     60NORMAL_UNINSTALL = :
     61PRE_UNINSTALL = :
     62POST_UNINSTALL = :
    5463build_alias = @build_alias@
    5564build_triplet = @build@
     
    6271PACKAGE = @PACKAGE@
    6372PROJECT_ROOT = @PROJECT_ROOT@
     73RTEMS_ROOT = @RTEMS_ROOT@
    6474RTEMS_TOPdir = @RTEMS_TOPdir@
    6575VERSION = @VERSION@
     
    6878ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
    6979
    70 noinst_PROGRAMS= \
    71 print_dump
    72 
    73 print_dump_SOURCES= \
    74 print_dump.c
     80noinst_PROGRAMS =  print_dump
     81
     82
     83print_dump_SOURCES =  print_dump.c
     84
    7585ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    7686mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../../../mkinstalldirs
     
    8696print_dump_OBJECTS =  print_dump.o
    8797print_dump_LDADD = $(LDADD)
     98print_dump_DEPENDENCIES =
    8899print_dump_LDFLAGS =
    89100CFLAGS = @CFLAGS@
    90 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    91 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
    92 DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 config.h.in configure \
    93 configure.in stamp-h.in
     101COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     102CCLD = $(CC)
     103LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
     104DIST_COMMON =  ./stamp-h.in Makefile.am Makefile.in aclocal.m4 \
     105config.h.in configure configure.in
    94106
    95107
     
    97109
    98110TAR = tar
    99 GZIP = --best
     111GZIP_ENV = --best
    100112DEP_FILES =  .deps/print_dump.P
    101113SOURCES = $(print_dump_SOURCES)
    102114OBJECTS = $(print_dump_OBJECTS)
    103115
    104 default: all
    105 
     116all: all-redirect
    106117.SUFFIXES:
    107 .SUFFIXES: .c .o
    108 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     118.SUFFIXES: .S .c .o .s
     119$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../../automake/local.am
    109120        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
    110121
    111 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
     122Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    112123        cd $(top_builddir) \
    113124          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     
    116127        cd $(srcdir) && $(ACLOCAL)
    117128
    118 config.status: $(srcdir)/configure
     129config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    119130        $(SHELL) ./config.status --recheck
    120131$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     
    122133
    123134config.h: stamp-h
     135        @if test ! -f $@; then \
     136                rm -f stamp-h; \
     137                $(MAKE) stamp-h; \
     138        else :; fi
    124139stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
    125140        cd $(top_builddir) \
    126141          && CONFIG_FILES= CONFIG_HEADERS=config.h \
    127142             $(SHELL) ./config.status
    128         @echo timestamp > stamp-h
     143        @echo timestamp > stamp-h 2> /dev/null
    129144$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
     145        @if test ! -f $@; then \
     146                rm -f $(srcdir)/stamp-h.in; \
     147                $(MAKE) $(srcdir)/stamp-h.in; \
     148        else :; fi
    130149$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
    131150        cd $(top_srcdir) && $(AUTOHEADER)
    132         @echo timestamp > $(srcdir)/stamp-h.in
     151        @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
    133152
    134153mostlyclean-hdr:
     
    137156
    138157distclean-hdr:
    139         rm -f config.h
     158        -rm -f config.h
    140159
    141160maintainer-clean-hdr:
     
    144163
    145164clean-noinstPROGRAMS:
    146         test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
     165        -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
    147166
    148167distclean-noinstPROGRAMS:
     
    150169maintainer-clean-noinstPROGRAMS:
    151170
    152 .c.o:
     171.s.o:
    153172        $(COMPILE) -c $<
    154173
     174.S.o:
     175        $(COMPILE) -c $<
     176
    155177mostlyclean-compile:
    156         rm -f *.o core
     178        -rm -f *.o core *.core
    157179
    158180clean-compile:
    159181
    160182distclean-compile:
    161         rm -f *.tab.c
     183        -rm -f *.tab.c
    162184
    163185maintainer-clean-compile:
     
    169191tags: TAGS
    170192
    171 ID: $(HEADERS) $(SOURCES)
    172         here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)
    173 
    174 TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES)
     193ID: $(HEADERS) $(SOURCES) $(LISP)
     194        list='$(SOURCES) $(HEADERS)'; \
     195        unique=`for i in $$list; do echo $$i; done | \
     196          awk '    { files[$$0] = 1; } \
     197               END { for (i in files) print i; }'`; \
     198        here=`pwd` && cd $(srcdir) \
     199          && mkid -f$$here/ID $$unique $(LISP)
     200
     201TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
    175202        tags=; \
    176203        here=`pwd`; \
    177         test -z "$(ETAGS_ARGS)config.h.in$(SOURCES)$(HEADERS)$$tags" \
    178           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $(SOURCES) $(HEADERS) -o $$here/TAGS)
     204        list='$(SOURCES) $(HEADERS)'; \
     205        unique=`for i in $$list; do echo $$i; done | \
     206          awk '    { files[$$0] = 1; } \
     207               END { for (i in files) print i; }'`; \
     208        test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
     209          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
    179210
    180211mostlyclean-tags:
     
    183214
    184215distclean-tags:
    185         rm -f TAGS ID
     216        -rm -f TAGS ID
    186217
    187218maintainer-clean-tags:
     
    194225# tarfile.
    195226distcheck: dist
    196         rm -rf $(distdir)
    197         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
     227        -rm -rf $(distdir)
     228        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
    198229        mkdir $(distdir)/=build
    199230        mkdir $(distdir)/=inst
     
    201232        cd $(distdir)/=build \
    202233          && ../configure --srcdir=.. --prefix=$$dc_install_base \
    203           && $(MAKE) \
    204           && $(MAKE) dvi \
    205           && $(MAKE) check \
    206           && $(MAKE) install \
    207           && $(MAKE) installcheck \
    208           && $(MAKE) dist
    209         rm -rf $(distdir)
    210         @echo "========================"; \
    211         echo "$(distdir).tar.gz is ready for distribution"; \
    212         echo "========================"
     234          && $(MAKE) $(AM_MAKEFLAGS) \
     235          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     236          && $(MAKE) $(AM_MAKEFLAGS) check \
     237          && $(MAKE) $(AM_MAKEFLAGS) install \
     238          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     239          && $(MAKE) $(AM_MAKEFLAGS) dist
     240        -rm -rf $(distdir)
     241        @banner="$(distdir).tar.gz is ready for distribution"; \
     242        dashes=`echo "$$banner" | sed s/./=/g`; \
     243        echo "$$dashes"; \
     244        echo "$$banner"; \
     245        echo "$$dashes"
    213246dist: distdir
    214247        -chmod -R a+r $(distdir)
    215         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
    216         rm -rf $(distdir)
     248        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     249        -rm -rf $(distdir)
    217250dist-all: distdir
    218251        -chmod -R a+r $(distdir)
    219         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
    220         rm -rf $(distdir)
     252        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     253        -rm -rf $(distdir)
    221254distdir: $(DISTFILES)
    222         rm -rf $(distdir)
     255        -rm -rf $(distdir)
    223256        mkdir $(distdir)
    224257        -chmod 777 $(distdir)
    225258        here=`cd $(top_builddir) && pwd`; \
    226         top_distdir=`cd $(top_distdir) && pwd`; \
     259        top_distdir=`cd $(distdir) && pwd`; \
     260        distdir=`cd $(distdir) && pwd`; \
    227261        cd $(top_srcdir) \
    228262          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
    229263        @for file in $(DISTFILES); do \
    230264          d=$(srcdir); \
    231           test -f $(distdir)/$$file \
    232           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
    233           || cp -p $$d/$$file $(distdir)/$$file; \
     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; \
    234272        done
    235273
    236 MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    237 
    238274DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
    239 -include .deps/.P
    240 .deps/.P: $(BUILT_SOURCES)
    241         echo > $@
    242275
    243276-include $(DEP_FILES)
     
    248281
    249282distclean-depend:
     283        -rm -rf .deps
    250284
    251285maintainer-clean-depend:
    252         rm -rf .deps
    253 
    254 .deps/%.P: %.c
    255         @echo "Computing dependencies for $<..."
    256         @o='o'; \
    257         test -n "$o" && o='$$o'; \
    258         $(MKDEP) $< >$@.tmp \
    259           && sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," < $@.tmp > $@ \
    260           && rm -f $@.tmp
    261 info:
    262 dvi:
    263 check: all
    264         $(MAKE)
    265 installcheck:
    266 install-exec: install-exec-local
    267         @$(NORMAL_INSTALL)
    268 
    269 install-data:
    270         @$(NORMAL_INSTALL)
    271 
    272 install: install-exec install-data all
    273         @:
    274 
    275 uninstall:
    276 
    277 all: Makefile $(PROGRAMS) config.h
    278 
     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-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:
     326uninstall: uninstall-am
     327all-am: Makefile $(PROGRAMS) config.h
     328all-redirect: all-am
    279329install-strip:
    280         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
     330        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
    281331installdirs:
    282332
    283333
    284334mostlyclean-generic:
    285         test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
    286335
    287336clean-generic:
    288         test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    289337
    290338distclean-generic:
    291         rm -f Makefile $(DISTCLEANFILES)
    292         rm -f config.cache config.log stamp-h stamp-h[0-9]*
    293         test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
     339        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     340        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
    294341
    295342maintainer-clean-generic:
    296         test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
    297         test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
    298 mostlyclean:  mostlyclean-hdr mostlyclean-noinstPROGRAMS \
     343mostlyclean-am:  mostlyclean-hdr mostlyclean-noinstPROGRAMS \
    299344                mostlyclean-compile mostlyclean-tags mostlyclean-depend \
    300345                mostlyclean-generic
    301346
    302 clean:  clean-hdr clean-noinstPROGRAMS clean-compile clean-tags \
    303                 clean-depend clean-generic mostlyclean
    304 
    305 distclean:  distclean-hdr distclean-noinstPROGRAMS distclean-compile \
    306                 distclean-tags distclean-depend distclean-generic clean
    307         rm -f config.status
    308 
    309 maintainer-clean:  maintainer-clean-hdr maintainer-clean-noinstPROGRAMS \
     347mostlyclean: mostlyclean-am
     348
     349clean-am:  clean-hdr clean-noinstPROGRAMS clean-compile clean-tags \
     350                clean-depend clean-generic mostlyclean-am
     351
     352clean: clean-am
     353
     354distclean-am:  distclean-hdr distclean-noinstPROGRAMS distclean-compile \
     355                distclean-tags distclean-depend distclean-generic \
     356                clean-am
     357
     358distclean: distclean-am
     359        -rm -f config.status
     360
     361maintainer-clean-am:  maintainer-clean-hdr \
     362                maintainer-clean-noinstPROGRAMS \
    310363                maintainer-clean-compile maintainer-clean-tags \
    311364                maintainer-clean-depend maintainer-clean-generic \
    312                 distclean
     365                distclean-am
    313366        @echo "This command is intended for maintainers to use;"
    314367        @echo "it deletes files that may require special tools to rebuild."
    315         rm -f config.status
    316 
    317 .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
    318 maintainer-clean-hdr mostlyclean-noinstPROGRAMS \
    319 distclean-noinstPROGRAMS clean-noinstPROGRAMS \
    320 maintainer-clean-noinstPROGRAMS mostlyclean-compile distclean-compile \
    321 clean-compile maintainer-clean-compile tags mostlyclean-tags \
    322 distclean-tags clean-tags maintainer-clean-tags distdir \
    323 mostlyclean-depend distclean-depend clean-depend \
    324 maintainer-clean-depend info dvi installcheck install-exec install-data \
    325 install uninstall all installdirs mostlyclean-generic distclean-generic \
     368
     369maintainer-clean: maintainer-clean-am
     370        -rm -f config.status
     371
     372.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
     373mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
     374clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
     375mostlyclean-compile distclean-compile clean-compile \
     376maintainer-clean-compile tags mostlyclean-tags distclean-tags \
     377clean-tags maintainer-clean-tags distdir mostlyclean-depend \
     378distclean-depend clean-depend maintainer-clean-depend info-am info \
     379dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
     380install-exec-local install-exec-am install-exec install-data-am \
     381install-data install-am install uninstall-am uninstall all-redirect \
     382all-am all installdirs mostlyclean-generic distclean-generic \
    326383clean-generic maintainer-clean-generic clean mostlyclean distclean \
    327384maintainer-clean
     
    333390        $(INSTALL_PROGRAM) print_dump $(PROJECT_ROOT)/${RTEMS_BSP}/bin
    334391
    335 include $(top_srcdir)/../../../../../../../automake/local.am
     392debug-am:
     393
     394debug: debug-am
     395
     396debug_install-am:
     397
     398debug_install: debug_install-am
     399
     400.PHONY: debug debug_install debug-am
     401
     402profile-am:
     403
     404profile: profile-am
     405
     406profile_install-am:
     407
     408profile_install: profile_install-am
     409
     410.PHONY: profile profile_install profile-am
     411
     412preinstall-am:
     413
     414preinstall: preinstall-am
     415
     416.PHONY: preinstall preinstall-am
    336417
    337418# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/src/lib/libbsp/hppa1.1/simhppa/tools/aclocal.m4

    rd115315 r8cdb582  
    1 dnl aclocal.m4 generated automatically by aclocal 1.2
     1dnl aclocal.m4 generated automatically by aclocal 1.4
     2
     3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4dnl This file is free software; the Free Software Foundation
     5dnl gives unlimited permission to copy and/or distribute it,
     6dnl with or without modifications, as long as this notice is preserved.
     7
     8dnl This program is distributed in the hope that it will be useful,
     9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11dnl PARTICULAR PURPOSE.
    212
    313dnl $Id$
     
    1020AC_DEFUN(RTEMS_TOP,
    1121[dnl
     22AC_ARG_WITH(target-subdir,
     23[  --with-target-subdir=DIR],
     24TARGET_SUBDIR="$withval",
     25TARGET_SUBDIR=".")
     26
    1227RTEMS_TOPdir="$1";
    1328AC_SUBST(RTEMS_TOPdir)
    1429
    1530PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     31test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    1632AC_SUBST(PROJECT_ROOT)
    1733
     
    3248AC_MSG_RESULT($RTEMS_VERSION)
    3349
    34 dnl FIXME: This once gets activated in future or will be removed
    35 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    36 dnl AC_SUBST(RTEMS_ROOT)
     50RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     51AC_SUBST(RTEMS_ROOT)
    3752])dnl
    3853
     
    90105
    91106AC_DEFUN(AM_INIT_AUTOMAKE,
    92 [AC_REQUIRE([AM_PROG_INSTALL])
     107[AC_REQUIRE([AC_PROG_INSTALL])
    93108PACKAGE=[$1]
    94109AC_SUBST(PACKAGE)
     
    100115fi
    101116ifelse([$3],,
    102 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    103 AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
    104 AM_SANITY_CHECK
    105 AC_ARG_PROGRAM
     117AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     118AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
     119AC_REQUIRE([AM_SANITY_CHECK])
     120AC_REQUIRE([AC_ARG_PROGRAM])
    106121dnl FIXME This is truly gross.
    107122missing_dir=`cd $ac_aux_dir && pwd`
     
    111126AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
    112127AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
    113 AC_PROG_MAKE_SET])
    114 
    115 
    116 # serial 1
    117 
    118 AC_DEFUN(AM_PROG_INSTALL,
    119 [AC_REQUIRE([AC_PROG_INSTALL])
    120 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    121 AC_SUBST(INSTALL_SCRIPT)dnl
    122 ])
     128AC_REQUIRE([AC_PROG_MAKE_SET])])
    123129
    124130#
     
    138144if (
    139145   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
    140    if test "$@" = "X"; then
     146   if test "[$]*" = "X"; then
    141147      # -L didn't work.
    142148      set X `ls -t $srcdir/configure conftestfile`
    143149   fi
     150   if test "[$]*" != "X $srcdir/configure conftestfile" \
     151      && test "[$]*" != "X conftestfile $srcdir/configure"; then
     152
     153      # If neither matched, then we have a broken ls.  This can happen
     154      # if, for instance, CONFIG_SHELL is bash and it inherits a
     155      # broken ls alias from the environment.  This has actually
     156      # happened.  Such a system could not be considered "sane".
     157      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     158alias in your environment])
     159   fi
     160
    144161   test "[$]2" = conftestfile
    145162   )
  • c/src/lib/libbsp/hppa1.1/simhppa/tools/configure

    rd115315 r8cdb582  
    22
    33# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.12
     4# Generated automatically using autoconf version 2.13
    55# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    66#
     
    1212ac_default_prefix=/usr/local
    1313# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-target-subdir=DIR"
    1416
    1517# Initialize some variables set by options.
     
    5052subdirs=
    5153MFLAGS= MAKEFLAGS=
     54SHELL=${CONFIG_SHELL-/bin/sh}
    5255# Maximum number of lines to put in a shell here document.
    5356ac_max_here_lines=12
     
    333336
    334337  -version | --version | --versio | --versi | --vers)
    335     echo "configure generated by autoconf version 2.12"
     338    echo "configure generated by autoconf version 2.13"
    336339    exit 0 ;;
    337340
     
    503506ac_cpp='$CPP $CPPFLAGS'
    504507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    506509cross_compiling=$ac_cv_prog_cc_cross
    507510
     511ac_exeext=
     512ac_objext=o
    508513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    509514  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    539544
    540545
     546# Check whether --with-target-subdir or --without-target-subdir was given.
     547if test "${with_target_subdir+set}" = set; then
     548  withval="$with_target_subdir"
     549  TARGET_SUBDIR="$withval"
     550else
     551  TARGET_SUBDIR="."
     552fi
     553
     554
    541555RTEMS_TOPdir="../../../../../../..";
    542556
    543557
    544558PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     559test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    545560
    546561
    547562echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    548 echo "configure:549: checking for RTEMS Version" >&5
     563echo "configure:564: checking for RTEMS Version" >&5
    549564if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    550565RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
     
    557572fi
    558573echo "$ac_t""$RTEMS_VERSION" 1>&6
     574
     575RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    559576
    560577
     
    582599
    583600# Make sure we can run config.sub.
    584 if $ac_config_sub sun4 >/dev/null 2>&1; then :
     601if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
    585602else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
    586603fi
    587604
    588605echo $ac_n "checking host system type""... $ac_c" 1>&6
    589 echo "configure:590: checking host system type" >&5
     606echo "configure:607: checking host system type" >&5
    590607
    591608host_alias=$host
     
    594611  case $nonopt in
    595612  NONE)
    596     if host_alias=`$ac_config_guess`; then :
     613    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
    597614    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    598615    fi ;;
     
    601618esac
    602619
    603 host=`$ac_config_sub $host_alias`
     620host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
    604621host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    605622host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    608625
    609626echo $ac_n "checking target system type""... $ac_c" 1>&6
    610 echo "configure:611: checking target system type" >&5
     627echo "configure:628: checking target system type" >&5
    611628
    612629target_alias=$target
     
    619636esac
    620637
    621 target=`$ac_config_sub $target_alias`
     638target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
    622639target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    623640target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    626643
    627644echo $ac_n "checking build system type""... $ac_c" 1>&6
    628 echo "configure:629: checking build system type" >&5
     645echo "configure:646: checking build system type" >&5
    629646
    630647build_alias=$build
     
    637654esac
    638655
    639 build=`$ac_config_sub $build_alias`
     656build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
    640657build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    641658build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     
    651668
    652669echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    653 echo "configure:654: checking rtems target cpu" >&5
     670echo "configure:671: checking rtems target cpu" >&5
    654671case "${target}" in
    655672  # hpux unix port should go here
     
    686703# IRIX /sbin/install
    687704# AIX /bin/install
     705# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    688706# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    689707# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    690708# ./install, which can be erroneously created by make from ./install.sh.
    691709echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    692 echo "configure:693: checking for a BSD compatible install" >&5
     710echo "configure:711: checking for a BSD compatible install" >&5
    693711if test -z "$INSTALL"; then
    694712if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    695713  echo $ac_n "(cached) $ac_c" 1>&6
    696714else
    697     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
     715    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
    698716  for ac_dir in $PATH; do
    699717    # Account for people who put trailing slashes in PATH elements.
     
    702720    *)
    703721      # OSF1 and SCO ODT 3.0 have their own names for install.
    704       for ac_prog in ginstall installbsd scoinst install; do
     722      # Don't use installbsd from OSF since it installs stuff as root
     723      # by default.
     724      for ac_prog in ginstall scoinst install; do
    705725        if test -f $ac_dir/$ac_prog; then
    706726          if test $ac_prog = install &&
    707727            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
    708728            # AIX install.  It has an incompatible calling convention.
    709             # OSF/1 installbsd also uses dspmsg, but is usable.
    710729            :
    711730          else
     
    737756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    738757
     758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     759
    739760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    740761
    741 
    742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    743 
    744 
    745 PACKAGE=rtems-lib-libbsp-hppa-simhppa-tools
    746 
    747 VERSION=$RTEMS_VERSION
    748 
    749 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
    750   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
    751 fi
    752 
    753762echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
    754 echo "configure:755: checking whether build environment is sane" >&5
     763echo "configure:764: checking whether build environment is sane" >&5
    755764# Just in case
    756765sleep 1
     
    763772if (
    764773   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
    765    if test "" = "X"; then
     774   if test "$*" = "X"; then
    766775      # -L didn't work.
    767776      set X `ls -t $srcdir/configure conftestfile`
    768777   fi
     778   if test "$*" != "X $srcdir/configure conftestfile" \
     779      && test "$*" != "X conftestfile $srcdir/configure"; then
     780
     781      # If neither matched, then we have a broken ls.  This can happen
     782      # if, for instance, CONFIG_SHELL is bash and it inherits a
     783      # broken ls alias from the environment.  This has actually
     784      # happened.  Such a system could not be considered "sane".
     785      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
     786alias in your environment" 1>&2; exit 1; }
     787   fi
     788
    769789   test "$2" = conftestfile
    770790   )
     
    797817test "$program_transform_name" = "" && program_transform_name="s,x,x,"
    798818
     819echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     820echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
     821set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     822if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     823  echo $ac_n "(cached) $ac_c" 1>&6
     824else
     825  cat > conftestmake <<\EOF
     826all:
     827        @echo 'ac_maketemp="${MAKE}"'
     828EOF
     829# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     830eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     831if test -n "$ac_maketemp"; then
     832  eval ac_cv_prog_make_${ac_make}_set=yes
     833else
     834  eval ac_cv_prog_make_${ac_make}_set=no
     835fi
     836rm -f conftestmake
     837fi
     838if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     839  echo "$ac_t""yes" 1>&6
     840  SET_MAKE=
     841else
     842  echo "$ac_t""no" 1>&6
     843  SET_MAKE="MAKE=${MAKE-make}"
     844fi
     845
     846
     847PACKAGE=rtems-lib-libbsp-hppa-simhppa-tools
     848
     849VERSION=$RTEMS_VERSION
     850
     851if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     852  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
     853fi
     854
     855
     856
    799857missing_dir=`cd $ac_aux_dir && pwd`
    800858echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
    801 echo "configure:802: checking for working aclocal" >&5
     859echo "configure:860: checking for working aclocal" >&5
    802860# Run test in a subshell; some versions of sh will print an error if
    803861# an executable is not found, even if stderr is redirected.
     
    812870
    813871echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
    814 echo "configure:815: checking for working autoconf" >&5
     872echo "configure:873: checking for working autoconf" >&5
    815873# Run test in a subshell; some versions of sh will print an error if
    816874# an executable is not found, even if stderr is redirected.
     
    825883
    826884echo $ac_n "checking for working automake""... $ac_c" 1>&6
    827 echo "configure:828: checking for working automake" >&5
     885echo "configure:886: checking for working automake" >&5
    828886# Run test in a subshell; some versions of sh will print an error if
    829887# an executable is not found, even if stderr is redirected.
     
    838896
    839897echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
    840 echo "configure:841: checking for working autoheader" >&5
     898echo "configure:899: checking for working autoheader" >&5
    841899# Run test in a subshell; some versions of sh will print an error if
    842900# an executable is not found, even if stderr is redirected.
     
    851909
    852910echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
    853 echo "configure:854: checking for working makeinfo" >&5
     911echo "configure:912: checking for working makeinfo" >&5
    854912# Run test in a subshell; some versions of sh will print an error if
    855913# an executable is not found, even if stderr is redirected.
     
    863921fi
    864922
    865 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    866 echo "configure:867: checking whether ${MAKE-make} sets \${MAKE}" >&5
    867 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    868 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    869   echo $ac_n "(cached) $ac_c" 1>&6
    870 else
    871   cat > conftestmake <<\EOF
    872 all:
    873         @echo 'ac_maketemp="${MAKE}"'
    874 EOF
    875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    876 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
    877 if test -n "$ac_maketemp"; then
    878   eval ac_cv_prog_make_${ac_make}_set=yes
    879 else
    880   eval ac_cv_prog_make_${ac_make}_set=no
    881 fi
    882 rm -f conftestmake
    883 fi
    884 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    885   echo "$ac_t""yes" 1>&6
    886   SET_MAKE=
    887 else
    888   echo "$ac_t""no" 1>&6
    889   SET_MAKE="MAKE=${MAKE-make}"
    890 fi
    891923
    892924
     
    894926set dummy gcc; ac_word=$2
    895927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    896 echo "configure:897: checking for $ac_word" >&5
     928echo "configure:929: checking for $ac_word" >&5
    897929if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    898930  echo $ac_n "(cached) $ac_c" 1>&6
     
    901933  ac_cv_prog_CC="$CC" # Let the user override the test.
    902934else
    903   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    904   for ac_dir in $PATH; do
     935  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     936  ac_dummy="$PATH"
     937  for ac_dir in $ac_dummy; do
    905938    test -z "$ac_dir" && ac_dir=.
    906939    if test -f $ac_dir/$ac_word; then
     
    923956set dummy cc; ac_word=$2
    924957echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    925 echo "configure:926: checking for $ac_word" >&5
     958echo "configure:959: checking for $ac_word" >&5
    926959if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    927960  echo $ac_n "(cached) $ac_c" 1>&6
     
    930963  ac_cv_prog_CC="$CC" # Let the user override the test.
    931964else
    932   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     965  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    933966  ac_prog_rejected=no
    934   for ac_dir in $PATH; do
     967  ac_dummy="$PATH"
     968  for ac_dir in $ac_dummy; do
    935969    test -z "$ac_dir" && ac_dir=.
    936970    if test -f $ac_dir/$ac_word; then
     
    9671001fi
    9681002
     1003  if test -z "$CC"; then
     1004    case "`uname -s`" in
     1005    *win32* | *WIN32*)
     1006      # Extract the first word of "cl", so it can be a program name with args.
     1007set dummy cl; ac_word=$2
     1008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1009echo "configure:1010: checking for $ac_word" >&5
     1010if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1011  echo $ac_n "(cached) $ac_c" 1>&6
     1012else
     1013  if test -n "$CC"; then
     1014  ac_cv_prog_CC="$CC" # Let the user override the test.
     1015else
     1016  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1017  ac_dummy="$PATH"
     1018  for ac_dir in $ac_dummy; do
     1019    test -z "$ac_dir" && ac_dir=.
     1020    if test -f $ac_dir/$ac_word; then
     1021      ac_cv_prog_CC="cl"
     1022      break
     1023    fi
     1024  done
     1025  IFS="$ac_save_ifs"
     1026fi
     1027fi
     1028CC="$ac_cv_prog_CC"
     1029if test -n "$CC"; then
     1030  echo "$ac_t""$CC" 1>&6
     1031else
     1032  echo "$ac_t""no" 1>&6
     1033fi
     1034 ;;
     1035    esac
     1036  fi
    9691037  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    9701038fi
    9711039
    9721040echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    973 echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1041echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    9741042
    9751043ac_ext=c
     
    9771045ac_cpp='$CPP $CPPFLAGS'
    9781046ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    979 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1047ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    9801048cross_compiling=$ac_cv_prog_cc_cross
    9811049
    982 cat > conftest.$ac_ext <<EOF
    983 #line 984 "configure"
     1050cat > conftest.$ac_ext << EOF
     1051
     1052#line 1053 "configure"
    9841053#include "confdefs.h"
     1054
    9851055main(){return(0);}
    9861056EOF
    987 if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1057if { (eval echo configure:1058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    9881058  ac_cv_prog_cc_works=yes
    9891059  # If we can't run a trivial program, we are probably using a cross compiler.
     
    9991069fi
    10001070rm -fr conftest*
     1071ac_ext=c
     1072# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1073ac_cpp='$CPP $CPPFLAGS'
     1074ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1075ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1076cross_compiling=$ac_cv_prog_cc_cross
    10011077
    10021078echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     
    10051081fi
    10061082echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    1007 echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1083echo "configure:1084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    10081084echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    10091085cross_compiling=$ac_cv_prog_cc_cross
    10101086
    10111087echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    1012 echo "configure:1013: checking whether we are using GNU C" >&5
     1088echo "configure:1089: checking whether we are using GNU C" >&5
    10131089if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    10141090  echo $ac_n "(cached) $ac_c" 1>&6
     
    10191095#endif
    10201096EOF
    1021 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1097if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    10221098  ac_cv_prog_gcc=yes
    10231099else
     
    10301106if test $ac_cv_prog_gcc = yes; then
    10311107  GCC=yes
    1032   ac_test_CFLAGS="${CFLAGS+set}"
    1033   ac_save_CFLAGS="$CFLAGS"
    1034   CFLAGS=
    1035   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    1036 echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
     1108else
     1109  GCC=
     1110fi
     1111
     1112ac_test_CFLAGS="${CFLAGS+set}"
     1113ac_save_CFLAGS="$CFLAGS"
     1114CFLAGS=
     1115echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     1116echo "configure:1117: checking whether ${CC-cc} accepts -g" >&5
    10371117if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    10381118  echo $ac_n "(cached) $ac_c" 1>&6
     
    10491129
    10501130echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    1051   if test "$ac_test_CFLAGS" = set; then
    1052     CFLAGS="$ac_save_CFLAGS"
    1053   elif test $ac_cv_prog_cc_g = yes; then
     1131if test "$ac_test_CFLAGS" = set; then
     1132  CFLAGS="$ac_save_CFLAGS"
     1133elif test $ac_cv_prog_cc_g = yes; then
     1134  if test "$GCC" = yes; then
    10541135    CFLAGS="-g -O2"
    10551136  else
     1137    CFLAGS="-g"
     1138  fi
     1139else
     1140  if test "$GCC" = yes; then
    10561141    CFLAGS="-O2"
    1057   fi
    1058 else
    1059   GCC=
    1060   test "${CFLAGS+set}" = set || CFLAGS="-g"
     1142  else
     1143    CFLAGS=
     1144  fi
    10611145fi
    10621146
     
    10651149do
    10661150echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1067 echo "configure:1068: checking for $ac_func" >&5
     1151echo "configure:1152: checking for $ac_func" >&5
    10681152if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    10691153  echo $ac_n "(cached) $ac_c" 1>&6
    10701154else
    10711155  cat > conftest.$ac_ext <<EOF
    1072 #line 1073 "configure"
     1156#line 1157 "configure"
    10731157#include "confdefs.h"
    10741158/* System header to define __stub macros and hopefully few prototypes,
     
    10931177; return 0; }
    10941178EOF
    1095 if { (eval echo configure:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1179if { (eval echo configure:1180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    10961180  rm -rf conftest*
    10971181  eval "ac_cv_func_$ac_func=yes"
     
    11441228# and sets the high bit in the cache file unless we assign to the vars.
    11451229(set) 2>&1 |
    1146   case `(ac_space=' '; set) 2>&1` in
     1230  case `(ac_space=' '; set | grep ac_space) 2>&1` in
    11471231  *ac_space=\ *)
    11481232    # `set' does not quote correctly, so add quotes (double-quote substitution
     
    12111295    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    12121296  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    1213     echo "$CONFIG_STATUS generated by autoconf version 2.12"
     1297    echo "$CONFIG_STATUS generated by autoconf version 2.13"
    12141298    exit 0 ;;
    12151299  -help | --help | --hel | --he | --h)
     
    12311315$ac_vpsub
    12321316$extrasub
     1317s%@SHELL@%$SHELL%g
    12331318s%@CFLAGS@%$CFLAGS%g
    12341319s%@CPPFLAGS@%$CPPFLAGS%g
    12351320s%@CXXFLAGS@%$CXXFLAGS%g
     1321s%@FFLAGS@%$FFLAGS%g
    12361322s%@DEFS@%$DEFS%g
    12371323s%@LDFLAGS@%$LDFLAGS%g
     
    12541340s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
    12551341s%@PROJECT_ROOT@%$PROJECT_ROOT%g
     1342s%@RTEMS_ROOT@%$RTEMS_ROOT%g
    12561343s%@host@%$host%g
    12571344s%@host_alias@%$host_alias%g
     
    12701357s%@build_os@%$build_os%g
    12711358s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     1359s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    12721360s%@INSTALL_DATA@%$INSTALL_DATA%g
    1273 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
    12741361s%@PACKAGE@%$PACKAGE%g
    12751362s%@VERSION@%$VERSION%g
  • c/src/lib/libbsp/i386/pc386/tools/Makefile.in

    rd115315 r8cdb582  
    1 # Makefile.in generated automatically by automake 1.2 from Makefile.am
    2 
    3 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
     1# Makefile.in generated automatically by automake 1.4 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
    44# This Makefile.in is free software; the Free Software Foundation
    5 # gives unlimited permission to copy, distribute and modify it.
     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.
    612
    713#
     
    1016
    1117
    12 SHELL = /bin/sh
     18
     19SHELL = @SHELL@
    1320
    1421srcdir = @srcdir@
     
    3138oldincludedir = /usr/include
    3239
     40DESTDIR =
     41
    3342pkgdatadir = $(datadir)/@PACKAGE@
    3443pkglibdir = $(libdir)/@PACKAGE@
     
    4150
    4251INSTALL = @INSTALL@
    43 INSTALL_PROGRAM = @INSTALL_PROGRAM@
     52INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
    4453INSTALL_DATA = @INSTALL_DATA@
    4554INSTALL_SCRIPT = @INSTALL_SCRIPT@
    4655transform = @program_transform_name@
    4756
    48 NORMAL_INSTALL = true
    49 PRE_INSTALL = true
    50 POST_INSTALL = true
    51 NORMAL_UNINSTALL = true
    52 PRE_UNINSTALL = true
    53 POST_UNINSTALL = true
     57NORMAL_INSTALL = :
     58PRE_INSTALL = :
     59POST_INSTALL = :
     60NORMAL_UNINSTALL = :
     61PRE_UNINSTALL = :
     62POST_UNINSTALL = :
    5463build_alias = @build_alias@
    5564build_triplet = @build@
     
    6271PACKAGE = @PACKAGE@
    6372PROJECT_ROOT = @PROJECT_ROOT@
     73RTEMS_ROOT = @RTEMS_ROOT@
    6474RTEMS_TOPdir = @RTEMS_TOPdir@
    6575VERSION = @VERSION@
     
    7080EXTRA_DIST = Spec.doc
    7181
    72 noinst_PROGRAMS = \
    73 bin2boot \
    74 binpatch
     82noinst_PROGRAMS =  bin2boot binpatch
     83
    7584
    7685bin2boot_SOURCES = bin2boot.c
     
    8897bin2boot_OBJECTS =  bin2boot.o
    8998bin2boot_LDADD = $(LDADD)
     99bin2boot_DEPENDENCIES =
    90100bin2boot_LDFLAGS =
    91101binpatch_OBJECTS =  binpatch.o
    92102binpatch_LDADD = $(LDADD)
     103binpatch_DEPENDENCIES =
    93104binpatch_LDFLAGS =
    94105CFLAGS = @CFLAGS@
    95 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    96 LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
     106COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     107CCLD = $(CC)
     108LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
    97109DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
    98110
     
    101113
    102114TAR = tar
    103 GZIP = --best
     115GZIP_ENV = --best
    104116DEP_FILES =  .deps/bin2boot.P .deps/binpatch.P
    105117SOURCES = $(bin2boot_SOURCES) $(binpatch_SOURCES)
    106118OBJECTS = $(bin2boot_OBJECTS) $(binpatch_OBJECTS)
    107119
    108 default: all
    109 
     120all: all-redirect
    110121.SUFFIXES:
    111 .SUFFIXES: .c .o
    112 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     122.SUFFIXES: .S .c .o .s
     123$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../../automake/local.am
    113124        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
    114125
    115 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
     126Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    116127        cd $(top_builddir) \
    117128          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     
    120131        cd $(srcdir) && $(ACLOCAL)
    121132
    122 config.status: $(srcdir)/configure
     133config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    123134        $(SHELL) ./config.status --recheck
    124135$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     
    128139
    129140clean-noinstPROGRAMS:
    130         test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
     141        -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
    131142
    132143distclean-noinstPROGRAMS:
     
    134145maintainer-clean-noinstPROGRAMS:
    135146
    136 .c.o:
     147.s.o:
    137148        $(COMPILE) -c $<
    138149
     150.S.o:
     151        $(COMPILE) -c $<
     152
    139153mostlyclean-compile:
    140         rm -f *.o core
     154        -rm -f *.o core *.core
    141155
    142156clean-compile:
    143157
    144158distclean-compile:
    145         rm -f *.tab.c
     159        -rm -f *.tab.c
    146160
    147161maintainer-clean-compile:
     
    157171tags: TAGS
    158172
    159 ID: $(HEADERS) $(SOURCES)
    160         here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)
    161 
    162 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES)
     173ID: $(HEADERS) $(SOURCES) $(LISP)
     174        list='$(SOURCES) $(HEADERS)'; \
     175        unique=`for i in $$list; do echo $$i; done | \
     176          awk '    { files[$$0] = 1; } \
     177               END { for (i in files) print i; }'`; \
     178        here=`pwd` && cd $(srcdir) \
     179          && mkid -f$$here/ID $$unique $(LISP)
     180
     181TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
    163182        tags=; \
    164183        here=`pwd`; \
    165         test -z "$(ETAGS_ARGS)$(SOURCES)$(HEADERS)$$tags" \
    166           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $(SOURCES) $(HEADERS) -o $$here/TAGS)
     184        list='$(SOURCES) $(HEADERS)'; \
     185        unique=`for i in $$list; do echo $$i; done | \
     186          awk '    { files[$$0] = 1; } \
     187               END { for (i in files) print i; }'`; \
     188        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     189          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
    167190
    168191mostlyclean-tags:
     
    171194
    172195distclean-tags:
    173         rm -f TAGS ID
     196        -rm -f TAGS ID
    174197
    175198maintainer-clean-tags:
     
    182205# tarfile.
    183206distcheck: dist
    184         rm -rf $(distdir)
    185         GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
     207        -rm -rf $(distdir)
     208        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
    186209        mkdir $(distdir)/=build
    187210        mkdir $(distdir)/=inst
     
    189212        cd $(distdir)/=build \
    190213          && ../configure --srcdir=.. --prefix=$$dc_install_base \
    191           && $(MAKE) \
    192           && $(MAKE) dvi \
    193           && $(MAKE) check \
    194           && $(MAKE) install \
    195           && $(MAKE) installcheck \
    196           && $(MAKE) dist
    197         rm -rf $(distdir)
    198         @echo "========================"; \
    199         echo "$(distdir).tar.gz is ready for distribution"; \
    200         echo "========================"
     214          && $(MAKE) $(AM_MAKEFLAGS) \
     215          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     216          && $(MAKE) $(AM_MAKEFLAGS) check \
     217          && $(MAKE) $(AM_MAKEFLAGS) install \
     218          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     219          && $(MAKE) $(AM_MAKEFLAGS) dist
     220        -rm -rf $(distdir)
     221        @banner="$(distdir).tar.gz is ready for distribution"; \
     222        dashes=`echo "$$banner" | sed s/./=/g`; \
     223        echo "$$dashes"; \
     224        echo "$$banner"; \
     225        echo "$$dashes"
    201226dist: distdir
    202227        -chmod -R a+r $(distdir)
    203         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
    204         rm -rf $(distdir)
     228        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     229        -rm -rf $(distdir)
    205230dist-all: distdir
    206231        -chmod -R a+r $(distdir)
    207         GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
    208         rm -rf $(distdir)
     232        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     233        -rm -rf $(distdir)
    209234distdir: $(DISTFILES)
    210         rm -rf $(distdir)
     235        -rm -rf $(distdir)
    211236        mkdir $(distdir)
    212237        -chmod 777 $(distdir)
    213238        here=`cd $(top_builddir) && pwd`; \
    214         top_distdir=`cd $(top_distdir) && pwd`; \
     239        top_distdir=`cd $(distdir) && pwd`; \
     240        distdir=`cd $(distdir) && pwd`; \
    215241        cd $(top_srcdir) \
    216242          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
    217243        @for file in $(DISTFILES); do \
    218244          d=$(srcdir); \
    219           test -f $(distdir)/$$file \
    220           || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
    221           || cp -p $$d/$$file $(distdir)/$$file; \
     245          if test -d $$d/$$file; then \
     246            cp -pr $$/$$file $(distdir)/$$file; \
     247          else \
     248            test -f $(distdir)/$$file \
     249            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     250            || cp -p $$d/$$file $(distdir)/$$file || :; \
     251          fi; \
    222252        done
    223253
    224 MKDEP = gcc -M $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
    225 
    226254DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
    227 -include .deps/.P
    228 .deps/.P: $(BUILT_SOURCES)
    229         echo > $@
    230255
    231256-include $(DEP_FILES)
     
    236261
    237262distclean-depend:
     263        -rm -rf .deps
    238264
    239265maintainer-clean-depend:
    240         rm -rf .deps
    241 
    242 .deps/%.P: %.c
    243         @echo "Computing dependencies for $<..."
    244         @o='o'; \
    245         test -n "$o" && o='$$o'; \
    246         $(MKDEP) $< >$@.tmp \
    247           && sed "s,^\(.*\)\.o:,\1.$$o \1.l$$o $@:," < $@.tmp > $@ \
    248           && rm -f $@.tmp
    249 info:
    250 dvi:
    251 check: all
    252         $(MAKE)
    253 installcheck:
    254 install-exec: install-exec-local
    255         @$(NORMAL_INSTALL)
    256 
    257 install-data:
    258         @$(NORMAL_INSTALL)
    259 
    260 install: install-exec install-data all
    261         @:
    262 
    263 uninstall:
    264 
    265 all: Makefile $(PROGRAMS)
    266 
     266
     267%.o: %.c
     268        @echo '$(COMPILE) -c $<'; \
     269        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     270        @-cp .deps/$(*F).pp .deps/$(*F).P; \
     271        tr ' ' '\012' < .deps/$(*F).pp \
     272          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     273            >> .deps/$(*F).P; \
     274        rm .deps/$(*F).pp
     275
     276%.lo: %.c
     277        @echo '$(LTCOMPILE) -c $<'; \
     278        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
     279        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
     280          < .deps/$(*F).pp > .deps/$(*F).P; \
     281        tr ' ' '\012' < .deps/$(*F).pp \
     282          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
     283            >> .deps/$(*F).P; \
     284        rm -f .deps/$(*F).pp
     285info-am:
     286info: info-am
     287dvi-am:
     288dvi: dvi-am
     289check-am: all-am
     290check: check-am
     291installcheck-am:
     292installcheck: installcheck-am
     293install-exec-am: install-exec-local
     294install-exec: install-exec-am
     295
     296install-data-am:
     297install-data: install-data-am
     298
     299install-am: all-am
     300        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     301install: install-am
     302uninstall-am:
     303uninstall: uninstall-am
     304all-am: Makefile $(PROGRAMS)
     305all-redirect: all-am
    267306install-strip:
    268         $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
     307        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
    269308installdirs:
    270309
    271310
    272311mostlyclean-generic:
    273         test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
    274312
    275313clean-generic:
    276         test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    277314
    278315distclean-generic:
    279         rm -f Makefile $(DISTCLEANFILES)
    280         rm -f config.cache config.log stamp-h stamp-h[0-9]*
    281         test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
     316        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     317        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
    282318
    283319maintainer-clean-generic:
    284         test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
    285         test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
    286 mostlyclean:  mostlyclean-noinstPROGRAMS mostlyclean-compile \
     320mostlyclean-am:  mostlyclean-noinstPROGRAMS mostlyclean-compile \
    287321                mostlyclean-tags mostlyclean-depend mostlyclean-generic
    288322
    289 clean:  clean-noinstPROGRAMS clean-compile clean-tags clean-depend \
    290                 clean-generic mostlyclean
    291 
    292 distclean:  distclean-noinstPROGRAMS distclean-compile distclean-tags \
    293                 distclean-depend distclean-generic clean
    294         rm -f config.status
    295 
    296 maintainer-clean:  maintainer-clean-noinstPROGRAMS \
     323mostlyclean: mostlyclean-am
     324
     325clean-am:  clean-noinstPROGRAMS clean-compile clean-tags clean-depend \
     326                clean-generic mostlyclean-am
     327
     328clean: clean-am
     329
     330distclean-am:  distclean-noinstPROGRAMS distclean-compile distclean-tags \
     331                distclean-depend distclean-generic clean-am
     332
     333distclean: distclean-am
     334        -rm -f config.status
     335
     336maintainer-clean-am:  maintainer-clean-noinstPROGRAMS \
    297337                maintainer-clean-compile maintainer-clean-tags \
    298338                maintainer-clean-depend maintainer-clean-generic \
    299                 distclean
     339                distclean-am
    300340        @echo "This command is intended for maintainers to use;"
    301341        @echo "it deletes files that may require special tools to rebuild."
    302         rm -f config.status
    303 
    304 .PHONY: default mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
     342
     343maintainer-clean: maintainer-clean-am
     344        -rm -f config.status
     345
     346.PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
    305347clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
    306348mostlyclean-compile distclean-compile clean-compile \
    307349maintainer-clean-compile tags mostlyclean-tags distclean-tags \
    308350clean-tags maintainer-clean-tags distdir mostlyclean-depend \
    309 distclean-depend clean-depend maintainer-clean-depend info dvi \
    310 installcheck install-exec install-data install uninstall all \
    311 installdirs mostlyclean-generic distclean-generic clean-generic \
    312 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     351distclean-depend clean-depend maintainer-clean-depend info-am info \
     352dvi-am dvi check check-am installcheck-am installcheck \
     353install-exec-local install-exec-am install-exec install-data-am \
     354install-data install-am install uninstall-am uninstall all-redirect \
     355all-am all installdirs mostlyclean-generic distclean-generic \
     356clean-generic maintainer-clean-generic clean mostlyclean distclean \
     357maintainer-clean
    313358
    314359
     
    321366        $(INSTALL_PROGRAM) binpatch $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools
    322367
    323 include $(top_srcdir)/../../../../../../../automake/local.am
     368debug-am:
     369
     370debug: debug-am
     371
     372debug_install-am:
     373
     374debug_install: debug_install-am
     375
     376.PHONY: debug debug_install debug-am
     377
     378profile-am:
     379
     380profile: profile-am
     381
     382profile_install-am:
     383
     384profile_install: profile_install-am
     385
     386.PHONY: profile profile_install profile-am
     387
     388preinstall-am:
     389
     390preinstall: preinstall-am
     391
     392.PHONY: preinstall preinstall-am
    324393
    325394# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • c/src/lib/libbsp/i386/pc386/tools/aclocal.m4

    rd115315 r8cdb582  
    1 dnl aclocal.m4 generated automatically by aclocal 1.2
     1dnl aclocal.m4 generated automatically by aclocal 1.4
     2
     3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4dnl This file is free software; the Free Software Foundation
     5dnl gives unlimited permission to copy and/or distribute it,
     6dnl with or without modifications, as long as this notice is preserved.
     7
     8dnl This program is distributed in the hope that it will be useful,
     9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11dnl PARTICULAR PURPOSE.
    212
    313dnl $Id$
     
    1020AC_DEFUN(RTEMS_TOP,
    1121[dnl
     22AC_ARG_WITH(target-subdir,
     23[  --with-target-subdir=DIR],
     24TARGET_SUBDIR="$withval",
     25TARGET_SUBDIR=".")
     26
    1227RTEMS_TOPdir="$1";
    1328AC_SUBST(RTEMS_TOPdir)
    1429
    1530PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     31test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    1632AC_SUBST(PROJECT_ROOT)
    1733
     
    3248AC_MSG_RESULT($RTEMS_VERSION)
    3349
    34 dnl FIXME: This once gets activated in future or will be removed
    35 dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
    36 dnl AC_SUBST(RTEMS_ROOT)
     50RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
     51AC_SUBST(RTEMS_ROOT)
    3752])dnl
    3853
     
    90105
    91106AC_DEFUN(AM_INIT_AUTOMAKE,
    92 [AC_REQUIRE([AM_PROG_INSTALL])
     107[AC_REQUIRE([AC_PROG_INSTALL])
    93108PACKAGE=[$1]
    94109AC_SUBST(PACKAGE)
     
    100115fi
    101116ifelse([$3],,
    102 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    103 AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
    104 AM_SANITY_CHECK
    105 AC_ARG_PROGRAM
     117AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     118AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
     119AC_REQUIRE([AM_SANITY_CHECK])
     120AC_REQUIRE([AC_ARG_PROGRAM])
    106121dnl FIXME This is truly gross.
    107122missing_dir=`cd $ac_aux_dir && pwd`
     
    111126AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
    112127AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
    113 AC_PROG_MAKE_SET])
    114 
    115 
    116 # serial 1
    117 
    118 AC_DEFUN(AM_PROG_INSTALL,
    119 [AC_REQUIRE([AC_PROG_INSTALL])
    120 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
    121 AC_SUBST(INSTALL_SCRIPT)dnl
    122 ])
     128AC_REQUIRE([AC_PROG_MAKE_SET])])
    123129
    124130#
     
    138144if (
    139145   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
    140    if test "$@" = "X"; then
     146   if test "[$]*" = "X"; then
    141147      # -L didn't work.
    142148      set X `ls -t $srcdir/configure conftestfile`
    143149   fi
     150   if test "[$]*" != "X $srcdir/configure conftestfile" \
     151      && test "[$]*" != "X conftestfile $srcdir/configure"; then
     152
     153      # If neither matched, then we have a broken ls.  This can happen
     154      # if, for instance, CONFIG_SHELL is bash and it inherits a
     155      # broken ls alias from the environment.  This has actually
     156      # happened.  Such a system could not be considered "sane".
     157      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     158alias in your environment])
     159   fi
     160
    144161   test "[$]2" = conftestfile
    145162   )
  • c/src/lib/libbsp/i386/pc386/tools/configure

    rd115315 r8cdb582  
    22
    33# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.12
     4# Generated automatically using autoconf version 2.13
    55# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    66#
     
    1212ac_default_prefix=/usr/local
    1313# Any additions from configure.in:
     14ac_help="$ac_help
     15  --with-target-subdir=DIR"
    1416
    1517# Initialize some variables set by options.
     
    5052subdirs=
    5153MFLAGS= MAKEFLAGS=
     54SHELL=${CONFIG_SHELL-/bin/sh}
    5255# Maximum number of lines to put in a shell here document.
    5356ac_max_here_lines=12
     
    333336
    334337  -version | --version | --versio | --versi | --vers)
    335     echo "configure generated by autoconf version 2.12"
     338    echo "configure generated by autoconf version 2.13"
    336339    exit 0 ;;
    337340
     
    503506ac_cpp='$CPP $CPPFLAGS'
    504507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    505 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    506509cross_compiling=$ac_cv_prog_cc_cross
    507510
     511ac_exeext=
     512ac_objext=o
    508513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    509514  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     
    539544
    540545
     546# Check whether --with-target-subdir or --without-target-subdir was given.
     547if test "${with_target_subdir+set}" = set; then
     548  withval="$with_target_subdir"
     549  TARGET_SUBDIR="$withval"
     550else
     551  TARGET_SUBDIR="."
     552fi
     553
     554
    541555RTEMS_TOPdir="../../../../../../..";
    542556
    543557
    544558PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
     559test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
    545560
    546561
    547562echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
    548 echo "configure:549: checking for RTEMS Version" >&5
     563echo "configure:564: checking for RTEMS Version" >&5
    549564if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
    550565