source: trunk/third/vte/gnome-pty-helper/configure.in @ 20597

Revision 20597, 1.4 KB checked in by rbasch, 20 years ago (diff)
Fix sendmsg() configuration on Solaris.
Line 
1AC_INIT(gnome-pty.h)
2
3AM_INIT_AUTOMAKE(gnome-pty-helper,1.95.0)
4
5AC_ISC_POSIX
6AC_PROG_CC
7AC_STDC_HEADERS
8AM_PROG_CC_STDC
9
10AM_MAINTAINER_MODE
11
12PKG_CHECK_MODULES(GLIB,glib-2.0)
13AC_CHECK_HEADERS(sys/syslimits.h sys/time.h sys/types.h sys/un.h alloca.h lastlog.h libutil.h paths.h pty.h stropts.h termios.h ttyent.h util.h utmp.h utmpx.h pty.h util.h libutil.h ttyent.h)
14have_openpty=0
15AC_CHECK_LIB(c,grantpt,true,[AC_CHECK_LIB(pt,grantpt)])
16AC_CHECK_LIB(c,openpty,true,[AC_CHECK_LIB(util,openpty)])
17AC_CHECK_LIB(c,sendmsg,true,[AC_CHECK_LIB(socket,sendmsg,LIBS="$LIBS -lsocket -lnsl",,-lnsl)])
18AC_CHECK_FUNCS(endutent fcntl forkpty getttyent getutent getutmpx grantpt flock login_tty openpty revoke sendmsg seteuid setreuid setutent strrchr updwtmp updwtmpx utmpname utmpxname)
19GPH_CHECK_UTMP
20
21AC_CHECK_HEADERS(stropts.h)
22
23# Use all available features under glibc, and disable accidental use of
24# deprecated functionality.
25AC_EGREP_CPP(glibc,
26                [
27                 #include <stdio.h>
28                 #ifdef __GLIBC__
29                 glibc
30                 #endif
31                ],
32                AC_DEFINE(_GNU_SOURCE,1,[Use all glibc features.]))
33AC_DEFINE(_XOPEN_SOURCE_EXTENDED,1,[Needed to get declarations for msg_control and msg_controllen on Solaris])
34AC_DEFINE(_XOPEN_SOURCE,1,[Needed to get declarations for msg_control and msg_controllen on Solaris])
35AC_DEFINE(__EXTENSIONS__,1,[Needed to get declarations for msg_control and msg_controllen on Solaris])
36
37AM_CONFIG_HEADER(config.h)
38
39AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the repository browser.