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.dist (6335B)


      1 /*
      2  * Configuration for w3m
      3  * This is sample.  ./configure will generate config.h for you.
      4  */
      5 
      6 #ifndef _CONFIGURED_
      7 #define _CONFIGURED_
      8 
      9 /* User Configuration */
     10 
     11 /* 
     12    If you define DICT, you can use dictionary look-up function
     13    in w3m. See README.dict for detail.
     14 */
     15 #define DICT
     16 
     17 /*
     18    If you want to load and save URL history.
     19  */
     20 #define USE_HISTORY
     21 
     22 /*
     23    USE_BG_COLOR enables w3m to set background color.
     24  */
     25 #define USE_BG_COLOR
     26 
     27 /*
     28  * Do word fill
     29  */
     30 #undef FORMAT_NICE
     31 
     32 /*
     33  * Enable id attribute
     34  */
     35 #define ID_EXT
     36 
     37 /*
     38  * Save Current-buffer Information
     39  */
     40 #undef BUFINFO
     41 
     42 /*
     43  * Support EGD (Entropy Gathering Daemon)
     44  */
     45 #undef USE_EGD
     46 
     47 /*
     48  * Remove line trailing spaces in html buffer.
     49  */
     50 #undef ENABLE_REMOVE_TRAILINGSPACES
     51 
     52 /*
     53  * thin chars for menu frame
     54  */
     55 #undef MENU_THIN_FRAME
     56 
     57 /*
     58  * Use raw scroll
     59  */
     60 #undef USE_RAW_SCROLL
     61 
     62 /*
     63  */
     64 #undef TABLE_EXPAND
     65 #undef TABLE_NO_COMPACT
     66 #define NOWRAP
     67 #define MATRIX
     68 
     69 /**********************************************************/
     70 #ifdef makefile_parameter
     71 
     72 BIN_DIR = /usr/local/bin
     73 AUXBIN_DIR = /usr/local/lib/w3m
     74 CGIBIN_DIR = /usr/local/lib/w3m/cgi-bin
     75 HELP_DIR = /usr/local/share/w3m
     76 MAN_DIR = /usr/local/man
     77 MAN1_DIR = $(MAN_DIR)/man1
     78 MAN1_JA_DIR = $(MAN_DIR)/ja/man1
     79 ETC_DIR = /usr/local/etc/w3m
     80 RC_DIR = ~/.w3m
     81 HELP_FILE = w3mhelp-w3m_ja.html
     82 RC_DIR = ~/.w3m/
     83 SYS_LIBRARIES = -lgpm  -lbsd -lnsl -lncurses  -L/usr/lib -L/usr/lib -L/usr/local/ssl/lib -L/usr/local/ssl/lib -lssl -lcrypto 
     84 LOCAL_LIBRARIES = 
     85 CC = gcc
     86 MYCFLAGS = -O -I./gc/include  -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include
     87 GCCFLAGS = -O -I./gc/include -I./$(srcdir)/include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DSILENT -DALL_INTERIOR_POINTERS
     88 KEYBIND_SRC = keybind.c
     89 KEYBIND_OBJ = keybind.o
     90 EXT=
     91 MATHLIB=-lm
     92 Z_CFLAGS=-I/usr/include
     93 ZLIB=-L/usr/lib -lz
     94 AUXBIN_TARGETS=$(INFLATE)
     95 LIB_TARGETS=$(BOOKMARKER) $(HELPER)
     96 IMGCFLAGS=
     97 IMGLDFLAGS=
     98 IMGX11CFLAGS=
     99 IMGFBCFLAGS=
    100 IMGOBJS=
    101 GC_CFLAGS=
    102 GCLIB=gc/gc.a
    103 GCTARGET=gc/gc.a
    104 RANLIB=ranlib
    105 MKDIR=mkdir -p
    106 PERL=/usr/local/bin/perl
    107 VERSION=0.2.2
    108 MODEL=Linux.i686-monster-ja
    109 INSTALL_W3MIMGDISPLAY=$(INSTALL_PROGRAM)
    110 #else
    111 
    112 
    113 #define DISPLAY_CODE 'E'
    114 #define SYSTEM_CODE 'E'
    115 
    116 #define JA 0
    117 #define EN 1
    118 #define LANG JA
    119 #define KANJI_SYMBOLS
    120 #define USE_COLOR
    121 #undef USE_ANSI_COLOR
    122 #undef USE_MIGEMO
    123 #undef USE_MARK
    124 #define USE_MOUSE
    125 #define USE_GPM
    126 #undef USE_SYSMOUSE
    127 #define USE_MENU
    128 #define USE_COOKIE
    129 #define USE_DIGEST_AUTH
    130 #define USE_SSL
    131 #undef USE_SSL_VERIFY
    132 #undef USE_NNTP
    133 #undef USE_GOPHER
    134 #define USE_EXTERNAL_URI_LOADER
    135 #undef USE_ALARM
    136 #undef USE_IMAGE
    137 #undef USE_W3MIMG_X11
    138 #undef USE_W3MIMG_FB
    139 #undef USE_IMLIB
    140 #undef USE_GDKPIXBUF
    141 #undef USE_IMLIB2
    142 #define USE_HELP_CGI
    143 #undef USE_XFACE
    144 
    145 #define DEF_EDITOR "/bin/vi"
    146 #define DEF_MAILER "/bin/mail"
    147 #define DEF_EXT_BROWSER "/usr/bin/netscape"
    148 
    149 /* fallback viewer. mailcap override these configuration */
    150 #define DEF_IMAGE_VIEWER	"xv"
    151 #define DEF_AUDIO_PLAYER	"showaudio"
    152 
    153 /* for USE_MIGEMO */
    154 #define DEF_MIGEMO_COMMAND	"migemo -t egrep /usr/share/migemo/migemo-dict"
    155 
    156 #define AUXBIN_DIR   "/usr/local/lib/w3m"
    157 #define CGIBIN_DIR      "/usr/local/lib/w3m/cgi-bin"
    158 #define HELP_DIR     "/usr/local/lib/w3m"
    159 #define ETC_DIR	     "/usr/local/etc/w3m"
    160 #define HELP_FILE    "w3mhelp.html"
    161 #define HELP_CGI     "w3mhelp"
    162 #define W3MCONFIG    "w3mconfig"
    163 #define IMGDISPLAY   "w3mimgdisplay"
    164 #define XFACE2XPM    "xface2xpm"
    165 
    166 #define RC_DIR       "~/.w3m"
    167 #define BOOKMARK     "bookmark.html"
    168 #define CONFIG_FILE  "config"
    169 #define KEYMAP_FILE  "keymap"
    170 #define MENU_FILE    "menu"
    171 #define COOKIE_FILE  "cookie"
    172 #define HISTORY_FILE "history"
    173 
    174 #define PASSWD_FILE RC_DIR "/passwd"
    175 #define PRE_FORM_FILE RC_DIR "/pre_form"
    176 #define USER_MAILCAP RC_DIR "/mailcap"
    177 #define SYS_MAILCAP  "/etc/mailcap"
    178 #define USER_MIMETYPES "~/.mime.types"
    179 #define SYS_MIMETYPES "/usr/local/lib/mime.types"
    180 #define USER_URIMETHODMAP RC_DIR "/urimethodmap"
    181 #define SYS_URIMETHODMAP  ETC_DIR "/urimethodmap"
    182 
    183 #define DEF_SAVE_FILE "index.html"
    184 
    185 #undef USE_BINMODE_STREAM
    186 #define HAVE_TERMIOS_H
    187 #define HAVE_DIRENT_H
    188 typedef long clen_t;
    189 #undef HAVE_STRTOLL
    190 #undef HAVE_STRTOQ
    191 #undef HAVE_ATOLL
    192 #undef HAVE_ATOQ
    193 #define HAVE_STRCASECMP
    194 #define HAVE_STRCASESTR
    195 #define HAVE_STRCHR
    196 #define HAVE_STRERROR
    197 #define HAVE_SYS_ERRLIST
    198 #define HAVE_BCOPY
    199 #define HAVE_WAITPID
    200 #define HAVE_WAIT3
    201 #define HAVE_STRFTIME
    202 #define HAVE_GETCWD
    203 #define HAVE_GETWD
    204 #define HAVE_SYMLINK
    205 #define HAVE_READLINK
    206 #define HAVE_LSTAT
    207 #define HAVE_SETENV
    208 #define HAVE_PUTENV
    209 #define HAVE_SRAND48
    210 #define HAVE_SRANDOM
    211 #undef HAVE_GETPASSPHRASE
    212 #define HAVE_CHDIR
    213 
    214 
    215 #define SETJMP(env) sigsetjmp(env,1)
    216 #define LONGJMP(env,val) siglongjmp(env,val)
    217 #define JMP_BUF sigjmp_buf
    218 #define HAVE_FLOAT_H
    219 #define HAVE_SYS_SELECT_H
    220 
    221 typedef void MySignalHandler;
    222 #define SIGNAL_ARG int _dummy
    223 #define SIGNAL_ARGLIST 0
    224 #define SIGNAL_RETURN return
    225 #define HAVE_SETPGRP
    226 
    227 /*
    228    If you want to use IPv6, define this symbol.
    229  */
    230 #undef INET6
    231 
    232 /** dont edit below **/
    233 #ifndef HAVE_SRAND48
    234 #ifdef HAVE_SRANDOM
    235 #define srand48 srandom
    236 #define lrand48 random
    237 #else /* HAVE_SRANDOM */
    238 #define USE_INCLUDED_SRAND48
    239 #endif /* HAVE_SRANDOM */
    240 #endif
    241 
    242 #ifndef HAVE_LSTAT
    243 #define lstat stat
    244 #endif
    245 
    246 #if defined( __CYGWIN32__ ) && !defined( __CYGWIN__ )
    247 #define __CYGWIN__
    248 #endif
    249 
    250 #if defined( __CYGWIN__ ) || defined( __EMX__ )
    251 #define SUPPORT_DOS_DRIVE_PREFIX 1
    252 #endif
    253 
    254 #if defined( __CYGWIN__ )
    255 #define SUPPORT_NETBIOS_SHARE 1
    256 #endif
    257 
    258 #if defined(__DJGPP__)
    259 #define DEFAULT_TERM	"dosansi"
    260 #else
    261 #define DEFAULT_TERM	0	/* XXX */
    262 #endif
    263 
    264 #if defined(__EMX__) /* use $extension? */
    265 #define GUNZIP_CMDNAME  "gzip"
    266 #define BUNZIP2_CMDNAME "bzip2"
    267 #define INFLATE_CMDNAME  "inflate.exe"
    268 #define W3MBOOKMARK_CMDNAME	"w3mbookmark.exe"
    269 #define W3MHELPERPANEL_CMDNAME	"w3mhelperpanel.exe"
    270 #define DEV_NULL_PATH	"nul"
    271 #define DEV_TTY_PATH	"con"
    272 #define CGI_EXTENSION	".cmd"
    273 #else
    274 #define GUNZIP_CMDNAME  "gunzip"
    275 #define BUNZIP2_CMDNAME "bunzip2"
    276 #define INFLATE_CMDNAME  "inflate"
    277 #define W3MBOOKMARK_CMDNAME	"w3mbookmark"
    278 #define W3MHELPERPANEL_CMDNAME	"w3mhelperpanel"
    279 #define DEV_NULL_PATH	"/dev/null"
    280 #define DEV_TTY_PATH	"/dev/tty"
    281 #define CGI_EXTENSION	".cgi"
    282 #endif
    283 
    284 #define PATH_SEPARATOR	':'
    285 #define GUNZIP_NAME  "gunzip"
    286 #define BUNZIP2_NAME "bunzip2"
    287 #define INFLATE_NAME "inflate"
    288 
    289 #endif /* makefile_parameter */
    290 #endif /* _CONFIGURED_ */
    291