1 | # Test if the system uses DOS-style pathnames (drive specs and backslashes)
|
---|
2 | # By Paul Smith <[email protected]>. 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 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 the
|
---|
9 | # terms of the GNU General Public License as published by the Free Software
|
---|
10 | # Foundation; either version 2, or (at your option) any later version.
|
---|
11 | #
|
---|
12 | # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
13 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
---|
14 | # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
---|
15 | #
|
---|
16 | # You should have received a copy of the GNU General Public License along with
|
---|
17 | # GNU Make; see the file COPYING. If not, write to the Free Software
|
---|
18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
---|
19 |
|
---|
20 | AC_DEFUN([pds_AC_DOS_PATHS],
|
---|
21 | [
|
---|
22 | AC_CACHE_CHECK([whether system uses MSDOS-style paths], [ac_cv_dos_paths],
|
---|
23 | [
|
---|
24 | AC_COMPILE_IFELSE([
|
---|
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])
|
---|
31 | ])
|
---|
32 |
|
---|
33 | if test x"$ac_cv_dos_paths" = xyes; then
|
---|
34 | AC_DEFINE_UNQUOTED([HAVE_DOS_PATHS], 1,
|
---|
35 | [Define if the system uses DOS-style pathnames.])
|
---|
36 | fi
|
---|
37 | ])
|
---|