[LIBTIRPC]
[reactos.git] / reactos / dll / win32 / libtirpc / configure.ac
1 AC_INIT(libtirpc, 0.2.1)
2 AM_INIT_AUTOMAKE(libtirpc, 0.2.1)
3 AM_MAINTAINER_MODE
4 AC_CONFIG_SRCDIR([src/auth_des.c])
5
6 AC_ARG_ENABLE(gss,[ --enable-gss Turn on gss api], [case "${enableval}" in
7 yes) gss=true ; AC_CHECK_LIB([gssapi],[gss_init_sec_context]) ;;
8 no) gss=false ;;
9 *) AC_MSG_ERROR(bad value ${enableval} for --enable-gss) ;;
10 esac],[gss=false])
11 AM_CONDITIONAL(GSS, test x$gss = xtrue)
12 if test x$gss = xtrue; then
13 AC_DEFINE(HAVE_LIBGSSAPI, 1, [])
14 PKG_CHECK_MODULES(GSSGLUE, libgssglue, [],
15 AC_MSG_ERROR([Unable to locate information required to use libgssglue.]))
16 fi
17
18 AC_PROG_CC
19 AM_CONFIG_HEADER(config.h)
20 AC_PROG_LIBTOOL
21 ##AC_PROG_RANLIB
22 AC_HEADER_DIRENT
23 AC_PREFIX_DEFAULT(/usr)
24 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])
25 AC_CHECK_LIB([pthread], [pthread_create])
26
27
28 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])
29 AC_OUTPUT(libtirpc.pc)