1 AC_INIT(libtirpc, 0.2.5)
2 AM_INIT_AUTOMAKE([silent-rules])
4 AC_CONFIG_SRCDIR([src/auth_des.c])
5 AC_CONFIG_MACRO_DIR([m4])
8 [AC_HELP_STRING([--disable-gssapi], [Disable GSSAPI support @<:@default=no@:>@])],
9 [],[enable_gssapi=yes])
10 AM_CONDITIONAL(GSS, test x$enable_gssapi = xyes)
12 if test x$enable_gssapi = xyes; then
13 GSSAPI_CFLAGS=`krb5-config --cflags gssapi`
14 GSSAPI_LIBS=`krb5-config --libs gssapi`
15 AC_SUBST([GSSAPI_CFLAGS])
16 AC_SUBST([GSSAPI_LIBS])
19 [AC_HELP_STRING([--disable-ipv6], [Disable IPv6 support @<:@default=no@:>@])],
21 AM_CONDITIONAL(INET6, test "x$disable_ipv6" != xno)
22 if test "x$enable_ipv6" != xno; then
23 AC_DEFINE(INET6, 1, [Define to 1 if IPv6 is available])
27 m4_pattern_allow(AM_CONFIG_HEADERS(config.h))
30 AC_PREFIX_DEFAULT(/usr)
31 AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h])
32 AC_CHECK_LIB([pthread], [pthread_create])
33 AC_CHECK_LIB([nsl], [yp_get_default_domain])
36 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])
37 AC_OUTPUT(libtirpc.pc)