guacamole-spice-protocol/guacd/configure.in
2011-02-27 20:27:12 -08:00

31 lines
886 B
Plaintext

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT(src/daemon.c)
AM_INIT_AUTOMAKE(guacd, 0.3.0)
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB([guac], [guac_get_client],, AC_MSG_ERROR("libguac must be installed first"))
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([wsock32], [main])
# Checks for header files.
AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h guacamole/client.h])
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset socket strerror fork])
# Options
AC_ARG_WITH(init_dir,
[AS_HELP_STRING([--with-init-dir=<path>],
[install an init script to the given directory])
],init_dir=$withval)
AC_SUBST(init_dir)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT