From: Andy Dougherty Date: Mon, 28 Jun 1999 12:36:38 +0000 (-0400) Subject: Do not throw away gccvers compilation errors. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b0ca42139c4342976311d6fdf20047dfeb44a8cb;p=p5sagit%2Fp5-mst-13.2.git Do not throw away gccvers compilation errors. To: Ron Seguin Cc: Perl Porters Subject: [PATCH] Re: [ID 19990625.011] WHOA There Message-Id: p4raw-id: //depot/cfgperl@3574 --- diff --git a/Configure b/Configure index 1fca209..0e89e38 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sun May 30 15:51:19 EET DST 1999 [metaconfig 3.0 PL70] +# Generated on Mon Jul 5 00:31:28 EET DST 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ </dev/null 2>&1; then +if $cc -o gccvers gccvers.c; then gccversion=`./gccvers` case "$gccversion" in '') echo "You are not using GNU cc." ;; diff --git a/config_h.SH b/config_h.SH index 1a7c363..44d4379 100644 --- a/config_h.SH +++ b/config_h.SH @@ -595,7 +595,7 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- /* HAS_SHMAT_PROTOTYPE: * This symbol, if defined, indicates that the sys/shm.h includes * a prototype for shmat(). Otherwise, it is up to the program to - * guess one. Shmat_t shmat (int, Shmat_t, int) is a good guess, + * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, * but not always right so it should be emitted by the program only * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. */ @@ -2191,7 +2191,7 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- * This symbol, if defined, indicates that the system provides * a prototype for the telldir() function. Otherwise, it is up * to the program to supply one. A good guess is - * extern long telldir (DIR*); + * extern long telldir _((DIR*)); */ #$d_telldirproto HAS_TELLDIR_PROTO /**/ @@ -2536,7 +2536,7 @@ sed <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- * This symbol, if defined, indicates that the system provides * a prototype for the drand48() function. Otherwise, it is up * to the program to supply one. A good guess is - * extern double drand48 (void); + * extern double drand48 _((void)); */ #$d_drand48proto HAS_DRAND48_PROTO /**/