]> err.no Git - sope/blob - sope-core/NGExtensions/NGExtensions/AutoDefines.h
Drop apache 1 build-dependency
[sope] / sope-core / NGExtensions / NGExtensions / AutoDefines.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
6   SOPE is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with SOPE; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21
22 #ifndef __NGExtensions_AutoDefines_H__
23 #define __NGExtensions_AutoDefines_H__
24
25 // TODO: can we remove that?
26
27 #if defined(__MINGW32__)
28 #  define WITH_OPENSTEP 0
29 #  define GNUSTEP  1
30
31 #elif defined(__CYGWIN32__)
32 #  define WITH_OPENSTEP 0
33 #  ifndef GNUSTEP
34 #    define GNUSTEP 1
35 #  endif
36
37 #elif defined(NeXT) || defined(WIN32)
38 #  define WITH_OPENSTEP 1
39 #  define GNUSTEP  0
40 #  ifndef NeXT_RUNTIME
41 #    define NeXT_RUNTIME 1
42 #  endif
43
44 #elif defined(__APPLE__)
45 #  ifndef WITH_OPENSTEP
46 #    define WITH_OPENSTEP 1
47 #  endif
48 #  if !GNU_RUNTIME
49 #    ifndef NeXT_RUNTIME
50 #      define NeXT_RUNTIME 1
51 #    endif
52 #    ifndef APPLE_RUNTIME
53 #      define APPLE_RUNTIME 1
54 #    endif
55 #  endif
56 #  if !GNUSTEP_BASE_LIBRARY && !LIB_FOUNDATION_LIBRARY
57 #    ifndef COCOA_Foundation_LIBRARY
58 #      define COCOA_Foundation_LIBRARY 1
59 #    endif
60 #    ifndef NeXT_Foundation_LIBRARY
61 #      define NeXT_Foundation_LIBRARY 1
62 #    endif
63 #    ifndef APPLE_Foundation_LIBRARY
64 #      define APPLE_Foundation_LIBRARY 1
65 #    endif
66 #  endif
67
68 #else
69 #  define WITH_OPENSTEP 0
70 #  define GNUSTEP  1
71 #endif
72
73 #endif /* __NGExtensions_AutoDefines_H__ */