1#ifndef CONFIG_H_SEEN 2#define CONFIG_H_SEEN 3/* 4 * Configuration for w3m 5 */ 6#define JA 0 7#define EN 1 8 9/* Name of package */ 10#undef PACKAGE 11 12#define HELP_FILE "w3mhelp.html" 13#define HELP_CGI "w3mhelp" 14#define W3MCONFIG "w3mconfig" 15#define IMGDISPLAY "w3mimgdisplay" 16#define XFACE2XPM "xface2xpm" 17 18#define BOOKMARK "bookmark.html" 19#define CONFIG_FILE "config" 20#define KEYMAP_FILE "keymap" 21#define MENU_FILE "menu" 22#define MOUSE_FILE "mouse" 23#define COOKIE_FILE "cookie" 24#define HISTORY_FILE "history" 25 26#define PASSWD_FILE RC_DIR "/passwd" 27#define PRE_FORM_FILE RC_DIR "/pre_form" 28#define SITECONF_FILE RC_DIR "/siteconf" 29#define USER_MAILCAP RC_DIR "/mailcap" 30#define SYS_MAILCAP CONF_DIR "/mailcap" 31#define USER_MIMETYPES "~/.mime.types" 32#define SYS_MIMETYPES ETC_DIR "/mime.types" 33#define USER_URIMETHODMAP RC_DIR "/urimethodmap" 34#define SYS_URIMETHODMAP CONF_DIR "/urimethodmap" 35 36#define DEF_SAVE_FILE "index.html" 37 38/* User Configuration */ 39#define DISPLAY_CHARSET @DISPLAY_CHARSET@ 40#define SYSTEM_CHARSET @SYSTEM_CHARSET@ 41#define DOCUMENT_CHARSET @DOCUMENT_CHARSET@ 42#undef USE_M17N 43#undef USE_UNICODE 44#define W3M_LANG @W3M_LANG@ 45#define LANG W3M_LANG 46 47/* Define to 1 if translation of program messages to the user's 48 native language is requested. */ 49#undef ENABLE_NLS 50 51#undef USE_COLOR 52#undef USE_ANSI_COLOR 53#undef USE_BG_COLOR 54#undef USE_MIGEMO 55#define USE_MARK 56#undef USE_MOUSE 57#undef USE_GPM 58#undef USE_SYSMOUSE 59#undef USE_MENU 60#undef USE_COOKIE 61#undef USE_DIGEST_AUTH 62#undef USE_SSL 63#undef USE_SSL_VERIFY 64#define DEF_CAFILE "@DEF_CAFILE@" 65#undef USE_HELP_CGI 66#undef USE_EXTERNAL_URI_LOADER 67#undef USE_W3MMAILER 68#undef USE_NNTP 69#undef USE_GOPHER 70#undef USE_ALARM 71#undef USE_IMAGE 72#undef USE_W3MIMG_X11 73#undef USE_W3MIMG_FB 74#undef USE_W3MIMG_WIN 75#undef W3MIMGDISPLAY_SETUID 76#undef USE_IMLIB 77#undef USE_GDKPIXBUF 78#undef USE_GTK2 79#undef X_DISPLAY_MISSING 80#undef USE_IMLIB2 81#undef USE_XFACE 82#undef USE_DICT 83#undef USE_HISTORY 84#undef FORMAT_NICE 85#define ID_EXT 86#undef CLEAR_BUF 87#undef INET6 88#undef HAVE_SOCKLEN_T 89#undef HAVE_OLD_SS_FAMILY 90#undef USE_EGD 91#define ENABLE_REMOVE_TRAILINGSPACES 92#undef MENU_THIN_FRAME 93#undef USE_RAW_SCROLL 94#undef TABLE_EXPAND 95#undef TABLE_NO_COMPACT 96#define NOWRAP 97#define MATRIX 98 99#define DEF_EDITOR "@DEF_EDITOR@" 100#define DEF_MAILER "@DEF_MAILER@ 101#define DEF_EXT_BROWSER "@DEF_EXT_BROWSER@" 102 103/* fallback viewer. mailcap override these configuration */ 104#define DEF_IMAGE_VIEWER "display" 105#define DEF_AUDIO_PLAYER "showaudio" 106 107/* for USE_MIGEMO */ 108#define DEF_MIGEMO_COMMAND "@DEF_MIGEMO_COMMAND@" 109 110#undef USE_BINMODE_STREAM 111#undef HAVE_TERMIOS_H 112#undef HAVE_TERMIO_H 113#undef HAVE_SGTTY_H 114#undef HAVE_DIRENT_H 115#undef HAVE_LOCALE_H 116#undef HAVE_STDINT_H 117#undef HAVE_INTTYPES_H 118#define SIZEOF_LONG_LONG 8 119#if SIZEOF_LONG_LONG > 0 120typedef long long clen_t; 121#else 122typedef long clen_t; 123#endif 124#undef HAVE_STRTOLL 125#undef HAVE_STROQ 126#undef HAVE_ATOLL 127#undef HAVE_ATOQ 128#undef HAVE_STRCASECMP 129#undef HAVE_STRCASESTR 130#undef HAVE_STRCHR 131#undef HAVE_STRERROR 132#undef HAVE_BCOPY 133#undef HAVE_WAITPID 134#undef HAVE_WAIT3 135#undef HAVE_STRFTIME 136#undef HAVE_GETCWD 137#undef HAVE_GETWD 138#undef HAVE_SYMLINK 139#undef HAVE_READLINK 140#undef HAVE_LSTAT 141#undef HAVE_SETENV 142#undef HAVE_PUTENV 143#undef HAVE_SRAND48 144#undef HAVE_SRANDOM 145#undef HAVE_GETPASSPHRASE 146#undef HAVE_CHDIR 147#undef HAVE_MKDTEMP 148#undef HAVE_SETPGRP 149#undef HAVE_SETLOCALE 150#undef HAVE_LANGINFO_CODESET 151 152#undef SETPGRP_VOID 153#ifdef HAVE_SETPGRP 154#ifdef SETPGRP_VOID 155#define SETPGRP() setpgrp() 156#else 157#define SETPGRP() setpgrp(0,0) 158#endif 159#else /* no HAVE_SETPGRP; OS/2 EMX */ 160#define SETPGRP() setpgid(0, 0) 161#endif 162#undef HAVE_FLOAT_H 163#undef HAVE_SYS_SELECT_H 164 165#undef HAVE_SIGSETJMP 166 167#define RETSIGTYPE @RETSIGTYPE@ 168typedef RETSIGTYPE MySignalHandler; 169#define SIGNAL_ARG int _dummy /* XXX */ 170#define SIGNAL_ARGLIST 0 /* XXX */ 171#define SIGNAL_RETURN @SIGNAL_RETURN@ 172 173#ifdef HAVE_SIGSETJMP 174#ifdef __MINGW32_VERSION 175# define SETJMP(env) setjmp(env) 176# define LONGJMP(env,val) longjmp(env, val) 177# define JMP_BUF jmp_buf 178#else 179# define SETJMP(env) sigsetjmp(env,1) 180# define LONGJMP(env,val) siglongjmp(env,val) 181# define JMP_BUF sigjmp_buf 182#endif /* __MINGW32_VERSION */ 183#else 184# define SETJMP(env) setjmp(env) 185# define LONGJMP(env,val) longjmp(env, val) 186# define JMP_BUF jmp_buf 187#endif 188 189#ifndef HAVE_SRAND48 190#ifdef HAVE_SRANDOM 191#define srand48 srandom 192#define lrand48 random 193#else /* HAVE_SRANDOM */ 194#define USE_INCLUDED_SRAND48 195#endif /* HAVE_SRANDOM */ 196#endif 197 198#ifndef HAVE_LSTAT 199#define lstat stat 200#endif 201 202#if defined( __CYGWIN32__ ) && !defined( __CYGWIN__ ) 203#define __CYGWIN__ 204#endif 205 206#if defined( __CYGWIN__ ) || defined( __EMX__ ) 207#define SUPPORT_DOS_DRIVE_PREFIX 1 208#endif 209 210#if defined( __CYGWIN__ ) 211#define SUPPORT_NETBIOS_SHARE 1 212#define SUPPORT_WIN9X_CONSOLE_MBCS 1 213#endif 214 215#if defined(__CYGWIN__) && defined(__x86_64__) 216#define DONT_CALL_GC_AFTER_FORK 217#endif 218 219#if defined(__DJGPP__) 220#define DEFAULT_TERM "dosansi" 221#else 222#define DEFAULT_TERM 0 /* XXX */ 223#endif 224 225#if defined(__EMX__) /* use $extension? */ 226#define GUNZIP_CMDNAME "gzip" 227#define BUNZIP2_CMDNAME "bzip2" 228#define INFLATE_CMDNAME "inflate.exe" 229#define W3MBOOKMARK_CMDNAME "w3mbookmark.exe" 230#define W3MHELPERPANEL_CMDNAME "w3mhelperpanel.exe" 231#define DEV_NULL_PATH "nul" 232#define DEV_TTY_PATH "con" 233#define CGI_EXTENSION ".cmd" 234#define USE_PATH_ENVVAR 235#else 236#define GUNZIP_CMDNAME "gunzip" 237#define BUNZIP2_CMDNAME "bunzip2" 238#define INFLATE_CMDNAME "inflate" 239#define W3MBOOKMARK_CMDNAME "w3mbookmark" 240#define W3MHELPERPANEL_CMDNAME "w3mhelperpanel" 241#define DEV_NULL_PATH "/dev/null" 242#define DEV_TTY_PATH "/dev/tty" 243#define CGI_EXTENSION ".cgi" 244#endif 245#define BROTLI_CMDNAME "brotli" 246 247#define PATH_SEPARATOR ':' 248#define GUNZIP_NAME "gunzip" 249#define BUNZIP2_NAME "bunzip2" 250#define INFLATE_NAME "inflate" 251#define BROTLI_NAME "brotli" 252 253#ifdef __MINGW32_VERSION 254#define SIGKILL SIGTERM 255#define S_IXGRP 0 256#define S_IXOTH 0 257#define S_IRWXG 0 258#define S_IRWXO 0 259#endif /* __MINGW32_VERSION */ 260 261#endif /* CONFIG_H_SEEN */ 262