w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

config.h.in (5714B)


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