Commit 5019e034 authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

check for grantpt in libc and then in libpt. Check for openpty in libc

* gnome-pty-helper/configure.in: check for grantpt in libc and then in libpt.
	Check for openpty in libc before checking libutil.  Check for sendmsg
	in libc before checking libsocket (with libnsl) (#117636).
parent 4b278c39
2003-07-16 nalin
* gnome-pty-helper/configure.in: check for grantpt in libc and then
in libpt. Check for openpty in libc before checking libutil. Check for
sendmsg in libc before checking libsocket (with libnsl) (#117636).
2003-07-11 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in: Added Walloon (wa) to ALL_LINGUAS
......
......@@ -12,20 +12,13 @@ AM_MAINTAINER_MODE
PKG_CHECK_MODULES(GLIB,glib-2.0)
AC_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)
have_openpty=0
AC_CHECK_FUNC(openpty,have_openpty=1,[AC_CHECK_LIB(util,openpty,[LIBS="$LIBS -lutil";have_openpty=1])])
if test x$have_openpty = x1 ; then
AC_DEFINE(HAVE_OPENPTY,1,[Define if you have openpty() in libc or libutil])
fi
AC_CHECK_LIB(c,grantpt,true,[AC_CHECK_LIB(pt,grantpt)])
AC_CHECK_LIB(c,openpty,true,[AC_CHECK_LIB(util,openpty)])
AC_CHECK_LIB(c,sendmsg,true,[AC_CHECK_LIB(socket,sendmsg,LIBS="$LIBS -lsocket -lnsl",,-lnsl)])
AC_CHECK_FUNCS(endutent fcntl forkpty getttyent getutent getutmpx grantpt flock login_tty openpty revoke sendmsg seteuid setreuid setutent strrchr updwtmp updwtmpx utmpname utmpxname)
GPH_CHECK_UTMP
AC_CHECK_HEADERS(stropts.h)
AM_CONFIG_HEADER(config.h)
if test x$ac_cv_func_grantpt = xyes; then
:
else
AC_CHECK_LIB(pt, grantpt)
fi
AC_OUTPUT(Makefile)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment