<div dir="ltr">If the libtool check is unused (it dates back to r18342 from 2004, I think), try removing it and see if that works.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 5, 2013 at 5:33 AM, Patrik Hägglund H <span dir="ltr"><<a href="mailto:patrik.h.hagglund@ericsson.com" target="_blank">patrik.h.hagglund@ericsson.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">After this commit I can't run AutoRegen.sh anymore on Linux:<br>
<br>
env -i PATH=/LMWP3/autoconf-2.60/bin:/LMWP3/automake-1.9.6/bin:/LMWP3/libtool-1.5.22/bin:/usr/bin:/bin ./autoconf/AutoRegen.sh<br>
<br>
### NOTE: ############################################################<br>
### If you get *any* warnings from autoconf below you MUST fix the<br>
### scripts in the m4 directory because there are future forward<br>
### compatibility or platform support issues at risk. Please do NOT<br>
### commit any configure script that was generated with warnings<br>
### present. You should get just three 'Regenerating..' lines.<br>
######################################################################<br>
<br>
Regenerating aclocal.m4 with aclocal 1.9.6<br>
<a href="http://configure.ac:1285" target="_blank">configure.ac:1285</a>: warning: AC_LTDL_FUNC_ARGZ is m4_require'd but not m4_defun'd<br>
/dev/shm/uabpath/llvm/autoconf/m4/ltdl.m4:62: AC_LIB_LTDL is expanded from...<br>
<a href="http://configure.ac:1285" target="_blank">configure.ac:1285</a>: the top level<br>
Regenerating configure with autoconf 2.60<br>
<a href="http://configure.ac:1285" target="_blank">configure.ac:1285</a>: warning: AC_LTDL_FUNC_ARGZ is m4_require'd but not m4_defun'd<br>
aclocal.m4:6853: AC_LIB_LTDL is expanded from...<br>
<a href="http://configure.ac:1285" target="_blank">configure.ac:1285</a>: the top level<br>
../configure:10779: error: possibly undefined macro: AC_LTDL_FUNC_ARGZ<br>
      If this token and others are legitimate, please use m4_pattern_allow.<br>
      See the Autoconf documentation.<br>
autoconf failed<br>
<br>
I don't understand this code. Should AC_LTDL_FUNC_ARGZ be readded to ltdl.m4 or AC_LIB_LTDL be removed from <a href="http://configure.ac" target="_blank">configure.ac</a>? Both seems to fix the error.<br>
<span class="HOEnZb"><font color="#888888"><br>
/Patrik Hägglund<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: <a href="mailto:llvm-commits-bounces@cs.uiuc.edu">llvm-commits-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:llvm-commits-bounces@cs.uiuc.edu">llvm-commits-bounces@cs.uiuc.edu</a>] On Behalf Of Reid Kleckner<br>
Sent: den 26 juli 2013 18:54<br>
To: <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
Subject: [llvm] r187209 - Remove dead or useless header checks from cmake and autoconf<br>
<br>
Author: rnk<br>
Date: Fri Jul 26 11:54:23 2013<br>
New Revision: 187209<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=187209&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=187209&view=rev</a><br>
Log:<br>
Remove dead or useless header checks from cmake and autoconf<br>
<br>
On Windows, this improves clean cmake configuration time on my<br>
workstation from 1m58s to 1m32s, which is pretty significant.  There's<br>
probably more that can be done here, but this is the low hanging fruit.<br>
<br>
Eric volunteered to regenerate ./configure for me.<br>
<br>
Modified:<br>
    llvm/trunk/autoconf/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
    llvm/trunk/autoconf/m4/ltdl.m4<br>
    llvm/trunk/cmake/config-ix.cmake<br>
    llvm/trunk/include/llvm/Config/config.h.cmake<br>
    llvm/trunk/include/llvm/Config/<a href="http://config.h.in" target="_blank">config.h.in</a><br>
    llvm/trunk/include/llvm/Support/DataTypes.h.cmake<br>
    llvm/trunk/include/llvm/Support/<a href="http://DataTypes.h.in" target="_blank">DataTypes.h.in</a><br>
    llvm/trunk/lib/Support/Errno.cpp<br>
    llvm/trunk/lib/Support/Unix/Path.inc<br>
    llvm/trunk/lib/Support/Unix/Unix.h<br>
<br>
Modified: llvm/trunk/autoconf/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/autoconf/<a href="http://configure.ac" target="_blank">configure.ac</a> (original)<br>
+++ llvm/trunk/autoconf/<a href="http://configure.ac" target="_blank">configure.ac</a> Fri Jul 26 11:54:23 2013<br>
@@ -1531,11 +1531,11 @@ AC_HEADER_TIME<br>
 AC_LANG_PUSH([C++])<br>
 AC_CHECK_HEADERS([cxxabi.h])<br>
 AC_LANG_POP([C++])<br>
-AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h])<br>
+AC_CHECK_HEADERS([dlfcn.h execinfo.h fcntl.h inttypes.h link.h])<br>
 AC_CHECK_HEADERS([malloc.h setjmp.h signal.h stdint.h termios.h unistd.h])<br>
-AC_CHECK_HEADERS([utime.h windows.h])<br>
+AC_CHECK_HEADERS([utime.h])<br>
 AC_CHECK_HEADERS([sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h])<br>
