"J.H.M. Dassen" <[EMAIL PROTECTED]> writes: Is there any reason why a simple AC_CHECK_LIB(openpty, util) AC_CHECK_FUNCS(openpty) is not good enough? /Niels (Trying to keep it simple) > Please test this patch: > --- ../lsh/configure.in Thu Feb 11 09:00:33 1999 > +++ configure.in Thu Feb 11 09:07:58 1999 > @@ -181,6 +181,15 @@ > AC_CHECK_FUNCS(getspnam) > AC_CHECK_FUNCS(vsnprintf inet_aton) > AC_CHECK_FUNCS(openpty) > +if test $ac_cv_func_openpty = no; then > + # openpty is not in the default libraries. See if it's in some other. > + # Eric J. Schwertfeger <[EMAIL PROTECTED]> reports openpty is in libutil on > + # FreeBSD. > + for lib in util; do > + AC_CHECK_LIB($lib, openpty, [AC_DEFINE(HAVE_OPENPTY) > + LIBS="$LIBS $lib"; break]) > + done > +fi > AC_CHECK_FUNCS(poll,,[LIBOBJS="jpoll.o $LIBOBJS"]) > AC_FUNC_GETPGRP > AC_CHECK_FUNCS(syslog)
