blob: 444e48e3bc219d663555beeccec424b4c448a1ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
#################################################
#
# (C) 2013 Alexander Golubev
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# required stuff
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
find_package( TQt )
find_package( TDE )
##### check for gcc visibility support #########
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( )
##### kicker-applets ############################
if( BUILD_KICKER_APPLETS )
check_include_file( "fcntl.h" HAVE_FCNTL_H )
if( WITH_XMMS )
# FIXME: xmms is realy outdated, so check if this is really works
check_library_exists( xmms_remote_is_running xmms HAVE_XMMSLIB )
check_symbol_exist( xmms_remote_is_running "xmms/xmmsctrl.h" HAVE_XMMS )
if( HAVE_XMMS_LIB AND HAVE_XMMS )
set( XMMS_LIBRARIES xmms )
else( HAVE_XMMS )
tde_message_fatal( "xmms is required, but was not found on your system" )
endif( HAVE_XMMS )
endif( WITH_XMMS )
endif( BUILD_KICKER_APPLETS )
##### konq-plugins ##############################
if( BUILD_KONQ_PLUGINS )
check_include_file( "pty.h" HAVE_PTY_H )
check_include_file( "terminos.h" HAVE_TERMIOS_H )
check_include_file( "stropts.h" HAVE_STROPTS )
check_include_file( "sys/ioctl.h" HAVE_SYS_IOCTL_H )
check_include_file( "libutil.h" HAVE_LIBUTIL_H )
check_include_file( "util.h" HAVE_UTIL_H )
endif( BUILD_KONQ_PLUGINS )
##### other dependencies ########################
if( BUILD_KONQ_PLUGINS OR BUILD_NOATUN_PLUGINS )
# arts
if( WITH_ARTS )
pkg_search_module( ARTS arts )
if( NOT ARTS_FOUND )
tde_message_fatal( "aRts is requested, but was not found on your system" )
endif( )
endif( WITH_ARTS )
endif( BUILD_KONQ_PLUGINS OR BUILD_NOATUN_PLUGINS )
if( BUILD_NOATUN_PLUGINS )
# sdl
if( WITH_SDL )
pkg_search_module( SDL sdl )
if( NOT SDL_FOUND )
check_include_file( SDL/SDL.h HAVE_SDL_H )
if( NOT HAVE_SDL_H )
tde_message_fatal( "SDL is requested, but was not found on your system" )
endif ( )
set ( SDL_INCLUDE_DIRS /usr/include/SDL )
set ( SDL_LIBRARIES SDL pthread )
endif( )
endif( WITH_SDL )
# berkeley db
if( WITH_BERKELEY_DB )
find_path( BERKELEY_DB_INCLUDE_DIRS db_cxx.h )
find_library( BERKELEY_DB_LIBS db_cxx )
if( BERKELEY_DB_INCLUDE_DIRS-NOTFOUND OR BERKELEY_DB_LIBS-NOTFOUND )
tde_message_fatal( "BerkeleyDB is requested, but was not found on your system" )
endif( )
endif( WITH_BERKELEY_DB )
endif( BUILD_NOATUN_PLUGINS )
|