scsh-yp/configure.in

30 lines
937 B
Plaintext
Raw Normal View History

2003-10-30 10:43:43 -05:00
AC_INIT
AC_CONFIG_HEADER(c/config.h)
AC_PROG_CC
AC_ARG_WITH(scsh-includes,
AC_HELP_STRING([--with-scsh-includes=DIR],
[scsh include files are in DIR [/usr/local/include]]),
scsh_includes=$withval,
scsh_includes=/usr/local/include)
AC_SUBST(scsh_includes)
AC_ARG_WITH(scsh-libraries,
AC_HELP_STRING([--with-scsh-libraries=DIR],
[scsh libraries are in DIR [/usr/local/lib/scsh]]),
scsh_libraries=$withval,
scsh_libraries=/usr/local/lib/scsh)
AC_SUBST(scsh_libraries)
AC_CHECK_LIB(crypt, crypt)
dnl AC_CHECK_LIB(dl, dlopen)
AC_CHECK_LIB(m, exp)
AC_CHECK_FUNCS(yp_get_default_domain yp_bind yp_unbind)
AC_CHECK_FUNCS(yperr_string ypprot_err)
AC_CHECK_FUNCS(yp_match yp_order)
AC_CHECK_FUNCS(yp_master yp_first yp_next)
AC_SUBST(LIBS)
AC_SUBST(CC)
AC_OUTPUT(Makefile)