annotate lwlib/lwlib-config.c @ 434:9d177e8d4150 r21-2-25

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