diff options
79 files changed, 2308 insertions, 1512 deletions
@@ -1,6 +1,72 @@ Changes since Lynx 2.8 release =============================================================================== +1999-08-26 (2.8.3dev.7) +* tweak ifdef'ing of `debug_delay' (only available with SH_EX _and_ WIN_EX) -LP +* tweak src/Xsystem.c (extern system_is_NT is now ifdef'ed with WIN_EX) so + exec_command() can also be used with DJGPP when compiled with _WIN_CC symbol + (though choice of _WIN_CC is questionable) -LP +* simplified ifdef'ing for resolv() vs LYGetHostByName() for DJGPP -TD +* DJGPP with WATT32 now does DNS lookup via LYGetHostByName()/gethostbyname() + like other lynx ports so we get reasonable error recovery when DNS lookup + fails. (For example, we now avoid a hang when wattcp.cfg is not configured + properly - a typical situation when playing with nullpkt.com). Build with + -DNSL_FORK (in both src and WWW makefiles) is recommended: this will prevent + unexpected 1 second curses delay when alerting a wrongly configured tcp. (No + real fork() in DJGPP, unfortunately: this function always returns -1 and set + 'errno' to ENOMEM, as MS-DOS does not support multiple processes. It exists + only to assist in porting Unix programs) -LP +* alternative patch (replaces HN's) for UCdomap.c -KW +* modify initialization of lynx_temp_space in case the given name has + embedded "~", ifdef'd for WIN_EX -SH +* fix a problem hanging caused by allowing some unknown entities in an ALT + string. The "hang" problem was caused by a combination of removing too much + under 'case S_check_name' in 'LYUCFullyTranslateString_1', _and_ having + having some Latin 1 character codes that are untranslatable to the display + character set -KW +* added lynx.cfg setting PSRCVIEW_NO_ANCHOR_NUMBERING that inhibits link + numbering when in psrc mode if set to TRUE (default is FALSE) -VH +* fixes for justification code (anchor position recalculation) and the + GridText.c:*TrimHightext (it was not designed to support LY_SOFT_NEWLINES), + correcting rendering of links on wrapped lines in psrc mode -VH +* fixes to www_tcp.h, LYUtils.c and UCdomap.c to build on BeOS 4.5 -TD +* fixes for CYGWIN with Slang, mainly due to platform differences in Slang -DK +* fixes for DJGPP, missing headers and declarations -DK +* let CJK charsets default to 7 Bit Approximations. Needed to display entities + in the decimal 160-255 range. (Restore behavior before the changes made to + declarations of charsets on 1999-03-04) -HN +* rename -number_links_forms to -number_fields -TD +* add the -number_links_forms command line option (John Hawkinson + <jhawk@MIT.EDU>). +* modify configure script so --enable-change-exec sets default for + the --enable-exec-links and --enable-exec-scripts options -TD +* modify ifdef's for ENABLE_OPTS_CHANGE_EXEC since one or both of EXEC_LINKS + and EXEC_SCRIPTS must also be defined to make this effective (reported by + KED). +* add explanations of the various choices for revealing/not images, to Users + Guide, Options Help & lynx.cfg -PW +* fix LYgetstr() to disable saving of input text on LYE_ENTER state when the + input is supposed to be hidden -KW +* add/use LYaddstr() to fix some const-casts -TD +* move dependency of "lynx$x" from "install" to + "install-bin:" in top-level makefile.in -PG +* corrected display of SGML_LITTERAL content -VH +* now LY_SOFT_NEWLINE is used in psrc mode to denote wrapped lines (as in plain + source mode) -VH +* add configure option --enable-scrollbar -TD +* make the charset-choice code lynx.cfg-reloading-safe -VH +* add experimental code to allow users to specify that a subset of the compiled-in + charset definitions are available for selection for display (ifdef'd with + EXP_CHARSET_CHOICE, added configure option --enable-charset-choice -TD) -VH +* add/use ANSI_PREPRO symbol to simplify ifdef's concerning preprocessor token + substitution/concatenation -TD +* modify ifdef of code that shows current CJK code in the title area under + SH_EX as well as CJK_EX -TD +* modify HTMLDTD.c to set canclose for <Hn> inside <PRE></PRE> -VH +* correct ifdef'ing of set_ws_title(), which should be applied only on win32 + (reported by Frederic L W Meunier) -LP, TD +* reduce compiler warnings from Borland C++Builder. Most of these are casts, + with boolean constructs dominating -JS 1999-08-13 (2.8.3dev.6) * workarounds in LYMain.c and LYMainLoop.c for excessive compiler warnings due to defective design of glibc2 -TD @@ -21,11 +87,11 @@ Changes since Lynx 2.8 release options -scrollbar and -scrollbar_arrow or corresponding lynx.cfg to enable it. Requires ncurses; may be further tuned if color-style configuration is used (Ilya Zakharevich) -* LYCopyFile(): Thanks to Hiroyuki Senshu, DOS-based systems needs no cp.exe - binary when compiled with SH_EX. This code is now defined with DOSPATH so - used automatically by any dos/windows port, but unused for UNIXes - (permissions?) if occasionally built with SH_EX symbol -LP -* few includes labelled with _WIN_CC now tweaked with WIN_EX as should be -LP +* LYCopyFile(): Thanks to Hiroyuki Senshu, DOS-based systems need no cp.exe + binary any more. The code was originally ifdef'ed with SH_EX; now defined + with DOSPATH so is used automatically by any dos/windows port, not used for + UNIXes (permissions?) -LP +* a few includes labeled with _WIN_CC now tweaked with WIN_EX as should be -LP * adjustments to SH_EX, CJK_EX ifdef's in LYMainLoop.c and LYUtils.c to aid in porting -LP * improved logic in status_link() for -short_url option (patches from diff --git a/INSTALLATION b/INSTALLATION index 2ce819e2..9cfe63aa 100644 --- a/INSTALLATION +++ b/INSTALLATION @@ -303,6 +303,11 @@ II. Compile instructions -- UNIX Allows lynx to access a cgi script directly without the need for a http daemon. + --enable-charset-choice (define EXP_CHARSET_CHOICE) + Add logic for ASSUMED_DOC_CHARSET_CHOICE and DISPLAY_CHARSET_CHOICE in + lynx.cfg, allowing user to configure a subset of the compiled-in + charsets for normal use. + --enable-cjk (define CJK_EX) Add special logic for supporting CJK documents. @@ -380,6 +385,11 @@ II. Compile instructions -- UNIX completion), as well as the amount of time stalled without any data transferred. + --enable-scrollbar (define USE_SCROLLBAR) + Compile-in experimental support for scrollbar on the right-margin of + the screen. If you configure with ncurses, this works with the mouse + on xterm, etc. + --enable-source-cache (define SOURCE_CACHE) Use this option to compile-in support for caching HTML pages locally, in files or in memory. Configurable from lynx.cfg @@ -506,7 +516,7 @@ II. Compile instructions -- UNIX process will create the libraries you will need, wais.a and client.a. Edit the Makefile in the top level directory and add the library locations under the DIRECT WAIS ACCESS heading. Edit the Makefile for the WWW Library in - "WWW/Library/Implementation/CommonMakefile" to point to the include + "WWW/Library/Implementation/makefile" to point to the include directory for the freewais distribution. Precompiled libraries are available for many platforms if you don't wish to compile one yourself. diff --git a/WWW/Library/Implementation/HTAAProt.c b/WWW/Library/Implementation/HTAAProt.c index cddfa1c4..4f231974 100644 --- a/WWW/Library/Implementation/HTAAProt.c +++ b/WWW/Library/Implementation/HTAAProt.c @@ -50,7 +50,7 @@ PRIVATE HTAAProt *current_prot = NULL; /* Current protection mode */ /* from the rule system when */ /* a "protect" rule is matched. */ - +#ifndef NOUSERS /* PRIVATE isNumber() ** DOES A CHARACTER STRING REPRESENT A NUMBER */ @@ -70,6 +70,7 @@ PRIVATE BOOL isNumber ARGS1(CONST char *, s) } return YES; } +#endif /* !NOUSERS */ #if defined (NOUSERS) @@ -599,6 +600,7 @@ PRIVATE void clear_uidgid_cache NOARGS } #endif /* LY_FIND_LEAKS */ +#ifndef NOUSERS PRIVATE void save_gid_info ARGS2(char *, name, int, user) { USER_DATA *data = (USER_DATA *)calloc(1, sizeof(USER_DATA)); @@ -617,7 +619,9 @@ PRIVATE void save_gid_info ARGS2(char *, name, int, user) data->user = user; HTList_addObject (known_grp, data); } +#endif /* NOUSERS */ +#ifndef NOUSERS PRIVATE void save_uid_info ARGS2(char *, name, int, user) { USER_DATA *data = (USER_DATA *)calloc(1, sizeof(USER_DATA)); @@ -636,6 +640,7 @@ PRIVATE void save_uid_info ARGS2(char *, name, int, user) data->user = user; HTList_addObject (known_pwd, data); } +#endif /* !NOUSERS */ /* PUBLIC HTAA_UidToName ** GET THE USER NAME diff --git a/WWW/Library/Implementation/HTAnchor.c b/WWW/Library/Implementation/HTAnchor.c index b2a911ed..8e9d0c61 100644 --- a/WWW/Library/Implementation/HTAnchor.c +++ b/WWW/Library/Implementation/HTAnchor.c @@ -165,9 +165,9 @@ PRIVATE BOOL HTIdentical ARGS2( return(NO); } } - return(*s == *t); + return (BOOL) (*s == *t); } else { - return(s == t); /* Two NULLs are identical, aren't they ? */ + return (BOOL) (s == t); /* Two NULLs are identical, aren't they ? */ } } #endif /* CASE_INSENSITIVE_ANCHORS */ @@ -896,7 +896,7 @@ PUBLIC BOOL HTAnchor_isISMAPScript ARGS1( PUBLIC BOOL HTAnchor_hasChildren ARGS1( HTParentAnchor *, me) { - return( me ? ! HTList_isEmpty(me->children) : NO); + return (BOOL) ( me ? ! HTList_isEmpty(me->children) : NO); } #if defined(USE_HASH) @@ -1086,7 +1086,7 @@ PUBLIC CONST char * HTAnchor_server ARGS1( PUBLIC BOOL HTAnchor_safe ARGS1( HTParentAnchor *, me) { - return( me ? me->safe : FALSE); + return (BOOL) ( me ? me->safe : FALSE); } /* Content-Base header handling. - FM diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index 32349c8a..dbe05151 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -445,7 +445,7 @@ PRIVATE int response ARGS1( char *p = response_text; for (;;) { int ich = NEXT_CHAR; - if (((*p++ = ich) == LF) + if (((*p++ = (char) ich) == LF) || (p == &response_text[LINE_LENGTH])) { char continuation; @@ -1029,7 +1029,7 @@ PRIVATE int close_master_socket NOARGS int status; if (master_socket != -1) - FD_CLR(master_socket, &open_sockets); + FD_CLR( (unsigned) master_socket, &open_sockets); status = NETCLOSE(master_socket); CTRACE(tfp, "HTFTP: Closed master socket %d\n", master_socket); master_socket = -1; @@ -1207,7 +1207,7 @@ PRIVATE int get_listen_socket NOARGS } } CTRACE(tfp, "TCP: Master socket(), bind() and listen() all OK\n"); - FD_SET(master_socket, &open_sockets); + FD_SET( (unsigned) master_socket, &open_sockets); if ((master_socket+1) > num_sockets) num_sockets = master_socket+1; @@ -1416,7 +1416,7 @@ PRIVATE void parse_ls_line ARGS2( char *, line, EntryInfo *, entry_info) { - short i, j; + int i, j; int base=1; int size_num=0; @@ -1629,8 +1629,8 @@ PRIVATE void parse_vms_dir_entry ARGS2( /** Month **/ *(cpd+4) = '\0'; - *(cpd+2) = TOLOWER(*(cpd+2)); - *(cpd+3) = TOLOWER(*(cpd+3)); + *(cpd+2) = (char) TOLOWER(*(cpd+2)); + *(cpd+3) = (char) TOLOWER(*(cpd+3)); sprintf(date, "%s ", cpd+1); *(cpd+4) = '-'; @@ -3038,7 +3038,7 @@ PUBLIC int HTFTPLoad ARGS4( format = HTFileFormat(filename, &encoding, NULL); } format = HTCharsetFormat(format, anchor, -1); - binary = (encoding != HTAtom_for("8bit") && + binary = (BOOL) (encoding != HTAtom_for("8bit") && encoding != HTAtom_for("7bit")); if (!binary && /* diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c index 575e9e7f..0dfe68f3 100644 --- a/WWW/Library/Implementation/HTFile.c +++ b/WWW/Library/Implementation/HTFile.c @@ -199,10 +199,14 @@ PRIVATE void LYListFmtParse ARGS5( char *buf = NULL; char tmp[LY_MAXPATH]; char type; +#ifndef _WINDOWS char *name; +#endif time_t now; char *datestr; +#ifdef S_IFLNK int len; +#endif #define SEC_PER_YEAR (60 * 60 * 24 * 365) #ifdef _WINDOWS /* 1998/01/06 (Tue) 21:20:53 */ @@ -460,7 +464,7 @@ PUBLIC void HTSetSuffix5 ARGS5( float, value) { HTSuffix * suff; - BOOL trivial_enc = IsUnityEncStr(encoding); + BOOL trivial_enc = (BOOL) IsUnityEncStr(encoding); if (strcmp(suffix, "*") == 0) suff = &no_suffix; @@ -767,7 +771,7 @@ PUBLIC CONST char * HTFileSuffix ARGS2( HTFileInit(); #endif /* !NO_INIT */ - trivial_enc = IsUnityEncStr(enc); + trivial_enc = (BOOL) IsUnityEncStr(enc); n = HTList_count(HTSuffixes); for (i = 0; i < n; i++) { suff = (HTSuffix *)HTList_objectAt(HTSuffixes, i); @@ -1024,15 +1028,15 @@ PUBLIC HTFormat HTCharsetFormat ARGS3( ** of match. */ BOOL given_is_8859 - = (!strncmp(cp4, "iso-8859-", 9) && + = (BOOL) (!strncmp(cp4, "iso-8859-", 9) && isdigit((unsigned char)cp4[9])); BOOL given_is_8859like - = (given_is_8859 || + = (BOOL) (given_is_8859 || !strncmp(cp4, "windows-", 8) || !strncmp(cp4, "cp12", 4) || !strncmp(cp4, "cp-12", 5)); BOOL given_and_display_8859like - = (given_is_8859like && + = (BOOL) (given_is_8859like && (strstr(LYchar_set_names[current_char_set], "ISO-8859") || strstr(LYchar_set_names[current_char_set], @@ -1589,7 +1593,7 @@ PRIVATE int print_local_dir ARGS5( { int i; for (i = 0; i < HTML_A_ATTRIBUTES; i++) - present[i] = (i == HTML_A_HREF); + present[i] = (BOOL) (i == HTML_A_HREF); } /* diff --git a/WWW/Library/Implementation/HTFinger.c b/WWW/Library/Implementation/HTFinger.c index 08f9763e..e6e9699b 100644 --- a/WWW/Library/Implementation/HTFinger.c +++ b/WWW/Library/Implementation/HTFinger.c @@ -86,7 +86,7 @@ PRIVATE void start_anchor ARGS1(CONST char *, href) { int i; for(i=0; i<HTML_A_ATTRIBUTES; i++) - present[i] = (i==HTML_A_HREF); + present[i] = (BOOL) (i==HTML_A_HREF); } ((CONST char **)value)[HTML_A_HREF] = href; (*targetClass.start_element)(target, HTML_A, present, @@ -191,7 +191,7 @@ PRIVATE int response ARGS5( } if (ch != LF) { - *p = ch; /* Put character in line */ + *p = (char) ch; /* Put character in line */ if (p < &line[BIG-1]) { p++; } diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c index f44bd543..72b7838f 100644 --- a/WWW/Library/Implementation/HTFormat.c +++ b/WWW/Library/Implementation/HTFormat.c @@ -599,7 +599,7 @@ PUBLIC int HTCopy ARGS4( #ifdef _WINDOWS /* 1997/11/11 (Tue) 15:18:16 */ long file_length; extern int bytes_already_read; - + file_length = anchor->content_length; #endif @@ -647,7 +647,7 @@ PUBLIC int HTCopy ARGS4( goto finished; } else if (SOCKET_ERRNO == ENOTCONN || #ifdef _WINDOWS /* 1997/11/10 (Mon) 16:57:18 */ - SOCKET_ERRNO == ETIMEDOUT || + SOCKET_ERRNO == ETIMEDOUT || #endif SOCKET_ERRNO == ECONNRESET || SOCKET_ERRNO == EPIPE) { @@ -965,7 +965,7 @@ PUBLIC void HTCopyNoCR ARGS3( HTStream*, sink) { HTStreamClass targetClass; - char character; + int character; /* Push the data, ignoring CRLF, down the stream */ @@ -979,7 +979,7 @@ PUBLIC void HTCopyNoCR ARGS3( HTInitInput(file_number); for (;;) { character = HTGetCharacter(); - if (character == (char)EOF) + if (character == EOF) break; (*targetClass.put_character)(sink, character); } @@ -1289,7 +1289,7 @@ PRIVATE void NetToText_put_character ARGS2(HTStream *, me, char, net_char) me->sink->isa->put_character(me->sink, CR); /* leftover */ } } - me->had_cr = (c == CR); + me->had_cr = (BOOL) (c == CR); if (!me->had_cr) me->sink->isa->put_character(me->sink, c); /* normal */ } diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c index 02a83057..42c0760c 100644 --- a/WWW/Library/Implementation/HTGopher.c +++ b/WWW/Library/Implementation/HTGopher.c @@ -158,10 +158,10 @@ PRIVATE CONST char hex[17] = "0123456789abcdef"; PRIVATE char from_hex ARGS1(char, c) { - return (c>='0')&&(c<='9') ? c-'0' + return (char) ( (c>='0')&&(c<='9') ? c-'0' : (c>='A')&&(c<='F') ? c-'A'+10 : (c>='a')&&(c<='f') ? c-'a'+10 - : 0; + : 0); } /* Paste in an Anchor @@ -256,7 +256,7 @@ PRIVATE void parse_menu ARGS2( } if ((char)ich != LF) { - *p = ich; /* Put character in line */ + *p = (char) ich; /* Put character in line */ if (p< &line[BIG-1]) p++; } else { @@ -497,7 +497,7 @@ PRIVATE void parse_cso ARGS2( { if ((char)ich != LF) { - *p = ich; /* Put character in line */ + *p = (char) ich; /* Put character in line */ if (p< &line[BIG-1]) p++; } else @@ -708,7 +708,7 @@ PRIVATE void de_escape ARGS2(char *, command, CONST char *, selector) b = from_hex(c); c = *p++; if (!c) break; /* Odd number of chars! */ - *q++ = FROMASCII((b<<4) + from_hex(c)); + *q++ = (char) FROMASCII((b<<4) + from_hex(c)); } else { *q++ = *p++; /* Record */ } @@ -947,7 +947,7 @@ PRIVATE int parse_cso_fields ARGS2( } if ((char)ich != LF) { - *p = ich; /* Put character in buffer */ + *p = (char) ich; /* Put character in buffer */ if (p < &buf[size-1]) { p++; } @@ -1243,7 +1243,7 @@ PRIVATE int generate_cso_report ARGS1( } if ((char)ich != LF) { - *p = ich; /* Put character in line */ + *p = (char) ich; /* Put character in line */ if (p < &line[BIG-1]) { p++; } diff --git a/WWW/Library/Implementation/HTGroup.c b/WWW/Library/Implementation/HTGroup.c index 490699d3..b3a30861 100644 --- a/WWW/Library/Implementation/HTGroup.c +++ b/WWW/Library/Implementation/HTGroup.c @@ -78,7 +78,7 @@ PRIVATE void syntax_error ARGS3(FILE *, fp, int ch; while ((ch = getc(fp)) != EOF && ch != '\n') - if (cnt < 40) buffer[cnt++] = ch; + if (cnt < 40) buffer[cnt++] = (char) ch; buffer[cnt] = (char)0; CTRACE(tfp, "%s %d before: '%s'\nHTGroup.c: %s (got %s)\n", diff --git a/WWW/Library/Implementation/HTLex.c b/WWW/Library/Implementation/HTLex.c index 59901fb3..64b113d8 100644 --- a/WWW/Library/Implementation/HTLex.c +++ b/WWW/Library/Implementation/HTLex.c @@ -89,7 +89,7 @@ PUBLIC LexItem lex ARGS1(FILE *, fp) } break; default: - HTlex_buffer[lex_cnt++] = ch; + HTlex_buffer[lex_cnt++] = (char) ch; HTlex_buffer[lex_cnt] = '\0'; if ('*' == ch) lex_template = YES; } /* switch ch */ diff --git a/WWW/Library/Implementation/HTMIME.c b/WWW/Library/Implementation/HTMIME.c index 24b42194..f21ae35e 100644 --- a/WWW/Library/Implementation/HTMIME.c +++ b/WWW/Library/Implementation/HTMIME.c @@ -435,15 +435,15 @@ PRIVATE void HTMIME_put_character ARGS2( ** of match. */ BOOL given_is_8859 - = (!strncmp(cp4, "iso-8859-", 9) && + = (BOOL) (!strncmp(cp4, "iso-8859-", 9) && isdigit((unsigned char)cp4[9])); BOOL given_is_8859like - = (given_is_8859 || + = (BOOL) (given_is_8859 || !strncmp(cp4, "windows-", 8) || !strncmp(cp4, "cp12", 4) || !strncmp(cp4, "cp-12", 5)); BOOL given_and_display_8859like - = (given_is_8859like && + = (BOOL) (given_is_8859like && (strstr(LYchar_set_names[current_char_set], "ISO-8859") || strstr(LYchar_set_names[current_char_set], @@ -1451,7 +1451,7 @@ PRIVATE void HTMIME_put_character ARGS2( */ for (i = 0, j = 0; me->value[i]; i++) { if (me->value[i] != ' ' && me->value[i] != '\"') { - me->value[j++] = TOLOWER(me->value[i]); + me->value[j++] = (char) TOLOWER(me->value[i]); } } me->value[j] = '\0'; @@ -1918,7 +1918,7 @@ PUBLIC void HTmmdec_base64 ARGS2( val += d; } for (j = 2; j >= 0; j--) { - nw[j] = val & 255; + nw[j] = (char) (val & 255); val >>= 8; } if (count--) @@ -1942,14 +1942,14 @@ PUBLIC void HTmmdec_quote ARGS2( if (*s == '=') { cval = 0; if (s[1] && (p = strchr(HTmmquote, s[1]))) { - cval += (p - HTmmquote); + cval += (char) (p - HTmmquote); } else { *bp++ = *s++; continue; } if (s[2] && (p = strchr(HTmmquote, s[2]))) { cval <<= 4; - cval += (p - HTmmquote); + cval += (char) (p - HTmmquote); *bp++ = cval; s += 3; } else { diff --git a/WWW/Library/Implementation/HTMLDTD.c b/WWW/Library/Implementation/HTMLDTD.c index 878c573e..698c765f 100644 --- a/WWW/Library/Implementation/HTMLDTD.c +++ b/WWW/Library/Implementation/HTMLDTD.c @@ -1212,17 +1212,17 @@ static attr ulist_attr[] = { /* UL attributes */ /* { "FRAMESET", frameset_attr,HTML_FRAMESET_ATTRIBUTES, SGML_MIXED }, */ #define T_FRAMESET 0x10000,0x90000,0x90000,0x90000,0x93000,0x9FFFF,0x00000 /* { "H1" , h_attr, HTML_H_ATTRIBUTES, SGML_MIXED }, */ -#define T_H1 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80317,0x00000 +#define T_H1 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80117,0x00000 /* { "H2" , h_attr, HTML_H_ATTRIBUTES, SGML_MIXED }, */ -#define T_H2 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80317,0x00000 +#define T_H2 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80117,0x00000 /* { "H3" , h_attr, HTML_H_ATTRIBUTES, SGML_MIXED }, */ -#define T_H3 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80317,0x00000 +#define T_H3 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80117,0x00000 /* { "H4" , h_attr, HTML_H_ATTRIBUTES, SGML_MIXED }, */ -#define T_H4 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80317,0x00000 +#define T_H4 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80117,0x00000 /* { "H5" , h_attr, HTML_H_ATTRIBUTES, SGML_MIXED }, */ -#define T_H5 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80317,0x00000 +#define T_H5 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80117,0x00000 /* { "H6" , h_attr, HTML_H_ATTRIBUTES, SGML_MIXED }, */ -#define T_H6 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80317,0x00000 +#define T_H6 0x0100, 0x0B04F,0x0B05F,0x36680,0x37FAF,0x80117,0x00000 /* { "HEAD" , gen_attr, HTML_GEN_ATTRIBUTES, SGML_MIXED }, */ #define T_HEAD 0x40000,0x4F000,0x47000,0x10000,0x10000,0x9FF7F,0x00006 /* { "HR" , hr_attr, HTML_HR_ATTRIBUTES, SGML_EMPTY }, */ @@ -1493,7 +1493,7 @@ static CONST HTTag tags_old[HTML_ELEMENTS] = { { P("TFOOT") , tr_attr, HTML_TR_ATTRIBUTES, SGML_EMPTY,T_TFOOT}, { P("TH") , td_attr, HTML_TD_ATTRIBUTES, SGML_EMPTY,T_TH}, { P("THEAD") , tr_attr, HTML_TR_ATTRIBUTES, SGML_EMPTY,T_THEAD}, - { P("TITLE"), gen_attr, HTML_GEN_ATTRIBUTES, SGML_RCDATA,T_TITLE}, + { P("TITLE") , gen_attr, HTML_GEN_ATTRIBUTES, SGML_RCDATA,T_TITLE}, { P("TR") , tr_attr, HTML_TR_ATTRIBUTES, SGML_EMPTY,T_TR}, { P("TT") , gen_attr, HTML_GEN_ATTRIBUTES, SGML_EMPTY,T_TT}, { P("U") , gen_attr, HTML_GEN_ATTRIBUTES, SGML_EMPTY,T_U}, diff --git a/WWW/Library/Implementation/HTNews.c b/WWW/Library/Implementation/HTNews.c index 3719d2ff..d00435b9 100644 --- a/WWW/Library/Implementation/HTNews.c +++ b/WWW/Library/Implementation/HTNews.c @@ -262,7 +262,7 @@ PRIVATE int response ARGS1(CONST char *,command) for (;;) { ich = NEXT_CHAR; - if (((*p++ = ich) == LF) || + if (((*p++ = (char) ich) == LF) || (p == &response_text[LINE_LENGTH])) { *--p = '\0'; /* Terminate the string */ CTRACE(tfp, "NNTP Response: %s\n", response_text); @@ -653,7 +653,7 @@ PRIVATE void start_anchor ARGS1(CONST char *, href) { int i; for(i=0; i < HTML_A_ATTRIBUTES; i++) - present[i] = (i == HTML_A_HREF); + present[i] = (BOOL) (i == HTML_A_HREF); } ((CONST char **)value)[HTML_A_HREF] = href; (*targetClass.start_element)(target, HTML_A , present, @@ -671,7 +671,7 @@ PRIVATE void start_link ARGS2(CONST char *, href, CONST char *, rev) { int i; for(i=0; i < HTML_LINK_ATTRIBUTES; i++) - present[i] = (i == HTML_LINK_HREF || i == HTML_LINK_REV); + present[i] = (BOOL) (i == HTML_LINK_HREF || i == HTML_LINK_REV); } ((CONST char **)value)[HTML_LINK_HREF] = href; ((CONST char **)value)[HTML_LINK_REV] = rev; @@ -690,7 +690,7 @@ PRIVATE void start_list ARGS1(int, seqnum) int i; for (i = 0; i < HTML_OL_ATTRIBUTES; i++) - present[i] = (i == HTML_OL_SEQNUM || i == HTML_OL_START); + present[i] = (BOOL) (i == HTML_OL_SEQNUM || i == HTML_OL_START); sprintf(SeqNum, "%d", seqnum); ((CONST char **)value)[HTML_OL_SEQNUM] = SeqNum; ((CONST char **)value)[HTML_OL_START] = SeqNum; @@ -958,7 +958,7 @@ void debug_print(unsigned char *p) printf("[ESC]"); else if (*p == '\n') printf("[NL]"); - else if (*p < ' ' || *p >= 0x80) + else if (*p < ' ' || *p >= 0x80) printf("(%02x)", *p); else putchar(*p); @@ -1061,7 +1061,7 @@ PRIVATE int read_article ARGS1( if (!diagnostic && !rawtext) { while (!done) { int ich = NEXT_CHAR; - *p++ = ich; + *p++ = (char) ich; if (ich == EOF) { if (interrupted_in_htgetcharacter) { interrupted_in_htgetcharacter = 0; @@ -1391,7 +1391,7 @@ PRIVATE int read_article ARGS1( p = line; while (!done) { int ich = NEXT_CHAR; - *p++ = ich; + *p++ = (char) ich; if (ich == EOF) { if (interrupted_in_htgetcharacter) { interrupted_in_htgetcharacter = 0; @@ -1599,7 +1599,7 @@ PRIVATE int read_list ARGS1(char *, arg) PUTC('\n'); while (!done) { int ich = NEXT_CHAR; - char ch = ich; + char ch = (char) ich; if (ich == EOF) { if (interrupted_in_htgetcharacter) { interrupted_in_htgetcharacter = 0; @@ -1929,7 +1929,7 @@ PRIVATE int read_group ARGS3( done = NO; while( !done ) { int ich = NEXT_CHAR; - *p++ = ich; + *p++ = (char) ich; if (ich == EOF) { if (interrupted_in_htgetcharacter) { interrupted_in_htgetcharacter = 0; @@ -1954,7 +1954,7 @@ PRIVATE int read_group ARGS3( /* ** End of article? */ - done = ((unsigned char)line[1] < ' '); + done = (BOOL) ((unsigned char)line[1] < ' '); break; case 'S': @@ -2181,21 +2181,21 @@ PRIVATE int HTLoadNews ARGS4( ** xxxxx News group (no "@") ** group/n1-n2 Articles n1 to n2 in group */ - spost_wanted = (strstr(arg, "snewspost:") != NULL); - sreply_wanted = (!(spost_wanted) && + spost_wanted = (BOOL) (strstr(arg, "snewspost:") != NULL); + sreply_wanted = (BOOL) (!(spost_wanted) && strstr(arg, "snewsreply:") != NULL); - post_wanted = (!(spost_wanted || sreply_wanted) && + post_wanted = (BOOL) (!(spost_wanted || sreply_wanted) && strstr(arg, "newspost:") != NULL); - reply_wanted = (!(spost_wanted || sreply_wanted || + reply_wanted = (BOOL) (!(spost_wanted || sreply_wanted || post_wanted) && strstr(arg, "newsreply:") != NULL); - group_wanted = (!(spost_wanted || sreply_wanted || + group_wanted = (BOOL) ((!(spost_wanted || sreply_wanted || post_wanted || reply_wanted) && - strchr(arg, '@') == NULL) && (strchr(arg, '*') == NULL); - list_wanted = (!(spost_wanted || sreply_wanted || + strchr(arg, '@') == NULL) && (strchr(arg, '*') == NULL)); + list_wanted = (BOOL) ((!(spost_wanted || sreply_wanted || post_wanted || reply_wanted || group_wanted) && - strchr(arg, '@') == NULL) && (strchr(arg, '*') != NULL); + strchr(arg, '@') == NULL) && (strchr(arg, '*') != NULL)); if (!strncasecomp(arg, "snewspost:", 10) || !strncasecomp(arg, "snewsreply:", 11)) { @@ -2457,7 +2457,7 @@ PRIVATE int HTLoadNews ARGS4( if ((*cp = *(cp + 3)) == '\0') break; } - rawtext = (head_wanted || keep_mime_headers); + rawtext = (BOOL) (head_wanted || keep_mime_headers); } if (rawtext) { node_anchor = anAnchor; diff --git a/WWW/Library/Implementation/HTParse.c b/WWW/Library/Implementation/HTParse.c index 1122d3a1..e4d6496b 100644 --- a/WWW/Library/Implementation/HTParse.c +++ b/WWW/Library/Implementation/HTParse.c @@ -777,9 +777,9 @@ PUBLIC char * HTEscapeSP ARGS2( PRIVATE char from_hex ARGS1( char, c) { - return c >= '0' && c <= '9' ? c - '0' + return (char) ( c >= '0' && c <= '9' ? c - '0' : c >= 'A' && c <= 'F'? c - 'A' + 10 - : c - 'a' + 10; /* accept small letters just in case */ + : c - 'a' + 10); /* accept small letters just in case */ } PUBLIC char * HTUnEscape ARGS1( @@ -804,12 +804,12 @@ PUBLIC char * HTUnEscape ARGS1( } else { p++; if (*p) - *q = from_hex(*p++) * 16; + *q = (char) (from_hex(*p++) * 16); if (*p) { /* ** Careful! FROMASCII() may evaluate its arg more than once! */ /* S/390 -- gil -- 0221 */ - *q = *q + from_hex(*p++) ; + *q = (char) (*q + from_hex(*p++)); } *q = FROMASCII(*q); q++; @@ -850,7 +850,8 @@ PUBLIC char * HTUnEscapeSome ARGS2( p[1] && p[2] && /* tests shouldn't be needed, but.. */ isxdigit((unsigned char)p[1]) && isxdigit((unsigned char)p[2]) && - (testcode = FROMASCII(from_hex(p[1])*16 + from_hex(p[2]))) && /* %00 no good*/ + (testcode = (char) FROMASCII(from_hex(p[1])*16 + + from_hex(p[2]))) && /* %00 no good*/ strchr(do_trans, testcode)) { /* it's one of the ones we want */ *q++ = testcode; p += 3; diff --git a/WWW/Library/Implementation/HTPlain.c b/WWW/Library/Implementation/HTPlain.c index a1a8a136..26d11f4c 100644 --- a/WWW/Library/Implementation/HTPlain.c +++ b/WWW/Library/Implementation/HTPlain.c @@ -478,7 +478,7 @@ PRIVATE void HTPlain_write ARGS3(HTStream *, me, CONST char*, s, int, l) /****************************************************************** * I. LATIN-1 OR UCS2 TO DISPLAY CHARSET ******************************************************************/ - } else if ((chk = (me->T.trans_from_uni && code >= 160)) && + } else if ((chk = (BOOL) (me->T.trans_from_uni && code >= 160)) && (uck = UCTransUniChar(code, me->outUCLYhndl)) >= ' ' && /* S/390 -- gil -- 0464 */ uck < 256) { @@ -542,7 +542,7 @@ PRIVATE void HTPlain_write ARGS3(HTStream *, me, CONST char*, s, int, l) ** seek a translation for that. Otherwise, or if the ** translation fails, use UHHH notation. - FM */ - if ((chk = (me->outUCLYhndl != + if ((chk = (BOOL) (me->outUCLYhndl != UCGetLYhndl_byMIME("us-ascii"))) && (uck = UCTransUniChar(code, UCGetLYhndl_byMIME("us-ascii"))) diff --git a/WWW/Library/Implementation/HTRules.c b/WWW/Library/Implementation/HTRules.c index 53945fe0..828d9f67 100644 --- a/WWW/Library/Implementation/HTRules.c +++ b/WWW/Library/Implementation/HTRules.c @@ -177,7 +177,7 @@ PRIVATE BOOL rule_cond_ok ARGS1( return NO; } if (!strcmp(r->condition, "redirected")) - result = (redirection_attempts > 0); + result = (BOOL) (redirection_attempts > 0); else if (!strcmp(r->condition, "userspec")) result = LYUserSpecifiedURL; else { @@ -188,7 +188,7 @@ PRIVATE BOOL rule_cond_ok ARGS1( if (!strcmp(r->condition_op, "if")) return result; else - return (!result); + return (BOOL) (!result); } /* Translate by rules HTTranslate() @@ -369,14 +369,14 @@ char * HTTranslate ARGS1( CTRACE(tfp, "HTRule: ...and redirect to `%s'\n", current); redirecting_url = current; - HTPermitRedir = (permitredir_flag == 1); + HTPermitRedir = (BOOL) (permitredir_flag == 1); return (char *)0; } else if (r->op == HT_RedirectPerm) { CTRACE(tfp, "HTRule: ...and redirect like 301 to `%s'\n", current); redirecting_url = current; permanent_redirection = TRUE; - HTPermitRedir = (permitredir_flag == 1); + HTPermitRedir = (BOOL) (permitredir_flag == 1); return (char *)0; } break; diff --git a/WWW/Library/Implementation/HTString.c b/WWW/Library/Implementation/HTString.c index aecebf34..89412e39 100644 --- a/WWW/Library/Implementation/HTString.c +++ b/WWW/Library/Implementation/HTString.c @@ -390,9 +390,9 @@ PUBLIC char * HTNextTok ARGS4( if (!delims) delims = " ;,=" ; if (!bracks) bracks = "<\"" ; - get_blanks = (!strchr(delims,' ') && !strchr(bracks,' ')); - get_comments = (strchr(bracks,'(') != NULL); - skip_comments = (!get_comments && !strchr(delims,'(') && !get_blanks); + get_blanks = (BOOL) (!strchr(delims,' ') && !strchr(bracks,' ')); + get_comments = (BOOL) (strchr(bracks,'(') != NULL); + skip_comments = (BOOL) (!get_comments && !strchr(delims,'(') && !get_blanks); #define skipWHITE(c) (!get_blanks && WHITE(c)) while (*p && skipWHITE(*p)) @@ -430,7 +430,7 @@ PUBLIC char * HTNextTok ARGS4( if (!*p || (!strchr(bracks,*p) && strchr(delims,*p))) { break; } else - get_closing_char_too = (strchr(bracks,*p) != NULL); + get_closing_char_too = (BOOL) (strchr(bracks,*p) != NULL); } } else if (strchr(bracks,*p)) { /* quoted or bracketted field */ switch (*p) { @@ -448,7 +448,7 @@ PUBLIC char * HTNextTok ARGS4( if (!*p || (!strchr(bracks,*p) && strchr(delims,*p))) { break; } else - get_closing_char_too = (strchr(bracks,*p) != NULL); + get_closing_char_too = (BOOL) (strchr(bracks,*p) != NULL); } else break; /* kr95-10-9: needs to stop here */ #if 0 @@ -922,7 +922,9 @@ PUBLIC void HTAddParam ARGS4( if (number > 0) { CONST char *last = HTAfterCommandArg(command, number - 1); CONST char *next = last; +#if USE_QUOTED_PARAMETER char *quoted; +#endif if (number <= 1) { FREE(*result); diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index 46c85034..db1dd375 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -32,6 +32,10 @@ #include <resolv.h> #endif +#if defined(__DJGPP__) && defined (WATT32) +#include <netdb.h> +#endif /* __DJGPP__ */ + #define OK_HOST(p) ((p) != 0 && ((p)->h_length) != 0) #ifdef SVR4_BSDSELECT @@ -359,7 +363,7 @@ PUBLIC BOOL valid_hostname ARGS1( return NO; } } - return (*cp == '\0' || (*cp == '.' && iseg != 0 && cp[1] == '\0')); + return (BOOL) (*cp == '\0' || (*cp == '.' && iseg != 0 && cp[1] == '\0')); } #ifdef NSL_FORK @@ -377,7 +381,7 @@ PRIVATE void quench ARGS1( PUBLIC int lynx_nsl_status = HT_OK; -#ifndef DJGPP /* much excluded! */ +#if !( defined(__DJGPP__) && !defined(WATT32) ) /* much excluded! */ #define DEBUG_HOSTENT /* disable in case of problems */ #define DEBUG_HOSTENT_CHILD /* for NSL_FORK, may screw up trace file */ @@ -1074,11 +1078,6 @@ PUBLIC struct hostent * LYGetHostByName ARGS1( #ifdef _WINDOWS_NSL { - char buff[256]; - LPSTR szIPAddr; /* IP address as a dotted decimal string */ - IN_ADDR addr; - IN_ADDR *p; - HANDLE hThread, dwThreadID; if (!system_is_NT) { /* for Windows9x */ @@ -1151,7 +1150,7 @@ failed: return NULL; } -#endif /* from here on DJGPP joins us again. */ +#endif /* from here on DJGPP without WATT32 joins us again. */ /* Parse a network node address and port @@ -1248,7 +1247,7 @@ PUBLIC int HTParseInet ARGS2( */ if (dotcount_ip == 3) { /* Numeric node address: */ -#ifdef DJGPP +#if defined(__DJGPP__) && !defined(WATT32) soc_in->sin_addr.s_addr = htonl(aton(host)); #else #ifdef DGUX_OLD @@ -1270,7 +1269,7 @@ PUBLIC int HTParseInet ARGS2( #endif /* HAVE_INET_ATON */ #endif /* GUSI */ #endif /* DGUX_OLD */ -#endif /* DJGPP */ +#endif /* __DJGPP__ && !WATT32 */ #ifndef _WINDOWS_NSL FREE(host); #endif /* _WINDOWS_NSL */ @@ -1280,7 +1279,7 @@ PUBLIC int HTParseInet ARGS2( CTRACE(tfp, "HTParseInet: Calling LYGetHostByName(%s)\n", host); #endif /* MVS */ -#ifdef DJGPP +#if defined(__DJGPP__) && !defined(WATT32) if (!valid_hostname(host)) { FREE(host); return HT_NOT_ACCEPTABLE; /* only HTDoConnect checks this. */ @@ -1289,12 +1288,12 @@ PUBLIC int HTParseInet ARGS2( if (soc_in->sin_addr.s_addr == 0) { goto failed; } -#else /* !DJGPP: */ +#else /* !(__DJGPP__ && !WATT32) */ #ifdef _WINDOWS_NSL phost = LYGetHostByName(host); /* See above */ if (!phost) goto failed; memcpy((void *)&soc_in->sin_addr, phost->h_addr, phost->h_length); -#else /* !DJGPP, !_WINDOWS_NSL: */ +#else /* !(__DJGPP__ && !WATT32) && !_WINDOWS_NSL */ { struct hostent *phost; phost = LYGetHostByName(host); /* See above */ @@ -1318,8 +1317,8 @@ PUBLIC int HTParseInet ARGS2( memcpy((void *)&soc_in->sin_addr, phost->h_addr, phost->h_length); #endif /* VMS && CMU_TCP */ } -#endif /* !DJGPP, !_WINDOWS_NSL */ -#endif /* !DJGPP */ +#endif /* _WINDOWS_NSL */ +#endif /* __DJGPP__ && !WATT32 */ #ifndef _WINDOWS_NSL FREE(host); #endif /* _WINDOWS_NSL */ @@ -1432,7 +1431,7 @@ PUBLIC CONST char * HTHostName NOARGS #endif /* UCX && VAXC */ #endif /* MULTINET */ /* -** Interruptable connect as implemented for Mosaic by Marc Andreesen +** Interruptible connect as implemented for Mosaic by Marc Andreesen ** and hacked in for Lynx years ago by Lou Montulli, and further ** modified over the years by numerous Lynx lovers. - FM */ @@ -1544,7 +1543,7 @@ PUBLIC int HTDoConnect ARGS4( } else #endif /* SOCKS */ status = connect(*s, (struct sockaddr*)&soc_address, sizeof(soc_address)); -#ifndef DJGPP +#ifndef __DJGPP__ /* ** According to the Sun man page for connect: ** EINPROGRESS The socket is non-blocking and the con- @@ -1595,7 +1594,7 @@ PUBLIC int HTDoConnect ARGS4( #endif /* _WINDOWS_NSL */ timeout.tv_usec = 100000; FD_ZERO(&writefds); - FD_SET(*s, &writefds); + FD_SET((unsigned) *s, &writefds); #ifdef SOCKS if (socks_flag) ret = Rselect(FD_SETSIZE, NULL, @@ -1735,7 +1734,7 @@ PUBLIC int HTDoConnect ARGS4( errno = saved_errno; /* I don't trust HTInetStatus */ } #endif /* SOCKET_DEBUG_TRACE */ -#endif /* !DJGPP */ +#endif /* !__DJGPP__ */ if (status < 0) { /* ** The connect attempt failed or was interrupted, @@ -1847,7 +1846,7 @@ PUBLIC int HTDoRead ARGS3( timeout.tv_sec = 0; timeout.tv_usec = 100000; FD_ZERO(&readfds); - FD_SET(fildes, &readfds); + FD_SET((unsigned)fildes, &readfds); #ifdef SOCKS if (socks_flag) ret = Rselect(FD_SETSIZE, diff --git a/WWW/Library/Implementation/HTTCP.h b/WWW/Library/Implementation/HTTCP.h index d22cac8d..589e16ef 100644 --- a/WWW/Library/Implementation/HTTCP.h +++ b/WWW/Library/Implementation/HTTCP.h @@ -10,7 +10,7 @@ #ifndef HTUTILS_H #include <HTUtils.h> #endif - + /* Produce a string for an internet address ** --------------------------------------- ** @@ -86,10 +86,12 @@ extern BOOL valid_hostname PARAMS((CONST char * name)); */ extern int lynx_nsl_status; -#ifndef DJGPP +#if defined(__DJGPP__) && !defined(WATT32) +#define LYGetHostByName(host) resolv(host) /* we'll use it the same way */ +#else extern struct hostent * LYGetHostByName PARAMS(( CONST char * str)); -#endif /* DJGPP */ +#endif /* Parse an internet node address and port diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c index 8c162fe2..57937767 100644 --- a/WWW/Library/Implementation/HTTP.c +++ b/WWW/Library/Implementation/HTTP.c @@ -7,7 +7,7 @@ */ #include <HTUtils.h> -#if defined(__DJGPP__) && defined (WATT32) +#if defined(__DJGPP__) && defined (WATT32) #include <tcp.h> #endif /* __DJGPP__ */ #include <HTTP.h> @@ -94,7 +94,7 @@ PUBLIC char * str_speed(void) static char buff[32]; if (ws_read_per_sec > 1000) - sprintf(buff, "%d.%03dkB", ws_read_per_sec / 1000, + sprintf(buff, "%d.%03dkB", ws_read_per_sec / 1000, (ws_read_per_sec % 1000) ); else sprintf(buff, "%3d", ws_read_per_sec); @@ -227,7 +227,7 @@ PUBLIC int ws_netread(int fd, char *buf, int len) g_total_times += process_time; g_total_bytes += exitcode; - + if (g_total_bytes > 2000000) { ws_read_per_sec = g_total_bytes / (g_total_times/1000); } else { @@ -577,7 +577,7 @@ try_again: char *colon; int portnumber; char *auth, *cookie = NULL; - BOOL secure = (strncmp(anAnchor->address, "https", 5) ? + BOOL secure = (BOOL) (strncmp(anAnchor->address, "https", 5) ? FALSE : TRUE); abspath = HTParse(arg, "", PARSE_PATH|PARSE_PUNCTUATION); @@ -772,9 +772,9 @@ try_again: if (!anAnchor->post_data) content_length = 0; else -/* - * Ack! This assumes non-binary data! Icky! - * +/* + * Ack! This assumes non-binary data! Icky! + * */ content_length = strlen (anAnchor->post_data); sprintf (line, "Content-length: %d%c%c", diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h index 06df62c6..cc75c29d 100644 --- a/WWW/Library/Implementation/HTUtils.h +++ b/WWW/Library/Implementation/HTUtils.h @@ -102,6 +102,11 @@ #define GCC_UNUSED /* nothing */ #endif +/* FIXME: need a configure-test */ +#if defined(__STDC__) || defined(__DECC) || defined(_WINDOWS) || _WIN_CC +#define ANSI_PREPRO 1 +#endif + #if defined(__CYGWIN__) /* 1998/12/31 (Thu) 16:13:46 */ #include <windows.h> /* #include "windef.h" */ #define BOOLEAN_DEFINED @@ -279,6 +284,18 @@ Macros for declarations #define NULL ((void *)0) #endif +/* array/table size */ +#define TABLESIZE(v) (sizeof(v)/sizeof(v[0])) + +/* Quiet compiler warnings on places where we're being blamed incorrectly, + * e.g., for casting away const, or for alignment problems. It's always + * legal to cast a pointer to long w/o loss of precision. + */ +#define TYPECAST(type,ptr) (type*)((long)(ptr)) + +#define typecalloc(cast) (cast *)calloc(sizeof(cast),1) +#define typecallocn(cast,ntypes) (cast *)calloc(sizeof(cast),ntypes) + /* OFTEN USED INTEGER MACROS diff --git a/WWW/Library/Implementation/HTWSRC.c b/WWW/Library/Implementation/HTWSRC.c index 3388b100..4fa761d6 100644 --- a/WWW/Library/Implementation/HTWSRC.c +++ b/WWW/Library/Implementation/HTWSRC.c @@ -110,10 +110,10 @@ PUBLIC CONST char * hex = "0123456789ABCDEF"; PUBLIC char from_hex ARGS1(char, c) { - return (c>='0')&&(c<='9') ? c-'0' + return (char) ( (c>='0')&&(c<='9') ? c-'0' : (c>='A')&&(c<='F') ? c-'A'+10 : (c>='a')&&(c<='f') ? c-'a'+10 - : 0; + : 0); } diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c index 7d5b450e..bbf446c2 100644 --- a/WWW/Library/Implementation/SGML.c +++ b/WWW/Library/Implementation/SGML.c @@ -189,7 +189,7 @@ struct _HTStream { char * url; char * csi; int csi_index; -} ; +}; #ifdef USE_PSRC static BOOL seen_letter_in_junk_tag; @@ -228,7 +228,7 @@ PRIVATE void HTMLSRC_apply_markup ARGS3( } } -#if defined(__STDC__) || _WIN_CC +#if ANSI_PREPRO # define PSRCSTART(x) HTMLSRC_apply_markup(context,HTL_##x,START) # define PSRCSTOP(x) HTMLSRC_apply_markup(context,HTL_##x,STOP) #else @@ -416,8 +416,8 @@ PRIVATE void handle_attribute_name ARGS2( #ifdef USE_PSRC } else { - cur_attr_is_name = (attributes[i].type == HTMLA_ANAME); - cur_attr_is_href = (attributes[i].type == HTMLA_HREF); + cur_attr_is_name = (BOOL) (attributes[i].type == HTMLA_ANAME); + cur_attr_is_href = (BOOL) (attributes[i].type == HTMLA_HREF); } #endif return; @@ -631,7 +631,7 @@ PRIVATE void handle_entity ARGS2( #else if (context->T.output_utf8 && (psrc_view ? (UCPutUtf8_charstring((HTStream *)context->target, - (putc_func_t*)(&fake_put_character), code)): PUTUTF8(code) ) ) { + (putc_func_t*)(fake_put_character), code)): PUTUTF8(code) ) ) { if (psrc_view) { HTMLSRC_apply_markup(context,HTL_entity,START); @@ -844,10 +844,10 @@ PRIVATE BOOL element_valid_within ARGS3( usecontains = (direct ? stacked_tag->contains : stacked_tag->icontains); usecontained = (direct ? new_tag->contained : new_tag->icontained); if (new_tag == stacked_tag) - return ((Tgc_same & usecontains) && + return (BOOL) ((Tgc_same & usecontains) && (Tgc_same & usecontained)); else - return ((new_tag->tagclass & usecontains) && + return (BOOL) ((new_tag->tagclass & usecontains) && (stacked_tag->tagclass & usecontained)); } @@ -1700,6 +1700,12 @@ top1: context->element_stack->tag->contents == SGML_LITTERAL) ? S_litteral : S_tag; +#ifdef USE_PSRC + if (psrc_view) /*there is nothing useful in the element_stack*/ + if (context->current_tag && + context->current_tag->contents == SGML_LITTERAL) + context->state = S_litteral; +#endif #define PASS8859SPECL context->T.pass_160_173_raw /* ** Convert 160 (nbsp) to Lynx special character if @@ -1730,7 +1736,7 @@ top1: /****************************************************************** * I. LATIN-1 OR UCS2 TO DISPLAY CHARSET ******************************************************************/ - } else if ((chk = (context->T.trans_from_uni && TOASCII(unsign_c) >= 160)) && /* S/390 -- gil -- 0968 */ + } else if ((chk = (BOOL) (context->T.trans_from_uni && TOASCII(unsign_c) >= 160)) && /* S/390 -- gil -- 0968 */ (uck = UCTransUniChar(unsign_c, context->outUCLYhndl)) >= ' ' && uck < 256) { @@ -1901,12 +1907,45 @@ top1: HTChunkPutc(string, c); if (TOUPPER(c) != ((string->size == 1) ? '/' : +#ifdef USE_PSRC + psrc_view ? context->current_tag->name[string->size-2]: +#endif context->element_stack->tag->name[string->size-2])) { int i; /* ** If complete match, end litteral. */ +#ifdef USE_PSRC + if (psrc_view) { + if ((c == '>') && context->current_tag && !context->current_tag->name[string->size-2]) { + PSRCSTART(abracket);PUTC('<');PUTC('/');PSRCSTOP(abracket); + PSRCSTART(tag); + strcpy(string->data,context->current_tag->name); + if (tagname_transform != 1) { + if (tagname_transform == 0) + LYLowerCase(string->data); + else + LYUpperCase(string->data); + } + PUTS(string->data); + PSRCSTOP(tag); + PSRCSTART(abracket);PUTC('>');PSRCSTOP(abracket); + + context->current_tag = NULL; + string->size = 0; + context->current_attribute_number = INVALID; + context->state = S_text; + break; + } + PUTC('<'); + for (i = 0; i < string->size-1; i++) /* recover, except last c */ + PUTC(string->data[i]); + string->size = 0; + context->state = S_text; + goto top1; /* to recover last c */ + } else +#endif if ((c == '>') && (!context->element_stack->tag->name[string->size-2])) { end_element(context, context->element_stack->tag); @@ -3535,7 +3574,7 @@ top1: } else if (psrc_view) { #endif } else { - BOOL tag_OK = (c == '>' || WHITE(c)); + BOOL tag_OK = (BOOL) (c == '>' || WHITE(c)); #if OPT HTMLElement e = context->current_tag - context->dtd->tags; int branch = 2; /* it can be 0,1,2*/ @@ -4058,6 +4097,7 @@ PUBLIC HTStream* SGML_new ARGS3( #ifdef USE_PSRC if (psrc_view) { psrc_view = FALSE; + mark_htext_as_source = TRUE; SGML_string(context, "<HTML><HEAD><TITLE>source</TITLE></HEAD><BODY><PRE>"); psrc_view = TRUE; @@ -4201,15 +4241,15 @@ PUBLIC unsigned char * SJIS_TO_JIS1 ARGS3( register unsigned char, LO, register unsigned char *, JCODE) { - HI -= (HI <= 0x9F) ? 0x71 : 0xB1; - HI = (HI << 1) + 1; + HI -= (unsigned char) ((HI <= 0x9F) ? 0x71 : 0xB1); + HI = (unsigned char) ((HI << 1) + 1); if (0x7F < LO) LO--; if (0x9E <= LO) { - LO -= 0x7D; + LO -= (unsigned char) 0x7D; HI++; } else { - LO -= 0x1F; + LO -= (unsigned char) 0x1F; } JCODE[0] = HI; JCODE[1] = LO; @@ -4222,15 +4262,15 @@ PUBLIC unsigned char * JIS_TO_SJIS1 ARGS3( register unsigned char *, SJCODE) { if (HI & 1) - LO += 0x1F; + LO += (unsigned char) 0x1F; else - LO += 0x7D; + LO += (unsigned char) 0x7D; if (0x7F <= LO) LO++; - HI = ((HI - 0x21) >> 1) + 0x81; + HI = (unsigned char) (((HI - 0x21) >> 1) + 0x81); if (0x9F < HI) - HI += 0x40; + HI += (unsigned char) 0x40; SJCODE[0] = HI; SJCODE[1] = LO; return SJCODE; @@ -4243,7 +4283,7 @@ PUBLIC unsigned char * EUC_TO_SJIS1 ARGS3( { if (HI == 0x8E) JISx0201TO0208_EUC(HI, LO, &HI, &LO); - JIS_TO_SJIS1(HI & 0x7F, LO & 0x7F, SJCODE); + JIS_TO_SJIS1((unsigned char) (HI & 0x7F), (unsigned char) (LO & 0x7F), SJCODE); return SJCODE; } @@ -4255,7 +4295,7 @@ PUBLIC void JISx0201TO0208_SJIS ARGS3( unsigned char SJCODE[2]; JISx0201TO0208_EUC(0x8E, I, OHI, OLO); - JIS_TO_SJIS1(*OHI & 0x7F, *OLO & 0x7F, SJCODE); + JIS_TO_SJIS1((unsigned char)(*OHI & 0x7F), (unsigned char)(*OLO & 0x7F), SJCODE); *OHI = SJCODE[0]; *OLO = SJCODE[1]; } @@ -4303,7 +4343,7 @@ PUBLIC unsigned char * EUC_TO_SJIS ARGS2( for (sp = src, dp = dst; *sp;) { if (*sp & 0x80) { if (sp[1] && (sp[1] & 0x80)) { - JIS_TO_SJIS1(sp[0] & 0x7F, sp[1] & 0x7F, dp); + JIS_TO_SJIS1((unsigned char)(sp[0] & 0x7F), (unsigned char)(sp[1] & 0x7F), dp); dp += 2; sp += 2; } else { @@ -4341,16 +4381,16 @@ PUBLIC unsigned char *EUC_TO_JIS ARGS4( continue; } if (!kana_mode) { - kana_mode = ~kana_mode; + kana_mode = (unsigned char) ~kana_mode; dp = Strcpy(dp, toK); } if (*sp & 0x80) { - *dp++ = cch & ~0x80; - *dp++ = *sp++ & ~0x80; + *dp++ = (unsigned char) (cch & ~0x80); + *dp++ = (unsigned char) (*sp++ & ~0x80); } } else { if (kana_mode) { - kana_mode = ~kana_mode; + kana_mode = (unsigned char) ~kana_mode; dp = Strcpy(dp, toA); } *dp++ = cch; @@ -4389,8 +4429,8 @@ PRIVATE CONST unsigned char *repairJIStoEUC ARGS2( if (!IS_JIS7(ch1, ch2)) return 0; - *d++ = 0x80 | ch1; - *d++ = 0x80 | ch2; + *d++ = (unsigned char) (0x80 | ch1); + *d++ = (unsigned char) (0x80 | ch2); } return 0; } diff --git a/WWW/Library/Implementation/UCDefs.h b/WWW/Library/Implementation/UCDefs.h index 53c3a807..19007f75 100644 --- a/WWW/Library/Implementation/UCDefs.h +++ b/WWW/Library/Implementation/UCDefs.h @@ -12,7 +12,8 @@ typedef struct _LYUCcharset { CONST char * MIMEname; int enc; - int codepage; /* IBM OS/2 specific number */ + int codepage; /* if positive, an IBM OS/2 specific number; + if negative, flag for no table translation */ /* parameters below are not used by chartrans mechanism, */ /* they describe some relationships against built-in Latin1 charset...*/ diff --git a/WWW/Library/Implementation/crypt_util.c b/WWW/Library/Implementation/crypt_util.c index b81264c3..a9bda17a 100644 --- a/WWW/Library/Implementation/crypt_util.c +++ b/WWW/Library/Implementation/crypt_util.c @@ -278,12 +278,13 @@ static ufc_long longmask[32] = { #ifdef DEBUG -pr_bits(a, n) - ufc_long *a; - int n; - { ufc_long i, j, t, tmp; +pr_bits ARGS2( + ufc_long *, a, + int, n) +{ + ufc_long i, j, t, tmp; n /= 8; - for(i = 0; i < n; i++) { + for(i = 0; i < (ufc_long) n; i++) { tmp=0; for(j = 0; j < 8; j++) { t=8*i+j; @@ -292,18 +293,19 @@ pr_bits(a, n) (void)printf("%02x ",tmp); } printf(" "); - } +} -static set_bits(v, b) - ufc_long v; - ufc_long *b; - { ufc_long i; +static set_bits ARGS( + ufc_long, v, + ufc_long *, b) +{ + ufc_long i; *b = 0; for(i = 0; i < 24; i++) { if(v & longmask[8 + i]) *b |= BITMASK(i); } - } +} #endif @@ -702,7 +704,7 @@ STATIC char *output_conversion(v1, v2, salt) for(i = 0; i < 5; i++) { shf = (26 - 6 * i); /* to cope with MSC compiler bug */ - outbuf[i + 2] = bin_to_ascii((v1 >> shf) & 0x3f); + outbuf[i + 2] = (char) bin_to_ascii((v1 >> shf) & 0x3f); } s = (v2 & 0xf) << 2; @@ -710,10 +712,10 @@ STATIC char *output_conversion(v1, v2, salt) for(i = 5; i < 10; i++) { shf = (56 - 6 * i); - outbuf[i + 2] = bin_to_ascii((v2 >> shf) & 0x3f); + outbuf[i + 2] = (char) bin_to_ascii((v2 >> shf) & 0x3f); } - outbuf[12] = bin_to_ascii(s); + outbuf[12] = (char) bin_to_ascii(s); outbuf[13] = 0; return outbuf; @@ -872,7 +874,7 @@ void setkey(key) for(i = 0; i < 8; i++) { for(j = 0, c = 0; j < 8; j++) - c = c << 1 | *key++; + c = (c << 1) | *key++; ktab[i] = c >> 1; } diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h index b9e3bbf5..8be165b8 100644 --- a/WWW/Library/Implementation/www_tcp.h +++ b/WWW/Library/Implementation/www_tcp.h @@ -496,7 +496,7 @@ struct timeval { #define GLOBALREF extern #endif /* !GLOBALREF */ -#ifdef DJGPP +#ifdef __DJGPP__ #undef SELECT #define TCP_INCLUDES_DONE #define NO_IOCTL @@ -504,6 +504,14 @@ struct timeval { #include <errno.h> #include <sys/types.h> #include <socket.h> +#include <io.h> +#ifdef WATT32 +#include <arpa/inet.h> +#include <tcp.h> +#ifdef word +#undef word +#endif /* word */ +#endif /* WATT32 */ #undef NETWRITE #define NETWRITE write_s @@ -513,7 +521,7 @@ struct timeval { #define NETCLOSE close_s #ifndef WATT32 #define getsockname getsockname_s -#endif /* WATT32 */ +#endif /* !WATT32 */ #ifdef HAVE_GETTEXT #define gettext gettext__ #endif @@ -656,7 +664,7 @@ Defaults #endif /* !NO_IOCTL */ #include <sys/socket.h> #include <netinet/in.h> -#ifndef __hpux /* this may or may not be good -marc */ +#if !defined( __hpux) && !defined(__BEOS__) /* this may or may not be good -marc */ #include <arpa/inet.h> /* Must be after netinet/in.h */ #endif /* !__hpux */ #include <netdb.h> @@ -32,6 +32,7 @@ #undef EXEC_SCRIPTS /* CF_ARG_ENABLE(exec-scripts) */ #undef EXP_ADDRLIST_PAGE /* CF_ARG_ENABLE(addrlist-page) */ #undef EXP_ALT_BINDINGS /* CF_ARG_ENABLE(alt-bindings) */ +#undef EXP_CHARSET_CHOICE /* CF_ARG_ENABLE(charset-choice) */ #undef EXP_CHARTRANS_AUTOSWITCH /* CF_ARG_ENABLE(font-switch) */ #undef EXP_FILE_UPLOAD /* CF_ARG_ENABLE(file-upload) */ #undef EXP_JUSTIFY_ELTS /* CF_ARG_ENABLE(justify-elts) */ @@ -174,6 +175,7 @@ #undef USE_FCNTL /* CF_FIONBIO */ #undef USE_HASH /* see USE_COLOR_STYLE */ #undef USE_PSRC /* CF_ARG_ENABLE(prettysrc) */ +#undef USE_SCROLLBAR /* CF_ARG_ENABLE(scrollbar) */ #undef USE_SIZECHANGEHACK /* FIXME: find a case where this works! */ #undef USE_SLANG /* AC_ARG_WITH(screen=slang) */ #undef USE_SOCKS4_PREFIX /* CF_SOCKS5 */ @@ -208,26 +208,28 @@ Experimental Options: --disable-forms-options disable experimental forms-based options --disable-menu-options disable old-style option menu --enable-addrlist-page use experimental address-list page + --enable-charset-choice use experimental charset-selection logic --enable-cjk use experimental CJK logic --enable-color-style use optional/experimental color style --enable-default-colors enable use of default-colors (ncurses/slang) - --enable-file-upload use experimental file-upload support EOF cat <<EOF + --enable-file-upload use experimental file-upload support --enable-justify-elts use experimental element-justification logic --enable-kbd-layout use experimental keyboard-layout support --enable-libjs use experimental JavaScript support (Mozilla libjs) --enable-prettysrc colorize HTML source --enable-read-eta experimental read-progress message shows ETA + --enable-scrollbar use experimental scrollbar, with mouse --enable-source-cache cache HTML source for parse mode changes Miscellaneous Options: --disable-alt-bindings disable alternative line-edit bindings --disable-extended-dtd disable extended HTML DTD logic --disable-partial use partial-display logic - --enable-externs use external commands - --enable-font-switch use Linux setfont for character-translation EOF cat <<EOF + --enable-externs use external commands + --enable-font-switch use Linux setfont for character-translation --enable-cgi-links support cgi links w/o a http daemon --enable-change-exec allow users to change exec options --enable-exec-links allow lynx to execute programs accessed via a link @@ -238,10 +240,10 @@ cat <<EOF --disable-persistent-cookies disable persistent-cookie support --enable-underlines underline links rather than using boldface --enable-gzip-help install gzip'ed help files - --with-zlib use zlib for decompression of some gzip files - --disable-finger disable FINGER logic EOF cat <<EOF + --with-zlib use zlib for decompression of some gzip files + --disable-finger disable FINGER logic --disable-gopher disable GOPHER logic --disable-news disable NEWS logic --disable-ftp disable FTP logic @@ -252,10 +254,10 @@ Directory Editor Options: --disable-dired-permit disable chmod/attrib commands --disable-dired-xpermit disable chmod/attrib commands --disable-dired-tar disable "tar" command - --disable-dired-uudecode disable "uudecode" command - --disable-dired-zip disable "zip", "unzip" commands EOF cat <<EOF + --disable-dired-uudecode disable "uudecode" command + --disable-dired-zip disable "zip", "unzip" commands --disable-dired-gzip disable "gzip", "gunzip" commands --disable-long-list disable long "ls -l" directory listings --disable-parent-dir-refs @@ -628,7 +630,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:632: checking host system type" >&5 +echo "configure:634: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -683,7 +685,7 @@ test -z "$ALL_LINGUAS" && ALL_LINGUAS=`test -d $srcdir/po && cd $srcdir/po && ec # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:687: checking for $ac_word" >&5 +echo "configure:689: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -713,7 +715,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:717: checking for $ac_word" >&5 +echo "configure:719: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -764,7 +766,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:768: checking for $ac_word" >&5 +echo "configure:770: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -796,7 +798,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:800: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -807,12 +809,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 811 "configure" +#line 813 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -838,12 +840,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:842: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:847: checking whether we are using GNU C" >&5 +echo "configure:849: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -852,7 +854,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -871,7 +873,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:875: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:877: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -903,7 +905,7 @@ else fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:907: checking how to run the C preprocessor" >&5 +echo "configure:909: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -918,13 +920,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF -#line 922 "configure" +#line 924 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -935,13 +937,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 939 "configure" +#line 941 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -952,13 +954,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF -#line 956 "configure" +#line 958 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -983,7 +985,7 @@ fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:987: checking whether ln -s works" >&5 +echo "configure:989: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1006,7 +1008,7 @@ fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1010: checking for $ac_word" >&5 +echo "configure:1012: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1034,7 +1036,7 @@ else fi echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:1038: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:1040: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1072,7 +1074,7 @@ fi # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:1076: checking for a BSD compatible install" >&5 +echo "configure:1078: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1129,7 +1131,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1133: checking for $ac_word" >&5 +echo "configure:1135: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1160,9 +1162,9 @@ done echo $ac_n "checking for AIX""... $ac_c" 1>&6 -echo "configure:1164: checking for AIX" >&5 +echo "configure:1166: checking for AIX" >&5 cat > conftest.$ac_ext <<EOF -#line 1166 "configure" +#line 1168 "configure" #include "confdefs.h" #ifdef _AIX yes @@ -1184,7 +1186,7 @@ rm -f conftest* echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 -echo "configure:1188: checking for POSIXized ISC" >&5 +echo "configure:1190: checking for POSIXized ISC" >&5 if test -d /etc/conf/kconfig.d && grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 then @@ -1210,7 +1212,7 @@ fi echo $ac_n "checking if you want to see long compiling messages""... $ac_c" 1>&6 -echo "configure:1214: checking if you want to see long compiling messages" >&5 +echo "configure:1216: checking if you want to see long compiling messages" >&5 # Check whether --enable-echo or --disable-echo was given. if test "${enable_echo+set}" = set; then @@ -1258,7 +1260,7 @@ fi echo $ac_n "checking if you want to check memory-leaks""... $ac_c" 1>&6 -echo "configure:1262: checking if you want to check memory-leaks" >&5 +echo "configure:1264: checking if you want to check memory-leaks" >&5 # Check whether --enable-find-leaks or --disable-find-leaks was given. if test "${enable_find_leaks+set}" = set; then @@ -1282,7 +1284,7 @@ EOF echo $ac_n "checking if you want to enable debug-code""... $ac_c" 1>&6 -echo "configure:1286: checking if you want to enable debug-code" >&5 +echo "configure:1288: checking if you want to enable debug-code" >&5 # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then @@ -1324,7 +1326,7 @@ else fi echo $ac_n "checking if you want to enable lynx trace code *recommended* ""... $ac_c" 1>&6 -echo "configure:1328: checking if you want to enable lynx trace code *recommended* " >&5 +echo "configure:1330: checking if you want to enable lynx trace code *recommended* " >&5 # Check whether --enable-trace or --disable-trace was given. if test "${enable_trace+set}" = set; then @@ -1350,7 +1352,7 @@ EOF if test -n "$GCC" then echo $ac_n "checking if you want to turn on gcc warnings""... $ac_c" 1>&6 -echo "configure:1354: checking if you want to turn on gcc warnings" >&5 +echo "configure:1356: checking if you want to turn on gcc warnings" >&5 # Check whether --enable-warnings or --disable-warnings was given. if test "${enable_warnings+set}" = set; then @@ -1390,9 +1392,9 @@ EOF if test -n "$GCC" then echo "checking for gcc __attribute__ directives" 1>&6 -echo "configure:1394: checking for gcc __attribute__ directives" >&5 +echo "configure:1396: checking for gcc __attribute__ directives" >&5 cat > conftest.$ac_ext <<EOF -#line 1396 "configure" +#line 1398 "configure" #include "confdefs.h" #include "conftest.h" #include "conftest.i" @@ -1430,7 +1432,7 @@ EOF EOF ;; esac - if { (eval echo configure:1434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + if { (eval echo configure:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then test -n "$verbose" && echo "$ac_t""... $cf_attribute" 1>&6 cat conftest.h >>confdefs.h # else @@ -1447,11 +1449,11 @@ fi if test -n "$GCC" then cat > conftest.$ac_ext <<EOF -#line 1451 "configure" +#line 1453 "configure" int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; } EOF echo "checking for gcc warning options" 1>&6 -echo "configure:1455: checking for gcc warning options" >&5 +echo "configure:1457: checking for gcc warning options" >&5 cf_save_CFLAGS="$CFLAGS" EXTRA_CFLAGS="-W -Wall" cf_warn_CONST="" @@ -1469,7 +1471,7 @@ echo "configure:1455: checking for gcc warning options" >&5 Wstrict-prototypes $cf_warn_CONST do CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" - if { (eval echo configure:1473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + if { (eval echo configure:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt" test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES" @@ -1487,12 +1489,12 @@ fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1491: checking for ANSI C header files" >&5 +echo "configure:1493: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1496 "configure" +#line 1498 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -1500,7 +1502,7 @@ else #include <float.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1517,7 +1519,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 1521 "configure" +#line 1523 "configure" #include "confdefs.h" #include <string.h> EOF @@ -1535,7 +1537,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 1539 "configure" +#line 1541 "configure" #include "confdefs.h" #include <stdlib.h> EOF @@ -1556,7 +1558,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext <<EOF -#line 1560 "configure" +#line 1562 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1567,7 +1569,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -1591,12 +1593,12 @@ EOF fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1595: checking for working const" >&5 +echo "configure:1597: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1600 "configure" +#line 1602 "configure" #include "confdefs.h" int main() { @@ -1645,7 +1647,7 @@ ccp = (char const *const *) p; ; return 0; } EOF -if { (eval echo configure:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -1666,21 +1668,21 @@ EOF fi echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:1670: checking for inline" >&5 +echo "configure:1672: checking for inline" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <<EOF -#line 1677 "configure" +#line 1679 "configure" #include "confdefs.h" int main() { } $ac_kw foo() { ; return 0; } EOF -if { (eval echo configure:1684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -1706,12 +1708,12 @@ EOF esac echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:1710: checking for off_t" >&5 +echo "configure:1712: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1715 "configure" +#line 1717 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -1739,12 +1741,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:1743: checking for size_t" >&5 +echo "configure:1745: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1748 "configure" +#line 1750 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -1774,19 +1776,19 @@ fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:1778: checking for working alloca.h" >&5 +echo "configure:1780: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1783 "configure" +#line 1785 "configure" #include "confdefs.h" #include <alloca.h> int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -1807,12 +1809,12 @@ EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:1811: checking for alloca" >&5 +echo "configure:1813: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1816 "configure" +#line 1818 "configure" #include "confdefs.h" #ifdef __GNUC__ @@ -1840,7 +1842,7 @@ int main() { char *p = (char *) alloca(1); ; return 0; } EOF -if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -1872,12 +1874,12 @@ EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:1876: checking whether alloca needs Cray hooks" >&5 +echo "configure:1878: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1881 "configure" +#line 1883 "configure" #include "confdefs.h" #if defined(CRAY) && ! defined(CRAY2) webecray @@ -1902,12 +1904,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1906: checking for $ac_func" >&5 +echo "configure:1908: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1911 "configure" +#line 1913 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1930,7 +1932,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1957,7 +1959,7 @@ done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:1961: checking stack direction for C alloca" >&5 +echo "configure:1963: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1965,7 +1967,7 @@ else ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <<EOF -#line 1969 "configure" +#line 1971 "configure" #include "confdefs.h" find_stack_direction () { @@ -1984,7 +1986,7 @@ main () exit (find_stack_direction() < 0); } EOF -if { (eval echo configure:1988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -2009,17 +2011,17 @@ for ac_hdr in unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2013: checking for $ac_hdr" >&5 +echo "configure:2015: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2018 "configure" +#line 2020 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2048,12 +2050,12 @@ done for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2052: checking for $ac_func" >&5 +echo "configure:2054: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2057 "configure" +#line 2059 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2076,7 +2078,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2101,7 +2103,7 @@ fi done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:2105: checking for working mmap" >&5 +echo "configure:2107: checking for working mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2109,7 +2111,7 @@ else ac_cv_func_mmap_fixed_mapped=no else cat > conftest.$ac_ext <<EOF -#line 2113 "configure" +#line 2115 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. @@ -2249,7 +2251,7 @@ main() } EOF -if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_mmap_fixed_mapped=yes else @@ -2277,17 +2279,17 @@ unistd.h values.h sys/param.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2281: checking for $ac_hdr" >&5 +echo "configure:2283: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2286 "configure" +#line 2288 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2317,12 +2319,12 @@ done __argz_count __argz_stringify __argz_next do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2321: checking for $ac_func" >&5 +echo "configure:2323: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2326 "configure" +#line 2328 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2345,7 +2347,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2374,12 +2376,12 @@ done for ac_func in stpcpy do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2378: checking for $ac_func" >&5 +echo "configure:2380: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2383 "configure" +#line 2385 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2402,7 +2404,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2436,19 +2438,19 @@ EOF if test $ac_cv_header_locale_h = yes; then echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 -echo "configure:2440: checking for LC_MESSAGES" >&5 +echo "configure:2442: checking for LC_MESSAGES" >&5 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2445 "configure" +#line 2447 "configure" #include "confdefs.h" #include <locale.h> int main() { return LC_MESSAGES ; return 0; } EOF -if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_val_LC_MESSAGES=yes else @@ -2469,7 +2471,7 @@ EOF fi fi echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 -echo "configure:2473: checking whether NLS is requested" >&5 +echo "configure:2475: checking whether NLS is requested" >&5 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then @@ -2490,7 +2492,7 @@ fi EOF echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 -echo "configure:2494: checking whether included gettext is requested" >&5 +echo "configure:2496: checking whether included gettext is requested" >&5 # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then @@ -2510,17 +2512,17 @@ fi ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 -echo "configure:2514: checking for libintl.h" >&5 +echo "configure:2516: checking for libintl.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2519 "configure" +#line 2521 "configure" #include "confdefs.h" #include <libintl.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2537,19 +2539,19 @@ fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 -echo "configure:2541: checking for gettext in libc" >&5 +echo "configure:2543: checking for gettext in libc" >&5 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2546 "configure" +#line 2548 "configure" #include "confdefs.h" #include <libintl.h> int main() { return (int) gettext ("") ; return 0; } EOF -if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gettext_libc=yes else @@ -2565,7 +2567,7 @@ echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 if test "$gt_cv_func_gettext_libc" != "yes"; then echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 -echo "configure:2569: checking for bindtextdomain in -lintl" >&5 +echo "configure:2571: checking for bindtextdomain in -lintl" >&5 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2573,7 +2575,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <<EOF -#line 2577 "configure" +#line 2579 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2584,7 +2586,7 @@ int main() { bindtextdomain() ; return 0; } EOF -if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2600,19 +2602,19 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 -echo "configure:2604: checking for gettext in libintl" >&5 +echo "configure:2606: checking for gettext in libintl" >&5 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2609 "configure" +#line 2611 "configure" #include "confdefs.h" int main() { return (int) gettext ("") ; return 0; } EOF -if { (eval echo configure:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gettext_libintl=yes else @@ -2640,7 +2642,7 @@ EOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2644: checking for $ac_word" >&5 +echo "configure:2646: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2674,12 +2676,12 @@ fi for ac_func in dcgettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2678: checking for $ac_func" >&5 +echo "configure:2680: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2683 "configure" +#line 2685 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2702,7 +2704,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2729,7 +2731,7 @@ done # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2733: checking for $ac_word" >&5 +echo "configure:2735: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2765,7 +2767,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2769: checking for $ac_word" >&5 +echo "configure:2771: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2797,7 +2799,7 @@ else fi cat > conftest.$ac_ext <<EOF -#line 2801 "configure" +#line 2803 "configure" #include "confdefs.h" int main() { @@ -2805,7 +2807,7 @@ extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } EOF -if { (eval echo configure:2809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* CATOBJEXT=.gmo DATADIRNAME=share @@ -2828,7 +2830,7 @@ fi if test "$CATOBJEXT" = "NONE"; then echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6 -echo "configure:2832: checking whether catgets can be used" >&5 +echo "configure:2834: checking whether catgets can be used" >&5 # Check whether --with-catgets or --without-catgets was given. if test "${with_catgets+set}" = set; then @@ -2842,7 +2844,7 @@ fi if test "$nls_cv_use_catgets" = "yes"; then echo $ac_n "checking for main in -li""... $ac_c" 1>&6 -echo "configure:2846: checking for main in -li" >&5 +echo "configure:2848: checking for main in -li" >&5 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2850,14 +2852,14 @@ else ac_save_LIBS="$LIBS" LIBS="-li $LIBS" cat > conftest.$ac_ext <<EOF -#line 2854 "configure" +#line 2856 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2885,12 +2887,12 @@ else fi echo $ac_n "checking for catgets""... $ac_c" 1>&6 -echo "configure:2889: checking for catgets" >&5 +echo "configure:2891: checking for catgets" >&5 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2894 "configure" +#line 2896 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char catgets(); below. */ @@ -2913,7 +2915,7 @@ catgets(); ; return 0; } EOF -if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_catgets=yes" else @@ -2935,7 +2937,7 @@ EOF # Extract the first word of "gencat", so it can be a program name with args. set dummy gencat; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2939: checking for $ac_word" >&5 +echo "configure:2941: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2971,7 +2973,7 @@ fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2975: checking for $ac_word" >&5 +echo "configure:2977: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3008,7 +3010,7 @@ fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3012: checking for $ac_word" >&5 +echo "configure:3014: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3043,7 +3045,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3047: checking for $ac_word" >&5 +echo "configure:3049: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3101,7 +3103,7 @@ fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3105: checking for $ac_word" >&5 +echo "configure:3107: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3135,7 +3137,7 @@ fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3139: checking for $ac_word" >&5 +echo "configure:3141: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3171,7 +3173,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3175: checking for $ac_word" >&5 +echo "configure:3177: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3261,7 +3263,7 @@ fi LINGUAS= else echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 -echo "configure:3265: checking for catalogs to be installed" >&5 +echo "configure:3267: checking for catalogs to be installed" >&5 NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in @@ -3290,17 +3292,17 @@ echo "configure:3265: checking for catalogs to be installed" >&5 if test "$CATOBJEXT" = ".cat"; then ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 -echo "configure:3294: checking for linux/version.h" >&5 +echo "configure:3296: checking for linux/version.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3299 "configure" +#line 3301 "configure" #include "confdefs.h" #include <linux/version.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3412,7 +3414,7 @@ SUB_MAKEFILE= use_our_messages=no if test -d $srcdir/po ; then echo $ac_n "checking if we should use included message-library""... $ac_c" 1>&6 -echo "configure:3416: checking if we should use included message-library" >&5 +echo "configure:3418: checking if we should use included message-library" >&5 # Check whether --enable-included-msgs or --disable-included-msgs was given. if test "${enable_included_msgs+set}" = set; then @@ -3448,17 +3450,17 @@ elif test "$USE_NLS" = yes ; then do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3452: checking for $ac_hdr" >&5 +echo "configure:3454: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 3457 "configure" +#line 3459 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3528,7 +3530,7 @@ EOF fi echo $ac_n "checking if you want full utility pathnames""... $ac_c" 1>&6 -echo "configure:3532: checking if you want full utility pathnames" >&5 +echo "configure:3534: checking if you want full utility pathnames" >&5 # Check whether --enable-full-paths or --disable-full-paths was given. if test "${enable_full_paths+set}" = set; then @@ -3553,7 +3555,7 @@ EOF echo $ac_n "checking for system mailer""... $ac_c" 1>&6 -echo "configure:3557: checking for system mailer" >&5 +echo "configure:3559: checking for system mailer" >&5 if eval "test \"`echo '$''{'cf_cv_SYSTEM_MAIL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3580,7 +3582,7 @@ EOF echo $ac_n "checking system mail flags""... $ac_c" 1>&6 -echo "configure:3584: checking system mail flags" >&5 +echo "configure:3586: checking system mail flags" >&5 if eval "test \"`echo '$''{'cf_cv_system_mail_flags'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3608,7 +3610,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "chmod", so it can be a program name with args. set dummy chmod; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3612: checking for $ac_word" >&5 +echo "configure:3614: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3643,7 +3645,7 @@ fi else echo $ac_n "checking for chmod""... $ac_c" 1>&6 -echo "configure:3647: checking for chmod" >&5 +echo "configure:3649: checking for chmod" >&5 echo "$ac_t""$CHMOD" 1>&6 eval 'ac_cv_path_'CHMOD'="'chmod'"' fi @@ -3685,7 +3687,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "compress", so it can be a program name with args. set dummy compress; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3689: checking for $ac_word" >&5 +echo "configure:3691: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_COMPRESS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3720,7 +3722,7 @@ fi else echo $ac_n "checking for compress""... $ac_c" 1>&6 -echo "configure:3724: checking for compress" >&5 +echo "configure:3726: checking for compress" >&5 echo "$ac_t""$COMPRESS" 1>&6 eval 'ac_cv_path_'COMPRESS'="'compress'"' fi @@ -3762,7 +3764,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "cp", so it can be a program name with args. set dummy cp; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3766: checking for $ac_word" >&5 +echo "configure:3768: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_COPY'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3797,7 +3799,7 @@ fi else echo $ac_n "checking for cp""... $ac_c" 1>&6 -echo "configure:3801: checking for cp" >&5 +echo "configure:3803: checking for cp" >&5 echo "$ac_t""$COPY" 1>&6 eval 'ac_cv_path_'COPY'="'cp'"' fi @@ -3839,7 +3841,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "gzip", so it can be a program name with args. set dummy gzip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3843: checking for $ac_word" >&5 +echo "configure:3845: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3874,7 +3876,7 @@ fi else echo $ac_n "checking for gzip""... $ac_c" 1>&6 -echo "configure:3878: checking for gzip" >&5 +echo "configure:3880: checking for gzip" >&5 echo "$ac_t""$GZIP" 1>&6 eval 'ac_cv_path_'GZIP'="'gzip'"' fi @@ -3916,7 +3918,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "mkdir", so it can be a program name with args. set dummy mkdir; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3920: checking for $ac_word" >&5 +echo "configure:3922: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3951,7 +3953,7 @@ fi else echo $ac_n "checking for mkdir""... $ac_c" 1>&6 -echo "configure:3955: checking for mkdir" >&5 +echo "configure:3957: checking for mkdir" >&5 echo "$ac_t""$MKDIR" 1>&6 eval 'ac_cv_path_'MKDIR'="'mkdir'"' fi @@ -3993,7 +3995,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "mv", so it can be a program name with args. set dummy mv; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3997: checking for $ac_word" >&5 +echo "configure:3999: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4028,7 +4030,7 @@ fi else echo $ac_n "checking for mv""... $ac_c" 1>&6 -echo "configure:4032: checking for mv" >&5 +echo "configure:4034: checking for mv" >&5 echo "$ac_t""$MV" 1>&6 eval 'ac_cv_path_'MV'="'mv'"' fi @@ -4070,7 +4072,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4074: checking for $ac_word" >&5 +echo "configure:4076: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4105,7 +4107,7 @@ fi else echo $ac_n "checking for rm""... $ac_c" 1>&6 -echo "configure:4109: checking for rm" >&5 +echo "configure:4111: checking for rm" >&5 echo "$ac_t""$RM" 1>&6 eval 'ac_cv_path_'RM'="'rm'"' fi @@ -4147,7 +4149,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "tar", so it can be a program name with args. set dummy tar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4151: checking for $ac_word" >&5 +echo "configure:4153: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4182,7 +4184,7 @@ fi else echo $ac_n "checking for tar""... $ac_c" 1>&6 -echo "configure:4186: checking for tar" >&5 +echo "configure:4188: checking for tar" >&5 echo "$ac_t""$TAR" 1>&6 eval 'ac_cv_path_'TAR'="'tar'"' fi @@ -4224,7 +4226,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "touch", so it can be a program name with args. set dummy touch; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4228: checking for $ac_word" >&5 +echo "configure:4230: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4259,7 +4261,7 @@ fi else echo $ac_n "checking for touch""... $ac_c" 1>&6 -echo "configure:4263: checking for touch" >&5 +echo "configure:4265: checking for touch" >&5 echo "$ac_t""$TOUCH" 1>&6 eval 'ac_cv_path_'TOUCH'="'touch'"' fi @@ -4301,7 +4303,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "gunzip", so it can be a program name with args. set dummy gunzip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4305: checking for $ac_word" >&5 +echo "configure:4307: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_UNCOMPRESS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4336,7 +4338,7 @@ fi else echo $ac_n "checking for gunzip""... $ac_c" 1>&6 -echo "configure:4340: checking for gunzip" >&5 +echo "configure:4342: checking for gunzip" >&5 echo "$ac_t""$UNCOMPRESS" 1>&6 eval 'ac_cv_path_'UNCOMPRESS'="'gunzip'"' fi @@ -4378,7 +4380,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "unzip", so it can be a program name with args. set dummy unzip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4382: checking for $ac_word" >&5 +echo "configure:4384: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4413,7 +4415,7 @@ fi else echo $ac_n "checking for unzip""... $ac_c" 1>&6 -echo "configure:4417: checking for unzip" >&5 +echo "configure:4419: checking for unzip" >&5 echo "$ac_t""$UNZIP" 1>&6 eval 'ac_cv_path_'UNZIP'="'unzip'"' fi @@ -4455,7 +4457,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "bzip2", so it can be a program name with args. set dummy bzip2; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4459: checking for $ac_word" >&5 +echo "configure:4461: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_BZIP2'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4490,7 +4492,7 @@ fi else echo $ac_n "checking for bzip2""... $ac_c" 1>&6 -echo "configure:4494: checking for bzip2" >&5 +echo "configure:4496: checking for bzip2" >&5 echo "$ac_t""$BZIP2" 1>&6 eval 'ac_cv_path_'BZIP2'="'bzip2'"' fi @@ -4532,7 +4534,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "uudecode", so it can be a program name with args. set dummy uudecode; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4536: checking for $ac_word" >&5 +echo "configure:4538: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_UUDECODE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4567,7 +4569,7 @@ fi else echo $ac_n "checking for uudecode""... $ac_c" 1>&6 -echo "configure:4571: checking for uudecode" >&5 +echo "configure:4573: checking for uudecode" >&5 echo "$ac_t""$UUDECODE" 1>&6 eval 'ac_cv_path_'UUDECODE'="'uudecode'"' fi @@ -4609,7 +4611,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "zcat", so it can be a program name with args. set dummy zcat; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4613: checking for $ac_word" >&5 +echo "configure:4615: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ZCAT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4644,7 +4646,7 @@ fi else echo $ac_n "checking for zcat""... $ac_c" 1>&6 -echo "configure:4648: checking for zcat" >&5 +echo "configure:4650: checking for zcat" >&5 echo "$ac_t""$ZCAT" 1>&6 eval 'ac_cv_path_'ZCAT'="'zcat'"' fi @@ -4686,7 +4688,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "zip", so it can be a program name with args. set dummy zip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4690: checking for $ac_word" >&5 +echo "configure:4692: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ZIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4721,7 +4723,7 @@ fi else echo $ac_n "checking for zip""... $ac_c" 1>&6 -echo "configure:4725: checking for zip" >&5 +echo "configure:4727: checking for zip" >&5 echo "$ac_t""$ZIP" 1>&6 eval 'ac_cv_path_'ZIP'="'zip'"' fi @@ -4763,7 +4765,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "telnet", so it can be a program name with args. set dummy telnet; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4767: checking for $ac_word" >&5 +echo "configure:4769: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_TELNET'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4798,7 +4800,7 @@ fi else echo $ac_n "checking for telnet""... $ac_c" 1>&6 -echo "configure:4802: checking for telnet" >&5 +echo "configure:4804: checking for telnet" >&5 echo "$ac_t""$TELNET" 1>&6 eval 'ac_cv_path_'TELNET'="'telnet'"' fi @@ -4840,7 +4842,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "tn3270", so it can be a program name with args. set dummy tn3270; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4844: checking for $ac_word" >&5 +echo "configure:4846: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_TN3270'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4875,7 +4877,7 @@ fi else echo $ac_n "checking for tn3270""... $ac_c" 1>&6 -echo "configure:4879: checking for tn3270" >&5 +echo "configure:4881: checking for tn3270" >&5 echo "$ac_t""$TN3270" 1>&6 eval 'ac_cv_path_'TN3270'="'tn3270'"' fi @@ -4917,7 +4919,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "rlogin", so it can be a program name with args. set dummy rlogin; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4921: checking for $ac_word" >&5 +echo "configure:4923: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_RLOGIN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4952,7 +4954,7 @@ fi else echo $ac_n "checking for rlogin""... $ac_c" 1>&6 -echo "configure:4956: checking for rlogin" >&5 +echo "configure:4958: checking for rlogin" >&5 echo "$ac_t""$RLOGIN" 1>&6 eval 'ac_cv_path_'RLOGIN'="'rlogin'"' fi @@ -5004,7 +5006,7 @@ if test "$with_full_paths" = yes ; then # Extract the first word of "install", so it can be a program name with args. set dummy install; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:5008: checking for $ac_word" >&5 +echo "configure:5010: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_INSTALL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5039,7 +5041,7 @@ fi else echo $ac_n "checking for install""... $ac_c" 1>&6 -echo "configure:5043: checking for install" >&5 +echo "configure:5045: checking for install" >&5 echo "$ac_t""$INSTALL" 1>&6 eval 'ac_cv_path_'INSTALL'="'install'"' fi @@ -5088,7 +5090,7 @@ EOF if test -z "$GCC" ; then echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 -echo "configure:5092: checking for ${CC-cc} option to accept ANSI C" >&5 +echo "configure:5094: checking for ${CC-cc} option to accept ANSI C" >&5 if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5112,7 +5114,7 @@ for cf_arg in "-DCC_HAS_PROTOS" \ do CFLAGS="$cf_save_CFLAGS $cf_arg" cat > conftest.$ac_ext <<EOF -#line 5116 "configure" +#line 5118 "configure" #include "confdefs.h" #ifndef CC_HAS_PROTOS @@ -5128,7 +5130,7 @@ int main() { struct s2 {int (*f) (double a);}; ; return 0; } EOF -if { (eval echo configure:5132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ansi_cc="$cf_arg"; break else @@ -5156,12 +5158,12 @@ fi fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:5160: checking for working const" >&5 +echo "configure:5162: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5165 "configure" +#line 5167 "configure" #include "confdefs.h" int main() { @@ -5210,7 +5212,7 @@ ccp = (char const *const *) p; ; return 0; } EOF -if { (eval echo configure:5214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -5252,7 +5254,7 @@ clix*) # contributed by Alex Matulich (matuli_a@marlin.navsea.navy.mil) also # references -lmalloc and -lbsd. echo $ac_n "checking for strcmp in -lc_s""... $ac_c" 1>&6 -echo "configure:5256: checking for strcmp in -lc_s" >&5 +echo "configure:5258: checking for strcmp in -lc_s" >&5 ac_lib_var=`echo c_s'_'strcmp | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5260,7 +5262,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lc_s $LIBS" cat > conftest.$ac_ext <<EOF -#line 5264 "configure" +#line 5266 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -5271,7 +5273,7 @@ int main() { strcmp() ; return 0; } EOF -if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5361,7 +5363,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:5365: checking for $ac_word" >&5 +echo "configure:5367: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5406,17 +5408,17 @@ sony-newsos*) do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5410: checking for $ac_hdr" >&5 +echo "configure:5412: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5415 "configure" +#line 5417 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5460,17 +5462,17 @@ ultrix*) do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5464: checking for $ac_hdr" >&5 +echo "configure:5466: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5469 "configure" +#line 5471 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5508,16 +5510,16 @@ if test -n "$TRY_CFLAGS" ; then cf_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $TRY_CFLAGS" echo $ac_n "checking if we should use compile options $TRY_CFLAGS""... $ac_c" 1>&6 -echo "configure:5512: checking if we should use compile options $TRY_CFLAGS" >&5 +echo "configure:5514: checking if we should use compile options $TRY_CFLAGS" >&5 cat > conftest.$ac_ext <<EOF -#line 5514 "configure" +#line 5516 "configure" #include "confdefs.h" #include <stdio.h> int main() { FILE *fp = stdin ; return 0; } EOF -if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_result=yes else @@ -5535,7 +5537,7 @@ fi ### Look for network libraries first, since some functions (such as gethostname) ### are used in a lot of places. echo $ac_n "checking if you want socks library""... $ac_c" 1>&6 -echo "configure:5539: checking if you want socks library" >&5 +echo "configure:5541: checking if you want socks library" >&5 if eval "test \"`echo '$''{'cf_cv_use_libsocks'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5555,7 +5557,7 @@ fi echo "$ac_t""$cf_cv_use_libsocks" 1>&6 echo $ac_n "checking if you want socks5 library""... $ac_c" 1>&6 -echo "configure:5559: checking if you want socks5 library" >&5 +echo "configure:5561: checking if you want socks5 library" >&5 if eval "test \"`echo '$''{'cf_cv_use_libsocks5'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5621,7 +5623,7 @@ cat >> confdefs.h <<\EOF EOF cat > conftest.$ac_ext <<EOF -#line 5625 "configure" +#line 5627 "configure" #include "confdefs.h" #include <stdio.h> @@ -5630,7 +5632,7 @@ int main() { accept((char *)0) ; return 0; } EOF -if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then : else echo "configure: failed program was:" >&5 @@ -5660,9 +5662,9 @@ cat >> confdefs.h <<\EOF EOF echo $ac_n "checking if the socks library uses socks4 prefix""... $ac_c" 1>&6 -echo "configure:5664: checking if the socks library uses socks4 prefix" >&5 +echo "configure:5666: checking if the socks library uses socks4 prefix" >&5 cat > conftest.$ac_ext <<EOF -#line 5666 "configure" +#line 5668 "configure" #include "confdefs.h" #include <socks.h> @@ -5671,7 +5673,7 @@ int main() { Rinit((char *)0) ; return 0; } EOF -if { (eval echo configure:5675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF #define USE_SOCKS4_PREFIX 1 @@ -5683,14 +5685,14 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 5687 "configure" +#line 5689 "configure" #include "confdefs.h" #include <socks.h> int main() { SOCKSinit((char *)0) ; return 0; } EOF -if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_use_socks4=no else @@ -5759,7 +5761,7 @@ else cf_test_netlibs=no echo $ac_n "checking for network libraries""... $ac_c" 1>&6 -echo "configure:5763: checking for network libraries" >&5 +echo "configure:5765: checking for network libraries" >&5 if eval "test \"`echo '$''{'cf_cv_netlibs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5770,12 +5772,12 @@ cf_test_netlibs=yes for ac_func in gethostname do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5774: checking for $ac_func" >&5 +echo "configure:5776: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5779 "configure" +#line 5781 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -5798,7 +5800,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5821,7 +5823,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6 -echo "configure:5825: checking for gethostname in -lnsl" >&5 +echo "configure:5827: checking for gethostname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5829,7 +5831,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 5833 "configure" +#line 5835 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -5840,7 +5842,7 @@ int main() { gethostname() ; return 0; } EOF -if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5873,7 +5875,7 @@ else echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6 -echo "configure:5877: checking for gethostname in -lsocket" >&5 +echo "configure:5879: checking for gethostname in -lsocket" >&5 ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -5881,7 +5883,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 5885 "configure" +#line 5887 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -5892,7 +5894,7 @@ int main() { gethostname() ; return 0; } EOF -if { (eval echo configure:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5936,21 +5938,21 @@ done # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but # I don't know the entrypoints - 97/7/22 TD echo $ac_n "checking for -linet""... $ac_c" 1>&6 -echo "configure:5940: checking for -linet" >&5 +echo "configure:5942: checking for -linet" >&5 if eval "test \"`echo '$''{'ac_cv_lib_inet'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-linet $LIBS" cat > conftest.$ac_ext <<EOF -#line 5947 "configure" +#line 5949 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:5954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_inet=yes else @@ -5973,12 +5975,12 @@ if test "$ac_cv_func_lsocket" != no ; then for ac_func in socket do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5977: checking for $ac_func" >&5 +echo "configure:5979: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5982 "configure" +#line 5984 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -6001,7 +6003,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6024,7 +6026,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 -echo "configure:6028: checking for socket in -lsocket" >&5 +echo "configure:6030: checking for socket in -lsocket" >&5 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6032,7 +6034,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 6036 "configure" +#line 6038 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6043,7 +6045,7 @@ int main() { socket() ; return 0; } EOF -if { (eval echo configure:6047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6076,7 +6078,7 @@ else echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 -echo "configure:6080: checking for socket in -lbsd" >&5 +echo "configure:6082: checking for socket in -lbsd" >&5 ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6084,7 +6086,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lbsd $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 6088 "configure" +#line 6090 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6095,7 +6097,7 @@ int main() { socket() ; return 0; } EOF -if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6140,12 +6142,12 @@ fi for ac_func in gethostbyname do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6144: checking for $ac_func" >&5 +echo "configure:6146: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6149 "configure" +#line 6151 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -6168,7 +6170,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6191,7 +6193,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:6195: checking for gethostbyname in -lnsl" >&5 +echo "configure:6197: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6199,7 +6201,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 6203 "configure" +#line 6205 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6210,7 +6212,7 @@ int main() { gethostbyname() ; return 0; } EOF -if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6251,12 +6253,12 @@ done for ac_func in strcasecmp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6255: checking for $ac_func" >&5 +echo "configure:6257: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6260 "configure" +#line 6262 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -6279,7 +6281,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6302,7 +6304,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6 -echo "configure:6306: checking for strcasecmp in -lresolv" >&5 +echo "configure:6308: checking for strcasecmp in -lresolv" >&5 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6310,7 +6312,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lresolv $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 6314 "configure" +#line 6316 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6321,7 +6323,7 @@ int main() { strcasecmp() ; return 0; } EOF -if { (eval echo configure:6325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6367,13 +6369,13 @@ test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6 fi echo $ac_n "checking for inet_aton function""... $ac_c" 1>&6 -echo "configure:6371: checking for inet_aton function" >&5 +echo "configure:6373: checking for inet_aton function" >&5 if eval "test \"`echo '$''{'cf_cv_have_inet_aton'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6377 "configure" +#line 6379 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/socket.h> @@ -6384,7 +6386,7 @@ int main() { inet_aton(0, (struct in_addr *)0) ; return 0; } EOF -if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_have_inet_aton=yes else @@ -6404,13 +6406,13 @@ EOF else echo $ac_n "checking for inet_addr function""... $ac_c" 1>&6 -echo "configure:6408: checking for inet_addr function" >&5 +echo "configure:6410: checking for inet_addr function" >&5 if eval "test \"`echo '$''{'cf_cv_have_inet_addr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6414 "configure" +#line 6416 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/socket.h> @@ -6421,7 +6423,7 @@ int main() { inet_addr(0) ; return 0; } EOF -if { (eval echo configure:6425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_have_inet_addr=yes else @@ -6436,7 +6438,7 @@ fi echo "$ac_t""$cf_cv_have_inet_addr" 1>&6 if test "$cf_cv_have_inet_addr" = no ; then echo $ac_n "checking for library with inet_addr""... $ac_c" 1>&6 -echo "configure:6440: checking for library with inet_addr" >&5 +echo "configure:6442: checking for library with inet_addr" >&5 if eval "test \"`echo '$''{'cf_cv_lib_inet_addr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6446,7 +6448,7 @@ else do LIBS="$cf_save_LIBS $cf_inetlib" cat > conftest.$ac_ext <<EOF -#line 6450 "configure" +#line 6452 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/socket.h> @@ -6457,7 +6459,7 @@ int main() { inet_addr(0) ; return 0; } EOF -if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_lib_inet_addr=$cf_inetlib else @@ -6484,7 +6486,7 @@ fi echo $ac_n "checking for screen type""... $ac_c" 1>&6 -echo "configure:6488: checking for screen type" >&5 +echo "configure:6490: checking for screen type" >&5 if eval "test \"`echo '$''{'cf_cv_screen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6519,12 +6521,12 @@ case $cf_cv_screen in curses) echo $ac_n "checking for initscr""... $ac_c" 1>&6 -echo "configure:6523: checking for initscr" >&5 +echo "configure:6525: checking for initscr" >&5 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6528 "configure" +#line 6530 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char initscr(); below. */ @@ -6547,7 +6549,7 @@ initscr(); ; return 0; } EOF -if { (eval echo configure:6551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_initscr=yes" else @@ -6568,7 +6570,7 @@ else case $host_os in #(vi freebsd*) #(vi echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6 -echo "configure:6572: checking for tgoto in -lmytinfo" >&5 +echo "configure:6574: checking for tgoto in -lmytinfo" >&5 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6576,7 +6578,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lmytinfo $LIBS" cat > conftest.$ac_ext <<EOF -#line 6580 "configure" +#line 6582 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6587,7 +6589,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6610,7 +6612,7 @@ fi ;; hpux10.*) echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6 -echo "configure:6614: checking for initscr in -lcur_colr" >&5 +echo "configure:6616: checking for initscr in -lcur_colr" >&5 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6618,7 +6620,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcur_colr $LIBS" cat > conftest.$ac_ext <<EOF -#line 6622 "configure" +#line 6624 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6629,7 +6631,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6653,7 +6655,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6 -echo "configure:6657: checking for initscr in -lHcurses" >&5 +echo "configure:6659: checking for initscr in -lHcurses" >&5 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6661,7 +6663,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lHcurses $LIBS" cat > conftest.$ac_ext <<EOF -#line 6665 "configure" +#line 6667 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6672,7 +6674,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:6676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6721,12 +6723,12 @@ if test ".$ac_cv_func_initscr" != .yes ; then # Check for library containing tgoto. Do this before curses library # because it may be needed to link the test-case for initscr. echo $ac_n "checking for tgoto""... $ac_c" 1>&6 -echo "configure:6725: checking for tgoto" >&5 +echo "configure:6727: checking for tgoto" >&5 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6730 "configure" +#line 6732 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char tgoto(); below. */ @@ -6749,7 +6751,7 @@ tgoto(); ; return 0; } EOF -if { (eval echo configure:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_tgoto=yes" else @@ -6770,7 +6772,7 @@ else for cf_term_lib in termcap termlib unknown do echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6 -echo "configure:6774: checking for tgoto in -l$cf_term_lib" >&5 +echo "configure:6776: checking for tgoto in -l$cf_term_lib" >&5 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6778,7 +6780,7 @@ else ac_save_LIBS="$LIBS" LIBS="-l$cf_term_lib $LIBS" cat > conftest.$ac_ext <<EOF -#line 6782 "configure" +#line 6784 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6789,7 +6791,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6819,7 +6821,7 @@ fi for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown do echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6 -echo "configure:6823: checking for initscr in -l$cf_curs_lib" >&5 +echo "configure:6825: checking for initscr in -l$cf_curs_lib" >&5 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6827,7 +6829,7 @@ else ac_save_LIBS="$LIBS" LIBS="-l$cf_curs_lib $LIBS" cat > conftest.$ac_ext <<EOF -#line 6831 "configure" +#line 6833 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -6838,7 +6840,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6864,16 +6866,16 @@ fi LIBS="-l$cf_curs_lib $cf_save_LIBS" if test "$cf_term_lib" = unknown ; then echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6 -echo "configure:6868: checking if we can link with $cf_curs_lib library" >&5 +echo "configure:6870: checking if we can link with $cf_curs_lib library" >&5 cat > conftest.$ac_ext <<EOF -#line 6870 "configure" +#line 6872 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr() ; return 0; } EOF -if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_result=yes else @@ -6887,16 +6889,16 @@ rm -f conftest* test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; } elif test "$cf_term_lib" != predefined ; then echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6 -echo "configure:6891: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 +echo "configure:6893: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 cat > conftest.$ac_ext <<EOF -#line 6893 "configure" +#line 6895 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr(); tgoto((char *)0, 0, 0); ; return 0; } EOF -if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_result=no else @@ -6906,14 +6908,14 @@ else LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" cat > conftest.$ac_ext <<EOF -#line 6910 "configure" +#line 6912 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr() ; return 0; } EOF -if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_result=yes else @@ -6935,14 +6937,14 @@ fi echo $ac_n "checking for curses performance tradeoff""... $ac_c" 1>&6 -echo "configure:6939: checking for curses performance tradeoff" >&5 +echo "configure:6941: checking for curses performance tradeoff" >&5 if eval "test \"`echo '$''{'cf_cv_curs_performance'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cf_cv_curs_performance=no cat > conftest.$ac_ext <<EOF -#line 6946 "configure" +#line 6948 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -6956,11 +6958,11 @@ int main() { ; return 0; } EOF -if { (eval echo configure:6960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 6964 "configure" +#line 6966 "configure" #include "confdefs.h" #define CURS_PERFORMANCE @@ -6975,7 +6977,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:6979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_curs_performance=yes else @@ -7000,13 +7002,13 @@ EOF ncurses) echo $ac_n "checking for ncurses header file""... $ac_c" 1>&6 -echo "configure:7004: checking for ncurses header file" >&5 +echo "configure:7006: checking for ncurses header file" >&5 if eval "test \"`echo '$''{'cf_cv_ncurses_header'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 7010 "configure" +#line 7012 "configure" #include "confdefs.h" #include <curses.h> int main() { @@ -7023,7 +7025,7 @@ make an error ; return 0; } EOF -if { (eval echo configure:7027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ncurses_header=predefined else @@ -7110,7 +7112,7 @@ done ;; esac echo $ac_n "checking for ncurses version""... $ac_c" 1>&6 -echo "configure:7114: checking for ncurses version" >&5 +echo "configure:7116: checking for ncurses version" >&5 if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7135,7 +7137,7 @@ Autoconf "old" #endif EOF cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" - { (eval echo configure:7139: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; } + { (eval echo configure:7141: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; } if test -f conftest.out ; then cf_out=`cat conftest.out | sed -e 's@^Autoconf @@' -e 's@^[^"]*"@@' -e 's@".*@@'` test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" @@ -7144,7 +7146,7 @@ EOF else cat > conftest.$ac_ext <<EOF -#line 7148 "configure" +#line 7150 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -7167,7 +7169,7 @@ int main() exit(0); } EOF -if { (eval echo configure:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then cf_cv_ncurses_version=`cat $cf_tempfile` @@ -7192,7 +7194,7 @@ echo "$ac_t""$cf_cv_ncurses_version" 1>&6 cf_ncurses_LIBS="" cf_ncurses_SAVE="$LIBS" echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 -echo "configure:7196: checking for Gpm_Open in -lgpm" >&5 +echo "configure:7198: checking for Gpm_Open in -lgpm" >&5 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7200,7 +7202,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgpm $LIBS" cat > conftest.$ac_ext <<EOF -#line 7204 "configure" +#line 7206 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7211,7 +7213,7 @@ int main() { Gpm_Open() ; return 0; } EOF -if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7227,7 +7229,7 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6 -echo "configure:7231: checking for initscr in -lgpm" >&5 +echo "configure:7233: checking for initscr in -lgpm" >&5 ac_lib_var=`echo gpm'_'initscr | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7235,7 +7237,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgpm $LIBS" cat > conftest.$ac_ext <<EOF -#line 7239 "configure" +#line 7241 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7246,7 +7248,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7277,7 +7279,7 @@ freebsd*) # This is only necessary if you are linking against an obsolete # version of ncurses (but it should do no harm, since it's static). echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6 -echo "configure:7281: checking for tgoto in -lmytinfo" >&5 +echo "configure:7283: checking for tgoto in -lmytinfo" >&5 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7285,7 +7287,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lmytinfo $LIBS" cat > conftest.$ac_ext <<EOF -#line 7289 "configure" +#line 7291 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7296,7 +7298,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7324,12 +7326,12 @@ LIBS="$cf_ncurses_LIBS $LIBS" cf_cv_have_lib_ncurses=no cf_libdir="" echo $ac_n "checking for initscr""... $ac_c" 1>&6 -echo "configure:7328: checking for initscr" >&5 +echo "configure:7330: checking for initscr" >&5 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 7333 "configure" +#line 7335 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char initscr(); below. */ @@ -7352,7 +7354,7 @@ initscr(); ; return 0; } EOF -if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_initscr=yes" else @@ -7372,17 +7374,17 @@ else cf_save_LIBS="$LIBS" echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 -echo "configure:7376: checking for initscr in -lncurses" >&5 +echo "configure:7378: checking for initscr in -lncurses" >&5 LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <<EOF -#line 7379 "configure" +#line 7381 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr() ; return 0; } EOF -if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_ncurses=yes @@ -7410,17 +7412,17 @@ test "$prefix" != /opt && cf_search="$cf_search /opt/lib /opt/lib/ncur for cf_libdir in $cf_search do echo $ac_n "checking for -lncurses in $cf_libdir""... $ac_c" 1>&6 -echo "configure:7414: checking for -lncurses in $cf_libdir" >&5 +echo "configure:7416: checking for -lncurses in $cf_libdir" >&5 LIBS="-L$cf_libdir -lncurses $cf_save_LIBS" cat > conftest.$ac_ext <<EOF -#line 7417 "configure" +#line 7419 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr() ; return 0; } EOF -if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_ncurses=yes @@ -7452,7 +7454,7 @@ esac if test -n "$cf_ncurses_LIBS" ; then echo $ac_n "checking if we can link ncurses without $cf_ncurses_LIBS""... $ac_c" 1>&6 -echo "configure:7456: checking if we can link ncurses without $cf_ncurses_LIBS" >&5 +echo "configure:7458: checking if we can link ncurses without $cf_ncurses_LIBS" >&5 cf_ncurses_SAVE="$LIBS" for p in $cf_ncurses_LIBS ; do q=`echo $LIBS | sed -e 's/'$p' //' -e 's/'$p'$//'` @@ -7461,14 +7463,14 @@ echo "configure:7456: checking if we can link ncurses without $cf_ncurses_LIBS" fi done cat > conftest.$ac_ext <<EOF -#line 7465 "configure" +#line 7467 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr(); mousemask(0,0); tgoto((char *)0, 0, 0); ; return 0; } EOF -if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -7485,20 +7487,20 @@ fi slang) echo $ac_n "checking for slang header file""... $ac_c" 1>&6 -echo "configure:7489: checking for slang header file" >&5 +echo "configure:7491: checking for slang header file" >&5 if eval "test \"`echo '$''{'cf_cv_slang_header'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 7495 "configure" +#line 7497 "configure" #include "confdefs.h" #include <slang.h> int main() { printf("%s\n", SLANG_VERSION) ; return 0; } EOF -if { (eval echo configure:7502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_slang_header=predefined else @@ -7581,24 +7583,24 @@ else cf_cv_termlib=none cat > conftest.$ac_ext <<EOF -#line 7585 "configure" +#line 7587 "configure" #include "confdefs.h" int main() { char *x=(char*)tgoto("",0,0) ; return 0; } EOF -if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 7595 "configure" +#line 7597 "configure" #include "confdefs.h" int main() { int x=tigetstr("") ; return 0; } EOF -if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_termlib=terminfo else @@ -7620,7 +7622,7 @@ else # HP-UX 9.x terminfo has setupterm, but no tigetstr. if test "$cf_cv_termlib" = none; then echo $ac_n "checking for tigetstr in -ltermlib""... $ac_c" 1>&6 -echo "configure:7624: checking for tigetstr in -ltermlib" >&5 +echo "configure:7626: checking for tigetstr in -ltermlib" >&5 ac_lib_var=`echo termlib'_'tigetstr | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7628,7 +7630,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermlib $LIBS" cat > conftest.$ac_ext <<EOF -#line 7632 "configure" +#line 7634 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7639,7 +7641,7 @@ int main() { tigetstr() ; return 0; } EOF -if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7662,7 +7664,7 @@ fi fi if test "$cf_cv_termlib" = none; then echo $ac_n "checking for tgoto in -ltermlib""... $ac_c" 1>&6 -echo "configure:7666: checking for tgoto in -ltermlib" >&5 +echo "configure:7668: checking for tgoto in -ltermlib" >&5 ac_lib_var=`echo termlib'_'tgoto | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7670,7 +7672,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermlib $LIBS" cat > conftest.$ac_ext <<EOF -#line 7674 "configure" +#line 7676 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7681,7 +7683,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7705,7 +7707,7 @@ fi if test "$cf_cv_termlib" = none; then # allow curses library for broken AIX system. echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6 -echo "configure:7709: checking for initscr in -lcurses" >&5 +echo "configure:7711: checking for initscr in -lcurses" >&5 ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7713,7 +7715,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcurses $LIBS" cat > conftest.$ac_ext <<EOF -#line 7717 "configure" +#line 7719 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7724,7 +7726,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7745,7 +7747,7 @@ else fi echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6 -echo "configure:7749: checking for tgoto in -ltermcap" >&5 +echo "configure:7751: checking for tgoto in -ltermcap" >&5 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7753,7 +7755,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermcap $LIBS" cat > conftest.$ac_ext <<EOF -#line 7757 "configure" +#line 7759 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7764,7 +7766,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7787,7 +7789,7 @@ fi fi if test "$cf_cv_termlib" = none; then echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6 -echo "configure:7791: checking for tgoto in -ltermcap" >&5 +echo "configure:7793: checking for tgoto in -ltermcap" >&5 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7795,7 +7797,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermcap $LIBS" cat > conftest.$ac_ext <<EOF -#line 7799 "configure" +#line 7801 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7806,7 +7808,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7829,7 +7831,7 @@ fi fi if test "$cf_cv_termlib" = none; then echo $ac_n "checking for tgoto in -lncurses""... $ac_c" 1>&6 -echo "configure:7833: checking for tgoto in -lncurses" >&5 +echo "configure:7835: checking for tgoto in -lncurses" >&5 ac_lib_var=`echo ncurses'_'tgoto | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7837,7 +7839,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <<EOF -#line 7841 "configure" +#line 7843 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7848,7 +7850,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7880,12 +7882,12 @@ fi cf_slang_LIBS2="$LIBS" echo $ac_n "checking for acos""... $ac_c" 1>&6 -echo "configure:7884: checking for acos" >&5 +echo "configure:7886: checking for acos" >&5 if eval "test \"`echo '$''{'ac_cv_func_acos'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 7889 "configure" +#line 7891 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char acos(); below. */ @@ -7908,7 +7910,7 @@ acos(); ; return 0; } EOF -if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_acos=yes" else @@ -7927,7 +7929,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for acos in -lm""... $ac_c" 1>&6 -echo "configure:7931: checking for acos in -lm" >&5 +echo "configure:7933: checking for acos in -lm" >&5 ac_lib_var=`echo m'_'acos | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -7935,7 +7937,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS $LIBS" cat > conftest.$ac_ext <<EOF -#line 7939 "configure" +#line 7941 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -7946,7 +7948,7 @@ int main() { acos() ; return 0; } EOF -if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7986,12 +7988,12 @@ fi cf_cv_have_lib_slang=no cf_libdir="" echo $ac_n "checking for SLtt_get_screen_size""... $ac_c" 1>&6 -echo "configure:7990: checking for SLtt_get_screen_size" >&5 +echo "configure:7992: checking for SLtt_get_screen_size" >&5 if eval "test \"`echo '$''{'ac_cv_func_SLtt_get_screen_size'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 7995 "configure" +#line 7997 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char SLtt_get_screen_size(); below. */ @@ -8014,7 +8016,7 @@ SLtt_get_screen_size(); ; return 0; } EOF -if { (eval echo configure:8018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_SLtt_get_screen_size=yes" else @@ -8034,17 +8036,17 @@ else cf_save_LIBS="$LIBS" echo $ac_n "checking for SLtt_get_screen_size in -lslang""... $ac_c" 1>&6 -echo "configure:8038: checking for SLtt_get_screen_size in -lslang" >&5 +echo "configure:8040: checking for SLtt_get_screen_size in -lslang" >&5 LIBS="-lslang $LIBS" cat > conftest.$ac_ext <<EOF -#line 8041 "configure" +#line 8043 "configure" #include "confdefs.h" #include <slang.h> int main() { SLtt_get_screen_size() ; return 0; } EOF -if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_slang=yes @@ -8072,17 +8074,17 @@ test "$prefix" != /opt && cf_search="$cf_search /opt/lib /opt/lib/slan for cf_libdir in $cf_search do echo $ac_n "checking for -lslang in $cf_libdir""... $ac_c" 1>&6 -echo "configure:8076: checking for -lslang in $cf_libdir" >&5 +echo "configure:8078: checking for -lslang in $cf_libdir" >&5 LIBS="-L$cf_libdir -lslang $cf_save_LIBS" cat > conftest.$ac_ext <<EOF -#line 8079 "configure" +#line 8081 "configure" #include "confdefs.h" #include <slang.h> int main() { SLtt_get_screen_size() ; return 0; } EOF -if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_slang=yes @@ -8113,7 +8115,7 @@ esac cf_slang_LIBS3="$LIBS" echo $ac_n "checking if we can link slang without termcap""... $ac_c" 1>&6 -echo "configure:8117: checking if we can link slang without termcap" >&5 +echo "configure:8119: checking if we can link slang without termcap" >&5 if test -n "`echo $cf_slang_LIBS1 | sed -e 's/ //g'`" ; then cf_exclude=`echo ".$cf_slang_LIBS2" | sed -e "s@$cf_slang_LIBS1@@" -e 's@^.@@'` else @@ -8121,14 +8123,14 @@ else fi LIBS=`echo ".$cf_slang_LIBS3" | sed -e "s@$cf_exclude@@" -e 's@^.@@'` cat > conftest.$ac_ext <<EOF -#line 8125 "configure" +#line 8127 "configure" #include "confdefs.h" #include <slang.h> int main() { SLtt_get_screen_size() ; return 0; } EOF -if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_result=yes else @@ -8148,7 +8150,7 @@ eval cf_libdir=$libdir cf_libdir=`echo $cf_libdir | sed -e s@'^NONE/'@$prefix/@ -e s@'^NONE/'@$ac_default_prefix/@` echo $ac_n "checking for location of config-file""... $ac_c" 1>&6 -echo "configure:8152: checking for location of config-file" >&5 +echo "configure:8154: checking for location of config-file" >&5 LYNX_CFG_FILE=$cf_libdir/lynx.cfg cat >> confdefs.h <<EOF #define LYNX_CFG_FILE "$LYNX_CFG_FILE" @@ -8158,12 +8160,12 @@ echo "$ac_t""$LYNX_CFG_FILE" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:8162: checking for ANSI C header files" >&5 +echo "configure:8164: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8167 "configure" +#line 8169 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -8171,7 +8173,7 @@ else #include <float.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8188,7 +8190,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 8192 "configure" +#line 8194 "configure" #include "confdefs.h" #include <string.h> EOF @@ -8206,7 +8208,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext <<EOF -#line 8210 "configure" +#line 8212 "configure" #include "confdefs.h" #include <stdlib.h> EOF @@ -8227,7 +8229,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext <<EOF -#line 8231 "configure" +#line 8233 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -8238,7 +8240,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -8262,12 +8264,12 @@ EOF fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:8266: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:8268: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8271 "configure" +#line 8273 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> @@ -8276,7 +8278,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:8280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -8301,12 +8303,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:8305: checking for $ac_hdr that defines DIR" >&5 +echo "configure:8307: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8310 "configure" +#line 8312 "configure" #include "confdefs.h" #include <sys/types.h> #include <$ac_hdr> @@ -8314,7 +8316,7 @@ int main() { DIR *dirp = 0; ; return 0; } EOF -if { (eval echo configure:8318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else @@ -8339,7 +8341,7 @@ done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:8343: checking for opendir in -ldir" >&5 +echo "configure:8345: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8347,7 +8349,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <<EOF -#line 8351 "configure" +#line 8353 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -8358,7 +8360,7 @@ int main() { opendir() ; return 0; } EOF -if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8380,7 +8382,7 @@ fi else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:8384: checking for opendir in -lx" >&5 +echo "configure:8386: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -8388,7 +8390,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <<EOF -#line 8392 "configure" +#line 8394 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -8399,7 +8401,7 @@ int main() { opendir() ; return 0; } EOF -if { (eval echo configure:8403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8438,17 +8440,17 @@ for ac_hdr in \ do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8442: checking for $ac_hdr" >&5 +echo "configure:8444: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8447 "configure" +#line 8449 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8476,13 +8478,13 @@ done echo $ac_n "checking termio.h and termios.h""... $ac_c" 1>&6 -echo "configure:8480: checking termio.h and termios.h" >&5 +echo "configure:8482: checking termio.h and termios.h" >&5 if eval "test \"`echo '$''{'cf_cv_termio_and_termios'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8486 "configure" +#line 8488 "configure" #include "confdefs.h" #if HAVE_TERMIO_H @@ -8495,7 +8497,7 @@ int main() { putchar (0x0a) ; return 0; } EOF -if { (eval echo configure:8499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_termio_and_termios=yes else @@ -8515,13 +8517,13 @@ EOF echo $ac_n "checking for sigaction and structs""... $ac_c" 1>&6 -echo "configure:8519: checking for sigaction and structs" >&5 +echo "configure:8521: checking for sigaction and structs" >&5 if eval "test \"`echo '$''{'cf_cv_func_sigaction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8525 "configure" +#line 8527 "configure" #include "confdefs.h" #include <sys/types.h> @@ -8536,7 +8538,7 @@ struct sigaction act; ; return 0; } EOF -if { (eval echo configure:8540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_func_sigaction=yes else @@ -8560,17 +8562,17 @@ for ac_hdr in sys/wait.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8564: checking for $ac_hdr" >&5 +echo "configure:8566: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8569 "configure" +#line 8571 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8607,17 +8609,17 @@ for ac_hdr in wait.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8611: checking for $ac_hdr" >&5 +echo "configure:8613: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8616 "configure" +#line 8618 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8647,17 +8649,17 @@ for ac_hdr in waitstatus.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8651: checking for $ac_hdr" >&5 +echo "configure:8653: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8656 "configure" +#line 8658 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8698,13 +8700,13 @@ fi echo $ac_n "checking for union wait""... $ac_c" 1>&6 -echo "configure:8702: checking for union wait" >&5 +echo "configure:8704: checking for union wait" >&5 if eval "test \"`echo '$''{'cf_cv_type_unionwait'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8708 "configure" +#line 8710 "configure" #include "confdefs.h" $cf_wait_headers int main() { @@ -8715,7 +8717,7 @@ int x; ; return 0; } EOF -if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_type_unionwait=no echo compiles ok w/o union wait 1>&5 @@ -8726,7 +8728,7 @@ else rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 8730 "configure" +#line 8732 "configure" #include "confdefs.h" $cf_wait_headers int main() { @@ -8741,7 +8743,7 @@ union wait x; ; return 0; } EOF -if { (eval echo configure:8745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_type_unionwait=yes echo compiles ok with union wait and possibly macros too 1>&5 @@ -8768,20 +8770,20 @@ EOF if test $cf_cv_type_unionwait = yes; then echo $ac_n "checking if union wait can be used as wait-arg""... $ac_c" 1>&6 -echo "configure:8772: checking if union wait can be used as wait-arg" >&5 +echo "configure:8774: checking if union wait can be used as wait-arg" >&5 if eval "test \"`echo '$''{'cf_cv_arg_union_wait'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8778 "configure" +#line 8780 "configure" #include "confdefs.h" $cf_wait_headers int main() { union wait x; wait(&x) ; return 0; } EOF -if { (eval echo configure:8785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_arg_union_wait=yes else @@ -8801,20 +8803,20 @@ EOF echo $ac_n "checking if union wait can be used as waitpid-arg""... $ac_c" 1>&6 -echo "configure:8805: checking if union wait can be used as waitpid-arg" >&5 +echo "configure:8807: checking if union wait can be used as waitpid-arg" >&5 if eval "test \"`echo '$''{'cf_cv_arg_union_waitpid'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8811 "configure" +#line 8813 "configure" #include "confdefs.h" $cf_wait_headers int main() { union wait x; waitpid(0, &x, 0) ; return 0; } EOF -if { (eval echo configure:8818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_arg_union_waitpid=yes else @@ -8840,17 +8842,17 @@ for ac_hdr in stdarg.h varargs.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8844: checking for $ac_hdr" >&5 +echo "configure:8846: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8849 "configure" +#line 8851 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8877,13 +8879,13 @@ fi done echo $ac_n "checking for standard varargs""... $ac_c" 1>&6 -echo "configure:8881: checking for standard varargs" >&5 +echo "configure:8883: checking for standard varargs" >&5 if eval "test \"`echo '$''{'cf_cv_ansi_varargs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8887 "configure" +#line 8889 "configure" #include "confdefs.h" #if HAVE_STDARG_H @@ -8898,7 +8900,7 @@ int main() { return 0;} int foo(char *fmt,...){va_list args;va_start(args,fmt);va_end(args) ; return 0; } EOF -if { (eval echo configure:8902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ansi_varargs=yes else @@ -8918,12 +8920,12 @@ EOF echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:8922: checking for uid_t in sys/types.h" >&5 +echo "configure:8924: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 8927 "configure" +#line 8929 "configure" #include "confdefs.h" #include <sys/types.h> EOF @@ -8952,7 +8954,7 @@ EOF fi echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 -echo "configure:8956: checking type of array argument to getgroups" >&5 +echo "configure:8958: checking type of array argument to getgroups" >&5 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8960,7 +8962,7 @@ else ac_cv_type_getgroups=cross else cat > conftest.$ac_ext <<EOF -#line 8964 "configure" +#line 8966 "configure" #include "confdefs.h" /* Thanks to Mike Rendell for this test. */ @@ -8985,7 +8987,7 @@ main() } EOF -if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_type_getgroups=gid_t else @@ -8999,7 +9001,7 @@ fi if test $ac_cv_type_getgroups = cross; then cat > conftest.$ac_ext <<EOF -#line 9003 "configure" +#line 9005 "configure" #include "confdefs.h" #include <unistd.h> EOF @@ -9023,12 +9025,12 @@ EOF echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:9027: checking for pid_t" >&5 +echo "configure:9029: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9032 "configure" +#line 9034 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -9056,12 +9058,12 @@ EOF fi echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:9060: checking for uid_t in sys/types.h" >&5 +echo "configure:9062: checking for uid_t in sys/types.h" >&5 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9065 "configure" +#line 9067 "configure" #include "confdefs.h" #include <sys/types.h> EOF @@ -9090,12 +9092,12 @@ EOF fi echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:9094: checking for mode_t" >&5 +echo "configure:9096: checking for mode_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9099 "configure" +#line 9101 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -9126,17 +9128,17 @@ fi ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 -echo "configure:9130: checking for vfork.h" >&5 +echo "configure:9132: checking for vfork.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9135 "configure" +#line 9137 "configure" #include "confdefs.h" #include <vfork.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9161,18 +9163,18 @@ else fi echo $ac_n "checking for working vfork""... $ac_c" 1>&6 -echo "configure:9165: checking for working vfork" >&5 +echo "configure:9167: checking for working vfork" >&5 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$cross_compiling" = yes; then echo $ac_n "checking for vfork""... $ac_c" 1>&6 -echo "configure:9171: checking for vfork" >&5 +echo "configure:9173: checking for vfork" >&5 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9176 "configure" +#line 9178 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char vfork(); below. */ @@ -9195,7 +9197,7 @@ vfork(); ; return 0; } EOF -if { (eval echo configure:9199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_vfork=yes" else @@ -9217,7 +9219,7 @@ fi ac_cv_func_vfork_works=$ac_cv_func_vfork else cat > conftest.$ac_ext <<EOF -#line 9221 "configure" +#line 9223 "configure" #include "confdefs.h" /* Thanks to Paul Eggert for this test. */ #include <stdio.h> @@ -9312,7 +9314,7 @@ main() { } } EOF -if { (eval echo configure:9316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:9318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_vfork_works=yes else @@ -9336,13 +9338,13 @@ fi echo $ac_n "checking if we should use fcntl or ioctl""... $ac_c" 1>&6 -echo "configure:9340: checking if we should use fcntl or ioctl" >&5 +echo "configure:9342: checking if we should use fcntl or ioctl" >&5 if eval "test \"`echo '$''{'cf_cv_fionbio'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9346 "configure" +#line 9348 "configure" #include "confdefs.h" #include <sys/types.h> @@ -9354,7 +9356,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_fionbio=ioctl else @@ -9363,7 +9365,7 @@ else rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 9367 "configure" +#line 9369 "configure" #include "confdefs.h" #include <sys/types.h> @@ -9380,7 +9382,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_fionbio=fcntl else @@ -9403,20 +9405,20 @@ EOF echo $ac_n "checking for broken/missing definition of remove""... $ac_c" 1>&6 -echo "configure:9407: checking for broken/missing definition of remove" >&5 +echo "configure:9409: checking for broken/missing definition of remove" >&5 if eval "test \"`echo '$''{'cf_cv_baddef_remove'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9413 "configure" +#line 9415 "configure" #include "confdefs.h" #include <stdio.h> int main() { remove("dummy") ; return 0; } EOF -if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_baddef_remove=no else @@ -9424,7 +9426,7 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 9428 "configure" +#line 9430 "configure" #include "confdefs.h" #include <stdio.h> int __unlink(name) { return unlink(name); } @@ -9432,7 +9434,7 @@ int main() { remove("dummy") ; return 0; } EOF -if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_baddef_remove=yes else @@ -9456,13 +9458,13 @@ EOF echo $ac_n "checking for lstat""... $ac_c" 1>&6 -echo "configure:9460: checking for lstat" >&5 +echo "configure:9462: checking for lstat" >&5 if eval "test \"`echo '$''{'ac_cv_func_lstat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9466 "configure" +#line 9468 "configure" #include "confdefs.h" #include <sys/types.h> @@ -9471,7 +9473,7 @@ int main() { lstat(".", (struct stat *)0) ; return 0; } EOF -if { (eval echo configure:9475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_lstat=yes else @@ -9507,12 +9509,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9511: checking for $ac_func" >&5 +echo "configure:9513: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9516 "configure" +#line 9518 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -9535,7 +9537,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:9539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9565,12 +9567,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9569: checking for $ac_func" >&5 +echo "configure:9571: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9574 "configure" +#line 9576 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -9593,7 +9595,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:9597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9624,12 +9626,12 @@ for ac_func in strstr do echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6 -echo "configure:9628: checking for $ac_func declaration" >&5 +echo "configure:9630: checking for $ac_func declaration" >&5 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9633 "configure" +#line 9635 "configure" #include "confdefs.h" #include <string.h> int main() { @@ -9638,11 +9640,11 @@ extern int ${ac_func}(); #endif ; return 0; } EOF -if { (eval echo configure:9642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 9646 "configure" +#line 9648 "configure" #include "confdefs.h" #include <string.h> int main() { @@ -9651,7 +9653,7 @@ int (*p)() = ${ac_func}; #endif ; return 0; } EOF -if { (eval echo configure:9655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_decl_$ac_func=yes" @@ -9693,12 +9695,12 @@ for ac_func in getgrgid getgrnam do echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6 -echo "configure:9697: checking for $ac_func declaration" >&5 +echo "configure:9699: checking for $ac_func declaration" >&5 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9702 "configure" +#line 9704 "configure" #include "confdefs.h" #include <stdio.h> @@ -9709,11 +9711,11 @@ extern int ${ac_func}(); #endif ; return 0; } EOF -if { (eval echo configure:9713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 9717 "configure" +#line 9719 "configure" #include "confdefs.h" #include <stdio.h> @@ -9724,7 +9726,7 @@ int (*p)() = ${ac_func}; #endif ; return 0; } EOF -if { (eval echo configure:9728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_decl_$ac_func=yes" @@ -9766,13 +9768,13 @@ done echo $ac_n "checking if TRUE/FALSE are defined""... $ac_c" 1>&6 -echo "configure:9770: checking if TRUE/FALSE are defined" >&5 +echo "configure:9772: checking if TRUE/FALSE are defined" >&5 if eval "test \"`echo '$''{'cf_cv_bool_defs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9776 "configure" +#line 9778 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -9781,7 +9783,7 @@ int main() { int x = TRUE, y = FALSE ; return 0; } EOF -if { (eval echo configure:9785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_bool_defs=yes else @@ -9808,13 +9810,13 @@ fi echo $ac_n "checking if external errno is declared""... $ac_c" 1>&6 -echo "configure:9812: checking if external errno is declared" >&5 +echo "configure:9814: checking if external errno is declared" >&5 if eval "test \"`echo '$''{'cf_cv_dcl_errno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9818 "configure" +#line 9820 "configure" #include "confdefs.h" #if HAVE_STDLIB_H @@ -9827,7 +9829,7 @@ int main() { long x = (long) errno ; return 0; } EOF -if { (eval echo configure:9831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval 'cf_cv_dcl_'errno'=yes' else @@ -9858,13 +9860,13 @@ fi # It's possible (for near-UNIX clones) that the data doesn't exist echo $ac_n "checking if external errno exists""... $ac_c" 1>&6 -echo "configure:9862: checking if external errno exists" >&5 +echo "configure:9864: checking if external errno exists" >&5 if eval "test \"`echo '$''{'cf_cv_have_errno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9868 "configure" +#line 9870 "configure" #include "confdefs.h" #undef errno @@ -9874,7 +9876,7 @@ int main() { errno = 2 ; return 0; } EOF -if { (eval echo configure:9878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval 'cf_cv_have_'errno'=yes' else @@ -9906,20 +9908,20 @@ fi echo $ac_n "checking for setlocale()""... $ac_c" 1>&6 -echo "configure:9910: checking for setlocale()" >&5 +echo "configure:9912: checking for setlocale()" >&5 if eval "test \"`echo '$''{'cf_cv_locale'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9916 "configure" +#line 9918 "configure" #include "confdefs.h" #include <locale.h> int main() { setlocale(LC_ALL, "") ; return 0; } EOF -if { (eval echo configure:9923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_locale=yes else @@ -9940,13 +9942,13 @@ EOF echo $ac_n "checking if NGROUPS is defined""... $ac_c" 1>&6 -echo "configure:9944: checking if NGROUPS is defined" >&5 +echo "configure:9946: checking if NGROUPS is defined" >&5 if eval "test \"`echo '$''{'cf_cv_ngroups'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 9950 "configure" +#line 9952 "configure" #include "confdefs.h" #if HAVE_SYS_PARAM_H @@ -9960,7 +9962,7 @@ int main() { int x = NGROUPS ; return 0; } EOF -if { (eval echo configure:9964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ngroups=yes else @@ -9968,7 +9970,7 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 9972 "configure" +#line 9974 "configure" #include "confdefs.h" #if HAVE_SYS_PARAM_H @@ -9982,7 +9984,7 @@ int main() { int x = NGROUPS_MAX ; return 0; } EOF -if { (eval echo configure:9986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:9988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ngroups=NGROUPS_MAX else @@ -10016,13 +10018,13 @@ for cf_name in sys_nerr sys_errlist do echo $ac_n "checking if external $cf_name is declared""... $ac_c" 1>&6 -echo "configure:10020: checking if external $cf_name is declared" >&5 +echo "configure:10022: checking if external $cf_name is declared" >&5 if eval "test \"`echo '$''{'cf_cv_dcl_$cf_name'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10026 "configure" +#line 10028 "configure" #include "confdefs.h" #if HAVE_STDLIB_H @@ -10035,7 +10037,7 @@ int main() { long x = (long) $cf_name ; return 0; } EOF -if { (eval echo configure:10039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval 'cf_cv_dcl_'$cf_name'=yes' else @@ -10066,13 +10068,13 @@ fi # It's possible (for near-UNIX clones) that the data doesn't exist echo $ac_n "checking if external $cf_name exists""... $ac_c" 1>&6 -echo "configure:10070: checking if external $cf_name exists" >&5 +echo "configure:10072: checking if external $cf_name exists" >&5 if eval "test \"`echo '$''{'cf_cv_have_$cf_name'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10076 "configure" +#line 10078 "configure" #include "confdefs.h" #undef $cf_name @@ -10082,7 +10084,7 @@ int main() { $cf_name = 2 ; return 0; } EOF -if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval 'cf_cv_have_'$cf_name'=yes' else @@ -10115,13 +10117,13 @@ done echo $ac_n "checking if struct utmp is declared""... $ac_c" 1>&6 -echo "configure:10119: checking if struct utmp is declared" >&5 +echo "configure:10121: checking if struct utmp is declared" >&5 if eval "test \"`echo '$''{'cf_cv_have_utmp'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10125 "configure" +#line 10127 "configure" #include "confdefs.h" #include <sys/types.h> @@ -10130,7 +10132,7 @@ int main() { struct utmp x; char *y = &x.ut_host[0] ; return 0; } EOF -if { (eval echo configure:10134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_have_utmp=yes else @@ -10138,14 +10140,14 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 10142 "configure" +#line 10144 "configure" #include "confdefs.h" #include <utmpx.h> int main() { struct utmpx x; char *y = &x.ut_host[0] ; return 0; } EOF -if { (eval echo configure:10149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_have_utmp=utmpx else @@ -10173,13 +10175,13 @@ EOF echo $ac_n "checking if external h_errno exists""... $ac_c" 1>&6 -echo "configure:10177: checking if external h_errno exists" >&5 +echo "configure:10179: checking if external h_errno exists" >&5 if eval "test \"`echo '$''{'cf_cv_have_h_errno'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10183 "configure" +#line 10185 "configure" #include "confdefs.h" #undef h_errno @@ -10189,7 +10191,7 @@ int main() { h_errno = 2 ; return 0; } EOF -if { (eval echo configure:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval 'cf_cv_have_'h_errno'=yes' else @@ -10220,13 +10222,13 @@ fi echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6 -echo "configure:10224: checking if character set is EBCDIC" >&5 +echo "configure:10226: checking if character set is EBCDIC" >&5 if eval "test \"`echo '$''{'cf_cv_ebcdic'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10230 "configure" +#line 10232 "configure" #include "confdefs.h" int main() { @@ -10239,7 +10241,7 @@ make an error "Character set is not EBCDIC" #endif ; return 0; } EOF -if { (eval echo configure:10243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # TryCompile action if true cf_cv_ebcdic=yes @@ -10273,7 +10275,7 @@ esac if test $cf_cv_screen != slang ; then echo $ac_n "checking if curses supports alternate-character set""... $ac_c" 1>&6 -echo "configure:10277: checking if curses supports alternate-character set" >&5 +echo "configure:10279: checking if curses supports alternate-character set" >&5 if eval "test \"`echo '$''{'cf_cv_alt_char_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10281,7 +10283,7 @@ else for mapname in acs_map _acs_map do cat > conftest.$ac_ext <<EOF -#line 10285 "configure" +#line 10287 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -10290,7 +10292,7 @@ int main() { chtype x = $mapname['l']; $mapname['m'] = 0 ; return 0; } EOF -if { (eval echo configure:10294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_alt_char_set=$mapname break @@ -10313,13 +10315,13 @@ EOF echo $ac_n "checking if curses supports fancy attributes""... $ac_c" 1>&6 -echo "configure:10317: checking if curses supports fancy attributes" >&5 +echo "configure:10319: checking if curses supports fancy attributes" >&5 if eval "test \"`echo '$''{'cf_cv_fancy_curses'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10323 "configure" +#line 10325 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -10332,7 +10334,7 @@ attrset(A_UNDERLINE|A_BOLD|A_REVERSE); ; return 0; } EOF -if { (eval echo configure:10336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_fancy_curses=yes else @@ -10352,7 +10354,7 @@ EOF echo $ac_n "checking for ncurses version""... $ac_c" 1>&6 -echo "configure:10356: checking for ncurses version" >&5 +echo "configure:10358: checking for ncurses version" >&5 if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10377,7 +10379,7 @@ Autoconf "old" #endif EOF cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" - { (eval echo configure:10381: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; } + { (eval echo configure:10383: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; } if test -f conftest.out ; then cf_out=`cat conftest.out | sed -e 's@^Autoconf @@' -e 's@^[^"]*"@@' -e 's@".*@@'` test -n "$cf_out" && cf_cv_ncurses_version="$cf_out" @@ -10386,7 +10388,7 @@ EOF else cat > conftest.$ac_ext <<EOF -#line 10390 "configure" +#line 10392 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -10409,7 +10411,7 @@ int main() exit(0); } EOF -if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then cf_cv_ncurses_version=`cat $cf_tempfile` @@ -10429,13 +10431,13 @@ echo "$ac_t""$cf_cv_ncurses_version" 1>&6 if test "$cf_cv_ncurses_version" != no ; then echo $ac_n "checking for obsolete/broken version of ncurses""... $ac_c" 1>&6 -echo "configure:10433: checking for obsolete/broken version of ncurses" >&5 +echo "configure:10435: checking for obsolete/broken version of ncurses" >&5 if eval "test \"`echo '$''{'cf_cv_ncurses_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10439 "configure" +#line 10441 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -10449,7 +10451,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:10453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ncurses_broken=no else @@ -10474,13 +10476,13 @@ fi echo $ac_n "checking if curses supports color attributes""... $ac_c" 1>&6 -echo "configure:10478: checking if curses supports color attributes" >&5 +echo "configure:10480: checking if curses supports color attributes" >&5 if eval "test \"`echo '$''{'cf_cv_color_curses'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10484 "configure" +#line 10486 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -10495,7 +10497,7 @@ chtype x = COLOR_BLUE; ; return 0; } EOF -if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_color_curses=yes else @@ -10522,7 +10524,7 @@ fi echo $ac_n "checking declaration of size-change""... $ac_c" 1>&6 -echo "configure:10526: checking declaration of size-change" >&5 +echo "configure:10528: checking declaration of size-change" >&5 if eval "test \"`echo '$''{'cf_cv_sizechange'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10536,7 +10538,7 @@ do CFLAGS="$cf_save_CFLAGS" test -n "$cf_opts" && CFLAGS="$CFLAGS -D$cf_opts" cat > conftest.$ac_ext <<EOF -#line 10540 "configure" +#line 10542 "configure" #include "confdefs.h" #include <sys/types.h> #if HAVE_TERMIOS_H @@ -10575,7 +10577,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:10579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:10581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_sizechange=yes else @@ -10607,20 +10609,20 @@ EOF echo $ac_n "checking if ttytype is declared in curses library""... $ac_c" 1>&6 -echo "configure:10611: checking if ttytype is declared in curses library" >&5 +echo "configure:10613: checking if ttytype is declared in curses library" >&5 if eval "test \"`echo '$''{'cf_cv_have_ttytype'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10617 "configure" +#line 10619 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { char *x = &ttytype[1]; *x = 1 ; return 0; } EOF -if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cf_cv_have_ttytype=yes else @@ -10648,12 +10650,12 @@ EOF wborder do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10652: checking for $ac_func" >&5 +echo "configure:10654: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 10657 "configure" +#line 10659 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -10676,7 +10678,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:10680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10706,7 +10708,7 @@ fi echo $ac_n "checking if configuration info should be browsable""... $ac_c" 1>&6 -echo "configure:10710: checking if configuration info should be browsable" >&5 +echo "configure:10712: checking if configuration info should be browsable" >&5 # Check whether --enable-config-info or --disable-config-info was given. if test "${enable_config_info+set}" = set; then @@ -10730,7 +10732,7 @@ EOF echo $ac_n "checking if new-style forms-based options screen should be used""... $ac_c" 1>&6 -echo "configure:10734: checking if new-style forms-based options screen should be used" >&5 +echo "configure:10736: checking if new-style forms-based options screen should be used" >&5 # Check whether --enable-forms-options or --disable-forms-options was given. if test "${enable_forms_options+set}" = set; then @@ -10754,7 +10756,7 @@ EOF echo $ac_n "checking if old-style options menu should be used""... $ac_c" 1>&6 -echo "configure:10758: checking if old-style options menu should be used" >&5 +echo "configure:10760: checking if old-style options menu should be used" >&5 # Check whether --enable-menu-options or --disable-menu-options was given. if test "${enable_menu_options+set}" = set; then @@ -10778,7 +10780,7 @@ EOF echo $ac_n "checking if experimental address-list page should be used""... $ac_c" 1>&6 -echo "configure:10782: checking if experimental address-list page should be used" >&5 +echo "configure:10784: checking if experimental address-list page should be used" >&5 # Check whether --enable-addrlist-page or --disable-addrlist-page was given. if test "${enable_addrlist_page+set}" = set; then @@ -10801,8 +10803,32 @@ test $use_addrlist_page != no && cat >> confdefs.h <<\EOF EOF +echo $ac_n "checking if experimental charset-selection logic should be used""... $ac_c" 1>&6 +echo "configure:10808: checking if experimental charset-selection logic should be used" >&5 + +# Check whether --enable-charset-choice or --disable-charset-choice was given. +if test "${enable_charset_choice+set}" = set; then + enableval="$enable_charset_choice" + test "$enableval" != yes && enableval=no + if test "$enableval" != "no" ; then + use_charset_choice=$enableval + else + use_charset_choice=no + fi +else + enableval=no + use_charset_choice=no + +fi + +echo "$ac_t""$use_charset_choice" 1>&6 +test $use_charset_choice != no && cat >> confdefs.h <<\EOF +#define EXP_CHARSET_CHOICE 1 +EOF + + echo $ac_n "checking if experimental CJK logic should be used""... $ac_c" 1>&6 -echo "configure:10806: checking if experimental CJK logic should be used" >&5 +echo "configure:10832: checking if experimental CJK logic should be used" >&5 # Check whether --enable-cjk or --disable-cjk was given. if test "${enable_cjk+set}" = set; then @@ -10826,7 +10852,7 @@ EOF echo $ac_n "checking if color-style code should be used""... $ac_c" 1>&6 -echo "configure:10830: checking if color-style code should be used" >&5 +echo "configure:10856: checking if color-style code should be used" >&5 # Check whether --enable-color-style or --disable-color-style was given. if test "${enable_color_style+set}" = set; then @@ -10874,7 +10900,7 @@ EOF echo "$ac_t""yes" 1>&6 echo $ac_n "checking for location of style-sheet file""... $ac_c" 1>&6 -echo "configure:10878: checking for location of style-sheet file" >&5 +echo "configure:10904: checking for location of style-sheet file" >&5 LYNX_LSS_FILE=$cf_libdir/lynx.lss cat >> confdefs.h <<EOF #define LYNX_LSS_FILE "$LYNX_LSS_FILE" @@ -10892,7 +10918,7 @@ test ".$ac_cv_func_use_default_colors" = ".yes" && use_dft_colors=maybe if test "$use_dft_colors" != no ; then echo $ac_n "checking if you want to use default-colors""... $ac_c" 1>&6 -echo "configure:10896: checking if you want to use default-colors" >&5 +echo "configure:10922: checking if you want to use default-colors" >&5 # Check whether --enable-default-colors or --disable-default-colors was given. if test "${enable_default_colors+set}" = set; then @@ -10917,7 +10943,7 @@ EOF fi echo $ac_n "checking if experimental file-upload logic should be used""... $ac_c" 1>&6 -echo "configure:10921: checking if experimental file-upload logic should be used" >&5 +echo "configure:10947: checking if experimental file-upload logic should be used" >&5 # Check whether --enable-file-upload or --disable-file-upload was given. if test "${enable_file_upload+set}" = set; then @@ -10941,7 +10967,7 @@ EOF echo $ac_n "checking if experimental element-justification logic should be used""... $ac_c" 1>&6 -echo "configure:10945: checking if experimental element-justification logic should be used" >&5 +echo "configure:10971: checking if experimental element-justification logic should be used" >&5 # Check whether --enable-justify-elts or --disable-justify-elts was given. if test "${enable_justify_elts+set}" = set; then @@ -10965,7 +10991,7 @@ EOF echo $ac_n "checking if experimental keyboard-layout logic should be used""... $ac_c" 1>&6 -echo "configure:10969: checking if experimental keyboard-layout logic should be used" >&5 +echo "configure:10995: checking if experimental keyboard-layout logic should be used" >&5 # Check whether --enable-kbd-layout or --disable-kbd-layout was given. if test "${enable_kbd_layout+set}" = set; then @@ -10989,7 +11015,7 @@ EOF echo $ac_n "checking if experimental JavaScript support should be used""... $ac_c" 1>&6 -echo "configure:10993: checking if experimental JavaScript support should be used" >&5 +echo "configure:11019: checking if experimental JavaScript support should be used" >&5 # Check whether --enable-libjs or --disable-libjs was given. if test "${enable_libjs+set}" = set; then @@ -11013,7 +11039,7 @@ EOF echo $ac_n "checking if html source should be colorized""... $ac_c" 1>&6 -echo "configure:11017: checking if html source should be colorized" >&5 +echo "configure:11043: checking if html source should be colorized" >&5 # Check whether --enable-prettysrc or --disable-prettysrc was given. if test "${enable_prettysrc+set}" = set; then @@ -11037,7 +11063,7 @@ EOF echo $ac_n "checking if read-progress message should show ETA""... $ac_c" 1>&6 -echo "configure:11041: checking if read-progress message should show ETA" >&5 +echo "configure:11067: checking if read-progress message should show ETA" >&5 # Check whether --enable-read-eta or --disable-read-eta was given. if test "${enable_read_eta+set}" = set; then @@ -11060,8 +11086,38 @@ test $use_read_eta != no && cat >> confdefs.h <<\EOF EOF +echo $ac_n "checking if scrollbar code should be used""... $ac_c" 1>&6 +echo "configure:11091: checking if scrollbar code should be used" >&5 + +# Check whether --enable-scrollbar or --disable-scrollbar was given. +if test "${enable_scrollbar+set}" = set; then + enableval="$enable_scrollbar" + test "$enableval" != yes && enableval=no + if test "$enableval" != "no" ; then + use_scrollbar=$enableval + else + use_scrollbar=no + fi +else + enableval=no + use_scrollbar=no + +fi + + +if test $use_scrollbar != no ; then + if test .$cf_cv_fancy_curses != .yes ; then + echo "configure: warning: Configuration does not support ACS_xxx definitions" 1>&2 + else + cat >> confdefs.h <<\EOF +#define USE_SCROLLBAR 1 +EOF + + fi +fi + echo $ac_n "checking if source caching should be used""... $ac_c" 1>&6 -echo "configure:11065: checking if source caching should be used" >&5 +echo "configure:11121: checking if source caching should be used" >&5 # Check whether --enable-source-cache or --disable-source-cache was given. if test "${enable_source_cache+set}" = set; then @@ -11088,7 +11144,7 @@ EOF echo $ac_n "checking if alternative line-edit bindings should be used""... $ac_c" 1>&6 -echo "configure:11092: checking if alternative line-edit bindings should be used" >&5 +echo "configure:11148: checking if alternative line-edit bindings should be used" >&5 # Check whether --enable-alt-bindings or --disable-alt-bindings was given. if test "${enable_alt_bindings+set}" = set; then @@ -11112,7 +11168,7 @@ EOF echo $ac_n "checking if you want to use extended HTML DTD logic""... $ac_c" 1>&6 -echo "configure:11116: checking if you want to use extended HTML DTD logic" >&5 +echo "configure:11172: checking if you want to use extended HTML DTD logic" >&5 # Check whether --enable-extended-dtd or --disable-extended-dtd was given. if test "${enable_extended_dtd+set}" = set; then @@ -11136,7 +11192,7 @@ EOF echo $ac_n "checking if partial-display should be used""... $ac_c" 1>&6 -echo "configure:11140: checking if partial-display should be used" >&5 +echo "configure:11196: checking if partial-display should be used" >&5 # Check whether --enable-partial or --disable-partial was given. if test "${enable_partial+set}" = set; then @@ -11160,7 +11216,7 @@ EOF echo $ac_n "checking if you want to use external commands""... $ac_c" 1>&6 -echo "configure:11164: checking if you want to use external commands" >&5 +echo "configure:11220: checking if you want to use external commands" >&5 # Check whether --enable-externs or --disable-externs was given. if test "${enable_externs+set}" = set; then @@ -11184,7 +11240,7 @@ EOF echo $ac_n "checking if you want to use setfont support""... $ac_c" 1>&6 -echo "configure:11188: checking if you want to use setfont support" >&5 +echo "configure:11244: checking if you want to use setfont support" >&5 # Check whether --enable-font-switch or --disable-font-switch was given. if test "${enable_font_switch+set}" = set; then @@ -11208,7 +11264,7 @@ EOF echo $ac_n "checking if you want cgi-link support""... $ac_c" 1>&6 -echo "configure:11212: checking if you want cgi-link support" >&5 +echo "configure:11268: checking if you want cgi-link support" >&5 # Check whether --enable-cgi-links or --disable-cgi-links was given. if test "${enable_cgi_links+set}" = set; then @@ -11227,64 +11283,79 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if you want change-exec support""... $ac_c" 1>&6 -echo "configure:11231: checking if you want change-exec support" >&5 +echo "configure:11287: checking if you want change-exec support" >&5 # Check whether --enable-change-exec or --disable-change-exec was given. if test "${enable_change_exec+set}" = set; then enableval="$enable_change_exec" test "$enableval" != yes && enableval=no if test "$enableval" != "no" ; then - cat >> confdefs.h <<\EOF -#define ENABLE_OPTS_CHANGE_EXEC 1 -EOF - + use_change_exec=yes + else + use_change_exec=no fi else - enableval=no + enableval=no + use_change_exec=no + fi -echo "$ac_t""$enableval" 1>&6 +echo "$ac_t""$use_change_exec" 1>&6 +test $use_change_exec = yes && cat >> confdefs.h <<\EOF +#define ENABLE_OPTS_CHANGE_EXEC 1 +EOF + echo $ac_n "checking if you want exec-links support""... $ac_c" 1>&6 -echo "configure:11250: checking if you want exec-links support" >&5 +echo "configure:11311: checking if you want exec-links support" >&5 # Check whether --enable-exec-links or --disable-exec-links was given. if test "${enable_exec_links+set}" = set; then enableval="$enable_exec_links" - test "$enableval" != yes && enableval=no - if test "$enableval" != "no" ; then - cat >> confdefs.h <<\EOF -#define EXEC_LINKS 1 -EOF - + test "$enableval" != no && enableval=yes + if test "$enableval" != "$use_change_exec" ; then + use_exec_links=$enableval + else + use_exec_links=$enableval fi else - enableval=no + enableval=$use_change_exec + use_exec_links=$enableval + fi -echo "$ac_t""$enableval" 1>&6 +echo "$ac_t""$use_exec_links" 1>&6 +test $use_exec_links = yes && cat >> confdefs.h <<\EOF +#define EXEC_LINKS 1 +EOF + echo $ac_n "checking if you want exec-scripts support""... $ac_c" 1>&6 -echo "configure:11269: checking if you want exec-scripts support" >&5 +echo "configure:11335: checking if you want exec-scripts support" >&5 # Check whether --enable-exec-scripts or --disable-exec-scripts was given. if test "${enable_exec_scripts+set}" = set; then enableval="$enable_exec_scripts" - test "$enableval" != yes && enableval=no - if test "$enableval" != "no" ; then - cat >> confdefs.h <<\EOF -#define EXEC_SCRIPTS 1 -EOF - + test "$enableval" != no && enableval=yes + if test "$enableval" != "$use_change_exec" ; then + use_exec_scripts=$enableval + else + use_exec_scripts=$enableval fi else - enableval=no + enableval=$use_change_exec + use_exec_scripts=$enableval + fi -echo "$ac_t""$enableval" 1>&6 +echo "$ac_t""$use_exec_scripts" 1>&6 +test $use_exec_scripts = yes && cat >> confdefs.h <<\EOF +#define EXEC_SCRIPTS 1 +EOF + echo $ac_n "checking if you want internal-links feature""... $ac_c" 1>&6 -echo "configure:11288: checking if you want internal-links feature" >&5 +echo "configure:11359: checking if you want internal-links feature" >&5 # Check whether --enable-internal-links or --disable-internal-links was given. if test "${enable_internal_links+set}" = set; then @@ -11308,7 +11379,7 @@ EOF echo $ac_n "checking if you want to fork NSL requests""... $ac_c" 1>&6 -echo "configure:11312: checking if you want to fork NSL requests" >&5 +echo "configure:11383: checking if you want to fork NSL requests" >&5 # Check whether --enable-nsl-fork or --disable-nsl-fork was given. if test "${enable_nsl_fork+set}" = set; then @@ -11332,7 +11403,7 @@ EOF echo $ac_n "checking if you want to log URL requests via syslog""... $ac_c" 1>&6 -echo "configure:11336: checking if you want to log URL requests via syslog" >&5 +echo "configure:11407: checking if you want to log URL requests via syslog" >&5 # Check whether --enable-syslog or --disable-syslog was given. if test "${enable_syslog+set}" = set; then @@ -11356,7 +11427,7 @@ EOF echo $ac_n "checking if persistent-cookie logic should be used""... $ac_c" 1>&6 -echo "configure:11360: checking if persistent-cookie logic should be used" >&5 +echo "configure:11431: checking if persistent-cookie logic should be used" >&5 # Check whether --enable-persistent-cookies or --disable-persistent-cookies was given. if test "${enable_persistent_cookies+set}" = set; then @@ -11380,7 +11451,7 @@ EOF echo $ac_n "checking if you want to underline links""... $ac_c" 1>&6 -echo "configure:11384: checking if you want to underline links" >&5 +echo "configure:11455: checking if you want to underline links" >&5 # Check whether --enable-underlines or --disable-underlines was given. if test "${enable_underlines+set}" = set; then @@ -11404,7 +11475,7 @@ EOF echo $ac_n "checking if help files should be gzip'ed""... $ac_c" 1>&6 -echo "configure:11408: checking if help files should be gzip'ed" >&5 +echo "configure:11479: checking if help files should be gzip'ed" >&5 # Check whether --enable-gzip-help or --disable-gzip-help was given. if test "${enable_gzip_help+set}" = set; then @@ -11433,7 +11504,7 @@ fi echo $ac_n "checking if you want to use zlib for decompression of some gzip files""... $ac_c" 1>&6 -echo "configure:11437: checking if you want to use zlib for decompression of some gzip files" >&5 +echo "configure:11508: checking if you want to use zlib for decompression of some gzip files" >&5 # Check whether --with-zlib or --without-zlib was given. if test "${with_zlib+set}" = set; then @@ -11450,12 +11521,12 @@ if test ".$use_zlib" != ".no" ; then cf_cv_have_lib_z=no cf_libdir="" echo $ac_n "checking for gzopen""... $ac_c" 1>&6 -echo "configure:11454: checking for gzopen" >&5 +echo "configure:11525: checking for gzopen" >&5 if eval "test \"`echo '$''{'ac_cv_func_gzopen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 11459 "configure" +#line 11530 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gzopen(); below. */ @@ -11478,7 +11549,7 @@ gzopen(); ; return 0; } EOF -if { (eval echo configure:11482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gzopen=yes" else @@ -11498,17 +11569,17 @@ else cf_save_LIBS="$LIBS" echo $ac_n "checking for gzopen in -lz""... $ac_c" 1>&6 -echo "configure:11502: checking for gzopen in -lz" >&5 +echo "configure:11573: checking for gzopen in -lz" >&5 LIBS="-lz $LIBS" cat > conftest.$ac_ext <<EOF -#line 11505 "configure" +#line 11576 "configure" #include "confdefs.h" #include <zlib.h> int main() { gzopen("name","mode") ; return 0; } EOF -if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_z=yes @@ -11536,17 +11607,17 @@ test "$prefix" != /opt && cf_search="$cf_search /opt/lib /opt/lib/z" for cf_libdir in $cf_search do echo $ac_n "checking for -lz in $cf_libdir""... $ac_c" 1>&6 -echo "configure:11540: checking for -lz in $cf_libdir" >&5 +echo "configure:11611: checking for -lz in $cf_libdir" >&5 LIBS="-L$cf_libdir -lz $cf_save_LIBS" cat > conftest.$ac_ext <<EOF -#line 11543 "configure" +#line 11614 "configure" #include "confdefs.h" #include <zlib.h> int main() { gzopen("name","mode") ; return 0; } EOF -if { (eval echo configure:11550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_z=yes @@ -11582,7 +11653,7 @@ EOF fi echo $ac_n "checking if you want to exclude FINGER code""... $ac_c" 1>&6 -echo "configure:11586: checking if you want to exclude FINGER code" >&5 +echo "configure:11657: checking if you want to exclude FINGER code" >&5 # Check whether --enable-finger or --disable-finger was given. if test "${enable_finger+set}" = set; then @@ -11606,7 +11677,7 @@ EOF echo $ac_n "checking if you want to exclude GOPHER code""... $ac_c" 1>&6 -echo "configure:11610: checking if you want to exclude GOPHER code" >&5 +echo "configure:11681: checking if you want to exclude GOPHER code" >&5 # Check whether --enable-gopher or --disable-gopher was given. if test "${enable_gopher+set}" = set; then @@ -11630,7 +11701,7 @@ EOF echo $ac_n "checking if you want to exclude NEWS code""... $ac_c" 1>&6 -echo "configure:11634: checking if you want to exclude NEWS code" >&5 +echo "configure:11705: checking if you want to exclude NEWS code" >&5 # Check whether --enable-news or --disable-news was given. if test "${enable_news+set}" = set; then @@ -11654,7 +11725,7 @@ EOF echo $ac_n "checking if you want to exclude FTP code""... $ac_c" 1>&6 -echo "configure:11658: checking if you want to exclude FTP code" >&5 +echo "configure:11729: checking if you want to exclude FTP code" >&5 # Check whether --enable-ftp or --disable-ftp was given. if test "${enable_ftp+set}" = set; then @@ -11683,7 +11754,7 @@ EOF # All DirEd functions that were enabled on compilation can be disabled # or modified at run time via DIRED_MENU symbols in lynx.cfg. echo $ac_n "checking if directory-editor code should be used""... $ac_c" 1>&6 -echo "configure:11687: checking if directory-editor code should be used" >&5 +echo "configure:11758: checking if directory-editor code should be used" >&5 # Check whether --enable-dired or --disable-dired was given. if test "${enable_dired+set}" = set; then @@ -11709,7 +11780,7 @@ EOF echo $ac_n "checking if you wish to allow extracting from archives via DirEd""... $ac_c" 1>&6 -echo "configure:11713: checking if you wish to allow extracting from archives via DirEd" >&5 +echo "configure:11784: checking if you wish to allow extracting from archives via DirEd" >&5 # Check whether --enable-dired-archive or --disable-dired-archive was given. if test "${enable_dired_archive+set}" = set; then @@ -11728,7 +11799,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if you wish to allow users to redefine DirEd keys""... $ac_c" 1>&6 -echo "configure:11732: checking if you wish to allow users to redefine DirEd keys" >&5 +echo "configure:11803: checking if you wish to allow users to redefine DirEd keys" >&5 # Check whether --enable-dired-override or --disable-dired-override was given. if test "${enable_dired_override+set}" = set; then @@ -11754,7 +11825,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if you wish to allow permissions commands via DirEd""... $ac_c" 1>&6 -echo "configure:11758: checking if you wish to allow permissions commands via DirEd" >&5 +echo "configure:11829: checking if you wish to allow permissions commands via DirEd" >&5 # Check whether --enable-dired-permit or --disable-dired-permit was given. if test "${enable_dired_permit+set}" = set; then @@ -11780,7 +11851,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if you wish to allow executable-permission commands via DirEd""... $ac_c" 1>&6 -echo "configure:11784: checking if you wish to allow executable-permission commands via DirEd" >&5 +echo "configure:11855: checking if you wish to allow executable-permission commands via DirEd" >&5 # Check whether --enable-dired-xpermit or --disable-dired-xpermit was given. if test "${enable_dired_xpermit+set}" = set; then @@ -11799,7 +11870,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if you wish to allow "tar" commands from DirEd""... $ac_c" 1>&6 -echo "configure:11803: checking if you wish to allow "tar" commands from DirEd" >&5 +echo "configure:11874: checking if you wish to allow "tar" commands from DirEd" >&5 # Check whether --enable-dired-tar or --disable-dired-tar was given. if test "${enable_dired_tar+set}" = set; then @@ -11825,7 +11896,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if you wish to allow "uudecode" commands from DirEd""... $ac_c" 1>&6 -echo "configure:11829: checking if you wish to allow "uudecode" commands from DirEd" >&5 +echo "configure:11900: checking if you wish to allow "uudecode" commands from DirEd" >&5 # Check whether --enable-dired-uudecode or --disable-dired-uudecode was given. if test "${enable_dired_uudecode+set}" = set; then @@ -11851,7 +11922,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if you wish to allow "zip" and "unzip" commands from DirEd""... $ac_c" 1>&6 -echo "configure:11855: checking if you wish to allow "zip" and "unzip" commands from DirEd" >&5 +echo "configure:11926: checking if you wish to allow "zip" and "unzip" commands from DirEd" >&5 # Check whether --enable-dired-zip or --disable-dired-zip was given. if test "${enable_dired_zip+set}" = set; then @@ -11877,7 +11948,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if you wish to allow "gzip" and "gunzip" commands from DirEd""... $ac_c" 1>&6 -echo "configure:11881: checking if you wish to allow "gzip" and "gunzip" commands from DirEd" >&5 +echo "configure:11952: checking if you wish to allow "gzip" and "gunzip" commands from DirEd" >&5 # Check whether --enable-dired-gzip or --disable-dired-gzip was given. if test "${enable_dired_gzip+set}" = set; then @@ -11904,7 +11975,7 @@ fi fi echo $ac_n "checking if you want long-directory listings""... $ac_c" 1>&6 -echo "configure:11908: checking if you want long-directory listings" >&5 +echo "configure:11979: checking if you want long-directory listings" >&5 # Check whether --enable-long-list or --disable-long-list was given. if test "${enable_long_list+set}" = set; then @@ -11930,7 +12001,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if parent-directory references are permitted""... $ac_c" 1>&6 -echo "configure:11934: checking if parent-directory references are permitted" >&5 +echo "configure:12005: checking if parent-directory references are permitted" >&5 # Check whether --enable-parent-dir-refs or --disable-parent-dir-refs was given. if test "${enable_parent_dir_refs+set}" = set; then @@ -11950,7 +12021,7 @@ echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if we can include termio.h with curses""... $ac_c" 1>&6 -echo "configure:11954: checking if we can include termio.h with curses" >&5 +echo "configure:12025: checking if we can include termio.h with curses" >&5 if eval "test \"`echo '$''{'cf_cv_termio_and_curses'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -11959,7 +12030,7 @@ else CFLAGS="$CFLAGS -DHAVE_CONFIG_H -I. -I${srcdir-.} -I${srcdir-.}/src -I${srcdir-.}/WWW/Library/Implementation" touch lynx_cfg.h cat > conftest.$ac_ext <<EOF -#line 11963 "configure" +#line 12034 "configure" #include "confdefs.h" #include <LYCurses.h> @@ -11968,7 +12039,7 @@ int main() { putchar(0x0a) ; return 0; } EOF -if { (eval echo configure:11972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_termio_and_curses=yes else diff --git a/configure.in b/configure.in index 842e0fad..b0e71632 100644 --- a/configure.in +++ b/configure.in @@ -574,6 +574,14 @@ CF_ARG_ENABLE(addrlist-page, AC_MSG_RESULT($use_addrlist_page) test $use_addrlist_page != no && AC_DEFINE(EXP_ADDRLIST_PAGE) +AC_MSG_CHECKING(if experimental charset-selection logic should be used) +CF_ARG_ENABLE(charset-choice, +[ --enable-charset-choice use experimental charset-selection logic], + [use_charset_choice=$enableval], + [use_charset_choice=no]) +AC_MSG_RESULT($use_charset_choice) +test $use_charset_choice != no && AC_DEFINE(EXP_CHARSET_CHOICE) + AC_MSG_CHECKING(if experimental CJK logic should be used) CF_ARG_ENABLE(cjk, [ --enable-cjk use experimental CJK logic], @@ -679,6 +687,20 @@ CF_ARG_ENABLE(read-eta, AC_MSG_RESULT($use_read_eta) test $use_read_eta != no && AC_DEFINE(EXP_READPROGRESS) +AC_MSG_CHECKING(if scrollbar code should be used) +CF_ARG_ENABLE(scrollbar, +[ --enable-scrollbar use experimental scrollbar, with mouse], + [use_scrollbar=$enableval], + [use_scrollbar=no]) + +if test $use_scrollbar != no ; then + if test .$cf_cv_fancy_curses != .yes ; then + AC_MSG_WARN(Configuration does not support ACS_xxx definitions) + else + AC_DEFINE(USE_SCROLLBAR) + fi +fi + AC_MSG_CHECKING(if source caching should be used) CF_ARG_ENABLE(source-cache, [ --enable-source-cache cache HTML source for parse mode changes], @@ -743,20 +765,28 @@ AC_MSG_RESULT($enableval) AC_MSG_CHECKING(if you want change-exec support) CF_ARG_ENABLE(change-exec, [ --enable-change-exec allow users to change exec options], - [AC_DEFINE(ENABLE_OPTS_CHANGE_EXEC)]) -AC_MSG_RESULT($enableval) + [use_change_exec=yes], + [use_change_exec=no]) +AC_MSG_RESULT($use_change_exec) +test $use_change_exec = yes && AC_DEFINE(ENABLE_OPTS_CHANGE_EXEC) AC_MSG_CHECKING(if you want exec-links support) -CF_ARG_ENABLE(exec-links, +CF_ARG_OPTION(exec-links, [ --enable-exec-links allow lynx to execute programs accessed via a link], - [AC_DEFINE(EXEC_LINKS)]) -AC_MSG_RESULT($enableval) + [use_exec_links=$enableval], + [use_exec_links=$enableval], + [$use_change_exec]) +AC_MSG_RESULT($use_exec_links) +test $use_exec_links = yes && AC_DEFINE(EXEC_LINKS) AC_MSG_CHECKING(if you want exec-scripts support) -CF_ARG_ENABLE(exec-scripts, +CF_ARG_OPTION(exec-scripts, [ --enable-exec-scripts allow lynx to execute programs inferred from a link], - [AC_DEFINE(EXEC_SCRIPTS)]) -AC_MSG_RESULT($enableval) + [use_exec_scripts=$enableval], + [use_exec_scripts=$enableval], + [$use_change_exec]) +AC_MSG_RESULT($use_exec_scripts) +test $use_exec_scripts = yes && AC_DEFINE(EXEC_SCRIPTS) AC_MSG_CHECKING(if you want internal-links feature) CF_ARG_ENABLE(internal-links, diff --git a/docs/README.defines b/docs/README.defines index 8f059ada..16130479 100644 --- a/docs/README.defines +++ b/docs/README.defines @@ -37,6 +37,16 @@ packet driver. I created four new defines to accomplish this. Added for 8+3 filesystems (DOS): FNAMES_8_3 also defined in userdefs.h if __DJGPP__ +* incorporate changes for win32 by Hiroyuki Senshu <senshu@shonai-cit.ac.jp> + (SH) from + ftp://crab.it.osha.sut.ac.jp/pub/Win32/develope/senshu/Lynx/ + Most changes are ifdef'd + #define _WIN_CC= .... for Windows C Compiler + #define CJK_EX .... CJK EXtension + #define SH_EX .... Senshu Hiroyuki EXtension + #define WIN_EX .... Windows EXtension + + B. Symbols to enable or disable specific features, mostly ========================================================= Note that some of these may be only usable on some system types, @@ -140,5 +150,4 @@ max_cookies_buffer LYCookie.c max_cookies_domain LYCookie.c max_cookies_global LYCookie.c reverse_mailcap HTInit.c -reverse_mailcap HTInit.c diff --git a/docs/win-386.announce b/docs/win-386.announce index 2f36fb23..dcc482b8 100644 --- a/docs/win-386.announce +++ b/docs/win-386.announce @@ -26,3 +26,15 @@ contacted the author of DJGPP for help with getting this port further. Wayne Buttles lynx-port@fdisk.com + + + +Win32 port was further extended by Hiroyuki Senshu <senshu@shonai-cit.ac.jp> +ftp://crab.it.osha.sut.ac.jp/pub/Win32/develope/senshu/Lynx/ + Most changes are ifdef'd + #define _WIN_CC= .... for Windows C Compiler + #define CJK_EX .... CJK EXtension + #define SH_EX .... Senshu Hiroyuki EXtension + #define WIN_EX .... Windows EXtension + +Lynx now builds with C++ Builder, Borland C++, Visual C++, and Cygwin. @@ -340,6 +340,44 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html # #ASSUME_CHARSET:iso-8859-1 +# It is possible to reduce the number of charset choices in the 'O'ptions menu +# for "display charset" and "assumed document charset" fields via +# DISPLAY_CHARSET_CHOICE and ASSUMED_DOC_CHARSET_CHOICE settings correspondingly. +# Each of these settings can be used several times to define the set of possible +# choices for corresponding field. The syntax for the values is +# +# string | prefix* | * +# +# where +# +# 'string' is either the MIME name of charset or it's full name (listed +# either in the left or in the right column of table of +# recognized charsets), case-insensitive - e.g. 'Koi8-R' or +# 'Cyrillic (KOI8-R)' (both without quotes), +# +# 'prefix' is any string, and such value will select all charsets having +# the name with prefix matching given (case insensitive), i.e., +# for the charsets listed in the table of recognized charsets, +# +# ASSUMED_DOC_CHARSET_CHOICE:cyrillic* +# will be equal to specifying +# ASSUMED_DOC_CHARSET_CHOICE:cp866 +# ASSUMED_DOC_CHARSET_CHOICE:windows-1251 +# ASSUMED_DOC_CHARSET_CHOICE:koi8-r +# ASSUMED_DOC_CHARSET_CHOICE:iso-8859-5 +# or lines with full names of charsets. +# +# literal string '*' (without quotes) will enable all charset choices +# in corresponding field. This is useful for overriding site +# defaults in private pieces of lynx.cfg included via INCLUDE +# directive. +# +# Default values for both settings are '*', but any occurrence of settings +# with values that denote any charsets will make only listed choices available +# for corresponding field. +#ASSUMED_DOC_CHARSET_CHOICE:* +#DISPLAY_CHARSET_CHOICE:* + # ASSUME_LOCAL_CHARSET is like ASSUME_CHARSET but only applies to local # files. If no setting is given here or by an -assume_local_charset # command line option, the value for ASSUME_CHARSET or -assume_charset @@ -511,15 +549,6 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html # #SHOW_CURSOR:FALSE -# VERBOSE_IMAGES controls whether or not Lynx replaces the [LINK], [INLINE] and -# [IMAGE] comments (for images without ALT) with filenames of these images. -# This can be useful in determining what images are decorations -# (button.gif, line.gif) and what images are important (if the page writer -# bothers to use useful names). -# -# If this option is set here, it will override the setting in userdefs.h. -#VERBOSE_IMAGES:TRUE - # If BOLD_HEADERS is set to TRUE the HT_BOLD default style will be acted # upon for <H1> through <H6> headers. The compilation default is FALSE # (only the indentation styles are acted upon, but see BOLD_H1, below). @@ -1327,33 +1356,39 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html # #NO_FILE_REFERER:FALSE +# VERBOSE_IMAGES controls whether Lynx replaces [LINK], [INLINE] and [IMAGE] +# (for images without ALT) with filenames of these images. +# This can be useful in determining what images are important +# and which are mere decorations, e.g. button.gif, line.gif, +# provided the author uses meaningful names. +# +# The definition here will override the setting in userdefs.h. +#VERBOSE_IMAGES:TRUE + # If MAKE_LINKS_FOR_ALL_IMAGES is TRUE, all images will be given links # which can be ACTIVATEd. For inlines, the ALT or pseudo-ALT ("[INLINE]") -# strings will be links for the resolved SRC rather than just text. For -# ISMAP or other graphic links, the ALT or pseudo-ALT ("[ISMAP]" or "[LINK]") -# strings will have '-' and a link labeled "[IMAGE]" for the resolved SRC -# appended. See also VERBOSE_IMAGES flag. -# -# The default defined here will override that in userdefs.h, and the user -# can use LYK_IMAGE_TOGGLE to toggle the feature on or off at run time. -# -# The default also can be toggled via an "-image_links" command line switch. +# strings will be links for the resolved SRC rather than just text. +# For ISMAP or other graphic links, ALT or pseudo-ALT ("[ISMAP]" or "[LINK]") +# will have '-' and a link labeled "[IMAGE]" for the resolved SRC appended. +# See also VERBOSE_IMAGES flag. # +# The definition here will override that in userdefs.h +# and can be toggled via an "-image_links" command-line switch. +# The user can also use the LYK_IMAGE_TOGGLE key (default `*') +# or the `Show Images' option in the (new) Options Form. #MAKE_LINKS_FOR_ALL_IMAGES:FALSE -# If MAKE_PSEUDO_ALTS_FOR_INLINES is FALSE, inline images which do not -# specify an ALT string will not have "[INLINE]" inserted as a pseudo-ALT, -# i.e., they'll be treated as having ALT="". If MAKE_LINKS_FOR_ALL_IMAGES -# is defined or toggled to TRUE, however, the pseudo-ALTs will be created -# for inlines, so that they can be used as links to the SRCs. +# If MAKE_PSEUDO_ALTS_FOR_INLINES is FALSE, inline images which don't specify +# an ALT string will not have "[INLINE]" inserted as a pseudo-ALT, +# i.e. they'll be treated as having ALT="". +# Otherwise (if TRUE), pseudo-ALTs will be created for inlines, +# so that they can be used as links to the SRCs. # See also VERBOSE_IMAGES flag. # -# The default defined here will override that in userdefs.h, and the user -# can use LYK_INLINE_TOGGLE to toggle the feature on or off at run time. -# -# The default also can be toggled via a "-pseudo_inlines" command line -# switch. -# +# The definition here will override that in userdefs.h +# and can be toggled via a "-pseudo_inlines" command-line switch. +# The user can also use the LYK_INLINE_TOGGLE key (default `[') +# or the `Show Images' option in the (new) Options Form. #MAKE_PSEUDO_ALTS_FOR_INLINES:TRUE # If SUBSTITUTE_UNDERSCORES is TRUE, the _underline_ format will be used @@ -2224,6 +2259,15 @@ MINIMAL_COMMENTS:TRUE #HTMLSRC_TAGNAME_XFORM:2 #HTMLSRC_ATTRNAME_XFORM:2 +# PSRCVIEW_NO_ANCHOR_NUMBERING - pretty source view setting +# If "keypad mode" in 'O'ptions screen is "Links are numbered" or +# "Links and form fields are numbered", and PSRCVIEW_NO_ANCHOR_NUMBERING is +# TRUE, then links won't be numbered in psrc view and will be numbered +# otherwise. Set this setting to TRUE if you prefer numbered links, but wish +# to get valid HTML source when printing or mailing when in psrc view. +# Default is FALSE. +#PSRCVIEW_NO_ANCHOR_NUMBERING:FALSE + # FORCE_EMPTY_HREFLESS_A - HTML parsing # This option mirrors command-line option with the same name. Default is # FALSE. If true, then any 'A' element without HREF will be closed @@ -306,6 +306,10 @@ -nostatus disable the retrieval status messages. + -number_fields + force numbering of links as well as form input + fields + -number_links force numbering of links. @@ -317,23 +321,23 @@ with partial-display logic -pauth=ID:PASSWD - set authorization ID and password for a protected - proxy server at startup. Be sure to protect any + set authorization ID and password for a protected + proxy server at startup. Be sure to protect any script files which use this switch. - -popup toggles handling of single-choice SELECT options + -popup toggles handling of single-choice SELECT options via popup windows or as lists of radio buttons. -post_data - send form data from stdin using POST method and + send form data from stdin using POST method and dump results. -preparsed - show HTML source preparsed and reformatted when + show HTML source preparsed and reformatted when used with -source or in source view. -prettysrc - show HTML source view with lexical elements and + show HTML source view with lexical elements and tags in color. -print enable print functions. (default) @@ -341,8 +345,8 @@ -pseudo_inlines toggles pseudo-ALTs for inlines with no ALT string. - -raw toggles default setting of 8-bit character - translations or CJK mode for the startup character + -raw toggles default setting of 8-bit character + translations or CJK mode for the startup character set. -realm restricts access to URLs in the starting realm. @@ -352,32 +356,32 @@ document affected). -restrictions=[option][,option][,option]... - allows a list of services to be disabled + allows a list of services to be disabled selectively. Dashes and underscores in option names can be intermixed. The following list is printed if no options are specified. all - restricts all options listed below. - bookmark - disallow changing the location of the + bookmark - disallow changing the location of the bookmark file. - bookmark_exec - disallow execution links via the + bookmark_exec - disallow execution links via the bookmark file. - change_exec_perms - disallow changing the eXecute - permission on files (but still allow it for + change_exec_perms - disallow changing the eXecute + permission on files (but still allow it for directories) when local file management is enabled. - default - same as command line option -anonymous. + default - same as command line option -anonymous. Disables default services for anonymous users. Set - to all restricted, except for: inside_telnet, - outside_telnet, inside_ftp, outside_ftp, + to all restricted, except for: inside_telnet, + outside_telnet, inside_ftp, outside_ftp, inside_rlogin, outside_rlogin, inside_news, outside_news, telnet_port, jump, mail, print, exec, - and goto. The settings for these, as well as - additional goto restrictions for specific URL - schemes that are also applied, are derived from + and goto. The settings for these, as well as + additional goto restrictions for specific URL + schemes that are also applied, are derived from definitions within userdefs.h. dired_support - disallow local file management. @@ -385,43 +389,43 @@ disk_save - disallow saving to disk in the download and print menus. - dotfiles - disallow access to, or creation of, + dotfiles - disallow access to, or creation of, hidden (dot) files. - download - disallow some downloaders in the - download menu (does not imply disk_save + download - disallow some downloaders in the + download menu (does not imply disk_save restriction). editor - disallow external editing. exec - disable execution scripts. - exec_frozen - disallow the user from changing the + exec_frozen - disallow the user from changing the local execution option. - externals - disallow some "EXTERNAL" configuration - lines if support for passing URLs to external - applications (with the EXTERN command) is compiled + externals - disallow some "EXTERNAL" configuration + lines if support for passing URLs to external + applications (with the EXTERN command) is compiled in. - file_url - disallow using G)oto, served links or + file_url - disallow using G)oto, served links or bookmarks for file: URLs. goto - disable the 'g' (goto) command. - inside_ftp - disallow ftps for people coming from + inside_ftp - disallow ftps for people coming from inside your domain (utmp required for selectivity). - inside_news - disallow USENET news posting for - people coming from inside your domain (utmp + inside_news - disallow USENET news posting for + people coming from inside your domain (utmp required for selectivity). - inside_rlogin - disallow rlogins for people coming - from inside your domain (utmp required for + inside_rlogin - disallow rlogins for people coming + from inside your domain (utmp required for selectivity). - inside_telnet - disallow telnets for people coming - from inside your domain (utmp required for + inside_telnet - disallow telnets for people coming + from inside your domain (utmp required for selectivity). jump - disable the 'j' (jump) command. @@ -432,45 +436,45 @@ news_post - disallow USENET News posting. - options_save - disallow saving options in .lynxrc. + options_save - disallow saving options in .lynxrc. - outside_ftp - disallow ftps for people coming from - outside your domain (utmp required for + outside_ftp - disallow ftps for people coming from + outside your domain (utmp required for selectivity). - outside_news - disallow USENET news reading and - posting for people coming from outside your domain - (utmp required for selectivity). This restriction - applies to "news", "nntp", "newspost", and - "newsreply" URLs, but not to "snews", "snewspost", + outside_news - disallow USENET news reading and + posting for people coming from outside your domain + (utmp required for selectivity). This restriction + applies to "news", "nntp", "newspost", and + "newsreply" URLs, but not to "snews", "snewspost", or "snewsreply" in case they are supported. outside_rlogin - disallow rlogins for people coming - from outside your domain (utmp required for + from outside your domain (utmp required for selectivity). outside_telnet - disallow telnets for people coming - from outside your domain (utmp required for + from outside your domain (utmp required for selectivity). print - disallow most print options. - shell - disallow shell escapes and lynxexec or + shell - disallow shell escapes and lynxexec or lynxprog G)oto's. - suspend - disallow Unix Control-Z suspends with + suspend - disallow Unix Control-Z suspends with escape to shell. - telnet_port - disallow specifying a port in telnet + telnet_port - disallow specifying a port in telnet G)oto's. - useragent - disallow modifications of the User- + useragent - disallow modifications of the User- Agent header. -resubmit_posts - toggles forced resubmissions (no-cache) of forms - with method POST when the documents they returned - are sought with the PREV_DOC command or from the + toggles forced resubmissions (no-cache) of forms + with method POST when the documents they returned + are sought with the PREV_DOC command or from the History List. -rlogin @@ -480,66 +484,66 @@ require .www_browsable files to browse directories. -short_url - show very long URLs in the status line with "___" + show very long URLs in the status line with "___" to represent the portion which cannot be displayed. - The begining and end of the URL are displayed, + The begining and end of the URL are displayed, rather than suppressing the end. -show_cursor - If enabled the cursor will not be hidden in the + If enabled the cursor will not be hidden in the right hand corner but will instead be positioned at - the start of the currently selected link. Show - cursor is the default for systems without + the start of the currently selected link. Show + cursor is the default for systems without FANCY_CURSES capabilities. The default configuration can be changed in userdefs.h or - lynx.cfg. The command line switch toggles the + lynx.cfg. The command line switch toggles the default. -soft_dquotes - toggles emulation of the old Netscape and Mosaic + toggles emulation of the old Netscape and Mosaic bug which treated '>' as a co-terminator for double-quotes and tags. -source - works the same as dump but outputs HTML source + works the same as dump but outputs HTML source instead of formatted text. -stack_dump disable SIGINT cleanup handler -startfile_ok - allow non-http startfile and homepage with + allow non-http startfile and homepage with -validate. -sticky_inputs - don't require activating inputs in order to edit + don't require activating inputs in order to edit them. -tagsoup - initialize parser, using Tag Soup DTD rather than + initialize parser, using Tag Soup DTD rather than SortaSGML. -telnet disable recognition of telnet commands. -term=TERM - tell Lynx what terminal type to assume it is - talking to. (This may be useful for remote - execution, when, for example, Lynx connects to a - remote TCP/IP port that starts a script that, in + tell Lynx what terminal type to assume it is + talking to. (This may be useful for remote + execution, when, for example, Lynx connects to a + remote TCP/IP port that starts a script that, in turn, starts another Lynx process.) - -tlog toggles between using a Lynx Trace Log and stderr + -tlog toggles between using a Lynx Trace Log and stderr for trace output from the session. - -trace turns on Lynx trace mode. Destination of trace + -trace turns on Lynx trace mode. Destination of trace output depends on -tlog. -traversal - traverse all http links derived from startfile. - When used with -crawl, each link that begins with - the same string as startfile is output to a file, + traverse all http links derived from startfile. + When used with -crawl, each link that begins with + the same string as startfile is output to a file, intended for indexing. See CRAWL.announce for more information. @@ -547,27 +551,27 @@ toggles use of _underline_ format in dumps. -use_mouse - turn on mouse support, if available. Clicking the + turn on mouse support, if available. Clicking the left mouse button on a link traverses it. Clicking the right mouse button pops back. Click on the top - line to scroll up. Click on the bottom line to - scroll down. The first few positions in the top - and bottom line may invoke additional functions. - Lynx must be compiled with ncurses or slang to + line to scroll up. Click on the bottom line to + scroll down. The first few positions in the top + and bottom line may invoke additional functions. + Lynx must be compiled with ncurses or slang to support this feature. If ncurses is used, clicking - the middle mouse button pops up a simple menu. - Mouse clicks may only work reliably while Lynx is + the middle mouse button pops up a simple menu. + Mouse clicks may only work reliably while Lynx is idle waiting for input. -useragent=Name set alternate Lynx User-Agent header. -validate - accept only http URLs (for validation). Complete + accept only http URLs (for validation). Complete security restrictions also are implemented. -verbose - toggle [LINK], [IMAGE] and [INLINE] comments with + toggle [LINK], [IMAGE] and [INLINE] comments with filenames of these images. -version @@ -577,218 +581,219 @@ enable vi-like key movement. -wdebug - enable Waterloo tcp/ip packet debug (print to watt - debugfile). This applies only to DOS versions + enable Waterloo tcp/ip packet debug (print to watt + debugfile). This applies only to DOS versions compiled with WATTCP or WATT-32. -width=NUMBER - number of columns for formatting of dumps, default + number of columns for formatting of dumps, default is 80. -with_backspaces - emit backspaces in output if -dumping or -crawling + emit backspaces in output if -dumping or -crawling (like 'man' does) 2 COMMANDS - o Use Up arrow and Down arrow to scroll through hypertext + o Use Up arrow and Down arrow to scroll through hypertext links. - o Right arrow or Return will follow a highlighted + o Right arrow or Return will follow a highlighted hypertext link. o Left Arrow will retreat from a link. o Type "H" or "?" for online help and descriptions of key- stroke commands. - o Type "K" for a complete list of the current key-stroke + o Type "K" for a complete list of the current key-stroke command mappings. 2 ENVIRONMENT - In addition to various "standard" environment variables - such as HOME, PATH, USER, DISPLAY, TMPDIR, etc, Lynx - utilizes several Lynx-specific environment variables, if + In addition to various "standard" environment variables + such as HOME, PATH, USER, DISPLAY, TMPDIR, etc, Lynx + utilizes several Lynx-specific environment variables, if they exist. - Others may be created or modified by Lynx to pass data to - an external program, or for other reasons. These are + Others may be created or modified by Lynx to pass data to + an external program, or for other reasons. These are listed separately below. - See also the sections on SIMULATED CGI SUPPORT and NATIVE + See also the sections on SIMULATED CGI SUPPORT and NATIVE LANGUAGE SUPPORT, below. Note: Not all environment variables apply to all types of - platforms supported by Lynx, though most do. Feedback on + platforms supported by Lynx, though most do. Feedback on platform dependencies is solicited. Environment Variables Used By Lynx: - COLORTERM If set, color capability for the + COLORTERM If set, color capability for the terminal is forced on at startup time. - The actual value assigned to the + The actual value assigned to the variable is ignored. This variable is only meaningful if Lynx was built - using the slang screen-handling + using the slang screen-handling library. - LYNX_CFG This variable, if set, will override - the default location and name of the - global configuration file (normally, + LYNX_CFG This variable, if set, will override + the default location and name of the + global configuration file (normally, lynx.cfg) that was defined by the LYNX_CFG_FILE constant in the - userdefs.h file, during installation. - See the userdefs.h file for more + userdefs.h file, during installation. + See the userdefs.h file for more information. - LYNX_LSS This variable, if set, specifies the + LYNX_LSS This variable, if set, specifies the location of the default Lynx character style sheet file. [Currently only - meaningful if Lynx was built using + meaningful if Lynx was built using experimental color style support.] - LYNX_SAVE_SPACE This variable, if set, will override + LYNX_SAVE_SPACE This variable, if set, will override the default path prefix for files - saved to disk that is defined in the - lynx.cfg SAVE_SPACE: statement. See + saved to disk that is defined in the + lynx.cfg SAVE_SPACE: statement. See + the lynx.cfg file for more information. - LYNX_TEMP_SPACE This variable, if set, will override - the default path prefix for temporary - files that was defined during - installation, as well as any value - that may be assigned to the TMPDIR + LYNX_TEMP_SPACE This variable, if set, will override + the default path prefix for temporary + files that was defined during + installation, as well as any value + that may be assigned to the TMPDIR variable. - MAIL This variable specifies the default + MAIL This variable specifies the default inbox Lynx will check for new mail, if - such checking is enabled in the + such checking is enabled in the lynx.cfg file. - NEWS_ORGANIZATION This variable, if set, provides the - string used in the Organization: - header of USENET news postings. It - will override the setting of the - ORGANIZATION environment variable, if - it is also set (and, on UNIX, the + NEWS_ORGANIZATION This variable, if set, provides the + string used in the Organization: + header of USENET news postings. It + will override the setting of the + ORGANIZATION environment variable, if + it is also set (and, on UNIX, the contents of an /etc/organization file, if present). - NNTPSERVER If set, this variable specifies the - default NNTP server that will be used - for USENET news reading and posting + NNTPSERVER If set, this variable specifies the + default NNTP server that will be used + for USENET news reading and posting with Lynx, via news: URL's. - ORGANIZATION This variable, if set, provides the - string used in the Organization: - header of USENET news postings. On + ORGANIZATION This variable, if set, provides the + string used in the Organization: + header of USENET news postings. On UNIX, it will override the contents of an /etc/organization file, if present. PROTOCOL_proxy Lynx supports the use of proxy servers - that can act as firewall gateways and - caching servers. They are preferable + that can act as firewall gateways and + caching servers. They are preferable to the older gateway servers (see - WWW_access_GATEWAY, below). Each - protocol used by Lynx, (http, ftp, + WWW_access_GATEWAY, below). Each + protocol used by Lynx, (http, ftp, gopher, etc), can be mapped separately - by setting environment variables of + by setting environment variables of the form PROTOCOL_proxy (literally: http_proxy, ftp_proxy, gopher_proxy, etc), to "http://some.server.dom:port/". See - Lynx Users Guide for additional + Lynx Users Guide for additional details and examples. - WWW_access_GATEWAY Lynx still supports use of gateway - servers, with the servers specified + WWW_access_GATEWAY Lynx still supports use of gateway + servers, with the servers specified via "WWW_access_GATEWAY" variables - (where "access" is lower case and can + (where "access" is lower case and can be "http", "ftp", "gopher" or "wais"), however most gateway servers have been - discontinued. Note that you do not - include a terminal '/' for gateways, - but do for proxies specified by - PROTOCOL_proxy environment variables. + discontinued. Note that you do not + include a terminal '/' for gateways, + but do for proxies specified by + PROTOCOL_proxy environment variables. See Lynx Users Guide for details. - WWW_HOME This variable, if set, will override - the default startup URL specified in + WWW_HOME This variable, if set, will override + the default startup URL specified in any of the Lynx configuration files. Environment Variables Set or Modified By Lynx: LYNX_PRINT_DATE This variable is set by the Lynx - p(rint) function, to the Date: string - seen in the document's "Information - about" page (= cmd), if any. It is - created for use by an external + p(rint) function, to the Date: string + seen in the document's "Information + about" page (= cmd), if any. It is + created for use by an external program, as defined in a lynx.cfg PRINTER: definition statement. If the field does not exist for the document, - the variable is set to a null string + the variable is set to a null string under UNIX, or "No Date" under VMS. LYNX_PRINT_LASTMOD This variable is set by the Lynx - p(rint) function, to the Last Mod: - string seen in the document's - "Information about" page (= cmd), if - any. It is created for use by an + p(rint) function, to the Last Mod: + string seen in the document's + "Information about" page (= cmd), if + any. It is created for use by an external program, as defined in a lynx.cfg PRINTER: definition statement. If the field does not - exist for the document, the variable + exist for the document, the variable is set to a null string under UNIX, or "No LastMod" under VMS. LYNX_PRINT_TITLE This variable is set by the Lynx p(rint) function, to the Linkname: - string seen in the document's - "Information about" page (= cmd), if - any. It is created for use by an + string seen in the document's + "Information about" page (= cmd), if + any. It is created for use by an external program, as defined in a lynx.cfg PRINTER: definition statement. If the field does not - exist for the document, the variable + exist for the document, the variable is set to a null string under UNIX, or "No Title" under VMS. LYNX_PRINT_URL This variable is set by the Lynx - p(rint) function, to the URL: string - seen in the document's "Information - about" page (= cmd), if any. It is - created for use by an external + p(rint) function, to the URL: string + seen in the document's "Information + about" page (= cmd), if any. It is + created for use by an external + program, as defined in a lynx.cfg PRINTER: definition statement. If the field does not exist for the document, - - the variable is set to a null string + the variable is set to a null string under UNIX, or "No URL" under VMS. - LYNX_VERSION This variable is always set by Lynx, + LYNX_VERSION This variable is always set by Lynx, and may be used by an external program - to determine if it was invoked by - Lynx. See also the comments in the + to determine if it was invoked by + Lynx. See also the comments in the distribution's sample mailcap file, for notes on usage in such a file. - TERM Normally, this variable is used by - Lynx to determine the terminal type - being used to invoke Lynx. If, - however, it is unset at startup time - (or has the value "unknown"), or if - the -term command-line option is used + TERM Normally, this variable is used by + Lynx to determine the terminal type + being used to invoke Lynx. If, + however, it is unset at startup time + (or has the value "unknown"), or if + the -term command-line option is used (see OPTIONS section above), Lynx will - set or modify its value to the user - specified terminal type (for the Lynx - execution environment). Note: If - set/modified by Lynx, the values of - the LINES and/or COLUMNS environment + set or modify its value to the user + specified terminal type (for the Lynx + execution environment). Note: If + set/modified by Lynx, the values of + the LINES and/or COLUMNS environment variables may also be changed. 2 SIMULATED CGI SUPPORT - If built with the cgi-links option enabled, Lynx allows - access to a cgi script directly without the need for an + If built with the cgi-links option enabled, Lynx allows + access to a cgi script directly without the need for an http daemon. - When executing such "lynxcgi scripts" (if enabled), the - following variables may be set for simulating a CGI + When executing such "lynxcgi scripts" (if enabled), the + following variables may be set for simulating a CGI environment: CONTENT_LENGTH @@ -817,114 +822,114 @@ SERVER_SOFTWARE - Other environment variables are not inherited by the + Other environment variables are not inherited by the script, unless they are provided via a LYNXCGI_ENVIRONMENT - statement in the configuration file. See the lynx.cfg - file, and the (draft) CGI 1.1 Specification + statement in the configuration file. See the lynx.cfg + file, and the (draft) CGI 1.1 Specification <http://Web.Golux.Com/coar/cgi/draft-coar-cgi-v11-00.txt> for the definition and usage of these variables. The CGI Specification, and other associated documentation, - should be consulted for general information on CGI script + should be consulted for general information on CGI script programming. 2 NATIVE LANGUAGE SUPPORT - If configured and installed with Native Language Support, - Lynx will display status and other messages in your local - language. See the file ABOUT_NLS in the source - distribution, or at your local GNU site, for more + If configured and installed with Native Language Support, + Lynx will display status and other messages in your local + language. See the file ABOUT_NLS in the source + distribution, or at your local GNU site, for more information about internationalization. - The following environment variables may be used to alter + The following environment variables may be used to alter default settings: - LANG This variable, if set, will override - the default message language. It is + LANG This variable, if set, will override + the default message language. It is an ISO 639 two-letter code identifying - the language. Language codes are NOT + the language. Language codes are NOT the same as the country codes given in ISO 3166. - LANGUAGE This variable, if set, will override + LANGUAGE This variable, if set, will override the default message language. This is - a GNU extension that has higher - priority for setting the message + a GNU extension that has higher + priority for setting the message catalog than LANG or LC_ALL. LC_ALL and - LC_MESSAGES These variables, if set, specify the - notion of native language formatting + LC_MESSAGES These variables, if set, specify the + notion of native language formatting style. They are POSIXly correct. - LINGUAS This variable, if set prior to + LINGUAS This variable, if set prior to configuration, limits the installed languages to specific values. It is a - space-separated list of two-letter + space-separated list of two-letter codes. Currently, it is hard-coded to a wish list. - NLSPATH This variable, if set, is used as the + NLSPATH This variable, if set, is used as the path prefix for message catalogs. 2 NOTES This is the Lynx v2.8.2 Release - If you wish to contribute to the further development of - Lynx, subscribe to our mailing list. Send email to - <majordomo@sig.net> with "subscribe lynx-dev" as the only + If you wish to contribute to the further development of + Lynx, subscribe to our mailing list. Send email to + <majordomo@sig.net> with "subscribe lynx-dev" as the only line in the body of your message. - Send bug reports, comments, suggestions to <lynx- + Send bug reports, comments, suggestions to <lynx- dev@sig.net> after subscribing. - Unsubscribe by sending email to <majordomo@sig.net> with - "unsubscribe lynx-dev" as the only line in the body of - your message. Do not send the unsubscribe message to the + Unsubscribe by sending email to <majordomo@sig.net> with + "unsubscribe lynx-dev" as the only line in the body of + your message. Do not send the unsubscribe message to the lynx-dev list, itself. 2 SEE ALSO - catgets(3), curses(3), environ(7), execve(2), ftp(1), - gettext(GNU), localeconv(3), ncurses(3), setlocale(3), + catgets(3), curses(3), environ(7), execve(2), ftp(1), + gettext(GNU), localeconv(3), ncurses(3), setlocale(3), slang(?), termcap(5), terminfo(5), wget(GNU) - Note that man page availability and section numbering is - somewhat platform dependent, and may vary from the above + Note that man page availability and section numbering is + somewhat platform dependent, and may vary from the above references. - A section shown as (GNU), is intended to denote that the - topic may be available via an info page, instead of a man - page (ie, try "info subject", rather than "man subject"). + A section shown as (GNU), is intended to denote that the + topic may be available via an info page, instead of a man + page (ie, try "info subject", rather than "man subject"). - A section shown as (?) denotes that documentation on the + A section shown as (?) denotes that documentation on the topic exists, but is not part of an established documentation - retrieval system (see the distribution files associated - with the topic, or contact your System Administrator + retrieval system (see the distribution files associated + with the topic, or contact your System Administrator for further information). 2 ACKNOWLEDGMENTS Lynx has incorporated code from a variety of sources along the way. The earliest versions of Lynx included code from - Earl Fogel of Computing Services at the University of - Saskatchewan, who implemented HYPERREZ in the Unix envi- - ronment. HYPERREZ was developed by Niel Larson of - Think.com and served as the model for the early versions - of Lynx. Those versions also incorporated libraries from - the Unix Gopher clients developed at the University of - Minnesota, and the later versions of Lynx rely on the WWW - client library code developed by Tim Berners-Lee and the - WWW community. Also a special thanks to Foteos Macrides - who ported much of Lynx to VMS and did or organized most - of its development since the departures of Lou Montulli - and Garrett Blythe from the University of Kansas in the - summer of 1994 through the release of v2.7.2, and to ev- - eryone on the net who has contributed to Lynx's develop- + Earl Fogel of Computing Services at the University of + Saskatchewan, who implemented HYPERREZ in the Unix envi- + ronment. HYPERREZ was developed by Niel Larson of + Think.com and served as the model for the early versions + of Lynx. Those versions also incorporated libraries from + the Unix Gopher clients developed at the University of + Minnesota, and the later versions of Lynx rely on the WWW + client library code developed by Tim Berners-Lee and the + WWW community. Also a special thanks to Foteos Macrides + who ported much of Lynx to VMS and did or organized most + of its development since the departures of Lou Montulli + and Garrett Blythe from the University of Kansas in the + summer of 1994 through the release of v2.7.2, and to ev- + eryone on the net who has contributed to Lynx's develop- ment either directly (through patches, comments or bug re- - ports) or indirectly (through inspiration and development + ports) or indirectly (through inspiration and development of other systems). 2 AUTHORS - Lou Montulli, Garrett Blythe, Craig Lavender, Michael + Lou Montulli, Garrett Blythe, Craig Lavender, Michael Grobe, Charles Rezac Academic Computing Services University of Kansas @@ -323,6 +323,9 @@ disable SOCKS proxy usage by a SOCKSified Lynx. .B -nostatus disable the retrieval status messages. .TP +.B -number_fields +force numbering of links as well as form input fields +.TP .B -number_links force numbering of links. .TP diff --git a/lynx_help/Lynx_users_guide.html b/lynx_help/Lynx_users_guide.html index c7c3c610..94f264c2 100644 --- a/lynx_help/Lynx_users_guide.html +++ b/lynx_help/Lynx_users_guide.html @@ -49,6 +49,7 @@ within a single LAN. <li><A HREF="#DirEd" NAME="ToC-DirEd">Directory Editing</A> <li><A HREF="#MiscKeys" NAME="ToC-MiscKeys">Scrolling and Other useful commands</A> <li><a href="#Forms" NAME="ToC-Forms">Lynx and HTML Forms</a> +| <a href="#Images" NAME="ToC-Images">Lynx and HTML Images</a> <li><a href="#Tables" NAME="ToC-Tables">Lynx and HTML Tables</a> | <a href="#Tabs" NAME="ToC-Tabs">Lynx and HTML Tabs</a> <li><a href="#Frames" NAME="ToC-Frames">Lynx and HTML Frames</a> @@ -1568,6 +1569,38 @@ any document: <tab to="cdis">CONTENT="file; filename=name.suffix"></em><BR> [<A HREF="#ToC-Forms">ToC</A>] +<h2 ID="Images"><A NAME="Images"><em>Lynx and HTML Images</em></a></h2> + +As a text browser, Lynx does not display images as such +-- you need to define a viewer in <em>lynx.cfg</em>: see there -- , +but users can choose a number of ways of showing their presence. +<p> +There are 3 choices in <em>lynx.cfg</em>, with 2 corresponding keys: +<p><pre> + MAKE_LINKS_FOR_ALL_IMAGES * IMAGE_TOGGLE + MAKE_PSEUDO_ALTS_FOR_INLINES [ INLINE_TOGGLE + VERBOSE_IMAGES no corresponding key +</pre><p> +You can also use the Options Menu, as outlined below: +<p><pre> + key lynx.cfg FM LM .lynxrc variable in source + + * MAKE_LINKS_ Y N N clickable_images + [ MAKE_PSEUDO_ Y N N pseudo_inline_alts + VERBOSE_ Y Y Y verbose_img + +FM = new Form Menu ; LM = old List Menu ; +in .lynxrc , VERBOSE_IMAGES is called `verbose_images': +the other two cannot be saved between sessions. +</pre><p> +In the Forms Menu, the 3-way `Show images' selection +combines the effects of the `*' & `[' keys, as follows: +<p><pre> + Ignore clickable_images = FALSE, pseudo_inline_alts = FALSE + As labels clickable_images = FALSE, pseudo_inline_alts = TRUE + As links clickable_images = TRUE, pseudo_inline_alts = unchanged +</pre> + <h2 ID="Tables"><A NAME="Tables"><em>Lynx and HTML Tables</em></a></h2> HTML includes markup for creating <em>tables</em> structured as arrays of diff --git a/lynx_help/keystrokes/option_help.html b/lynx_help/keystrokes/option_help.html index 17205d77..947dcfcc 100644 --- a/lynx_help/keystrokes/option_help.html +++ b/lynx_help/keystrokes/option_help.html @@ -55,16 +55,16 @@ compiled in or chosen in `lynx.cfg':<P> <H1><A NAME="CK">Cookies</A></H1> This can be set to accept or reject all cookies or to ask each time. -See the Users Guide for details of <A HREF="../Lynx_users_guide.html#Cookies" ->cookie usage</A>. +See the Users Guide for details of <A HREF="../Lynx_users_guide.html#Cookies" +>cookie usage</A>. <H1><A NAME="ED">Editor</A></H1> -This is the editor to be invoked when editing browsable files, -sending mail or comments, or filling form's textarea (multiline input field). -The full pathname of the editor command should be specified when possible. -It is assumed the text editor supports the same character set -you have for "display character set" in Lynx. +This is the editor to be invoked when editing browsable files, +sending mail or comments, or filling form's textarea (multiline input field). +The full pathname of the editor command should be specified when possible. +It is assumed the text editor supports the same character set +you have for "display character set" in Lynx. <H1><A NAME="EM">Emacs keys</A></H1> @@ -251,21 +251,25 @@ from lynx.cfg or command line switch. <H1><A NAME="SI">Show Images</A></H1> -Text-based browser cannot show images directly, so we have a choice: -<em>ignore all</em> images without ALT= text string -(this is also switched by <A HREF="../Lynx_users_guide.html#[-key">'[' key</A>), -<em>show labels</em> (see also "verbose images" for choice between [IMAGE] and filename), -<em>use links</em> for every image to make it possible to download them -(also switched by <A HREF="../Lynx_users_guide.html#*-key">'*' key</A>). -Changing these settings will not be saved but could be made permanent -by changing the respective settings in lynx.cfg. +This option combines the effects of the `*' & `[' keys as follows: +<p><pre> + <em>ignore</em> all images which lack an ALT= text string, + <em>show labels</em>, e.g. [INLINE] -- see `Verbose Images' below -- , + <em>use links</em> for every image, enabling downloading. +</pre><p> +This option setting cannot be saved between sessions. +See <A HREF="../Lynx_users_guide.html#Images">Users Guide</A> +& <em>lynx.cfg</em> for more details. <H1><A NAME="VB">Verbose Images</A></H1> -Controls whether or not Lynx replaces the [LINK], [INLINE] and [IMAGE] comments -(for images without ALT) with filenames of these images. This is extremely -useful because now we can determine immediately which images are decorations -(button.gif, line.gif) and which are important. +This allows you to replace [LINK], [INLINE] and [IMAGE] +-- for images without ALT -- with filenames: +this can be helpful by revealing which images are important +& which are merely decoration, e.g. <em>button.gif</em>, <em>line.gif</em>. +See <A HREF="../Lynx_users_guide.html#Images">Users Guide</A> +& <em>lynx.cfg</em> for more details. + <H1><A NAME="VI">VI keys</A></H1> @@ -290,9 +294,9 @@ and windows-xxxx within native MS-Windows applications. <H1><A NAME="DV">X DISPLAY variable</A></H1> -This option is only relevant to X Window users. It specifies -the DISPLAY (Unix) or DECW$DISPLAY (VMS) variable. It is picked up -automatically from the environment if it has been previously set. +This option is only relevant to X Window users. It specifies +the DISPLAY (Unix) or DECW$DISPLAY (VMS) variable. It is picked up +automatically from the environment if it has been previously set. <H1><A NAME="MB">Multi-bookmarks</A></H1> diff --git a/makefile.in b/makefile.in index 28116f50..cf393768 100644 --- a/makefile.in +++ b/makefile.in @@ -301,7 +301,7 @@ lynx.patch: $(top_srcdir) $(top_srcdir)/CHANGES | grep -v '^Binary files ' \ | grep -v '^Only ' | tee $@ | grep '^--- $(lynxdir)' -install: lynx$x install-bin install-man install-cfg @INSTALL_LSS@ +install: install-bin install-man install-cfg @INSTALL_LSS@ @echo @echo "Use $(MAKE) install-help to install the help-files" @echo "Use $(MAKE) install-doc to install extra documentation files" @@ -310,7 +310,7 @@ install: lynx$x install-bin install-man install-cfg @INSTALL_LSS@ install-full: install install-help install-doc @echo Full installation complete. -install-bin: $(BINDIR) +install-bin: $(BINDIR) lynx$x @MSG_DIR_MAKE@ cd po && $(MAKE) CC="$(CC)" install -mv -f $(BINDIR)/lynx$x $(BINDIR)/lynx.old $(INSTALL_PROGRAM) lynx$x $(BINDIR)/lynx$x diff --git a/src/GridText.c b/src/GridText.c index 1d4092a1..456b850c 100644 --- a/src/GridText.c +++ b/src/GridText.c @@ -647,7 +647,13 @@ PUBLIC HText * HText_new ARGS1( else self->source = NO; #else - self->source=( LYpsrc ? psrc_view : HTOutputFormat == WWW_SOURCE); + /* mark_htext_as_source == TRUE if we are parsing html file (and psrc_view is + * set temporary to false at creation time) + * psrc_view == TRUE if source of the text produced by some lynx module + * (like ftp browsers) is requested). - VH + */ + self->source = (BOOL) (LYpsrc ? mark_htext_as_source || psrc_view : HTOutputFormat == WWW_SOURCE); + mark_htext_as_source = FALSE; #endif HTAnchor_setDocument(anchor, (HyperDoc *)self); HTFormNumber = 0; /* no forms started yet */ @@ -1202,7 +1208,7 @@ PRIVATE void display_title ARGS1( } move(0, 0); clrtoeol(); -#ifdef CJK_EX +#if defined(CJK_EX) && defined(SH_EX) addstr(str_kcode(last_kcode)); #endif if (text->top_of_screen > 0 && HText_hasToolbar(text)) { @@ -2249,6 +2255,11 @@ PRIVATE void split_line ARGS2( #else (previous->data[previous->size-1] == ' ') && #endif +#ifdef USE_PSRC + !psrc_view && /*don't strip trailing whites - since next line can + start with LY_SOFT_NEWLINE - so we don't lose spaces when + 'p'rinting this text to file -VH */ +#endif (ctrl_chars_on_this_line || HeadTrim || text->first_anchor || underline_on || bold_on || text->style->alignment != HT_LEFT || @@ -2856,10 +2867,9 @@ PRIVATE void split_line ARGS2( * be text->Lines-3 */ a2->extent += spare; - else { + else if (onp2sz < a2->extent) a2->extent += justified_text_map[onp1sz-1] - onp1sz + 1; - } } } @@ -2877,6 +2887,12 @@ PRIVATE void split_line ARGS2( } else { /* (ht_num_runs==1) */ /* keep maintaining 'last_anchor_of_previous_line' */ TextAnchor* a2 = last_anchor_of_previous_line; + if (justify_start_position) { + char* p = previous->data; + for( ; p < previous->data + justify_start_position; ++p) + *p = (*p == HT_NON_BREAK_SPACE ? ' ' : *p); + } + if (!a2) a2 = text->first_anchor; else if (a2 == text->last_anchor) @@ -2920,20 +2936,6 @@ PRIVATE void split_line ARGS2( /* else HT_NON_BREAK_SPACEs were substituted with spaces in HText_appendCharacter */ - { - /* keep maintaining 'last_anchor_of_previous_line' */ - TextAnchor* a2 = last_anchor_of_previous_line; - if (!a2) - a2 = text->first_anchor; - else if (a2 == text->last_anchor) - a2 = NULL; - else - a2 = a2->next; /*1st anchor on line we justify */ - - if (a2) - for (; a2 && a2->line_num <= text->Lines-1; - last_anchor_of_previous_line = a2, a2 = a2->next); - } } /* cleanup */ can_justify_this_line = TRUE; @@ -3501,7 +3503,7 @@ PUBLIC void HText_appendCharacter ARGS2( * If we're displaying document source, wrap long lines to keep all of * the source visible. */ - int target = (int)(line->offset + line->size); + int target = (int)(line->offset + line->size) - ctrl_chars_on_this_line; if ((target >= (LYcols-1) - style->rightIndent) && HTisDocumentSource()) { new_line(text); @@ -3592,7 +3594,7 @@ check_IgnoreExcess: ch = ' '; #ifdef EXP_JUSTIFY_ELTS else - have_raw_nbsps = TRUE; + have_raw_nbsps = TRUE; #endif /* we leave raw HT_NON_BREAK_SPACE otherwise (we'll substitute it later) */ @@ -3710,13 +3712,14 @@ check_IgnoreExcess: } #endif else if (HTCJK != NOCJK) { - line->data[line->size++] = (kanji_code != NOKANJI) ? + line->data[line->size++] = (char) ( + (kanji_code != NOKANJI) ? ch : (font & HT_CAPITALS) ? - TOUPPER(ch) : ch; + TOUPPER(ch) : ch); } else { line->data[line->size++] = /* Put character into line */ - font & HT_CAPITALS ? TOUPPER(ch) : ch; + (char) (font & HT_CAPITALS ? TOUPPER(ch) : ch); } line->data[line->size] = '\0'; if (font & HT_DOUBLE) /* Do again if doubled */ @@ -3850,6 +3853,9 @@ PUBLIC int HText_beginAnchor ARGS3( * If we are doing link_numbering add the link number. */ if ((a->number > 0) && +#ifdef USE_PSRC + (text->source ? !psrcview_no_anchor_numbering : 1 ) && +#endif (keypad_mode == LINKS_ARE_NUMBERED || keypad_mode == LINKS_AND_FIELDS_ARE_NUMBERED)) { char saved_lastchar = text->LastChar; @@ -3917,14 +3923,14 @@ PUBLIC void HText_endAnchor ARGS2( * If it goes somewhere... */ int i, j, k, l; - BOOL remove_numbers_on_empty = + BOOL remove_numbers_on_empty = (BOOL) ( ((keypad_mode == LINKS_ARE_NUMBERED || keypad_mode == LINKS_AND_FIELDS_ARE_NUMBERED) && (text->hiddenlinkflag != HIDDENLINKS_MERGE || (LYNoISMAPifUSEMAP && !(text->node_anchor && text->node_anchor->bookmark) && HTAnchor_isISMAPScript( - HTAnchor_followMainLink((HTAnchor *)a->anchor))))); + HTAnchor_followMainLink((HTAnchor *)a->anchor)))))); HTLine *last = text->last_line; HTLine *prev = text->last_line->prev; HTLine *start = last; @@ -4350,21 +4356,24 @@ PUBLIC void HText_appendText ARGS2( } -PRIVATE void remove_special_attr_chars ARGS1( +PRIVATE int remove_special_attr_chars ARGS1( char *, buf) { register char *cp; + register int soft_newline_count = 0; for (cp = buf; *cp != '\0' ; cp++) { /* * Don't print underline chars. */ + soft_newline_count += (*cp == LY_SOFT_NEWLINE); if (!IsSpecialAttrChar(*cp)) { *buf = *cp, buf++; } } *buf = '\0'; + return soft_newline_count; } @@ -4486,6 +4495,7 @@ PUBLIC void HText_trimHightext ARGS2( for (anchor_ptr = text->first_anchor; anchor_ptr; prev_a = anchor_ptr, anchor_ptr=anchor_ptr->next) { + int have_soft_newline_in_1st_line=0; re_parse: /* * Find the right line. @@ -4618,7 +4628,10 @@ re_parse: (anchor_ptr->extent - strlen(anchor_ptr->hightext))); anchor_ptr->hightext2offset = line_ptr2->offset; - remove_special_attr_chars(anchor_ptr->hightext2); + /*handle LY_SOFT_NEWLINEs -VH */ + anchor_ptr->hightext2offset += + remove_special_attr_chars(anchor_ptr->hightext2); + if (anchor_ptr->link_type & HYPERTEXT_ANCHOR) { LYTrimTrailing(anchor_ptr->hightext2); if (anchor_ptr->hightext2[0] == '\0') { @@ -4639,10 +4652,13 @@ re_parse: */ if (anchor_ptr->line_pos > 0) { register int offset = 0, i = 0; - for (; i < anchor_ptr->line_pos; i++) + for (; i < anchor_ptr->line_pos; i++) { if (IS_UTF_EXTRA(line_ptr->data[i]) || - IsSpecialAttrChar(line_ptr->data[i])) + IsSpecialAttrChar(line_ptr->data[i])) { offset++; + have_soft_newline_in_1st_line += (line_ptr->data[i] == LY_SOFT_NEWLINE); + } + } anchor_ptr->line_pos -= offset; } @@ -4652,6 +4668,9 @@ re_parse: anchor_ptr->line_pos += line_ptr->offset; anchor_ptr->line_num = cur_line; + /*handle LY_SOFT_NEWLINEs -VH */ + anchor_ptr->line_pos += have_soft_newline_in_1st_line; + CTRACE(tfp, "GridText: add link on line %d col %d [%d] %s\n", cur_line, anchor_ptr->line_pos, anchor_ptr->number, "in HText_trimHightext"); @@ -5049,7 +5068,7 @@ PRIVATE BOOLEAN same_anchor_or_field ARGS5( return(NO); if (!formA->name || !formB->name) return(YES); - return(strcmp(formA->name, formB->name) == 0); + return (BOOL) (strcmp(formA->name, formB->name) == 0); } #define same_anchor_as_link(i,a) (i >= 0 && a &&\ @@ -5524,9 +5543,9 @@ PUBLIC void HTCheckFnameForCompression ARGS3( *cp = '.'; #endif /* VMS */ cp++; - *cp = TOLOWER(*cp); + *cp = (char) TOLOWER(*cp); cp++; - *cp = TOLOWER(*cp); + *cp = (char) TOLOWER(*cp); } return; } @@ -5554,7 +5573,7 @@ PUBLIC void HTCheckFnameForCompression ARGS3( *cp = '.'; #endif /* VMS */ cp++; - *cp = TOUPPER(*cp); + *cp = (char) TOUPPER(*cp); } return; } @@ -5730,15 +5749,15 @@ PUBLIC int HText_sourceAnchors ARGS1( PUBLIC BOOL HText_canScrollUp ARGS1( HText *, text) { - return (text->top_of_screen != 0); + return (BOOL) (text->top_of_screen != 0); } PUBLIC BOOL HText_canScrollDown NOARGS { HText * text = HTMainText; - return (text != 0) - && ((text->top_of_screen + display_lines) < text->Lines+1); + return (BOOL) ((text != 0) + && ((text->top_of_screen + display_lines) < text->Lines+1)); } /* Scroll actions @@ -6321,7 +6340,7 @@ PUBLIC void print_wwwfile_to_fd ARGS2( #ifndef NO_DUMP_WITH_BACKSPACES HText* text = HTMainText; BOOL in_b=FALSE,in_u=FALSE, - bs=text && with_backspaces && HTCJK==NOCJK && !text->T.output_utf8; + bs=(BOOL)(text && with_backspaces && HTCJK==NOCJK && !text->T.output_utf8); #endif if (!HTMainText) @@ -6439,7 +6458,7 @@ PUBLIC void print_crawl_to_fd ARGS3( #ifndef NO_DUMP_WITH_BACKSPACES HText* text = HTMainText; BOOL in_b=FALSE,in_u=FALSE, - bs=text && with_backspaces && HTCJK==NOCJK && !text->T.output_utf8; + bs=(BOOL)(text && with_backspaces && HTCJK==NOCJK && !text->T.output_utf8); #endif @@ -6538,7 +6557,7 @@ PRIVATE void adjust_search_result ARGS3( int nl_closest = -1; int goal = SEARCH_GOAL_LINE; int max_offset; - BOOL on_screen = (tentative_result > HTMainText->top_of_screen && + BOOL on_screen = (BOOL) (tentative_result > HTMainText->top_of_screen && tentative_result <= HTMainText->top_of_screen+display_lines); if (goal < 1) goal = 1; @@ -7017,7 +7036,7 @@ PUBLIC BOOLEAN HTreparse_document NOARGS ret = HTParseFile(format, HTOutputFormat, HTMainAnchor, fp, NULL); fclose(fp); - ok = (ret == HT_LOADED); + ok = (BOOL) (ret == HT_LOADED); } if (LYCacheSource == SOURCE_CACHE_MEMORY && @@ -7060,7 +7079,7 @@ PUBLIC BOOLEAN HTreparse_document NOARGS } ret = HTParseMem(format, HTOutputFormat, HTMainAnchor, HTMainAnchor->source_cache_chunk, NULL); - ok = (ret == HT_LOADED); + ok = (BOOL) (ret == HT_LOADED); } CTRACE(tfp, "Reparse %s\n", (ok ? "succeeded" : "failed")); @@ -9988,7 +10007,7 @@ PUBLIC void HText_setToolbar ARGS1( PUBLIC BOOL HText_hasToolbar ARGS1( HText *, text) { - return ((text && text->toolbar) ? TRUE : FALSE); + return (BOOL) ((text && text->toolbar) ? TRUE : FALSE); } PUBLIC void HText_setNoCache ARGS1( @@ -10002,13 +10021,13 @@ PUBLIC void HText_setNoCache ARGS1( PUBLIC BOOL HText_hasNoCacheSet ARGS1( HText *, text) { - return ((text && text->no_cache) ? TRUE : FALSE); + return (BOOL) ((text && text->no_cache) ? TRUE : FALSE); } PUBLIC BOOL HText_hasUTF8OutputSet ARGS1( HText *, text) { - return ((text && text->T.output_utf8) ? TRUE : FALSE); + return (BOOL) ((text && text->T.output_utf8) ? TRUE : FALSE); } /* @@ -10311,7 +10330,7 @@ PRIVATE void cleanup_line_for_textarea ARGS2( (((unsigned char)*s > (unsigned char)'\177') && ((unsigned char)*s < (unsigned char)LYlowest_eightbit[current_char_set]))) - ? SPLAT : *s; + ? (char) SPLAT : *s; #else *p = ((unsigned char)*s < (unsigned char)' ') ? SPLAT : *s; #endif diff --git a/src/HTAlert.c b/src/HTAlert.c index 908e52c5..b9f8e746 100644 --- a/src/HTAlert.c +++ b/src/HTAlert.c @@ -263,7 +263,7 @@ PUBLIC void HTReadProgress ARGS2( if (t_rate < 1000) sprintf (line + n, " %6d bytes/sec.", t_rate); else - sprintf (line + n, " %6d,%03d bytes/sec.", + sprintf (line + n, " %6d,%03d bytes/sec.", t_rate / 1000, t_rate % 1000); } } @@ -438,7 +438,7 @@ PUBLIC BOOL HTLastConfirmCancelled NOARGS /* Seek confirmation with default answer. HTConfirmDefault() ** -------------------------------------- */ -PUBLIC BOOL HTConfirmDefault ARGS2(CONST char *, Msg, int, Dft) +PUBLIC int HTConfirmDefault ARGS2(CONST char *, Msg, int, Dft) { char *msg_yes = gettext("yes"); char *msg_no = gettext("no"); @@ -498,7 +498,7 @@ PUBLIC BOOL HTConfirmDefault ARGS2(CONST char *, Msg, int, Dft) */ PUBLIC BOOL HTConfirm ARGS1(CONST char *, Msg) { - return HTConfirmDefault(Msg, DFT_CONFIRM); + return (BOOL) HTConfirmDefault(Msg, DFT_CONFIRM); } /* Prompt for answer and get text back. HTPrompt() diff --git a/src/HTAlert.h b/src/HTAlert.h index b2cc1508..ef3b9a3a 100644 --- a/src/HTAlert.h +++ b/src/HTAlert.h @@ -62,7 +62,7 @@ extern BOOL HTLastConfirmCancelled NOPARAMS; ** If the user enters 'YES', returns TRUE, returns FALSE ** otherwise. */ -extern BOOL HTConfirmDefault PARAMS ((CONST char * Msg, int Dft)); +extern int HTConfirmDefault PARAMS ((CONST char * Msg, int Dft)); /* Display a message, then wait for 'yes' or 'no'. diff --git a/src/HTFWriter.c b/src/HTFWriter.c index 14edbb2a..7252b4d2 100644 --- a/src/HTFWriter.c +++ b/src/HTFWriter.c @@ -13,7 +13,7 @@ #include <HTFWriter.h> #include <HTSaveToFile.h> -#if WIN_EX +#ifdef WIN_EX #include <HTParse.h> #endif @@ -165,7 +165,7 @@ PRIVATE void HTFWriter_free ARGS1(HTStream *, me) * a temporary file for uncompression. - FM */ if (me->anchor->FileCache != NULL) { - BOOL skip_loadfile = (me->viewer_command != NULL); + BOOL skip_loadfile = (BOOL) (me->viewer_command != NULL); /* * Save the path with the "gz" or "Z" suffix trimmed, * and remove any previous uncompressed copy. - FM @@ -598,7 +598,7 @@ PUBLIC HTStream* HTSaveAndExecute ARGS3( cp++; } if (strchr(view_fname, ' ')) - view_fname = quote_pathname(view_fname); + view_fname = (unsigned char *) quote_pathname(view_fname); StrAllocCopy(me->viewer_command, pres->command); @@ -156,7 +156,7 @@ extern int hash_code PARAMS((char* i)); PUBLIC void strtolower ARGS1(char*, i) { if (!i) return; - while (*i) { *i=tolower(*i); i++; } + while (*i) { *i=(char)tolower(*i); i++; } } /* Flattening the style structure @@ -845,7 +845,7 @@ PRIVATE void HTML_start_element ARGS6( if (value[i]) { char q='"'; /*0 in dquotes, 1 - in quotes, 2 mixed*/ - char kind= ( !strchr(value[i], '"') ? + char kind= (char) ( !strchr(value[i], '"') ? 0 : !strchr(value[i], '\'') ? q='\'',1 : @@ -1795,7 +1795,7 @@ PRIVATE void HTML_start_element ARGS6( me->sp[0].tag_number == HTML_DD) me->current_default_alignment = HT_LEFT; LYHandlePlike(me, present, value, include, HTML_DIV_ALIGN, TRUE); - me->DivisionAlignments[me->Division_Level] = + me->DivisionAlignments[me->Division_Level] = (short) me->current_default_alignment; } else if (present && present[HTML_DIV_ALIGN] && value[HTML_DIV_ALIGN] && *value[HTML_DIV_ALIGN]) { @@ -4927,7 +4927,8 @@ PRIVATE void HTML_start_element ARGS6( ATTR_CS_IN, I.value_cs, (me->UsePlainSpace && !me->HiddenValue), - me->UsePlainSpace, me->HiddenValue); + me->UsePlainSpace, + me->HiddenValue); I.value = I_value; if (me->UsePlainSpace == TRUE) { /* @@ -5580,7 +5581,7 @@ PRIVATE void HTML_start_element ARGS6( !strcmp(me->sp->style->name, "Preformatted")))) { me->sp->style->alignment = HT_LEFT; } else { - me->sp->style->alignment = me->current_default_alignment; + me->sp->style->alignment = (short) me->current_default_alignment; } if (present && present[HTML_TR_ALIGN] && value[HTML_TR_ALIGN]) { #ifdef SH_EX @@ -6891,7 +6892,7 @@ End_Object: int j; for (j = 0; temp && temp[j]; j++) { if (temp[j] == '\r') - temp[j] = (temp[j+1] ? ' ' : '\0'); + temp[j] = (char) (temp[j+1] ? ' ' : '\0'); } I.value = temp; chars = HText_beginInput(me->text, me->inUnderline, &I); @@ -6924,7 +6925,7 @@ End_Object: int j; for (j = 0; temp && temp[j]; j++) { if (temp[j] == '\r') - temp[j] = (temp[j+1] ? ' ' : '\0'); + temp[j] = (char) (temp[j+1] ? ' ' : '\0'); } I.value = temp; chars = HText_beginInput(me->text, me->inUnderline, &I); diff --git a/src/LYCharSets.c b/src/LYCharSets.c index 5924a4f8..592c8ddb 100644 --- a/src/LYCharSets.c +++ b/src/LYCharSets.c @@ -30,6 +30,19 @@ PUBLIC int current_char_set = -1; /* will be intitialized later in LYMain.c */ PUBLIC CONST char** p_entity_values = NULL; /* Pointer, for HTML_put_entity()*/ /* obsolete and probably not used(???) */ /* will be initialized in HTMLUseCharacterSet */ +#ifdef EXP_CHARSET_CHOICE +PUBLIC charset_subset_t charset_subsets[MAXCHARSETS]; +PUBLIC BOOL custom_display_charset = FALSE; +PUBLIC BOOL custom_assumed_doc_charset = FALSE; +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN +PUBLIC int display_charset_map[MAXCHARSETS]; +PUBLIC int assumed_doc_charset_map[MAXCHARSETS]; + +PUBLIC CONST char* display_charset_choices[MAXCHARSETS+1]; +PUBLIC CONST char* assumed_charset_choices[MAXCHARSETS+1]; +PUBLIC int displayed_display_charset_idx; +#endif +#endif /* EXP_CHARSET_CHOICE */ /* * New character sets now declared with UCInit() in UCdomap.c @@ -406,19 +419,19 @@ PUBLIC void HTMLSetCharacterHandling ARGS1(int,i) if (i == chndl) LYRawMode = LYUseDefaultRawMode; else - LYRawMode = (!LYUseDefaultRawMode); + LYRawMode = (BOOL) (!LYUseDefaultRawMode); - HTPassEightBitNum = + HTPassEightBitNum = (BOOL) ( ((LYCharSet_UC[i].codepoints & UCT_CP_SUPERSETOF_LAT1) || - (LYCharSet_UC[i].like8859 & UCT_R_HIGH8BIT)); + (LYCharSet_UC[i].like8859 & UCT_R_HIGH8BIT))); if (LYRawMode) { - HTPassEightBitRaw = (LYlowest_eightbit[i] <= 160); + HTPassEightBitRaw = (BOOL) (LYlowest_eightbit[i] <= 160); } else { HTPassEightBitRaw = FALSE; } if (LYRawMode || i == chndl) { - HTPassHighCtrlRaw = (LYlowest_eightbit[i] <= 130); + HTPassHighCtrlRaw = (BOOL) (LYlowest_eightbit[i] <= 130); } else { HTPassHighCtrlRaw = FALSE; } @@ -448,10 +461,10 @@ PUBLIC void HTMLSetCharacterHandling ARGS1(int,i) /* for any CJK: */ if (!LYUseDefaultRawMode) HTCJK = NOCJK; - LYRawMode = (HTCJK != NOCJK) ? TRUE : FALSE; + LYRawMode = (BOOL) ((HTCJK != NOCJK) ? TRUE : FALSE); HTPassEightBitRaw = FALSE; HTPassEightBitNum = FALSE; - HTPassHighCtrlRaw = (HTCJK != NOCJK) ? TRUE : FALSE; + HTPassHighCtrlRaw = (BOOL) ((HTCJK != NOCJK) ? TRUE : FALSE); HTPassHighCtrlNum = FALSE; } @@ -542,7 +555,7 @@ PUBLIC void Set_HTCJK ARGS2( */ PRIVATE void HTMLSetRawModeDefault ARGS1(int,i) { - LYDefaultRawMode = (LYCharSet_UC[i].enc == UCT_ENC_CJK); + LYDefaultRawMode = (BOOL) (LYCharSet_UC[i].enc == UCT_ENC_CJK); return; } @@ -561,7 +574,7 @@ PUBLIC void HTMLSetUseDefaultRawMode ARGS2( if (i == chndl) LYUseDefaultRawMode = modeflag; else - LYUseDefaultRawMode = (!modeflag); + LYUseDefaultRawMode = (BOOL) (!modeflag); } else /* CJK encoding: */ LYUseDefaultRawMode = modeflag; @@ -574,7 +587,7 @@ PUBLIC void HTMLSetUseDefaultRawMode ARGS2( */ PRIVATE void HTMLSetHaveCJKCharacterSet ARGS1(int,i) { - LYHaveCJKCharacterSet = (LYCharSet_UC[i].enc == UCT_ENC_CJK); + LYHaveCJKCharacterSet = (BOOL) (LYCharSet_UC[i].enc == UCT_ENC_CJK); return; } @@ -904,9 +917,43 @@ PUBLIC void HTMLUseCharacterSet ARGS1(int, i) * Initializer, calls initialization function for the * CHARTRANS handling. - KW */ -PUBLIC int LYCharSetsDeclared NOPARAMS +PUBLIC int LYCharSetsDeclared NOARGS { UCInit(); return UCInitialized; } + +#ifdef EXP_CHARSET_CHOICE +PUBLIC void init_charset_subsets NOARGS +{ + int i,n; + int cur_display = 0; + int cur_assumed = 0; + + /* add them to displayed values */ + charset_subsets[UCLYhndl_for_unspec].hide_assumed = FALSE; + charset_subsets[current_char_set].hide_display = FALSE; + +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN + /*all this stuff is for supporting old menu screen... */ + for (i = 0; i < LYNumCharsets; ++i){ + if (charset_subsets[i].hide_display == FALSE) { + n = cur_display++; + if (i == current_char_set) + displayed_display_charset_idx = n; + display_charset_map[n] = i; + display_charset_choices[n] = LYchar_set_names[i]; + } + if (charset_subsets[i].hide_assumed == FALSE) { + n = cur_assumed++; + assumed_doc_charset_map[n] = i; + assumed_charset_choices[n] = LYCharSet_UC[i].MIMEname; + charset_subsets[i].assumed_idx = n; + } + display_charset_choices[cur_display] = NULL; + assumed_charset_choices[cur_assumed] = NULL; + } +#endif +} +#endif /* EXP_CHARSET_CHOICE */ diff --git a/src/LYCharSets.h b/src/LYCharSets.h index ea132684..5dedc558 100644 --- a/src/LYCharSets.h +++ b/src/LYCharSets.h @@ -50,8 +50,47 @@ extern CONST char * HTMLGetEntityName PARAMS((UCode_t code)); ** the code. Note that unicode number in general may have ** several equivalent entity names because of synonyms. */ - - extern BOOL force_old_UCLYhndl_on_reload; extern int forced_UCLYhdnl; + +#ifndef EXP_CHARSET_CHOICE +# define ALL_CHARSETS_IN_O_MENU_SCREEN 1 +#endif + +#ifdef EXP_CHARSET_CHOICE +typedef struct { + BOOL hide_display; /* if FALSE, show in "display-charset" menu */ + BOOL hide_assumed; /* if FALSE, show in "assumed-charset" menu */ +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN + int assumed_idx; /* only this field is needed */ +#endif +} charset_subset_t; +/* each element corresponds to charset in LYCharSets */ +extern charset_subset_t charset_subsets[]; +/* all zeros by default - i.e., all charsets allowed */ + +extern BOOL custom_display_charset; /* whether the charset choices for display + charset were requested by user via lynx.cfg. It will remain FALSE if no + "display_charset_choice" settings were encountered in lynx.cfg */ +extern BOOL custom_assumed_doc_charset; /* similar to custom_display_charset */ + +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN + +/* this stuff is initialized after reading lynx.cfg and .lynxrc */ + +/* these arrays maps index of charset shown in menu to the index in LYCharsets[]*/ +extern int display_charset_map[]; +extern int assumed_doc_charset_map[]; + +/* these arrays are NULL terminated */ +extern CONST char* display_charset_choices[]; +extern CONST char* assumed_charset_choices[]; + +extern int displayed_display_charset_idx; + +#endif +/* this will be called after lynx.cfg and .lynxrc are read */ +extern void init_charset_subsets NOPARAMS; +#endif /* EXP_CHARSET_CHOICE */ + #endif /* LYCHARSETS_H */ diff --git a/src/LYCharUtils.c b/src/LYCharUtils.c index aef1862e..f21aa15e 100644 --- a/src/LYCharUtils.c +++ b/src/LYCharUtils.c @@ -182,7 +182,7 @@ PUBLIC void LYEntify ARGS2( } case S_nonascii_text: - if (*p == '\033') + if (*p == '\033') state = S_esc; *q++ = *p; continue; @@ -1743,12 +1743,12 @@ PRIVATE char ** LYUCFullyTranslateString_1 ARGS9( ** are both iso-8859-1, ** or if we are in CJK mode. */ - no_bytetrans = ((cs_to <= 0 && cs_from == cs_to) || + no_bytetrans = (BOOL) ((cs_to <= 0 && cs_from == cs_to) || HTCJK != NOCJK); /* No need to translate or examine the string any further */ if (!no_bytetrans) - no_bytetrans = (!use_lynx_specials && !Back && + no_bytetrans = (BOOL) (!use_lynx_specials && !Back && UCNeedNotTranslate(cs_from, cs_to)); /* @@ -1776,14 +1776,14 @@ PRIVATE char ** LYUCFullyTranslateString_1 ARGS9( UCTransParams_clear(&T); UCSetTransParams(&T, cs_from, &LYCharSet_UC[cs_from], cs_to, &LYCharSet_UC[cs_to]); - from_is_utf8 = (LYCharSet_UC[cs_from].enc == UCT_ENC_UTF8); + from_is_utf8 = (BOOL) (LYCharSet_UC[cs_from].enc == UCT_ENC_UTF8); output_utf8 = T.output_utf8; repl_translated_C0 = T.repl_translated_C0; puni = p; } else if (do_ent) { - output_utf8 = (LYCharSet_UC[cs_to].enc == UCT_ENC_UTF8 || + output_utf8 = (BOOL) (LYCharSet_UC[cs_to].enc == UCT_ENC_UTF8 || HText_hasUTF8OutputSet(HTMainText)); - repl_translated_C0 = (LYCharSet_UC[cs_to].enc == UCT_ENC_8BIT_C0); + repl_translated_C0 = (BOOL) (LYCharSet_UC[cs_to].enc == UCT_ENC_8BIT_C0); } lowest_8 = LYlowest_eightbit[cs_to]; @@ -1833,7 +1833,7 @@ PRIVATE char ** LYUCFullyTranslateString_1 ARGS9( } else { if (0xA1 <= code && code <= 0xDF) { sjis_str[2] = '\0'; - JISx0201TO0208_SJIS((unsigned char)code, + JISx0201TO0208_SJIS((unsigned char)code, sjis_str, sjis_str + 1); REPLACE_STRING(sjis_str); p++; @@ -1982,7 +1982,7 @@ PRIVATE char ** LYUCFullyTranslateString_1 ARGS9( } rev_c = UCReverseTransChar(*p, cs_to, cs_from); if (rev_c > 127) { - *p = rev_c; + *p = (char) rev_c; code = rev_c; state = S_got_outchar; break; @@ -2400,6 +2400,22 @@ PRIVATE char ** LYUCFullyTranslateString_1 ARGS9( */ state = S_got_outchar; break; + + /* The following disabled section doesn't make sense + ** any more. It used to make sense in the past, when + ** S_check_named would look in "old style" tables + ** in addition to what it does now. + ** Disabling of going to S_check_name here prevents + ** endless looping between S_check_uni and S_check_names + ** states, which could occur here for Latin 1 codes + ** for some cs_to if they had no translation in that + ** cs_to. Normally all cs_to *should* now have valid + ** translations via UCTransUniChar or UCTransUniCharStr + ** for all Latin 1 codes, so that we would not get here + ** anyway, and no loop could occur. Still, if we *do* + ** get here, FALL THROUGH to case S_recover now. - kw + */ +#if 0 /* ** If we get to here, convert and handle ** the character as a named entity. - FM @@ -2408,6 +2424,7 @@ PRIVATE char ** LYUCFullyTranslateString_1 ARGS9( name = HTMLGetEntityName(code - 160); state = S_check_name; break; +#endif } case S_recover: @@ -2620,7 +2637,7 @@ PUBLIC BOOL LYUCTranslateBackFormData ARGS4( ret = (LYUCFullyTranslateString_1(str, cs_from, cs_to, FALSE, NO, plain_space, YES, YES, st_HTML)); - return (ret != NULL); + return (BOOL) (ret != NULL); } /* @@ -2939,14 +2956,14 @@ PUBLIC void LYHandleMETA ARGS4( * of match. */ BOOL given_is_8859 - = (!strncmp(cp4, "iso-8859-", 9) && + = (BOOL) (!strncmp(cp4, "iso-8859-", 9) && isdigit((unsigned char)cp4[9])); BOOL given_is_8859like - = (given_is_8859 || !strncmp(cp4, "windows-", 8) || + = (BOOL) (given_is_8859 || !strncmp(cp4, "windows-", 8) || !strncmp(cp4, "cp12", 4) || !strncmp(cp4, "cp-12", 5)); BOOL given_and_display_8859like - = (given_is_8859like && + = (BOOL) (given_is_8859like && (strstr(LYchar_set_names[current_char_set], "ISO-8859") || strstr(LYchar_set_names[current_char_set], @@ -3270,7 +3287,7 @@ PUBLIC void LYHandlePlike ARGS6( !strcmp(me->sp->style->name, "Preformatted")))) { me->sp->style->alignment = HT_LEFT; } else { - me->sp->style->alignment = me->current_default_alignment; + me->sp->style->alignment = (short) me->current_default_alignment; } if (start) { @@ -3883,7 +3900,7 @@ PUBLIC void LYResetParagraphAlignment ARGS1( !strcmp(me->sp->style->name, "Preformatted")))) { me->sp->style->alignment = HT_LEFT; } else { - me->sp->style->alignment = me->current_default_alignment; + me->sp->style->alignment = (short) me->current_default_alignment; } return; } diff --git a/src/LYCookie.c b/src/LYCookie.c index d1717004..977165b4 100644 --- a/src/LYCookie.c +++ b/src/LYCookie.c @@ -969,7 +969,7 @@ PRIVATE void LYProcessSetCookies ARGS6( p++; value_start = p; while (*p != '\0' && (*p != '"' || escaped)) { - escaped = (!escaped && *p == '\\'); + escaped = (BOOL) (!escaped && *p == '\\'); p++; } if (p != value_start && *p == '"' && !escaped) { @@ -1489,7 +1489,7 @@ PRIVATE void LYProcessSetCookies ARGS6( p++; value_start = p; while (*p != '\0' && (*p != '"' || escaped)) { - escaped = (!escaped && *p == '\\'); + escaped = (BOOL) (!escaped && *p == '\\'); p++; } if (p != value_start && *p == '"' && !escaped) { diff --git a/src/LYCurses.c b/src/LYCurses.c index e554c2d7..0562d962 100644 --- a/src/LYCurses.c +++ b/src/LYCurses.c @@ -160,7 +160,7 @@ PRIVATE void sl_suspend ARGS1( SLang_init_tty(3, 0, 1); #endif /* SLANG_VERSION > 9929 */ signal(SIGTSTP, sl_suspend); -#if !defined(_WINDOWS) && !defined(__DJGPP__) +#ifdef UNIX SLtty_set_suspend_state(1); #endif if (sig == SIGTSTP) @@ -680,7 +680,7 @@ PUBLIC void start_curses NOARGS #if !defined(USE_KEYMAPS) SLtt_get_terminfo(); #endif -#if defined(__DJGPP__) && !defined(DJGPP_KEYHANDLER) +#if (defined(__DJGPP__) && !defined(DJGPP_KEYHANDLER)) || defined(__CYGWIN__) SLkp_init (); #endif /* __DJGPP__ && !DJGPP_KEYHANDLER */ @@ -762,9 +762,9 @@ PUBLIC void start_curses NOARGS scrollok(0,0); SLsmg_Backspace_Moves = 1; #ifndef VMS -#if !defined(_WINDOWS) && !defined(__DJGPP__) +#ifdef UNIX SLtty_set_suspend_state(1); -#endif /* !_WINDOWS */ +#endif /* UNIX */ #ifdef SIGTSTP if (!no_suspend) signal(SIGTSTP, sl_suspend); @@ -1302,6 +1302,28 @@ PUBLIC void LYstopTargetEmphasis NOARGS #endif /* FANCY_CURSES || USE_SLANG */ } +/* + * There's no guarantee that a library won't temporarily write on its input. + * Be safe and copy it when we have const-data. + */ +PUBLIC void LYaddnstr ARGS2( + CONST char *, s, + size_t, len) +{ + if (len != 0) { + char temp[MAX_LINE]; + memcpy(temp, s, len); + temp[len] = 0; + addstr(temp); + } +} + +PUBLIC void LYaddstr ARGS1( + CONST char *, s) +{ + LYaddnstr(s, strlen(s)); +} + #ifdef VMS /* * Cut-down termio -- diff --git a/src/LYCurses.h b/src/LYCurses.h index eefeeeaa..7ae71e94 100644 --- a/src/LYCurses.h +++ b/src/LYCurses.h @@ -163,6 +163,8 @@ extern void stop_curses NOPARAMS; extern BOOLEAN setup PARAMS((char *terminal)); extern void LYstartTargetEmphasis NOPARAMS; extern void LYstopTargetEmphasis NOPARAMS; +extern void LYaddnstr PARAMS((CONST char *s, size_t len)); +extern void LYaddstr PARAMS((CONST char *s)); #ifdef VMS extern int DCLsystem (char *command); @@ -199,7 +201,7 @@ extern unsigned int Lynx_Color_Flags; #define USE_SLANG_MOUSE 1 #endif -#if !defined(__DJGPP__) +#if !defined(__DJGPP__) && !defined(__CYGWIN__) #define USE_KEYMAPS 1 #endif diff --git a/src/LYEdit.c b/src/LYEdit.c index 65d7c495..2463cfd5 100644 --- a/src/LYEdit.c +++ b/src/LYEdit.c @@ -42,7 +42,10 @@ PUBLIC int edit_current_file ARGS3( char *format = "%s %s"; char *command = NULL; char *filename = NULL; - char *colon, *number_sign; +#if (!(defined(VMS) || defined(DOSPATH) || defined(__EMX__)) || defined(SH_EX)) + char *colon; +#endif + char *number_sign; char position[80]; FILE *fp; #ifdef __CYGWIN__ diff --git a/src/LYEditmap.c b/src/LYEditmap.c index 504f9bf7..7314e97b 100644 --- a/src/LYEditmap.c +++ b/src/LYEditmap.c @@ -895,7 +895,7 @@ LYE_FORM_LAC|LYK_DWIMHELP, #endif /* _WINDOWS || __DJGPP__ */ -LYE_UNMOD, LYE_NOP, LYE_UNMOD, LYE_UNMOD, +LYE_UNMOD, LYE_NOP, LYE_UNMOD, LYE_UNMOD, /* Insert key Remove key DO_NOTHING Back tab */ /* 110..18F */ @@ -948,7 +948,7 @@ PUBLIC char * LYLineeditNames[]={ /* * Add the URL (relative to helpfilepath) used for context-dependent * help on form field editing. - * + * * The order must correspond to that of LYLineditNames. */ PUBLIC CONST char * LYLineeditHelpURLs[]={ @@ -1024,17 +1024,17 @@ PUBLIC int LYRemapEditBinding ARGS2( if (c > LAST_MOD1_LKC) return FALSE; else - Mod1Binding[c] = lec; + Mod1Binding[c] = (short) lec; } else if (xlkc & LKC_MOD2) { if (c > LAST_MOD2_LKC) return FALSE; else - Mod2Binding[c] = lec; + Mod2Binding[c] = (short) lec; } else if (xlkc & LKC_MOD3) { if (c > LAST_MOD3_LKC) return FALSE; else - Mod3Binding[c] = lec; + Mod3Binding[c] = (short) lec; } else #endif /* EXP_ALT_BINDINGS */ { @@ -1044,7 +1044,7 @@ PUBLIC int LYRemapEditBinding ARGS2( if ((unsigned int)lec > UCHAR_MAX) return FALSE; /* cannot do, doesn't fit in a char - kw */ for (j = 0; LYLineeditNames[j]; j++) { - LYLineEditors[j][c] = lec; + LYLineEditors[j][c] = (char) lec; } } return TRUE; diff --git a/src/LYExtern.c b/src/LYExtern.c index 0f8a1c4f..05e5d71c 100644 --- a/src/LYExtern.c +++ b/src/LYExtern.c @@ -63,7 +63,7 @@ static char *decode_string(char *s) *p = *s; continue; } - *p = (ASC2HEXD(*(s + 1)) << 4) + ASC2HEXD(*(s + 2)); + *p = (char)((ASC2HEXD(*(s + 1)) << 4) + ASC2HEXD(*(s + 2))); s += 2; } } @@ -204,8 +204,6 @@ void run_external ARGS1(char *, c) if (externals2->command != 0 && !strncasecomp(externals2->name, c, strlen(externals2->name))) { - char *cp; - if (no_externals && !externals2->always_enabled) { HTUserMsg(EXTERNALS_DISABLED); return; @@ -221,7 +219,7 @@ void run_external ARGS1(char *, c) #else /* Unix or DOS/Win: */ #if defined(WIN_EX) if (*c != '\"' && strchr(c, ' ') != NULL) { - cp = quote_pathname(c); + char *cp = quote_pathname(c); sprintf(command, externals2->command, cp); FREE(cp); } else { @@ -283,9 +281,11 @@ void run_external ARGS1(char *, c) } } #else /* Unix */ - cp = HTQuoteParameter(c); - sprintf(command, externals2->command, cp); - FREE(cp); + { + char *cp = HTQuoteParameter(c); + sprintf(command, externals2->command, cp); + FREE(cp); + } #endif #endif /* VMS */ diff --git a/src/LYForms.c b/src/LYForms.c index 282adc91..7c437509 100644 --- a/src/LYForms.c +++ b/src/LYForms.c @@ -388,7 +388,7 @@ PRIVATE int form_getstr ARGS3( */ LYSetupEdit(&MyEdit, value, max_length, (far_col - startcol)); MyEdit.pad = '_'; - MyEdit.hidden = (form->type == F_PASSWORD_TYPE); + MyEdit.hidden = (BOOL) (form->type == F_PASSWORD_TYPE); if (use_last_tfpos && LastTFPos >= 0 && LastTFPos < MyEdit.strlen) { MyEdit.pos = LastTFPos; #ifdef ENHANCED_LINEEDIT @@ -747,7 +747,7 @@ PRIVATE int get_popup_option_number ARGS2( /* * Load the c argument into the prompt buffer. */ - temp[0] = *c; + temp[0] = (char) *c; temp[1] = '\0'; _statusline(SELECT_OPTION_NUMBER); diff --git a/src/LYGetFile.c b/src/LYGetFile.c index aa95cd9e..370bf41f 100644 --- a/src/LYGetFile.c +++ b/src/LYGetFile.c @@ -68,14 +68,14 @@ PUBLIC int HTNoDataOK = 0; * to show for it either. * NULLFILE - requested document not loaded into HTMainText, either * some interactive protocol was requested (like telnet), - * or lynx does not allow access, + * or lynx does not allow access, * The distinction between NOT_FOUND and NULLFILE is not very crucial, * but getting it right prevents mainloop from exiting with the wrong * message if it happens for the first file, and from logging (or not * logging) errors inappropriately with -traversal, and from sending * bogus error mail with MAIL_SYSTEM_ERROR_LOGGING:TRUE. - kw */ -PUBLIC BOOLEAN getfile ARGS1( +PUBLIC int getfile ARGS1( document *, doc) { int url_type = 0; @@ -1103,7 +1103,7 @@ PUBLIC int follow_link_number ARGS4( int curline = *num; /* passed in from mainloop() */ CTRACE(tfp,"follow_link_number(%d,%d,...)\n",c,cur); - temp[0] = c; + temp[0] = (char) c; temp[1] = '\0'; *num = -1; _statusline(FOLLOW_LINK_NUMBER); @@ -1166,7 +1166,7 @@ PUBLIC int follow_link_number ARGS4( * Check if we want to make the link corresponding to the * number the current link, rather than ACTIVATE-ing it. */ - want_go = ( c == 'g' || c == 'G' ); + want_go = (BOOL) ( c == 'g' || c == 'G' ); /* If rel, add or subtract num from current link, or * nearest previous/subsequent link if current link is not on screen. diff --git a/src/LYGetFile.h b/src/LYGetFile.h index 93239e83..319efbb6 100644 --- a/src/LYGetFile.h +++ b/src/LYGetFile.h @@ -7,7 +7,7 @@ #define NORMAL 1 #define NULLFILE 3 -extern BOOLEAN getfile PARAMS((document *doc)); +extern int getfile PARAMS((document *doc)); extern int follow_link_number PARAMS(( int c, int cur, diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h index 22a828dd..81c391e0 100644 --- a/src/LYGlobalDefs.h +++ b/src/LYGlobalDefs.h @@ -422,9 +422,11 @@ extern BOOLEAN focus_window; #ifdef SH_EX extern BOOLEAN show_cfg; extern BOOLEAN mail_is_blat; -extern BOOLEAN no_table_center; +#ifdef WIN_EX extern int debug_delay; #endif +extern BOOLEAN no_table_center; +#endif #if !defined(__CYGWIN__) && defined(__CYGWIN32__) #define __CYGWIN__ diff --git a/src/LYKeymap.c b/src/LYKeymap.c index 32a2e0eb..72f6ebe2 100644 --- a/src/LYKeymap.c +++ b/src/LYKeymap.c @@ -1,3 +1,4 @@ + #include <HTUtils.h> #include <LYUtils.h> #include <LYKeymap.h> @@ -32,9 +33,6 @@ PUBLIC char * LYKbLayoutNames[]={ }; #endif /* EXP_KEYBOARD_LAYOUT */ -PRIVATE CONST DocAddress keymap_anchor = {"LYNXKEYMAP", NULL, NULL, - NULL, FALSE, FALSE}; - struct _HTStream { HTStreamClass * isa; @@ -187,7 +185,7 @@ LYK_TAG_LINK, LYK_PREV_DOC, LYK_VIEW_BOOKMARK, 0, LYK_NOCACHE, 0, LYK_INTERRUPT, 0, /* x */ /* y */ /* z */ /* { */ -#if (defined(_WINDOWS) || defined(__DJGPP__)) +#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__)) LYK_PIPE, 0, 0, 0, /* | */ /* } */ /* ~ */ @@ -197,7 +195,7 @@ LYK_PIPE, 0, 0, 0, LYK_PIPE, 0, 0, LYK_HISTORY, /* | */ /* } */ /* ~ */ /* del */ -#endif /* _WINDOWS || __DJGPP__ */ +#endif /* _WINDOWS || __DJGPP__ || __CYGWIN__ */ /* 80..9F (illegal ISO-8859-1) 8-bit characters. */ 0, 0, 0, 0, @@ -242,7 +240,7 @@ LYK_PREV_LINK, LYK_NEXT_LINK, LYK_ACTIVATE, LYK_PREV_DOC, LYK_NEXT_PAGE, LYK_PREV_PAGE, LYK_HOME, LYK_END, /* PGDOWN */ /* PGUP */ /* HOME */ /* END */ -#if (defined(_WINDOWS) || defined(__DJGPP__)) +#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__)) LYK_HELP, 0, 0, 0, /* F1*/ @@ -251,19 +249,19 @@ LYK_HELP, 0, 0, 0, LYK_HELP, LYK_ACTIVATE, LYK_HOME, LYK_END, /* F1*/ /* Do key */ /* Find key */ /* Select key */ -#endif /* _WINDOWS || __DJGPP__ */ +#endif /* _WINDOWS || __DJGPP__ || __CYGWIN__ */ LYK_UP_TWO, LYK_DOWN_TWO, LYK_DO_NOTHING, LYK_FASTBACKW_LINK, /* Insert key */ /* Remove key */ /* DO_NOTHING*/ /* Back tab */ /* 110..18F */ -#if (defined(_WINDOWS) || defined(__DJGPP__)) && defined(USE_SLANG) && !defined(DJGPP_KEYHANDLER) +#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__)) && defined(USE_SLANG) && !defined(DJGPP_KEYHANDLER) LYK_HISTORY, LYK_ACTIVATE, 0, 0, /* Backspace */ /* Enter */ #else 0, 0, 0, 0, -#endif /* USE_SLANG &&(_WINDOWS || __DJGPP) && !DJGPP_KEYHANDLER */ +#endif /* USE_SLANG &&(_WINDOWS || __DJGPP || __CYGWIN__) && !DJGPP_KEYHANDLER */ 0, 0, 0, 0, 0, LYK_DO_NOTHING, 0, 0, /* 0x11d: MOUSE_KEY */ @@ -313,7 +311,7 @@ LYK_UP_TWO, LYK_DOWN_TWO, LYK_DO_NOTHING, LYK_FASTBACKW_LINK, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -#if (defined(_WINDOWS) || defined(__DJGPP__)) && !defined(USE_SLANG) /* PDCurses */ +#if (defined(_WINDOWS) || defined(__DJGPP__) || defined(__CYGWIN__)) && !defined(USE_SLANG) /* PDCurses */ LYK_ABORT, 0, 0, 0, /* ALT_X */ 0, 0, 0, 0, @@ -333,7 +331,7 @@ LYK_UP_TWO, LYK_DOWN_TWO, LYK_DO_NOTHING, LYK_FASTBACKW_LINK, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -#endif /* (_WINDOWS || __DJGPP__) && !USE_SLANG */ +#endif /* (_WINDOWS || __DJGPP__ || __CYGWIN__) && !USE_SLANG */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -997,35 +995,35 @@ PUBLIC int remap ARGS2( char *, key, char *, func) { - int i; - struct rmap *mp; - int c; - - if (func == NULL) - return 0; - c = lkcstring_to_lkc(key); - if (c <= -1) - return 0; - else if (c >= 0) { - /* Remapping of key actions is supported only for basic - * lynxkeycodes, without modifiers etc.! If we get somehow - * called for an invalid lynxkeycode, fail or silently - * modifiers. - kw - */ - if (c & LKC_ISLAC) - return 0; - if ((c & LKC_MASK) != c) - c &= LKC_MASK; - } - if (c + 1 >= KEYMAP_SIZE) + int i; + struct rmap *mp; + int c; + + if (func == NULL) + return 0; + c = lkcstring_to_lkc(key); + if (c <= -1) + return 0; + else if (c >= 0) { + /* Remapping of key actions is supported only for basic + * lynxkeycodes, without modifiers etc.! If we get somehow + * called for an invalid lynxkeycode, fail or silently + * modifiers. - kw + */ + if (c & LKC_ISLAC) return 0; - for (i = 0, mp = revmap; (*mp).name != NULL; mp++, i++) { - if (strcmp((*mp).name, func) == 0) { - keymap[c+1] = i; - return (c ? c : LAC_TO_LKC0(i)); - } - } - return 0; + if ((c & LKC_MASK) != c) + c &= LKC_MASK; + } + if (c + 1 >= KEYMAP_SIZE) + return 0; + for (i = 0, mp = revmap; (*mp).name != NULL; mp++, i++) { + if (strcmp((*mp).name, func) == 0) { + keymap[c+1] = (char) i; + return (c ? c : LAC_TO_LKC0(i)); + } + } + return 0; } @@ -1191,7 +1189,7 @@ PUBLIC BOOL LYisNonAlnumKeyname ARGS2( ch < 0 || ch >= KEYMAP_SIZE) return (FALSE); - return(keymap[ch+1] == key_name); + return (BOOL) (keymap[ch+1] == key_name); } /* diff --git a/src/LYMail.c b/src/LYMail.c index 1112eb2e..274f95e7 100644 --- a/src/LYMail.c +++ b/src/LYMail.c @@ -1743,7 +1743,7 @@ PUBLIC void reply_by_mail ARGS4( /* * Ask if the user wants to include the original message. */ - BOOLEAN is_preparsed = (LYPreparsedSource && + BOOLEAN is_preparsed = (BOOL) (LYPreparsedSource && HTisDocumentSource()); if (HTConfirm(is_preparsed ? INC_PREPARSED_MSG_PROMPT diff --git a/src/LYMain.c b/src/LYMain.c index 83e3cbcf..b58cef3c 100644 --- a/src/LYMain.c +++ b/src/LYMain.c @@ -307,7 +307,9 @@ PUBLIC BOOLEAN system_is_NT = FALSE; #ifdef SH_EX PUBLIC BOOLEAN show_cfg = FALSE; PUBLIC BOOLEAN mail_is_blat = TRUE; +#ifdef WIN_EX PUBLIC int debug_delay = 0; /* 1998/10/06 (Tue) 08:41:20 */ +#endif PUBLIC BOOLEAN no_table_center = FALSE; /* 1998/10/09 (Fri) 15:12:49 */ #endif /* SH_EX */ @@ -479,6 +481,7 @@ PRIVATE BOOLEAN stack_dump = FALSE; PRIVATE char *terminal = NULL; PRIVATE char *pgm; PRIVATE BOOLEAN number_links = FALSE; +PRIVATE BOOLEAN number_fields = FALSE; PRIVATE BOOLEAN LYPrependBase = FALSE; PRIVATE HTList *LYStdinArgs = NULL; @@ -518,7 +521,7 @@ PRIVATE void FatalProblem PARAMS((int sig)); #endif #ifdef __DJGPP__ -PRIVATE int LY_set_ctrl_break(int setting) +PRIVATE void LY_set_ctrl_break(int setting) { (void)signal(SIGINT, (setting ? SIG_DFL : SIG_IGN)); setcbrk(setting); @@ -780,6 +783,10 @@ PUBLIC int main ARGS2( FixCharacters(); #endif /* NOT_ASCII */ +#ifdef EXP_CHARSET_CHOICE + memset((char*)charset_subsets, 0, sizeof(charset_subset_t)*MAXCHARSETS); +#endif + #ifdef _WINDOWS WSADATA WSAData; { @@ -812,7 +819,7 @@ PUBLIC int main ARGS2( #if defined(WIN_EX) /* 1997/10/19 (Sun) 21:40:54 */ - system_is_NT = is_windows_nt(); + system_is_NT = (BOOL) is_windows_nt(); /* 1998/01/13 (Tue) 21:13:47 */ GetWindowsDirectory(filename, sizeof filename); @@ -984,7 +991,11 @@ PUBLIC int main ARGS2( } #endif - if ((cp = strchr(lynx_temp_space, '~'))) { + if ((cp = strchr(lynx_temp_space, '~')) != 0 +#ifdef WIN_EX /* for Windows 2000 ... 1999/08/23 (Mon) 08:24:35 */ + && (access(lynx_temp_space, 0) != 0) +#endif + ) { *(cp++) = '\0'; StrAllocCopy(temp, lynx_temp_space); LYTrimPathSep(temp); @@ -1049,7 +1060,7 @@ PUBLIC int main ARGS2( * command line switch. - FM */ #ifndef DISABLE_NEWS - no_newspost = (LYNewsPosting == FALSE); + no_newspost = (BOOL) (LYNewsPosting == FALSE); #endif /* @@ -1717,10 +1728,13 @@ PUBLIC int main ARGS2( } } - if (number_links && keypad_mode == NUMBERS_AS_ARROWS) - keypad_mode = LINKS_ARE_NUMBERED; - if (keypad_mode == NUMBERS_AS_ARROWS) + if (keypad_mode == NUMBERS_AS_ARROWS) { + if (number_fields) + keypad_mode = LINKS_AND_FIELDS_ARE_NUMBERED; + if (number_links) + keypad_mode = LINKS_ARE_NUMBERED; set_numbers_as_arrows(); + } /* * Check the -popup command line toggle. - FM @@ -1902,29 +1916,29 @@ PUBLIC int main ARGS2( */ if (inlocaldomain()) { #if !defined(HAVE_UTMP) || defined(VMS) /* not selective */ - telnet_ok = !no_inside_telnet && !no_outside_telnet && telnet_ok; + telnet_ok = (BOOL)(!no_inside_telnet && !no_outside_telnet && telnet_ok); #ifndef DISABLE_NEWS - news_ok = !no_inside_news && !no_outside_news && news_ok; + news_ok = (BOOL)(!no_inside_news && !no_outside_news && news_ok); #endif - ftp_ok = !no_inside_ftp && !no_outside_ftp && ftp_ok; - rlogin_ok = !no_inside_rlogin && !no_outside_rlogin && rlogin_ok; + ftp_ok = (BOOL)(!no_inside_ftp && !no_outside_ftp && ftp_ok); + rlogin_ok = (BOOL)(!no_inside_rlogin && !no_outside_rlogin && rlogin_ok); #else CTRACE(tfp, "LYMain: User in Local domain\n"); - telnet_ok = !no_inside_telnet && telnet_ok; + telnet_ok = (BOOL)(!no_inside_telnet && telnet_ok); #ifndef DISABLE_NEWS - news_ok = !no_inside_news && news_ok; + news_ok = (BOOL)(!no_inside_news && news_ok); #endif - ftp_ok = !no_inside_ftp && ftp_ok; - rlogin_ok = !no_inside_rlogin && rlogin_ok; + ftp_ok = (BOOL)(!no_inside_ftp && ftp_ok); + rlogin_ok = (BOOL)(!no_inside_rlogin && rlogin_ok); #endif /* !HAVE_UTMP || VMS */ } else { CTRACE(tfp, "LYMain: User in REMOTE domain\n"); - telnet_ok = !no_outside_telnet && telnet_ok; + telnet_ok = (BOOL)(!no_outside_telnet && telnet_ok); #ifndef DISABLE_NEWS - news_ok = !no_outside_news && news_ok; + news_ok = (BOOL)(!no_outside_news && news_ok); #endif - ftp_ok = !no_outside_ftp && ftp_ok; - rlogin_ok = !no_outside_rlogin && rlogin_ok; + ftp_ok = (BOOL)(!no_outside_ftp && ftp_ok); + rlogin_ok = (BOOL)(!no_outside_rlogin && rlogin_ok); } /* @@ -1944,19 +1958,19 @@ PUBLIC int main ARGS2( StrAllocCopy(MBM_A_subdescript[0], MULTIBOOKMARKS_DEFAULT); } -#if defined (__DJGPP__) - if (watt_debug) - dbug_init(); - sock_init(); +#if defined (__DJGPP__) + if (watt_debug) + dbug_init(); + sock_init(); - __system_flags = - __system_emulate_chdir | /* handle `cd' internally */ - __system_handle_null_commands | /* ignore cmds with no effect */ - __system_allow_long_cmds | /* handle commands > 126 chars */ - __system_use_shell | /* use $SHELL if set */ - __system_allow_multiple_cmds | /* allow `cmd1; cmd2; ...' */ - __system_redirect; /* redirect internally */ -#endif /* __DJGPP__ */ + __system_flags = + __system_emulate_chdir | /* handle `cd' internally */ + __system_handle_null_commands | /* ignore cmds with no effect */ + __system_allow_long_cmds | /* handle commands > 126 chars */ + __system_use_shell | /* use $SHELL if set */ + __system_allow_multiple_cmds | /* allow `cmd1; cmd2; ...' */ + __system_redirect; /* redirect internally */ +#endif /* __DJGPP__ */ /* * Here's where we do all the work. @@ -1966,9 +1980,14 @@ PUBLIC int main ARGS2( * Finish setting up and start a * NON-INTERACTIVE session. - FM */ - if (!crawl && !nolist) { + if (crawl && !number_links && !number_fields) { + keypad_mode = NUMBERS_AS_ARROWS; + } else if (!nolist) { if (keypad_mode == NUMBERS_AS_ARROWS) { - keypad_mode = LINKS_ARE_NUMBERED; + if (number_fields) + keypad_mode = LINKS_AND_FIELDS_ARE_NUMBERED; + else + keypad_mode = LINKS_ARE_NUMBERED; } } @@ -2012,6 +2031,11 @@ PUBLIC int main ARGS2( with_backspaces = FALSE; } #endif + +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN + init_charset_subsets(); +#endif + ena_csi((BOOLEAN)(LYlowest_eightbit[current_char_set] > 155)); LYOpenCloset(); status = mainloop(); @@ -2094,6 +2118,11 @@ PUBLIC void reload_read_cfg NOARGS StrAllocCopy(LYCookieFile_flag, LYCookieFile); #endif +#ifdef EXP_CHARSET_CHOICE + custom_assumed_doc_charset = FALSE; + custom_display_charset = FALSE; + memset((char*)charset_subsets, 0, sizeof(charset_subset_t)*MAXCHARSETS); +#endif free_lynx_cfg(); /* free downloaders, printers, not always environments */ /* * Process the configuration file. @@ -2105,6 +2134,9 @@ PUBLIC void reload_read_cfg NOARGS */ read_rc(); +#ifdef EXP_CHARSET_CHOICE + init_charset_subsets(); +#endif /* We are not interested in startfile here */ /* but other things may be lost: */ @@ -2839,7 +2871,11 @@ static int version_fun ARGS1( #ifdef _MSC_VER printf("Compiled by Microsoft Visual C++ (%s %s).\n", __DATE__, __TIME__); #else +#ifdef __DJGPP__ + printf("Compiled by DJGPP (%s %s).\n", __DATE__, __TIME__); +#else printf("Compiled at (%s %s).\n", __DATE__, __TIME__); +#endif /* __DJGPP__ */ #endif /* _MSC_VER */ #endif /* __BORLANDC__ */ #endif /* __CYGWIN__ */ @@ -2965,7 +3001,7 @@ with -dump, format output as with -traversal, but to stdout" "incremental display stages with MessageSecs delay" ), #endif -#ifdef SH_EX +#if defined(SH_EX) && defined(WIN_EX) PARSE_SET( "delay", NEED_INT_ARG, &debug_delay, "=NNN\nset the NNN msec delay at statusline message" @@ -3189,6 +3225,10 @@ keys (may be incompatible with some curses packages)" "disable the miscellaneous information messages" ), PARSE_SET( + "number_fields", SET_ARG, &number_fields, + "force numbering of links as well as form input fields" + ), + PARSE_SET( "number_links", SET_ARG, &number_links, "force numbering of links" ), @@ -3198,7 +3238,7 @@ keys (may be incompatible with some curses packages)" "toggles display partial pages while downloading" ), PARSE_INT( - "partial_thres", NEED_INT_ARG, &partial_threshold, + "partial_thres", NEED_INT_ARG, &partial_threshold, "[=NUMBER]\nnumber of lines to render before repainting display\n\ with partial-display logic" ), @@ -3642,7 +3682,7 @@ PRIVATE void parse_arg ARGS2( if (next_arg == 0) { switch (p->type & ARG_TYPE_MASK) { case TOGGLE_ARG: - *(q->set_value) = !(*(q->set_value)); + *(q->set_value) = (BOOL) !(*(q->set_value)); break; case SET_ARG: *(q->set_value) = TRUE; diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c index 040159a7..fe5242c0 100644 --- a/src/LYMainLoop.c +++ b/src/LYMainLoop.c @@ -46,22 +46,6 @@ extern char *string_short(char *str, int cut_pos); /* LYExtern.c */ #define CHARSET_TRANS 14 /* "Transparent" in LYCharSets.c */ -#ifdef SH_EX -PRIVATE char *str_sjis(char *to, char *from) -{ - if (!LYRawMode) { - strcpy(to, from); - } else if (last_kcode == EUC) { - EUC_TO_SJIS(from, to); - } else if (last_kcode == SJIS) { - strcpy(to, from); - } else { - TO_SJIS(from, to); - } - return to; -} -#endif - PUBLIC char *str_kcode(HTkcode code) { char *p; @@ -109,15 +93,28 @@ PUBLIC char *str_kcode(HTkcode code) return buff; } +#ifdef WIN_EX + +PRIVATE char *str_sjis(char *to, char *from) +{ + if (!LYRawMode) { + strcpy(to, from); + } else if (last_kcode == EUC) { + EUC_TO_SJIS(from, to); + } else if (last_kcode == SJIS) { + strcpy(to, from); + } else { + TO_SJIS(from, to); + } + return to; +} -#ifdef SH_EX PRIVATE void set_ws_title(char * str) { -#ifdef WIN_EX SetConsoleTitle(str); -#endif } -#endif + +#endif /* WIN_EX */ #endif /* CJK_EX */ @@ -414,7 +411,7 @@ PRIVATE int DoTraversal ARGS2( BOOLEAN rlink_exists; BOOLEAN rlink_allowed; - rlink_exists = (nlinks > 0 && + rlink_exists = (BOOL) (nlinks > 0 && links[curdoc.link].type != WWW_FORM_LINK_TYPE && links[curdoc.link].lname != NULL); @@ -424,11 +421,11 @@ PRIVATE int DoTraversal ARGS2( traversal_host && links[curdoc.link].lname) { if (strncmp(links[curdoc.link].lname, "LYNXIMGMAP:", 11)) { - rlink_allowed = !strncmp(traversal_host, + rlink_allowed = (BOOL) !strncmp(traversal_host, links[curdoc.link].lname, strlen(traversal_host)); } else { - rlink_allowed = !strncmp(traversal_host, + rlink_allowed = (BOOL) !strncmp(traversal_host, links[curdoc.link].lname + 11, strlen(traversal_host)); } @@ -498,10 +495,9 @@ PRIVATE int DoTraversal ARGS2( int mainloop NOARGS { -#if defined(SH_EX) /* 1997/10/08 (Wed) 14:52:06 */ +#if defined(WIN_EX) /* 1997/10/08 (Wed) 14:52:06 */ #undef STRING_MAX #define STRING_MAX 4096 - char title_buff[STRING_MAX]; char temp_buff[STRING_MAX]; #define BUFF_MAX 1024 @@ -1285,13 +1281,6 @@ try_again: * to Newline, so we get a redraw. */ curdoc.line = -1; -#ifdef USE_PSRC - if (psrc_view) - HTMark_asSource(); /* this flag is not set, since when - displaying source, psrc_view is temporary unset when - writing the HTML header - and HTMainText is created - at that time.*/ -#endif break; } /* end switch */ @@ -1690,7 +1679,7 @@ try_again: } -#if defined(CJK_EX) /* 1997/10/08 (Wed) 14:52:06 */ +#if defined(WIN_EX) /* 1997/10/08 (Wed) 14:52:06 */ if (nlinks > 0) { char *p = "LYNX (unknown link type)"; @@ -1743,7 +1732,7 @@ try_again: HTUnEscape(temp_buff); } str_sjis(sjis_buff, temp_buff); - SetConsoleTitle(string_short(sjis_buff, 10)); + set_ws_title(string_short(sjis_buff, 10)); } } } else { @@ -1756,7 +1745,7 @@ try_again: set_ws_title(HTUnEscape(temp_buff)); } } -#endif /* CJK_EX */ +#endif /* WIN_EX */ /* * Report unread or new mail, if appropriate. @@ -1833,7 +1822,7 @@ try_again: links[curdoc.link].form->type == F_TEXTAREA_TYPE)) { BOOLEAN use_last_tfpos; - use_last_tfpos = (real_cmd == LYK_LPOS_PREV_LINK || + use_last_tfpos = (BOOL) (real_cmd == LYK_LPOS_PREV_LINK || real_cmd == LYK_LPOS_NEXT_LINK); #ifndef NO_NONSTICKY_INPUTS @@ -4481,9 +4470,9 @@ if (!LYUseFormsOptions) { BOOLEAN LYUseDefaultRawMode_flag = LYUseDefaultRawMode; BOOLEAN LYSelectPopups_flag = LYSelectPopups; BOOLEAN verbose_img_flag = verbose_img; - BOOLEAN keypad_mode_flag = keypad_mode; + BOOLEAN keypad_mode_flag = (BOOL) keypad_mode; BOOLEAN show_dotfiles_flag = show_dotfiles; - BOOLEAN user_mode_flag = user_mode; + BOOLEAN user_mode_flag = (BOOL) user_mode; int CurrentAssumeCharSet_flag = UCLYhndl_for_unspec; int CurrentCharSet_flag = current_char_set; int HTfileSortMethod_flag = HTfileSortMethod; @@ -6168,7 +6157,7 @@ check_add_bookmark_to_self: HTUserMsg(gettext("charset for this document specified explicitely, sorry...")); break; } else { - LYUseDefaultRawMode = !LYUseDefaultRawMode; + LYUseDefaultRawMode = (BOOL) !LYUseDefaultRawMode; HTUserMsg(LYRawMode ? RAWMODE_OFF : RAWMODE_ON); HTMLSetCharacterHandling(current_char_set); #ifdef SOURCE_CACHE diff --git a/src/LYOptions.c b/src/LYOptions.c index 563dfd8c..575fe13d 100644 --- a/src/LYOptions.c +++ b/src/LYOptions.c @@ -37,7 +37,9 @@ PRIVATE int boolean_choice PARAMS(( int status, int line, int column, - char ** choices)); + CONST char ** choices)); +#define LYChooseBoolean(status, line, column, choices) \ + boolean_choice(status, line, column, (CONST char **)choices) #define MAXCHOICES 10 @@ -158,7 +160,7 @@ PRIVATE void addlbl ARGS1(CONST char *, text) PUBLIC void LYoptions NOARGS { -#ifdef ENABLE_OPTS_CHANGE_EXEC +#if defined(ENABLE_OPTS_CHANGE_EXEC) && (defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)) int itmp; #endif /* ENABLE_OPTS_CHANGE_EXEC */ int response, ch; @@ -242,7 +244,7 @@ PUBLIC void LYoptions NOARGS } old_use_assume_charset = - use_assume_charset = (user_mode == ADVANCED_MODE); + use_assume_charset = (BOOL) (user_mode == ADVANCED_MODE); draw_options: @@ -310,7 +312,7 @@ draw_options: move(L_Charset, 5); addlbl("display (C)haracter set : "); - addstr((char *)LYchar_set_names[current_char_set]); + LYaddstr(LYchar_set_names[current_char_set]); move(L_LANGUAGE, 5); addlbl("preferred document lan(G)uage: "); @@ -326,8 +328,8 @@ draw_options: if (UCAssume_MIMEcharset) addstr(UCAssume_MIMEcharset); else - addstr((UCLYhndl_for_unspec >= 0) ? - (char *)LYCharSet_UC[UCLYhndl_for_unspec].MIMEname + LYaddstr((UCLYhndl_for_unspec >= 0) ? + LYCharSet_UC[UCLYhndl_for_unspec].MIMEname : "NONE"); } @@ -422,7 +424,7 @@ draw_options: addlbl("user (A)gent : "); addstr((LYUserAgent && *LYUserAgent) ? LYUserAgent : "NONE"); -#ifdef ENABLE_OPTS_CHANGE_EXEC +#if defined(ENABLE_OPTS_CHANGE_EXEC) && (defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)) move(L_Exec, 5); addlbl("local e(X)ecution links : "); #ifndef NEVER_ALLOW_REMOTE_EXEC @@ -622,12 +624,12 @@ draw_options: StrAllocCopy(choices[2], "ADVANCED"); choices[3] = NULL; if (!LYSelectPopups) { - LYMultiBookmarks = boolean_choice((LYMultiBookmarks * + LYMultiBookmarks = LYChooseBoolean((LYMultiBookmarks * (1 + LYMBMAdvanced)), L_HOME, C_MULTI, choices); } else { - LYMultiBookmarks = popup_choice((LYMultiBookmarks * + LYMultiBookmarks = LYChoosePopup((LYMultiBookmarks * (1 + LYMBMAdvanced)), L_HOME, (C_MULTI - 1), choices, @@ -750,11 +752,11 @@ draw_options: StrAllocCopy(choices[3], "By Date "); choices[4] = NULL; if (!LYSelectPopups) { - HTfileSortMethod = boolean_choice(HTfileSortMethod, + HTfileSortMethod = LYChooseBoolean(HTfileSortMethod, L_FTPSTYPE, -1, choices); } else { - HTfileSortMethod = popup_choice(HTfileSortMethod, + HTfileSortMethod = LYChoosePopup(HTfileSortMethod, L_FTPSTYPE, -1, choices, 4, FALSE, FALSE); @@ -830,7 +832,7 @@ draw_options: choices[1] = NULL; StrAllocCopy(choices[1], "CASE SENSITIVE "); choices[2] = NULL; - case_sensitive = boolean_choice(case_sensitive, + case_sensitive = LYChooseBoolean(case_sensitive, L_SSEARCH, -1, choices); FREE(choices[0]); FREE(choices[1]); @@ -840,13 +842,13 @@ draw_options: case '\001': /* Change assume_charset setting. */ if (use_assume_charset) { int i, curval; - char ** assume_list; - assume_list = (char **)calloc(LYNumCharsets + 1, sizeof(char *)); + CONST char ** assume_list; + assume_list = typecallocn(CONST char *,(LYNumCharsets + 1)); if (!assume_list) { outofmem(__FILE__, "options"); } for (i = 0; i < LYNumCharsets; i++) { - assume_list[i] = (char *)LYCharSet_UC[i].MIMEname; + assume_list[i] = LYCharSet_UC[i].MIMEname; } curval = UCLYhndl_for_unspec; if (curval == current_char_set && UCAssume_MIMEcharset) { @@ -855,20 +857,34 @@ draw_options: if (curval < 0) curval = LYRawMode ? current_char_set : 0; if (!LYSelectPopups) { - UCLYhndl_for_unspec = boolean_choice(curval, +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN + UCLYhndl_for_unspec = assumed_doc_charset_map[LYChooseBoolean( + charset_subsets[curval].assumed_idx, + L_ASSUME_CHARSET, -1, + assumed_charset_choices)]; +#else + UCLYhndl_for_unspec = LYChooseBoolean(curval, L_ASSUME_CHARSET, -1, assume_list); +#endif } else { - UCLYhndl_for_unspec = popup_choice(curval, +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN + UCLYhndl_for_unspec = assumed_doc_charset_map[LYChoosePopup( + charset_subsets[curval].assumed_idx, + L_ASSUME_CHARSET, -1, + assumed_charset_choices, + 0, FALSE, FALSE)]; +#else + UCLYhndl_for_unspec = LYChoosePopup(curval, L_ASSUME_CHARSET, -1, assume_list, - 0, FALSE, FALSE); + 0, FALSE, FALSE); +#endif #if defined(VMS) || defined(USE_SLANG) move(L_ASSUME_CHARSET, COL_OPTION_VALUES); clrtoeol(); if (UCLYhndl_for_unspec >= 0) - addstr((char *) - LYCharSet_UC[UCLYhndl_for_unspec].MIMEname); + LYaddstr(LYCharSet_UC[UCLYhndl_for_unspec].MIMEname); #endif /* VMS || USE_SLANG */ } @@ -882,7 +898,7 @@ draw_options: StrAllocCopy(UCAssume_MIMEcharset, LYCharSet_UC[UCLYhndl_for_unspec].MIMEname); } - LYRawMode = (UCLYhndl_for_unspec == current_char_set); + LYRawMode = (BOOL) (UCLYhndl_for_unspec == current_char_set); HTMLSetUseDefaultRawMode(current_char_set, LYRawMode); HTMLSetCharacterHandling(current_char_set); CurrentAssumeCharSet = UCLYhndl_for_unspec; @@ -896,7 +912,7 @@ draw_options: addstr(LYRawMode ? "ON " : "OFF"); } } - FREE(assume_list); + FREE(TYPECAST(char *,assume_list)); response = ' '; if (LYSelectPopups) { #if !defined(VMS) || defined(USE_SLANG) @@ -919,18 +935,34 @@ draw_options: case 'c': /* Change display charset setting. */ case 'C': if (!LYSelectPopups) { - current_char_set = boolean_choice(current_char_set, +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN + displayed_display_charset_idx = LYChooseBoolean(displayed_display_charset_idx, L_Charset, -1, - (char **)LYchar_set_names); + display_charset_choices); + current_char_set = display_charset_map[displayed_display_charset_idx]; +#else + current_char_set = LYChooseBoolean(current_char_set, + L_Charset, -1, + LYchar_set_names); +#endif } else { - current_char_set = popup_choice(current_char_set, +#ifndef ALL_CHARSETS_IN_O_MENU_SCREEN + displayed_display_charset_idx = LYChoosePopup(displayed_display_charset_idx, L_Charset, -1, - (char **)LYchar_set_names, + display_charset_choices, 0, FALSE, FALSE); + current_char_set = display_charset_map[displayed_display_charset_idx]; +#else + current_char_set = LYChoosePopup(current_char_set, + L_Charset, -1, + LYchar_set_names, + 0, FALSE, FALSE); +#endif + #if defined(VMS) || defined(USE_SLANG) move(L_Charset, COL_OPTION_VALUES); clrtoeol(); - addstr((char *)LYchar_set_names[current_char_set]); + LYaddstr(LYchar_set_names[current_char_set]); #endif /* VMS || USE_SLANG */ } /* @@ -976,7 +1008,7 @@ draw_options: choices[1] = NULL; StrAllocCopy(choices[1], "ON "); choices[2] = NULL; - LYRawMode = boolean_choice(LYRawMode, L_Rawmode, -1, choices); + LYRawMode = LYChooseBoolean(LYRawMode, L_Rawmode, -1, choices); /* * Set the LYUseDefaultRawMode value and character * handling if LYRawMode was changed. - FM @@ -1073,7 +1105,7 @@ draw_options: choices[1] = NULL; StrAllocCopy(choices[1], "ON "); choices[2] = NULL; - vi_keys = boolean_choice(vi_keys, + vi_keys = LYChooseBoolean(vi_keys, L_Bool_A, C_VIKEYS, choices); if (vi_keys) { @@ -1096,7 +1128,7 @@ draw_options: choices[1] = NULL; StrAllocCopy(choices[1], "ON "); choices[2] = NULL; - emacs_keys = boolean_choice(emacs_keys, + emacs_keys = LYChooseBoolean(emacs_keys, L_Bool_A, C_EMACSKEYS, choices); if (emacs_keys) { @@ -1122,7 +1154,7 @@ draw_options: choices[1] = NULL; StrAllocCopy(choices[1], "ON "); choices[2] = NULL; - show_dotfiles = boolean_choice(show_dotfiles, + show_dotfiles = LYChooseBoolean(show_dotfiles, L_Bool_A, C_SHOW_DOTFILES, choices); @@ -1142,7 +1174,7 @@ draw_options: choices[1] = NULL; StrAllocCopy(choices[1], "ON "); choices[2] = NULL; - LYSelectPopups = boolean_choice(LYSelectPopups, + LYSelectPopups = LYChooseBoolean(LYSelectPopups, L_Bool_B, C_SELECT_POPUPS, choices); @@ -1173,7 +1205,7 @@ draw_options: choices[1] = NULL; StrAllocCopy(choices[1], "ON "); choices[2] = NULL; - LYShowColor = boolean_choice((LYShowColor - 1), + LYShowColor = LYChooseBoolean((LYShowColor - 1), L_Color, C_COLOR, choices); @@ -1204,18 +1236,18 @@ draw_options: choices[4] = NULL; do { if (!LYSelectPopups) { - chosen = boolean_choice(LYChosenShowColor, + chosen = LYChooseBoolean(LYChosenShowColor, L_Color, C_COLOR, choices); } else { - chosen = popup_choice(LYChosenShowColor, + chosen = LYChoosePopup(LYChosenShowColor, L_Color, C_COLOR, choices, 4, FALSE, FALSE); } #if defined(COLOR_CURSES) - again = (chosen == 2 && !has_colors()); + again = (BOOL) (chosen == 2 && !has_colors()); if (again) { char * terminal = getenv("TERM"); if (terminal) @@ -1276,7 +1308,7 @@ draw_options: choices[1] = NULL; StrAllocCopy(choices[1], "ON "); choices[2] = NULL; - LYShowCursor = boolean_choice(LYShowCursor, + LYShowCursor = LYChooseBoolean(LYShowCursor, L_Bool_B, C_SHOW_CURSOR, choices); @@ -1301,11 +1333,11 @@ draw_options: "Links and form fields are numbered"); choices[3] = NULL; if (!LYSelectPopups) { - keypad_mode = boolean_choice(keypad_mode, + keypad_mode = LYChooseBoolean(keypad_mode, L_Keypad, -1, choices); } else { - keypad_mode = popup_choice(keypad_mode, + keypad_mode = LYChoosePopup(keypad_mode, L_Keypad, -1, choices, 3, FALSE, FALSE); @@ -1341,11 +1373,11 @@ draw_options: case 'n': /* Change line editor key bindings. */ case 'N': if (!LYSelectPopups) { - current_lineedit = boolean_choice(current_lineedit, + current_lineedit = LYChooseBoolean(current_lineedit, L_Lineed, -1, LYLineeditNames); } else { - current_lineedit = popup_choice(current_lineedit, + current_lineedit = LYChoosePopup(current_lineedit, L_Lineed, -1, LYLineeditNames, 0, FALSE, FALSE); @@ -1374,11 +1406,11 @@ draw_options: case 'y': /* Change keyboard layout */ case 'Y': if (!LYSelectPopups) { - current_layout = boolean_choice(current_layout, + current_layout = LYChooseBoolean(current_layout, L_Layout, -1, LYKbLayoutNames); } else { - current_layout = popup_choice(current_layout, + current_layout = LYChoosePopup(current_layout, L_Layout, -1, LYKbLayoutNames, 0, FALSE, FALSE); @@ -1418,11 +1450,11 @@ draw_options: StrAllocCopy(choices[2], "Mixed style "); choices[3] = NULL; if (!LYSelectPopups) { - dir_list_style = boolean_choice(dir_list_style, + dir_list_style = LYChooseBoolean(dir_list_style, L_Dired, -1, choices); } else { - dir_list_style = popup_choice(dir_list_style, + dir_list_style = LYChoosePopup(dir_list_style, L_Dired, -1, choices, 3, FALSE, FALSE); @@ -1464,16 +1496,16 @@ draw_options: StrAllocCopy(choices[2], "Advanced "); choices[3] = NULL; if (!LYSelectPopups) { - user_mode = boolean_choice(user_mode, + user_mode = LYChooseBoolean(user_mode, L_User_Mode, -1, choices); - use_assume_charset = (user_mode >= 2); + use_assume_charset = (BOOL) (user_mode >= 2); } else { - user_mode = popup_choice(user_mode, + user_mode = LYChoosePopup(user_mode, L_User_Mode, -1, choices, 3, FALSE, FALSE); - use_assume_charset = (user_mode >= 2); + use_assume_charset = (BOOL) (user_mode >= 2); #if defined(VMS) || defined(USE_SLANG) if (use_assume_charset == old_use_assume_charset) { move(L_User_Mode, COL_OPTION_VALUES); @@ -1517,12 +1549,12 @@ draw_options: StrAllocCopy(choices[1], "ON "); choices[2] = NULL; if (!LYSelectPopups) { - verbose_img = boolean_choice(verbose_img, + verbose_img = LYChooseBoolean(verbose_img, L_VERBOSE_IMAGES, C_VERBOSE_IMAGES, choices); } else { - verbose_img = popup_choice(verbose_img, + verbose_img = LYChoosePopup(verbose_img, L_VERBOSE_IMAGES, C_VERBOSE_IMAGES, choices, @@ -1594,7 +1626,7 @@ draw_options: response = ' '; break; -#ifdef ENABLE_OPTS_CHANGE_EXEC +#if defined(ENABLE_OPTS_CHANGE_EXEC) && (defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)) case 'x': /* Change local exec restriction. */ case 'X': if (exec_frozen && !LYSelectPopups) { @@ -1627,11 +1659,11 @@ draw_options: choices[3] = NULL; #endif /* !NEVER_ALLOW_REMOTE_EXEC */ if (!LYSelectPopups) { - itmp = boolean_choice(itmp, + itmp = LYChooseBoolean(itmp, L_Exec, -1, choices); } else { - itmp = popup_choice(itmp, + itmp = LYChoosePopup(itmp, L_Exec, -1, choices, 0, (exec_frozen ? TRUE : FALSE), @@ -1726,7 +1758,7 @@ PRIVATE int boolean_choice ARGS4( int, cur_choice, int, line, int, column, - char **, choices) + CONST char **, choices) { int response = 0; int cmd = 0; @@ -1752,7 +1784,7 @@ PRIVATE int boolean_choice ARGS4( */ move(line, col); start_reverse(); - addstr(choices[cur_choice]); + LYaddstr(choices[cur_choice]); if (LYShowCursor) move(line, (col - 1)); refresh(); @@ -1841,7 +1873,7 @@ PRIVATE int boolean_choice ARGS4( else cur_choice++; } /* end of switch */ - addstr(choices[cur_choice]); + LYaddstr(choices[cur_choice]); if (LYShowCursor) move(line, (col - 1)); refresh(); @@ -1851,7 +1883,7 @@ PRIVATE int boolean_choice ARGS4( */ move(line, col); stop_reverse(); - addstr(choices[cur_choice]); + LYaddstr(choices[cur_choice]); if (term_options) { term_options = FALSE; @@ -1860,7 +1892,7 @@ PRIVATE int boolean_choice ARGS4( } else { _statusline(VALUE_ACCEPTED); } - return(cur_choice); + return (BOOL) (cur_choice); } } } @@ -2185,7 +2217,7 @@ PRIVATE int get_popup_choice_number ARGS1( /* * Load the c argument into the prompt buffer. */ - temp[0] = *c; + temp[0] = (char) *c; temp[1] = '\0'; _statusline(OPTION_CHOICE_NUMBER); @@ -2226,7 +2258,7 @@ PUBLIC int popup_choice ARGS7( int, cur_choice, int, line, int, column, - char **, choices, + CONST char **, choices, int, i_length, int, disabled, BOOLEAN, for_mouse) @@ -2240,7 +2272,7 @@ PUBLIC int popup_choice ARGS7( #endif /* !USE_SLANG */ int num_choices = 0, top, bottom, length = -1; unsigned width = 0; - char ** Cptr = choices; + CONST char ** Cptr = choices; int window_offset = 0; int DisplayLines = (LYlines - 2); char Cnum[64]; @@ -2450,7 +2482,7 @@ redraw: #ifdef USE_SLANG SLsmg_gotorc(top + ((i + 1) - window_offset), (lx - 1 + 2)); addstr(Cnum); - SLsmg_write_nstring(Cptr[i], width); + LYaddnstr(Cptr[i], width); #else wmove(form_window, ((i + 1) - window_offset), 2); wclrtoeol(form_window); @@ -2486,7 +2518,7 @@ redraw: #ifdef USE_SLANG SLsmg_gotorc((top + ((i + 1) - window_offset)), (lx - 1 + 2)); addstr(Cnum); - SLsmg_write_nstring(Cptr[i], width); + LYaddnstr(Cptr[i], width); #else wmove(form_window, ((i + 1) - window_offset), 2); waddstr(form_window, Cnum); @@ -2503,7 +2535,7 @@ redraw: SLsmg_gotorc((top + ((i + 1) - window_offset)), (lx - 1 + 2)); addstr(Cnum); SLsmg_set_color(2); - SLsmg_write_nstring(Cptr[i], width); + LYaddnstr(Cptr[i], width); SLsmg_set_color(0); /* * If LYShowCursor is ON, move the cursor to the left @@ -3254,7 +3286,7 @@ static char * x_display_string = "display"; static char * editor_string = "editor"; static char * emacs_keys_string = "emacs_keys"; -#ifdef ENABLE_OPTS_CHANGE_EXEC +#if defined(ENABLE_OPTS_CHANGE_EXEC) && (defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)) #define EXEC_ALWAYS 2 #define EXEC_LOCAL 1 #define EXEC_NEVER 0 @@ -3638,7 +3670,7 @@ PUBLIC int postoptions ARGS1( /* Emacs keys: ON/OFF */ if (!strcmp(data[i].tag, emacs_keys_string) && GetOptValues(bool_values, data[i].value, &code)) { - if ((emacs_keys = code) != FALSE) { + if ((emacs_keys = (BOOL) code) != FALSE) { set_emacs_keys(); } else { reset_emacs_keys(); @@ -3646,7 +3678,7 @@ PUBLIC int postoptions ARGS1( } /* Execution links: SELECT */ -#ifdef ENABLE_OPTS_CHANGE_EXEC +#if defined(ENABLE_OPTS_CHANGE_EXEC) && (defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)) if (!strcmp(data[i].tag, exec_links_string) && GetOptValues(exec_links_values, data[i].value, &code)) { #ifndef NEVER_ALLOW_REMOTE_EXEC @@ -3702,7 +3734,7 @@ PUBLIC int postoptions ARGS1( /* Search Type: SELECT */ if (!strcmp(data[i].tag, search_type_string) && GetOptValues(search_type_values, data[i].value, &code)) { - case_sensitive = code; + case_sensitive = (BOOL) code; } #ifndef SH_EX /* 1999/01/19 (Tue) */ @@ -3720,7 +3752,7 @@ PUBLIC int postoptions ARGS1( /* Select Popups: ON/OFF */ if (!strcmp(data[i].tag, select_popups_string) && GetOptValues(bool_values, data[i].value, &code)) { - LYSelectPopups = code; + LYSelectPopups = (BOOL) code; } #if defined(USE_SLANG) || defined(COLOR_CURSES) @@ -3741,7 +3773,7 @@ PUBLIC int postoptions ARGS1( /* Show Cursor: ON/OFF */ if (!strcmp(data[i].tag, show_cursor_string) && GetOptValues(bool_values, data[i].value, &code)) { - LYShowCursor = code; + LYShowCursor = (BOOL) code; } /* User Mode: SELECT */ @@ -3777,7 +3809,7 @@ PUBLIC int postoptions ARGS1( if (!strcmp(data[i].tag, verbose_images_string) && GetOptValues(verbose_images_type_values, data[i].value, &code)) { if (verbose_img != code) { - verbose_img = code; + verbose_img = (BOOL) code; need_reload = TRUE; } } @@ -3785,7 +3817,7 @@ PUBLIC int postoptions ARGS1( /* VI Keys: ON/OFF */ if (!strcmp(data[i].tag, vi_keys_string) && GetOptValues(bool_values, data[i].value, &code)) { - if ((vi_keys = code) != FALSE) { + if ((vi_keys = (BOOL) code) != FALSE) { set_vi_keys(); } else { reset_vi_keys(); @@ -3843,7 +3875,7 @@ PUBLIC int postoptions ARGS1( /* Raw Mode: ON/OFF */ if (!strcmp(data[i].tag, raw_mode_string) && GetOptValues(bool_values, data[i].value, &code)) { - LYRawMode = code; + LYRawMode = (BOOL) code; } /* @@ -3863,7 +3895,7 @@ PUBLIC int postoptions ARGS1( /* Show dot files: ON/OFF */ if (!strcmp(data[i].tag, show_dotfiles_string) && (!no_dotfiles) && GetOptValues(bool_values, data[i].value, &code)) { - show_dotfiles = code; + show_dotfiles = (BOOL) code; } /* Preferred Document Character Set: INPUT */ @@ -3921,7 +3953,7 @@ PUBLIC int postoptions ARGS1( HTMLUseCharacterSet(current_char_set); } if (assume_char_set_changed) { - LYRawMode = (UCLYhndl_for_unspec == current_char_set); + LYRawMode = (BOOL) (UCLYhndl_for_unspec == current_char_set); } if (raw_mode_old != LYRawMode || assume_char_set_changed) { /* @@ -4241,7 +4273,7 @@ PRIVATE int gen_options ARGS1( can_do_colors = 1; #if defined(COLOR_CURSES) if (LYCursesON) /* could crash if called before initialization */ - can_do_colors = has_colors(); + can_do_colors = (BOOL) has_colors(); #endif PutLabel(fp0, gettext("Show color")); MaybeSelect(fp0, !can_do_colors, show_color_string); @@ -4308,6 +4340,9 @@ PRIVATE int gen_options ARGS1( if (len > cset_len) cset_len = len; sprintf(temp, "%d", i); +#ifdef EXP_CHARSET_CHOICE + if (!charset_subsets[i].hide_display) +#endif PutOption(fp0, i==current_char_set, temp, LYchar_set_names[i]); } EndSelect(fp0); @@ -4339,6 +4374,9 @@ PRIVATE int gen_options ARGS1( PutLabel(fp0, gettext("Assumed document character set")); BeginSelect(fp0, assume_char_set_string); for (i = 0; i < LYNumCharsets; i++) { +#ifdef EXP_CHARSET_CHOICE + if (!charset_subsets[i].hide_assumed) +#endif PutOption(fp0, i==curval, LYCharSet_UC[i].MIMEname, LYCharSet_UC[i].MIMEname); @@ -4457,7 +4495,7 @@ PRIVATE int gen_options ARGS1( } /* Execution links: SELECT */ -#ifdef ENABLE_OPTS_CHANGE_EXEC +#if defined(ENABLE_OPTS_CHANGE_EXEC) && (defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)) PutLabel(fp0, gettext("Execution links")); BeginSelect(fp0, exec_links_string); #ifndef NEVER_ALLOW_REMOTE_EXEC diff --git a/src/LYOptions.h b/src/LYOptions.h index d0dc120f..98d829d7 100644 --- a/src/LYOptions.h +++ b/src/LYOptions.h @@ -10,10 +10,12 @@ extern int popup_choice PARAMS(( int cur_choice, int line, int column, - char ** choices, - int i_length, + CONST char ** choices, + int length, int disabled, - BOOLEAN for_mouse)); + BOOLEAN mouse)); +#define LYChoosePopup(cur, line, column, choices, length, disabled, mouse) \ + popup_choice(cur, line, column, (CONST char **)choices, length, disabled, mouse) #ifndef NO_OPTION_FORMS extern int postoptions PARAMS((document *newdoc)); diff --git a/src/LYPrettySrc.c b/src/LYPrettySrc.c index 3ff99b35..f7e5538c 100644 --- a/src/LYPrettySrc.c +++ b/src/LYPrettySrc.c @@ -16,10 +16,11 @@ PUBLIC BOOL LYpsrc = FALSE; /* this tells what will be shown on '\': PUBLIC BOOL sgml_in_psrc_was_initialized; PUBLIC BOOL psrc_nested_call; PUBLIC BOOL psrc_first_tag; - +PUBLIC BOOL mark_htext_as_source=FALSE; /* tagspecs from lynx.cfg are read here. After .lss file is read (is with lss support), the style cache and markup are created before entering the mainloop. */ +PUBLIC BOOL psrcview_no_anchor_numbering = FALSE; PUBLIC char* HTL_tagspecs[HTL_num_lexems] = { /* these values are defaults. They are also listed in comments of distibution's lynx.cfg.*/ diff --git a/src/LYPrettySrc.h b/src/LYPrettySrc.h index 14f53c38..e49b3fd8 100644 --- a/src/LYPrettySrc.h +++ b/src/LYPrettySrc.h @@ -21,6 +21,8 @@ extern BOOL psrc_nested_call;/* this is used when distinguishing whether extern BOOL psrc_first_tag; /* this is also used in HTML.c to trigger the 1st tag to preform special. */ +extern BOOL mark_htext_as_source; + /* here is a list of lexem codes. */ typedef enum _HTlexem { HTL_comm=0, @@ -67,6 +69,7 @@ extern int tagname_transform; extern int attrname_transform; +extern BOOL psrcview_no_anchor_numbering; #endif /* ifdef USE_PSRC */ diff --git a/src/LYPrint.c b/src/LYPrint.c index 4fa44c02..ed3a63d9 100644 --- a/src/LYPrint.c +++ b/src/LYPrint.c @@ -526,7 +526,7 @@ PRIVATE void send_file_to_mail ARGS3( disp_charset = NULL; use_cte = FALSE; } - use_type = (disp_charset || HTisDocumentSource()); + use_type = (BOOL) (disp_charset || HTisDocumentSource()); /* * Use newdoc->title as a subject instead of sug_filename: MORE readable @@ -705,8 +705,8 @@ PRIVATE void send_file_to_mail ARGS3( if (use_cte && !disp_charset) use_cte = FALSE; #endif /* NOTDEFINED */ - use_type = (disp_charset || HTisDocumentSource()); - use_mime = (use_cte || use_type); + use_type = (BOOL) (disp_charset || HTisDocumentSource()); + use_mime = (BOOL) (use_cte || use_type); if (use_mime) { fprintf(outfile_fp, "Mime-Version: 1.0\n"); diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c index 53784dae..98525546 100644 --- a/src/LYReadCFG.c +++ b/src/LYReadCFG.c @@ -661,7 +661,7 @@ static int keymap_fun ARGS1( if (strcasecomp(efunc, "PASS!") == 0) { if (func) { lec = LYE_FORM_LAC|lacname_to_lac(func); - success = LYRemapEditBinding(lkc, lec); + success = (BOOL) LYRemapEditBinding(lkc, lec); } if (!success) fprintf(stderr, @@ -673,7 +673,7 @@ static int keymap_fun ARGS1( } if (!success && strncasecomp(efunc, "PASS", 4) == 0) { lec = LYE_FORM_PASS; - success = LYRemapEditBinding(lkc, lec); + success = (BOOL) LYRemapEditBinding(lkc, lec); } if (!success) { if (lec != -1) { @@ -756,8 +756,8 @@ static int news_max_chunk_fun ARGS1( static int news_posting_fun ARGS1( char *, value) { - LYNewsPosting = is_true(value); - no_newspost = (LYNewsPosting == FALSE); + LYNewsPosting = (BOOL) is_true(value); + no_newspost = (BOOL) (LYNewsPosting == FALSE); return 0; } #endif /* DISABLE_NEWS */ @@ -901,9 +901,9 @@ static int nonrest_sigwinch_fun ARGS1( char *, value) { if (!strncasecomp(value, "XWINDOWS", 8)) { - LYNonRestartingSIGWINCH = (LYgetXDisplay() != NULL); + LYNonRestartingSIGWINCH = (BOOL) (LYgetXDisplay() != NULL); } else { - LYNonRestartingSIGWINCH = is_true(value); + LYNonRestartingSIGWINCH = (BOOL) is_true(value); } return 0; } @@ -957,6 +957,91 @@ static int parse_html_src_spec ARGS3( return 0; } +#ifdef EXP_CHARSET_CHOICE +PRIVATE void matched_charset_choice ARGS2( + BOOL, display_charset, + int, i) +{ + int j; + + if (display_charset && !custom_display_charset) { + for (custom_display_charset = TRUE, j = 0; j < LYNumCharsets; ++j) + charset_subsets[j].hide_display = TRUE; + } else if (!display_charset && !custom_assumed_doc_charset) { + for (custom_assumed_doc_charset = TRUE, j = 0; j < LYNumCharsets; ++j) + charset_subsets[j].hide_assumed = TRUE; + } + if (display_charset) + charset_subsets[i].hide_display = FALSE; + else + charset_subsets[i].hide_assumed = FALSE; +} + +PRIVATE int parse_charset_choice ARGS2( + char *, p, + BOOL, display_charset) /*if FALSE, then assumed doc charset*/ +{ + int len, i; + int matches = 0; + + /*only one charset choice is allowed per line!*/ + LYTrimHead(p); + LYTrimTail(p); + CTRACE(tfp, "parsing charset choice for %s:\"%s\"", + (display_charset ? "display charset" : "assumed doc charset"), p); + len = strlen(p); + if (!len) { + CTRACE(tfp," - EMPTY STRING\n"); + return 1; + } + if (*p == '*' && len == 1) { + if (display_charset) + for (custom_display_charset = TRUE, i = 0 ;i < LYNumCharsets; ++i) + charset_subsets[i].hide_display = FALSE; + else + for (custom_assumed_doc_charset = TRUE, i = 0; i < LYNumCharsets; ++i) + charset_subsets[i].hide_assumed = FALSE; + CTRACE(tfp," - all unhidden\n"); + return 0; + } + if (p[len-1] == '*') { + --len; + for (i = 0 ;i < LYNumCharsets; ++i) { + if ((!strncasecmp(p, LYchar_set_names[i], len)) || + (!strncasecmp(p, LYCharSet_UC[i].MIMEname, len)) ) { + ++matches; + matched_charset_choice(display_charset, i); + } + } + CTRACE(tfp," - %d matches\n", matches); + return 0; + } else { + for (i = 0; i < LYNumCharsets; ++i) { + if ((!strcasecmp(p,LYchar_set_names[i])) || + (!strcasecmp(p,LYCharSet_UC[i].MIMEname)) ) { + matched_charset_choice(display_charset, i); + CTRACE(tfp," - OK\n"); + ++matches; + return 0; + } + } + CTRACE(tfp," - NOT recognised\n"); + return 1; + } +} + +PRIVATE int parse_display_charset_choice ARGS1(char*,p) +{ + return parse_charset_choice(p,1); +} + +PRIVATE int parse_assumed_doc_charset_choice ARGS1(char*,p) +{ + return parse_charset_choice(p,0); +} + +#endif /* EXP_CHARSET_CHOICE */ + #if defined(__STDC__) || defined(_WIN_CC) #define defHTSRC_parse_fun(x) static int html_src_set_##x ARGS1( char*,str) \ { parse_html_src_spec(HTL_##x,str,#x); return 0; } @@ -1035,6 +1120,9 @@ static Config_Type Config_Table [] = PARSE_FUN("assume_charset", CONF_FUN, assume_charset_fun), PARSE_FUN("assume_local_charset", CONF_FUN, assume_local_charset_fun), PARSE_FUN("assume_unrec_charset", CONF_FUN, assume_unrec_charset_fun), +#ifdef EXP_CHARSET_CHOICE + PARSE_FUN("assumed_doc_charset_choice",CONF_FUN,parse_assumed_doc_charset_choice), +#endif PARSE_SET("block_multi_bookmarks", CONF_BOOL, &LYMBMBlocked), PARSE_SET("bold_h1", CONF_BOOL, &bold_H1), PARSE_SET("bold_headers", CONF_BOOL, &bold_headers), @@ -1070,6 +1158,9 @@ static Config_Type Config_Table [] = #ifdef DIRED_SUPPORT PARSE_FUN("dired_menu", CONF_FUN, dired_menu_fun), #endif +#ifdef EXP_CHARSET_CHOICE + PARSE_FUN("display_charset_choice",CONF_FUN,parse_display_charset_choice), +#endif PARSE_ADD("downloader", CONF_ADD_ITEM, downloaders), PARSE_SET("emacs_keys_always_on", CONF_BOOL, &emacs_keys), PARSE_SET("enable_scrollback", CONF_BOOL, &enable_scrollback), @@ -1203,6 +1294,9 @@ static Config_Type Config_Table [] = PARSE_SET("prepend_base_to_source", CONF_BOOL, &LYPrependBaseToSource), PARSE_SET("prepend_charset_to_source", CONF_BOOL, &LYPrependCharsetToSource), PARSE_FUN("printer", CONF_FUN, printer_fun), +#ifdef USE_PSRC + PARSE_SET("psrcview_no_anchor_numbering", CONF_BOOL, &psrcview_no_anchor_numbering), +#endif PARSE_SET("quit_default_yes", CONF_BOOL, &LYQuitDefaultYes), PARSE_SET("reuse_tempfiles", CONF_BOOL, &LYReuseTempfiles), #ifndef NO_RULES @@ -1318,7 +1412,7 @@ PRIVATE Config_Type *lookup_config ARGS1( char *, name) { Config_Type *tbl = Config_Table; - char ch = TOUPPER(*name); + char ch = (char) TOUPPER(*name); while (tbl->name != 0) { char ch1 = tbl->name[0]; @@ -1481,7 +1575,7 @@ PRIVATE void do_read_cfg ARGS5( : tbl->type) { case CONF_BOOL: if (q->set_value != 0) - *(q->set_value) = is_true (value); + *(q->set_value) = (BOOL) is_true (value); break; case CONF_FUN: diff --git a/src/LYSearch.c b/src/LYSearch.c index a9cace09..995d8135 100644 --- a/src/LYSearch.c +++ b/src/LYSearch.c @@ -147,23 +147,23 @@ PRIVATE int check_for_target_in_links ARGS2( if (i == nlinks) return(FALSE); - + *cur = i; return(TRUE); } /* * Textsearch checks the prev_target variable to see if it is empty. - * If it is then it requests a new search string. It then searches + * If it is then it requests a new search string. It then searches * the current file for the next instance of the search string and * finds the line number that the string is on - * + * * This is the primary USER search engine and is case sensitive * or case insensitive depending on the 'case_sensitive' global * variable * */ - + PUBLIC BOOL textsearch ARGS3( document *, cur_doc, char *, prev_target, @@ -352,9 +352,9 @@ check_recall: * Found in link, changed cur, we're done. */ highlight(OFF, oldcur, prev_target); - return(TRUE); + return(TRUE); } - + /* * We'll search the text starting from the * link we are on, or the next page. @@ -374,5 +374,5 @@ check_recall: highlight(OFF, oldcur, prev_target); return(TRUE); } - return(www_search_result > 0); + return (BOOL) (www_search_result > 0); } diff --git a/src/LYShowInfo.c b/src/LYShowInfo.c index d7389761..1c8af4d7 100644 --- a/src/LYShowInfo.c +++ b/src/LYShowInfo.c @@ -40,7 +40,7 @@ PUBLIC int showinfo ARGS4( char *name; CONST char *cp; #ifdef ADVANCED_INFO - BOOLEAN LYInfoAdvanced = (user_mode == ADVANCED_MODE); + BOOLEAN LYInfoAdvanced = (BOOL) (user_mode == ADVANCED_MODE); #endif #ifdef DIRED_SUPPORT diff --git a/src/LYStrings.c b/src/LYStrings.c index 1d7976bf..51d3df31 100644 --- a/src/LYStrings.c +++ b/src/LYStrings.c @@ -562,7 +562,11 @@ PUBLIC int LYmbcsstrlen ARGS2( #define GetChar SLkp_getkey #endif /* DJGPP_KEYHANDLER */ #else +#ifdef __CYGWIN__ +#define GetChar SLkp_getkey +#else #define GetChar (int)SLang_getkey +#endif /* __CYGWIN__ */ #endif /* __DJGPP__ */ #endif /* VMS */ #endif /* USE_SLANG */ @@ -1249,11 +1253,11 @@ PRIVATE int LYmouse_menu ARGS4(int, x, int, y, int, atlink, int, code) /* Somehow the mouse is over the number instead of being over the name, so we decrease x. */ - c = popup_choice((atlink ? 2 : 10) - 1, y, (x > 5 ? x-5 : 1), + c = LYChoosePopup((atlink ? 2 : 10) - 1, y, (x > 5 ? x-5 : 1), (atlink ? choices_link : choices), (atlink - ? (sizeof(actions_link)/sizeof(int)) - : (sizeof(actions)/sizeof(int))), FALSE, TRUE); + ? TABLESIZE(actions_link) + : TABLESIZE(actions)), FALSE, TRUE); /* * popup_choice() in LYOptions.c wasn't really meant to be used @@ -1590,7 +1594,7 @@ re_read: current_modifier = LKC_MOD2; c = a; /* We're not yet done if ESC + curses-keysym: */ - done_esc = ((a & ~0xFF) == 0); + done_esc = (BOOL) ((a & ~0xFF) == 0); break; } CTRACE(tfp,"Unknown key sequence: %d:%d:%d\n",c,b,a); @@ -2070,7 +2074,7 @@ re_read: } } #endif /* DGJPP_KEYHANDLER */ -#if defined(USE_SLANG) && defined(__DJGPP__) && !defined(DJGPP_KEYHANDLER) && !defined(USE_KEYMAPS) +#if defined(USE_SLANG) && (defined(__DJGPP__) || defined(__CYGWIN__)) && !defined(DJGPP_KEYHANDLER) && !defined(USE_KEYMAPS) else { switch(c) { case SL_KEY_DOWN: /* The four arrow keys ... */ @@ -2152,7 +2156,7 @@ PUBLIC void LYLowerCase ARGS1( } i++; } else { - buffer[i] = TOLOWER(buffer[i]); + buffer[i] = (unsigned char) TOLOWER(buffer[i]); } } #else @@ -2732,7 +2736,7 @@ PUBLIC int LYEdit1 ARGS4( Pos++; return(0); } - i = Buf[Pos-1]; Buf[Pos-1] = Buf[Pos]; Buf[Pos++] = i; + i = Buf[Pos-1]; Buf[Pos-1] = Buf[Pos]; Buf[Pos++] = (char) i; break; case LYE_SETMARK: @@ -3143,7 +3147,8 @@ again: * Terminate the string and return. */ strcpy(inputline, MyEdit.buffer); - LYAddToCloset(MyEdit.buffer); + if (!hidden) + LYAddToCloset(MyEdit.buffer); return(ch); #if defined(WIN_EX) diff --git a/src/LYStyle.c b/src/LYStyle.c index 4943ca7f..0b8a5dd1 100644 --- a/src/LYStyle.c +++ b/src/LYStyle.c @@ -1,6 +1,6 @@ /* character level styles for Lynx * (c) 1996 Rob Partington -- donated to the Lyncei (if they want it :-) - * @Id: LYStyle.c 1.31 Fri, 13 Aug 1999 07:27:27 -0600 dickey @ + * @Id: LYStyle.c 1.32 Thu, 26 Aug 1999 05:31:19 -0600 dickey @ */ #include <HTUtils.h> #include <HTML.h> @@ -33,22 +33,24 @@ PUBLIC int last_colorattr_ptr=0; PUBLIC bucket hashStyles[CSHASHSIZE]; PUBLIC bucket special_bucket = { - "<special>" /* in order something to be in trace. */ + "<special>", /* in order something to be in trace. */ + 0, 0, 0, 0, NULL }; PUBLIC bucket nostyle_bucket = { - "<NOSTYLE>" /* in order something to be in trace. */ + "<NOSTYLE>", /* in order something to be in trace. */ + 0, 0, 0, 0, NULL }; PUBLIC int cached_tag_styles[HTML_ELEMENTS]; PUBLIC int current_tag_style; -PUBLIC BOOL force_current_tag_style=FALSE; +PUBLIC BOOL force_current_tag_style = FALSE; PUBLIC char* forced_classname; PUBLIC BOOL force_classname; /* definitions for the mono attributes we can use */ static int ncursesMono[7] = { - A_NORMAL, A_BOLD, A_REVERSE, A_UNDERLINE, A_STANDOUT, A_BLINK, A_DIM + A_NORMAL, A_BOLD, A_REVERSE, A_UNDERLINE, A_STANDOUT, A_BLINK, A_DIM }; /* @@ -57,7 +59,7 @@ static int ncursesMono[7] = { */ static char *Mono_Strings[7] = { - "normal", "bold", "reverse", "underline", "standout", "blink", "dim" + "normal", "bold", "reverse", "underline", "standout", "blink", "dim" }; /* Remember the hash codes for common elements */ diff --git a/src/LYTraversal.c b/src/LYTraversal.c index 6af29e1c..9aa1d97c 100644 --- a/src/LYTraversal.c +++ b/src/LYTraversal.c @@ -58,7 +58,7 @@ PUBLIC BOOLEAN lookup ARGS1(char *,target) FREE(buffer); fclose(ifp); - return(result); + return (BOOL) (result); } PUBLIC void add_to_table ARGS1(char *,target) @@ -169,5 +169,5 @@ PUBLIC BOOLEAN lookup_reject ARGS1(char *,target) FREE(line); fclose(ifp); - return(result); + return (BOOL) (result); } diff --git a/src/LYUtils.c b/src/LYUtils.c index f15839a3..1501c80b 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -17,6 +17,11 @@ #include <LYMainLoop.h> #include <LYKeymap.h> +#ifdef __DJGPP__ +#include <go32.h> +#include <sys/exceptn.h> +#endif /* __DJGPP__ */ + #ifndef NO_GROUPS #include <HTFile.h> #endif @@ -130,7 +135,7 @@ PUBLIC void highlight ARGS3( int LenNeeded; BOOL TargetEmphasisON = FALSE; #endif - BOOL utf_flag = (LYCharSet_UC[current_char_set].enc == UCT_ENC_UTF8); + BOOL utf_flag = (BOOL)(LYCharSet_UC[current_char_set].enc == UCT_ENC_UTF8); #if defined(USE_COLOR_STYLE) && !defined(NO_HILIT_FIX) BOOL hl2_drawn=FALSE; /* whether links[cur].hightext2 is already drawn properly */ @@ -2097,7 +2102,7 @@ PUBLIC int LYConsoleInputFD ARGS1( #ifdef USE_SLANG if (!LYCursesON) fd = fileno(stdin); -#if SLANG_VERSION >= 9919 +#if ((SLANG_VERSION >= 9919) && defined(UNIX)) /* SLang_TT_Read_FD introduced in slang 0.99.19, from its changelog: * SLang_TT_Read_FD variable is now available for unix. This is the file * descriptor used by SLang_getkey. */ @@ -2382,13 +2387,13 @@ PUBLIC BOOLEAN LYisAbsPath ARGS1( { BOOLEAN result; #ifdef DOSPATH - result = (LYIsPathSep(path[0]) + result = (BOOL) (LYIsPathSep(path[0]) || (isalpha(path[0]) && (path[1] == ':') && LYIsPathSep(path[2]))); #else result = (LYIsPathSep(path[0])); -#endif /* __DJGPP__ */ +#endif /* DOSPATH */ return result; } @@ -2405,7 +2410,7 @@ PUBLIC BOOLEAN LYisRootPath ARGS1( && LYIsPathSep(path[2])) return TRUE; #endif - return ((strlen(path) == 1) && LYIsPathSep(path[0])); + return (BOOL) ((strlen(path) == 1) && LYIsPathSep(path[0])); } /* @@ -4731,7 +4736,8 @@ PUBLIC int win32_check_interrupt() void sleep(unsigned sec) { - int i, j, c; + unsigned int i, j; + int c; for (j = 0; j < sec; j++) { for (i = 0; i < 10; i++) { @@ -4775,7 +4781,7 @@ PUBLIC BOOLEAN LYExpandHostForURL ARGS3( char *Path = NULL; char *Fragment = NULL; BOOLEAN GotHost = FALSE; - BOOLEAN Startup = (helpfilepath == NULL); + BOOLEAN Startup = (BOOL) (helpfilepath == NULL); #ifdef _WINDOWS int hoststat; struct hostent *phost; /* Pointer to host - See netdb.h */ @@ -4851,11 +4857,8 @@ PUBLIC BOOLEAN LYExpandHostForURL ARGS3( } else if (Startup && !dump_output_immediately) { fprintf(stdout, "%s '%s'%s\n", WWW_FIND_MESSAGE, host, FIRST_SEGMENT); } -#ifndef DJGPP + if (LYGetHostByName(host) != NULL) -#else - if (resolve(host) != 0) -#endif /* DJGPP */ { /* * Clear any residual interrupt. - FM @@ -4875,11 +4878,11 @@ PUBLIC BOOLEAN LYExpandHostForURL ARGS3( FREE(MsgStr); return GotHost; } -#ifndef DJGPP - else if (LYCursesON && (lynx_nsl_status == HT_INTERRUPTED)) -#else /* DJGPP */ +#if defined(__DJGPP__) && !defined(WATT32) else if (LYCursesON && HTCheckForInterrupt()) -#endif /* DJGPP */ +#else /* normal systems */ + else if (LYCursesON && (lynx_nsl_status == HT_INTERRUPTED)) +#endif { /* * Give the user chance to interrupt lookup cycles. - KW & FM @@ -4976,11 +4979,7 @@ PUBLIC BOOLEAN LYExpandHostForURL ARGS3( } else if (Startup && !dump_output_immediately) { fprintf(stdout, "%s '%s'%s\n", WWW_FIND_MESSAGE, host, GUESSING_SEGMENT); } -#ifdef DJGPP - GotHost = (resolve(host) != 0); -#else - GotHost = (LYGetHostByName(host) != NULL); -#endif /* DJGPP */ + GotHost = (BOOL) (LYGetHostByName(host) != NULL); if (HostColon != NULL) { *HostColon = ':'; } @@ -4988,11 +4987,11 @@ PUBLIC BOOLEAN LYExpandHostForURL ARGS3( /* * Give the user chance to interrupt lookup cycles. - KW */ -#ifdef DJGPP +#if defined(__DJGPP__) && !defined(WATT32) if (LYCursesON && HTCheckForInterrupt()) -#else /* !DJGPP */ +#else /* normal systems */ if (LYCursesON && (lynx_nsl_status == HT_INTERRUPTED)) -#endif /* DJGPP */ +#endif { CTRACE(tfp, "LYExpandHostForURL: Interrupted while '%s' failed to resolve.\n", @@ -5206,7 +5205,7 @@ PUBLIC void LYTrimRelFromAbsPath ARGS1( /* * Check whether the path has a terminal slash. - FM */ - TerminalSlash = LYIsPathSep(path[(strlen(path) - 1)]); + TerminalSlash = (BOOL) (LYIsPathSep(path[(strlen(path) - 1)])); /* * Simplify the path and then do any necessary trimming. - FM @@ -6166,7 +6165,7 @@ PRIVATE FILE *OpenHiddenFile ARGS2(char *, name, char *, mode) fd = open(name, O_CREAT|O_EXCL|O_WRONLY, HIDE_CHMOD); } if (fd >= 0) { -#ifdef O_BINARY /* for __CYGWIN_ */ +#if defined(O_BINARY) && defined(__CYGWIN__) if (mode[1] == 'b') setmode(fd, O_BINARY); #endif @@ -6450,7 +6449,7 @@ PUBLIC FILE *LYOpenTempRewrite ARGS3( #ifndef NO_GROUPS writable_exists = HTEditable(fname); /* existing, can write */ #else - writable_exists = (stat(fname, &stat_buf) == 0); /* existing, assume can write */ + writable_exists = (BOOL) (stat(fname, &stat_buf) == 0); /* existing, assume can write */ #endif if (writable_exists) { diff --git a/src/LYrcFile.c b/src/LYrcFile.c index cc9d6221..adcc312f 100644 --- a/src/LYrcFile.c +++ b/src/LYrcFile.c @@ -480,7 +480,7 @@ PUBLIC void read_rc NOPARAMS #endif /* DISP_PARTIAL */ #endif /* NOTUSED */ -#ifdef ENABLE_OPTS_CHANGE_EXEC +#if defined(ENABLE_OPTS_CHANGE_EXEC) && (defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)) /* * Local execution mode - all links. */ diff --git a/src/UCAux.c b/src/UCAux.c index bf4ab8b0..dd8e9cb3 100644 --- a/src/UCAux.c +++ b/src/UCAux.c @@ -172,7 +172,7 @@ PUBLIC void UCSetTransParams ARGS5( ** The "transparent" display character set is a ** "super raw mode". - FM */ - pT->transp = (!strcmp(p_in->MIMEname, "x-transparent") || + pT->transp = (BOOL) (!strcmp(p_in->MIMEname, "x-transparent") || !strcmp(p_out->MIMEname, "x-transparent")); if (pT->transp) { @@ -186,8 +186,8 @@ PUBLIC void UCSetTransParams ARGS5( pT->use_raw_char_in = TRUE; pT->strip_raw_char_in = FALSE; pT->pass_160_173_raw = TRUE; - pT->repl_translated_C0 = (p_out->enc == UCT_ENC_8BIT_C0); - pT->trans_C0_to_uni = (p_in->enc == UCT_ENC_8BIT_C0 || + pT->repl_translated_C0 = (BOOL) (p_out->enc == UCT_ENC_8BIT_C0); + pT->trans_C0_to_uni = (BOOL) (p_in->enc == UCT_ENC_8BIT_C0 || p_out->enc == UCT_ENC_8BIT_C0); } else { /* @@ -199,13 +199,13 @@ PUBLIC void UCSetTransParams ARGS5( ** Set this element if we want to treat ** the input as CJK. - FM */ - pT->do_cjk = ((p_in->enc == UCT_ENC_CJK) && (HTCJK != NOCJK)); + pT->do_cjk = (BOOL) ((p_in->enc == UCT_ENC_CJK) && (HTCJK != NOCJK)); /* ** Set these elements based on whether ** we are dealing with UTF-8. - FM */ - pT->decode_utf8 = (p_in->enc == UCT_ENC_UTF8); - pT->output_utf8 = (p_out->enc == UCT_ENC_UTF8); + pT->decode_utf8 = (BOOL) (p_in->enc == UCT_ENC_UTF8); + pT->output_utf8 = (BOOL) (p_out->enc == UCT_ENC_UTF8); if (pT->do_cjk) { /* ** Set up the structure for a CJK input with @@ -227,7 +227,7 @@ PUBLIC void UCSetTransParams ARGS5( ** equivalent to them, i.e., if we have UCS without ** having to do a table translation. */ - intm_ucs = (cs_in == LATIN1 || pT->decode_utf8 || + intm_ucs = (BOOL) (cs_in == LATIN1 || pT->decode_utf8 || (p_in->codepoints & (UCT_CP_SUBSETOF_LAT1|UCT_CP_SUBSETOF_UCS2))); /* @@ -237,7 +237,7 @@ PUBLIC void UCSetTransParams ARGS5( ** that use the transformation structure, so it is ** treated as already Unicode here. */ - pT->trans_to_uni = (!intm_ucs && + pT->trans_to_uni = (BOOL) (!intm_ucs && UCCanUniTranslateFrom(cs_in)); /* ** We set this if we are translating to Unicode and @@ -245,12 +245,12 @@ PUBLIC void UCSetTransParams ARGS5( ** fact are encoding octets for the input charset ** (presently, this applies to VISCII). - FM */ - pT->trans_C0_to_uni = (pT->trans_to_uni && + pT->trans_C0_to_uni = (BOOL) (pT->trans_to_uni && p_in->enc == UCT_ENC_8BIT_C0); /* ** We set this, presently, for VISCII. - FM */ - pT->repl_translated_C0 = (p_out->enc == UCT_ENC_8BIT_C0); + pT->repl_translated_C0 = (BOOL) (p_out->enc == UCT_ENC_8BIT_C0); /* ** Currently unused for any charset combination. ** Should always be FALSE @@ -260,7 +260,7 @@ PUBLIC void UCSetTransParams ARGS5( ** use_ucs should be set TRUE if we have or will create ** Unicode values for input octets or UTF multibytes. - FM */ - use_ucs = (intm_ucs || pT->trans_to_uni); + use_ucs = (BOOL) (intm_ucs || pT->trans_to_uni); /* ** This is set TRUE if use_ucs was set FALSE. It is ** complementary to the HTPassEightBitRaw flag, which @@ -268,19 +268,19 @@ PUBLIC void UCSetTransParams ARGS5( ** setting in relation to the current Display Character ** Set. - FM */ - pT->do_8bitraw = (!use_ucs); + pT->do_8bitraw = (BOOL) (!use_ucs); /* ** This is set TRUE when 160 and 173 should not be ** treated as nbsp and shy, respectively. - FM */ - pT->pass_160_173_raw = (!use_ucs && + pT->pass_160_173_raw = (BOOL) (!use_ucs && !(p_in->like8859 & UCT_R_8859SPECL)); /* ** This is set when the input and output charsets match, ** and they are not ones which should go through a Unicode ** translation process anyway. - FM */ - pT->use_raw_char_in = (!pT->output_utf8 && + pT->use_raw_char_in = (BOOL) (!pT->output_utf8 && cs_in == cs_out && !pT->trans_C0_to_uni); /* @@ -292,7 +292,7 @@ PUBLIC void UCSetTransParams ARGS5( ** above, but also on HTPassEightBitRaw in any functions ** which use the transformation structure.. - FM */ - pT->trans_from_uni = (use_ucs && !pT->do_8bitraw && + pT->trans_from_uni = (BOOL) (use_ucs && !pT->do_8bitraw && !pT->use_raw_char_in && UCCanTranslateUniTo(cs_out)); } diff --git a/src/UCdomap.c b/src/UCdomap.c index b77bacfd..73b89bcd 100644 --- a/src/UCdomap.c +++ b/src/UCdomap.c @@ -587,7 +587,7 @@ PRIVATE int con_insert_unipair ARGS3( else uni_pagedir[n] = p1; if ( !p1 ) - return -ENOMEM; + return -1; for (i = 0; i < 32; i++) { p1[i] = NULL; @@ -597,7 +597,7 @@ PRIVATE int con_insert_unipair ARGS3( if (!(p2 = p1[n = (unicode >> 6) & 0x1f])) { p2 = p1[n] = (u16 *)malloc(64*sizeof(u16)); if (!p2) - return -ENOMEM; + return -1; for (i = 0; i < 64; i++) { p2[i] = 0xffff; /* No glyph for this character (yet) */ @@ -629,7 +629,7 @@ PRIVATE int con_insert_unipair_str ARGS3( else uni_pagedir_str[n] = p1; if ( !p1 ) - return -ENOMEM; + return -1; for (i = 0; i < 32; i++) { p1[i] = NULL; @@ -640,7 +640,7 @@ PRIVATE int con_insert_unipair_str ARGS3( if (!p1[n]) { p1[n] = (char **)malloc(64*sizeof(char *)); if (!p1[n]) - return -ENOMEM; + return -1; p2 = (CONST char **)p1[n]; for (i = 0; i < 64; i++) { @@ -891,7 +891,7 @@ PRIVATE int con_get_unimap ARGS3( } } *uct = ect; - return ((ect <= ct) ? 0 : -ENOMEM); + return ((ect <= ct) ? 0 : -1); } #endif /* NOTDEFINED */ @@ -1046,6 +1046,8 @@ PUBLIC int UCTransUniChar ARGS2( CONST u16 * ut; if ((UChndl_out = LYCharSet_UC[charset_out].UChndl) < 0) { + if (LYCharSet_UC[charset_out].codepage < 0) + return (unicode < 128) ? (int)unicode : LYCharSet_UC[charset_out].codepage; if ((UChndl_out = default_UChndl) < 0) return -12; isdefault = 1; @@ -1100,6 +1102,8 @@ PUBLIC int UCTransUniCharStr ARGS5( return -13; if ((UChndl_out = LYCharSet_UC[charset_out].UChndl) < 0) { + if (LYCharSet_UC[charset_out].codepage < 0) + return LYCharSet_UC[charset_out].codepage; if ((UChndl_out = default_UChndl) < 0) return -12; isdefault = 1; @@ -1231,6 +1235,8 @@ PUBLIC int UCTransChar ARGS3( if ((UChndl_in = LYCharSet_UC[charset_in].UChndl) < 0) return -11; if ((UChndl_out = LYCharSet_UC[charset_out].UChndl) < 0) { + if (LYCharSet_UC[charset_out].codepage < 0) + return LYCharSet_UC[charset_out].codepage; if ((UChndl_out = default_UChndl) < 0) return -12; isdefault = 1; @@ -1322,7 +1328,7 @@ PUBLIC int UCReverseTransChar ARGS3( int, charset_out) { int Gn; - int rc; + int rc = -1; int UChndl_in, UChndl_out; int isdefault; int i_ch = (unsigned char)ch_out; @@ -1341,6 +1347,8 @@ PUBLIC int UCReverseTransChar ARGS3( if (charset_out < 0) return -12; if ((UChndl_out = LYCharSet_UC[charset_out].UChndl) < 0) { + if (LYCharSet_UC[charset_out].codepage < 0) + return LYCharSet_UC[charset_out].codepage; if ((UChndl_out = default_UChndl) < 0) return -12; isdefault = 1; @@ -1357,19 +1365,14 @@ PUBLIC int UCReverseTransChar ARGS3( */ ut = UCInfo[UChndl_out].unitable; if (ut == UC_current_unitable) { - if ((Gn = UCInfo[UChndl_in].GN) >= 0) { - UC_translate = set_translate(Gn); - rc = inv_translate[i_ch]; - if (rc >= 32) { - return rc; - } - } else { + if ((Gn = UCInfo[UChndl_in].GN) < 0) { Gn = UC_MapGN(UChndl_in,1); - UC_translate = set_translate(Gn); + } + UC_translate = set_translate(Gn); + if (inv_translate) rc = inv_translate[i_ch]; - if (rc >= 32) { - return rc; - } + if (rc >= 32) { + return rc; } } } @@ -1411,6 +1414,8 @@ PUBLIC int UCTransCharStr ARGS6( if (!UCInfo[UChndl_in].num_uni) return -11; if ((UChndl_out = LYCharSet_UC[charset_out].UChndl) < 0) { + if (LYCharSet_UC[charset_out].codepage < 0) + return LYCharSet_UC[charset_out].codepage; if ((UChndl_out = default_UChndl) < 0) return -12; isdefault = 1; @@ -1702,7 +1707,7 @@ PRIVATE CONST char ** UC_setup_LYCharSets_repl ARGS2( CONST char **p; char **prepl; CONST u16 *pp; - CONST char **tp; + char **tp; CONST char *s7; CONST char *s8; size_t i; @@ -1713,7 +1718,7 @@ PRIVATE CONST char ** UC_setup_LYCharSets_repl ARGS2( /* * Create a temporary table for reverse lookup of latin1 codes: */ - tp = (CONST char **)malloc(96 * sizeof(CONST char *)); + tp = (char **)malloc(96 * sizeof(CONST char *)); if (!tp) return NULL; for (i = 0; i < 96; i++) @@ -1758,7 +1763,7 @@ PRIVATE CONST char ** UC_setup_LYCharSets_repl ARGS2( list = UCInfo[UC_charset_in_hndl].replacedesc.entries; while (ct--) { if ((k = list->unicode) >= 160 && k < 256) { - tp[k-160] = list->replace_str; + tp[k-160] = (char *)(list->replace_str); } list++; } @@ -2003,6 +2008,113 @@ PUBLIC void UC_Charset_Setup ARGS9( return; } +/* + * UC_NoUctb_Register_with_LYCharSets, UC_Charset_NoUctb_Setup - + * Alternative functions for adding character set info to the lists + * kept in LYCharSets.c. + * These are for character sets without any real tables of their own. + * We don't keep an entry in UCinfo[] for them. + */ +PRIVATE int UC_NoUctb_Register_with_LYCharSets ARGS5( + CONST char *, UC_MIMEcharset, + CONST char *, UC_LYNXcharset, + int, lowest_eightbit, + int, UC_rawuni, + int, codepage) +{ + int i, LYhndl = -1; + + if (LYNumCharsets == 0) { + /* + * Initialize here; so whoever changes + * LYCharSets.c doesn't have to count... + */ + for (i = 0; (i < MAXCHARSETS) && LYchar_set_names[i]; i++) { + LYNumCharsets = i+1; + } + } + + /* + * Search by MIME name, (LYchar_set_names may differ...) + * ignore if already present! + */ + for (i = 0; i < MAXCHARSETS && LYchar_set_names[i] && LYhndl < 0; i++) { + if (LYCharSet_UC[i].MIMEname && + !strcmp(UC_MIMEcharset, LYCharSet_UC[i].MIMEname)) { + return -1; + } + } + + /* not found */ + if (LYNumCharsets >= MAXCHARSETS) { + CTRACE(tfp, "UC_NoUctb_Register_with_LYCharSets: Too many. Ignoring %s/%s.", + UC_MIMEcharset, UC_LYNXcharset); + return -1; + } + /* + * Add to LYCharSets.c lists. + */ + LYhndl = LYNumCharsets; + LYNumCharsets ++; + LYlowest_eightbit[LYhndl] = lowest_eightbit; + LYCharSets[LYhndl] = SevenBitApproximations; + LYchar_set_names[LYhndl] = UC_LYNXcharset; + LYchar_set_names[LYhndl+1] = NULL; + /* + * Terminating NULL may be looked for by Lynx code. + */ + + LYCharSet_UC[LYhndl].UChndl = -1; /* no corresponding UChndl ! */ + LYCharSet_UC[LYhndl].MIMEname = UC_MIMEcharset; + LYCharSet_UC[LYhndl].enc = UC_rawuni; + LYCharSet_UC[LYhndl].codepage = codepage; + + /* + * @@@ We really SHOULD get more info from the table files, + * and set relevant flags in the LYCharSet_UC[] entry with + * that info... For now, let's try it without. - KW + */ + + return LYhndl; +} + +/* + * A wrapper for the previous function. + */ +PRIVATE void UC_Charset_NoUctb_Setup ARGS6( + CONST char *, UC_MIMEcharset, + CONST char *, UC_LYNXcharset, + int, trydefault, + int, lowest_eight, + int, UC_rawuni, + int, codepage) +{ + int i; + + /* + * Ignore completely if already in slot. + */ + for (i = 0; i < UCNumCharsets; i++) { + if (!strcmp(UCInfo[i].MIMEname, UC_MIMEcharset)) { + return; + } + } + if (UC_rawuni == UCT_ENC_UTF8) + lowest_eight = 128; /* cheat here */ + /* 'codepage' doubles as a flag for 'do not try any table + ** lookup, not even default' when negative. The value will + ** be returned immediately by UCTrans* functions. + */ + if (!trydefault && codepage == 0) + codepage = -12; /* if not already set; any negative should do. */ + UC_NoUctb_Register_with_LYCharSets(UC_MIMEcharset, + UC_LYNXcharset, + lowest_eight, + UC_rawuni, + codepage); + return; +} + #ifdef LY_FIND_LEAKS PRIVATE void UCcleanup_mem NOARGS { diff --git a/src/UCdomap.h b/src/UCdomap.h index 76b56841..18c8e3d6 100644 --- a/src/UCdomap.h +++ b/src/UCdomap.h @@ -79,35 +79,25 @@ extern void UCInit NOARGS; * from Unicode mechanism). For now we use the MIME name that describes * what is output to the terminal. - KW */ -static CONST struct unimapdesc_str dfont_replacedesc_fallback = {0,NULL,0,1}; - -#define UC_CHARSET_SETUP_euc_cn UC_Charset_Setup("euc-cn","Chinese",\ - NULL,NULL,0,dfont_replacedesc_fallback,\ - 128,UCT_ENC_CJK,0) -#define UC_CHARSET_SETUP_euc_jp UC_Charset_Setup("euc-jp","Japanese (EUC-JP)",\ - NULL,NULL,0,dfont_replacedesc_fallback,\ - 128,UCT_ENC_CJK,0) -#define UC_CHARSET_SETUP_shift_jis UC_Charset_Setup("shift_jis","Japanese (Shift_JIS)",\ - NULL,NULL,0,dfont_replacedesc_fallback,\ - 128,UCT_ENC_CJK,0) -#define UC_CHARSET_SETUP_euc_kr UC_Charset_Setup("euc-kr","Korean",\ - NULL,NULL,0,dfont_replacedesc_fallback,\ - 128,UCT_ENC_CJK,0) -#define UC_CHARSET_SETUP_big5 UC_Charset_Setup("big5","Taipei (Big5)",\ - NULL,NULL,0,dfont_replacedesc_fallback,\ - 128,UCT_ENC_CJK,0) + +#define UC_CHARSET_SETUP_euc_cn UC_Charset_NoUctb_Setup("euc-cn","Chinese",\ + 1, 128,UCT_ENC_CJK,0) +#define UC_CHARSET_SETUP_euc_jp UC_Charset_NoUctb_Setup("euc-jp","Japanese (EUC-JP)",\ + 1, 128,UCT_ENC_CJK,0) +#define UC_CHARSET_SETUP_shift_jis UC_Charset_NoUctb_Setup("shift_jis","Japanese (Shift_JIS)",\ + 1, 128,UCT_ENC_CJK,0) +#define UC_CHARSET_SETUP_euc_kr UC_Charset_NoUctb_Setup("euc-kr","Korean",\ + 1, 128,UCT_ENC_CJK,0) +#define UC_CHARSET_SETUP_big5 UC_Charset_NoUctb_Setup("big5","Taipei (Big5)",\ + 1, 128,UCT_ENC_CJK,0) /* * Placeholder for non-translation mode. - FM */ -#define UC_CHARSET_SETUP_x_transparent UC_Charset_Setup("x-transparent","Transparent",\ - NULL,NULL,0,dfont_replacedesc_fallback,\ - 128,1,0) - -static CONST struct unimapdesc_str dfont_replacedesc_NO_fallback = {0,NULL,0,0}; +#define UC_CHARSET_SETUP_x_transparent UC_Charset_NoUctb_Setup("x-transparent","Transparent",\ + 0, 128,UCT_ENC_8BIT,0) -#define UC_CHARSET_SETUP_utf_8 UC_Charset_Setup("utf-8","UNICODE (UTF-8)",\ - NULL,NULL,0,dfont_replacedesc_NO_fallback,\ - 128,UCT_ENC_UTF8,0) +#define UC_CHARSET_SETUP_utf_8 UC_Charset_NoUctb_Setup("utf-8","UNICODE (UTF-8)",\ + 0, 128,UCT_ENC_UTF8,-4) #endif /* UCDOMAP_H */ diff --git a/src/Xsystem.c b/src/Xsystem.c index 7a759c92..cc66aff0 100644 --- a/src/Xsystem.c +++ b/src/Xsystem.c @@ -1,12 +1,9 @@ -/* $Id: Xsystem.c,v 1.2 1999/07/30 16:06:54 tom Exp $ +/* @Id: Xsystem.c 1.3 Thu, 26 Aug 1999 05:31:19 -0600 dickey @ * like system("cmd") but return with exit code of "cmd" * for Turbo-C/MS-C/LSI-C * This code is in the public domain. * - * $Log: Xsystem.c,v $ - * Revision 1.2 1999/07/30 16:06:54 tom - * 2.8.3dev.3 - * + * @Log: Xsystem.c,v @ * Revision 1.1 1999/07/14 16:44:55 tom * Initial revision * @@ -109,7 +106,9 @@ xrealloc(void *p, size_t n) static int NEAR is_builtin_command(char *s) { +#ifdef WIN_EX extern int system_is_NT; /* 1997/11/05 (Wed) 22:10:35 */ +#endif static char *cmdtab[]= { @@ -124,8 +123,11 @@ is_builtin_command(char *s) l = strlen(s); count = sizeof(cmdtab) / sizeof(cmdtab[0]); - if (!system_is_NT) - count--; + count--; +#ifdef WIN_EX + if (system_is_NT) + count++; +#endif for (i = 0; i < count; i++) { if (stricmp(s, cmdtab[i]) == 0) return 1; @@ -159,7 +161,7 @@ csystem(PRO * p, int flag) if ((cmp = getenv("COMSPEC")) == 0) return -2; - SW[0] = getswchar(); + SW[0] = (char) getswchar(); SW[1] = 'c'; SW[2] = 0; rc = spawnl(flag, cmp, cmp, SW, p->cmd, p->arg, (char *) 0); @@ -273,7 +275,7 @@ pars(char *s) if (li >= ls - 2) lb = xrealloc(lb, ls += STR_MAX); if (isk1(c) && *s) { - lb[li++] = c; + lb[li++] = (char) c; lb[li++] = *s++; } else if ((!q && c == '|') || c == 0 || (c == '\n' && *s == 0)) { lb[li++] = 0; @@ -288,9 +290,9 @@ pars(char *s) break; } else if (c == '"') { q = !q; - lb[li++] = c; + lb[li++] = (char) c; } else { - lb[li++] = c; + lb[li++] = (char) c; } } free(lb); diff --git a/src/chrtrans/makeuctb.c b/src/chrtrans/makeuctb.c index 7e6b18da..4a940b7e 100644 --- a/src/chrtrans/makeuctb.c +++ b/src/chrtrans/makeuctb.c @@ -108,7 +108,7 @@ PRIVATE int getunicode ARGS1( unicode unitable[MAX_FONTLEN][255]; int unicount[MAX_FONTLEN]; -struct unimapdesc_str themap_str = {0, NULL}; +struct unimapdesc_str themap_str = {0, NULL, 0, 0}; char *tblname; @@ -1255,12 +1255,12 @@ * the version definition with the Project Version on checkout. Just * ignore it. - kw */ /* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */ -#define LYNX_VERSION "2.8.3dev.6" +#define LYNX_VERSION "2.8.3dev.7" #define LYNX_WWW_HOME "http://lynx.browser.org/" #define LYNX_WWW_DIST "http://www.slcc.edu/lynx/current/" #define LYNX_RELEASE FALSE /* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */ -#define LYNX_DATE "Fri, 13 Aug 1999 07:27:27 -0600" +#define LYNX_DATE "Thu, 26 Aug 1999 05:31:19 -0600" #define LYNX_DATE_OFF 5 /* truncate the automatically-generated date */ #define LYNX_DATE_LEN 11 /* truncate the automatically-generated date */ #define LYNX_RELEASE_DATE "1999" @@ -1320,7 +1320,6 @@ ** elsewhere. ** Currently, if compiled with -DUSE_ZLIB and without -DDIRED_SUPPORT ** (default), the following from the list below are required: -** COPY_PATH (cp.exe) - needed for file downloading ** MV_PATH (mv.exe) - for bookmark handling (DEL_BOOKMARK command) ** UNCOMPRESS_PATH, BZIP2_PATH - for automatic decompression of files in ** these formats |