-AC_CHECK_HEADERS([sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h])<br>
+AC_CHECK_HEADERS([sys/ioctl.h malloc/malloc.h mach/mach.h])<br>
 AC_CHECK_HEADERS([valgrind/valgrind.h])<br>
 AC_CHECK_HEADERS([fenv.h])<br>
 AC_CHECK_DECLS([FE_ALL_EXCEPT, FE_INEXACT], [], [], [[#include <fenv.h>]])<br>
@@ -1610,7 +1610,7 @@ AC_CHECK_FUNCS([powf fmodf strtof round<br>
 AC_CHECK_FUNCS([log log2 log10 exp exp2])<br>
 AC_CHECK_FUNCS([getpagesize getrusage getrlimit setrlimit gettimeofday ])<br>
 AC_CHECK_FUNCS([isatty mkdtemp mkstemp ])<br>
-AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit strdup ])<br>
+AC_CHECK_FUNCS([mktemp posix_spawn pread realpath sbrk setrlimit ])<br>
 AC_CHECK_FUNCS([strerror strerror_r setenv arc4random ])<br>
 AC_CHECK_FUNCS([strtoll strtoq sysconf malloc_zone_statistics ])<br>
 AC_CHECK_FUNCS([setjmp longjmp sigsetjmp siglongjmp writev])<br>
<br>
Modified: llvm/trunk/autoconf/m4/ltdl.m4<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/m4/ltdl.m4?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/m4/ltdl.m4?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/autoconf/m4/ltdl.m4 (original)<br>
+++ llvm/trunk/autoconf/m4/ltdl.m4 Fri Jul 26 11:54:23 2013<br>
@@ -77,15 +77,9 @@ AC_REQUIRE([AC_LTDL_DLSYM_USCORE])<br>
 AC_REQUIRE([AC_LTDL_SYS_DLOPEN_DEPLIBS])<br>
 AC_REQUIRE([AC_LTDL_FUNC_ARGZ])<br>
<br>
-AC_CHECK_HEADERS([assert.h ctype.h errno.h malloc.h memory.h stdlib.h \<br>
-                 stdio.h unistd.h])<br>
-AC_CHECK_HEADERS([dl.h sys/dl.h dld.h mach-o/dyld.h])<br>
-AC_CHECK_HEADERS([string.h strings.h], [break])<br>
-<br>
-AC_CHECK_FUNCS([strchr index], [break])<br>
-AC_CHECK_FUNCS([strrchr rindex], [break])<br>
-AC_CHECK_FUNCS([memcpy bcopy], [break])<br>
-AC_CHECK_FUNCS([memmove strcmp])<br>
+AC_CHECK_HEADERS([errno.h malloc.h memory.h unistd.h])<br>
+AC_CHECK_HEADERS([mach-o/dyld.h])<br>
+<br>
 AC_CHECK_FUNCS([closedir opendir readdir])<br>
 ])# AC_LIB_LTDL<br>
<br>
@@ -385,19 +379,3 @@ if test x"$libltdl_cv_need_uscore" = xye<br>
     [Define if dlsym() requires a leading underscore in symbol names.])<br>
 fi<br>
 ])# AC_LTDL_DLSYM_USCORE<br>
