changeset 2427:ed2ea3a2fc36

* configure: Extend test for working `const' keyword to handle AIX 3.2 cc.
author Jim Blandy <jimb@redhat.com>
date Tue, 30 Mar 1993 20:33:58 +0000
parents e59a5b9d95d6
children 83319ce2d2f3
files configure1.in
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure1.in	Tue Mar 30 19:42:10 1993 +0000
+++ b/configure1.in	Tue Mar 30 20:33:58 1993 +0000
@@ -884,11 +884,14 @@
 rm -f conftest*
 compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1'
 echo "
-main() { exit(0); } t() { /* Ultrix mips cc rejects this.  */
+main() { exit(0); } t() {
+/* Ultrix mips cc rejects this.  */
 typedef int charset[2]; const charset x;
 /* SunOS 4.1.1 cc rejects this. */
 char const *const *p;
 char **p2;
+/* AIX 3.2 cc rejects this.  */
+p += p ? p-p : 0;
 /* HPUX 7.0 cc rejects these. */
 ++p;
 p2 = (char const* const*) p;