annotate lwlib/lwlib-config.c @ 12:bcdc7deadc19 r19-15b7

Import from CVS: tag r19-15b7
author cvs
date Mon, 13 Aug 2007 08:48:16 +0200
parents 376386a54a3c
children 9ee227acff29
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Flags indicating how lwlib was compiled.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1994 Lucid, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of the Lucid Widget Library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 The Lucid Widget Library is free software; you can redistribute it and/or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 modify it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 The Lucid Widget Library is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
12
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
bcdc7deadc19 Import from CVS: tag r19-15b7
cvs
parents: 0
diff changeset
19 Boston, MA 02111-1307, USA. */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 /* This is a kludge to make sure emacs can only link against a version of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 lwlib that was compiled in the right way. Emacs references symbols which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 correspond to the way it thinks lwlib was compiled, and if lwlib wasn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 compiled in that way, then somewhat meaningful link errors will result.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 The alternatives to this range from obscure link errors, to obscure
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 runtime errors that look a lot like bugs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #include "lwlib.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #include <X11/Xlib.h> /* to get XlibSpecificationRelease */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #ifdef NEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #include <Xm/Xm.h> /* to get XmVersion */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 #if (XlibSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 int lwlib_uses_x11r4;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 #elif (XlibSpecificationRelease == 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 int lwlib_uses_x11r5;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 #elif (XlibSpecificationRelease == 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 int lwlib_uses_x11r6;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 int lwlib_uses_unknown_x11;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #ifdef NEED_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 int lwlib_uses_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 int lwlib_does_not_use_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #if (XmVersion >= 1002)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 int lwlib_uses_motif_1_2;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 int lwlib_does_not_use_motif_1_2;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 #ifdef MENUBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 int lwlib_menubars_lucid;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 # ifdef MENUBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 int lwlib_menubars_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 int lwlib_does_not_support_menubars;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #ifdef SCROLLBARS_LUCID
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 int lwlib_scrollbars_lucid;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 # ifdef SCROLLBARS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 int lwlib_scrollbars_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 # ifdef SCROLLBARS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 int lwlib_scrollbars_athena;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 int lwlib_does_not_support_scrollbars;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 #ifdef DIALOGS_MOTIF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 int lwlib_dialogs_motif;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 # ifdef DIALOGS_ATHENA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 int lwlib_dialogs_athena;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 int lwlib_does_not_support_dialogs;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 # endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 #ifdef ENERGIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 int lwlib_uses_energize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 int lwlib_does_not_use_energize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 #endif