From 672cd5d3f92e3f23f70646ed78091802c2f4a87a Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 21 Sep 2010 23:39:41 +0000 Subject: [PATCH] Flag errors for missing libs, include from system dirs --- guacamole/proxy/configure.in | 7 ++++--- guacamole/proxy/src/daemon.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/guacamole/proxy/configure.in b/guacamole/proxy/configure.in index 351bb419c..2d40feb22 100644 --- a/guacamole/proxy/configure.in +++ b/guacamole/proxy/configure.in @@ -8,10 +8,11 @@ AM_INIT_AUTOMAKE(guacd, 0.0.1) AC_PROG_CC # Checks for libraries. -AC_CHECK_LIB([dl], [dlopen]) -AC_CHECK_LIB([guac], [guac_get_client]) +AC_CHECK_LIB([dl], [dlopen],, AC_MSG_ERROR("libdl is required for loading client plugins")) +AC_CHECK_LIB([guac], [guac_get_client],, AC_MSG_ERROR("libguac must be installed first")) AC_CHECK_LIB([png], [png_write_png]) -AC_CHECK_LIB([pthread], [pthread_create]) +AC_CHECK_LIB([pthread], [pthread_create],, AC_MSG_ERROR("POSIX threads (libpthread) must be installed")) + # Checks for header files. AC_CHECK_HEADERS([netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h]) diff --git a/guacamole/proxy/src/daemon.c b/guacamole/proxy/src/daemon.c index 15c6a35f3..6f504d1dd 100644 --- a/guacamole/proxy/src/daemon.c +++ b/guacamole/proxy/src/daemon.c @@ -30,7 +30,7 @@ #include #include -#include "client.h" +#include typedef struct client_thread_data {