From 82bdc05755bddae48b0de8c3b19c6d0c8b8edfa8 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 1 Dec 2003 06:29:27 +0000 Subject: 2003-12-01 Ralf Corsepius * aclocal/lead-dot.m4: New (from automake-1.7f). * aclocal/rtems-top.m4: Require AM_SET_LEADING_DOT. Add AC_SUBST(dirstamp). --- c/src/ChangeLog | 6 ++++++ c/src/aclocal/lead-dot.m4 | 32 ++++++++++++++++++++++++++++++++ c/src/aclocal/rtems-top.m4 | 3 +++ 3 files changed, 41 insertions(+) create mode 100644 c/src/aclocal/lead-dot.m4 diff --git a/c/src/ChangeLog b/c/src/ChangeLog index a0cf767291..074a3adece 100644 --- a/c/src/ChangeLog +++ b/c/src/ChangeLog @@ -1,3 +1,9 @@ +2003-12-01 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-26 Ralf Corsepius * aclocal/bsp-arg-enable.m4, aclocal/canonical-target-name.m4, diff --git a/c/src/aclocal/lead-dot.m4 b/c/src/aclocal/lead-dot.m4 new file mode 100644 index 0000000000..c8789fb2ce --- /dev/null +++ b/c/src/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/c/src/aclocal/rtems-top.m4 b/c/src/aclocal/rtems-top.m4 index 1cd739f8f7..b0a6f35700 100644 --- a/c/src/aclocal/rtems-top.m4 +++ b/c/src/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}/aclocal/version.m4"], [], [AC_MSG_ERROR([Unable to find ${RTEMS_TOPdir}/aclocal/version.m4])]) AC_MSG_RESULT([_RTEMS_VERSION]) + +AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp]) ])dnl -- cgit v1.2.3