Posting first patch here as Óscar suggested in this thread <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-January/037209.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-January/037209.html</a> <br>

I've decided to start with simple stuff.<br>
<br>Short summary:<br><br>- Add ENABLE_CBE_PRINTF_A.<br>- Fix ENABLE_PIC.<br>   
 The problem was that ENABLE_PIC was set to 1 *after* generating 
config.h. I've moved if(ENABLE_PIC) from CMakeLists.txt into 
cmake/config-ix.cmake.<br>
- Add <ctype.h> check.<br>- Add fmodf() call check.<br>    This 
call located in math.h on Linux, FreeBSD, MacOS and Windows, so i 
decided, that it's safe to check it using just check_symbol_exists() 
command.<br>
- Add HAVE_INT64_T.<br>- Fix HAVE_INT64_T, HAVE_UINT64_T and HAVE_U_INT64_T defines in config.h.cmake.<br>- Remove CAN_DLOPEN_SELF.<br>    This was only in config.h.cmake and not in <a href="http://config.h.in/" target="_blank">config.h.in</a>. Additionaly, there was none check for it.<br>


<br>I want to mention, that all CMake code is slightly messed up: 
declarations are messed with logic, there is no convention on naming 
variables (LLVM_ENABLE_<> and simply ENABLE_<>) and other 
things. What do you think about cleaning this up?