Commit 13244a04 authored by Jim Blandy's avatar Jim Blandy

* configure: Extend test for working `const' keyword to handle AIX

	3.2 cc.
parent 7872ee4d
......@@ -884,11 +884,14 @@ echo "Checking if the compiler supports \`const'."
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment