diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2017-06-16 23:07:00 +0200 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2017-06-16 23:07:00 +0200 |
commit | cc7231cc3668a387ae36905efca11f9d236c8df6 (patch) | |
tree | f0cf53f6c41586cabfead192ab344bdf7b16a77b /m4 | |
parent | 1370ce5f83c54df7ef863abb2ade73f3d5ce69e0 (diff) | |
parent | c946ae6f25422d45e54de0fd69309cbb438f942d (diff) | |
download | automake-cc7231cc3668a387ae36905efca11f9d236c8df6.tar.gz |
Merge branch 'minor'
Diffstat (limited to 'm4')
-rw-r--r-- | m4/lead-dot.m4 | 19 | ||||
-rw-r--r-- | m4/mkdirp.m4 | 32 | ||||
-rw-r--r-- | m4/python.m4 | 3 |
3 files changed, 53 insertions, 1 deletions
diff --git a/m4/lead-dot.m4 b/m4/lead-dot.m4 new file mode 100644 index 000000000..a82932169 --- /dev/null +++ b/m4/lead-dot.m4 @@ -0,0 +1,19 @@ +## -*- Autoconf -*- +# Copyright (C) 2003-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# 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/m4/mkdirp.m4 b/m4/mkdirp.m4 new file mode 100644 index 000000000..511f52675 --- /dev/null +++ b/m4/mkdirp.m4 @@ -0,0 +1,32 @@ +## -*- Autoconf -*- +# Copyright (C) 2003-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check for 'mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl FIXME we are no longer going to remove this! adjust warning +dnl FIXME message accordingly. +AC_DIAGNOSE([obsolete], +[$0: this macro is deprecated, and will soon be removed. +You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead, +and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.]) +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) diff --git a/m4/python.m4 b/m4/python.m4 index 790e68ba7..6d9e93401 100644 --- a/m4/python.m4 +++ b/m4/python.m4 @@ -36,8 +36,9 @@ AC_DEFUN([AM_PATH_PYTHON], [ dnl Find a Python interpreter. Python versions prior to 2.0 are not dnl supported. (2.0 was released on October 16, 2000). + dnl FIXME: Remove the need to hard-code Python versions here. m4_define_default([_AM_PYTHON_INTERPRETER_LIST], -[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl +[python python2 python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 dnl python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0]) AC_ARG_VAR([PYTHON], [the Python interpreter]) |