|
Lines 85-90
Link Here
|
| 85 |
OPTION( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) |
85 |
OPTION( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) |
| 86 |
OPTION( WITH_INOTIFY "Enable inotify support for tdeio" ON ) |
86 |
OPTION( WITH_INOTIFY "Enable inotify support for tdeio" ON ) |
| 87 |
OPTION( WITH_GAMIN "Enable FAM/GAMIN support" ${WITH_ALL_OPTIONS} ) |
87 |
OPTION( WITH_GAMIN "Enable FAM/GAMIN support" ${WITH_ALL_OPTIONS} ) |
|
|
88 |
option( WITH_TDEHWLIB "Enable TDE hwlib globally" ${WITH_ALL_OPTIONS} ) |
| 88 |
option( WITH_TDEHWLIB_DAEMONS "Enable daemons for TDE hwlib" ${WITH_ALL_OPTIONS} ) |
89 |
option( WITH_TDEHWLIB_DAEMONS "Enable daemons for TDE hwlib" ${WITH_ALL_OPTIONS} ) |
| 89 |
option( WITH_HAL "Enable HAL support" OFF ) |
90 |
option( WITH_HAL "Enable HAL support" OFF ) |
| 90 |
option( WITH_DEVKITPOWER "Enable DeviceKit Power support" OFF ) |
91 |
option( WITH_DEVKITPOWER "Enable DeviceKit Power support" OFF ) |
|
Lines 181-186
Link Here
|
| 181 |
check_include_file( "ndir.h" HAVE_NDIR_H ) |
182 |
check_include_file( "ndir.h" HAVE_NDIR_H ) |
| 182 |
check_include_file( "netinet/in.h" HAVE_NETINET_IN_H ) |
183 |
check_include_file( "netinet/in.h" HAVE_NETINET_IN_H ) |
| 183 |
check_include_file( "net/if.h" HAVE_NET_IF_H ) |
184 |
check_include_file( "net/if.h" HAVE_NET_IF_H ) |
|
|
185 |
if( NOT HAVE_NET_IF_H ) |
| 186 |
find_path( NET_IF_PATH "net/if.h" ) |
| 187 |
if( NET_IF_PATH ) |
| 188 |
set( HAVE_NET_IF_H "1" ) |
| 189 |
endif( ) |
| 190 |
endif( ) |
| 184 |
check_include_file( "paths.h" HAVE_PATHS_H ) |
191 |
check_include_file( "paths.h" HAVE_PATHS_H ) |
| 185 |
check_include_file( "pty.h" HAVE_PTY_H ) |
192 |
check_include_file( "pty.h" HAVE_PTY_H ) |
| 186 |
check_include_file( "stdint.h" HAVE_STDINT_H ) |
193 |
check_include_file( "stdint.h" HAVE_STDINT_H ) |
|
Lines 197-202
Link Here
|
| 197 |
check_include_file( "sys/mntent.h" HAVE_SYS_MNTENT_H ) |
204 |
check_include_file( "sys/mntent.h" HAVE_SYS_MNTENT_H ) |
| 198 |
check_include_file( "sys/mnttab.h" HAVE_SYS_MNTTAB_H ) |
205 |
check_include_file( "sys/mnttab.h" HAVE_SYS_MNTTAB_H ) |
| 199 |
check_include_file( "sys/mount.h" HAVE_SYS_MOUNT_H ) |
206 |
check_include_file( "sys/mount.h" HAVE_SYS_MOUNT_H ) |
|
|
207 |
if( NOT HAVE_SYS_MOUNT_H ) |
| 208 |
find_path( SYS_MOUNT_PATH "sys/mount.h" ) |
| 209 |
if( SYS_MOUNT_PATH ) |
| 210 |
set( HAVE_SYS_MOUNT_H "1" ) |
| 211 |
endif( ) |
| 212 |
endif( ) |
| 200 |
check_include_file( "sys/ndir.h" HAVE_SYS_NDIR_H ) |
213 |
check_include_file( "sys/ndir.h" HAVE_SYS_NDIR_H ) |
| 201 |
check_include_file( "sys/param.h" HAVE_SYS_PARAM_H ) |
214 |
check_include_file( "sys/param.h" HAVE_SYS_PARAM_H ) |
| 202 |
check_include_file( "sys/prctl.h" HAVE_SYS_PRCTL_H ) |
215 |
check_include_file( "sys/prctl.h" HAVE_SYS_PRCTL_H ) |
|
Lines 206-211
Link Here
|
| 206 |
check_include_file( "sys/stropts.h" HAVE_SYS_STROPTS_H ) |
219 |
check_include_file( "sys/stropts.h" HAVE_SYS_STROPTS_H ) |
| 207 |
check_include_file( "sys/types.h" HAVE_SYS_TYPES_H ) |
220 |
check_include_file( "sys/types.h" HAVE_SYS_TYPES_H ) |
| 208 |
check_include_file( "sys/ucred.h" HAVE_SYS_UCRED_H ) |
221 |
check_include_file( "sys/ucred.h" HAVE_SYS_UCRED_H ) |
|
|
222 |
if( NOT HAVE_SYS_UCRED_H ) |
| 223 |
find_path( SYS_UCRED_PATH "sys/ucred.h" ) |
| 224 |
if( SYS_UCRED_PATH ) |
| 225 |
set( HAVE_SYS_UCRED_H "1" ) |
| 226 |
endif( ) |
| 227 |
endif( ) |
| 209 |
check_include_file( "sys/xattr.h" HAVE_SYS_XATTR_H ) |
228 |
check_include_file( "sys/xattr.h" HAVE_SYS_XATTR_H ) |
| 210 |
check_include_file( "termios.h" HAVE_TERMIOS_H ) |
229 |
check_include_file( "termios.h" HAVE_TERMIOS_H ) |
| 211 |
check_include_file( "termio.h" HAVE_TERMIO_H ) |
230 |
check_include_file( "termio.h" HAVE_TERMIO_H ) |
|
Lines 263-269
Link Here
|
| 263 |
check_symbol_exists( mkstemps "stdlib.h" HAVE_MKSTEMPS_PROTO ) |
282 |
check_symbol_exists( mkstemps "stdlib.h" HAVE_MKSTEMPS_PROTO ) |
| 264 |
|
283 |
|
| 265 |
check_function_exists( initgroups HAVE_INITGROUPS ) |
284 |
check_function_exists( initgroups HAVE_INITGROUPS ) |
| 266 |
check_symbol_exists( initgroups "grp.h" HAVE_INITGROUPS_PROTO ) |
285 |
check_symbol_exists( initgroups "grp.h;unistd.h" HAVE_INITGROUPS_PROTO ) |
| 267 |
|
286 |
|
| 268 |
check_function_exists( strlcat HAVE_STRLCAT ) |
287 |
check_function_exists( strlcat HAVE_STRLCAT ) |
| 269 |
check_symbol_exists( strlcat "string.h" HAVE_STRLCAT_PROTO ) |
288 |
check_symbol_exists( strlcat "string.h" HAVE_STRLCAT_PROTO ) |
|
Lines 305-310
Link Here
|
| 305 |
else (HAVE_ALLOCA_H ) |
324 |
else (HAVE_ALLOCA_H ) |
| 306 |
check_symbol_exists( alloca "stdlib.h" HAVE_ALLOCA ) |
325 |
check_symbol_exists( alloca "stdlib.h" HAVE_ALLOCA ) |
| 307 |
endif (HAVE_ALLOCA_H ) |
326 |
endif (HAVE_ALLOCA_H ) |
|
|
327 |
if( ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD" ) |
| 328 |
set( HAVE_ALLOCA 1 ) |
| 329 |
endif( ) |
| 308 |
|
330 |
|
| 309 |
check_function_exists( getmntinfo HAVE_GETMNTINFO ) |
331 |
check_function_exists( getmntinfo HAVE_GETMNTINFO ) |
| 310 |
check_function_exists( getnameinfo HAVE_GETNAMEINFO ) |
332 |
check_function_exists( getnameinfo HAVE_GETNAMEINFO ) |
|
Lines 476-484
Link Here
|
| 476 |
##### check for libdl ########################### |
498 |
##### check for libdl ########################### |
| 477 |
|
499 |
|
| 478 |
find_library( HAVE_LIBDL dl ) |
500 |
find_library( HAVE_LIBDL dl ) |
| 479 |
if( NOT HAVE_LIBDL-NOTFOUND ) |
501 |
if( NOT HAVE_LIBDL STREQUAL "HAVE_LIBDL-NOTFOUND" ) |
| 480 |
set( DL_LIBRARIES dl ) |
502 |
set( DL_LIBRARIES dl ) |
| 481 |
endif( NOT HAVE_LIBDL-NOTFOUND ) |
503 |
endif( ) |
|
|
504 |
if( NOT HAVE_LIBDL ) |
| 505 |
check_function_exists( dlopen HAVE_DLOPEN ) |
| 506 |
if( HAVE_DLOPEN ) |
| 507 |
set( HAVE_LIBDL 1 ) |
| 508 |
endif( HAVE_DLOPEN ) |
| 509 |
endif( NOT HAVE_LIBDL ) |
| 482 |
|
510 |
|
| 483 |
|
511 |
|
| 484 |
##### check for utempter ######################## |
512 |
##### check for utempter ######################## |