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.
|
---|
3 | #
|
---|
4 | # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
---|
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
---|
6 | # This file is part of GNU Make.
|
---|
7 | #
|
---|
8 | # GNU Make is free software; you can redistribute it and/or modify it under
|
---|
9 | # the terms of the GNU General Public License as published by the Free Software
|
---|
10 | # Foundation; either version 3 of the License, or (at your option) any later
|
---|
11 | # version.
|
---|
12 | #
|
---|
13 | # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
14 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
---|
15 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
---|
16 | # details.
|
---|
17 | #
|
---|
18 | # You should have received a copy of the GNU General Public License along with
|
---|
19 | # this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
20 |
|
---|
21 | AC_DEFUN([pds_AC_DOS_PATHS],
|
---|
22 | [
|
---|
23 | AC_CACHE_CHECK([whether system uses MSDOS-style paths], [ac_cv_dos_paths],
|
---|
24 | [
|
---|
25 | AC_COMPILE_IFELSE([
|
---|
26 | #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
|
---|
27 | neither MSDOS nor Windows nor OS2
|
---|
28 | #endif
|
---|
29 | ],
|
---|
30 | [ac_cv_dos_paths=yes],
|
---|
31 | [ac_cv_dos_paths=no])
|
---|
32 | ])
|
---|
33 |
|
---|
34 | if test x"$ac_cv_dos_paths" = xyes; then
|
---|
35 | AC_DEFINE_UNQUOTED([HAVE_DOS_PATHS], 1,
|
---|
36 | [Define if the system uses DOS-style pathnames.])
|
---|
37 | fi
|
---|
38 | ])
|
---|