2 * "$Id: configh.cmake.in 8198 2011-01-06 10:24:58Z manolo $"
4 * Configuration file for the Fast Light Tool Kit (FLTK).
7 * Copyright 1998-2010 by Bill Spitzak and others.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 * Please report all bugs and problems on the following page:
26 * http://www.fltk.org/str.php
30 * Where to find files...
33 #define FLTK_DATADIR "@PREFIX_DATA@"
34 #define FLTK_DOCDIR "@PREFIX_DOC@"
39 * Thickness of FL_UP_BOX and FL_DOWN_BOX. Current 1,2, and 3 are
42 * 3 is the historic FLTK look.
43 * 2 is the default and looks like Microsoft Windows, KDE, and Qt.
44 * 1 is a plausible future evolution...
46 * Note that this may be simulated at runtime by redefining the boxtypes
47 * using Fl::set_boxtype().
50 #define BORDER_WIDTH 2
55 * Do you have OpenGL? Set this to 0 if you don't have or plan to use
56 * OpenGL, and FLTK will be smaller.
59 #cmakedefine01 HAVE_GL
64 * Do you have the OpenGL Utility Library header file?
65 * (many broken Mesa RPMs do not...)
68 #cmakedefine01 HAVE_GL_GLU_H
71 * HAVE_GLXGETPROCADDRESSARB:
73 * Do you have the OpenGL glXGetProcAddressARB() function?
76 #cmakedefine HAVE_GLXGETPROCADDRESSARB %HAVE_GLXGETPROCADDRESSARB%
81 * Setting this to zero will save a good deal of code (especially for
82 * fl_draw_image), but FLTK will only work on TrueColor visuals.
85 #define USE_COLORMAP 1
90 * Do we have the Xinerama library to support multi-head displays?
93 #cmakedefine01 HAVE_XINERAMA
98 * Use the new Xft library to draw anti-aliased text.
101 #cmakedefine01 USE_XFT
106 * Do we have the X double-buffer extension?
109 #cmakedefine01 HAVE_XDBE
114 * Actually try to use the double-buffer extension?
117 #define USE_XDBE HAVE_XDBE
122 * If __APPLE_QUARTZ__ is defined, FLTK will be
123 * compiled using Quartz. This flag has no meaning on
124 * other operating systems than Mac OS X.
127 #cmakedefine __APPLE_QUARTZ__ @__APPLE_QUARTZ__@
133 * Should we use X11 for the current platform
137 #cmakedefine USE_X11 @USE_X11@
142 * Use the X overlay extension? FLTK will try to use an overlay
143 * visual for Fl_Overlay_Window, the Gl_Window overlay, and for the
144 * menus. Setting this to zero will remove a substantial amount of
145 * code from FLTK. Overlays have only been tested on SGI servers!
148 #define HAVE_OVERLAY 0
153 * It is possible your GL has an overlay even if X does not. If so,
157 #define HAVE_GL_OVERLAY HAVE_OVERLAY
162 * Byte order of your machine: 1 = big-endian, 0 = little-endian.
165 #define WORDS_BIGENDIAN @WORDS_BIGENDIAN@
170 * Types used by fl_draw_image. One of U32 or U64 must be defined.
171 * U16 is optional but FLTK will work better with it!
174 #cmakedefine U16 @U16@
175 #cmakedefine U32 @U32@
176 #cmakedefine U64 @U64@
179 * HAVE_DIRENT_H, HAVE_SYS_NDIR_H, HAVE_SYS_DIR_H, HAVE_NDIR_H,
180 * HAVE_SCANDIR, HAVE_SCANDIR_POSIX:
182 * Where is <dirent.h> (used only by fl_file_chooser and scandir).
185 #cmakedefine HAVE_DIRENT_H @HAVE_DIRENT_H@
186 #cmakedefine HAVE_SYS_NDIR_H @HAVE_SYS_NDIR_H@
187 #cmakedefine HAVE_SYS_DIR_H @HAVE_SYS_DIR_H@
188 #cmakedefine HAVE_NDIR_H @HAVE_NDIR_H@
189 #cmakedefine HAVE_SCANDIR @HAVE_SCANDIR@
190 #cmakedefine HAVE_SCANDIR_POSIX @HAVE_SCANDIR_POSIX@
193 * Possibly missing sprintf-style functions:
196 #cmakedefine HAVE_VSNPRINTF @HAVE_VSNPRINTF@
197 #cmakedefine HAVE_SNPRINTF @HAVE_SNPRINTF@
200 * String functions and headers...
203 #cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@
204 #cmakedefine HAVE_STRCASECMP @HAVE_STRCASECMP@
205 #cmakedefine HAVE_STRLCAT @HAVE_STRLCAT@
206 #cmakedefine HAVE_STRLCPY @HAVE_STRLCPY@
209 * Do we have POSIX locale support?
212 #cmakedefine HAVE_LOCALE_H @HAVE_LOCALE_H@
213 #cmakedefine HAVE_LOCALECONV @HAVE_LOCALECONV@
218 * Whether or not select() call has its own header file.
221 #cmakedefine01 HAVE_SYS_SELECT_H
224 * HAVE_SYS_STDTYPES_H:
226 * Whether or not we have the <sys/stdtypes.h> header file.
229 #cmakedefine HAVE_SYS_STDTYPES_H @HAVE_SYS_STDTYPES_H@
234 * Use the poll() call provided on Linux and Irix instead of select()
237 #cmakedefine01 USE_POLL
240 * Do we have various image libraries?
243 #cmakedefine HAVE_LIBPNG @HAVE_LIBPNG@
244 #cmakedefine HAVE_LIBZ @HAVE_LIBZ@
245 #cmakedefine HAVE_LIBJPEG @HAVE_LIBJPEG@
250 * Do we have the cairo library available and want extended cairo use in fltk ?
251 * will implies to link cairo.lib in all fltk based apps.
254 #cmakedefine FLTK_USE_CAIRO @FLTK_USE_CAIRO@
259 * Do we have the cairo library available?
262 #cmakedefine FLTK_HAVE_CAIRO @FLTK_HAVE_CAIRO@
265 * Which header file do we include for libpng?
268 #cmakedefine HAVE_PNG_H @HAVE_PNG_H@
269 #cmakedefine HAVE_LIBPNG_PNG_H @HAVE_LIBPNG_PNG_H@
272 * Do we have the png_xyz() functions?
275 #cmakedefine HAVE_PNG_GET_VALID @HAVE_PNG_GET_VALID@
276 #cmakedefine HAVE_PNG_SET_TRNS_TO_ALPHA @HAVE_PNG_SET_TRNS_TO_ALPHA@
279 * Do we have POSIX threading?
282 #cmakedefine HAVE_PTHREAD @HAVE_PTHREAD@
283 #cmakedefine01 HAVE_PTHREAD_H
286 * Do we have the ALSA library?
289 #cmakedefine HAVE_ALSA_ASOUNDLIB_H @HAVE_ALSA_ASOUNDLIB_H@
291 * Do we have the long long type?
294 #cmakedefine HAVE_LONG_LONG @HAVE_LONG_LONG@
296 #ifdef HAVE_LONG_LONG
297 # define FLTK_LLFMT "%lld"
298 # define FLTK_LLCAST (long long)
300 # define FLTK_LLFMT "%ld"
301 # define FLTK_LLCAST (long)
302 #endif /* HAVE_LONG_LONG */
305 * Do we have the strtoll() function?
308 #cmakedefine HAVE_STRTOLL @HAVE_STRTOLL@
311 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
312 #endif /* !HAVE_STRTOLL */
315 * Do we have the dlsym() function and header?
318 #cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@
319 #cmakedefine HAVE_DLSYM @HAVE_DLSYM@
322 * End of "$Id: configh.cmake.in 8198 2011-01-06 10:24:58Z manolo $".