File: acx_check_dos_filesys.m4

package info (click to toggle)
autoconf-archive 20060312-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,180 kB
  • ctags: 13
  • sloc: sh: 455; makefile: 44
file content (31 lines) | stat: -rw-r--r-- 1,074 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dnl @synopsis ACX_CHECK_DOS_FILESYS_LIMITATIONS
dnl
dnl Check if the target is running on DOS. DOS doesn't allow a dot as
dnl the first character, more than one dot, more than eight characters
dnl before a dot, and just three letters after the dot. A DOS VM
dnl running under Windows 9X does not have these restrictions. A DOS
dnl program can be running in either environment, so its important to
dnl code accordingly. Defines HAVE_DOS_FILESYS_LIMITATIONS if under
dnl DOS.
dnl
dnl Use in conjunction with ACX_CHECK_PATHNAME_STYLE_DOS.
dnl
dnl @category Misc
dnl @author Mark Elbrecht <snowball3@bigfoot.com>
dnl @version 2000-07-19
dnl @license GPLWithACException

AC_DEFUN([ACX_CHECK_DOS_FILESYS_LIMITATIONS],
[AC_MSG_CHECKING(for potential DOS filename limitations)
AC_CACHE_VAL(acx_cv_dos_limitations,
[AC_REQUIRE([AC_CANONICAL_HOST])
acx_cv_dos_limitations="yes"
case ${host_os} in
  *dos | *djgpp) acx_cv_dos_limitations="yes"
esac
])
AC_MSG_RESULT($acx_cv_dos_limitations)
if test $acx_cv_dos_limitations = "yes"; then
  AC_DEFINE(HAVE_DOS_FILESYS_LIMITATIONS)
fi
])