summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-11-13 11:44:34 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-11-13 11:44:34 +0100
commit321146d5d68915e35355b4bd87e660300a948c4c (patch)
tree673293f83feb6e130efa5c35008646e2c2ea2b29
parent72a63aa46615206034cb91bcb822351249efc714 (diff)
downloadcurl-bagder/configure-hyper.tar.gz
configure: better diagnostics if hyper is built wrongbagder/configure-hyper
If hyper is indeed present in the specified directory but couldn't be used to find the correct symbol, then offer a different error message to better help the user understand the issue. Sugggested-by: Jacob Hoffman-Andrews Fixes #8001
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2834b3d32..63e320236 100644
--- a/configure.ac
+++ b/configure.ac
@@ -703,7 +703,8 @@ if test X"$want_hyper" != Xno; then
LIBS="$LIB_HYPER $LIBS"
if test "x$cross_compiling" != "xyes"; then
- DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//'`
+ dnl remove -L, separate with colon if more than one
+ DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
fi
AC_CHECK_LIB(hyper, hyper_io_new,
@@ -721,6 +722,11 @@ if test X"$want_hyper" != Xno; then
AC_MSG_NOTICE([Added $DIR_HYPER to CURL_LIBRARY_PATH]),
)
],
+ for d in `echo $DIR_HYPER | sed -e 's/:/ /'`; do
+ if test -f "$d/libhyper.a"; then
+ AC_MSG_ERROR([hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md.])
+ fi
+ done
AC_MSG_ERROR([--with-hyper but hyper was not found. See docs/HYPER.md.])
)
fi