|
|
@ -23,6 +23,7 @@ set( PACKAGE tdelibs )
|
|
|
|
|
|
|
|
|
|
|
|
include( FindPkgConfig )
|
|
|
|
include( FindPkgConfig )
|
|
|
|
include( CheckIncludeFile )
|
|
|
|
include( CheckIncludeFile )
|
|
|
|
|
|
|
|
include( CheckIncludeFiles )
|
|
|
|
include( CheckSymbolExists )
|
|
|
|
include( CheckSymbolExists )
|
|
|
|
include( CheckFunctionExists )
|
|
|
|
include( CheckFunctionExists )
|
|
|
|
include( CheckCSourceCompiles )
|
|
|
|
include( CheckCSourceCompiles )
|
|
|
@ -225,6 +226,7 @@ check_include_file( "dirent.h" HAVE_DIRENT_H )
|
|
|
|
check_include_file( "dld.h" HAVE_DLD_H )
|
|
|
|
check_include_file( "dld.h" HAVE_DLD_H )
|
|
|
|
check_include_file( "dlfcn.h" HAVE_DLFCN_H )
|
|
|
|
check_include_file( "dlfcn.h" HAVE_DLFCN_H )
|
|
|
|
check_include_file( "dl.h" HAVE_DL_H )
|
|
|
|
check_include_file( "dl.h" HAVE_DL_H )
|
|
|
|
|
|
|
|
check_include_files( "sys/types.h;sys/dl.h" HAVE_SYS_DL_H )
|
|
|
|
check_include_file( "float.h" HAVE_FLOAT_H )
|
|
|
|
check_include_file( "float.h" HAVE_FLOAT_H )
|
|
|
|
check_include_file( "fstab.h" HAVE_FSTAB_H )
|
|
|
|
check_include_file( "fstab.h" HAVE_FSTAB_H )
|
|
|
|
check_include_file( "ieeefp.h" HAVE_IEEEFP_H )
|
|
|
|
check_include_file( "ieeefp.h" HAVE_IEEEFP_H )
|
|
|
@ -237,6 +239,7 @@ check_include_file( "machine/soundcard.h" HAVE_MACHINE_SOUNDCARD_H )
|
|
|
|
check_include_file( "malloc.h" HAVE_MALLOC_H )
|
|
|
|
check_include_file( "malloc.h" HAVE_MALLOC_H )
|
|
|
|
check_include_file( "memory.h" HAVE_MEMORY_H )
|
|
|
|
check_include_file( "memory.h" HAVE_MEMORY_H )
|
|
|
|
check_include_file( "mntent.h" HAVE_MNTENT_H )
|
|
|
|
check_include_file( "mntent.h" HAVE_MNTENT_H )
|
|
|
|
|
|
|
|
check_include_file( "sys/mntent.h" HAVE_SYS_MNTENT_H )
|
|
|
|
check_include_file( "ndir.h" HAVE_NDIR_H )
|
|
|
|
check_include_file( "ndir.h" HAVE_NDIR_H )
|
|
|
|
check_include_file( "netinet/in.h" HAVE_NETINET_IN_H )
|
|
|
|
check_include_file( "netinet/in.h" HAVE_NETINET_IN_H )
|
|
|
|
check_include_file( "net/if.h" HAVE_NET_IF_H )
|
|
|
|
check_include_file( "net/if.h" HAVE_NET_IF_H )
|
|
|
@ -260,7 +263,7 @@ check_include_file( "sys/dir.h" HAVE_SYS_DIR_H )
|
|
|
|
check_include_file( "sys/filio.h" HAVE_SYS_FILIO_H )
|
|
|
|
check_include_file( "sys/filio.h" HAVE_SYS_FILIO_H )
|
|
|
|
check_include_file( "sys/mman.h" HAVE_SYS_MMAN_H )
|
|
|
|
check_include_file( "sys/mman.h" HAVE_SYS_MMAN_H )
|
|
|
|
check_include_file( "sys/mntent.h" HAVE_SYS_MNTENT_H )
|
|
|
|
check_include_file( "sys/mntent.h" HAVE_SYS_MNTENT_H )
|
|
|
|
check_include_file( "sys/mnttab.h" HAVE_SYS_MNTTAB_H )
|
|
|
|
check_include_files( "stdio.h;sys/mnttab.h" HAVE_SYS_MNTTAB_H )
|
|
|
|
check_include_file( "sys/mount.h" HAVE_SYS_MOUNT_H )
|
|
|
|
check_include_file( "sys/mount.h" HAVE_SYS_MOUNT_H )
|
|
|
|
if( NOT HAVE_SYS_MOUNT_H )
|
|
|
|
if( NOT HAVE_SYS_MOUNT_H )
|
|
|
|
find_path( SYS_MOUNT_PATH "sys/mount.h" )
|
|
|
|
find_path( SYS_MOUNT_PATH "sys/mount.h" )
|
|
|
@ -280,9 +283,16 @@ check_include_file( "sys/ucred.h" HAVE_SYS_UCRED_H )
|
|
|
|
if( NOT HAVE_SYS_UCRED_H )
|
|
|
|
if( NOT HAVE_SYS_UCRED_H )
|
|
|
|
find_path( SYS_UCRED_PATH "sys/ucred.h" )
|
|
|
|
find_path( SYS_UCRED_PATH "sys/ucred.h" )
|
|
|
|
if( SYS_UCRED_PATH )
|
|
|
|
if( SYS_UCRED_PATH )
|
|
|
|
set( HAVE_SYS_UCRED_H "1" )
|
|
|
|
set( HAVE_SYS_UCRED_H 1 )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
check_include_file( "ucred.h" HAVE_UCRED_H )
|
|
|
|
|
|
|
|
if( NOT HAVE_UCRED_H )
|
|
|
|
|
|
|
|
find_path( UCRED_PATH "ucred.h" )
|
|
|
|
|
|
|
|
if( UCRED_PATH )
|
|
|
|
|
|
|
|
set( HAVE_UCRED_H 1 )
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
endif()
|
|
|
|
check_include_file( "sys/xattr.h" HAVE_SYS_XATTR_H )
|
|
|
|
check_include_file( "sys/xattr.h" HAVE_SYS_XATTR_H )
|
|
|
|
check_include_file( "termios.h" HAVE_TERMIOS_H )
|
|
|
|
check_include_file( "termios.h" HAVE_TERMIOS_H )
|
|
|
|
check_include_file( "termio.h" HAVE_TERMIO_H )
|
|
|
|
check_include_file( "termio.h" HAVE_TERMIO_H )
|
|
|
@ -427,6 +437,7 @@ endif( HAVE_GETMNTINFO )
|
|
|
|
check_function_exists( getnameinfo HAVE_GETNAMEINFO )
|
|
|
|
check_function_exists( getnameinfo HAVE_GETNAMEINFO )
|
|
|
|
check_function_exists( getpagesize HAVE_GETPAGESIZE )
|
|
|
|
check_function_exists( getpagesize HAVE_GETPAGESIZE )
|
|
|
|
check_function_exists( getpeereid HAVE_GETPEEREID )
|
|
|
|
check_function_exists( getpeereid HAVE_GETPEEREID )
|
|
|
|
|
|
|
|
check_function_exists( getpeerucred HAVE_GETPEERUCRED )
|
|
|
|
check_function_exists( getpeername HAVE_GETPEERNAME )
|
|
|
|
check_function_exists( getpeername HAVE_GETPEERNAME )
|
|
|
|
check_function_exists( getprotobyname_r HAVE_GETPROTOBYNAME_R )
|
|
|
|
check_function_exists( getprotobyname_r HAVE_GETPROTOBYNAME_R )
|
|
|
|
check_function_exists( getpt HAVE_GETPT )
|
|
|
|
check_function_exists( getpt HAVE_GETPT )
|
|
|
@ -466,6 +477,14 @@ check_function_exists( __argz_count HAVE___ARGZ_COUNT )
|
|
|
|
check_function_exists( __argz_next HAVE___ARGZ_NEXT )
|
|
|
|
check_function_exists( __argz_next HAVE___ARGZ_NEXT )
|
|
|
|
check_function_exists( __argz_stringify HAVE___ARGZ_STRINGIFY )
|
|
|
|
check_function_exists( __argz_stringify HAVE___ARGZ_STRINGIFY )
|
|
|
|
check_function_exists( sendfile HAVE_SENDFILE )
|
|
|
|
check_function_exists( sendfile HAVE_SENDFILE )
|
|
|
|
|
|
|
|
set( SENDFILE_LIBRARIES "" )
|
|
|
|
|
|
|
|
if( NOT HAVE_SENDFILE)
|
|
|
|
|
|
|
|
check_library_exists( sendfile sendfile "" HAVE_SENDFILE_LIB )
|
|
|
|
|
|
|
|
if( HAVE_SENDFILE_LIB )
|
|
|
|
|
|
|
|
set( HAVE_SENDFILE 1 )
|
|
|
|
|
|
|
|
set( SENDFILE_LIBRARIES sendfile )
|
|
|
|
|
|
|
|
endif( HAVE_SENDFILE_LIB )
|
|
|
|
|
|
|
|
endif()
|
|
|
|
check_function_exists( rindex HAVE_RINDEX )
|
|
|
|
check_function_exists( rindex HAVE_RINDEX )
|
|
|
|
check_function_exists( putenv HAVE_PUTENV )
|
|
|
|
check_function_exists( putenv HAVE_PUTENV )
|
|
|
|
check_function_exists( poll HAVE_POLL )
|
|
|
|
check_function_exists( poll HAVE_POLL )
|
|
|
|