forked from Imagelibrary/rtems
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
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
This commit is contained in:
@@ -15,13 +15,6 @@
|
||||
#
|
||||
|
||||
|
||||
# $Id$
|
||||
|
||||
# NOTE: This is a temporary work-around to keep
|
||||
# "make debug" and "make debug_install" working.
|
||||
# Once automake is fully integrated these make targets
|
||||
# and this file will probably be removed
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
@@ -78,6 +71,7 @@ MAKEINFO = @MAKEINFO@
|
||||
PACKAGE = @PACKAGE@
|
||||
PERL = @PERL@
|
||||
PROJECT_ROOT = @PROJECT_ROOT@
|
||||
RTEMS_ROOT = @RTEMS_ROOT@
|
||||
RTEMS_TOPdir = @RTEMS_TOPdir@
|
||||
VERSION = @VERSION@
|
||||
|
||||
@@ -189,7 +183,7 @@ check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am: install-exec-local
|
||||
install-exec-am:
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am:
|
||||
@@ -200,7 +194,7 @@ install-am: all-am
|
||||
install: install-am
|
||||
uninstall-am:
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile $(SCRIPTS)
|
||||
all-am: Makefile $(SCRIPTS) all-local
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
@@ -237,15 +231,15 @@ maintainer-clean: maintainer-clean-am
|
||||
-rm -f config.status
|
||||
|
||||
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
|
||||
installcheck-am installcheck install-exec-local install-exec-am \
|
||||
install-exec install-data-am install-data install-am install \
|
||||
uninstall-am uninstall all-redirect all-am all installdirs \
|
||||
mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
installcheck-am installcheck install-exec-am install-exec \
|
||||
install-data-am install-data install-am install uninstall-am uninstall \
|
||||
all-local all-redirect all-am all installdirs mostlyclean-generic \
|
||||
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||
mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# HACK: install to build-tree
|
||||
install-exec-local: $(SCRIPTS)
|
||||
all-local: $(SCRIPTS)
|
||||
$(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/tests
|
||||
for i in $(SCRIPTS); do \
|
||||
$(INSTALL_SCRIPT) $$i $(PROJECT_ROOT)/${RTEMS_BSP}/tests ; \
|
||||
@@ -259,6 +253,8 @@ debug_install-am:
|
||||
|
||||
debug_install: debug_install-am
|
||||
|
||||
.PHONY: debug debug_install debug-am
|
||||
|
||||
profile-am:
|
||||
|
||||
profile: profile-am
|
||||
@@ -267,7 +263,13 @@ profile_install-am:
|
||||
|
||||
profile_install: profile_install-am
|
||||
|
||||
.PHONY: debug debug_install profile profile_install
|
||||
.PHONY: profile profile_install profile-am
|
||||
|
||||
preinstall-am:
|
||||
|
||||
preinstall: preinstall-am
|
||||
|
||||
.PHONY: preinstall preinstall-am
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
|
||||
11
c/src/lib/libbsp/unix/posix/tools/aclocal.m4
vendored
11
c/src/lib/libbsp/unix/posix/tools/aclocal.m4
vendored
@@ -19,10 +19,16 @@ dnl $1 .. relative path from this configure.in to the toplevel configure.in
|
||||
dnl
|
||||
AC_DEFUN(RTEMS_TOP,
|
||||
[dnl
|
||||
AC_ARG_WITH(target-subdir,
|
||||
[ --with-target-subdir=DIR],
|
||||
TARGET_SUBDIR="$withval",
|
||||
TARGET_SUBDIR=".")
|
||||
|
||||
RTEMS_TOPdir="$1";
|
||||
AC_SUBST(RTEMS_TOPdir)
|
||||
|
||||
PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
|
||||
test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
|
||||
AC_SUBST(PROJECT_ROOT)
|
||||
|
||||
dnl Determine RTEMS Version string from the VERSION file
|
||||
@@ -41,9 +47,8 @@ AC_MSG_ERROR(Unable to determine version)
|
||||
fi
|
||||
AC_MSG_RESULT($RTEMS_VERSION)
|
||||
|
||||
dnl FIXME: This once gets activated in future or will be removed
|
||||
dnl RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
|
||||
dnl AC_SUBST(RTEMS_ROOT)
|
||||
RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
|
||||
AC_SUBST(RTEMS_ROOT)
|
||||
])dnl
|
||||
|
||||
dnl
|
||||
|
||||
45
c/src/lib/libbsp/unix/posix/tools/configure
vendored
45
c/src/lib/libbsp/unix/posix/tools/configure
vendored
@@ -11,6 +11,8 @@
|
||||
ac_help=
|
||||
ac_default_prefix=/usr/local
|
||||
# Any additions from configure.in:
|
||||
ac_help="$ac_help
|
||||
--with-target-subdir=DIR"
|
||||
|
||||
# Initialize some variables set by options.
|
||||
# The variables have the same names as the options, with
|
||||
@@ -541,14 +543,24 @@ ac_config_sub=$ac_aux_dir/config.sub
|
||||
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
||||
|
||||
|
||||
# Check whether --with-target-subdir or --without-target-subdir was given.
|
||||
if test "${with_target_subdir+set}" = set; then
|
||||
withval="$with_target_subdir"
|
||||
TARGET_SUBDIR="$withval"
|
||||
else
|
||||
TARGET_SUBDIR="."
|
||||
fi
|
||||
|
||||
|
||||
RTEMS_TOPdir="../../../../../../..";
|
||||
|
||||
|
||||
PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
|
||||
test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
|
||||
|
||||
|
||||
echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
|
||||
echo "configure:552: checking for RTEMS Version" >&5
|
||||
echo "configure:564: checking for RTEMS Version" >&5
|
||||
if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
|
||||
RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
|
||||
sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'`
|
||||
@@ -560,6 +572,8 @@ if test -z "$RTEMS_VERSION"; then
|
||||
fi
|
||||
echo "$ac_t""$RTEMS_VERSION" 1>&6
|
||||
|
||||
RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
|
||||
|
||||
|
||||
|
||||
# Do some error checking and defaulting for the host and target type.
|
||||
@@ -589,7 +603,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
|
||||
fi
|
||||
|
||||
echo $ac_n "checking host system type""... $ac_c" 1>&6
|
||||
echo "configure:593: checking host system type" >&5
|
||||
echo "configure:607: checking host system type" >&5
|
||||
|
||||
host_alias=$host
|
||||
case "$host_alias" in
|
||||
@@ -610,7 +624,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||
echo "$ac_t""$host" 1>&6
|
||||
|
||||
echo $ac_n "checking target system type""... $ac_c" 1>&6
|
||||
echo "configure:614: checking target system type" >&5
|
||||
echo "configure:628: checking target system type" >&5
|
||||
|
||||
target_alias=$target
|
||||
case "$target_alias" in
|
||||
@@ -628,7 +642,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
||||
echo "$ac_t""$target" 1>&6
|
||||
|
||||
echo $ac_n "checking build system type""... $ac_c" 1>&6
|
||||
echo "configure:632: checking build system type" >&5
|
||||
echo "configure:646: checking build system type" >&5
|
||||
|
||||
build_alias=$build
|
||||
case "$build_alias" in
|
||||
@@ -653,7 +667,7 @@ test "$host_alias" != "$target_alias" &&
|
||||
|
||||
|
||||
echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
|
||||
echo "configure:657: checking rtems target cpu" >&5
|
||||
echo "configure:671: checking rtems target cpu" >&5
|
||||
case "${target}" in
|
||||
# hpux unix port should go here
|
||||
i[3456]86-go32-rtems*)
|
||||
@@ -693,7 +707,7 @@ echo "$ac_t""$target_cpu" 1>&6
|
||||
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
||||
# ./install, which can be erroneously created by make from ./install.sh.
|
||||
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
||||
echo "configure:697: checking for a BSD compatible install" >&5
|
||||
echo "configure:711: checking for a BSD compatible install" >&5
|
||||
if test -z "$INSTALL"; then
|
||||
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@@ -746,7 +760,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
||||
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
||||
|
||||
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
|
||||
echo "configure:750: checking whether build environment is sane" >&5
|
||||
echo "configure:764: checking whether build environment is sane" >&5
|
||||
# Just in case
|
||||
sleep 1
|
||||
echo timestamp > conftestfile
|
||||
@@ -803,7 +817,7 @@ test "$program_suffix" != NONE &&
|
||||
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
|
||||
|
||||
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
|
||||
echo "configure:807: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
||||
echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
||||
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
@@ -842,7 +856,7 @@ fi
|
||||
|
||||
missing_dir=`cd $ac_aux_dir && pwd`
|
||||
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
|
||||
echo "configure:846: checking for working aclocal" >&5
|
||||
echo "configure:860: checking for working aclocal" >&5
|
||||
# Run test in a subshell; some versions of sh will print an error if
|
||||
# an executable is not found, even if stderr is redirected.
|
||||
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||
@@ -855,7 +869,7 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
|
||||
echo "configure:859: checking for working autoconf" >&5
|
||||
echo "configure:873: checking for working autoconf" >&5
|
||||
# Run test in a subshell; some versions of sh will print an error if
|
||||
# an executable is not found, even if stderr is redirected.
|
||||
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||
@@ -868,7 +882,7 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for working automake""... $ac_c" 1>&6
|
||||
echo "configure:872: checking for working automake" >&5
|
||||
echo "configure:886: checking for working automake" >&5
|
||||
# Run test in a subshell; some versions of sh will print an error if
|
||||
# an executable is not found, even if stderr is redirected.
|
||||
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||
@@ -881,7 +895,7 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
|
||||
echo "configure:885: checking for working autoheader" >&5
|
||||
echo "configure:899: checking for working autoheader" >&5
|
||||
# Run test in a subshell; some versions of sh will print an error if
|
||||
# an executable is not found, even if stderr is redirected.
|
||||
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||
@@ -894,7 +908,7 @@ else
|
||||
fi
|
||||
|
||||
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
|
||||
echo "configure:898: checking for working makeinfo" >&5
|
||||
echo "configure:912: checking for working makeinfo" >&5
|
||||
# Run test in a subshell; some versions of sh will print an error if
|
||||
# an executable is not found, even if stderr is redirected.
|
||||
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||
@@ -914,7 +928,7 @@ do
|
||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||
set dummy $ac_prog; ac_word=$2
|
||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||
echo "configure:918: checking for $ac_word" >&5
|
||||
echo "configure:932: checking for $ac_word" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@@ -959,7 +973,7 @@ fi
|
||||
# Extract the first word of "perl", so it can be a program name with args.
|
||||
set dummy perl; ac_word=$2
|
||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
||||
echo "configure:963: checking for $ac_word" >&5
|
||||
echo "configure:977: checking for $ac_word" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
@@ -1159,6 +1173,7 @@ s%@infodir@%$infodir%g
|
||||
s%@mandir@%$mandir%g
|
||||
s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
|
||||
s%@PROJECT_ROOT@%$PROJECT_ROOT%g
|
||||
s%@RTEMS_ROOT@%$RTEMS_ROOT%g
|
||||
s%@host@%$host%g
|
||||
s%@host_alias@%$host_alias%g
|
||||
s%@host_cpu@%$host_cpu%g
|
||||
|
||||
Reference in New Issue
Block a user