Skip to content

Commit b9a1132

Browse files
committed
We're no longer going to bother supporting platforms that don't
support C89. We probably didn't support them anyways. llvm-svn: 140361
1 parent b2e55ae commit b9a1132

File tree

4 files changed

+2
-201
lines changed

4 files changed

+2
-201
lines changed

llvm/autoconf/configure.ac

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ dnl in the output of --version option of the generated configure script.
3838
AC_SUBST(LLVM_COPYRIGHT,["Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."])
3939
AC_COPYRIGHT([Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.])
4040

41-
dnl Indicate that we require autoconf 2.59 or later. Ths is needed because we
42-
dnl use some autoconf macros only available in 2.59.
43-
AC_PREREQ(2.59)
41+
dnl Indicate that we require autoconf 2.60 or later.
42+
AC_PREREQ(2.60)
4443

4544
dnl Verify that the source directory is valid. This makes sure that we are
4645
dnl configuring LLVM and not some other package (it validates --srcdir argument)
@@ -1215,7 +1214,6 @@ dnl Generally we're looking for POSIX headers.
12151214
AC_HEADER_DIRENT
12161215
AC_HEADER_MMAP_ANONYMOUS
12171216
AC_HEADER_STAT
1218-
AC_HEADER_STDC
12191217
AC_HEADER_SYS_WAIT
12201218
AC_HEADER_TIME
12211219

llvm/configure

Lines changed: 0 additions & 191 deletions
Original file line numberDiff line numberDiff line change
@@ -14138,197 +14138,6 @@ _ACEOF
1413814138

1413914139
fi
1414014140

