From 5fbd3251e9ab03be952a876f261ca466398c1696 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 27 May 2014 11:34:18 +0200 Subject: Add support for installing from directories which contain symlinks --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 11f24b4..0529da5 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,25 @@ AC_FUNC_MALLOC AC_FUNC_REALLOC AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) +# Check for lstat + +AC_MSG_CHECKING([whether lstat is available]) +AC_TRY_LINK([ +#include +#include +#if defined(HAVE_UNISTD_H) +#include +#endif +],[ +struct stat st; +lstat("/tmp", &st); +], [have_lstat="yes"], [have_lstat="no"]) +AC_MSG_RESULT([${have_lstat}]) + +if test "x${have_lstat}" = "xyes" ; then + AC_DEFINE([HAVE_LSTAT], 1, [Define if lstat syscall is supported]) +fi + AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Werror -g") AC_SUBST(GLOBAL_CFLAGS) -- cgit v1.1-32-gdbae