|
|
@ -443,7 +443,8 @@ if( HAVE_RES_INIT )
|
|
|
|
endif( HAVE_RES_INIT)
|
|
|
|
endif( HAVE_RES_INIT)
|
|
|
|
|
|
|
|
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES util )
|
|
|
|
set( CMAKE_REQUIRED_LIBRARIES util )
|
|
|
|
check_c_source_runs("
|
|
|
|
if( HAVE_PTY_H )
|
|
|
|
|
|
|
|
check_c_source_runs("
|
|
|
|
#include <pty.h>
|
|
|
|
#include <pty.h>
|
|
|
|
int main(int argc, char* argv) {
|
|
|
|
int main(int argc, char* argv) {
|
|
|
|
int master_fd, slave_fd;
|
|
|
|
int master_fd, slave_fd;
|
|
|
@ -452,7 +453,19 @@ check_c_source_runs("
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
HAVE_OPENPTY
|
|
|
|
HAVE_OPENPTY
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
elseif( HAVE_UTIL_H )
|
|
|
|
|
|
|
|
check_c_source_runs("
|
|
|
|
|
|
|
|
#include <util.h>
|
|
|
|
|
|
|
|
int main(int argc, char* argv) {
|
|
|
|
|
|
|
|
int master_fd, slave_fd;
|
|
|
|
|
|
|
|
int result;
|
|
|
|
|
|
|
|
result = openpty(&master_fd, &slave_fd, 0, 0, 0);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}"
|
|
|
|
|
|
|
|
HAVE_OPENPTY
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
if( HAVE_OPENPTY )
|
|
|
|
if( HAVE_OPENPTY )
|
|
|
|
set( LIB_UTIL util )
|
|
|
|
set( LIB_UTIL util )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|