llvm.org GIT mirror llvm / d8282cd
We're no longer going to bother supporting platforms that don't support C89. We probably didn't support them anyways. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140361 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 8 years ago
4 changed file(s) with 2 addition(s) and 201 deletion(s). Raw diff Collapse all Expand all
3737 AC_SUBST(LLVM_COPYRIGHT,["Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."])
3838 AC_COPYRIGHT([Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.])
3939
40 dnl Indicate that we require autoconf 2.59 or later. Ths is needed because we
41 dnl use some autoconf macros only available in 2.59.
42 AC_PREREQ(2.59)
40 dnl Indicate that we require autoconf 2.60 or later.
41 AC_PREREQ(2.60)
4342
4443 dnl Verify that the source directory is valid. This makes sure that we are
4544 dnl configuring LLVM and not some other package (it validates --srcdir argument)
12141213 AC_HEADER_DIRENT
12151214 AC_HEADER_MMAP_ANONYMOUS
12161215 AC_HEADER_STAT
1217 AC_HEADER_STDC
12181216 AC_HEADER_SYS_WAIT
12191217 AC_HEADER_TIME
12201218
1413714137
1413814138 fi
1413914139
14140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14142 if test "${ac_cv_header_stdc+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include
14152 #include
14153 #include
14154 #include
14155
14156 int
14157 main ()
14158 {
14159
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 rm -f conftest.$ac_objext
14165 if { (ac_try="$ac_compile"
14166 case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_compile") 2>conftest.er1
14172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14179 { (case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14182 esac
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_try") 2>&5
14185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest.$ac_objext'
14189 { (case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_try") 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_header_stdc=yes
14199 else
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203 ac_cv_header_stdc=no
14204 fi
14205
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207
14208 if test $ac_cv_header_stdc = yes; then
14209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h. */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 #include
14217
14218 _ACEOF
14219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14220 $EGREP "memchr" >/dev/null 2>&1; then
14221 :
14222 else
14223 ac_cv_header_stdc=no
14224 fi
14225 rm -f conftest*
14226
14227 fi
14228
14229 if test $ac_cv_header_stdc = yes; then
14230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include
14238
14239 _ACEOF
14240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14241 $EGREP "free" >/dev/null 2>&1; then
14242 :
14243 else
14244 ac_cv_header_stdc=no
14245 fi
14246 rm -f conftest*
14247
14248 fi
14249
14250 if test $ac_cv_header_stdc = yes; then
14251 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14252 if test "$cross_compiling" = yes; then
14253 :
14254 else
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h. */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 #include
14262 #include
14263 #if ((' ' & 0x0FF) == 0x020)
14264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14266 #else
14267 # define ISLOWER(c) \
14268 (('a' <= (c) && (c) <= 'i') \
14269 || ('j' <= (c) && (c) <= 'r') \
14270 || ('s' <= (c) && (c) <= 'z'))
14271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14272 #endif
14273
14274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14275 int
14276 main ()
14277 {
14278 int i;
14279 for (i = 0; i < 256; i++)
14280 if (XOR (islower (i), ISLOWER (i))
14281 || toupper (i) != TOUPPER (i))
14282 return 2;
14283 return 0;
14284 }
14285 _ACEOF
14286 rm -f conftest$ac_exeext
14287 if { (ac_try="$ac_link"
14288 case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14291 esac
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_link") 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 :
14307 else
14308 echo "$as_me: program exited with status $ac_status" >&5
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 ( exit $ac_status )
14313 ac_cv_header_stdc=no
14314 fi
14315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14316 fi
14317
14318
14319 fi
14320 fi
14321 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14322 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14323 if test $ac_cv_header_stdc = yes; then
14324
14325 cat >>confdefs.h <<\_ACEOF
14326 #define STDC_HEADERS 1
14327 _ACEOF
14328
14329 fi
14330
1433114140 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
1433214141 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
1433314142 if test "${ac_cv_header_sys_wait_h+set}" = set; then
667667 /* Define to 1 if the `S_IS*' macros in do not work properly. */
668668 #undef STAT_MACROS_BROKEN
669669
670 /* Define to 1 if you have the ANSI C header files. */
671 #undef STDC_HEADERS
672
673670 /* Define to 1 if you can safely include both and . */
674671 #undef TIME_WITH_SYS_TIME
675672
665665 /* Define to 1 if the `S_IS*' macros in do not work properly. */
666666 #undef STAT_MACROS_BROKEN
667667
668 /* Define to 1 if you have the ANSI C header files. */
669 #undef STDC_HEADERS
670
671668 /* Define to 1 if you can safely include both and . */
672669 #undef TIME_WITH_SYS_TIME
673670