2004-01-05 05:10:59 +03:00
|
|
|
/*
|
2006-11-27 18:35:18 +03:00
|
|
|
* This file is part of NetSurf, http://netsurf-browser.org/
|
2004-01-05 05:10:59 +03:00
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
2007-07-22 02:17:07 +04:00
|
|
|
* Copyright 2003-7 John M Bell <jmb202@ecs.soton.ac.uk>
|
2004-01-05 05:10:59 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_UTILS_CONFIG_H_
|
|
|
|
#define _NETSURF_UTILS_CONFIG_H_
|
|
|
|
|
2007-06-17 03:30:47 +04:00
|
|
|
/* Try to detect which features the target OS supports */
|
|
|
|
|
|
|
|
#define HAVE_STRNDUP
|
|
|
|
#if defined(__FreeBSD__) || (defined(__SRV4) && defined(__sun))
|
|
|
|
/* FreeBSD and Solaris do not have this function, so
|
|
|
|
* we implement it ourselves in util.c
|
|
|
|
*/
|
|
|
|
#undef HAVE_STRNDUP
|
|
|
|
char *strndup(const char *s, size_t n);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* This section toggles build options on and off.
|
2004-01-05 05:10:59 +03:00
|
|
|
* Simply undefine a symbol to turn the relevant feature off.
|
2004-02-16 01:22:38 +03:00
|
|
|
*
|
|
|
|
* IF ADDING A FEATURE HERE, ADD IT TO Docs/Doxyfile LINE 892 AS WELL.
|
2004-01-05 05:10:59 +03:00
|
|
|
*/
|
|
|
|
|
2004-07-19 02:21:32 +04:00
|
|
|
/* HTTP Auth */
|
|
|
|
#define WITH_AUTH
|
2004-01-20 22:08:34 +03:00
|
|
|
|
2006-02-23 18:06:54 +03:00
|
|
|
/* SSL */
|
|
|
|
#if !defined(small)
|
|
|
|
#define WITH_SSL
|
|
|
|
#endif
|
|
|
|
|
2004-01-05 05:10:59 +03:00
|
|
|
/* Image renderering modules */
|
2006-02-25 21:51:51 +03:00
|
|
|
#define WITH_BMP
|
2004-09-04 02:44:48 +04:00
|
|
|
#define WITH_JPEG
|
|
|
|
#define WITH_MNG
|
2004-10-05 18:36:44 +04:00
|
|
|
#define WITH_GIF
|
2007-07-22 02:17:07 +04:00
|
|
|
#if defined(riscos)
|
2007-07-18 21:58:35 +04:00
|
|
|
#define WITH_NS_SVG /* internal SVG renderer */
|
2004-07-19 02:21:32 +04:00
|
|
|
#define WITH_DRAW
|
|
|
|
#define WITH_SPRITE
|
2005-12-10 17:31:33 +03:00
|
|
|
#define WITH_ARTWORKS
|
2004-06-03 00:53:37 +04:00
|
|
|
#endif
|
2004-01-05 05:10:59 +03:00
|
|
|
|
2004-07-19 02:21:32 +04:00
|
|
|
/* Platform specific features */
|
2007-07-22 02:17:07 +04:00
|
|
|
#if defined(riscos)
|
2004-07-19 02:21:32 +04:00
|
|
|
/* Plugin module */
|
|
|
|
#define WITH_PLUGIN
|
|
|
|
/* Acorn URI protocol support */
|
|
|
|
#define WITH_URI
|
|
|
|
/* ANT URL protocol support */
|
|
|
|
#define WITH_URL
|
2004-08-06 00:32:00 +04:00
|
|
|
/* Free text search */
|
|
|
|
#define WITH_SEARCH
|
2004-08-09 11:37:29 +04:00
|
|
|
/* Printing support */
|
|
|
|
#define WITH_PRINT
|
2005-01-14 01:42:39 +03:00
|
|
|
/* Theme auto-install */
|
|
|
|
#define WITH_THEME_INSTALL
|
2006-10-27 03:53:16 +04:00
|
|
|
#else
|
|
|
|
/* We're likely to have a working mmap() */
|
|
|
|
#define WITH_MMAP
|
2007-07-18 21:58:35 +04:00
|
|
|
/* Use librsvg and Cairo for rendering SVG */
|
|
|
|
#define WITH_RSVG
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(WITH_NS_SVG) && defined(WITH_RSVG)
|
|
|
|
#error Cannot build WITH_NS_SVG and WITH_RSVG both enabled
|
2004-07-19 02:21:32 +04:00
|
|
|
#endif
|
2004-06-03 00:53:37 +04:00
|
|
|
|
2007-07-22 02:17:07 +04:00
|
|
|
#if defined(riscos) || defined(DEBUG_BUILD)
|
2004-07-19 02:21:32 +04:00
|
|
|
/* Export modules */
|
|
|
|
#define WITH_SAVE_COMPLETE
|
|
|
|
#define WITH_DRAW_EXPORT
|
|
|
|
#define WITH_TEXT_EXPORT
|
2004-01-05 05:10:59 +03:00
|
|
|
#endif
|
|
|
|
|
2004-06-03 00:53:37 +04:00
|
|
|
#endif
|