annotate m4/dos.m4 @ 285:9010796c6253 2.3 2.3.1

Generated manual for distribution
author lost
date Fri, 24 Apr 2009 22:36:09 +0000
parents 2cb097e760a5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
1 #serial 10 -*- autoconf -*-
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
2
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
3 # Define some macros required for proper operation of code in lib/*.c
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
4 # on MSDOS/Windows systems.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
5
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
6 # Copyright (C) 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
7 # This file is free software; the Free Software Foundation
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
8 # gives unlimited permission to copy and/or distribute it,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
9 # with or without modifications, as long as this notice is preserved.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
10
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
11 # From Jim Meyering.
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
12
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
13 AC_DEFUN([gl_AC_DOS],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
14 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
15 AC_CACHE_CHECK([whether system is Windows or MSDOS], [ac_cv_win_or_dos],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
16 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
17 AC_TRY_COMPILE([],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
18 [#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
19 neither MSDOS nor Windows
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
20 #endif],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
21 [ac_cv_win_or_dos=yes],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
22 [ac_cv_win_or_dos=no])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
23 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
24
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
25 if test x"$ac_cv_win_or_dos" = xyes; then
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
26 ac_fs_accepts_drive_letter_prefix=1
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
27 ac_fs_backslash_is_file_name_separator=1
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
28 AC_CACHE_CHECK([whether drive letter can start relative path],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
29 [ac_cv_drive_letter_can_be_relative],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
30 [
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
31 AC_TRY_COMPILE([],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
32 [#if defined __CYGWIN__
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
33 drive letters are always absolute
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
34 #endif],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
35 [ac_cv_drive_letter_can_be_relative=yes],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
36 [ac_cv_drive_letter_can_be_relative=no])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
37 ])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
38 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
39 ac_fs_drive_letter_can_be_relative=1
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
40 else
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
41 ac_fs_drive_letter_can_be_relative=0
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
42 fi
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
43 else
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
44 ac_fs_accepts_drive_letter_prefix=0
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
45 ac_fs_backslash_is_file_name_separator=0
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
46 ac_fs_drive_letter_can_be_relative=0
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
47 fi
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
48
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
49 AC_DEFINE_UNQUOTED([FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
50 $ac_fs_accepts_drive_letter_prefix,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
51 [Define on systems for which file names may have a so-called
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
52 `drive letter' prefix, define this to compute the length of that
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
53 prefix, including the colon.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
54
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
55 AH_VERBATIM(ISSLASH,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
56 [#if FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
57 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
58 #else
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
59 # define ISSLASH(C) ((C) == '/')
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
60 #endif])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
61
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
62 AC_DEFINE_UNQUOTED([FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
63 $ac_fs_backslash_is_file_name_separator,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
64 [Define if the backslash character may also serve as a file name
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
65 component separator.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
66
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
67 AC_DEFINE_UNQUOTED([FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE],
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
68 $ac_fs_drive_letter_can_be_relative,
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
69 [Define if a drive letter prefix denotes a relative path if it is
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
70 not followed by a file name component separator.])
2cb097e760a5 Added various generated files in prep for release
lost
parents:
diff changeset
71 ])