diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-07-26 16:54:23 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-07-26 16:54:23 +0000 |
commit | 65985348c5ece4efecce485029b147c45453c4c8 (patch) | |
tree | 8af59881109cf3e92d8bd8740440154bb600b2b6 /autoconf/m4 | |
parent | 105a4096795e4c974bc1018b3a665c18423d790f (diff) | |
download | llvm-65985348c5ece4efecce485029b147c45453c4c8.tar.gz llvm-65985348c5ece4efecce485029b147c45453c4c8.tar.bz2 llvm-65985348c5ece4efecce485029b147c45453c4c8.tar.xz |
Remove dead or useless header checks from cmake and autoconf
On Windows, this improves clean cmake configuration time on my
workstation from 1m58s to 1m32s, which is pretty significant. There's
probably more that can be done here, but this is the low hanging fruit.
Eric volunteered to regenerate ./configure for me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/m4')
-rw-r--r-- | autoconf/m4/ltdl.m4 | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/autoconf/m4/ltdl.m4 b/autoconf/m4/ltdl.m4 index 0a36dbe7c5..0226f6399d 100644 --- a/autoconf/m4/ltdl.m4 +++ b/autoconf/m4/ltdl.m4 @@ -77,15 +77,9 @@ AC_REQUIRE([AC_LTDL_DLSYM_USCORE]) AC_REQUIRE([AC_LTDL_SYS_DLOPEN_DEPLIBS]) AC_REQUIRE([AC_LTDL_FUNC_ARGZ]) -AC_CHECK_HEADERS([assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ - stdio.h unistd.h]) -AC_CHECK_HEADERS([dl.h sys/dl.h dld.h mach-o/dyld.h]) -AC_CHECK_HEADERS([string.h strings.h], [break]) - -AC_CHECK_FUNCS([strchr index], [break]) -AC_CHECK_FUNCS([strrchr rindex], [break]) -AC_CHECK_FUNCS([memcpy bcopy], [break]) -AC_CHECK_FUNCS([memmove strcmp]) +AC_CHECK_HEADERS([errno.h malloc.h memory.h unistd.h]) +AC_CHECK_HEADERS([mach-o/dyld.h]) + AC_CHECK_FUNCS([closedir opendir readdir]) ])# AC_LIB_LTDL @@ -385,19 +379,3 @@ if test x"$libltdl_cv_need_uscore" = xyes; then [Define if dlsym() requires a leading underscore in symbol names.]) fi ])# AC_LTDL_DLSYM_USCORE - -# AC_LTDL_FUNC_ARGZ -# ----------------- -AC_DEFUN([AC_LTDL_FUNC_ARGZ], -[AC_CHECK_HEADERS([argz.h]) - -AC_CHECK_TYPES([error_t], - [], - [AC_DEFINE([error_t], [int], - [Define to a type to use for `error_t' if it is not otherwise available.])], - [#if HAVE_ARGZ_H -# include <argz.h> -#endif]) - -AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify]) -])# AC_LTDL_FUNC_ARGZ |