version 1.1.1.1, 2000/01/09 17:00:56 |
version 1.1.1.2, 2000/01/22 14:15:56 |
|
|
#endif |
#endif |
|
|
#include "ansichek.h" |
#include "ansichek.h" |
#include "stdfn.h" |
|
|
|
/* |
/* |
* Define operating system dependent constants [default value]: |
* Define operating system dependent constants [default value]: |
* |
* |
* OS: [" "] Name of OS plus trailing space |
* OS: [" "] Name of OS plus trailing space |
* HELPFILE: ["docs/gnuplot.gih"] Location of helpfile - overriden by Makefile |
* HELPFILE: ["docs/gnuplot.gih"] Location of helpfile - overridden by Makefile |
* HOME: ["HOME"] Name of environment variable which points to |
* HOME: ["HOME"] Name of environment variable which points to |
* the directory where gnuplot's config file is found. |
* the directory where gnuplot's config file is found. |
* PLOTRC: [".gnuplot"] Name of the gnuplot startup file. |
* PLOTRC: [".gnuplot"] Name of the gnuplot startup file. |
|
|
#endif /* Amiga */ |
#endif /* Amiga */ |
|
|
#ifdef ATARI |
#ifdef ATARI |
# define OS "TOS " |
# define OS "TOS " |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
# define SHELL "gulam.prg" |
# define SHELL "gulam.prg" |
# define DIRSEP1 '\\' |
# define DIRSEP1 '\\' |
# ifdef MTOS |
# ifdef MTOS |
# define DIRSEP2 '/' |
# define DIRSEP2 '/' |
# endif |
# endif |
|
|
#endif /* Atari */ |
#endif /* Atari */ |
|
|
#ifdef DOS386 |
#ifdef DOS386 |
# define OS "DOS 386 " |
# define OS "DOS 386 " |
# define HELPFILE "gnuplot.gih" |
# define HELPFILE "gnuplot.gih" |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
# define DIRSEP1 '\\' |
# define SHELL "\\command.com" |
|
# define DIRSEP1 '\\' |
#endif /* DOS386 */ |
#endif /* DOS386 */ |
|
|
#ifdef linux |
#if defined(linux) || defined(__linux) |
# define OS "Linux " |
# define OS "Linux " |
#endif /* Linux */ |
#endif /* Linux */ |
|
|
#if defined(__NeXT__) && !defined(NEXT) |
#if defined(__NeXT__) || defined(NEXT) |
# define NEXT |
# ifndef NEXT |
|
# define NEXT |
|
# endif |
#endif /* NeXT */ |
#endif /* NeXT */ |
|
|
#ifdef OS2 |
#ifdef OS2 |
# define OS "OS/2 " |
# define OS "OS/2 " |
# define HELPFILE "gnuplot.gih" |
# define HELPFILE "gnuplot.gih" |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
# define SHELL "c:\\os2\\cmd.exe" |
# define SHELL "c:\\os2\\cmd.exe" |
# define DIRSEP1 '\\' |
# define DIRSEP1 '\\' |
# define GP_GETCWD(path,len) _getcwd2 (path, len) |
|
#endif /* OS/2 */ |
#endif /* OS/2 */ |
|
|
#ifdef OSK |
#ifdef OSK |
# define OS "OS-9 " |
# define OS "OS-9 " |
# define SHELL "/dd/cmds/shell" |
# define SHELL "/dd/cmds/shell" |
#endif /* OS-9 */ |
#endif /* OS-9 */ |
|
|
#if defined(vms) || defined(VMS) |
#if defined(vms) || defined(VMS) |
|
# define OS "VMS " |
# ifndef VMS |
# ifndef VMS |
# define VMS |
# define VMS |
# endif |
# endif |
# define OS "VMS " |
# define HOME "sys$login:" |
# define HOME "sys$login:" |
|
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
# ifdef NO_GIH |
# ifdef NO_GIH |
/* for show version long */ |
/* for show version long */ |
# define HELPFILE "GNUPLOT$HELP" |
# define HELPFILE "GNUPLOT$HELP" |
# endif |
# endif |
# if !defined(VAXCRTL) && !defined(DECCRTL) |
# if !defined(VAXCRTL) && !defined(DECCRTL) |
# error Please /define either VAXCRTL or DECCRTL |
# define VAXCRTL VAXCRTL_AND_DECCRTL_UNDEFINED |
|
# define DECCRTL VAXCRTL_AND_DECCRTL_UNDEFINED |
# endif |
# endif |
/* avoid some IMPLICITFUNC warnings */ |
/* avoid some IMPLICITFUNC warnings */ |
# ifdef __DECC |
# ifdef __DECC |
|
|
*/ |
*/ |
# define S_IFIFO _S_IFIFO |
# define S_IFIFO _S_IFIFO |
# else |
# else |
|
# define OS "MS-Windows " |
# ifndef WIN16 |
# ifndef WIN16 |
# define WIN16 |
# define WIN16 |
# endif |
# endif |
# define OS "MS-Windows " |
|
# endif /* WIN32 */ |
# endif /* WIN32 */ |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
|
# define SHELL "\\command.com" |
# define DIRSEP1 '\\' |
# define DIRSEP1 '\\' |
#endif /* _WINDOWS */ |
#endif /* _WINDOWS */ |
|
|
|
|
# if !defined(DOS32) && !defined(DOS16) |
# if !defined(DOS32) && !defined(DOS16) |
# define DOS16 |
# define DOS16 |
# endif |
# endif |
|
/* should this be here ? */ |
# ifdef MTOS |
# ifdef MTOS |
# define OS "TOS & MiNT & MULTITOS & Magic - " |
# define OS "TOS & MiNT & MULTITOS & Magic - " |
# endif /* MTOS */ |
# endif /* MTOS */ |
|
# define OS "MS-DOS " |
# undef HELPFILE |
# undef HELPFILE |
# define HELPFILE "gnuplot.gih" |
# define HELPFILE "gnuplot.gih" |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
# define OS "MS-DOS " |
# define SHELL "\\command.com" |
# define DIRSEP1 '\\' |
# define DIRSEP1 '\\' |
# ifdef __DJGPP__ |
# ifdef __DJGPP__ |
# define DIRSEP2 '/' |
# define DIRSEP2 '/' |
# endif |
# endif |
#endif /* MSDOS */ |
#endif /* MSDOS */ |
|
|
/* Note: may not catch all IBM AIX compilers or SCO compilers */ |
/* Note: may not catch all IBM AIX compilers or SCO compilers */ |
#if defined(__unix__)|| defined(unix) || defined(_AIX) || defined(SCO) |
/* cc on NetBSD doesn't define unix anymore :-/ */ |
|
#if defined(unix)|| defined(__unix) || defined(_AIX) || defined(__NetBSD__) || defined(SCO) |
# ifndef unix |
# ifndef unix |
# define unix |
# define unix |
# endif |
# endif |
|
|
|
|
#ifndef HELPFILE |
#ifndef HELPFILE |
# define HELPFILE "docs/gnuplot.gih" |
# define HELPFILE "docs/gnuplot.gih" |
#endif /* !HELPFILE */ |
#endif |
|
|
#ifndef HOME |
#ifndef HOME |
# define HOME "HOME" |
# define HOME "HOME" |
|
|
#endif |
#endif |
|
|
#ifndef FAQ_LOCATION |
#ifndef FAQ_LOCATION |
# define FAQ_LOCATION "http://www.uni-karlsruhe.de/~ig25/gnuplot-faq/" |
/* # define FAQ_LOCATION "http://www.uni-karlsruhe.de/~ig25/gnuplot-faq/" */ |
|
/* #define FAQ_LOCATION "http://www-ihe.etec.uni-karlsruhe.de/mitarbeiter/vonhagen/gnuplot-faq.html" */ |
|
#define FAQ_LOCATION "http://www.ucc.ie/gnuplot/gnuplot-faq.html" |
#endif |
#endif |
|
|
#ifndef CONTACT |
#ifndef CONTACT |
|
|
|
|
|
|
/* Misc platforms */ |
/* Misc platforms */ |
#if defined(apollo) || defined(alliant) |
#ifdef apollo |
|
# ifndef APOLLO |
|
# define APOLLO |
|
# endif |
|
# define GPR |
|
#endif |
|
|
|
#if defined(APOLLO) || defined(alliant) |
# define NO_LIMITS_H |
# define NO_LIMITS_H |
#endif |
#endif |
|
|
|
|
# define NO_STRCHR |
# define NO_STRCHR |
#endif |
#endif |
|
|
|
#ifdef unixpc |
|
# ifndef UNIXPC |
|
# define UNIXPC |
|
# endif |
|
#endif |
|
|
/* Autoconf related stuff |
/* Autoconf related stuff |
* Transform autoconf defines to gnuplot coding standards |
* Transform autoconf defines to gnuplot coding standards |