comparison configure1.in @ 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 64dadcfcdf68
children da67547eda51
comparison
equal deleted inserted replaced
2426:e59a5b9d95d6 2427:ed2ea3a2fc36
882 #### The code for this test was adapted from autoconf's test. 882 #### The code for this test was adapted from autoconf's test.
883 echo "Checking if the compiler supports \`const'." 883 echo "Checking if the compiler supports \`const'."
884 rm -f conftest* 884 rm -f conftest*
885 compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1' 885 compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1'
886 echo " 886 echo "
887 main() { exit(0); } t() { /* Ultrix mips cc rejects this. */ 887 main() { exit(0); } t() {
888 /* Ultrix mips cc rejects this. */
888 typedef int charset[2]; const charset x; 889 typedef int charset[2]; const charset x;
889 /* SunOS 4.1.1 cc rejects this. */ 890 /* SunOS 4.1.1 cc rejects this. */
890 char const *const *p; 891 char const *const *p;
891 char **p2; 892 char **p2;
893 /* AIX 3.2 cc rejects this. */
894 p += p ? p-p : 0;
892 /* HPUX 7.0 cc rejects these. */ 895 /* HPUX 7.0 cc rejects these. */
893 ++p; 896 ++p;
894 p2 = (char const* const*) p; 897 p2 = (char const* const*) p;
895 }" > conftest.c 898 }" > conftest.c
896 if eval $compile; then 899 if eval $compile; then