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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376
|
/* This configuration file is for all non-Unix OS */
/*
Copyright (C) 2004-2016 John E. Davis
This file is part of the S-Lang Library.
The S-Lang Library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The S-Lang Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
*/
#ifndef SL_CONFIG_H
#define SL_CONFIG_H
#ifdef VMS
# ifdef __DECC
# define HAVE_STDLIB_H
# endif
/* Borland's compiler complains about long constants, so I will work
* around it as follows:
*/
# define VMS_VERSION_602 60200000
# define VMS_VERSION_700 70000000
# if __VMS_VER >= VMS_VERSION_602
# define HAVE_UNISTD_H
# endif
#endif
/* [JMS:BC5] The Borland v5.x compiler defines some things that other versions,
* and MSC don't, so we can check for those using ifdef __BORLAND_V5__
*/
#if defined(__BORLANDC__) && ((__BORLANDC__>>8) == 0x5)
# define __BORLAND_V5__
#endif
#if defined(__WATCOMC__) && defined(__DOS__)
# define DOS386
#endif
/* Set of the various defines for pc systems. This includes OS/2 */
/* DJGPP has a split personality. It tries implement a unix like environment
* under MSDOS. Unfortunately, the personalities clash.
*/
#ifdef __GO32__
# ifndef __DJGPP__
# define __DJGPP__ 1
# endif
#endif
#if defined(__DJGPP__) || defined(__CYGWIN32__) || defined(__MINGW32__)
# ifdef REAL_UNIX_SYSTEM
# undef REAL_UNIX_SYSTEM
# endif
#endif
#if defined(__MSDOS__) || defined(__DOS__)
# ifndef __MSDOS__
# define __MSDOS__
# endif
# ifndef IBMPC_SYSTEM
# define IBMPC_SYSTEM
# endif
#endif
#if defined(OS2) || defined(__OS2__)
# ifndef IBMPC_SYSTEM
# define IBMPC_SYSTEM
# endif
# ifndef __os2__
# define __os2__
# endif
#endif
#if defined(__CYGWIN32__) || defined(__MINGW32__)
# ifndef __WIN32__
# define __WIN32__
# endif
#endif
#if defined(WIN32) || defined(__WIN32__)
# ifndef IBMPC_SYSTEM
# define IBMPC_SYSTEM
# endif
# ifndef __WIN32__
# define __WIN32__
# endif
#endif
#if defined(__MSDOS__) && !defined(__GO32__) && !defined(DOS386) && !defined(__WIN32__)
# ifndef __MSDOS_16BIT__
# define __MSDOS_16BIT__ 1
# endif
#endif
#if defined(MSWINDOWS)
# ifndef IBMPC_SYSTEM
# define IBMPC_SYSTEM
# endif
# ifndef __WIN16__
# define __WIN16__
# endif
#endif
#if defined(__WIN16__) || defined(__MSDOS_16BIT__)
# define __16_BIT_SYSTEM__ 1
#endif
#if defined(__WATCOMC__) && !defined(__QNX__)
# undef unix
# undef __unix__
#endif /* __WATCOMC__ */
#ifdef IBMPC_SYSTEM
# define HAVE_STDLIB_H
# define HAVE_PUTENV
# if defined(__GO32__) || defined(__MINGW32__) || defined(__CYGWIN32__)
# define HAVE_UNISTD_H
# endif
#endif
#ifdef VMS
# if __VMS_VER >= VMS_VERSION_700
# define HAVE_MEMORY_H
# endif
#else
# if !defined(__WATCOMC__)
# define HAVE_MEMORY_H
# endif
#endif
#define HAVE_MEMCPY
#define HAVE_MEMSET
#if !defined(VMS) || (__VMS_VER >= VMS_VERSION_700)
# define HAVE_MEMCMP
# define HAVE_MEMCHR
# define HAVE_FCNTL_H
#endif
#if defined(__WIN32__)
# define HAVE_ENVIRON 1
#endif
#define HAVE_GETCWD 1
#ifndef VMS
# define HAVE_VFSCANF 1
# define HAVE_STRTOD 1
#endif
/* Does VMS have this??? */
#if !defined(VMS) && !defined(_MSC_VER) && (!defined(__WATCOMC__) || defined(__QNX__))
# define HAVE_DIRENT_H 1
#endif
#if defined(VMS) || (defined(__WATCOMC__) && !defined(__QNX__))
# define HAVE_DIRECT_H 1
#endif
#if defined(__unix__) || (defined(VMS) && (__VMS_VER >= VMS_VERSION_700))
# define HAVE_KILL 1
# define HAVE_CHOWN 1
#endif
#undef HAVE_LSTAT
#undef HAVE_LCHOWN
#define HAVE_ATEXIT 1
/* Do these systems have these functions? For now, assume the worst */
#undef HAVE_GETPPID
#undef HAVE_GETGID
#undef HAVE_GETEGID
#undef HAVE_GETEUID
#undef HAVE_SETGID
#undef HAVE_SETPGID
#undef HAVE_SETUID
#undef HAVE_ISSETUGID
/* Needed for tic/toc */
#undef HAVE_TIMES
#undef HAVE_SYS_TIMES_H
#undef HAVE_ALARM
#undef HAVE_PAUSE
#undef HAVE_GETITIMER
#undef HAVE_SETITIMER
#undef HAVE_SYS_TIME_H
#undef HAVE_GETTIMEOFDAY
#undef HAVE_GMTIME
#undef HAVE_GMTIME_R
#undef HAVE_LOCALTIME_R
#undef HAVE_CTIME_R
#ifdef __unix__
# define HAVE_GMTIME 1
#endif
#define HAVE_MKTIME 1
#undef HAVE_SYMLINK
#undef HAVE_LINK
#undef HAVE_READLINK
#undef HAVE_UNAME
#if defined(__MINGW32__)
# define HAVE_UTIME
# define HAVE_UTIME_H
#endif
#undef HAVE_UTIMES
#undef HAVE_POPEN
#if defined(__MINGW32__)
# define HAVE_POPEN 1
#endif
/* #define HAVE_ROUND 1 */
#if !defined(__os2__) && !defined(__WATCOMC__)
# ifndef VMS /* FIXME */
# define HAVE_FINITE 1
# define HAVE_ISNAN 1
# define HAVE_ISINF 1
# endif
#endif
#define HAVE_HYPOT 1
#define HAVE_ATAN2 1
#define HAVE_FREXP 1
#undef HAVE_FREXPF
#define HAVE_LDEXP 1
#undef HAVE_LDEXPF
#undef HAVE_SINCOS
#undef HAVE_SINCOSF
#if defined(__WIN32__)
# define isnan _isnan
# define finite _finite
#endif
/* FPU control unit headers and functions */
#undef HAVE_FLOATINGPOINT_H
#undef HAVE_NAN_H
#undef HAVE_IEEEFP_H
#undef HAVE_FENV_H
#undef HAVE_FECLEAREXCEPT
#undef HAVE_FPSETSTICKY
/* Define if you have the vsnprintf, snprintf functions and they return
* EOF upon failure.
*/
#undef HAVE_VSNPRINTF
#undef HAVE_SNPRINTF
#ifdef _MSC_VER
# define HAVE_VSNPRINTF 1
# define HAVE_SNPRINTF 1
# if _MSC_VER < 1400
/* Grrr, older versions of Visual Studio have vnsprintf, but with an '_'. */
# define vsnprintf _vsnprintf
# endif
#endif
/* Some compilers may not have definitions for these. */
/* #define mode_t int */
/* #define pid_t int */
/* #define uid_t int */
/* #define gid_t int */
/* #define off_t int */
/* #define size_t unsigned int */
#if defined(__MINGW64__)
# define _FILE_OFFSET_BITS 64 /* Makes sizeof(off_t) == 8 */
# define SIZEOF_SIZE_T 8
# define SIZEOF_OFF_T 8
#else
# if defined(__LP64__) /* gcc only??? 64-bit */
# define SIZEOF_OFF_T 8
# define SIZEOF_SIZE_T 8
# else
# if defined(__WIN64__)
# define SIZEOF_OFF_T 4 /* yes, 4 */
# define SIZEOF_SIZE_T 8
# else
# define SIZEOF_OFF_T 4
# define SIZEOF_SIZE_T 4
# endif
# endif
#endif
#define HAVE_LONG_LONG 1
#define SIZEOF_LONG_LONG 8
#define HAVE_SETVBUF
#if defined (__EMX__) || defined(__BORLANDC__) || defined(__IBMC__) || defined(_MSC_VER) || defined(__WATCOMC__)
# define HAVE_IO_H
#endif
#if defined(_MSC_VER) || defined(__IBMC__) || defined(__BORLANDC__) || defined(__MINGW32__) || defined(__WATCOMC__)
# define HAVE_PROCESS_H
#endif
#ifdef _MSC_VER
# define HAVE_POPEN 1
# define popen _popen
# define pclose _pclose
#endif
#ifdef VMS
# define SIZEOF_SHORT 2
# define SIZEOF_INT 4
# if defined(__alpha__) || defined(__ALPHA__) || defined(__alpha)
/* Apparantly, when compaq bought digital, the size of the long was reduced
* to 4 bytes for the alpha on VMS. On unix it is still 8 bytes.
*/
# define SIZEOF_LONG 4
# else
# define SIZEOF_LONG 4
# endif
# define SIZEOF_FLOAT 4
# define SIZEOF_DOUBLE 8
#else /* NOT VMS */
# define SIZEOF_SHORT 2
# if defined(__WIN16__) || defined(__MSDOS_16BIT__)
# define SIZEOF_INT 2
#else
# define SIZEOF_INT 4
#endif
#define SIZEOF_LONG 4
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
#endif /* ifdef VMS */
#ifndef HAVE_LONG_LONG
# undef SIZEOF_LONG_LONG
# define SIZEOF_LONG_LONG 0
#endif
#ifdef HAVE_LONG_LONG
# define HAVE_ATOLL 1
# define HAVE_STRTOLL 1
#endif
#undef HAVE_FORK
#undef HAVE_WAITPID
#undef HAVE_TTYNAME
#undef HAVE_TTYNAME_R
#undef HAVE_GETRUSAGE
/* Files used by the slang-readline interface. The interface first tries
* to read SLRLINE_USER_INIT_FILE from $HOME, and if that does not exist, it
* will read SLRLINE_SYS_INIT_FILE from the load path.
*/
#define SLRLINE_USER_INIT_FILE "slrline.rc"
#define SLRLINE_SYS_INIT_FILE "rline/slrline.rc"
#endif /* ifndef SL_CONFIG_H */
|