2999
|
1 /* config.h: master configuration file, included first by all compilable |
|
2 source files (not headers). |
|
3 |
3172
|
4 Copyright (C) 1993, 95, 96, 97 Free Software Foundation, Inc. |
2999
|
5 |
|
6 This library is free software; you can redistribute it and/or |
|
7 modify it under the terms of the GNU Library General Public |
|
8 License as published by the Free Software Foundation; either |
|
9 version 2 of the License, or (at your option) any later version. |
|
10 |
|
11 This library is distributed in the hope that it will be useful, |
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 Library General Public License for more details. |
|
15 |
|
16 You should have received a copy of the GNU Library General Public |
|
17 License along with this library; if not, write to the Free Software |
|
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
|
19 |
|
20 #ifndef KPATHSEA_CONFIG_H |
|
21 #define KPATHSEA_CONFIG_H |
|
22 |
3172
|
23 /* System defines are for non-Unix systems only. (Testing for all Unix |
|
24 variations should be done in configure.) Presently the defines used |
|
25 are: AMIGA DOS OS2 VMCMS VMS WIN32. I do not use any of these systems |
|
26 myself; if you do, I'd be grateful for any changes. --kb@mail.tug.org */ |
|
27 |
|
28 /* If we have either DOS or OS2, we are DOSISH. */ |
|
29 #if defined (DOS) || defined (OS2) || defined (WIN32) || defined(__MSDOS__) |
|
30 #define DOSISH |
|
31 #endif |
|
32 |
|
33 #if defined (DOSISH) |
|
34 #define MONOCASE_FILENAMES /* case-insensitive filename comparisons */ |
|
35 #endif |
|
36 |
4064
|
37 #if defined(__MINGW32__) |
|
38 #include <windows.h> |
|
39 #include <fcntl.h> |
|
40 #include <dirent.h> |
|
41 #elif defined(WIN32) |
2999
|
42 #define __STDC__ 1 |
3172
|
43 #include <kpathsea/win32lib.h> |
2999
|
44 #endif /* not WIN32 */ |
|
45 |
3172
|
46 #ifdef __DJGPP__ |
|
47 #include <fcntl.h> /* for long filenames' stuff */ |
|
48 #include <dir.h> /* for `getdisk' */ |
|
49 #include <io.h> /* for `setmode' */ |
|
50 #endif |
|
51 |
|
52 /* Some drivers have partially integrated kpathsea changes. */ |
|
53 #ifndef KPATHSEA |
|
54 #define KPATHSEA 32 |
|
55 #endif |
|
56 |
2999
|
57 /* System dependencies that are figured out by `configure'. If we are |
|
58 compiling standalone, we get our c-auto.h. Otherwise, the package |
|
59 containing us must provide this (unless it can somehow generate ours |
3172
|
60 from c-auto.in). We use <...> instead of "..." so that the current |
2999
|
61 cpp directory (i.e., kpathsea/) won't be searched. */ |
|
62 #include <c-auto.h> |
|
63 |
|
64 #include <kpathsea/c-std.h> /* <stdio.h>, <math.h>, etc. */ |
|
65 |
|
66 #include <kpathsea/c-proto.h> /* Macros to discard or keep prototypes. */ |
|
67 |
|
68 #include <kpathsea/debug.h> /* Runtime tracing. */ |
|
69 #include <kpathsea/lib.h> /* STREQ, etc. */ |
|
70 #include <kpathsea/types.h> /* <sys/types.h>, boolean, string, etc. */ |
|
71 #include <kpathsea/progname.h> /* for program_invocation_*name */ |
|
72 |
|
73 |
|
74 /* If you want to find subdirectories in a directory with non-Unix |
|
75 semantics (specifically, if a directory with no subdirectories does |
|
76 not have exactly two links), define this. */ |
3172
|
77 #if !defined (VMS) && !defined (VMCMS) |
|
78 #if !defined (DOSISH) || defined(__DJGPP__) |
|
79 /* Surprise! DJGPP returns st_nlink exactly like on Unix. */ |
2999
|
80 #define ST_NLINK_TRICK |
3172
|
81 #endif /* either not DOSISH or __DJGPP__ */ |
2999
|
82 #endif /* not DOS and not VMS and not VMCMS */ |
|
83 |
|
84 #ifdef AMIGA |
|
85 /* No popen/pclose on Amiga, but rather than put #ifdef's in tex-make.c, |
|
86 let's get rid of the functions here. (CallMF will automatically |
|
87 generate fonts.) pclose must not be simply empty, since it still |
|
88 occurs in a comparison. */ |
|
89 #define popen(cmd, mode) NULL |
|
90 #define pclose(file) 0 |
|
91 #endif /* AMIGA */ |
|
92 |
|
93 #ifdef OS2 |
|
94 #define access ln_access |
|
95 #define chmod ln_chmod |
|
96 #define creat ln_creat |
|
97 #define fopen ln_fopen |
|
98 #define freopen ln_freopen |
|
99 #define lstat ln_lstat |
|
100 #define open ln_open |
|
101 #define remove ln_remove |
|
102 #define rename ln_rename |
|
103 #define sopen ln_sopen |
|
104 #define stat ln_stat |
|
105 #define unlink ln_unlink |
|
106 #endif /* OS2 */ |
|
107 |
|
108 #endif /* not KPATHSEA_CONFIG_H */ |