2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
1999-05-21 08:29:51 +00:00
|
|
|
dnl $Id$
|
2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
1999-05-21 08:29:51 +00:00
|
|
|
|
2000-05-02 01:21:28 +00:00
|
|
|
PHP_ARG_ENABLE(yp,whether to include YP support,
|
2001-11-30 19:00:13 +00:00
|
|
|
[ --enable-yp Include YP support.])
|
1999-05-21 08:29:51 +00:00
|
|
|
|
2000-05-02 01:21:28 +00:00
|
|
|
if test "$PHP_YP" != "no"; then
|
2002-10-23 16:04:03 +00:00
|
|
|
|
|
|
|
AC_CHECK_LIB(nsl, yp_match, [
|
|
|
|
YP_LIBS=nsl
|
|
|
|
YP_CHECK_IN_LIB=nsl
|
|
|
|
],
|
|
|
|
AC_CHECK_LIB(c, yp_match, [
|
|
|
|
YP_LIBS=
|
|
|
|
YP_CHECK_IN_LIB=c
|
|
|
|
],[
|
|
|
|
AC_MSG_ERROR(Unable to find required yp/nis library)
|
|
|
|
])
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2000-05-02 01:21:28 +00:00
|
|
|
AC_DEFINE(HAVE_YP,1,[ ])
|
2002-03-12 16:44:00 +00:00
|
|
|
PHP_NEW_EXTENSION(yp, yp.c, $ext_shared)
|
2002-10-23 16:04:03 +00:00
|
|
|
|
|
|
|
PHP_SUBST(YP_SHARED_LIBADD)
|
|
|
|
|
|
|
|
if test -n "$YP_LIBS"; then
|
|
|
|
PHP_ADD_LIBRARY_WITH_PATH($YP_LIBS, $YP_LIBDIR, YP_SHARED_LIBADD)
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-05-12 11:09:05 +00:00
|
|
|
case $host_alias in
|
2000-05-02 01:21:28 +00:00
|
|
|
*solaris*)
|
|
|
|
AC_DEFINE(SOLARIS_YP,1,[ ]) ;;
|
|
|
|
esac
|
|
|
|
fi
|