Mention the actual missing dependencies

This commit is contained in:
Willem Toorop 2016-10-26 15:52:22 +02:00
parent 4ea4f68467
commit 3fa34dcfca
1 changed files with 13 additions and 3 deletions

View File

@ -552,10 +552,16 @@ fi
# Checks for libraries. # Checks for libraries.
found_all_libs=1 found_all_libs=1
MISSING_DEPS=""
MISSING_SEP=""
if test $my_with_libidn = 1 if test $my_with_libidn = 1
then then
AC_MSG_NOTICE([Checking for dependency libidn]) AC_MSG_NOTICE([Checking for dependency libidn])
AC_CHECK_LIB([idn], [idna_to_ascii_8z], [], [found_all_libs=0]) AC_CHECK_LIB([idn], [idna_to_ascii_8z], [], [
MISSING_DEPS="${MISSING_DEPS}${MISSING_SEP}libidn"
MISSING_SEP=", "
found_all_libs=0
])
fi fi
AC_ARG_ENABLE(unbound-event-api, AC_HELP_STRING([--disable-unbound-event-api], [Disable usage of libunbounds event API])) AC_ARG_ENABLE(unbound-event-api, AC_HELP_STRING([--disable-unbound-event-api], [Disable usage of libunbounds event API]))
@ -584,12 +590,16 @@ then
]) ])
fi fi
AC_CHECK_FUNCS([ub_ctx_set_stub]) AC_CHECK_FUNCS([ub_ctx_set_stub])
], [found_all_libs=0]) ], [
MISSING_DEPS="${MISSING_DEPS}${MISSING_SEP}libunbound"
MISSING_SEP=", "
found_all_libs=0
])
fi fi
if test $found_all_libs = 0 if test $found_all_libs = 0
then then
AC_MSG_ERROR([One more dependencies is missing]) AC_MSG_ERROR([Missing dependencies: $MISSING_DEPS])
fi fi
AC_PATH_PROG([DOXYGEN], [doxygen]) AC_PATH_PROG([DOXYGEN], [doxygen])