Add support for "::=" simple assignment operator.
[make.git] / config / dospaths.m4
blobb341aca1f82378f07b19289202d4bed1cf7b223d
1 # Test if the system uses DOS-style pathnames (drive specs and backslashes)
2 # By Paul Smith <psmith@gnu.org>.  Based on dos.m4 by Jim Meyering.
4 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software
6 # Foundation, Inc.
7 # This file is part of GNU Make.
9 # GNU Make is free software; you can redistribute it and/or modify it under
10 # the terms of the GNU General Public License as published by the Free Software
11 # Foundation; either version 3 of the License, or (at your option) any later
12 # version.
14 # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
15 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17 # details.
19 # You should have received a copy of the GNU General Public License along with
20 # this program.  If not, see <http://www.gnu.org/licenses/>.
22 AC_DEFUN([pds_AC_DOS_PATHS], [
23   AC_CACHE_CHECK([whether system uses MSDOS-style paths], [ac_cv_dos_paths], [
24     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
25 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
26 neither MSDOS nor Windows nor OS2
27 #endif
28 ]])],
29         [ac_cv_dos_paths=yes],
30         [ac_cv_dos_paths=no])])
32   AS_IF([test x"$ac_cv_dos_paths" = xyes],
33   [ AC_DEFINE_UNQUOTED([HAVE_DOS_PATHS], 1,
34                        [Define if the system uses DOS-style pathnames.])])