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