2016-01-17 00:44:07 +00:00
|
|
|
/*
|
|
|
|
|
* "$Id$"
|
|
|
|
|
*
|
|
|
|
|
* Configuration file for the Fast Light Tool Kit (FLTK).
|
|
|
|
|
*
|
2016-04-16 01:49:15 +00:00
|
|
|
* Copyright 1998-2016 by Bill Spitzak and others.
|
2016-01-17 00:44:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef FL_CONFIG_LIB_H
|
|
|
|
|
#define FL_CONFIG_LIB_H
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
|
2016-04-16 01:49:15 +00:00
|
|
|
/* find the right graphics configuration */
|
2016-01-17 00:44:07 +00:00
|
|
|
#if !defined(FL_CFG_GFX_XLIB) && !defined(FL_CFG_GFX_QUARTZ) && !defined(FL_CFG_GFX_GDI)
|
|
|
|
|
|
2016-04-16 01:49:15 +00:00
|
|
|
#ifdef __APPLE__ /* default configurations */
|
2016-01-17 00:44:07 +00:00
|
|
|
# define FL_CFG_GFX_QUARTZ
|
|
|
|
|
# ifdef HAVE_GL
|
|
|
|
|
# define FL_CFG_GFX_OPENGL
|
|
|
|
|
# endif
|
|
|
|
|
#elif defined(WIN32)
|
|
|
|
|
# define FL_CFG_GFX_GDI
|
|
|
|
|
# ifdef HAVE_GL
|
|
|
|
|
# define FL_CFG_GFX_OPENGL
|
|
|
|
|
# endif
|
|
|
|
|
#elif defined(FL_PORTING)
|
2016-01-19 00:46:54 +00:00
|
|
|
# pragma message "FL_PORTING: please choose a core graphics library"
|
2016-05-08 06:42:57 +00:00
|
|
|
#elif defined(USE_X11) /* X11 */
|
2016-01-17 00:44:07 +00:00
|
|
|
# define FL_CFG_GFX_XLIB
|
|
|
|
|
# ifdef HAVE_GL
|
|
|
|
|
# define FL_CFG_GFX_OPENGL
|
|
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2016-04-16 01:49:15 +00:00
|
|
|
/* find the right printer driver configuration */
|
2016-01-17 00:44:07 +00:00
|
|
|
#if !defined(FL_CFG_PRN_PS) && !defined(FL_CFG_PRN_QUARTZ) && !defined(FL_CFG_PRN_WIN32)
|
|
|
|
|
|
2016-04-16 01:49:15 +00:00
|
|
|
#ifdef __APPLE__ /* default configurations */
|
2016-01-17 00:44:07 +00:00
|
|
|
# define FL_CFG_PRN_QUARTZ
|
|
|
|
|
#elif defined(WIN32)
|
2016-04-13 14:41:55 +00:00
|
|
|
# define FL_CFG_PRN_WIN32
|
2016-01-17 00:44:07 +00:00
|
|
|
#elif defined(FL_PORTING)
|
2016-03-18 18:20:11 +00:00
|
|
|
# pragma message "FL_PORTING: please choose a printer driver"
|
2016-05-08 06:42:57 +00:00
|
|
|
#elif defined(USE_X11) /* X11 */
|
2016-03-18 18:20:11 +00:00
|
|
|
# define FL_CFG_PRN_PS
|
2016-01-17 00:44:07 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2016-04-16 01:49:15 +00:00
|
|
|
/* find the right window manager configuration */
|
2016-01-17 00:44:07 +00:00
|
|
|
#if !defined(FL_CFG_WIN_X11) && !defined(FL_CFG_WIN_COCOA) && !defined(FL_CFG_WIN_WIN32)
|
|
|
|
|
|
2016-04-16 01:49:15 +00:00
|
|
|
#ifdef __APPLE__ /* default configurations */
|
2016-01-17 00:44:07 +00:00
|
|
|
# define FL_CFG_WIN_COCOA
|
|
|
|
|
#elif defined(WIN32)
|
|
|
|
|
# define FL_CFG_WIN_WIN32
|
|
|
|
|
#elif defined(FL_PORTING)
|
2016-01-19 00:46:54 +00:00
|
|
|
# pragma message "FL_PORTING: please choose a window management library"
|
2016-05-08 06:42:57 +00:00
|
|
|
#elif defined(USE_X11) /* X11 */
|
2016-04-13 06:23:02 +00:00
|
|
|
# define FL_CFG_WIN_X11
|
2016-01-17 00:44:07 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2016-04-16 01:49:15 +00:00
|
|
|
/* find the right system configuration */
|
2016-01-17 00:44:07 +00:00
|
|
|
#if !defined(FL_CFG_SYS_POSIX) && !defined(FL_CFG_SYS_WIN32)
|
|
|
|
|
|
2016-04-16 01:49:15 +00:00
|
|
|
#ifdef __APPLE__ /* default configurations */
|
2016-01-17 00:44:07 +00:00
|
|
|
# define FL_CFG_SYS_POSIX
|
|
|
|
|
#elif defined(WIN32)
|
|
|
|
|
# define FL_CFG_SYS_WIN32
|
|
|
|
|
#elif defined(FL_PORTING)
|
2016-01-19 00:46:54 +00:00
|
|
|
# pragma message "FL_PORTING: please choose a system library"
|
2016-05-08 06:42:57 +00:00
|
|
|
#elif defined(USE_X11) /* X11 */
|
2016-01-17 00:44:07 +00:00
|
|
|
# define FL_CFG_SYS_POSIX
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* End of "$Id$".
|
|
|
|
|
*/
|