options.h 2.2 KB
Newer Older
kollo's avatar
kollo committed
1 2 3 4 5 6 7 8
/* This file is part of X11BASIC, the basic interpreter for Unix/X
 * ============================================================
 * X11BASIC is free software and comes with NO WARRANTY - read the file
 * COPYING for details
 */
#ifndef OPTIONS_H
#define OPTIONS_H

kollo's avatar
kollo committed
9 10
/* Language setting:   english is the default   */

kollo's avatar
kollo committed
11 12 13 14 15
/* #define GERMAN  */

/* If you have to save memory space...*/

/*#define SAVE_RAM*/
kollo's avatar
kollo committed
16

17 18 19 20 21 22 23
/* If you want to compile a versin of X11-basic which uses the SDL library
   also on unix systems, you can uncomment following line. This is useful 
   to have a version which is more compatible with the WINDOWS version of
   X11-Basic.*/

/*#define USE_SDL*/

kollo's avatar
kollo committed
24 25 26

#ifdef WINDOWS
  #undef HAVE_READLINE
kollo's avatar
kollo committed
27 28
 // #undef HAVE_LAPACK
  #undef HAVE_CLOG10
kollo's avatar
kollo committed
29 30
 // #undef HAVE_EXECVPE
  #undef HAVE_FUTIMENS
kollo's avatar
kollo committed
31 32 33
  #undef HAVE_UTIMENSAT
  #undef HAVE_FUTIMES
  #undef HAVE_GCRYPT
kollo's avatar
kollo committed
34 35 36
  #undef HAVE_PTY_H
  #undef HAVE_SYS_SOCKET_H
  #undef HAVE_SYS_KD_H
kollo's avatar
kollo committed
37 38 39
  #undef HAVE_DLOPEN
  #undef HAVE_INOTIFY_INIT
  #undef HAVE_USB
kollo's avatar
kollo committed
40
  #undef HAVE_PRIMORIAL_UI
41 42 43
  #undef HAVE_FFTW
  #undef HAVE_RFFTW
  #undef HAVE_BLUETOOTH 
kollo's avatar
kollo committed
44
  #undef HAVE_BACKTRACE 
kollo's avatar
kollo committed
45
  #define USE_SDL
kollo's avatar
kollo committed
46
  #define HAVE_SDL 1 
kollo's avatar
kollo committed
47 48 49
  #define HAVE_SDL_GFX 1
  #undef SIZEOF_VOID_P
  #define SIZEOF_VOID_P 4
kollo's avatar
kollo committed
50 51 52 53
#elif defined ATARI
  #undef HAVE_READLINE
  #undef HAVE_LAPACK
  #undef HAVE_SYS_KD_H
kollo's avatar
kollo committed
54
  #undef HAVE_COMPLEX_H
kollo's avatar
kollo committed
55 56 57 58
  #undef HAVE_DLOPEN
  #undef HAVE_INOTIFY_INIT
  #undef HAVE_ALSA
  #undef HAVE_EXECVPE
kollo's avatar
kollo committed
59 60
  #undef HAVE_GMP
  #undef HAVE_CACOS
61
  #undef USE_X11
kollo's avatar
kollo committed
62 63 64 65
 // #define USE_SDL
 // #define HAVE_SDL 1
  #define HAVE_GEM 1
  #define USE_GEM 1
66
  #define SAVE_RAM 1
kollo's avatar
kollo committed
67 68 69
#endif


70 71
#ifndef HAVE_SDL 
  #undef USE_SDL
kollo's avatar
kollo committed
72
#endif
73
#ifndef HAVE_SDL_GFX 
kollo's avatar
kollo committed
74 75
  #undef USE_SDL
#endif
76
#ifndef HAVE_X11
kollo's avatar
kollo committed
77 78
  #undef USE_X11
#endif
79 80
#ifndef HAVE_GEM
  #undef USE_GEM
kollo's avatar
kollo committed
81
#endif
82 83 84 85 86

#if !defined FRAMEBUFFER && !defined USE_SDL && !defined USE_X11 && !defined USE_GEM
/* die NOGRAPHICS version ist aber inkompatibel, da einige Kommandos ganz ausgelassen
   werden.*/
  #define NOGRAPHICS
kollo's avatar
kollo committed
87
#endif
kollo's avatar
kollo committed
88

89 90 91
#ifndef HAVE_TINE
  #undef TINE
  #undef DOOCS
kollo's avatar
kollo committed
92
#endif
93 94
#ifndef HAVE_DOOCS
  #undef DOOCS
kollo's avatar
kollo committed
95 96
#endif

kollo's avatar
kollo committed
97

kollo's avatar
kollo committed
98
#ifdef HAVE_ALSA
kollo's avatar
kollo committed
99
  #ifndef USE_SDL
kollo's avatar
kollo committed
100
    #define USE_ALSA
kollo's avatar
kollo committed
101 102 103
  #endif
#endif

104 105 106 107 108
/*Systems with small Memory Layout*/
#ifdef SMALL
  #define SAVE_RAM
#endif

kollo's avatar
kollo committed
109
#endif /* OPTIONS_H */