From e3407a426a8e228116cd2ecce14dd4e82f764448 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 30 Nov 2003 07:02:49 +0000 Subject: 2003-11-30 Ralf Corsepius * aclocal/lead-dot.m4: New (from automake-1.7f). * aclocal/rtems-top.m4: Require AM_SET_LEADING_DOT. Add AC_SUBST(dirstamp). --- cpukit/ChangeLog | 6 ++++++ cpukit/aclocal/lead-dot.m4 | 32 ++++++++++++++++++++++++++++++++ cpukit/aclocal/rtems-top.m4 | 3 +++ 3 files changed, 41 insertions(+) create mode 100644 cpukit/aclocal/lead-dot.m4 (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b5d2d619fd..f26e2e5484 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2003-11-30 Ralf Corsepius + + * aclocal/lead-dot.m4: New (from automake-1.7f). + * aclocal/rtems-top.m4: Require AM_SET_LEADING_DOT. + Add AC_SUBST(dirstamp). + 2003-11-28 Ralf Corsepius * configure.ac: Reflect having removed diff --git a/cpukit/aclocal/lead-dot.m4 b/cpukit/aclocal/lead-dot.m4 new file mode 100644 index 0000000000..c8789fb2ce --- /dev/null +++ b/cpukit/aclocal/lead-dot.m4 @@ -0,0 +1,32 @@ +# -*- Autoconf -*- +# Copyright (C) 2003 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 1 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) diff --git a/cpukit/aclocal/rtems-top.m4 b/cpukit/aclocal/rtems-top.m4 index c762acee65..952dcd6133 100644 --- a/cpukit/aclocal/rtems-top.m4 +++ b/cpukit/aclocal/rtems-top.m4 @@ -10,6 +10,7 @@ dnl AC_DEFUN([RTEMS_TOP], [dnl AC_REQUIRE([RTEMS_VERSIONING]) +AC_REQUIRE([AM_SET_LEADING_DOT]) AC_CONFIG_AUX_DIR([$1]) AC_CHECK_PROGS(MAKE, gmake make) AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl @@ -45,4 +46,6 @@ AS_IF([test -r "${srcdir}/${RTEMS_TOPdir}/cpukit/aclocal/version.m4"], [], [AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/cpukit/aclocal/version.m4])]) AC_MSG_RESULT([_RTEMS_VERSION]) + +AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp]) ])dnl -- cgit v1.2.3