From: Francis Dupont Date: Thu, 22 Sep 2016 14:13:28 +0000 (+0200) Subject: Added libbind checks X-Git-Tag: v4_4_0b1_f1~132^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41612c468d4a42f9827168f6de023cd429116c0b;p=thirdparty%2Fdhcp.git Added libbind checks --- diff --git a/configure b/configure index c0d8cd46d..e07023c6e 100755 --- a/configure +++ b/configure @@ -6857,6 +6857,15 @@ no) ;; *) + if test ! -d "$use_libbind"; then + as_fn_error $? "Cannot find bind directory at $use_libbind" "$LINENO" 5 + fi + if test ! -d "$use_libbind/include"; then + as_fn_error $? "Cannot find bind includes at $use_libbind/include" "$LINENO" 5 + fi + if test ! -d "$use_libbind/lib"; then + as_fn_error $? "Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5 + fi BINDDIR="$use_libbind" ;; esac diff --git a/configure.ac b/configure.ac index abf2475b9..36aeace12 100644 --- a/configure.ac +++ b/configure.ac @@ -707,6 +707,15 @@ no) AC_CONFIG_FILES([$srcdir/bind/Makefile]) ;; *) + if test ! -d "$use_libbind"; then + AC_MSG_ERROR([Cannot find bind directory at $use_libbind]) + fi + if test ! -d "$use_libbind/include"; then + AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include]) + fi + if test ! -d "$use_libbind/lib"; then + AC_MSG_ERROR([Cannot find bind libraries at $use_libbind/lib]) + fi BINDDIR="$use_libbind" ;; esac