14141-
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14142-
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14143-
if test "${ac_cv_header_stdc+set}" = set; then
14144-
echo $ECHO_N "(cached) $ECHO_C" >&6
14145-
else
14146-
cat >conftest.$ac_ext <<_ACEOF
14147-
/* confdefs.h. */
14148-
_ACEOF
14149-
cat confdefs.h >>conftest.$ac_ext
14150-
cat >>conftest.$ac_ext <<_ACEOF
14151-
/* end confdefs.h. */
14152-
#include <stdlib.h>
14153-
#include <stdarg.h>
14154-
#include <string.h>
14155-
#include <float.h>
14156-
14157-
int
14158-
main ()
14159-
{
14160-
14161-
;
14162-
return 0;
14163-
}
14164-
_ACEOF
14165-
rm -f conftest.$ac_objext
14166-
if { (ac_try="$ac_compile"
14167-
case "(($ac_try" in
14168-
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169-
*) ac_try_echo=$ac_try;;
14170-
esac
14171-
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172-
(eval "$ac_compile") 2>conftest.er1
14173-
ac_status=$?
14174-
grep -v '^ *+' conftest.er1 >conftest.err
14175-
rm -f conftest.er1
14176-
cat conftest.err >&5
14177-
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178-
(exit $ac_status); } &&
14179-
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14180-
{ (case "(($ac_try" in
14181-
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182-
*) ac_try_echo=$ac_try;;
14183-
esac
14184-
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185-
(eval "$ac_try") 2>&5
14186-
ac_status=$?
14187-
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188-
(exit $ac_status); }; } &&
14189-
{ ac_try='test -s conftest.$ac_objext'
14190-
{ (case "(($ac_try" in
14191-
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192-
*) ac_try_echo=$ac_try;;
14193-
esac
14194-
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195-
(eval "$ac_try") 2>&5
14196-
ac_status=$?
14197-
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198-
(exit $ac_status); }; }; then
14199-
ac_cv_header_stdc=yes
14200-
else
14201-
echo "$as_me: failed program was:" >&5
14202-
sed 's/^/| /' conftest.$ac_ext >&5
14203-
14204-
ac_cv_header_stdc=no
14205-
fi
14206-
14207-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208-
14209-
if test $ac_cv_header_stdc = yes; then
14210-
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14211-
cat >conftest.$ac_ext <<_ACEOF
14212-
/* confdefs.h. */
14213-
_ACEOF
14214-
cat confdefs.h >>conftest.$ac_ext
14215-
cat >>conftest.$ac_ext <<_ACEOF
14216-
/* end confdefs.h. */
14217-
#include <string.h>
14218-
14219-
_ACEOF
14220-
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14221-
$EGREP "memchr" >/dev/null 2>&1; then
14222-
:
14223-
else
14224-
ac_cv_header_stdc=no
14225-
fi
14226-
rm -f conftest*
14227-
14228-
fi
14229-
14230-
if test $ac_cv_header_stdc = yes; then
14231-
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14232-
cat >conftest.$ac_ext <<_ACEOF
14233-
/* confdefs.h. */
14234-
_ACEOF
14235-
cat confdefs.h >>conftest.$ac_ext
14236-
cat >>conftest.$ac_ext <<_ACEOF
14237-
/* end confdefs.h. */
14238-
#include <stdlib.h>
14239-
14240-
_ACEOF
14241-
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14242-
$EGREP "free" >/dev/null 2>&1; then
14243-
:
14244-
else
14245-
ac_cv_header_stdc=no
14246-
fi
14247-
rm -f conftest*
14248-
14249-
fi
14250-
14251-
if test $ac_cv_header_stdc = yes; then
14252-
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14253-
if test "$cross_compiling" = yes; then
14254-
:
14255-
else
14256-
cat >conftest.$ac_ext <<_ACEOF
14257-
/* confdefs.h. */
14258-
_ACEOF
14259-
cat confdefs.h >>conftest.$ac_ext
14260-
cat >>conftest.$ac_ext <<_ACEOF
14261-
/* end confdefs.h. */
14262-
#include <ctype.h>
14263-
#include <stdlib.h>
14264-
#if ((' ' & 0x0FF) == 0x020)
14265-
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14266-
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14267-
#else
14268-
# define ISLOWER(c) \
14269-
(('a' <= (c) && (c) <= 'i') \
14270-
|| ('j' <= (c) && (c) <= 'r') \
14271-
|| ('s' <= (c) && (c) <= 'z'))
14272-
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14273-
#endif
14274-
14275-
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14276-
int
14277-
main ()
14278-
{
14279-
int i;
14280-
for (i = 0; i < 256; i++)
14281-
if (XOR (islower (i), ISLOWER (i))
14282-
|| toupper (i) != TOUPPER (i))
14283-
return 2;
14284-
return 0;
14285-
}
14286-
_ACEOF
14287-
rm -f conftest$ac_exeext
14288-
if { (ac_try="$ac_link"
14289-
case "(($ac_try" in
14290-
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291-
*) ac_try_echo=$ac_try;;
14292-
esac
14293-
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294-
(eval "$ac_link") 2>&5
14295-
ac_status=$?
14296-
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297-
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14298-
{ (case "(($ac_try" in
14299-
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300-
*) ac_try_echo=$ac_try;;
14301-
esac
14302-
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303-
(eval "$ac_try") 2>&5
14304-
ac_status=$?
14305-
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306-
(exit $ac_status); }; }; then
14307-
:
14308-
else
14309-
echo "$as_me: program exited with status $ac_status" >&5
14310-
echo "$as_me: failed program was:" >&5
14311-
sed 's/^/| /' conftest.$ac_ext >&5
14312-
14313-
( exit $ac_status )
14314-
ac_cv_header_stdc=no
14315-
fi
14316-
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14317-
fi
14318-
14319-
14320-
fi
14321-
fi
14322-
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14323-
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14324-
if test $ac_cv_header_stdc = yes; then
14325-
14326-
cat >>confdefs.h <<\_ACEOF
14327-
#define STDC_HEADERS 1
14328-
_ACEOF
14329-
14330-
fi
14331-
1433214141
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
1433314142
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
1433414143
if test "${ac_cv_header_sys_wait_h+set}" = set; then

llvm/include/llvm/Config/config.h.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,6 @@
668668
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
669669
#undef STAT_MACROS_BROKEN
670670

671-
/* Define to 1 if you have the ANSI C header files. */
672-
#undef STDC_HEADERS
673-
674671
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
675672
#undef TIME_WITH_SYS_TIME
676673

llvm/include/llvm/Config/config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,9 +666,6 @@
666666
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
667667
#undef STAT_MACROS_BROKEN
668668

669-
/* Define to 1 if you have the ANSI C header files. */
670-
#undef STDC_HEADERS
671-
672669
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
673670
#undef TIME_WITH_SYS_TIME
674671

0 commit comments

Comments
 (0)