test harness: improve catching of usage errors in script 'test-driver'
[platform/upstream/automake.git] / m4 / lead-dot.m4
1 ##                                                          -*- Autoconf -*-
2 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
3 #
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # Check whether the underlying file-system supports filenames
9 # with a leading dot.  For instance MS-DOS doesn't.
10 AC_DEFUN([AM_SET_LEADING_DOT],
11 [rm -rf .tst 2>/dev/null
12 mkdir .tst 2>/dev/null
13 if test -d .tst; then
14   am__leading_dot=.
15 else
16   am__leading_dot=_
17 fi
18 rmdir .tst 2>/dev/null
19 AC_SUBST([am__leading_dot])])