-<br>
-# AC_LTDL_FUNC_ARGZ<br>
-# -----------------<br>
-AC_DEFUN([AC_LTDL_FUNC_ARGZ],<br>
-[AC_CHECK_HEADERS([argz.h])<br>
-<br>
-AC_CHECK_TYPES([error_t],<br>
-  [],<br>
-  [AC_DEFINE([error_t], [int],<br>
-    [Define to a type to use for `error_t' if it is not otherwise available.])],<br>
-  [#if HAVE_ARGZ_H<br>
-#  include <argz.h><br>
-#endif])<br>
-<br>
-AC_CHECK_FUNCS([argz_append argz_create_sep argz_insert argz_next argz_stringify])<br>
-])# AC_LTDL_FUNC_ARGZ<br>
<br>
Modified: llvm/trunk/cmake/config-ix.cmake<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/cmake/config-ix.cmake (original)<br>
+++ llvm/trunk/cmake/config-ix.cmake Fri Jul 26 11:54:23 2013<br>
@@ -35,37 +35,24 @@ function(check_type_exists type files va<br>
 endfunction()<br>
<br>
 # include checks<br>
-check_include_file(argz.h HAVE_ARGZ_H)<br>
-check_include_file(assert.h HAVE_ASSERT_H)<br>
-check_include_file(ctype.h HAVE_CTYPE_H)<br>
 check_include_file_cxx(cxxabi.h HAVE_CXXABI_H)<br>
 check_include_file(dirent.h HAVE_DIRENT_H)<br>
-check_include_file(dl.h HAVE_DL_H)<br>
-check_include_file(dld.h HAVE_DLD_H)<br>
 check_include_file(dlfcn.h HAVE_DLFCN_H)<br>
 check_include_file(errno.h HAVE_ERRNO_H)<br>
 check_include_file(execinfo.h HAVE_EXECINFO_H)<br>
 check_include_file(fcntl.h HAVE_FCNTL_H)<br>
 check_include_file(inttypes.h HAVE_INTTYPES_H)<br>
 check_include_file(limits.h HAVE_LIMITS_H)<br>
-check_include_file(link.h HAVE_LINK_H)<br>
 check_include_file(malloc.h HAVE_MALLOC_H)<br>
 check_include_file(malloc/malloc.h HAVE_MALLOC_MALLOC_H)<br>
-check_include_file(memory.h HAVE_MEMORY_H)<br>
 check_include_file(ndir.h HAVE_NDIR_H)<br>
 if( NOT PURE_WINDOWS )<br>
   check_include_file(pthread.h HAVE_PTHREAD_H)<br>
 endif()<br>
 check_include_file(sanitizer/msan_interface.h HAVE_SANITIZER_MSAN_INTERFACE_H)<br>
-check_include_file(setjmp.h HAVE_SETJMP_H)<br>
 check_include_file(signal.h HAVE_SIGNAL_H)<br>
 check_include_file(stdint.h HAVE_STDINT_H)<br>
-check_include_file(stdio.h HAVE_STDIO_H)<br>
-check_include_file(stdlib.h HAVE_STDLIB_H)<br>
-check_include_file(string.h HAVE_STRING_H)<br>
-check_include_file(strings.h HAVE_STRINGS_H)<br>
 check_include_file(sys/dir.h HAVE_SYS_DIR_H)<br>
-check_include_file(sys/dl.h HAVE_SYS_DL_H)<br>
 check_include_file(sys/ioctl.h HAVE_SYS_IOCTL_H)<br>
 check_include_file(sys/mman.h HAVE_SYS_MMAN_H)<br>
 check_include_file(sys/ndir.h HAVE_SYS_NDIR_H)<br>
@@ -73,14 +60,12 @@ check_include_file(sys/param.h HAVE_SYS_<br>
 check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H)<br>
 check_include_file(sys/stat.h HAVE_SYS_STAT_H)<br>
 check_include_file(sys/time.h HAVE_SYS_TIME_H)<br>
-check_include_file(sys/types.h HAVE_SYS_TYPES_H)<br>
 check_include_file(sys/uio.h HAVE_SYS_UIO_H)<br>
 check_include_file(sys/wait.h HAVE_SYS_WAIT_H)<br>
 check_include_file(termios.h HAVE_TERMIOS_H)<br>
 check_include_file(unistd.h HAVE_UNISTD_H)<br>
 check_include_file(utime.h HAVE_UTIME_H)<br>
 check_include_file(valgrind/valgrind.h HAVE_VALGRIND_VALGRIND_H)<br>
-check_include_file(windows.h HAVE_WINDOWS_H)<br>
 check_include_file(zlib.h HAVE_ZLIB_H)<br>
 check_include_file(fenv.h HAVE_FENV_H)<br>
 check_symbol_exists(FE_ALL_EXCEPT "fenv.h" HAVE_DECL_FE_ALL_EXCEPT)<br>
@@ -121,7 +106,6 @@ check_symbol_exists(getpagesize unistd.h<br>
 check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)<br>
 check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)<br>
 check_symbol_exists(isatty unistd.h HAVE_ISATTY)<br>
-check_symbol_exists(index strings.h HAVE_INDEX)<br>
 check_symbol_exists(isinf cmath HAVE_ISINF_IN_CMATH)<br>
 check_symbol_exists(isinf math.h HAVE_ISINF_IN_MATH_H)<br>
 check_symbol_exists(finite ieeefp.h HAVE_FINITE_IN_IEEEFP_H)<br>
@@ -162,11 +146,6 @@ check_symbol_exists(gettimeofday sys/tim<br>
 check_symbol_exists(getrlimit "sys/types.h;sys/time.h;sys/resource.h" HAVE_GETRLIMIT)<br>
 check_symbol_exists(posix_spawn spawn.h HAVE_POSIX_SPAWN)<br>
 check_symbol_exists(pread unistd.h HAVE_PREAD)<br>
-check_symbol_exists(rindex strings.h HAVE_RINDEX)<br>
-check_symbol_exists(strchr string.h HAVE_STRCHR)<br>
-check_symbol_exists(strcmp string.h HAVE_STRCMP)<br>
-check_symbol_exists(strdup string.h HAVE_STRDUP)<br>
-check_symbol_exists(strrchr string.h HAVE_STRRCHR)<br>
 check_symbol_exists(sbrk unistd.h HAVE_SBRK)<br>
 check_symbol_exists(srand48 stdlib.h HAVE_RAND48_SRAND48)<br>
 if( HAVE_RAND48_SRAND48 )<br>
@@ -183,8 +162,6 @@ check_symbol_exists(strtoq stdlib.h HAVE<br>
 check_symbol_exists(strerror string.h HAVE_STRERROR)<br>
 check_symbol_exists(strerror_r string.h HAVE_STRERROR_R)<br>
 check_symbol_exists(strerror_s string.h HAVE_DECL_STRERROR_S)<br>
-check_symbol_exists(memcpy string.h HAVE_MEMCPY)<br>
-check_symbol_exists(memmove string.h HAVE_MEMMOVE)<br>
 check_symbol_exists(setenv stdlib.h HAVE_SETENV)<br>
 if( PURE_WINDOWS )<br>
   check_symbol_exists(_chsize_s io.h HAVE__CHSIZE_S)<br>
@@ -208,13 +185,6 @@ if( PURE_WINDOWS )<br>
   check_function_exists(__main HAVE___MAIN)<br>
   check_function_exists(__cmpdi2 HAVE___CMPDI2)<br>
 endif()<br>
-if( HAVE_ARGZ_H )<br>
-  check_symbol_exists(argz_append argz.h HAVE_ARGZ_APPEND)<br>
-  check_symbol_exists(argz_create_sep argz.h HAVE_ARGZ_CREATE_SEP)<br>
-  check_symbol_exists(argz_insert argz.h HAVE_ARGZ_INSERT)<br>
-  check_symbol_exists(argz_next argz.h HAVE_ARGZ_NEXT)<br>
-  check_symbol_exists(argz_stringify argz.h HAVE_ARGZ_STRINGIFY)<br>
-endif()<br>
 if( HAVE_DLFCN_H )<br>
   if( HAVE_LIBDL )<br>
     list(APPEND CMAKE_REQUIRED_LIBRARIES dl)<br>
@@ -231,10 +201,7 @@ if( LLVM_USING_GLIBC )<br>
   add_llvm_definitions( -D_GNU_SOURCE )<br>
 endif()<br>
<br>
-set(headers "")<br>
-if (HAVE_SYS_TYPES_H)<br>
-  set(headers ${headers} "sys/types.h")<br>
-endif()<br>
+set(headers "sys/types.h")<br>
<br>
 if (HAVE_INTTYPES_H)<br>
   set(headers ${headers} "inttypes.h")<br>
<br>
Modified: llvm/trunk/include/llvm/Config/config.h.cmake<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.cmake?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.cmake?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/include/llvm/Config/config.h.cmake (original)<br>
+++ llvm/trunk/include/llvm/Config/config.h.cmake Fri Jul 26 11:54:23 2013<br>
@@ -33,27 +33,6 @@<br>
 /* Define to 1 if you have the `arc4random' function. */<br>
 #cmakedefine HAVE_ARC4RANDOM<br>
<br>
-/* Define to 1 if you have the `argz_append' function. */<br>
-#cmakedefine HAVE_ARGZ_APPEND ${HAVE_ARGZ_APPEND}<br>
-<br>
-/* Define to 1 if you have the `argz_create_sep' function. */<br>
-#cmakedefine HAVE_ARGZ_CREATE_SEP ${HAVE_ARGZ_CREATE_SEP}<br>
-<br>
-/* Define to 1 if you have the <argz.h> header file. */<br>
-#cmakedefine HAVE_ARGZ_H ${HAVE_ARGZ_H}<br>
-<br>
-/* Define to 1 if you have the `argz_insert' function. */<br>
-#cmakedefine HAVE_ARGZ_INSERT ${HAVE_ARGZ_INSERT}<br>
-<br>
-/* Define to 1 if you have the `argz_next' function. */<br>
-#cmakedefine HAVE_ARGZ_NEXT ${HAVE_ARGZ_NEXT}<br>
-<br>
-/* Define to 1 if you have the `argz_stringify' function. */<br>
-#cmakedefine HAVE_ARGZ_STRINGIFY ${HAVE_ARGZ_STRINGIFY}<br>
-<br>
-/* Define to 1 if you have the <assert.h> header file. */<br>
-#cmakedefine HAVE_ASSERT_H ${HAVE_ASSERT_H}<br>
-<br>
 /* Define to 1 if you have the `backtrace' function. */<br>
 #cmakedefine HAVE_BACKTRACE ${HAVE_BACKTRACE}<br>
<br>
@@ -78,9 +57,6 @@<br>
 /* can use __crashreporter_info__ */<br>
 #undef HAVE_CRASHREPORTER_INFO<br>
<br>
-/* Define to 1 if you have the <ctype.h> header file. */<br>
-#cmakedefine HAVE_CTYPE_H ${HAVE_CTYPE_H}<br>
-<br>
 /* Define to 1 if you have the declaration of `strerror_s', and to 0 if you<br>
    don't. */<br>
 #cmakedefine01 HAVE_DECL_STRERROR_S<br>
@@ -92,9 +68,6 @@<br>
 /* Define if you have the GNU dld library. */<br>
 #undef HAVE_DLD<br>
<br>
-/* Define to 1 if you have the <dld.h> header file. */<br>
-#cmakedefine HAVE_DLD_H ${HAVE_DLD_H}<br>
-<br>
 /* Define to 1 if you have the `dlerror' function. */<br>
 #cmakedefine HAVE_DLERROR ${HAVE_DLERROR}<br>
<br>
@@ -104,9 +77,6 @@<br>
 /* Define if dlopen() is available on this platform. */<br>
 #cmakedefine HAVE_DLOPEN ${HAVE_DLOPEN}<br>
<br>
-/* Define to 1 if you have the <dl.h> header file. */<br>
-#cmakedefine HAVE_DL_H ${HAVE_DL_H}<br>
-<br>
 /* Define if the dot program is available */<br>
 #cmakedefine HAVE_DOT ${HAVE_DOT}<br>
<br>
@@ -119,9 +89,6 @@<br>
 /* Define to 1 if you have the <errno.h> header file. */<br>
 #cmakedefine HAVE_ERRNO_H ${HAVE_ERRNO_H}<br>
<br>
-/* Define to 1 if the system has the type `error_t'. */<br>
-#cmakedefine HAVE_ERROR_T ${HAVE_ERROR_T}<br>
-<br>
 /* Define to 1 if you have the <execinfo.h> header file. */<br>
 #cmakedefine HAVE_EXECINFO_H ${HAVE_EXECINFO_H}<br>
<br>
@@ -197,9 +164,6 @@<br>
 /* Define if the gv program is available */<br>
 #cmakedefine HAVE_GV ${HAVE_GV}<br>
<br>
-/* Define to 1 if you have the `index' function. */<br>
-#cmakedefine HAVE_INDEX ${HAVE_INDEX}<br>
-<br>
 /* Define to 1 if the system has the type `int64_t'. */<br>
 #cmakedefine HAVE_INT64_T ${HAVE_INT64_T}<br>
<br>
@@ -248,9 +212,6 @@<br>
 /* Define if you can use -Wl,-export-dynamic. */<br>
 #define HAVE_LINK_EXPORT_DYNAMIC 1<br>
<br>
-/* Define to 1 if you have the <link.h> header file. */<br>
-#cmakedefine HAVE_LINK_H ${HAVE_LINK_H}<br>
-<br>
 /* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add<br>
    the current directory to the dynamic linker search path. */<br>
 #undef HAVE_LINK_R<br>
@@ -276,15 +237,6 @@<br>
 /* Define to 1 if you have the `malloc_zone_statistics' function. */<br>
 #cmakedefine HAVE_MALLOC_ZONE_STATISTICS ${HAVE_MALLOC_ZONE_STATISTICS}<br>
<br>
-/* Define to 1 if you have the `memcpy' function. */<br>
-#cmakedefine HAVE_MEMCPY ${HAVE_MEMCPY}<br>
-<br>
-/* Define to 1 if you have the `memmove' function. */<br>
-#cmakedefine HAVE_MEMMOVE ${HAVE_MEMMOVE}<br>
-<br>
-/* Define to 1 if you have the <memory.h> header file. */<br>
-#cmakedefine HAVE_MEMORY_H ${HAVE_MEMORY_H}<br>
-<br>
 /* Define to 1 if you have the `mkdtemp' function. */<br>
 #cmakedefine HAVE_MKDTEMP ${HAVE_MKDTEMP}<br>
<br>
@@ -352,9 +304,6 @@<br>
 /* Define to 1 if you have the `realpath' function. */<br>
 #undef HAVE_REALPATH<br>
<br>
-/* Define to 1 if you have the `rindex' function. */<br>
-#cmakedefine HAVE_RINDEX ${HAVE_RINDEX}<br>
-<br>
 /* Define to 1 if you have the `rintf' function. */<br>
 #undef HAVE_RINTF<br>
<br>
@@ -373,9 +322,6 @@<br>
 /* Define to 1 if you have the `setjmp' function. */<br>
 #cmakedefine HAVE_SETJMP ${HAVE_SETJMP}<br>
<br>
-/* Define to 1 if you have the <setjmp.h> header file. */<br>
-#cmakedefine HAVE_SETJMP_H ${HAVE_SETJMP_H}<br>
-<br>
 /* Define to 1 if you have the `setrlimit' function. */<br>
 #cmakedefine HAVE_SETRLIMIT ${HAVE_SETRLIMIT}<br>
<br>
@@ -394,24 +340,12 @@<br>
 /* Define to 1 if you have the <stdint.h> header file. */<br>
 #cmakedefine HAVE_STDINT_H ${HAVE_STDINT_H}<br>
<br>
-/* Define to 1 if you have the <stdio.h> header file. */<br>
-#cmakedefine HAVE_STDIO_H ${HAVE_STDIO_H}<br>
-<br>
-/* Define to 1 if you have the <stdlib.h> header file. */<br>
-#cmakedefine HAVE_STDLIB_H ${HAVE_STDLIB_H}<br>
-<br>
 /* Set to 1 if the std::isinf function is found in <cmath> */<br>
 #undef HAVE_STD_ISINF_IN_CMATH<br>
<br>
 /* Set to 1 if the std::isnan function is found in <cmath> */<br>
 #undef HAVE_STD_ISNAN_IN_CMATH<br>
<br>
-/* Define to 1 if you have the `strchr' function. */<br>
-#cmakedefine HAVE_STRCHR ${HAVE_STRCHR}<br>
-<br>
-/* Define to 1 if you have the `strcmp' function. */<br>
-#cmakedefine HAVE_STRCMP ${HAVE_STRCMP}<br>
-<br>
 /* Define to 1 if you have the `strdup' function. */<br>
 #cmakedefine HAVE_STRDUP ${HAVE_STRDUP}<br>
<br>
@@ -421,15 +355,6 @@<br>
 /* Define to 1 if you have the `strerror_r' function. */<br>
 #cmakedefine HAVE_STRERROR_R ${HAVE_STRERROR_R}<br>
<br>
-/* Define to 1 if you have the <strings.h> header file. */<br>
-#cmakedefine HAVE_STRINGS_H ${HAVE_STRINGS_H}<br>
-<br>
-/* Define to 1 if you have the <string.h> header file. */<br>
-#cmakedefine HAVE_STRING_H ${HAVE_STRING_H}<br>
-<br>
-/* Define to 1 if you have the `strrchr' function. */<br>
-#cmakedefine HAVE_STRRCHR ${HAVE_STRRCHR}<br>
-<br>
 /* Define to 1 if you have the `strtof' function. */<br>
 #cmakedefine HAVE_STRTOF ${HAVE_STRTOF}<br>
<br>
@@ -446,9 +371,6 @@<br>
    */<br>
 #cmakedefine HAVE_SYS_DIR_H ${HAVE_SYS_DIR_H}<br>
<br>
-/* Define to 1 if you have the <sys/dl.h> header file. */<br>
-#cmakedefine HAVE_SYS_DL_H ${HAVE_SYS_DL_H}<br>
-<br>
 /* Define to 1 if you have the <sys/ioctl.h> header file. */<br>
 #cmakedefine HAVE_SYS_IOCTL_H ${HAVE_SYS_IOCTL_H}<br>
<br>
@@ -501,9 +423,6 @@<br>
 /* Define to 1 if you have the <valgrind/valgrind.h> header file. */<br>
 #cmakedefine HAVE_VALGRIND_VALGRIND_H ${HAVE_VALGRIND_VALGRIND_H}<br>
<br>
-/* Define to 1 if you have the <windows.h> header file. */<br>
-#cmakedefine HAVE_WINDOWS_H ${HAVE_WINDOWS_H}<br>
-<br>
 /* Define to 1 if you have the `writev' function. */<br>
 #cmakedefine HAVE_WRITEV ${HAVE_WRITEV}<br>
<br>
<br>
Modified: llvm/trunk/include/llvm/Config/<a href="http://config.h.in" target="_blank">config.h.in</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.in?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Config/config.h.in?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/include/llvm/Config/<a href="http://config.h.in" target="_blank">config.h.in</a> (original)<br>
+++ llvm/trunk/include/llvm/Config/<a href="http://config.h.in" target="_blank">config.h.in</a> Fri Jul 26 11:54:23 2013<br>
@@ -33,33 +33,9 @@<br>
 /* Define to 1 if you have the `arc4random' function. */<br>
 #undef HAVE_ARC4RANDOM<br>
<br>
-/* Define to 1 if you have the `argz_append' function. */<br>
-#undef HAVE_ARGZ_APPEND<br>
-<br>
-/* Define to 1 if you have the `argz_create_sep' function. */<br>
-#undef HAVE_ARGZ_CREATE_SEP<br>
-<br>
-/* Define to 1 if you have the <argz.h> header file. */<br>
-#undef HAVE_ARGZ_H<br>
-<br>
-/* Define to 1 if you have the `argz_insert' function. */<br>
-#undef HAVE_ARGZ_INSERT<br>
-<br>
-/* Define to 1 if you have the `argz_next' function. */<br>
-#undef HAVE_ARGZ_NEXT<br>
-<br>
-/* Define to 1 if you have the `argz_stringify' function. */<br>
-#undef HAVE_ARGZ_STRINGIFY<br>
-<br>
-/* Define to 1 if you have the <assert.h> header file. */<br>
-#undef HAVE_ASSERT_H<br>
-<br>
 /* Define to 1 if you have the `backtrace' function. */<br>
 #undef HAVE_BACKTRACE<br>
<br>
-/* Define to 1 if you have the `bcopy' function. */<br>
-#undef HAVE_BCOPY<br>
-<br>
 /* Define to 1 if you have the `ceilf' function. */<br>
 #undef HAVE_CEILF<br>
<br>
@@ -75,9 +51,6 @@<br>
 /* can use __crashreporter_info__ */<br>
 #undef HAVE_CRASHREPORTER_INFO<br>
<br>
-/* Define to 1 if you have the <ctype.h> header file. */<br>
-#undef HAVE_CTYPE_H<br>
-<br>
 /* Define to 1 if you have the <cxxabi.h> header file. */<br>
 #undef HAVE_CXXABI_H<br>
<br>
@@ -100,9 +73,6 @@<br>
 /* Define if you have the GNU dld library. */<br>
 #undef HAVE_DLD<br>
<br>
-/* Define to 1 if you have the <dld.h> header file. */<br>
-#undef HAVE_DLD_H<br>
-<br>
 /* Define to 1 if you have the `dlerror' function. */<br>
 #undef HAVE_DLERROR<br>
<br>
@@ -112,9 +82,6 @@<br>
 /* Define if dlopen() is available on this platform. */<br>
 #undef HAVE_DLOPEN<br>
<br>
-/* Define to 1 if you have the <dl.h> header file. */<br>
-#undef HAVE_DL_H<br>
-<br>
 /* Define if the dot program is available */<br>
 #undef HAVE_DOT<br>
<br>
@@ -238,15 +205,9 @@<br>
 /* Define to 1 if you have the `z' library (-lz). */<br>
 #undef HAVE_LIBZ<br>
<br>
-/* Define to 1 if you have the <limits.h> header file. */<br>
-#undef HAVE_LIMITS_H<br>
-<br>
 /* Define if you can use -Wl,-export-dynamic. */<br>
 #undef HAVE_LINK_EXPORT_DYNAMIC<br>
<br>
-/* Define to 1 if you have the <link.h> header file. */<br>
-#undef HAVE_LINK_H<br>
-<br>
 /* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add<br>
    the current directory to the dynamic linker search path. */<br>
 #undef HAVE_LINK_R<br>
@@ -281,15 +242,6 @@<br>
 /* Define to 1 if you have the `malloc_zone_statistics' function. */<br>
 #undef HAVE_MALLOC_ZONE_STATISTICS<br>
<br>
-/* Define to 1 if you have the `memcpy' function. */<br>
-#undef HAVE_MEMCPY<br>
-<br>
-/* Define to 1 if you have the `memmove' function. */<br>
-#undef HAVE_MEMMOVE<br>
-<br>
-/* Define to 1 if you have the <memory.h> header file. */<br>
-#undef HAVE_MEMORY_H<br>
-<br>
 /* Define to 1 if you have the `mkdtemp' function. */<br>
 #undef HAVE_MKDTEMP<br>
<br>
@@ -378,9 +330,6 @@<br>
 /* Define to 1 if you have the `setjmp' function. */<br>
 #undef HAVE_SETJMP<br>
<br>
-/* Define to 1 if you have the <setjmp.h> header file. */<br>
-#undef HAVE_SETJMP_H<br>
-<br>
 /* Define to 1 if you have the `setrlimit' function. */<br>
 #undef HAVE_SETRLIMIT<br>
<br>
@@ -399,42 +348,18 @@<br>
 /* Define to 1 if you have the <stdint.h> header file. */<br>
 #undef HAVE_STDINT_H<br>
<br>
-/* Define to 1 if you have the <stdio.h> header file. */<br>
-#undef HAVE_STDIO_H<br>
-<br>
-/* Define to 1 if you have the <stdlib.h> header file. */<br>
-#undef HAVE_STDLIB_H<br>
-<br>
 /* Set to 1 if the std::isinf function is found in <cmath> */<br>
 #undef HAVE_STD_ISINF_IN_CMATH<br>
<br>
 /* Set to 1 if the std::isnan function is found in <cmath> */<br>
 #undef HAVE_STD_ISNAN_IN_CMATH<br>
<br>
-/* Define to 1 if you have the `strchr' function. */<br>
-#undef HAVE_STRCHR<br>
-<br>
-/* Define to 1 if you have the `strcmp' function. */<br>
-#undef HAVE_STRCMP<br>
-<br>
-/* Define to 1 if you have the `strdup' function. */<br>
-#undef HAVE_STRDUP<br>
-<br>
 /* Define to 1 if you have the `strerror' function. */<br>
 #undef HAVE_STRERROR<br>
<br>
 /* Define to 1 if you have the `strerror_r' function. */<br>
 #undef HAVE_STRERROR_R<br>
<br>
-/* Define to 1 if you have the <strings.h> header file. */<br>
-#undef HAVE_STRINGS_H<br>
-<br>
-/* Define to 1 if you have the <string.h> header file. */<br>
-#undef HAVE_STRING_H<br>
-<br>
-/* Define to 1 if you have the `strrchr' function. */<br>
-#undef HAVE_STRRCHR<br>
-<br>
 /* Define to 1 if you have the `strtof' function. */<br>
 #undef HAVE_STRTOF<br>
<br>
@@ -451,9 +376,6 @@<br>
    */<br>
 #undef HAVE_SYS_DIR_H<br>
<br>
-/* Define to 1 if you have the <sys/dl.h> header file. */<br>
-#undef HAVE_SYS_DL_H<br>
-<br>
 /* Define to 1 if you have the <sys/ioctl.h> header file. */<br>
 #undef HAVE_SYS_IOCTL_H<br>
<br>
@@ -476,9 +398,6 @@<br>
 /* Define to 1 if you have the <sys/time.h> header file. */<br>
 #undef HAVE_SYS_TIME_H<br>
<br>
-/* Define to 1 if you have the <sys/types.h> header file. */<br>
-#undef HAVE_SYS_TYPES_H<br>
-<br>
 /* Define to 1 if you have the <sys/uio.h> header file. */<br>
 #undef HAVE_SYS_UIO_H<br>
<br>
@@ -506,9 +425,6 @@<br>
 /* Define to 1 if you have the <valgrind/valgrind.h> header file. */<br>
 #undef HAVE_VALGRIND_VALGRIND_H<br>
<br>
-/* Define to 1 if you have the <windows.h> header file. */<br>
-#undef HAVE_WINDOWS_H<br>
-<br>
 /* Define to 1 if you have the `writev' function. */<br>
 #undef HAVE_WRITEV<br>
<br>
<br>
Modified: llvm/trunk/include/llvm/Support/DataTypes.h.cmake<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DataTypes.h.cmake?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DataTypes.h.cmake?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/include/llvm/Support/DataTypes.h.cmake (original)<br>
+++ llvm/trunk/include/llvm/Support/DataTypes.h.cmake Fri Jul 26 11:54:23 2013<br>
@@ -26,7 +26,6 @@<br>
 #ifndef SUPPORT_DATATYPES_H<br>
 #define SUPPORT_DATATYPES_H<br>
<br>
-#cmakedefine HAVE_SYS_TYPES_H ${HAVE_SYS_TYPES_H}<br>
 #cmakedefine HAVE_INTTYPES_H ${HAVE_INTTYPES_H}<br>
 #cmakedefine HAVE_STDINT_H ${HAVE_STDINT_H}<br>
 #cmakedefine HAVE_UINT64_T ${HAVE_UINT64_T}<br>
@@ -54,9 +53,7 @@<br>
 #endif<br>
<br>
 /* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */<br>
-#ifdef HAVE_SYS_TYPES_H<br>
 #include <sys/types.h><br>
-#endif<br>
<br>
 #ifdef HAVE_INTTYPES_H<br>
 #include <inttypes.h><br>
<br>
Modified: llvm/trunk/include/llvm/Support/<a href="http://DataTypes.h.in" target="_blank">DataTypes.h.in</a><br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DataTypes.h.in?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/DataTypes.h.in?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/include/llvm/Support/<a href="http://DataTypes.h.in" target="_blank">DataTypes.h.in</a> (original)<br>
+++ llvm/trunk/include/llvm/Support/<a href="http://DataTypes.h.in" target="_blank">DataTypes.h.in</a> Fri Jul 26 11:54:23 2013<br>
@@ -26,7 +26,6 @@<br>
 #ifndef SUPPORT_DATATYPES_H<br>
 #define SUPPORT_DATATYPES_H<br>
<br>
-#undef HAVE_SYS_TYPES_H<br>
 #undef HAVE_INTTYPES_H<br>
 #undef HAVE_STDINT_H<br>
 #undef HAVE_UINT64_T<br>
@@ -54,9 +53,7 @@<br>
 #endif<br>
<br>
 /* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */<br>
-#ifdef HAVE_SYS_TYPES_H<br>
 #include <sys/types.h><br>
-#endif<br>
<br>
 #ifdef HAVE_INTTYPES_H<br>
 #include <inttypes.h><br>
<br>
Modified: llvm/trunk/lib/Support/Errno.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Errno.cpp?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Errno.cpp?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/Support/Errno.cpp (original)<br>
+++ llvm/trunk/lib/Support/Errno.cpp Fri Jul 26 11:54:23 2013<br>
@@ -14,8 +14,6 @@<br>
 #include "llvm/Support/Errno.h"<br>
 #include "llvm/Config/config.h"     // Get autoconf configuration settings<br>
 #include "llvm/Support/raw_ostream.h"<br>
-<br>
-#if HAVE_STRING_H<br>
 #include <string.h><br>
<br>
 #if HAVE_ERRNO_H<br>
@@ -75,5 +73,3 @@ std::string StrError(int errnum) {<br>
<br>
 }  // namespace sys<br>
 }  // namespace llvm<br>
-<br>
-#endif  // HAVE_STRING_H<br>
<br>
Modified: llvm/trunk/lib/Support/Unix/Path.inc<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/Support/Unix/Path.inc (original)<br>
+++ llvm/trunk/lib/Support/Unix/Path.inc Fri Jul 26 11:54:23 2013<br>
@@ -18,6 +18,8 @@<br>
<br>
 #include "Unix.h"<br>
 #include "llvm/Support/Process.h"<br>
+#include <limits.h><br>
+#include <stdio.h><br>
 #if HAVE_SYS_STAT_H<br>
 #include <sys/stat.h><br>
 #endif<br>
@@ -43,12 +45,6 @@<br>
 #  include <ndir.h><br>
 # endif<br>
 #endif<br>
-#if HAVE_STDIO_H<br>
-#include <stdio.h><br>
-#endif<br>
-#if HAVE_LIMITS_H<br>
-#include <limits.h><br>
-#endif<br>
<br>
 #ifdef __APPLE__<br>
 #include <mach-o/dyld.h><br>
<br>
Modified: llvm/trunk/lib/Support/Unix/Unix.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Unix.h?rev=187209&r1=187208&r2=187209&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Unix.h?rev=187209&r1=187208&r2=187209&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/Support/Unix/Unix.h (original)<br>
+++ llvm/trunk/lib/Support/Unix/Unix.h Fri Jul 26 11:54:23 2013<br>
@@ -22,28 +22,22 @@<br>
 #include "llvm/Config/config.h"     // Get autoconf configuration settings<br>
 #include "llvm/Support/Errno.h"<br>
 #include <algorithm><br>
+#include <assert.h><br>
 #include <cerrno><br>
 #include <cstdio><br>
 #include <cstdlib><br>
 #include <cstring><br>
 #include <string><br>
+#include <sys/types.h><br>
<br>
 #ifdef HAVE_UNISTD_H<br>
 #include <unistd.h><br>
 #endif<br>
<br>
-#ifdef HAVE_SYS_TYPES_H<br>
-#include <sys/types.h><br>
-#endif<br>
-<br>
 #ifdef HAVE_SYS_PARAM_H<br>
 #include <sys/param.h><br>
 #endif<br>
<br>
-#ifdef HAVE_ASSERT_H<br>
-#include <assert.h><br>
-#endif<br>
-<br>
 #ifdef HAVE_SYS_TIME_H<br>
 # include <sys/time.h><br>
 #endif<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>