mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 16:23:13 +02:00
Fix regression caused by 6e4cc3e235
This commit is contained in:
@@ -619,6 +619,7 @@ if [ "$REMOTEINC" = "1" ] ; then
|
||||
|
||||
|
||||
INSTALLCURL="0"
|
||||
SUGGESTCURLDIR=""
|
||||
|
||||
if [ -d "/usr/local/include/curl" ]; then
|
||||
SUGGESTCURLDIR="/usr/local"
|
||||
@@ -640,7 +641,7 @@ if [ "$REMOTEINC" = "1" ] ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$CURLDIR" = "$HOME/curl" -a "x$SUGGESTCURLDIR" != "x" ]; then
|
||||
if [ "x$CURLDIR" = "x$HOME/curl" -a "x$SUGGESTCURLDIR" != "x" ]; then
|
||||
# I guess some people will complain about this, but if system wide cURL is available
|
||||
# and many people have old defaults then this is much preferred:
|
||||
echo ""
|
||||
@@ -651,13 +652,16 @@ if [ "$REMOTEINC" = "1" ] ; then
|
||||
fi
|
||||
|
||||
if [ "x$CURLDIR" = "x" ]; then
|
||||
CURLDIR="$SUGGESTCURLDIR"
|
||||
# NOTE: CURLDIR may still be empty after this
|
||||
|
||||
# Local curl in ~/curl is used if it exists and system has no AsynchDNS
|
||||
if [ "$GOTASYNC" != "1" -a -d "$HOME/curl" ]; then
|
||||
CURLDIR="$HOME/curl"
|
||||
fi
|
||||
|
||||
# Need to output it here, as the HOME check from above may cause this to be no longer relevant.
|
||||
if [ "x$CURLDIR" = "x" -a "$GOTASYNC" != "1" ]; then
|
||||
if [ "x$CURLDIR" = "x" -a "x$SUGGESTCURLDIRBAD" != "x" ]; then
|
||||
echo "Curl library was found in $SUGGESTCURLDIRBAD, but it does not support Asynchronous DNS (not compiled with c-ares)"
|
||||
echo "so it's of no use to us as it would stall the IRCd on REHASH."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user