cmake: Move test for stdint.h to common tests

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 182234c826)
pull/38/head
Slávek Banko 8 years ago
parent a86cb078cb
commit 0feb22c61f

@ -32,6 +32,10 @@ if( BUILD_KOPETE OR BUILD_KPPP )
check_include_file( string.h HAVE_STRING_H ) check_include_file( string.h HAVE_STRING_H )
endif( ) endif( )
if( BUILD_KOPETE OR BUILD_KTALKD )
check_include_file( stdint.h HAVE_STDINT_H )
endif( )
if( WITH_SLP ) if( WITH_SLP )
check_library_exists( slp "SLPOpen" "" HAVE_SLP ) check_library_exists( slp "SLPOpen" "" HAVE_SLP )
if( HAVE_SLP ) if( HAVE_SLP )

@ -15,6 +15,9 @@
// kopete/protocols/yahoo, kppp // kopete/protocols/yahoo, kppp
#cmakedefine HAVE_STRING_H 1 #cmakedefine HAVE_STRING_H 1
// kopete, ktalkd
#cmakedefine HAVE_STDINT_H 1
// kopete/protocols/jabber // kopete/protocols/jabber
#cmakedefine SUPPORT_JINGLE 1 #cmakedefine SUPPORT_JINGLE 1
#cmakedefine HAVE_GLIB 1 #cmakedefine HAVE_GLIB 1

@ -13,8 +13,6 @@ include( ConfigureChecks.cmake )
if( HAVE_INTTYPES_H ) if( HAVE_INTTYPES_H )
add_definitions( -DHAVE_INTTYPES_H ) add_definitions( -DHAVE_INTTYPES_H )
elseif( HAVE_STDINT_H )
add_definitions( -DHAVE_STDINT_H )
endif() endif()

@ -10,6 +10,5 @@
################################################# #################################################
check_include_file( inttypes.h HAVE_INTTYPES_H ) check_include_file( inttypes.h HAVE_INTTYPES_H )
check_include_file( stdint.h HAVE_STDINT_H )
check_include_file( strings.h HAVE_STRINGS_H ) check_include_file( strings.h HAVE_STRINGS_H )

Loading…
Cancel
Save