Stop checking for __builtin_clz (#985)

Since commit 19137a55 we no longer use this builtin, so we don't have to check
for it anymore either.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-07-05 22:12:26 +02:00 committed by Daniel Hahler
parent 441587a4de
commit 2e6358ca2d
3 changed files with 0 additions and 25 deletions

View File

@ -199,16 +199,6 @@ else()
message(STATUS "checking for execinfo -- not found")
endif()
# __builtin_clz is available since gcc 3.4
try_compile(HAS___BUILTIN_CLZ
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/build-tests/__builtin_clz.c)
if(HAS___BUILTIN_CLZ)
message(STATUS "checking for __builtin_clz -- yes")
else()
message(STATUS "checking for __builtin_clz -- no")
endif()
set(AWESOME_REQUIRED_LDFLAGS
${AWESOME_COMMON_REQUIRED_LDFLAGS}
${AWESOME_REQUIRED_LDFLAGS}

View File

@ -1,14 +0,0 @@
/*
* build-tests/__builtin_clz.c
*
* test if the compiler has __builtin_clz().
*/
int
main(void)
{
return (__builtin_clz(42));
}
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -7,7 +7,6 @@
#cmakedefine WITH_DBUS
#cmakedefine HAS_EXECINFO
#cmakedefine HAS___BUILTIN_CLZ
#endif //_CONFIG_H_