diff options
| author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-06-04 14:28:00 -0400 |
|---|---|---|
| committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-06-04 14:28:00 -0400 |
| commit | b5ffa7c020e319cbfceee3c506f5c16764800dc2 (patch) | |
| tree | 01d4efe0277a37c6bb05dc6599638822aa8a238d | |
| parent | 6e75abc094af51d02563fd5250d1b55e9bb96912 (diff) | |
| download | lynx-snapshots-b5ffa7c020e319cbfceee3c506f5c16764800dc2.tar.gz | |
snapshot of project "lynx", label v2-8-1dev_14
40 files changed, 1462 insertions, 815 deletions
@@ -1,6 +1,43 @@ Changes since Lynx 2.8 release ================================================================================ +1998-06-04 (2.8.1dev.14) +* minor formatting fixes and documentation for upload screen - LP +* remove config.cache at beginning of configure script - TD +* eliminate cast for GetChar in LYStrings.c (from bug report by Michael Warner, + analysis by BL) - TD +* shorten logs from WWW/* by disabling echo of compiler options as in src/* - TD +* add configure test for types pid_t and uid_t - TD +* add configure test for array type used in getgroups call, to distinguish + between BSD and POSIX variations which use different sizes - TD +* modify configure script to compile DISP_PARTIAL code by default - TD +* fix compiler warnings dealing with unreached statements - TD +* change 'keymap[] array to unsigned char, move logic that relies on its size + into LYKeymap.c - TD +* make LYOpenScratch() work properly for 8.3 names (reported by DK) - TD +* DISP_PARTIAL: introduce separate variables Newline_partial and + NumOfLines_partial, initialize them in mainloop and synchronize with Newline + later when the reload completes (case NORMAL). To reduce the CPU usage while + downloading, call HText_pageDisplay only if NumOfLines_partial is in the + current display page or any Scroll key pressed by the user. We disable + partial_display if requested URL have #fragment, otherwise user will see the + top page first (yes, s/he will be moved to #fragment when the download + completed, but only if no scroll keys were pressed before!). Processing of + "END" key changed from MAXINT to real number of lines in the document + (important for display_partial mode) - LP. +* correct problem that caused DGJPP version built with slang 1.2.2 to lose its + socket whenever the rendering of a http URL is interrupted with "z". This is + in HTCheckForInterrupt in LYUtils.c (reported by John Lewis) - DK +* add files pdcurses.key, slang.key, djgpp.key to document the keybindings + used for DJGPP version - DK +* allow mapping of ALT and Function keys with the DOS port for both the + PDCurses version and the SLANG version with the DJGPP keyhandler. The + extended keys to be mapped have to be specified numerically according to the + definitions in curses.h (for PDCurses) or in keys.h (for SLANG with DJGPP + keyhandler). DJGPP maps keys up to 0x293, while PDCurses maps keys up to + 0x1c0 - DK +* don't try to use -std1 option for gcc on Digital Unix (reported by Michael + Warner <warner@wsu.edu>) - TD 1998-05-23 (2.8.1dev.13) * use new function LYLocalFileToUrl to cleanup some pathname references - TD * eliminate 'tempname()' function, using LYNewTxtFile, etc., with new functions diff --git a/WWW/Library/Implementation/CommonMakefile b/WWW/Library/Implementation/CommonMakefile index c7fe8899..818cb036 100644 --- a/WWW/Library/Implementation/CommonMakefile +++ b/WWW/Library/Implementation/CommonMakefile @@ -68,6 +68,8 @@ LOB = $(WTMP)/Library/$(WWW_MACH) # add -DNEW_GATEWAY here for the new gateway config stuff CFLAGS2 = $(CFLAGS) $(LYFLAGS) $(WAISCFLAGS) -I$(CMN) -DXMOSAIC_HACK -DACCESS_AUTH +COMPILE = $(ECHO) $(CC) $(CFLAGS2) -c + CERNLIBBIN = $(WWW)/bin COMMON = $(LOB)/HTParse.o $(LOB)/HTAccess.o $(LOB)/HTTP.o \ @@ -220,102 +222,102 @@ $(OE) : touch $@ $(LOB)/HTList.o : $(OE) $(CMN)HTList.c $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTList.c + $(COMPILE) $(CMN)HTList.c $(LOB)/HTAnchor.o : $(OE) $(CMN)HTAnchor.c $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAnchor.c + $(COMPILE) $(CMN)HTAnchor.c $(LOB)/HTFormat.o : $(OE) $(CMN)HTFormat.c $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTFormat.c + $(COMPILE) $(CMN)HTFormat.c $(LOB)/HTMIME.o : $(OE) $(CMN)HTMIME.c $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTMIME.c + $(COMPILE) $(CMN)HTMIME.c $(LOB)/HTHistory.o : $(OE) $(CMN)HTHistory.c $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTHistory.c + $(COMPILE) $(CMN)HTHistory.c $(LOB)/HTNews.o : $(OE) $(CMN)HTNews.c $(CMN)HTUtils.h $(CMN)HTList.h\ $(CMN)HTMLDTD.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTNews.c + $(COMPILE) $(CMN)HTNews.c $(LOB)/HTGopher.o : $(OE) $(CMN)HTGopher.c $(CMN)HTUtils.h $(CMN)HTList.h \ $(CMN)HTMLDTD.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTGopher.c + $(COMPILE) $(CMN)HTGopher.c $(LOB)/HTTelnet.o : $(OE) $(CMN)HTTelnet.c $(CMN)HTUtils.h $(CMN)HTTelnet.h $(CMN)../../../userdefs.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTTelnet.c + $(COMPILE) $(CMN)HTTelnet.c $(LOB)/HTFinger.o : $(OE) $(CMN)HTFinger.c $(CMN)HTUtils.h $(CMN)HTList.h \ $(CMN)HTMLDTD.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTFinger.c + $(COMPILE) $(CMN)HTFinger.c $(LOB)/HTStyle.o : $(OE) $(CMN)HTStyle.c $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTStyle.c + $(COMPILE) $(CMN)HTStyle.c $(LOB)/HTAtom.o : $(OE) $(CMN)HTAtom.c $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAtom.c + $(COMPILE) $(CMN)HTAtom.c $(LOB)/HTChunk.o : $(OE) $(CMN)HTChunk.c $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTChunk.c + $(COMPILE) $(CMN)HTChunk.c $(LOB)/HTString.o : $(OE) $(CMN)HTString.c $(CMN)HTUtils.h $(CMN)Version.make - $(CC) -c -o $@ $(CFLAGS2) -DVC=\"$(VC)\" $(CMN)HTString.c + $(COMPILE) -DVC=\"$(VC)\" $(CMN)HTString.c $(LOB)/HTRules.o : $(OE) $(CMN)HTRules.c $(CMN)HTUtils.h $(CMN)Version.make \ $(CMN)HTAAServ.h $(CMN)HTAAProt.h - $(CC) -c -o $@ $(CFLAGS2) -DVC=\"$(VC)\" $(CMN)HTRules.c + $(COMPILE) -DVC=\"$(VC)\" $(CMN)HTRules.c $(LOB)/SGML.o : $(OE) $(CMN)SGML.c $(CMN)HTUtils.h $(CMN)UCAux.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)SGML.c + $(COMPILE) $(CMN)SGML.c $(LOB)/HTMLGen.o : $(OE) $(CMN)HTMLGen.c $(CMN)HTUtils.h $(CMN)HTMLDTD.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTMLGen.c + $(COMPILE) $(CMN)HTMLGen.c $(LOB)/HTMLDTD.o : $(OE) $(CMN)HTMLDTD.c $(CMN)SGML.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTMLDTD.c + $(COMPILE) $(CMN)HTMLDTD.c $(LOB)/HTPlain.o : $(OE) $(CMN)HTPlain.c $(CMN)HTPlain.h $(CMN)HTStream.h \ $(CMN)UCAux.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTPlain.c + $(COMPILE) $(CMN)HTPlain.c $(LOB)/HTWAIS.o : $(OE) $(CMN)HTWAIS.c $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(WAISINC) $(CMN)HTWAIS.c + $(COMPILE) $(WAISINC) $(CMN)HTWAIS.c $(LOB)/HTWSRC.o : $(OE) $(CMN)HTWSRC.c $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTWSRC.c + $(COMPILE) $(CMN)HTWSRC.c $(LOB)/HTWriter.o : $(OE) $(CMN)HTWriter.c $(CMN)HTWriter.h $(CMN)HTStream.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTWriter.c + $(COMPILE) $(CMN)HTWriter.c # Access Authorization $(LOB)/HTAAUtil.o : $(OE) $(CMN)HTAAUtil.c $(CMN)HTAAUtil.h \ $(CMN)HTUtils.h $(CMN)HTString.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAAUtil.c + $(COMPILE) $(CMN)HTAAUtil.c $(LOB)/HTAAFile.o : $(OE) $(CMN)HTAAFile.c $(CMN)HTAAFile.h \ $(CMN)HTAAUtil.h $(CMN)HTUtils.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAAFile.c + $(COMPILE) $(CMN)HTAAFile.c $(LOB)/HTPasswd.o : $(OE) $(CMN)HTPasswd.c $(CMN)HTPasswd.h \ $(CMN)HTAAUtil.h $(CMN)HTAAFile.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTPasswd.c + $(COMPILE) $(CMN)HTPasswd.c $(LOB)/HTGroup.o : $(OE) $(CMN)HTGroup.c $(CMN)HTGroup.h \ $(CMN)HTAAUtil.h $(CMN)HTAAFile.h \ $(CMN)HTAssoc.h $(CMN)HTLex.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTGroup.c + $(COMPILE) $(CMN)HTGroup.c $(LOB)/HTACL.o : $(OE) $(CMN)HTACL.c $(CMN)HTACL.h \ $(CMN)HTAAUtil.h $(CMN)HTAAFile.h $(CMN)HTGroup.h \ $(CMN)HTAssoc.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTACL.c + $(COMPILE) $(CMN)HTACL.c $(LOB)/HTAuth.o : $(OE) $(CMN)HTAuth.c $(CMN)HTAuth.h \ $(CMN)HTAAUtil.h $(CMN)HTPasswd.h $(CMN)HTAAFile.h \ $(CMN)HTAssoc.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAuth.c + $(COMPILE) $(CMN)HTAuth.c $(LOB)/HTAAServ.o : $(OE) $(CMN)HTAAServ.c $(CMN)HTAAServ.h \ $(CMN)HTAAUtil.h $(CMN)HTAAFile.h $(CMN)HTPasswd.h \ @@ -323,52 +325,52 @@ $(LOB)/HTAAServ.o : $(OE) $(CMN)HTAAServ.c $(CMN)HTAAServ.h \ $(CMN)HTUU.h $(CMN)HTParse.h $(CMN)HTList.h \ $(CMN)HTUtils.h $(CMN)HTString.h $(CMN)HTRules.h \ $(CMN)HTAAProt.h $(CMN)HTAssoc.h $(CMN)HTLex.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAAServ.c + $(COMPILE) $(CMN)HTAAServ.c $(LOB)/HTAABrow.o : $(OE) $(CMN)HTAABrow.c $(CMN)HTAABrow.h \ $(CMN)HTAAUtil.h $(CMN)HTUU.h \ $(CMN)HTUtils.h $(CMN)HTString.h \ $(CMN)HTParse.h $(CMN)HTList.h \ $(CMN)HTAssoc.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAABrow.c + $(COMPILE) $(CMN)HTAABrow.c $(LOB)/HTAAProt.o : $(OE) $(CMN)HTAAProt.c $(CMN)HTAAProt.h \ $(CMN)HTUtils.h $(CMN)HTAAUtil.h $(CMN)HTAAFile.h \ $(CMN)HTAssoc.h $(CMN)HTLex.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAAProt.c + $(COMPILE) $(CMN)HTAAProt.c $(LOB)/HTAssoc.o : $(OE) $(CMN)HTAssoc.c $(CMN)HTAssoc.h \ $(CMN)HTUtils.h $(CMN)HTString.h $(CMN)HTList.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAssoc.c + $(COMPILE) $(CMN)HTAssoc.c $(LOB)/HTLex.o : $(OE) $(CMN)HTLex.c $(CMN)HTLex.h $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTLex.c + $(COMPILE) $(CMN)HTLex.c $(LOB)/HTUU.o : $(OE) $(CMN)HTUU.c $(CMN)HTUU.h $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTUU.c + $(COMPILE) $(CMN)HTUU.c # Communications & Files $(LOB)/HTTP.o : $(OE) $(CMN)HTTP.c $(CMN)HTUtils.h $(CMN)HTAABrow.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTTP.c + $(COMPILE) $(CMN)HTTP.c $(LOB)/HTTCP.o : $(OE) $(CMN)HTTCP.c $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTTCP.c + $(COMPILE) $(CMN)HTTCP.c $(LOB)/HTFile.o : $(OE) $(CMN)HTFile.c $(CMN)HTUtils.h \ $(CMN)HTMLDTD.h $(CMN)HTAAServ.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTFile.c + $(COMPILE) $(CMN)HTFile.c $(LOB)/HTBTree.o : $(OE) $(CMN)HTBTree.c $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTBTree.c + $(COMPILE) $(CMN)HTBTree.c $(LOB)/HTFTP.o : $(OE) $(CMN)HTFTP.c $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTFTP.c + $(COMPILE) $(CMN)HTFTP.c $(LOB)/HTAccess.o : $(OE) $(CMN)HTAccess.c $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTAccess.c + $(COMPILE) $(CMN)HTAccess.c $(LOB)/HTParse.o : $(OE) $(CMN)HTParse.c $(CMN)HTUtils.h - $(CC) -c -o $@ $(CFLAGS2) $(CMN)HTParse.c + $(COMPILE) $(CMN)HTParse.c diff --git a/WWW/Library/Implementation/HTAAServ.c b/WWW/Library/Implementation/HTAAServ.c index 5f61cb76..10f0a6f6 100644 --- a/WWW/Library/Implementation/HTAAServ.c +++ b/WWW/Library/Implementation/HTAAServ.c @@ -92,45 +92,34 @@ PUBLIC char *HTAA_statusMessage NOARGS /* 401 cases */ case HTAA_NO_AUTH: return "Unauthorized -- authentication failed"; - break; case HTAA_NOT_MEMBER: return "Unauthorized to access the document"; - break; /* 403 cases */ case HTAA_BY_RULE: return "Forbidden -- by rule"; - break; case HTAA_IP_MASK: return "Forbidden -- server refuses to serve to your IP address"; - break; case HTAA_NO_ACL: case HTAA_NO_ENTRY: return "Forbidden -- access to file is never allowed"; - break; case HTAA_SETUP_ERROR: return "Forbidden -- server protection setup error"; - break; case HTAA_DOTDOT: return "Forbidden -- URL containing /../ disallowed"; - break; case HTAA_HTBIN: return "Forbidden -- /htbin feature not enabled on this server"; - break; /* 404 cases */ case HTAA_NOT_FOUND: return "Not found -- file doesn't exist or is read protected"; - break; /* Success */ case HTAA_OK: return "AA: Access should be ok but something went wrong"; - break; case HTAA_OK_GATEWAY: return "AA check bypassed (gatewaying) but something went wrong"; - break; /* Others */ default: @@ -147,46 +136,34 @@ PRIVATE char *status_name ARGS1(HTAAFailReasonType, reason) /* 401 cases */ case HTAA_NO_AUTH: return "NO-AUTHENTICATION"; - break; case HTAA_NOT_MEMBER: return "NOT-AUTHORIZED"; - break; /* 403 cases */ case HTAA_BY_RULE: return "FORB-RULE"; - break; case HTAA_IP_MASK: return "FORB-IP"; - break; case HTAA_NO_ACL: return "NO-ACL-FILE"; - break; case HTAA_NO_ENTRY: return "NO-ACL-ENTRY"; - break; case HTAA_SETUP_ERROR: return "SETUP-ERROR"; - break; case HTAA_DOTDOT: return "SLASH-DOT-DOT"; - break; case HTAA_HTBIN: return "HTBIN-OFF"; - break; /* 404 cases */ case HTAA_NOT_FOUND: return "NOT-FOUND"; - break; /* Success */ case HTAA_OK: return "OK"; - break; case HTAA_OK_GATEWAY: return "OK-GATEWAY"; - break; /* Others */ default: @@ -520,7 +497,6 @@ PUBLIC int HTAA_checkAuthorization ARGS4(CONST char *, url, case HTAA_NO_AUTH: case HTAA_NOT_MEMBER: return 401; - break; case HTAA_BY_RULE: case HTAA_IP_MASK: @@ -530,16 +506,13 @@ PUBLIC int HTAA_checkAuthorization ARGS4(CONST char *, url, case HTAA_DOTDOT: case HTAA_HTBIN: return 403; - break; case HTAA_NOT_FOUND: return 404; - break; case HTAA_OK: case HTAA_OK_GATEWAY: return 200; - break; default: return 500; @@ -576,7 +549,6 @@ PRIVATE char *compose_scheme_specifics ARGS2(HTAAScheme, scheme, (realm ? realm : "UNKNOWN")); return result; } - break; case HTAA_PUBKEY: { @@ -587,7 +559,6 @@ PRIVATE char *compose_scheme_specifics ARGS2(HTAAScheme, scheme, "PUBKEY-NOT-IMPLEMENTED"); return result; } - break; default: return NULL; } @@ -613,7 +584,7 @@ PRIVATE char *compose_scheme_specifics ARGS2(HTAAScheme, scheme, PUBLIC char *HTAA_composeAuthHeaders NOARGS { static char *result = NULL; - HTAAScheme scheme; + int n; char *scheme_name; char *scheme_params; HTAAProt *prot = HTAA_getCurrentProtection(); @@ -633,7 +604,8 @@ PUBLIC char *HTAA_composeAuthHeaders NOARGS outofmem(__FILE__, "HTAA_composeAuthHeaders"); *result = '\0'; - for (scheme=0; scheme < HTAA_MAX_SCHEMES; scheme++) { + for (n = 0; n < (int) HTAA_MAX_SCHEMES; n++) { + HTAAScheme scheme = (HTAAScheme) n; if (-1 < HTList_indexOf(prot->valid_schemes, (void*)scheme)) { if ((scheme_name = HTAAScheme_name(scheme))) { scheme_params = compose_scheme_specifics(scheme,prot); diff --git a/WWW/Library/Implementation/HTAAUtil.c b/WWW/Library/Implementation/HTAAUtil.c index 2ce86409..7653c312 100644 --- a/WWW/Library/Implementation/HTAAUtil.c +++ b/WWW/Library/Implementation/HTAAUtil.c @@ -111,22 +111,16 @@ PUBLIC char *HTAAScheme_name ARGS1(HTAAScheme, scheme) switch (scheme) { case HTAA_NONE: return "None"; - break; case HTAA_BASIC: return "Basic"; - break; case HTAA_PUBKEY: return "Pubkey"; - break; case HTAA_KERBEROS_V4: return "KerberosV4"; - break; case HTAA_KERBEROS_V5: return "KerberosV5"; - break; case HTAA_UNKNOWN: return "UNKNOWN"; - break; default: return "THIS-IS-A-BUG"; } @@ -171,13 +165,10 @@ PUBLIC char *HTAAMethod_name ARGS1(HTAAMethod, method) switch (method) { case METHOD_GET: return "GET"; - break; case METHOD_PUT: return "PUT"; - break; case METHOD_UNKNOWN: return "UNKNOWN"; - break; default: return "THIS-IS-A-BUG"; } diff --git a/WWW/Library/Implementation/HTAuth.c b/WWW/Library/Implementation/HTAuth.c index 70d9781a..9f2185c7 100644 --- a/WWW/Library/Implementation/HTAuth.c +++ b/WWW/Library/Implementation/HTAuth.c @@ -199,7 +199,6 @@ PUBLIC HTAAUser *HTAA_authenticate ARGS3(HTAAScheme, scheme, else return NULL; } - break; default: /* Other authentication routines go here */ return NULL; diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index 1970b03d..aa03f47f 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -2097,7 +2097,6 @@ PRIVATE EntryInfo * parse_dir_entry ARGS2( */ StrAllocCopy(entry_info->filename, entry); return(entry_info); /* mostly empty info */ - break; /* not needed */ } /* switch (server_type) */ @@ -2164,7 +2163,6 @@ PRIVATE int compare_EntryInfo_structs ARGS2( return(1); else return(-1); - break; case FILE_BY_TYPE: if (entry1->type && entry2->type) { @@ -2174,7 +2172,6 @@ PRIVATE int compare_EntryInfo_structs ARGS2( /* else fall to filename comparison */ } return (strcmp(entry1->filename, entry2->filename)); - break; case FILE_BY_DATE: if (entry1->date && entry2->date) { @@ -2266,7 +2263,6 @@ PRIVATE int compare_EntryInfo_structs ARGS2( /* else fall to filename comparison */ } return (strcmp(entry1->filename, entry2->filename)); - break; case FILE_BY_NAME: default: diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c index e4548616..0474c9ae 100644 --- a/WWW/Library/Implementation/HTFile.c +++ b/WWW/Library/Implementation/HTFile.c @@ -100,6 +100,10 @@ typedef struct _HTSuffix { #endif /* NGROUPS_MAX */ #endif /* NGROUPS */ +#ifndef TYPE_GETGROUPS +#define TYPE_GETGROUPS int +#endif + #include <HTML.h> /* For directory object building */ #define PUTC(c) (*target->isa->put_character)(target, c) @@ -223,6 +227,7 @@ PRIVATE void LYListFmtParse ARGS5( s++; c = *s; /* the format char. or \0 */ *s = '\0'; + buf[0] = '\0'; switch (c) { case '\0': @@ -1086,11 +1091,7 @@ PUBLIC BOOL HTEditable ARGS1( #ifdef NO_GROUPS return NO; /* Safe answer till we find the correct algorithm */ #else -#ifdef NeXT - int groups[NGROUPS]; -#else - gid_t groups[NGROUPS]; -#endif /* NeXT */ + TYPE_GETGROUPS groups[NGROUPS]; uid_t myUid; int ngroups; /* The number of groups */ struct stat fileStatus; @@ -1106,12 +1107,13 @@ PUBLIC BOOL HTEditable ARGS1( int i2; fprintf(tfp, "File mode is 0%o, uid=%d, gid=%d. My uid=%d, %d groups (", - (unsigned int) fileStatus.st_mode, fileStatus.st_uid, + (unsigned int) fileStatus.st_mode, + (int) fileStatus.st_uid, (int) fileStatus.st_gid, (int) myUid, (int) ngroups); for (i2 = 0; i2 < ngroups; i2++) - fprintf(tfp, " %d", groups[i2]); + fprintf(tfp, " %d", (int) groups[i2]); fprintf(tfp, ")\n"); } @@ -2067,6 +2069,7 @@ PUBLIC int HTLoadFile ARGS4( sprintf((char *)dirname, "F%s",dirbuf->d_name); /* D & F to have first directories, then files */ #else + { if (dir_list_style == MIXED_STYLE) sprintf((char *)dirname, " %s/", dirbuf->d_name); @@ -2076,6 +2079,7 @@ PUBLIC int HTLoadFile ARGS4( else sprintf((char *)dirname, "D%s", dirbuf->d_name); + } else if (dir_list_style == MIXED_STYLE) sprintf((char *)dirname, " %s", dirbuf->d_name); else if (dir_list_style == FILES_FIRST) diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c index db0b59c1..fb7705e3 100644 --- a/WWW/Library/Implementation/HTFormat.c +++ b/WWW/Library/Implementation/HTFormat.c @@ -579,8 +579,11 @@ PUBLIC int HTCopy ARGS4( (*targetClass.put_block)(sink, input_buffer, status); #ifdef DISP_PARTIAL - if (display_partial) - HText_pageDisplay(Newline,""); + if (display_partial && + ((Newline_partial + display_lines) > NumOfLines_partial)) { + NumOfLines_partial = HText_getNumOfLines(); + HText_pageDisplay(Newline_partial, ""); + } #endif /* DISP_PARTIAL */ bytes += status; @@ -644,8 +647,11 @@ PUBLIC int HTFileCopy ARGS2( (*targetClass.put_block)(sink, input_buffer, status); #ifdef DISP_PARTIAL - if (display_partial) - HText_pageDisplay(Newline,""); + if (display_partial && + ((Newline_partial + display_lines) > NumOfLines_partial)) { + NumOfLines_partial = HText_getNumOfLines(); + HText_pageDisplay(Newline_partial, ""); + } #endif /* DISP_PARTIAL */ bytes += status; @@ -738,8 +744,11 @@ PRIVATE int HTGzFileCopy ARGS2( (*targetClass.put_block)(sink, input_buffer, status); #ifdef DISP_PARTIAL - if (display_partial) - HText_pageDisplay(Newline,""); + if (display_partial && + ((Newline_partial + display_lines) > NumOfLines_partial)) { + NumOfLines_partial = HText_getNumOfLines(); + HText_pageDisplay(Newline_partial, ""); + } #endif /* DISP_PARTIAL */ bytes += status; diff --git a/WWW/Library/Implementation/HTLex.c b/WWW/Library/Implementation/HTLex.c index 6cffe648..56b1fdae 100644 --- a/WWW/Library/Implementation/HTLex.c +++ b/WWW/Library/Implementation/HTLex.c @@ -77,14 +77,14 @@ PUBLIC LexItem lex ARGS1(FILE *, fp) else return LEX_ALPH_STR; } else switch(ch) { - case EOF: return LEX_EOF; break; + case EOF: return LEX_EOF; case '\n': - HTlex_line++; return LEX_REC_SEP; break; - case ':': return LEX_FIELD_SEP; break; - case ',': return LEX_ITEM_SEP; break; - case '(': return LEX_OPEN_PAREN; break; - case ')': return LEX_CLOSE_PAREN; break; - case '@': return LEX_AT_SIGN; break; + HTlex_line++; return LEX_REC_SEP; + case ':': return LEX_FIELD_SEP; + case ',': return LEX_ITEM_SEP; + case '(': return LEX_OPEN_PAREN; + case ')': return LEX_CLOSE_PAREN; + case '@': return LEX_AT_SIGN; default: ; /* Leading white space ignored (SP,TAB,CR) */ } break; @@ -104,39 +104,28 @@ PUBLIC char *lex_verbose ARGS1(LexItem, lex_item) switch (lex_item) { case LEX_NONE: /* Internally used */ return "NO-LEX-ITEM"; - break; case LEX_EOF: /* End of file */ return "end-of-file"; - break; case LEX_REC_SEP: /* Record separator */ return "record separator (newline)"; - break; case LEX_FIELD_SEP: /* Field separator */ return "field separator ':'"; - break; case LEX_ITEM_SEP: /* List item separator */ return "item separator ','"; - break; case LEX_OPEN_PAREN: /* Group start tag */ return "'('"; - break; case LEX_CLOSE_PAREN: /* Group end tag */ return "')'"; - break; case LEX_AT_SIGN: /* Address qualifier */ return "address qualifier '@'"; - break; case LEX_ALPH_STR: /* Alphanumeric string */ sprintf(msg, "alphanumeric string '%s'", HTlex_buffer); return msg; - break; case LEX_TMPL_STR: /* Template string */ sprintf(msg, "template string '%s'", HTlex_buffer); return msg; - break; default: return "UNKNOWN-LEX-ITEM"; - break; } } diff --git a/WWW/Library/Implementation/HTMIME.c b/WWW/Library/Implementation/HTMIME.c index 70083ab5..ed731263 100644 --- a/WWW/Library/Implementation/HTMIME.c +++ b/WWW/Library/Implementation/HTMIME.c @@ -560,7 +560,6 @@ PRIVATE void HTMIME_put_character ARGS2( default: goto bad_field_name; - break; } /* switch on character */ break; @@ -593,7 +592,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'g' or 'l'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -620,7 +618,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'l' or 't'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -645,7 +642,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'a' or 'o'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -670,7 +666,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'n' or 'o'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -697,7 +692,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'n' or 't'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -724,7 +718,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'t' or 'x'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -759,7 +752,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'a', 'i' or 'o'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -784,7 +776,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'r' or 'u'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -811,7 +802,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'a' or 'o'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -836,7 +826,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'a' or 'e'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -863,7 +852,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'r' or 't'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -887,7 +875,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "':' or '2'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -914,7 +901,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'i' or 'r'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -941,7 +927,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'p' or 'r'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -968,7 +953,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'a' or 'i'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -995,7 +979,6 @@ PRIVATE void HTMIME_put_character ARGS2( CTRACE(tfp, "HTMIME: Bad character `%c' found where `%s' expected\n", c, "'a' or 'w'"); goto bad_field_name; - break; } /* switch on character */ break; @@ -1078,7 +1061,6 @@ PRIVATE void HTMIME_put_character ARGS2( default: CTRACE(tfp, "HTMIME: Was CONTENT_, found nothing; bleah\n"); goto bad_field_name; - break; } /* switch on character */ break; @@ -1114,7 +1096,6 @@ PRIVATE void HTMIME_put_character ARGS2( default: CTRACE (tfp, "HTMIME: Was CONTENT_L, found nothing; bleah\n"); goto bad_field_name; - break; } /* switch on character */ break; @@ -1142,7 +1123,6 @@ PRIVATE void HTMIME_put_character ARGS2( default: CTRACE (tfp, "HTMIME: Was CONTENT_T, found nothing; bleah\n"); goto bad_field_name; - break; } /* switch on character */ break; diff --git a/WWW/Library/Implementation/HTMLDTD.c b/WWW/Library/Implementation/HTMLDTD.c index 4e83e029..966697a8 100644 --- a/WWW/Library/Implementation/HTMLDTD.c +++ b/WWW/Library/Implementation/HTMLDTD.c @@ -1598,8 +1598,9 @@ PUBLIC void HTSwitchDTD ARGS1( { if (TRACE) CTRACE(tfp,"HTMLDTD: Copying DTD element info of size %d, %d * %d\n", - new ? sizeof(tags_new) : sizeof(tags_old), - HTML_ELEMENTS, sizeof(HTTag)); + (int) (new ? sizeof(tags_new) : sizeof(tags_old)), + HTML_ELEMENTS, + (int) sizeof(HTTag)); if (new) memcpy(tags, tags_new, HTML_ELEMENTS * sizeof(HTTag)); else diff --git a/WWW/Library/Implementation/HTPlain.c b/WWW/Library/Implementation/HTPlain.c index 5caa4550..b7b457d7 100644 --- a/WWW/Library/Implementation/HTPlain.c +++ b/WWW/Library/Implementation/HTPlain.c @@ -219,7 +219,7 @@ PRIVATE void HTPlain_write ARGS3(HTStream *, me, CONST char*, s, int, l) char c; unsigned char c_unsign; BOOL chk; - UCode_t code, uck; + UCode_t code, uck = -1; char saved_char_in = '\0'; for (p = s; p < e; p++) { @@ -584,7 +584,7 @@ PRIVATE void HTPlain_write ARGS3(HTStream *, me, CONST char*, s, int, l) ** If we get to here and have a monobyte character, ** pass it. - FM */ - } else if (c_unsign > 0 && c_unsign < 256) { + } else if (c_unsign != 0 && c_unsign < 256) { HText_appendCharacter(me->text, c); } #endif /* REMOVE_CR_ONLY */ diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c index 870f35b1..8ad25eba 100644 --- a/WWW/Library/Implementation/HTTP.c +++ b/WWW/Library/Implementation/HTTP.c @@ -692,8 +692,11 @@ try_again: } } #ifdef DISP_PARTIAL +/* retrieving HTTP headers: never use display_partial mode at this point! + else if (display_partial) - HText_pageDisplay(Newline,""); + HText_pageDisplay(Newline_partial,""); +*/ #endif /* DISP_PARTIAL */ bytes_already_read += status; @@ -899,7 +902,6 @@ try_again: HTTP_NETCLOSE(s, handle); status = HT_NO_DATA; goto clean_up; - break; case 205: /* @@ -913,7 +915,6 @@ try_again: HTTP_NETCLOSE(s, handle); status = HT_NO_DATA; goto clean_up; - break; case 206: /* @@ -926,7 +927,6 @@ try_again: HTTP_NETCLOSE(s, handle); status = HT_NO_DATA; goto clean_up; - break; default: /* @@ -1488,7 +1488,6 @@ Cookie2_continuation: FREE(line_buffer); FREE(line_kept_clean); goto try_again; - break; } else if (!(traversal || dump_output_immediately) && HTConfirm("Show the 401 message body?")) { break; @@ -1500,7 +1499,6 @@ Cookie2_continuation: status = -1; goto clean_up; } - break; case 407: /* @@ -1537,7 +1535,6 @@ Cookie2_continuation: FREE(line_buffer); FREE(line_kept_clean); goto try_again; - break; } else if (!(traversal || dump_output_immediately) && HTConfirm("Show the 407 message body?")) { if (!dump_output_immediately && @@ -1558,7 +1555,6 @@ Cookie2_continuation: status = -1; goto clean_up; } - break; case 408: /* @@ -1569,7 +1565,6 @@ Cookie2_continuation: HTTP_NETCLOSE(s, handle); status = HT_NO_DATA; goto done; - break; default: /* diff --git a/WWW/Library/unix/makefile.in b/WWW/Library/unix/makefile.in index 3aae2df5..ed69fe50 100644 --- a/WWW/Library/unix/makefile.in +++ b/WWW/Library/unix/makefile.in @@ -7,6 +7,7 @@ WWW_MACH = unix # The ASIS repository's name for the machine we are on ASIS_MACH = hardware/os +ECHO = @DONT_ECHO_CC@ LFLAGS = prefix = @prefix@ @@ -713,6 +713,33 @@ fi AC_SUBST(EXTRA_CFLAGS) ])dnl dnl --------------------------------------------------------------------------- +dnl Make a test to determine the array type for the 'getgroups()' function. +dnl The BSD version uses 'int', while POSIX specifies 'gid_t', which is usually +dnl an unsigned short. (Check 'gid_t' first since not all compilers do proper +dnl warning!). +AC_DEFUN([CF_GETGROUPS], +[ +AC_CACHE_CHECK(for array type of getgroups,cf_cv_getgroups_type,[ + cf_save_CFLAGS="$CFLAGS" + test -n "$GCC" && CFLAGS="$CFLAGS -Werror" + for cf_type in gid_t int + do + AC_TRY_LINK([ +#include <sys/types.h> +#include <unistd.h>],[$cf_type my_groups[64]; getgroups(64, my_groups)], + [cf_cv_getgroups_type=$cf_type + break],[]) + done + CFLAGS="$cf_save_CFLAGS" +]) +if test "$cf_cv_getgroups_type" = unknown ; then + AC_MSG_WARN(Cannot determine the correct type, assuming int) + AC_DEFINE(TYPE_GETGROUPS,int) +else + AC_DEFINE_UNQUOTED(TYPE_GETGROUPS,$cf_cv_getgroups_type) +fi +])dnl +dnl --------------------------------------------------------------------------- dnl Construct a search-list for a nonstandard header-file AC_DEFUN([CF_HEADER_PATH], [$1="" @@ -88,6 +88,7 @@ #undef TAR_PATH /* CF_PATH_PROG(tar) */ #undef TERMIO_AND_TERMIOS /* termio.h and termios.h combo bug */ #undef TOUCH_PATH /* CF_PATH_PROG(touch) */ +#undef TYPE_GETGROUPS /* CF_GETGROUPS */ #undef ULTRIX /* config.sub */ #undef UNCOMPRESS_PATH /* CF_PATH_PROG(gunzip) */ #undef UNDERLINE_LINKS /* CF_ARG_ENABLE(underlines) */ @@ -108,8 +109,11 @@ #undef ZCAT_PATH /* CF_PATH_PROG(zcat) */ #undef ZIP_PATH /* CF_PATH_PROG(zip) */ #undef const /* defined by AC_C_CONST */ +#undef pid_t /* defined by AC_TYPE_PID_T */ #undef mode_t /* defined by AC_TYPE_MODE_T */ +#undef uid_t /* defined by AC_TYPE_UID_T */ #undef vfork /* defined by AC_FUNC_FORK */ + /* FIXME:ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS */ /* FIXME:DECLARE_WAIS_LOGFILES */ /* FIXME:DGUX */ @@ -1085,8 +1085,16 @@ echo "$ac_t""$enableval" 1>&6 +# special case for WWW/* +if test -n "$ECHO_CC" ; then + DONT_ECHO_CC="$SHOW_CC ;" +else + DONT_ECHO_CC='' +fi + + echo $ac_n "checking if you want to check memory-leaks""... $ac_c" 1>&6 -echo "configure:1090: checking if you want to check memory-leaks" >&5 +echo "configure:1098: 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 @@ -1110,7 +1118,7 @@ EOF echo $ac_n "checking if you want to enable debug-code""... $ac_c" 1>&6 -echo "configure:1114: checking if you want to enable debug-code" >&5 +echo "configure:1122: 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 @@ -1142,7 +1150,7 @@ CFLAGS=`echo ${CFLAGS} | sed -e 's/-O[1-9]\? //' -e 's/-O[1-9]\?$//'` else case $host_os in osf*) #(vi - CFLAGS="$CFLAGS -std1" + test -n "$GCC" && CFLAGS="$CFLAGS -std1" CFLAGS=`echo ${CFLAGS} | sed -e 's/-g //' -e 's/-g$//'` ;; *) @@ -1155,7 +1163,7 @@ fi if test -n "$GCC" then echo $ac_n "checking if you want to turn on gcc warnings""... $ac_c" 1>&6 -echo "configure:1159: checking if you want to turn on gcc warnings" >&5 +echo "configure:1167: 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 @@ -1195,9 +1203,9 @@ EOF if test -n "$GCC" then echo "checking for gcc __attribute__ directives" 1>&6 -echo "configure:1199: checking for gcc __attribute__ directives" >&5 +echo "configure:1207: checking for gcc __attribute__ directives" >&5 cat > conftest.$ac_ext <<EOF -#line 1201 "configure" +#line 1209 "configure" #include "confdefs.h" #include "conftest.h" #include "conftest.i" @@ -1235,7 +1243,7 @@ EOF EOF ;; esac - if { (eval echo configure:1239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + if { (eval echo configure:1247: \"$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 @@ -1252,11 +1260,11 @@ fi if test -n "$GCC" then cat > conftest.$ac_ext <<EOF -#line 1256 "configure" +#line 1264 "configure" int main(int argc, char *argv[]) { return argv[argc-1] == 0; } EOF echo "checking for gcc warning options" 1>&6 -echo "configure:1260: checking for gcc warning options" >&5 +echo "configure:1268: checking for gcc warning options" >&5 cf_save_CFLAGS="$CFLAGS" EXTRA_CFLAGS="-W -Wall" cf_warn_CONST="" @@ -1274,7 +1282,7 @@ echo "configure:1260: checking for gcc warning options" >&5 Wstrict-prototypes $cf_warn_CONST do CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt" - if { (eval echo configure:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + if { (eval echo configure:1286: \"$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" @@ -1292,7 +1300,7 @@ fi echo $ac_n "checking if you want full utility pathnames""... $ac_c" 1>&6 -echo "configure:1296: checking if you want full utility pathnames" >&5 +echo "configure:1304: 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 @@ -1313,7 +1321,7 @@ echo "$ac_t""$with_full_paths" 1>&6 echo $ac_n "checking for system mailer""... $ac_c" 1>&6 -echo "configure:1317: checking for system mailer" >&5 +echo "configure:1325: 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 @@ -1340,7 +1348,7 @@ EOF echo $ac_n "checking system mail flags""... $ac_c" 1>&6 -echo "configure:1344: checking system mail flags" >&5 +echo "configure:1352: 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 @@ -1368,7 +1376,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:1372: checking for $ac_word" >&5 +echo "configure:1380: 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 @@ -1399,7 +1407,7 @@ fi else echo $ac_n "checking for chmod""... $ac_c" 1>&6 -echo "configure:1403: checking for chmod" >&5 +echo "configure:1411: checking for chmod" >&5 echo "$ac_t""$CHMOD" 1>&6 fi @@ -1433,7 +1441,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:1437: checking for $ac_word" >&5 +echo "configure:1445: 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 @@ -1464,7 +1472,7 @@ fi else echo $ac_n "checking for compress""... $ac_c" 1>&6 -echo "configure:1468: checking for compress" >&5 +echo "configure:1476: checking for compress" >&5 echo "$ac_t""$COMPRESS" 1>&6 fi @@ -1498,7 +1506,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:1502: checking for $ac_word" >&5 +echo "configure:1510: 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 @@ -1529,7 +1537,7 @@ fi else echo $ac_n "checking for cp""... $ac_c" 1>&6 -echo "configure:1533: checking for cp" >&5 +echo "configure:1541: checking for cp" >&5 echo "$ac_t""$COPY" 1>&6 fi @@ -1563,7 +1571,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:1567: checking for $ac_word" >&5 +echo "configure:1575: 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 @@ -1594,7 +1602,7 @@ fi else echo $ac_n "checking for gzip""... $ac_c" 1>&6 -echo "configure:1598: checking for gzip" >&5 +echo "configure:1606: checking for gzip" >&5 echo "$ac_t""$GZIP" 1>&6 fi @@ -1628,7 +1636,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:1632: checking for $ac_word" >&5 +echo "configure:1640: 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 @@ -1659,7 +1667,7 @@ fi else echo $ac_n "checking for mkdir""... $ac_c" 1>&6 -echo "configure:1663: checking for mkdir" >&5 +echo "configure:1671: checking for mkdir" >&5 echo "$ac_t""$MKDIR" 1>&6 fi @@ -1693,7 +1701,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:1697: checking for $ac_word" >&5 +echo "configure:1705: 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 @@ -1724,7 +1732,7 @@ fi else echo $ac_n "checking for mv""... $ac_c" 1>&6 -echo "configure:1728: checking for mv" >&5 +echo "configure:1736: checking for mv" >&5 echo "$ac_t""$MV" 1>&6 fi @@ -1758,7 +1766,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:1762: checking for $ac_word" >&5 +echo "configure:1770: 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 @@ -1789,7 +1797,7 @@ fi else echo $ac_n "checking for rm""... $ac_c" 1>&6 -echo "configure:1793: checking for rm" >&5 +echo "configure:1801: checking for rm" >&5 echo "$ac_t""$RM" 1>&6 fi @@ -1823,7 +1831,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:1827: checking for $ac_word" >&5 +echo "configure:1835: 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 @@ -1854,7 +1862,7 @@ fi else echo $ac_n "checking for tar""... $ac_c" 1>&6 -echo "configure:1858: checking for tar" >&5 +echo "configure:1866: checking for tar" >&5 echo "$ac_t""$TAR" 1>&6 fi @@ -1888,7 +1896,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:1892: checking for $ac_word" >&5 +echo "configure:1900: 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 @@ -1919,7 +1927,7 @@ fi else echo $ac_n "checking for touch""... $ac_c" 1>&6 -echo "configure:1923: checking for touch" >&5 +echo "configure:1931: checking for touch" >&5 echo "$ac_t""$TOUCH" 1>&6 fi @@ -1953,7 +1961,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:1957: checking for $ac_word" >&5 +echo "configure:1965: 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 @@ -1984,7 +1992,7 @@ fi else echo $ac_n "checking for gunzip""... $ac_c" 1>&6 -echo "configure:1988: checking for gunzip" >&5 +echo "configure:1996: checking for gunzip" >&5 echo "$ac_t""$UNCOMPRESS" 1>&6 fi @@ -2018,7 +2026,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:2022: checking for $ac_word" >&5 +echo "configure:2030: 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 @@ -2049,7 +2057,7 @@ fi else echo $ac_n "checking for unzip""... $ac_c" 1>&6 -echo "configure:2053: checking for unzip" >&5 +echo "configure:2061: checking for unzip" >&5 echo "$ac_t""$UNZIP" 1>&6 fi @@ -2083,7 +2091,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:2087: checking for $ac_word" >&5 +echo "configure:2095: 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 @@ -2114,7 +2122,7 @@ fi else echo $ac_n "checking for uudecode""... $ac_c" 1>&6 -echo "configure:2118: checking for uudecode" >&5 +echo "configure:2126: checking for uudecode" >&5 echo "$ac_t""$UUDECODE" 1>&6 fi @@ -2148,7 +2156,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:2152: checking for $ac_word" >&5 +echo "configure:2160: 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 @@ -2179,7 +2187,7 @@ fi else echo $ac_n "checking for zcat""... $ac_c" 1>&6 -echo "configure:2183: checking for zcat" >&5 +echo "configure:2191: checking for zcat" >&5 echo "$ac_t""$ZCAT" 1>&6 fi @@ -2213,7 +2221,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:2217: checking for $ac_word" >&5 +echo "configure:2225: 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 @@ -2244,7 +2252,7 @@ fi else echo $ac_n "checking for zip""... $ac_c" 1>&6 -echo "configure:2248: checking for zip" >&5 +echo "configure:2256: checking for zip" >&5 echo "$ac_t""$ZIP" 1>&6 fi @@ -2297,7 +2305,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:2301: checking for ${CC-cc} option to accept ANSI C" >&5 +echo "configure:2309: 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 @@ -2321,7 +2329,7 @@ for cf_arg in "-DCC_HAS_PROTOS" \ do CFLAGS="$cf_save_CFLAGS $cf_arg" cat > conftest.$ac_ext <<EOF -#line 2325 "configure" +#line 2333 "configure" #include "confdefs.h" #ifndef CC_HAS_PROTOS @@ -2337,7 +2345,7 @@ int main() { struct s2 {int (*f) (double a);}; ; return 0; } EOF -if { (eval echo configure:2341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ansi_cc="$cf_arg"; break else @@ -2365,12 +2373,12 @@ fi fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:2369: checking for working const" >&5 +echo "configure:2377: 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 2374 "configure" +#line 2382 "configure" #include "confdefs.h" int main() { @@ -2419,7 +2427,7 @@ ccp = (char const *const *) p; ; return 0; } EOF -if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -2460,7 +2468,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:2464: checking for strcmp in -lc_s" >&5 +echo "configure:2472: 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 @@ -2468,7 +2476,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lc_s $LIBS" cat > conftest.$ac_ext <<EOF -#line 2472 "configure" +#line 2480 "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 @@ -2479,7 +2487,7 @@ int main() { strcmp() ; return 0; } EOF -if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2568,7 +2576,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:2572: checking for $ac_word" >&5 +echo "configure:2580: 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 @@ -2612,17 +2620,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:2616: checking for $ac_hdr" >&5 +echo "configure:2624: 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 2621 "configure" +#line 2629 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -2666,17 +2674,17 @@ ultrix*) do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2670: checking for $ac_hdr" >&5 +echo "configure:2678: 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 2675 "configure" +#line 2683 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -2710,7 +2718,7 @@ esac cf_test_netlibs=no echo $ac_n "checking for network libraries""... $ac_c" 1>&6 -echo "configure:2714: checking for network libraries" >&5 +echo "configure:2722: checking for network libraries" >&5 if eval "test \"`echo '$''{'cf_cv_netlibs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2721,12 +2729,12 @@ cf_test_netlibs=yes for ac_func in gethostname do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2725: checking for $ac_func" >&5 +echo "configure:2733: 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 2730 "configure" +#line 2738 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2749,7 +2757,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2772,7 +2780,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6 -echo "configure:2776: checking for gethostname in -lnsl" >&5 +echo "configure:2784: 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 @@ -2780,7 +2788,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 2784 "configure" +#line 2792 "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 @@ -2791,7 +2799,7 @@ int main() { gethostname() ; return 0; } EOF -if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2824,7 +2832,7 @@ else echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6 -echo "configure:2828: checking for gethostname in -lsocket" >&5 +echo "configure:2836: 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 @@ -2832,7 +2840,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 2836 "configure" +#line 2844 "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 @@ -2843,7 +2851,7 @@ int main() { gethostname() ; return 0; } EOF -if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2887,21 +2895,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:2891: checking for -linet" >&5 +echo "configure:2899: 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 2898 "configure" +#line 2906 "configure" #include "confdefs.h" int main() { main() ; return 0; } EOF -if { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_lib_inet=yes else @@ -2924,12 +2932,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:2928: checking for $ac_func" >&5 +echo "configure:2936: 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 2933 "configure" +#line 2941 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -2952,7 +2960,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2975,7 +2983,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 -echo "configure:2979: checking for socket in -lsocket" >&5 +echo "configure:2987: 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 @@ -2983,7 +2991,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 2987 "configure" +#line 2995 "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 @@ -2994,7 +3002,7 @@ int main() { socket() ; return 0; } EOF -if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3027,7 +3035,7 @@ else echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 -echo "configure:3031: checking for socket in -lbsd" >&5 +echo "configure:3039: 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 @@ -3035,7 +3043,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lbsd $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 3039 "configure" +#line 3047 "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 @@ -3046,7 +3054,7 @@ int main() { socket() ; return 0; } EOF -if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3091,12 +3099,12 @@ fi for ac_func in gethostbyname do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3095: checking for $ac_func" >&5 +echo "configure:3103: 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 3100 "configure" +#line 3108 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -3119,7 +3127,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3142,7 +3150,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:3146: checking for gethostbyname in -lnsl" >&5 +echo "configure:3154: 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 @@ -3150,7 +3158,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 3154 "configure" +#line 3162 "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 @@ -3161,7 +3169,7 @@ int main() { gethostbyname() ; return 0; } EOF -if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3202,12 +3210,12 @@ done for ac_func in strcasecmp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3206: checking for $ac_func" >&5 +echo "configure:3214: 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 3211 "configure" +#line 3219 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -3230,7 +3238,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3253,7 +3261,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6 -echo "configure:3257: checking for strcasecmp in -lresolv" >&5 +echo "configure:3265: 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 @@ -3261,7 +3269,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lresolv $cf_cv_netlibs $LIBS" cat > conftest.$ac_ext <<EOF -#line 3265 "configure" +#line 3273 "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 @@ -3272,7 +3280,7 @@ int main() { strcasecmp() ; return 0; } EOF -if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3317,7 +3325,7 @@ test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6 echo $ac_n "checking for screen type""... $ac_c" 1>&6 -echo "configure:3321: checking for screen type" >&5 +echo "configure:3329: checking for screen type" >&5 if eval "test \"`echo '$''{'cf_cv_screen'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3352,12 +3360,12 @@ case $cf_cv_screen in curses) echo $ac_n "checking for initscr""... $ac_c" 1>&6 -echo "configure:3356: checking for initscr" >&5 +echo "configure:3364: 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 3361 "configure" +#line 3369 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char initscr(); below. */ @@ -3380,7 +3388,7 @@ initscr(); ; return 0; } EOF -if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_initscr=yes" else @@ -3401,7 +3409,7 @@ else case $host_os in #(vi freebsd*) #(vi echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6 -echo "configure:3405: checking for tgoto in -lmytinfo" >&5 +echo "configure:3413: 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 @@ -3409,7 +3417,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lmytinfo $LIBS" cat > conftest.$ac_ext <<EOF -#line 3413 "configure" +#line 3421 "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 @@ -3420,7 +3428,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3443,7 +3451,7 @@ fi ;; hpux10.*) echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6 -echo "configure:3447: checking for initscr in -lcur_colr" >&5 +echo "configure:3455: 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 @@ -3451,7 +3459,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcur_colr $LIBS" cat > conftest.$ac_ext <<EOF -#line 3455 "configure" +#line 3463 "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 @@ -3462,7 +3470,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3486,7 +3494,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6 -echo "configure:3490: checking for initscr in -lHcurses" >&5 +echo "configure:3498: 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 @@ -3494,7 +3502,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lHcurses $LIBS" cat > conftest.$ac_ext <<EOF -#line 3498 "configure" +#line 3506 "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 @@ -3505,7 +3513,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3551,12 +3559,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:3555: checking for tgoto" >&5 +echo "configure:3563: 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 3560 "configure" +#line 3568 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char tgoto(); below. */ @@ -3579,7 +3587,7 @@ tgoto(); ; return 0; } EOF -if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_tgoto=yes" else @@ -3600,7 +3608,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:3604: checking for tgoto in -l$cf_term_lib" >&5 +echo "configure:3612: 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 @@ -3608,7 +3616,7 @@ else ac_save_LIBS="$LIBS" LIBS="-l$cf_term_lib $LIBS" cat > conftest.$ac_ext <<EOF -#line 3612 "configure" +#line 3620 "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 @@ -3619,7 +3627,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3649,7 +3657,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:3653: checking for initscr in -l$cf_curs_lib" >&5 +echo "configure:3661: 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 @@ -3657,7 +3665,7 @@ else ac_save_LIBS="$LIBS" LIBS="-l$cf_curs_lib $LIBS" cat > conftest.$ac_ext <<EOF -#line 3661 "configure" +#line 3669 "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 @@ -3668,7 +3676,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3694,16 +3702,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:3698: checking if we can link with $cf_curs_lib library" >&5 +echo "configure:3706: checking if we can link with $cf_curs_lib library" >&5 cat > conftest.$ac_ext <<EOF -#line 3700 "configure" +#line 3708 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr() ; return 0; } EOF -if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_result=yes else @@ -3717,16 +3725,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:3721: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 +echo "configure:3729: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5 cat > conftest.$ac_ext <<EOF -#line 3723 "configure" +#line 3731 "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:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_result=no else @@ -3736,14 +3744,14 @@ else LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS" cat > conftest.$ac_ext <<EOF -#line 3740 "configure" +#line 3748 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr() ; return 0; } EOF -if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_result=yes else @@ -3765,14 +3773,14 @@ fi echo $ac_n "checking for curses performance tradeoff""... $ac_c" 1>&6 -echo "configure:3769: checking for curses performance tradeoff" >&5 +echo "configure:3777: 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 3776 "configure" +#line 3784 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -3786,11 +3794,11 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 3794 "configure" +#line 3802 "configure" #include "confdefs.h" #define CURS_PERFORMANCE @@ -3805,7 +3813,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:3809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_curs_performance=yes else @@ -3830,13 +3838,13 @@ EOF ncurses) echo $ac_n "checking for ncurses header file""... $ac_c" 1>&6 -echo "configure:3834: checking for ncurses header file" >&5 +echo "configure:3842: 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 3840 "configure" +#line 3848 "configure" #include "confdefs.h" #include <curses.h> int main() { @@ -3853,7 +3861,7 @@ make an error ; return 0; } EOF -if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ncurses_header=predefined else @@ -3939,7 +3947,7 @@ done ;; esac echo $ac_n "checking for ncurses version""... $ac_c" 1>&6 -echo "configure:3943: checking for ncurses version" >&5 +echo "configure:3951: 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 @@ -3964,7 +3972,7 @@ Autoconf "old" #endif EOF cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" - { (eval echo configure:3968: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; } + { (eval echo configure:3976: \"$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" @@ -3973,7 +3981,7 @@ EOF else cat > conftest.$ac_ext <<EOF -#line 3977 "configure" +#line 3985 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -3996,7 +4004,7 @@ int main() exit(0); } EOF -if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then cf_cv_ncurses_version=`cat $cf_tempfile` @@ -4021,7 +4029,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:4025: checking for Gpm_Open in -lgpm" >&5 +echo "configure:4033: 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 @@ -4029,7 +4037,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgpm $LIBS" cat > conftest.$ac_ext <<EOF -#line 4033 "configure" +#line 4041 "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 @@ -4040,7 +4048,7 @@ int main() { Gpm_Open() ; return 0; } EOF -if { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4056,7 +4064,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:4060: checking for initscr in -lgpm" >&5 +echo "configure:4068: 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 @@ -4064,7 +4072,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgpm $LIBS" cat > conftest.$ac_ext <<EOF -#line 4068 "configure" +#line 4076 "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 @@ -4075,7 +4083,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4106,7 +4114,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:4110: checking for tgoto in -lmytinfo" >&5 +echo "configure:4118: 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 @@ -4114,7 +4122,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lmytinfo $LIBS" cat > conftest.$ac_ext <<EOF -#line 4118 "configure" +#line 4126 "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 @@ -4125,7 +4133,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4153,12 +4161,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:4157: checking for initscr" >&5 +echo "configure:4165: 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 4162 "configure" +#line 4170 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char initscr(); below. */ @@ -4181,7 +4189,7 @@ initscr(); ; return 0; } EOF -if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_initscr=yes" else @@ -4201,17 +4209,17 @@ else cf_save_LIBS="$LIBS" echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 -echo "configure:4205: checking for initscr in -lncurses" >&5 +echo "configure:4213: checking for initscr in -lncurses" >&5 LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <<EOF -#line 4208 "configure" +#line 4216 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr() ; return 0; } EOF -if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_ncurses=yes @@ -4238,17 +4246,17 @@ test "$prefix" != /usr && cf_search="$cf_search /usr/lib /usr/lib/ncur for cf_libdir in $cf_search do echo $ac_n "checking for -lncurses in $cf_libdir""... $ac_c" 1>&6 -echo "configure:4242: checking for -lncurses in $cf_libdir" >&5 +echo "configure:4250: checking for -lncurses in $cf_libdir" >&5 LIBS="-L$cf_libdir -lncurses $cf_save_LIBS" cat > conftest.$ac_ext <<EOF -#line 4245 "configure" +#line 4253 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> int main() { initscr() ; return 0; } EOF -if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_ncurses=yes @@ -4280,7 +4288,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:4284: checking if we can link ncurses without $cf_ncurses_LIBS" >&5 +echo "configure:4292: 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'$//'` @@ -4289,14 +4297,14 @@ echo "configure:4284: checking if we can link ncurses without $cf_ncurses_LIBS" fi done cat > conftest.$ac_ext <<EOF -#line 4293 "configure" +#line 4301 "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:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -4313,20 +4321,20 @@ fi slang) echo $ac_n "checking for slang header file""... $ac_c" 1>&6 -echo "configure:4317: checking for slang header file" >&5 +echo "configure:4325: 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 4323 "configure" +#line 4331 "configure" #include "confdefs.h" #include <slang.h> int main() { printf("%s\n", SLANG_VERSION) ; return 0; } EOF -if { (eval echo configure:4330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_slang_header=predefined else @@ -4410,7 +4418,7 @@ cf_cv_lib_termcap=none # HP-UX 9.x terminfo has setupterm, but no tigetstr. if test "$termlib" = none; then echo $ac_n "checking for tigetstr in -ltermlib""... $ac_c" 1>&6 -echo "configure:4414: checking for tigetstr in -ltermlib" >&5 +echo "configure:4422: 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 @@ -4418,7 +4426,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermlib $LIBS" cat > conftest.$ac_ext <<EOF -#line 4422 "configure" +#line 4430 "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 @@ -4429,7 +4437,7 @@ int main() { tigetstr() ; return 0; } EOF -if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4452,7 +4460,7 @@ fi fi if test "$cf_cv_lib_termcap" = none; then echo $ac_n "checking for tgoto in -ltermlib""... $ac_c" 1>&6 -echo "configure:4456: checking for tgoto in -ltermlib" >&5 +echo "configure:4464: 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 @@ -4460,7 +4468,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermlib $LIBS" cat > conftest.$ac_ext <<EOF -#line 4464 "configure" +#line 4472 "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 @@ -4471,7 +4479,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4495,7 +4503,7 @@ fi if test "$cf_cv_lib_termcap" = none; then # allow curses library for broken AIX system. echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6 -echo "configure:4499: checking for initscr in -lcurses" >&5 +echo "configure:4507: 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 @@ -4503,7 +4511,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcurses $LIBS" cat > conftest.$ac_ext <<EOF -#line 4507 "configure" +#line 4515 "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 @@ -4514,7 +4522,7 @@ int main() { initscr() ; return 0; } EOF -if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4535,7 +4543,7 @@ else fi echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6 -echo "configure:4539: checking for tgoto in -ltermcap" >&5 +echo "configure:4547: 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 @@ -4543,7 +4551,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermcap $LIBS" cat > conftest.$ac_ext <<EOF -#line 4547 "configure" +#line 4555 "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 @@ -4554,7 +4562,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4577,7 +4585,7 @@ fi fi if test "$cf_cv_lib_termcap" = none; then echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6 -echo "configure:4581: checking for tgoto in -ltermcap" >&5 +echo "configure:4589: 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 @@ -4585,7 +4593,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ltermcap $LIBS" cat > conftest.$ac_ext <<EOF -#line 4589 "configure" +#line 4597 "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 @@ -4596,7 +4604,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4619,7 +4627,7 @@ fi fi if test "$cf_cv_lib_termcap" = none; then echo $ac_n "checking for tgoto in -lncurses""... $ac_c" 1>&6 -echo "configure:4623: checking for tgoto in -lncurses" >&5 +echo "configure:4631: 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 @@ -4627,7 +4635,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <<EOF -#line 4631 "configure" +#line 4639 "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 @@ -4638,7 +4646,7 @@ int main() { tgoto() ; return 0; } EOF -if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4668,12 +4676,12 @@ fi cf_slang_LIBS2="$LIBS" echo $ac_n "checking for acos""... $ac_c" 1>&6 -echo "configure:4672: checking for acos" >&5 +echo "configure:4680: 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 4677 "configure" +#line 4685 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char acos(); below. */ @@ -4696,7 +4704,7 @@ acos(); ; return 0; } EOF -if { (eval echo configure:4700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_acos=yes" else @@ -4715,7 +4723,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for acos in -lm""... $ac_c" 1>&6 -echo "configure:4719: checking for acos in -lm" >&5 +echo "configure:4727: 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 @@ -4723,7 +4731,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS $LIBS" cat > conftest.$ac_ext <<EOF -#line 4727 "configure" +#line 4735 "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 @@ -4734,7 +4742,7 @@ int main() { acos() ; return 0; } EOF -if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4774,12 +4782,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:4778: checking for SLtt_get_screen_size" >&5 +echo "configure:4786: 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 4783 "configure" +#line 4791 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char SLtt_get_screen_size(); below. */ @@ -4802,7 +4810,7 @@ SLtt_get_screen_size(); ; return 0; } EOF -if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_SLtt_get_screen_size=yes" else @@ -4822,17 +4830,17 @@ else cf_save_LIBS="$LIBS" echo $ac_n "checking for SLtt_get_screen_size in -lslang""... $ac_c" 1>&6 -echo "configure:4826: checking for SLtt_get_screen_size in -lslang" >&5 +echo "configure:4834: checking for SLtt_get_screen_size in -lslang" >&5 LIBS="-lslang $LIBS" cat > conftest.$ac_ext <<EOF -#line 4829 "configure" +#line 4837 "configure" #include "confdefs.h" #include <slang.h> int main() { SLtt_get_screen_size() ; return 0; } EOF -if { (eval echo configure:4836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_slang=yes @@ -4859,17 +4867,17 @@ test "$prefix" != /usr && cf_search="$cf_search /usr/lib /usr/lib/slan for cf_libdir in $cf_search do echo $ac_n "checking for -lslang in $cf_libdir""... $ac_c" 1>&6 -echo "configure:4863: checking for -lslang in $cf_libdir" >&5 +echo "configure:4871: checking for -lslang in $cf_libdir" >&5 LIBS="-L$cf_libdir -lslang $cf_save_LIBS" cat > conftest.$ac_ext <<EOF -#line 4866 "configure" +#line 4874 "configure" #include "confdefs.h" #include <slang.h> int main() { SLtt_get_screen_size() ; return 0; } EOF -if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_slang=yes @@ -4900,7 +4908,7 @@ esac cf_slang_LIBS3="$LIBS" echo $ac_n "checking if we can link slang without termcap""... $ac_c" 1>&6 -echo "configure:4904: checking if we can link slang without termcap" >&5 +echo "configure:4912: 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 @@ -4908,14 +4916,14 @@ else fi LIBS=`echo ".$cf_slang_LIBS3" | sed -e "s@$cf_exclude@@" -e 's@^.@@'` cat > conftest.$ac_ext <<EOF -#line 4912 "configure" +#line 4920 "configure" #include "confdefs.h" #include <slang.h> int main() { SLtt_get_screen_size() ; return 0; } EOF -if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_result=yes else @@ -4935,7 +4943,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:4939: checking for location of config-file" >&5 +echo "configure:4947: 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" @@ -4945,12 +4953,12 @@ echo "$ac_t""$LYNX_CFG_FILE" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:4949: checking for ANSI C header files" >&5 +echo "configure:4957: 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 4954 "configure" +#line 4962 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -4958,7 +4966,7 @@ else #include <float.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -4975,7 +4983,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 4979 "configure" +#line 4987 "configure" #include "confdefs.h" #include <string.h> EOF @@ -4993,7 +5001,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 4997 "configure" +#line 5005 "configure" #include "confdefs.h" #include <stdlib.h> EOF @@ -5014,7 +5022,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext <<EOF -#line 5018 "configure" +#line 5026 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -5025,7 +5033,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then : else @@ -5049,12 +5057,12 @@ EOF fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:5053: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:5061: 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 5058 "configure" +#line 5066 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> @@ -5063,7 +5071,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:5067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -5088,12 +5096,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:5092: checking for $ac_hdr that defines DIR" >&5 +echo "configure:5100: 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 5097 "configure" +#line 5105 "configure" #include "confdefs.h" #include <sys/types.h> #include <$ac_hdr> @@ -5101,7 +5109,7 @@ int main() { DIR *dirp = 0; ; return 0; } EOF -if { (eval echo configure:5105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else @@ -5126,7 +5134,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:5130: checking for opendir in -ldir" >&5 +echo "configure:5138: 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 @@ -5134,7 +5142,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <<EOF -#line 5138 "configure" +#line 5146 "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 @@ -5145,7 +5153,7 @@ int main() { opendir() ; return 0; } EOF -if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5167,7 +5175,7 @@ fi else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:5171: checking for opendir in -lx" >&5 +echo "configure:5179: 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 @@ -5175,7 +5183,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <<EOF -#line 5179 "configure" +#line 5187 "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 @@ -5186,7 +5194,7 @@ int main() { opendir() ; return 0; } EOF -if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5225,17 +5233,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:5229: checking for $ac_hdr" >&5 +echo "configure:5237: 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 5234 "configure" +#line 5242 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -5263,13 +5271,13 @@ done echo $ac_n "checking termio.h and termios.h""... $ac_c" 1>&6 -echo "configure:5267: checking termio.h and termios.h" >&5 +echo "configure:5275: 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 5273 "configure" +#line 5281 "configure" #include "confdefs.h" #if HAVE_TERMIO_H @@ -5282,7 +5290,7 @@ int main() { putchar (0x0a) ; return 0; } EOF -if { (eval echo configure:5286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_termio_and_termios=yes else @@ -5305,17 +5313,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:5309: checking for $ac_hdr" >&5 +echo "configure:5317: 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 5314 "configure" +#line 5322 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -5352,17 +5360,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:5356: checking for $ac_hdr" >&5 +echo "configure:5364: 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 5361 "configure" +#line 5369 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -5392,17 +5400,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:5396: checking for $ac_hdr" >&5 +echo "configure:5404: 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 5401 "configure" +#line 5409 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -5443,13 +5451,13 @@ fi echo $ac_n "checking for union wait""... $ac_c" 1>&6 -echo "configure:5447: checking for union wait" >&5 +echo "configure:5455: 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 5453 "configure" +#line 5461 "configure" #include "confdefs.h" $cf_wait_headers int main() { @@ -5460,7 +5468,7 @@ int x; ; return 0; } EOF -if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_type_unionwait=no echo compiles ok w/o union wait 1>&5 @@ -5471,7 +5479,7 @@ else rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 5475 "configure" +#line 5483 "configure" #include "confdefs.h" $cf_wait_headers int main() { @@ -5486,7 +5494,7 @@ union wait x; ; return 0; } EOF -if { (eval echo configure:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_type_unionwait=yes echo compiles ok with union wait and possibly macros too 1>&5 @@ -5513,20 +5521,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:5517: checking if union wait can be used as wait-arg" >&5 +echo "configure:5525: 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 5523 "configure" +#line 5531 "configure" #include "confdefs.h" $cf_wait_headers int main() { union wait x; wait(&x) ; return 0; } EOF -if { (eval echo configure:5530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_arg_union_wait=yes else @@ -5546,20 +5554,20 @@ EOF echo $ac_n "checking if union wait can be used as waitpid-arg""... $ac_c" 1>&6 -echo "configure:5550: checking if union wait can be used as waitpid-arg" >&5 +echo "configure:5558: 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 5556 "configure" +#line 5564 "configure" #include "confdefs.h" $cf_wait_headers int main() { union wait x; waitpid(0, &x, 0) ; return 0; } EOF -if { (eval echo configure:5563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_arg_union_waitpid=yes else @@ -5580,13 +5588,13 @@ EOF fi -echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:5585: checking for mode_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then +echo $ac_n "checking for pid_t""... $ac_c" 1>&6 +echo "configure:5593: 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 5590 "configure" +#line 5598 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -5595,33 +5603,65 @@ else #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* - ac_cv_type_mode_t=yes + ac_cv_type_pid_t=yes else rm -rf conftest* - ac_cv_type_mode_t=no + ac_cv_type_pid_t=no fi rm -f conftest* fi -echo "$ac_t""$ac_cv_type_mode_t" 1>&6 -if test $ac_cv_type_mode_t = no; then +echo "$ac_t""$ac_cv_type_pid_t" 1>&6 +if test $ac_cv_type_pid_t = no; then cat >> confdefs.h <<\EOF -#define mode_t int +#define pid_t int +EOF + +fi + +echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:5626: 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 5631 "configure" +#include "confdefs.h" +#include <sys/types.h> EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "uid_t" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_uid_t=yes +else + rm -rf conftest* + ac_cv_type_uid_t=no +fi +rm -f conftest* fi +echo "$ac_t""$ac_cv_type_uid_t" 1>&6 +if test $ac_cv_type_uid_t = no; then + cat >> confdefs.h <<\EOF +#define uid_t int +EOF + + cat >> confdefs.h <<\EOF +#define gid_t int +EOF +fi -echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:5620: checking for pid_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then +echo $ac_n "checking for mode_t""... $ac_c" 1>&6 +echo "configure:5660: 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 5625 "configure" +#line 5665 "configure" #include "confdefs.h" #include <sys/types.h> #if STDC_HEADERS @@ -5630,37 +5670,39 @@ else #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* - ac_cv_type_pid_t=yes + ac_cv_type_mode_t=yes else rm -rf conftest* - ac_cv_type_pid_t=no + ac_cv_type_mode_t=no fi rm -f conftest* fi -echo "$ac_t""$ac_cv_type_pid_t" 1>&6 -if test $ac_cv_type_pid_t = no; then +echo "$ac_t""$ac_cv_type_mode_t" 1>&6 +if test $ac_cv_type_mode_t = no; then cat >> confdefs.h <<\EOF -#define pid_t int +#define mode_t int EOF fi + + ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 -echo "configure:5654: checking for vfork.h" >&5 +echo "configure:5696: 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 5659 "configure" +#line 5701 "configure" #include "confdefs.h" #include <vfork.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -5685,18 +5727,18 @@ else fi echo $ac_n "checking for working vfork""... $ac_c" 1>&6 -echo "configure:5689: checking for working vfork" >&5 +echo "configure:5731: 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:5695: checking for vfork" >&5 +echo "configure:5737: 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 5700 "configure" +#line 5742 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char vfork(); below. */ @@ -5719,7 +5761,7 @@ vfork(); ; return 0; } EOF -if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_vfork=yes" else @@ -5740,7 +5782,7 @@ fi else cat > conftest.$ac_ext <<EOF -#line 5744 "configure" +#line 5786 "configure" #include "confdefs.h" /* Thanks to Paul Eggert for this test. */ #include <stdio.h> @@ -5835,7 +5877,7 @@ main() { } } EOF -if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then ac_cv_func_vfork_works=yes else @@ -5859,13 +5901,13 @@ fi echo $ac_n "checking if we should use fcntl or ioctl""... $ac_c" 1>&6 -echo "configure:5863: checking if we should use fcntl or ioctl" >&5 +echo "configure:5905: 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 5869 "configure" +#line 5911 "configure" #include "confdefs.h" #include <sys/types.h> @@ -5877,7 +5919,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_fionbio=ioctl else @@ -5886,7 +5928,7 @@ else rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 5890 "configure" +#line 5932 "configure" #include "confdefs.h" #include <sys/types.h> @@ -5903,7 +5945,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:5907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_fionbio=fcntl else @@ -5926,20 +5968,20 @@ EOF echo $ac_n "checking for broken/missing definition of remove""... $ac_c" 1>&6 -echo "configure:5930: checking for broken/missing definition of remove" >&5 +echo "configure:5972: 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 5936 "configure" +#line 5978 "configure" #include "confdefs.h" #include <stdio.h> int main() { remove("dummy") ; return 0; } EOF -if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_baddef_remove=no else @@ -5947,7 +5989,7 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 5951 "configure" +#line 5993 "configure" #include "confdefs.h" #include <stdio.h> int __unlink(name) { return unlink(name); } @@ -5955,7 +5997,7 @@ int main() { remove("dummy") ; return 0; } EOF -if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_baddef_remove=yes else @@ -5979,13 +6021,13 @@ EOF echo $ac_n "checking for lstat""... $ac_c" 1>&6 -echo "configure:5983: checking for lstat" >&5 +echo "configure:6025: 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 5989 "configure" +#line 6031 "configure" #include "confdefs.h" #include <sys/types.h> @@ -5994,7 +6036,7 @@ int main() { lstat(".", (struct stat *)0) ; return 0; } EOF -if { (eval echo configure:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ac_cv_func_lstat=yes else @@ -6026,12 +6068,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6030: checking for $ac_func" >&5 +echo "configure:6072: 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 6035 "configure" +#line 6077 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -6054,7 +6096,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6084,12 +6126,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6088: checking for $ac_func" >&5 +echo "configure:6130: 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 6093 "configure" +#line 6135 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -6112,7 +6154,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6143,12 +6185,12 @@ for ac_func in strstr do echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6 -echo "configure:6147: checking for $ac_func declaration" >&5 +echo "configure:6189: 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 6152 "configure" +#line 6194 "configure" #include "confdefs.h" #include <string.h> int main() { @@ -6157,11 +6199,11 @@ extern int ${ac_func}(); #endif ; return 0; } EOF -if { (eval echo configure:6161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 6165 "configure" +#line 6207 "configure" #include "confdefs.h" #include <string.h> int main() { @@ -6170,7 +6212,7 @@ int (*p)() = ${ac_func}; #endif ; return 0; } EOF -if { (eval echo configure:6174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_decl_$ac_func=yes" @@ -6212,12 +6254,12 @@ for ac_func in getgrgid getgrnam do echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6 -echo "configure:6216: checking for $ac_func declaration" >&5 +echo "configure:6258: 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 6221 "configure" +#line 6263 "configure" #include "confdefs.h" #include <stdio.h> @@ -6228,11 +6270,11 @@ extern int ${ac_func}(); #endif ; return 0; } EOF -if { (eval echo configure:6232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 6236 "configure" +#line 6278 "configure" #include "confdefs.h" #include <stdio.h> @@ -6243,7 +6285,7 @@ int (*p)() = ${ac_func}; #endif ; return 0; } EOF -if { (eval echo configure:6247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_func_decl_$ac_func=yes" @@ -6285,13 +6327,13 @@ done echo $ac_n "checking if TRUE/FALSE are defined""... $ac_c" 1>&6 -echo "configure:6289: checking if TRUE/FALSE are defined" >&5 +echo "configure:6331: 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 6295 "configure" +#line 6337 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -6300,7 +6342,7 @@ int main() { int x = TRUE, y = FALSE ; return 0; } EOF -if { (eval echo configure:6304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_bool_defs=yes else @@ -6327,13 +6369,13 @@ fi echo $ac_n "checking declaration of errno""... $ac_c" 1>&6 -echo "configure:6331: checking declaration of errno" >&5 +echo "configure:6373: checking declaration of errno" >&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 6337 "configure" +#line 6379 "configure" #include "confdefs.h" #if HAVE_STDLIB_H @@ -6346,7 +6388,7 @@ int main() { long x = (long) errno ; return 0; } EOF -if { (eval echo configure:6350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval 'cf_cv_dcl_'errno'=yes' else @@ -6376,9 +6418,9 @@ cf_result=`echo $cf_result | tr '[a-z]' '[A-Z]'` EOF echo $ac_n "checking existence of errno""... $ac_c" 1>&6 -echo "configure:6380: checking existence of errno" >&5 +echo "configure:6422: checking existence of errno" >&5 cat > conftest.$ac_ext <<EOF -#line 6382 "configure" +#line 6424 "configure" #include "confdefs.h" #undef errno @@ -6388,7 +6430,7 @@ int main() { errno = 2 ; return 0; } EOF -if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval 'cf_cv_have_'errno'=yes' else @@ -6417,21 +6459,70 @@ EOF +echo $ac_n "checking for array type of getgroups""... $ac_c" 1>&6 +echo "configure:6464: checking for array type of getgroups" >&5 +if eval "test \"`echo '$''{'cf_cv_getgroups_type'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cf_save_CFLAGS="$CFLAGS" + test -n "$GCC" && CFLAGS="$CFLAGS -Werror" + for cf_type in gid_t int + do + cat > conftest.$ac_ext <<EOF +#line 6474 "configure" +#include "confdefs.h" + +#include <sys/types.h> +#include <unistd.h> +int main() { +$cf_type my_groups[64]; getgroups(64, my_groups) +; return 0; } +EOF +if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + rm -rf conftest* + cf_cv_getgroups_type=$cf_type + break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + done + CFLAGS="$cf_save_CFLAGS" + +fi + +echo "$ac_t""$cf_cv_getgroups_type" 1>&6 +if test "$cf_cv_getgroups_type" = unknown ; then + echo "configure: warning: Cannot determine the correct type" 1>&2 + cat >> confdefs.h <<\EOF +#define TYPE_GETGROUPS int +EOF + +else + cat >> confdefs.h <<EOF +#define TYPE_GETGROUPS $cf_cv_getgroups_type +EOF + +fi + + echo $ac_n "checking for setlocale()""... $ac_c" 1>&6 -echo "configure:6422: checking for setlocale()" >&5 +echo "configure:6513: 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 6428 "configure" +#line 6519 "configure" #include "confdefs.h" #include <locale.h> int main() { setlocale(LC_ALL, "") ; return 0; } EOF -if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_locale=yes else @@ -6452,13 +6543,13 @@ EOF echo $ac_n "checking if NGROUPS is defined""... $ac_c" 1>&6 -echo "configure:6456: checking if NGROUPS is defined" >&5 +echo "configure:6547: 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 6462 "configure" +#line 6553 "configure" #include "confdefs.h" #if HAVE_SYS_PARAM_H @@ -6472,7 +6563,7 @@ int main() { int x = NGROUPS ; return 0; } EOF -if { (eval echo configure:6476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ngroups=yes else @@ -6480,7 +6571,7 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 6484 "configure" +#line 6575 "configure" #include "confdefs.h" #if HAVE_SYS_PARAM_H @@ -6494,7 +6585,7 @@ int main() { int x = NGROUPS_MAX ; return 0; } EOF -if { (eval echo configure:6498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ngroups=NGROUPS_MAX else @@ -6528,13 +6619,13 @@ for cf_name in sys_nerr sys_errlist do echo $ac_n "checking declaration of $cf_name""... $ac_c" 1>&6 -echo "configure:6532: checking declaration of $cf_name" >&5 +echo "configure:6623: checking declaration of $cf_name" >&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 6538 "configure" +#line 6629 "configure" #include "confdefs.h" #if HAVE_STDLIB_H @@ -6547,7 +6638,7 @@ int main() { long x = (long) $cf_name ; return 0; } EOF -if { (eval echo configure:6551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval 'cf_cv_dcl_'$cf_name'=yes' else @@ -6577,9 +6668,9 @@ cf_result=`echo $cf_result | tr '[a-z]' '[A-Z]'` EOF echo $ac_n "checking existence of $cf_name""... $ac_c" 1>&6 -echo "configure:6581: checking existence of $cf_name" >&5 +echo "configure:6672: checking existence of $cf_name" >&5 cat > conftest.$ac_ext <<EOF -#line 6583 "configure" +#line 6674 "configure" #include "confdefs.h" #undef $cf_name @@ -6589,7 +6680,7 @@ int main() { $cf_name = 2 ; return 0; } EOF -if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval 'cf_cv_have_'$cf_name'=yes' else @@ -6620,13 +6711,13 @@ done echo $ac_n "checking if struct utmp is declared""... $ac_c" 1>&6 -echo "configure:6624: checking if struct utmp is declared" >&5 +echo "configure:6715: 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 6630 "configure" +#line 6721 "configure" #include "confdefs.h" #include <sys/types.h> @@ -6635,7 +6726,7 @@ int main() { struct utmp x; char *y = &x.ut_host[0] ; return 0; } EOF -if { (eval echo configure:6639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_have_utmp=yes else @@ -6643,14 +6734,14 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* cat > conftest.$ac_ext <<EOF -#line 6647 "configure" +#line 6738 "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:6654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_have_utmp=utmpx else @@ -6681,7 +6772,7 @@ EOF if test $cf_cv_screen != slang ; then echo $ac_n "checking if curses supports alternate-character set""... $ac_c" 1>&6 -echo "configure:6685: checking if curses supports alternate-character set" >&5 +echo "configure:6776: 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 @@ -6689,7 +6780,7 @@ else for mapname in acs_map _acs_map do cat > conftest.$ac_ext <<EOF -#line 6693 "configure" +#line 6784 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -6698,7 +6789,7 @@ int main() { chtype x = acs_map['l']; acs_map['m'] = 0 ; return 0; } EOF -if { (eval echo configure:6702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_alt_char_set=$mapname break @@ -6721,13 +6812,13 @@ EOF echo $ac_n "checking if curses supports fancy attributes""... $ac_c" 1>&6 -echo "configure:6725: checking if curses supports fancy attributes" >&5 +echo "configure:6816: 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 6731 "configure" +#line 6822 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -6740,7 +6831,7 @@ attrset(A_UNDERLINE|A_BOLD|A_REVERSE); ; return 0; } EOF -if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_fancy_curses=yes else @@ -6760,7 +6851,7 @@ EOF echo $ac_n "checking for ncurses version""... $ac_c" 1>&6 -echo "configure:6764: checking for ncurses version" >&5 +echo "configure:6855: 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 @@ -6785,7 +6876,7 @@ Autoconf "old" #endif EOF cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out" - { (eval echo configure:6789: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; } + { (eval echo configure:6880: \"$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" @@ -6794,7 +6885,7 @@ EOF else cat > conftest.$ac_ext <<EOF -#line 6798 "configure" +#line 6889 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -6817,7 +6908,7 @@ int main() exit(0); } EOF -if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then cf_cv_ncurses_version=`cat $cf_tempfile` @@ -6837,13 +6928,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:6841: checking for obsolete/broken version of ncurses" >&5 +echo "configure:6932: 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 6847 "configure" +#line 6938 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -6857,7 +6948,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:6861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_ncurses_broken=no else @@ -6882,13 +6973,13 @@ fi echo $ac_n "checking if curses supports color attributes""... $ac_c" 1>&6 -echo "configure:6886: checking if curses supports color attributes" >&5 +echo "configure:6977: 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 6892 "configure" +#line 6983 "configure" #include "confdefs.h" #include <${cf_cv_ncurses_header-curses.h}> @@ -6903,7 +6994,7 @@ chtype x = COLOR_BLUE; ; return 0; } EOF -if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:6998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_color_curses=yes else @@ -6930,7 +7021,7 @@ fi echo $ac_n "checking declaration of size-change""... $ac_c" 1>&6 -echo "configure:6934: checking declaration of size-change" >&5 +echo "configure:7025: 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 @@ -6944,7 +7035,7 @@ do CFLAGS="$cf_save_CFLAGS" test -n "$cf_opts" && CFLAGS="$CFLAGS -D$cf_opts" cat > conftest.$ac_ext <<EOF -#line 6948 "configure" +#line 7039 "configure" #include "confdefs.h" #include <sys/types.h> #if HAVE_TERMIOS_H @@ -6983,7 +7074,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:6987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cf_cv_sizechange=yes else @@ -7015,20 +7106,20 @@ EOF echo $ac_n "checking if ttytype is declared in curses library""... $ac_c" 1>&6 -echo "configure:7019: checking if ttytype is declared in curses library" >&5 +echo "configure:7110: 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 7025 "configure" +#line 7116 "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:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cf_cv_have_ttytype=yes else @@ -7055,12 +7146,12 @@ EOF do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7059: checking for $ac_func" >&5 +echo "configure:7150: 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 7064 "configure" +#line 7155 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -7083,7 +7174,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7113,7 +7204,7 @@ fi echo $ac_n "checking if experimental 8-bit case-conversion should be used""... $ac_c" 1>&6 -echo "configure:7117: checking if experimental 8-bit case-conversion should be used" >&5 +echo "configure:7208: checking if experimental 8-bit case-conversion should be used" >&5 # Check whether --enable-8bit-toupper or --disable-8bit-toupper was given. if test "${enable_8bit_toupper+set}" = set; then @@ -7137,7 +7228,7 @@ EOF echo $ac_n "checking if color-style code should be used""... $ac_c" 1>&6 -echo "configure:7141: checking if color-style code should be used" >&5 +echo "configure:7232: 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 @@ -7185,7 +7276,7 @@ EOF echo "$ac_t""yes" 1>&6 echo $ac_n "checking for location of style-sheet file""... $ac_c" 1>&6 -echo "configure:7189: checking for location of style-sheet file" >&5 +echo "configure:7280: 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" @@ -7198,7 +7289,7 @@ esac echo $ac_n "checking if experimental partial-display should be used""... $ac_c" 1>&6 -echo "configure:7202: checking if experimental partial-display should be used" >&5 +echo "configure:7293: checking if experimental partial-display should be used" >&5 # Check whether --enable-partial or --disable-partial was given. if test "${enable_partial+set}" = set; then @@ -7207,11 +7298,11 @@ if test "${enable_partial+set}" = set; then if test "$enableval" != "no" ; then use_partial_display=$enableval else - use_partial_display=no + use_partial_display=yes fi else enableval=no - use_partial_display=no + use_partial_display=yes fi @@ -7227,7 +7318,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:7231: checking if you want to use default-colors" >&5 +echo "configure:7322: 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 @@ -7252,7 +7343,7 @@ EOF fi echo $ac_n "checking if you want to use extended HTML DTD logic""... $ac_c" 1>&6 -echo "configure:7256: checking if you want to use extended HTML DTD logic" >&5 +echo "configure:7347: 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 @@ -7276,7 +7367,7 @@ EOF echo $ac_n "checking if you want to use external commands""... $ac_c" 1>&6 -echo "configure:7280: checking if you want to use external commands" >&5 +echo "configure:7371: 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 @@ -7300,7 +7391,7 @@ EOF echo $ac_n "checking if you want to use setfont support""... $ac_c" 1>&6 -echo "configure:7304: checking if you want to use setfont support" >&5 +echo "configure:7395: 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 @@ -7324,7 +7415,7 @@ EOF echo $ac_n "checking if you want internal-links feature""... $ac_c" 1>&6 -echo "configure:7328: checking if you want internal-links feature" >&5 +echo "configure:7419: 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 @@ -7348,7 +7439,7 @@ EOF echo $ac_n "checking if you want to fork NSL requests""... $ac_c" 1>&6 -echo "configure:7352: checking if you want to fork NSL requests" >&5 +echo "configure:7443: 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 @@ -7372,7 +7463,7 @@ EOF echo $ac_n "checking if you want to underline links""... $ac_c" 1>&6 -echo "configure:7376: checking if you want to underline links" >&5 +echo "configure:7467: checking if you want to underline links" >&5 # Check whether --enable-underlines or --disable-underlines was given. if test "${enable_underlines+set}" = set; then @@ -7396,7 +7487,7 @@ EOF echo $ac_n "checking if you want to use zlib for decompression of some gzip files""... $ac_c" 1>&6 -echo "configure:7400: checking if you want to use zlib for decompression of some gzip files" >&5 +echo "configure:7491: 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 @@ -7413,12 +7504,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:7417: checking for gzopen" >&5 +echo "configure:7508: 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 7422 "configure" +#line 7513 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gzopen(); below. */ @@ -7441,7 +7532,7 @@ gzopen(); ; return 0; } EOF -if { (eval echo configure:7445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_gzopen=yes" else @@ -7461,17 +7552,17 @@ else cf_save_LIBS="$LIBS" echo $ac_n "checking for gzopen in -lz""... $ac_c" 1>&6 -echo "configure:7465: checking for gzopen in -lz" >&5 +echo "configure:7556: checking for gzopen in -lz" >&5 LIBS="-lz $LIBS" cat > conftest.$ac_ext <<EOF -#line 7468 "configure" +#line 7559 "configure" #include "confdefs.h" #include <zlib.h> int main() { gzopen("name","mode") ; return 0; } EOF -if { (eval echo configure:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:7566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_z=yes @@ -7498,17 +7589,17 @@ test "$prefix" != /usr && cf_search="$cf_search /usr/lib /usr/lib/z" for cf_libdir in $cf_search do echo $ac_n "checking for -lz in $cf_libdir""... $ac_c" 1>&6 -echo "configure:7502: checking for -lz in $cf_libdir" >&5 +echo "configure:7593: checking for -lz in $cf_libdir" >&5 LIBS="-L$cf_libdir -lz $cf_save_LIBS" cat > conftest.$ac_ext <<EOF -#line 7505 "configure" +#line 7596 "configure" #include "confdefs.h" #include <zlib.h> int main() { gzopen("name","mode") ; return 0; } EOF -if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* echo "$ac_t""yes" 1>&6 cf_cv_have_lib_z=yes @@ -7549,7 +7640,7 @@ fi # 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:7553: checking if directory-editor code should be used" >&5 +echo "configure:7644: 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 @@ -7575,7 +7666,7 @@ EOF echo $ac_n "checking if you wish to allow extracting from archives via DirEd""... $ac_c" 1>&6 -echo "configure:7579: checking if you wish to allow extracting from archives via DirEd" >&5 +echo "configure:7670: 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 @@ -7594,7 +7685,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:7598: checking if you wish to allow users to redefine DirEd keys" >&5 +echo "configure:7689: 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 @@ -7620,7 +7711,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:7624: checking if you wish to allow permissions commands via DirEd" >&5 +echo "configure:7715: 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 @@ -7646,7 +7737,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:7650: checking if you wish to allow executable-permission commands via DirEd" >&5 +echo "configure:7741: 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 @@ -7665,7 +7756,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:7669: checking if you wish to allow "tar" commands from DirEd" >&5 +echo "configure:7760: 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 @@ -7691,7 +7782,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:7695: checking if you wish to allow "uudecode" commands from DirEd" >&5 +echo "configure:7786: 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 @@ -7717,7 +7808,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:7721: checking if you wish to allow "zip" and "unzip" commands from DirEd" >&5 +echo "configure:7812: 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 @@ -7743,7 +7834,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:7747: checking if you wish to allow "gzip" and "gunzip" commands from DirEd" >&5 +echo "configure:7838: 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 @@ -7770,7 +7861,7 @@ fi fi echo $ac_n "checking if you want long-directory listings""... $ac_c" 1>&6 -echo "configure:7774: checking if you want long-directory listings" >&5 +echo "configure:7865: 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 @@ -7796,7 +7887,7 @@ fi echo "$ac_t""$enableval" 1>&6 echo $ac_n "checking if parent-directory references are permitted""... $ac_c" 1>&6 -echo "configure:7800: checking if parent-directory references are permitted" >&5 +echo "configure:7891: 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 @@ -7979,6 +8070,7 @@ s%@ECHO_LD@%$ECHO_LD%g s%@RULE_CC@%$RULE_CC%g s%@SHOW_CC@%$SHOW_CC%g s%@ECHO_CC@%$ECHO_CC%g +s%@DONT_ECHO_CC@%$DONT_ECHO_CC%g s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g s%@CHMOD@%$CHMOD%g s%@COMPRESS@%$COMPRESS%g diff --git a/configure.in b/configure.in index b1705f6b..b4194bf7 100644 --- a/configure.in +++ b/configure.in @@ -4,6 +4,8 @@ dnl by T.E.Dickey <dickey@clark.net> dnl and Jim Spath <jspath@mail.bcpl.lib.md.us> AC_PREREQ(2.12) +rm -f config.cache + AC_INIT(userdefs.h) AC_CONFIG_HEADER(lynx_cfg.h:config.hin) @@ -31,6 +33,14 @@ Development Options:) CF_DISABLE_ECHO +# special case for WWW/* +if test -n "$ECHO_CC" ; then + DONT_ECHO_CC="$SHOW_CC ;" +else + DONT_ECHO_CC='' +fi +AC_SUBST(DONT_ECHO_CC) + AC_MSG_CHECKING(if you want to check memory-leaks) CF_ARG_ENABLE(find-leaks, [ --enable-find-leaks logic for testing memory leaks], @@ -57,7 +67,7 @@ if test "$with_debug" = "yes" ; then else case $host_os in osf*) #(vi - CFLAGS="$CFLAGS -std1" + test -n "$GCC" && CFLAGS="$CFLAGS -std1" CF_STRIP_G_OPT(CFLAGS) ;; *) @@ -328,6 +338,8 @@ AC_CHECK_HEADERS( \ ) CF_TERMIO_AND_TERMIOS CF_FUNC_WAIT +AC_TYPE_PID_T +AC_TYPE_UID_T AC_TYPE_MODE_T dnl -------------------------------------------------------------------------- @@ -363,6 +375,7 @@ dnl -------------------------------------------------------------------------- CF_BOOL_DEFS CF_ERRNO +CF_GETGROUPS CF_LOCALE CF_NGROUPS CF_SYS_ERRLIST @@ -439,7 +452,7 @@ AC_MSG_CHECKING(if experimental partial-display should be used) CF_ARG_ENABLE(partial, [ --enable-partial use experimental partial-display logic], [use_partial_display=$enableval], - [use_partial_display=no]) + [use_partial_display=yes]) AC_MSG_RESULT($use_partial_display) test $use_partial_display != no && AC_DEFINE(DISP_PARTIAL) diff --git a/docs/djgpp.key b/docs/djgpp.key new file mode 100644 index 00000000..d1c03a6b --- /dev/null +++ b/docs/djgpp.key @@ -0,0 +1,235 @@ + DJGPP Keyhandler Keymaps + +Control_A 0x001 +Control_B 0x002 +Control_C 0x003 +Control_D 0x004 +Control_E 0x005 +Control_F 0x006 +Control_G 0x007 +BackSpace 0x008 +Control_H 0x008 +Tab 0x009 +Control_I 0x009 +LineFeed 0x00a +Control_J 0x00a +Control_K 0x00b +Control_L 0x00c +Return 0x00d +Control_M 0x00d +Control_N 0x00e +Control_O 0x00f +Control_P 0x010 +Control_Q 0x011 +Control_R 0x012 +Control_S 0x013 +Control_T 0x014 +Control_U 0x015 +Control_V 0x016 +Control_W 0x017 +Control_X 0x018 +Control_Y 0x019 +Control_Z 0x01a +Control_LBracket 0x01b +Escape 0x01b +Control_BackSlash 0x01c +Control_RBracket 0x01d +Control_Caret 0x01e +Control_Underscore 0x01f +Space 0x020 +ExclamationPoint 0x021 +DoubleQuote 0x022 +Hash 0x023 +Dollar 0x024 +Percent 0x025 +Ampersand 0x026 +Quote 0x027 +LParen 0x028 +RParen 0x029 +Star 0x02a +Plus 0x02b +Comma 0x02c +Dash 0x02d +Period 0x02e +Slash 0x02f +Colon 0x03a +SemiColon 0x03b +LAngle 0x03c +Equals 0x03d +RAngle 0x03e +QuestionMark 0x03f +At 0x040 +LBracket 0x05b +BackSlash 0x05c +RBracket 0x05d +Caret 0x05e +UnderScore 0x05f +BackQuote 0x060 +LBrace 0x07b +Pipe 0x07c +RBrace 0x07d +Tilde 0x07e +Control_Backspace 0x07f +Alt_Escape 0x101 +Control_At 0x103 +Alt_Backspace 0x10e +BackTab 0x10f +Alt_Q 0x110 +Alt_W 0x111 +Alt_E 0x112 +Alt_R 0x113 +Alt_T 0x114 +Alt_Y 0x115 +Alt_U 0x116 +Alt_I 0x117 +Alt_O 0x118 +Alt_P 0x119 +Alt_LBracket 0x11a +Alt_RBracket 0x11b +Alt_Return 0x11c +Alt_A 0x11e +Alt_S 0x11f +Alt_D 0x120 +Alt_F 0x121 +Alt_G 0x122 +Alt_H 0x123 +Alt_J 0x124 +Alt_K 0x125 +Alt_L 0x126 +Alt_Semicolon 0x127 +Alt_Quote 0x128 +Alt_Backquote 0x129 +Alt_Backslash 0x12b +Alt_Z 0x12c +Alt_X 0x12d +Alt_C 0x12e +Alt_V 0x12f +Alt_B 0x130 +Alt_N 0x131 +Alt_M 0x132 +Alt_Comma 0x133 +Alt_Period 0x134 +Alt_Slash 0x135 +Alt_KPStar 0x137 +F1 0x13b +F2 0x13c +F3 0x13d +F4 0x13e +F5 0x13f +F6 0x140 +F7 0x141 +F8 0x142 +F9 0x143 +F10 0x144 +Home 0x147 +Up 0x148 +PageUp 0x149 +Alt_KPMinus 0x14a +Left 0x14b +Center 0x14c +Right 0x14d +Alt_KPPlus 0x14e +End 0x14f +Down 0x150 +PageDown 0x151 +Insert 0x152 +Delete 0x153 +Shift_F1 0x154 +Shift_F2 0x155 +Shift_F3 0x156 +Shift_F4 0x157 +Shift_F5 0x158 +Shift_F6 0x159 +Shift_F7 0x15a +Shift_F8 0x15b +Shift_F9 0x15c +Shift_F10 0x15d +Control_F1 0x15e +Control_F2 0x15f +Control_F3 0x160 +Control_F4 0x161 +Control_F5 0x162 +Control_F6 0x163 +Control_F7 0x164 +Control_F8 0x165 +Control_F9 0x166 +Control_F10 0x167 +Alt_F1 0x168 +Alt_F2 0x169 +Alt_F3 0x16a +Alt_F4 0x16b +Alt_F5 0x16c +Alt_F6 0x16d +Alt_F7 0x16e +Alt_F8 0x16f +Alt_F9 0x170 +Alt_F10 0x171 +Control_Print 0x172 +Control_Left 0x173 +Control_Right 0x174 +Control_End 0x175 +Control_PageDown 0x176 +Control_Home 0x177 +Alt_1 0x178 +Alt_2 0x179 +Alt_3 0x17a +Alt_4 0x17b +Alt_5 0x17c +Alt_6 0x17d +Alt_7 0x17e +Alt_8 0x17f +Alt_9 0x180 +Alt_0 0x181 +Alt_Dash 0x182 +Alt_Equals 0x183 +Control_PageUp 0x184 +F11 0x185 +F12 0x186 +Shift_F11 0x187 +Shift_F12 0x188 +Control_F11 0x189 +Control_F12 0x18a +Alt_F11 0x18b +Alt_F12 0x18c +Control_Up 0x18d +Control_KPDash 0x18e +Control_Center 0x18f +Control_KPPlus 0x190 +Control_Down 0x191 +Control_Insert 0x192 +Control_Delete 0x193 +Control_KPSlash 0x195 +Control_KPStar 0x196 +Alt_EHome 0x197 +Alt_EUp 0x198 +Alt_EPageUp 0x199 +Alt_ELeft 0x19b +Alt_ERight 0x19d +Alt_EEnd 0x19f +Alt_EDown 0x1a0 +Alt_EPageDown 0x1a1 +Alt_EInsert 0x1a2 +Alt_EDelete 0x1a3 +Alt_KPSlash 0x1a4 +Alt_Tab 0x1a5 +Alt_Enter 0x1a6 +EHome 0x247 +EUp 0x248 +EPageUp 0x249 +ELeft 0x24b +ERight 0x24d +EEnd 0x24f +EDown 0x250 +EPageDown 0x251 +EInsert 0x252 +EDelete 0x253 +Control_ELeft 0x273 +Control_ERight 0x274 +Control_EEnd 0x275 +Control_EPageDown 0x276 +Control_EHome 0x277 +Control_EPageUp 0x284 +Control_EUp 0x28d +Control_EDown 0x291 +Control_EInsert 0x292 +Control_EDelete 0x293 diff --git a/docs/pdcurses.key b/docs/pdcurses.key new file mode 100644 index 00000000..e13d9ba0 --- /dev/null +++ b/docs/pdcurses.key @@ -0,0 +1,127 @@ + PDCurses Keymaps + +KEY_F0 0x108 /* function keys. space for */ +KEY_F(n) (KEY_F0+(n))/* 64 keys are reserved. */ +ALT_0 0x197 /* Alt-0 */ +ALT_1 0x198 /* Alt-1 */ +ALT_2 0x199 /* Alt-2 */ +ALT_3 0x19a /* Alt-3 */ +ALT_4 0x19b /* Alt-4 */ +ALT_5 0x19c /* Alt-5 */ +ALT_6 0x19d /* Alt-6 */ +ALT_7 0x19e /* Alt-7 */ +ALT_8 0x19f /* Alt-8 */ +ALT_9 0x1a0 /* Alt-9 */ +ALT_A 0x1a1 /* Alt-A */ +ALT_B 0x1a2 /* Alt-B */ +ALT_C 0x1a3 /* Alt-C */ +ALT_D 0x1a4 /* Alt-D */ +ALT_E 0x1a5 /* Alt-E */ +ALT_F 0x1a6 /* Alt-F */ +ALT_G 0x1a7 /* Alt-G */ +ALT_H 0x1a8 /* Alt-H */ +ALT_I 0x1a9 /* Alt-I */ +ALT_J 0x1aa /* Alt-J */ +ALT_K 0x1ab /* Alt-K */ +ALT_L 0x1ac /* Alt-L */ +ALT_M 0x1ad /* Alt-M */ +ALT_N 0x1ae /* Alt-N */ +ALT_O 0x1af /* Alt-O */ +ALT_P 0x1b0 /* Alt-P */ +ALT_Q 0x1b1 /* Alt-Q */ +ALT_R 0x1b2 /* Alt-R */ +ALT_S 0x1b3 /* Alt-S */ +ALT_T 0x1b4 /* Alt-T */ +ALT_U 0x1b5 /* Alt-U */ +ALT_V 0x1b6 /* Alt-V */ +ALT_W 0x1b7 /* Alt-W */ +ALT_X 0x1b8 /* Alt-X */ +ALT_Y 0x1b9 /* Alt-Y */ +ALT_Z 0x1ba /* Alt-Z */ +CTL_LEFT 0x1bb /* Control-Left-Arrow */ +CTL_RIGHT 0x1bc /* Control-Right-Arrow */ +CTL_PGUP 0x1bd /* Control-PgUp */ +CTL_PGDN 0x1be /* Control-PgDn */ +CTL_HOME 0x1bf /* Control-Home */ +CTL_END 0x1c0 /* Control-End */ +KEY_A1 0x1c1 /* upper left on Virtual keypad */ +KEY_A2 0x1c2 /* upper middle on Virt. keypad */ +KEY_A3 0x1c3 /* upper right on Vir. keypad */ +KEY_B1 0x1c4 /* middle left on Virt. keypad */ +KEY_B2 0x1c5 /* center on Virt. keypad */ +KEY_B3 0x1c6 /* middle right on Vir. keypad */ +KEY_C1 0x1c7 /* lower left on Virt. keypad */ +KEY_C2 0x1c8 /* lower middle on Virt. keypad */ +KEY_C3 0x1c9 /* lower right on Vir. keypad */ +PADSLASH 0x1ca /* slash on keypad */ +PADENTER 0x1cb /* enter on keypad */ +CTL_PADENTER 0x1cc /* ctl-enter on keypad */ +ALT_PADENTER 0x1cd /* alt-enter on keypad */ +PADSTOP 0x1ce /* stop on keypad */ +PADSTAR 0x1cf /* star on keypad */ +PADMINUS 0x1d0 /* minus on keypad */ +PADPLUS 0x1d1 /* plus on keypad */ +CTL_PADSTOP 0x1d2 /* ctl-stop on keypad */ +CTL_PADCENTER 0x1d3 /* ctl-enter on keypad */ +CTL_PADPLUS 0x1d4 /* ctl-plus on keypad */ +CTL_PADMINUS 0x1d5 /* ctl-minus on keypad */ +CTL_PADSLASH 0x1d6 /* ctl-slash on keypad */ +CTL_PADSTAR 0x1d7 /* ctl-star on keypad */ +ALT_PADPLUS 0x1d8 /* alt-plus on keypad */ +ALT_PADMINUS 0x1d9 /* alt-minus on keypad */ +ALT_PADSLASH 0x1da /* alt-slash on keypad */ +ALT_PADSTAR 0x1db /* alt-star on keypad */ +ALT_PADSTOP 0x1dc /* alt-star on keypad */ +CTL_INS 0x1dd /* ctl-insert */ +ALT_DEL 0x1de /* alt-delete */ +ALT_INS 0x1df /* alt-insert */ +CTL_UP 0x1e0 /* ctl-up arrow */ +CTL_DOWN 0x1e1 /* ctl-down arrow */ +CTL_TAB 0x1e2 /* ctl-tab */ +ALT_TAB 0x1e3 /* alt-tab */ +ALT_MINUS 0x1e4 /* alt-minus */ +ALT_EQUAL 0x1e5 /* alt-equal */ +ALT_HOME 0x1e6 /* alt-home */ +ALT_PGUP 0x1e7 /* alt-pgup */ +ALT_PGDN 0x1e8 /* alt-pgdn */ +ALT_END 0x1e9 /* alt-end */ +ALT_UP 0x1ea /* alt-up arrow */ +ALT_DOWN 0x1eb /* alt-down arrow */ +ALT_RIGHT 0x1ec /* alt-right arrow */ +ALT_LEFT 0x1ed /* alt-left arrow */ +ALT_ENTER 0x1ee /* alt-enter */ +ALT_ESC 0x1ef /* alt-escape */ +ALT_BQUOTE 0x1f0 /* alt-back quote */ +ALT_LBRACKET 0x1f1 /* alt-left bracket */ +ALT_RBRACKET 0x1f2 /* alt-right bracket */ +ALT_SEMICOLON 0x1f3 /* alt-semi-colon */ +ALT_FQUOTE 0x1f4 /* alt-forward quote */ +ALT_COMMA 0x1f5 /* alt-comma */ +ALT_STOP 0x1f6 /* alt-stop */ +ALT_FSLASH 0x1f7 /* alt-forward slash */ +ALT_BKSP 0x1f8 /* alt-backspace */ +CTL_BKSP 0x1f9 /* ctl-backspace */ +PAD0 0x1fa /* ctl-keypad 0 */ +CTL_PAD0 0x1fb /* ctl-keypad 0 */ +CTL_PAD1 0x1fc /* ctl-keypad 1 */ +CTL_PAD2 0x1fd /* ctl-keypad 2 */ +CTL_PAD3 0x1fe /* ctl-keypad 3 */ +CTL_PAD4 0x1ff /* ctl-keypad 4 */ +CTL_PAD5 0x200 /* ctl-keypad 5 */ +CTL_PAD6 0x201 /* ctl-keypad 6 */ +CTL_PAD7 0x202 /* ctl-keypad 7 */ +CTL_PAD8 0x203 /* ctl-keypad 8 */ +CTL_PAD9 0x204 /* ctl-keypad 9 */ +ALT_PAD0 0x205 /* ctl-keypad 0 */ +ALT_PAD1 0x206 /* ctl-keypad 1 */ +ALT_PAD2 0x207 /* ctl-keypad 2 */ +ALT_PAD3 0x208 /* ctl-keypad 3 */ +ALT_PAD4 0x209 /* ctl-keypad 4 */ +ALT_PAD5 0x20a /* ctl-keypad 5 */ +ALT_PAD6 0x20b /* ctl-keypad 6 */ +ALT_PAD7 0x20c /* ctl-keypad 7 */ +ALT_PAD8 0x20d /* ctl-keypad 8 */ +ALT_PAD9 0x20e /* ctl-keypad 9 */ +CTL_DEL 0x20f /* clt-delete */ +ALT_BSLASH 0x210 /* alt-back slash */ +CTL_ENTER 0x211 /* ctl-enter */ diff --git a/docs/slang.key b/docs/slang.key new file mode 100644 index 00000000..9a576f0c --- /dev/null +++ b/docs/slang.key @@ -0,0 +1,22 @@ + S-Lang Keymaps for DOS + +UP 0x101 +DOWN 0x102 +LEFT 0x103 +RIGHT 0x104 +PPAGE 0x105 +NPAGE 0x106 +HOME 0x107 +END 0x108 +A1 0x109 +A3 0x10A +B2 0x10B +C1 0x10C +C3 0x10D +BACKSPACE 0x110 +ENTER 0x111 +IC 0x112 +DELETE 0x113 + +F0 0x200 +F(X) (SL_KEY_F0 + X) @@ -329,6 +329,9 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html #URL_DOMAIN_PREFIXES:www. #URL_DOMAIN_SUFFIXES:.com,.edu,.net,.org +# Display partial pages while downloading +#PARTIAL:TRUE + # The following three definitions set the number of seconds for # pauses following statusline messages that would otherwise be # replaced immediately, and are more important than the unpaused @@ -1050,6 +1053,7 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html # # example #UPLOADER:Use Kermit to upload from your computer: kermit -i -r -a %s:TRUE +#UPLOADER:Use Zmodem to upload from your computer: rz %s:TRUE # If NO_DOT_FILES is TRUE (normal default via userdefs.h), the user will not # be allowed to specify files beginning with a dot in reply to output filename diff --git a/src/HTAlert.c b/src/HTAlert.c index a10d79d9..084b550b 100644 --- a/src/HTAlert.c +++ b/src/HTAlert.c @@ -464,7 +464,7 @@ PUBLIC int HTConfirmPostRedirect ARGS2( return 303; } - if (dump_output_immediately) + if (dump_output_immediately) { if (server_status == 301) { /* ** Treat 301 as historical, i.e., like 303 (GET @@ -479,6 +479,7 @@ PUBLIC int HTConfirmPostRedirect ARGS2( */ return 0; } + } StatusInfo[254] = StatusInfo[255] = '\0'; url[254] = url[(LYcols < 250 ? LYcols-1 : 255)] = '\0'; diff --git a/src/HTAlert.h b/src/HTAlert.h index b35267b6..be80ee33 100644 --- a/src/HTAlert.h +++ b/src/HTAlert.h @@ -1,5 +1,3 @@ -/* */ - /* Displaying messages and getting input for WWW Library ** ===================================================== ** @@ -7,6 +5,9 @@ ** Feb 93 Portablized etc TBL */ +#ifndef HTALERT_H +#define HTALERT_H 1 + #ifndef HTUTILS_H #include <HTUtils.h> #endif /* HTUTILS_H */ @@ -128,6 +129,4 @@ extern int HTConfirmPostRedirect PARAMS(( CONST char * Redirecting_url, int server_status)); -/* - - */ +#endif /* HTALERT_H */ @@ -5204,7 +5204,7 @@ PRIVATE void HTML_start_element ARGS6( } CTRACE(tfp,"HTML:begin_element[%d]: adding style to stack - %s\n", - STACKLEVEL(me), + (int) STACKLEVEL(me), me->new_style->name); (me->sp)--; me->sp[0].style = me->new_style; /* Stack new style */ @@ -5370,7 +5370,7 @@ PRIVATE void HTML_end_element ARGS3( } else if (me->sp < (me->stack + MAX_NESTING - 1)) { (me->sp)++; CTRACE(tfp, "HTML:end_element[%d]: Popped style off stack - %s\n", - STACKLEVEL(me), + (int) STACKLEVEL(me), me->sp->style->name); } else { CTRACE(tfp, @@ -5403,7 +5403,7 @@ PRIVATE void HTML_end_element ARGS3( switch(element_number) { case HTML_HTML: - if (me->inA || me->inSELECT || me->inTEXTAREA) + if (me->inA || me->inSELECT || me->inTEXTAREA) { if (TRACE) { fprintf(tfp, "Bad HTML: %s%s%s%s%s not closed before HTML end tag *****\n", @@ -5417,6 +5417,7 @@ PRIVATE void HTML_end_element ARGS3( me->inBadHTML = TRUE; sleep(MessageSecs); } + } break; case HTML_HEAD: @@ -5505,7 +5506,7 @@ PRIVATE void HTML_end_element ARGS3( break; case HTML_BODY: - if (me->inA || me->inSELECT || me->inTEXTAREA) + if (me->inA || me->inSELECT || me->inTEXTAREA) { if (TRACE) { fprintf(tfp, "Bad HTML: %s%s%s%s%s not closed before BODY end tag *****\n", @@ -5519,6 +5520,7 @@ PRIVATE void HTML_end_element ARGS3( me->inBadHTML = TRUE; sleep(MessageSecs); } + } break; case HTML_FRAMESET: diff --git a/src/LYCgi.c b/src/LYCgi.c index efd29007..41d1ac33 100644 --- a/src/LYCgi.c +++ b/src/LYCgi.c @@ -48,8 +48,6 @@ #include <LYLeaks.h> -#define FREE(x) if (x) {free(x); x = NULL;} - struct _HTStream { HTStreamClass * isa; diff --git a/src/LYCharUtils.c b/src/LYCharUtils.c index 35afffc1..f380ce0a 100644 --- a/src/LYCharUtils.c +++ b/src/LYCharUtils.c @@ -3730,7 +3730,6 @@ PUBLIC BOOLEAN LYoverride_default_alignment ARGS1( case HTML_ADDRESS: me->sp->style->alignment = HT_LEFT; return YES; - break; default: break; diff --git a/src/LYCurses.h b/src/LYCurses.h index 9f51e031..8e6443de 100644 --- a/src/LYCurses.h +++ b/src/LYCurses.h @@ -188,9 +188,9 @@ extern unsigned int Lynx_Color_Flags; #define USE_SLANG_MOUSE 1 #endif /* USE_SLANG */ -#if SLANG_VERSION >= 10000 +#if ((SLANG_VERSION >= 10000) && !defined(__DJGPP__)) #define USE_SLANG_KEYMAPS 1 -#endif +#endif /* SLANG_VERSION >= 10000 */ #define SL_LYNX_USE_COLOR 1 #define SL_LYNX_USE_BLINK 2 diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h index 2507f81e..722f6d6b 100644 --- a/src/LYGlobalDefs.h +++ b/src/LYGlobalDefs.h @@ -112,7 +112,7 @@ extern int LYChosenShowColor; /* extended color/monochrome choice */ extern int LYrcShowColor; /* ... as read or last written */ extern BOOLEAN LYShowCursor; /* Show the cursor or hide it? */ -extern BOOLEAN verbose_img; /* display filenames of images? */ +extern BOOLEAN verbose_img; /* display filenames of images? */ extern BOOLEAN LYUseDefShoCur; /* Command line -show_cursor toggle */ extern BOOLEAN LYCursesON; /* start_curses()->TRUE, stop_curses()->FALSE */ extern BOOLEAN LYUserSpecifiedURL; /* URL from a goto or document? */ @@ -121,7 +121,6 @@ extern BOOLEAN jump_buffer; /* TRUE if offering default shortcut */ extern BOOLEAN goto_buffer; /* TRUE if offering default goto URL */ extern char *LYRequestTitle; /* newdoc.title in calls to getfile() */ extern char *jumpprompt; /* The default jump statusline prompt */ -extern int Newline; /* HText_pageDisplay() requires it */ extern int more; /* is there more document to display? */ extern int display_lines; /* number of lines in the display */ extern int www_search_result; @@ -177,7 +176,7 @@ extern BOOLEAN case_sensitive; /* TRUE to turn on case sensitive search */ extern BOOLEAN no_inside_telnet; /* this and following are restrictions */ extern BOOLEAN no_outside_telnet; extern BOOLEAN no_telnet_port; -extern BOOLEAN no_inside_news; +extern BOOLEAN no_inside_news; extern BOOLEAN no_outside_news; extern BOOLEAN no_inside_ftp; extern BOOLEAN no_outside_ftp; @@ -253,6 +252,8 @@ extern BOOLEAN keep_mime_headers; /* Include mime headers and * * force source dump */ extern BOOLEAN no_url_redirection; /* Don't follow URL redirections */ extern BOOLEAN display_partial; /* Display document during download */ +extern int Newline_partial; /* -//- "current" newline position */ +extern int NumOfLines_partial; /* -//- "current" number of lines */ extern char *form_post_data; /* User data for post form */ extern char *form_get_data; /* User data for get form */ extern char *http_error_file; /* Place HTTP status code in this file */ @@ -307,7 +308,7 @@ extern BOOLEAN no_externals; /* don't allow the use of externals */ extern BOOLEAN LYNoISMAPifUSEMAP; /* Omit ISMAP link if MAP present? */ extern int LYHiddenLinks; -extern BOOL New_DTD; +extern BOOL New_DTD; #define BOOKMARK_TITLE "Bookmark file" #define MOSAIC_BOOKMARK_TITLE "Converted Mosaic Hotlist" diff --git a/src/LYKeymap.c b/src/LYKeymap.c index 1ae0e763..3213f6c4 100644 --- a/src/LYKeymap.c +++ b/src/LYKeymap.c @@ -9,9 +9,11 @@ #include <LYLeaks.h> +#define TABLESIZE(v) (sizeof(v)/sizeof(v[0])) + PRIVATE CONST DocAddress keymap_anchor = {"LYNXKEYMAP", NULL, NULL}; -struct _HTStream +struct _HTStream { HTStreamClass * isa; }; @@ -19,7 +21,7 @@ struct _HTStream /* the character gets 1 added to it before lookup, * so that EOF maps to 0 */ -char keymap[] = { +unsigned short keymap[] = { 0, /* EOF */ @@ -39,10 +41,6 @@ LYK_REFRESH, LYK_ACTIVATE, LYK_DOWN_TWO, 0, LYK_UP_TWO, 0, LYK_RELOAD, 0, /* ^P */ /* XON */ /* ^R */ /* XOFF */ -#ifdef NOT_USED -LYK_TRACE_TOGGLE, 0, LYK_VERSION, LYK_REFRESH, -/* ^T */ /* ^U */ /* ^V */ /* ^W */ -#endif /* NOT_USED */ LYK_TRACE_TOGGLE, 0, LYK_SWITCH_DTD, LYK_REFRESH, /* ^T */ /* ^U */ /* ^V */ /* ^W */ @@ -84,15 +82,15 @@ LYK_UP_LINK, LYK_INFO, LYK_DOWN_LINK, LYK_HELP, LYK_RAW_TOGGLE, LYK_ADD_BOOKMARK, LYK_PREV_PAGE, LYK_COMMENT, /* @ */ /* A */ /* B */ /* C */ -LYK_DOWNLOAD, LYK_ELGOTO, -/* D */ /* E */ +LYK_DOWNLOAD, LYK_ELGOTO, +/* D */ /* E */ #if defined(DIRED_SUPPORT) || defined(VMS) LYK_DIRED_MENU, #else -0, +0, #endif /* DIRED_SUPPORT || VMS */ -/* F */ +/* F */ LYK_ECGOTO, /* G */ @@ -106,20 +104,9 @@ LYK_LIST, LYK_MAIN_MENU, LYK_NEXT, LYK_OPTIONS, LYK_PRINT, LYK_ABORT, LYK_DEL_BOOKMARK, LYK_INDEX_SEARCH, /* P */ /* Q */ /* R */ /* S */ -#ifdef DIRED_SUPPORT -LYK_TAG_LINK, -#else -0, -#endif /* DIRED_SUPPORT */ -/* T */ - - LYK_PREV_DOC, LYK_VLINKS, 0, - /* U */ /* V */ /* W */ +LYK_TAG_LINK, LYK_PREV_DOC, LYK_VLINKS, 0, +/* T */ /* U */ /* V */ /* W */ -#ifdef NOT_USED -LYK_FORM_UP, 0, LYK_FORM_DOWN, LYK_INLINE_TOGGLE, -/* X */ /* Y */ /* Z */ /* [ */ -#endif /* NOT_USED */ LYK_NOCACHE, 0, LYK_INTERRUPT, LYK_INLINE_TOGGLE, /* X */ /* Y */ /* Z */ /* [ */ @@ -129,15 +116,15 @@ LYK_SOURCE, LYK_HEAD, 0, LYK_CLEAR_AUTH, LYK_MINIMAL, LYK_ADD_BOOKMARK, LYK_PREV_PAGE, LYK_COMMENT, /* ` */ /* a */ /* b */ /* c */ -LYK_DOWNLOAD, LYK_EDIT, -/* d */ /* e */ +LYK_DOWNLOAD, LYK_EDIT, +/* d */ /* e */ #if defined(DIRED_SUPPORT) || defined(VMS) LYK_DIRED_MENU, #else -0, +0, #endif /* DIRED_SUPPORT || VMS */ -/* f */ +/* f */ LYK_GOTO, /* g */ @@ -151,20 +138,9 @@ LYK_LIST, LYK_MAIN_MENU, LYK_NEXT, LYK_OPTIONS, LYK_PRINT, LYK_QUIT, LYK_DEL_BOOKMARK, LYK_INDEX_SEARCH, /* p */ /* q */ /* r */ /* s */ -#ifdef DIRED_SUPPORT -LYK_TAG_LINK, -#else -0, -#endif /* DIRED_SUPPORT */ -/* t */ - - LYK_PREV_DOC, LYK_VIEW_BOOKMARK, 0, - /* u */ /* v */ /* w */ +LYK_TAG_LINK, LYK_PREV_DOC, LYK_VIEW_BOOKMARK, 0, +/* t */ /* u */ /* v */ /* w */ -#ifdef NOT_USED -LYK_FORM_UP, 0, LYK_FORM_DOWN, 0, -/* x */ /* y */ /* z */ /* { */ -#endif /* NOT_USED */ LYK_NOCACHE, 0, LYK_INTERRUPT, 0, /* x */ /* y */ /* z */ /* { */ @@ -208,12 +184,37 @@ LYK_PIPE, 0, 0, LYK_HISTORY, 0, 0, 0, 0, /* 100..10E function key definitions in LYStrings.h */ +#if defined(__DJGPP__) && defined(USE_SLANG) && !defined(DJGPP_KEYHANDLER) + 0, LYK_PREV_LINK, LYK_NEXT_LINK, LYK_PREV_DOC, + /* UPARROW */ /* DNARROW */ /* LTARROW */ + +LYK_ACTIVATE, LYK_PREV_PAGE, LYK_NEXT_PAGE, LYK_HOME, +/* RTARROW */ /* PGUP */ /* PGDOWN */ /* HOME */ + +#else LYK_PREV_LINK, LYK_NEXT_LINK, LYK_ACTIVATE, LYK_PREV_DOC, /* UPARROW */ /* DNARROW */ /* RTARROW */ /* LTARROW */ LYK_NEXT_PAGE, LYK_PREV_PAGE, LYK_HOME, LYK_END, /* PGDOWN */ /* PGUP */ /* HOME */ /* END */ +#endif /* __DJGPP__ && USE_SLANG && !DJGPP_KEYHANDLER */ +#ifdef __DJGPP__ +#ifdef USE_SLANG +LYK_END, LYK_HOME, LYK_PREV_PAGE, 0, +/* END */ /* HOME */ /* PGUP */ /* B2 Key */ + +LYK_END, LYK_NEXT_PAGE, 0, +/* END */ /* PGDOWN */ + +#else + 0, LYK_HELP, 0, 0, +/* F0 */ /* F1 */ /* F2 */ /* F3 */ + + 0, 0, 0, + +#endif /* USE_SLANG */ +#else LYK_HELP, LYK_ACTIVATE, LYK_HOME, LYK_END, /* F1*/ /* Do key */ /* Find key */ /* Select key */ @@ -222,6 +223,157 @@ LYK_UP_TWO, LYK_DOWN_TWO, LYK_DO_NOTHING, /* DO_NOTHING*/ +#endif /* __DJGPP__ */ +/* 10F..18F */ + + 0, +#if defined(USE_SLANG) && !defined(DJGPP_KEYHANDLER) + LYK_HISTORY, LYK_ACTIVATE, 0, 0, + /* Backspace */ /* Enter */ +#else + 0, 0, 0, 0, +#endif /* USE_SLANG */ + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, +#ifdef DJGPP_KEYHANDLER + 0, LYK_ABORT, 0, 0, + /* ALT_X */ + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, LYK_HELP, + /* F1 */ +#else + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, +#endif /* DJGPP_KEYHANDLER */ + 0, 0, 0, 0, + 0, 0, 0, 0, +#ifdef DJGPP_KEYHANDLER + 0, 0, 0, LYK_HOME, + /* HOME */ +LYK_PREV_LINK, LYK_PREV_PAGE, 0, LYK_PREV_DOC, +/* UPARROW */ /* Page Up */ /* LEFTARROW */ + 0, LYK_ACTIVATE, 0, LYK_END, + /* RTARROW */ /* END */ +LYK_NEXT_LINK, LYK_NEXT_PAGE, 0, 0, +/* DNARROW */ /* Page Down */ +#else + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, +#endif /* DJGPP_KEYHANDLER */ + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, +/* 190..20F */ + + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + LYK_ABORT, 0, 0, 0, + /* ALT_X */ + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, LYK_ACTIVATE, + /* KP_ENTER */ + 0, 0, 0, LYK_IMAGE_TOGGLE, + /* KP_* */ + LYK_PREV_PAGE, LYK_NEXT_PAGE, 0, 0, + /* KP_- */ /* KP_+ */ + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, +#if defined(USE_SLANG) && !defined(DJGPP_KEYHANDLER) + 0, LYK_HELP, 0, 0, + /* F1 */ +#else + 0, 0, 0, 0, +#endif /* USE_SLANG */ + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, +/* 210..28F */ + + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, +#ifdef DJGPP_KEYHANDLER + 0, 0, 0, LYK_HOME, + /* HOME */ +LYK_PREV_LINK, LYK_PREV_PAGE, 0, LYK_PREV_DOC, +/* UPARROW */ /* Page Up */ /* LEFTARROW */ + 0, LYK_ACTIVATE, 0, LYK_END, + /* RTARROW */ /* END */ +LYK_NEXT_LINK, LYK_NEXT_PAGE, 0, 0, +/* DNARROW */ /* Page Down */ +#else + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, +#endif /* DJGPP_KEYHANDLER */ + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + 0, 0, 0, 0, + /* 290...293 */ + 0, 0, 0, 0, }; #if defined(DIRED_SUPPORT) && defined(OK_OVERRIDE) @@ -231,7 +383,7 @@ LYK_DO_NOTHING, * allowed at compile time. */ -char override[] = { +unsigned short key_override[TABLESIZE(keymap)] = { 0, /* EOF */ @@ -481,11 +633,6 @@ PRIVATE struct rmap revmap[] = { { "INSTALL", "install file or tagged files into a system area" }, #endif /* DIRED_SUPPORT */ #endif /* VMS */ -#ifdef NOT_USED -{ "VERSION", "report version of lynx"}, -{ "FORM_UP", "toggle a checkbox" }, -{ "FORM_DOWN", "toggle a checkbox" }, -#endif /* NOT_USED */ { NULL, "" } }; @@ -526,27 +673,44 @@ PRIVATE char *pretty ARGS1 (int, c) sprintf(buf, "%c", c); else if (c < ' ') sprintf(buf, "^%c", c|0100); - else + else if (c >= 0400 && (c - 0400) < (int) TABLESIZE(funckey)) sprintf(buf, "%s", funckey[c-0400]); - + else + return 0; + return buf; } +PRIVATE BOOL format_binding ARGS3( + char *, buf, + unsigned short *, table, + int, i) +{ + unsigned the_key = table[i]; + char *formatted; + + if (the_key != 0 + && the_key < TABLESIZE(revmap) + && revmap[the_key].name != 0 + && revmap[the_key].doc != 0 + && (formatted = pretty(i-1)) != 0) { + sprintf(buf, "%-12s%-14s%s\n", formatted, + revmap[the_key].name, + revmap[the_key].doc); + return TRUE; + } + return FALSE; +} + PRIVATE void print_binding ARGS3(HTStream *, target, char *, buf, int, i) { #if defined(DIRED_SUPPORT) && defined(OK_OVERRIDE) if (prev_lynx_edit_mode && !no_dired_support && - override[i] && revmap[(unsigned char)override[i]].doc) { - sprintf(buf, "%-12s%-14s%s\n", pretty(i-1), - revmap[(unsigned char)override[i]].name, - revmap[(unsigned char)override[i]].doc); + format_binding(buf, key_override, i)) { (*target->isa->put_block)(target, buf, strlen(buf)); } else #endif /* DIRED_SUPPORT && OK_OVERRIDE */ - if (keymap[i] && revmap[(unsigned char)keymap[i]].doc) { - sprintf(buf, "%-12s%-14s%s\n", pretty(i-1), - revmap[(unsigned char)keymap[i]].name, - revmap[(unsigned char)keymap[i]].doc); + if (format_binding(buf, keymap, i)) { (*target->isa->put_block)(target, buf, strlen(buf)); } } @@ -577,7 +741,7 @@ PRIVATE int LYLoadKeymap ARGS4 ( sprintf(buf, "<head>\n<title>%s</title>\n</head>\n<body>\n", CURRENT_KEYMAP_TITLE); (*target->isa->put_block)(target, buf, strlen(buf)); - + sprintf(buf, "<h1>%s (%s Version %s)</h1>\n<pre>", CURRENT_KEYMAP_TITLE, LYNX_NAME, LYNX_VERSION); (*target->isa->put_block)(target, buf, strlen(buf)); @@ -589,12 +753,12 @@ PRIVATE int LYLoadKeymap ARGS4 ( i-' '); /* uppercase mapping is different */ } } - for (i = 1; i < (int) sizeof(keymap); i++) { + for (i = 1; i < (int) TABLESIZE(keymap); i++) { /* * LYK_PIPE not implemented yet. */ - if ((i > 127 || i <= ' ' || !isalpha(i-1)) && - strcmp(revmap[(unsigned char)keymap[i]].name, "PIPE")) { + if ((i > (int) TABLESIZE(keymap) || i <= ' ' || !isalpha(i-1)) && + strcmp(revmap[keymap[i]].name, "PIPE")) { print_binding(target, buf, i); } } @@ -646,8 +810,8 @@ PUBLIC int remap ARGS2(char *,key, char *,func) PUBLIC void set_vms_keys NOARGS { keymap[26+1] = LYK_ABORT; /* control-Z */ - keymap['$'+1] = LYK_SHELL; -} + keymap['$'+1] = LYK_SHELL; +} static char saved_vi_keys[4]; static BOOLEAN did_vi_keys; @@ -763,27 +927,40 @@ PUBLIC void reset_numbers_as_arrows NOARGS did_number_keys = FALSE; } -PUBLIC char *key_for_func ARGS1 ( +PUBLIC int lookup_keymap ARGS1( int, func) { - static char buf[512]; - size_t i; - - buf[0] = '\0'; - for (i = 1; i < sizeof(keymap); i++) { - if (keymap[i] == func) { - if (*buf) - strcat(buf, " or "); - strcat(buf, pretty(i-1)); - } + size_t i; + + for (i = 1; i < TABLESIZE(keymap); i++) { + if (LYisNonAlnumKeyname(i, func)) { + return i; } - return buf; + } + return -1; +} + +PUBLIC char *key_for_func ARGS1 ( + int, func) +{ + static char buf[512]; + int i; + char *formatted; + + buf[0] = '\0'; + if ((i = LYReverseKeymap(func)) >= 0) { + if (*buf) + strcat(buf, " or "); + formatted = pretty(i); + strcat(buf, formatted != 0 ? formatted : "?"); + } + return buf; } /* * This function returns TRUE if the ch is non-alphanumeric * and maps to key_name (LYK_foo in the keymap[] array). - FM - */ + */ PUBLIC BOOL LYisNonAlnumKeyname ARGS2( int, ch, int, key_name) @@ -796,7 +973,6 @@ PUBLIC BOOL LYisNonAlnumKeyname ARGS2( return(keymap[ch+1] == key_name); } -#ifdef NOTUSED_FOTEMODS /* * This function returns the (int)ch mapped to the * LYK_foo value passed to it as an argument. - FM @@ -806,12 +982,11 @@ PUBLIC int LYReverseKeymap ARGS1( { int i; - for (i = 1; i < sizeof(keymap); i++) { + for (i = 1; i < (int) TABLESIZE(keymap); i++) { if (keymap[i] == key_name) { return(i - 1); } } - return(0); + return(-1); } -#endif diff --git a/src/LYKeymap.h b/src/LYKeymap.h index 77feb48f..406d3660 100644 --- a/src/LYKeymap.h +++ b/src/LYKeymap.h @@ -1,23 +1,24 @@ #ifndef LYKEYMAP_H #define LYKEYMAP_H +extern BOOLEAN LYisNonAlnumKeyname PARAMS((int ch, int key_name)); +extern char *key_for_func PARAMS((int func)); +extern int LYReverseKeymap PARAMS((int key_name)); +extern int lookup_keymap PARAMS((int code)); extern int remap PARAMS((char *key, char *func)); -extern void set_vms_keys NOPARAMS; -extern void set_vi_keys NOPARAMS; +extern void print_keymap PARAMS((char **newfile)); +extern void reset_emacs_keys NOPARAMS; +extern void reset_numbers_as_arrows NOPARAMS; extern void reset_vi_keys NOPARAMS; extern void set_emacs_keys NOPARAMS; -extern void reset_emacs_keys NOPARAMS; extern void set_numbers_as_arrows NOPARAMS; -extern void reset_numbers_as_arrows NOPARAMS; -extern void print_keymap PARAMS((char **newfile)); -extern char *key_for_func PARAMS((int func)); -extern BOOLEAN LYisNonAlnumKeyname PARAMS((int ch, int key_name)); -extern int LYReverseKeymap PARAMS((int key_name)); +extern void set_vi_keys NOPARAMS; +extern void set_vms_keys NOPARAMS; -extern char keymap[]; /* main keymap matrix */ +extern unsigned short keymap[]; /* main keymap matrix */ #if defined(DIRED_SUPPORT) && defined(OK_OVERRIDE) -extern char override[]; +extern unsigned short key_override[]; #endif #define CURRENT_KEYMAP_TITLE "Current Key Map" @@ -116,6 +117,14 @@ extern char override[]; #define LYK_INSTALL (LYK_DIRED_MENU+6) #endif /* DIRED_SUPPORT */ +#ifndef LYK_DIRED_MENU +#define LYK_DIRED_MENU 0 +#endif + +#ifndef LYK_TAG_LINK +#define LYK_TAG_LINK 0 +#endif + #ifdef NOT_USED #define LYK_VERSION 81 #define LYK_FORM_UP 82 diff --git a/src/LYMain.c b/src/LYMain.c index 6d1ebd79..d836e568 100644 --- a/src/LYMain.c +++ b/src/LYMain.c @@ -307,7 +307,6 @@ PUBLIC BOOLEAN LYCancelledFetch = FALSE; /* TRUE if cancelled binary fetch */ /* Include mime headers with source dump */ PUBLIC BOOLEAN keep_mime_headers = FALSE; PUBLIC BOOLEAN no_url_redirection = FALSE; /* Don't follow URL redirections */ -PUBLIC BOOLEAN display_partial = FALSE; /* Display document during download */ PUBLIC char *form_post_data = NULL; /* User data for post form */ PUBLIC char *form_get_data = NULL; /* User data for get form */ PUBLIC char *http_error_file = NULL; /* Place HTTP status code in this file */ @@ -374,6 +373,10 @@ PUBLIC BOOLEAN LYPrependBaseToSource = TRUE; PUBLIC BOOLEAN LYPrependCharsetToSource = FALSE; PUBLIC BOOLEAN LYQuitDefaultYes = QUIT_DEFAULT_YES; +#ifdef DISP_PARTIAL +PUBLIC BOOLEAN display_partial = FALSE; /* Display document during download */ +#endif + /* These are declared in cutil.h for current freeWAIS libraries. - FM */ #ifdef DECLARE_WAIS_LOGFILES PUBLIC char *log_file_name = NULL; /* for WAIS log file name in libWWW */ diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c index 52e501ac..2c621748 100644 --- a/src/LYMainLoop.c +++ b/src/LYMainLoop.c @@ -90,7 +90,10 @@ PUBLIC HTList * Goto_URLs = NULL; /* List of Goto URLs */ PUBLIC char * LYRequestTitle = NULL; /* newdoc.title in calls to getfile() */ -PUBLIC int Newline = 0; /* HText_pageDisplay() requires it */ +#ifdef DISP_PARTIAL +PUBLIC int Newline_partial = 0; /* required for display_partial mode */ +PUBLIC int NumOfLines_partial = 0; /* required for display_partial mode */ +#endif PRIVATE document newdoc; PRIVATE document curdoc; @@ -187,6 +190,7 @@ int mainloop NOARGS int getresult; int arrowup = FALSE, show_help = FALSE; int lines_in_file = -1; + int Newline = 0; char prev_target[512]; char user_input_buffer[1024]; char *owner_address = NULL; /* Holds the responsible owner's address */ @@ -212,6 +216,9 @@ int mainloop NOARGS BOOLEAN LYSelectPopups_flag = LYSelectPopups; BOOLEAN trace_mode_flag = FALSE; BOOLEAN forced_HTML_mode = LYforce_HTML_mode; +#ifdef DISP_PARTIAL + BOOLEAN display_partial_flag = display_partial; +#endif char cfile[128]; FILE *cfp; char *cp, *toolbar; @@ -492,6 +499,27 @@ try_again: LYPermitURL = TRUE; } +#ifdef DISP_PARTIAL + display_partial = display_partial_flag; /* reset */ + Newline_partial = 0; /* initialize */ + NumOfLines_partial = 0; /* initialize */ + /* + * Disable display_partial if requested URL has #fragment. + * Otherwise user got the new document from the first page and + * be moved to #fragment later after download completed, but + * only if user did not mess screen up by scrolling before... + * So fall down to old behavior here. + * Also we should avoid displaying 'd'ownloaded files + * since they are not supposed to be shown on the screen. + * (actually we may get 'curdoc' displayed from the first page...) + */ + if (display_partial && (strchr(newdoc.address, '#')==NULL) && + (strncmp(newdoc.address, "LYNXDOWNLOAD:", 13)==0)) + display_partial = TRUE; + else + display_partial = FALSE; +#endif /* DISP_PARTIAL */ + #ifndef DONT_TRACK_INTERNAL_LINKS if (try_internal) { if (newdoc.address && @@ -783,10 +811,9 @@ try_again: } cmd = LYK_PREV_DOC; goto new_cmd; - } + } override_LYresubmit_posts = TRUE; goto try_again; - break; case NORMAL: /* @@ -963,6 +990,14 @@ try_again: * before, or it is 1 if this is a new file. */ Newline = newdoc.line; +#ifdef DISP_PARTIAL + /* + * Override newdoc.line value with a new one if user + * scrolled the document while downloading. + */ + if (display_partial && (Newline_partial != 0)) + Newline = Newline_partial; +#endif /* DISP_PARTIAL */ /* * If we are going to a target line or @@ -1322,7 +1357,7 @@ try_again: (links[curdoc.link].type & WWW_LINK_TYPE))) { #endif /* NORMAL_NON_FORM_LINK_STATUSLINES_FOR_ALL_USER_MODES */ #endif /* INDICATE_FORMS_MODE_FOR_ALL_LINKS_ON_PAGE */ - if (links[curdoc.link].type == WWW_FORM_LINK_TYPE) + if (links[curdoc.link].type == WWW_FORM_LINK_TYPE) { switch(links[curdoc.link].form->type) { case F_PASSWORD_TYPE: if (links[curdoc.link].form->disabled == YES) @@ -1395,8 +1430,9 @@ try_again: statusline(FORM_LINK_TEXT_MESSAGE); break; } - else + } else { statusline(NORMAL_LINK_MESSAGE); + } /* * Let them know if it's an index -- very rare. @@ -1419,17 +1455,18 @@ try_again: } if (!cp) cp = links[curdoc.link].lname; - if (more) + if (more) { if (is_www_index) _user_message("-more- -index- %s", cp); else _user_message("-more- %s",cp); - else + } else { if (is_www_index) _user_message("-index- %s",cp); else statusline(cp); + } } else if (is_www_index && more) { char buf[128]; @@ -1678,8 +1715,8 @@ new_keyboard_input: cmd = keymap[c+1]; /* add 1 to map EOF to 0 */ #if defined(DIRED_SUPPORT) && defined(OK_OVERRIDE) - if (lynx_edit_mode && override[c+1] && !no_dired_support) - cmd = override[c+1]; + if (lynx_edit_mode && key_override[c+1] && !no_dired_support) + cmd = key_override[c+1]; #endif /* DIRED_SUPPORT && OK_OVERRIDE */ real_cmd = cmd; @@ -2184,7 +2221,6 @@ new_cmd: /* case LYK_ABORT: /* don't ask the user about quitting */ return(0); - break; case LYK_NEXT_PAGE: /* next page */ if (more) { @@ -2303,7 +2339,7 @@ new_cmd: /* case LYK_END: if (more) { - Newline = MAXINT; /* go to end of file */ + Newline = lines_in_file - display_lines + 3; /* go to end of file */ arrowup = TRUE; /* position on last link */ } else { cmd = LYK_NEXT_PAGE; @@ -5197,7 +5233,6 @@ check_add_bookmark_to_self: sleep(MessageSecs); cmd = LYK_RELOAD; goto new_cmd; - break; case LYK_INLINE_TOGGLE: if (pseudo_inline_alts) @@ -5210,7 +5245,6 @@ check_add_bookmark_to_self: sleep(MessageSecs); cmd = LYK_RELOAD; goto new_cmd; - break; case LYK_RAW_TOGGLE: if (LYUseDefaultRawMode) @@ -5223,7 +5257,6 @@ check_add_bookmark_to_self: sleep(MessageSecs); cmd = LYK_RELOAD; goto new_cmd; - break; case LYK_HEAD: if (nlinks > 0 && diff --git a/src/LYStrings.c b/src/LYStrings.c index 1f4253ec..e5548165 100644 --- a/src/LYStrings.c +++ b/src/LYStrings.c @@ -82,15 +82,11 @@ PRIVATE int set_clicked_link ARGS2(int,x,int,y) if (mouse_link == -1) return -1; /* If a link was hit, we must look for a key which will activate LYK_ACTIVATE - ** XXX The 127 in the following line will depend on the size of the keymap[] - ** array. However, usually we'll find LYK_ACTIVATE somewhere in the first - ** 127 keys (it's usually mapped to the Enter key) + ** We expect to find LYK_ACTIVATE (it's usually mapped to the Enter key). **/ - for (i=0; i<127; i++) { - if (LYisNonAlnumKeyname(i, LYK_ACTIVATE)) { + if ((i = lookup_keymap(LYK_ACTIVATE)) >= 0) return i; - } - } + /* Whoops! Nothing's defined as LYK_ACTIVATE! Well, who are we to argue with the user? Forget about the mouse click */ @@ -311,23 +307,6 @@ PRIVATE int sl_parse_mouse_event ARGS3(int *, x, int *, y, int *, button) } #endif -#if defined(USE_SLANG_MOUSE) || defined(NCURSES_MOUSE_VERSION) -PRIVATE int map_function_to_key ARGS1(char, keysym) -{ - int i; - - /* I would prefer to use sizeof keymap but its size is not available. - * A better method would be to declare it as some fixed size. - */ - for (i = 1; i < 256; i++) - { - if (keymap[i] == keysym) - return i - 1; - } - return -1; -} -#endif - #if defined(USE_SLANG_MOUSE) PRIVATE int sl_read_mouse_event NOARGS { @@ -345,7 +324,7 @@ PRIVATE int sl_read_mouse_event NOARGS * The problem is that we need to determine * what to return to achieve this. */ - return map_function_to_key (LYK_PREV_DOC); + return LYReverseKeymap (LYK_PREV_DOC); } } return -1; @@ -392,7 +371,7 @@ static Keysym_String_List Keysym_Strings [] = {NULL, -1} }; -static int map_string_to_keysym (char *str, int *keysym) +PRIVATE int map_string_to_keysym (char *str, int *keysym) { Keysym_String_List *k; @@ -413,7 +392,7 @@ static int map_string_to_keysym (char *str, int *keysym) /* The second argument may either be a string or and integer */ -static int setkey_cmd (int argc GCC_UNUSED, SLcmd_Cmd_Table_Type *table) +PRIVATE int setkey_cmd (int argc GCC_UNUSED, SLcmd_Cmd_Table_Type *table) { char *keyseq; int keysym; @@ -426,7 +405,7 @@ static int setkey_cmd (int argc GCC_UNUSED, SLcmd_Cmd_Table_Type *table) break; case SLANG_STRING_TYPE: - if (-1 == map_string_to_keysym (table->string_args[2], &keysym)) + if (-1 == map_string_to_keysym (table->string_args[2], &keysym)) return -1; break; @@ -437,7 +416,7 @@ static int setkey_cmd (int argc GCC_UNUSED, SLcmd_Cmd_Table_Type *table) return SLkm_define_keysym (keyseq, keysym, Keymap_List); } -static int unsetkey_cmd (int argc GCC_UNUSED, SLcmd_Cmd_Table_Type *table) +PRIVATE int unsetkey_cmd (int argc GCC_UNUSED, SLcmd_Cmd_Table_Type *table) { SLang_undefine_key (table->string_args[1], Keymap_List); if (SLang_Error) return -1; @@ -451,7 +430,7 @@ static SLcmd_Cmd_Type Keymap_Cmd_Table [] = {NULL} }; -static int read_keymap_file NOARGS +PRIVATE int read_keymap_file NOARGS { char line[1024]; FILE *fp; @@ -466,7 +445,11 @@ static int read_keymap_file NOARGS keymap_file = "lynx.keymaps"; home = "SYS$LOGIN:"; #else +#ifdef FNAMES_8_3 + keymap_file = "/_lynxkey.map"; +#else keymap_file = "/.lynx-keymaps"; +#endif /* FNAMES_8_3 */ home = getenv ("HOME"); if (home == NULL) home = ""; #endif @@ -504,7 +487,7 @@ static int read_keymap_file NOARGS return ret; } -int lynx_initialize_keymaps NOARGS +PUBLIC int lynx_initialize_keymaps NOARGS { int i; char keybuf[2]; @@ -547,12 +530,18 @@ int lynx_initialize_keymaps NOARGS return 0; } -int LYgetch (void) +/* We cannot guarantee the type for 'GetChar', and should not use a cast. */ +PRIVATE int myGetChar NOARGS +{ + return GetChar(); +} + +PUBLIC int LYgetch NOARGS { SLang_Key_Type *key; int keysym; - key = SLang_do_key (Keymap_List, (int (*)(void)) GetChar); + key = SLang_do_key (Keymap_List, myGetChar); if ((key == NULL) || (key->type != SLKEY_F_KEYSYM)) return DO_NOTHING; @@ -602,28 +591,6 @@ re_read: } #endif /* !USE_SLANG || VMS */ -/* The RAWDOSKEYHACK takes key definitions from curses.h (when using - * PDCURSES) or from the DJGPP file keys.h (when using SLANG) and maps - * them to the values used by the lynx file LYKeymap.c. */ - -#ifdef RAWDOSKEYHACK - if (raw_dos_key_hack) { - if (c == 0) c = '/'; - if (c > 255) { /* handle raw dos keys */ - switch (c) - { - case 464: c = '-'; break; /* keypad minus*/ - case 465: c = '+'; break; /* keypad plus*/ - case 459: c = 13; break; /* keypad enter*/ - case 463: c = '*'; break; /* keypad * */ - case 440: c = 'Q'; break; /* alt x */ - case 265: c = 'H'; break; /* F1 */ - default: break; - } - } - } -#endif /* RAWDOSKEYHACK */ - #ifdef USE_GETCHAR if (c == EOF && errno == EINTR) /* Ctrl-Z causes EINTR in getchar() */ goto re_read; @@ -791,74 +758,6 @@ re_read: if (isdigit(a) && (b == '[' || c == 155) && d != -1 && d != '~') d = GetChar(); } -#if defined(__DJGPP__) && defined(USE_SLANG) -#ifdef DJGPP_KEYHANDLER - else { /* DJGPP keypad interface (see file "keys.h" for definitions) */ - switch (c) { - case K_Up: c = UPARROW; break; /* up arrow */ - case K_EUp: c = UPARROW; break; /* up arrow */ - case K_Down: c = DNARROW; break; /* down arrow */ - case K_EDown: c = DNARROW; break; /* down arrow */ - case K_Right: c = RTARROW; break; /* right arrow */ - case K_ERight: c = RTARROW; break; /* right arrow */ - case K_Left: c = LTARROW; break; /* left arrow */ - case K_ELeft: c = LTARROW; break; /* left arrow */ - case K_PageDown: c = PGDOWN; break; /* page down */ - case K_EPageDown: c = PGDOWN; break; /* page down */ - case K_PageUp: c = PGUP; break; /* page up */ - case K_EPageUp: c = PGUP; break; /* page up */ - case K_Home: c = HOME; break; /* HOME */ - case K_EHome: c = HOME; break; /* HOME */ - case K_End: c = END_KEY; break; /* END */ - case K_EEnd: c = END_KEY; break; /* END */ - case K_F1: c = F1; break; /* F1 */ - case K_Alt_X: c = 4; break; /* alt x */ - } - } -#else - else { /* SLang keypad interface (see file "slang.h" for definitions) */ - switch (c) { - case SL_KEY_UP: - c = UPARROW; - break; - case SL_KEY_DOWN: - c = DNARROW; - break; - case SL_KEY_RIGHT: - c = RTARROW; - break; - case SL_KEY_B2: - c = DO_NOTHING; - break; - case SL_KEY_LEFT: - c = LTARROW; - break; - case SL_KEY_PPAGE: - case SL_KEY_A3: - c = PGUP; - break; - case SL_KEY_NPAGE: - case SL_KEY_C3: - c = PGDOWN; - break; - case SL_KEY_HOME: - case SL_KEY_A1: - c = HOME; - break; - case SL_KEY_END: - case SL_KEY_C1: - c = END_KEY; - break; - case SL_KEY_F(1): - c = F1; - break; - case SL_KEY_BACKSPACE: - c = 127; - break; - } - } -#endif /* DJGPP_KEYHANDLER */ -#endif /* __DJGPP__ && USE_SLANG */ #if HAVE_KEYPAD else { /* @@ -926,7 +825,7 @@ re_read: c = 127; /* backspace key (delete, not Ctrl-H) */ break; #endif /* KEY_BACKSPACE */ -#ifdef KEY_F +#if defined(KEY_F) && !defined(__DJGPP__) case KEY_F(1): c = F1; /* VTxxx Help */ break; @@ -972,7 +871,7 @@ re_read: if (event.bstate & BUTTON1_CLICKED) { c = set_clicked_link(event.x, event.y); } else if (event.bstate & BUTTON3_CLICKED) { - c = map_function_to_key (LYK_PREV_DOC); + c = LYReverseKeymap (LYK_PREV_DOC); } #else /* pdcurses version */ int left,right; @@ -983,15 +882,17 @@ re_read: mouse_link = -1; request_mouse_pos(); if (Mouse_status.button[0] & BUTTON_CLICKED) { - if (Mouse_status.y == (LYlines-1)) + if (Mouse_status.y == (LYlines-1)) { if (Mouse_status.x < left) c=LTARROW; else if (Mouse_status.x > right) c='\b'; - else c=PGDOWN; - else if (Mouse_status.y == 0) + else c = PGDOWN; + } else if (Mouse_status.y == 0) { if (Mouse_status.x < left) c=LTARROW; else if (Mouse_status.x > right) c='\b'; - else c=PGUP; - else c = set_clicked_link(Mouse_status.x, Mouse_status.y); + else c = PGUP; + } else { + c = set_clicked_link(Mouse_status.x, Mouse_status.y); + } } #endif /* _WINDOWS */ } @@ -1001,7 +902,12 @@ re_read: } #endif /* HAVE_KEYPAD */ - if (c > DO_NOTHING) { +#ifdef __DJGPP__ + if (c > 659) +#else + if (c > DO_NOTHING) +#endif /* __DJGPP__ */ + { /* * Don't return raw values for KEYPAD symbols which we may have * missed in the switch above if they are obviously invalid when @@ -1523,7 +1429,6 @@ again: */ strcpy(inputline, MyEdit.buffer); return(ch); - break; case LYE_ABORT: /* @@ -1531,7 +1436,6 @@ again: */ inputline[0] = '\0'; return(-1); - break; case LYE_LKCMD: /* diff --git a/src/LYStrings.h b/src/LYStrings.h index 11eba6c1..48c5a478 100644 --- a/src/LYStrings.h +++ b/src/LYStrings.h @@ -142,6 +142,10 @@ typedef struct _EditFieldData { #define LYE_AIX (LYE_LKCMD +1) /* Hex 97 */ +#if defined(USE_SLANG_KEYMAPS) +extern int lynx_initialize_keymaps NOPARAMS; +#endif + extern void LYLowerCase PARAMS(( char * buffer)); extern void LYUpperCase PARAMS(( diff --git a/src/LYUpload.c b/src/LYUpload.c index cfbca0e6..f453751c 100644 --- a/src/LYUpload.c +++ b/src/LYUpload.c @@ -258,11 +258,11 @@ PUBLIC int LYUpload_options ARGS2( fprintf(fp0, "<head>\n<title>%s</title>\n</head>\n<body>\n", UPLOAD_OPTIONS_TITLE); - fprintf(fp0, "<h1>Upload Options (%s Version %s)</h1>\n", + fprintf(fp0, "<h1>Upload Options (%s Version %s)</h1><pre>\n", LYNX_NAME, LYNX_VERSION); - fputs("You have the following upload choices.<br>\n", fp0); - fputs("Please select one:<br>\n<pre>\n", fp0); + fputs(" You have the following upload choices.<br>\n", fp0); + fputs(" Please select one:<br>\n\n", fp0); if (uploaders != NULL) { for (count = 0, cur_upload = uploaders; diff --git a/src/LYUtils.c b/src/LYUtils.c index 69fbbe83..bb30a96e 100644 --- a/src/LYUtils.c +++ b/src/LYUtils.c @@ -16,6 +16,9 @@ #ifdef DOSPATH #include <HTDOS.h> #endif +#ifdef DJGPP_KEYHANDLER +#include <bios.h> +#endif /* DJGPP_KEYHANDLER */ #ifdef DISP_PARTIAL #include <LYKeymap.h> #endif /* DISP_PARTIAL */ @@ -2059,7 +2062,11 @@ PUBLIC int HTCheckForInterrupt NOARGS Note that this isn't taking possible SOCKSification and the socks_flag into account, and may fail on the slang library's select() when SOCKSified. - FM **/ +#ifdef DJGPP_KEYHANDLER + if (0 == _bios_keybrd(_NKEYBRD_READY)) +#else if (0 == SLang_input_pending(0)) +#endif /* DJGPP_KEYHANDLER */ return(FALSE); #else /* Unix curses: */ @@ -2102,35 +2109,45 @@ PUBLIC int HTCheckForInterrupt NOARGS switch (keymap[c+1]) { case LYK_PREV_PAGE : - if (Newline > 1) - Newline -= display_lines ; + if (Newline_partial > 1) + Newline_partial -= display_lines ; break ; case LYK_NEXT_PAGE : if (HText_canScrollDown()) - Newline += display_lines ; + Newline_partial += display_lines ; + break ; + case LYK_UP_HALF : + if (Newline_partial > 1) + Newline_partial -= (display_lines/2) ; + break ; + case LYK_DOWN_HALF : + if (HText_canScrollDown()) + Newline_partial += (display_lines/2) ; break ; case LYK_UP_TWO : - if (Newline > 1) - Newline -= 2 ; + if (Newline_partial > 1) + Newline_partial -= 2 ; break ; case LYK_DOWN_TWO : if (HText_canScrollDown()) - Newline += 2 ; + Newline_partial += 2 ; break ; case LYK_HOME: - if (Newline > 1) - Newline = 1; + if (Newline_partial > 1) + Newline_partial = 1; break; case LYK_END: if (HText_canScrollDown()) - Newline = MAXINT; + Newline_partial = HText_getNumOfLines() - display_lines + 2; + /* set "current" value */ break; case LYK_REFRESH : break ; default : return ((int)FALSE) ; } - HText_pageDisplay(Newline, ""); + NumOfLines_partial = HText_getNumOfLines(); + HText_pageDisplay(Newline_partial, ""); } #endif /* DISP_PARTIAL */ @@ -3226,12 +3243,15 @@ PUBLIC void change_sug_filename ARGS1( */ PRIVATE char *fmt_tempname ARGS3( char *, result, - unsigned, counter, + CONST char *, prefix, CONST char *, suffix) { + static unsigned counter; char *leaf; - strcpy(result, lynx_temp_space); + + strcpy(result, prefix); leaf = result + strlen(result); + counter++; #ifdef FNAMES_8_3 /* * The 'lynx_temp_space' string ends with a '/' or '\\', so we only have to @@ -5487,7 +5507,6 @@ PUBLIC FILE *LYOpenTemp ARGS3( BOOL txt = TRUE; BOOL wrt = 'r'; LY_TEMP *p; - static unsigned counter; CTRACE(tfp, "LYOpenTemp(,%s,%s)\n", suffix, mode); while (*mode != '\0') { @@ -5502,7 +5521,7 @@ PUBLIC FILE *LYOpenTemp ARGS3( } do { - (void) fmt_tempname(result, counter++, suffix); + (void) fmt_tempname(result, lynx_temp_space, suffix); if (txt) { switch (wrt) { case 'w': @@ -5535,7 +5554,7 @@ PUBLIC FILE *LYReopenTemp ARGS1( char *, name) { LY_TEMP *p; - FILE *fp; + FILE *fp = 0; LYCloseTemp(name); for (p = ly_temp; p != 0; p = p->next) { @@ -5558,7 +5577,7 @@ PUBLIC FILE *LYOpenScratch ARGS2( FILE *fp; LY_TEMP *p; - sprintf(result, "%s-%u.%s", prefix, getpid(), HTML_SUFFIX); + (void) fmt_tempname(result, prefix, HTML_SUFFIX); if ((fp = LYNewTxtFile (result)) != 0) { if ((p = (LY_TEMP *)calloc(1, sizeof(LY_TEMP))) != 0) { p->next = ly_temp; diff --git a/src/LYUtils.h b/src/LYUtils.h index 61baf346..876e35f8 100644 --- a/src/LYUtils.h +++ b/src/LYUtils.h @@ -11,7 +11,7 @@ extern void highlight PARAMS((int flag, int cur, char *target)); extern void free_and_clear PARAMS((char **obj)); extern void convert_to_spaces PARAMS((char *string, BOOL condense)); -extern char * strip_trailing_slash PARAMS((char * dirname)); +extern char * strip_trailing_slash PARAMS((char * my_dirname)); extern void statusline PARAMS((CONST char *text)); extern void toggle_novice_line NOPARAMS; extern void noviceline PARAMS((int more_flag)); diff --git a/src/makefile.dos b/src/makefile.dos index 91ace376..452b6aeb 100644 --- a/src/makefile.dos +++ b/src/makefile.dos @@ -12,7 +12,7 @@ LYStyle.o LYHash.o CFLAGS= $(MCFLAGS) -I. -I.. $(SLANGINC)
CC = gcc
-MCFLAGS = -O3 -DRAWDOSKEYHACK -DUSE_ZLIB -DUSE_EXTERNALS -DCOLOR_CURSES -DNCURSES -DFANCY_CURSES -DACCESS_AUTH -DNO_CUSERID -DNOUSERS -DDOSPATH -DNO_TTYTYPE -DNO_UTMP -Ichrtrans -I../WWW/library/implementation -I../curses -I../djgpp/tcplib/include -I../djgpp/tcplib/include/tcp
+MCFLAGS = -O3 -DUSE_ZLIB -DUSE_EXTERNALS -DCOLOR_CURSES -DNCURSES -DFANCY_CURSES -DACCESS_AUTH -DNO_CUSERID -DNOUSERS -DDOSPATH -DNO_TTYTYPE -DNO_UTMP -Ichrtrans -I../WWW/library/implementation -I../curses -I../djgpp/tcplib/include -I../djgpp/tcplib/include/tcp
WWWLIB = ../WWW/library/djgpp/libwww.a ../curses/pdcurses.a ../djgpp/tcplib/obj/libtcp.a
LIBS=-lz
@@ -20,7 +20,7 @@ all: lynx lynx: message $(OBJS) $(WWWLIB)
@echo "Linking and creating Lynx executable"
- $(CC) $(CFLAGS) -o lynx $(OBJS) $(WWWLIB) $(SLANGLIB) $(LIBS)
+ $(CC) $(CFLAGS) -o lynx.exe $(OBJS) $(WWWLIB) $(SLANGLIB) $(LIBS)
@echo "Welcome to Lynx!"
message:
@@ -34,7 +34,7 @@ lint: lint *.c > ../lint.out
clean:
- rm -f lynx core *.[ob]
+ rm -f lynx.exe core *.[ob]
LYMain.o: ../userdefs.h
LYMainLoop.o: LYMainLoop.c ../userdefs.h
@@ -1202,7 +1202,7 @@ * the version definition with the Project Version on checkout. Just * ignore it. - kw */ /* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */ -#define LYNX_VERSION "2.8.1dev.13" +#define LYNX_VERSION "2.8.1dev.14" #ifndef MAXINT #define MAXINT 2147483647 /* max integer */ |