# Required header files
AC_CHECK_HEADERS([ \
fcntl.h netdb.h netinet/in.h stdlib.h string.h \
- strings.h sys/socket.h sys/time.h unistd.h \
+ strings.h sys/socket.h sys/time.h sys/types.h unistd.h \
],,AC_MSG_ERROR([required C header missing!]))
# Optional header files
# Optional functions
AC_CHECK_FUNCS_ONCE([
arc4random arc4random_stir gai_strerror getnameinfo inet_aton \
- sigaction sigprocmask snprintf vsnprintf strdup strndup strlcpy strlcat \
- strtok_r unsetenv waitpid])
+ setgroups sigaction sigprocmask snprintf strdup strlcat strlcpy \
+ strndup strtok_r unsetenv vsnprintf waitpid])
WORKING_GETADDRINFO
# Generate debian/ link if the dpkg command exists
# (read: if we are running on a debian compatible system)
echo "creating Debian-specific links ..."
- test -f debian/rules || ln -s contrib/Debian debian
+ if test ! -f debian/rules -a -f contrib/Debian/rules; then
+ ln -s contrib/Debian debian
+ fi
fi
# -- Result --