autotools: fix MS-DOS builds
- disable threaded resolver by default. - fix forming WATT path. Requires `WATT_PATH` env. Closes #14814
This commit is contained in:
parent
4a8be91314
commit
9783c4540f
14
configure.ac
14
configure.ac
@ -1138,8 +1138,8 @@ if test "$HAVE_GETHOSTBYNAME" != "1"; then
|
|||||||
AC_CHECK_LIB(watt, gethostbyname,
|
AC_CHECK_LIB(watt, gethostbyname,
|
||||||
[
|
[
|
||||||
HAVE_GETHOSTBYNAME="1"
|
HAVE_GETHOSTBYNAME="1"
|
||||||
CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
|
CPPFLAGS="-I${WATT_ROOT}/inc"
|
||||||
LDFLAGS="-L/dev/env/WATT_ROOT/lib"
|
LDFLAGS="-L${WATT_ROOT}/lib"
|
||||||
LIBS="-lwatt $LIBS"
|
LIBS="-lwatt $LIBS"
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@ -4059,7 +4059,17 @@ AS_HELP_STRING([--disable-pthreads],[Disable POSIX threads]),
|
|||||||
want_pthreads=yes
|
want_pthreads=yes
|
||||||
;;
|
;;
|
||||||
esac ], [
|
esac ], [
|
||||||
|
default_pthreads=1
|
||||||
if test "$curl_cv_native_windows" = "yes"; then
|
if test "$curl_cv_native_windows" = "yes"; then
|
||||||
|
default_pthreads=0
|
||||||
|
else
|
||||||
|
case $host_os in
|
||||||
|
msdos*)
|
||||||
|
default_pthreads=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
if test "$default_pthreads" = '0'; then
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
want_pthreads=no
|
want_pthreads=no
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user