summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-11-30 07:02:49 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-11-30 07:02:49 +0000
commite3407a426a8e228116cd2ecce14dd4e82f764448 (patch)
treecda124bb4d10a29a389341c5e26fba3a2b9035c8 /cpukit/aclocal
parent2003-11-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-e3407a426a8e228116cd2ecce14dd4e82f764448.tar.bz2
2003-11-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/lead-dot.m4: New (from automake-1.7f). * aclocal/rtems-top.m4: Require AM_SET_LEADING_DOT. Add AC_SUBST(dirstamp).
Diffstat (limited to 'cpukit/aclocal')
-rw-r--r--cpukit/aclocal/lead-dot.m432
-rw-r--r--cpukit/aclocal/rtems-top.m43
2 files changed, 35 insertions, 0 deletions
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