diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-15 00:32:01 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-15 00:32:01 +0000 |
commit | c9b5a85cc9055415540a6bd7dc1261cf9ff66f80 (patch) | |
tree | cff73c3322d7b40c39354df528d3852739a670e4 | |
parent | b89a6a027056ab6b4e6fa5c5d0509e549e207c77 (diff) | |
download | tdelibs-c9b5a85cc9055415540a6bd7dc1261cf9ff66f80.tar.gz tdelibs-c9b5a85cc9055415540a6bd7dc1261cf9ff66f80.zip |
[kdelibs] check for ltdl.h; avahi support are optional
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220748 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a931058c..e8070da18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,7 @@ OPTION( WITH_TIFF "Enable tiff support" OFF ) OPTION( WITH_JASPER "Enable jasper (jpeg2k) support" OFF ) OPTION( WITH_OPENEXR "Enable openexr support" OFF ) OPTION( WITH_UTEMPTER "Use utempter for utmp management" OFF ) +OPTION( WITH_AVAHI "Enable AVAHI support" OFF ) OPTION( WITH_ASPELL "Enable aspell support" OFF ) OPTION( WITH_HSPELL "Enable hspell support" OFF ) @@ -112,7 +113,10 @@ endif( NO_BUILTIN ) ##### system checks ############################# - +check_include_file( "ltdl.h" HAVE_LTDL_H ) +if( NOT HAVE_LTDL_H ) + tde_message_fatal( "ltdl.h are required, but not found on your system" ) +endif( ) check_include_file( "alloca.h" HAVE_ALLOCA_H ) check_include_file( "arpa/nameser8_compat.h" HAVE_ARPA_NAMESER8_COMPAT_H ) @@ -711,13 +715,13 @@ endif( WITH_LUA ) ##### check for avahi ########################### -pkg_search_module( AVAHI avahi-qt3 ) -if( NOT AVAHI_FOUND ) - message(FATAL_ERROR "\navahi support are requested, but not found on your system" ) -endif( NOT AVAHI_FOUND ) - -set( AVAHI_API_0_6 1 ) - +if( WITH_AVAHI ) + pkg_search_module( AVAHI avahi-qt3 ) + if( NOT AVAHI_FOUND ) + message(FATAL_ERROR "\navahi support are requested, but not found on your system" ) + endif( NOT AVAHI_FOUND ) + set( AVAHI_API_0_6 1 ) +endif( ) ##### check for aspell ########################## # we need ASPELL_DATADIR too |