Edit

kc3-lang/automake/m4/lead-dot.m4

Branch :

  • Show log

    Commit

  • Author : Alexandre Duret-Lutz
    Date : 2003-01-13 14:04:41
    Hash : bb174399
    Message : Use `_dirstamp' when the file-system doesn't support `.dirstamp'. * m4/lead-dot.m4: New file. * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4 * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.: * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define DEPDIR using am__leading_dot. * automake.in (require_build_directory): Define am__dirstamp, a new variable for the dirstamp basename, based on am__leading_dot. * tests/subobj6.test: Move all `test -f' into Makefiles, so we can use $(am__dirstamp). Reported by Richard Dawe.

  • m4/lead-dot.m4
  • #                                                          -*- 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])])