CURL_DARWIN_CFLAGS
-case $host_os in
- darwin*)
+case $host in
+ *-apple-*)
CURL_SUPPORTS_BUILTIN_AVAILABLE
;;
esac
LIBS="-lgss $LIBS"
elif test -z "$GSSAPI_LIB_DIR"; then
case $host in
- *-*-darwin*)
+ *-apple-*)
LIBS="-lgssapi_krb5 -lresolv $LIBS"
;;
*)
dnl **********************************************************************
tst_links_appleidn='no'
-case $host_os in
- darwin*)
+case $host in
+ *-apple-*)
AC_MSG_CHECKING([whether to build with Apple IDN])
OPT_IDN="default"
AC_ARG_WITH(apple-idn,
#
if test "$curl_cv_func_getaddrinfo" = "yes"; then
AC_MSG_CHECKING([if getaddrinfo is threadsafe])
+ case $host in
+ *-apple-*)
+ dnl Darwin 6.0 and macOS 10.2.X and newer
+ tst_tsafe_getaddrinfo="yes"
+ esac
case $host_os in
aix[[1234]].* | aix5.[[01]].*)
dnl AIX 5.1 and older
dnl Darwin 5.0 and macOS 10.1.X and older
tst_tsafe_getaddrinfo="no"
;;
- darwin*)
- dnl Darwin 6.0 and macOS 10.2.X and newer
- tst_tsafe_getaddrinfo="yes"
- ;;
freebsd[[1234]].* | freebsd5.[[1234]]*)
dnl FreeBSD 5.4 and older
tst_tsafe_getaddrinfo="no"
tst_works_poll="unknown"
tst_allow_poll="unknown"
#
- case $host_os in
- darwin*|interix*)
+ case $host in
+ *-apple-*|*-*-interix*)
dnl poll() does not work on these platforms
dnl Interix: "does provide poll(), but the implementing developer must
dnl have been in a bad mood, because poll() only works on the /proc
dnl changes contained within this macro.
AC_DEFUN([CURL_RUN_IFELSE], [
- case $host_os in
- darwin*)
+ case $host in
+ *-apple-*)
AC_RUN_IFELSE([AC_LANG_SOURCE([$1])], $2, $3, $4)
;;
*)
AC_DEFUN([CURL_DARWIN_SYSTEMCONFIGURATION], [
AC_MSG_CHECKING([whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks])
-case $host_os in
- darwin*)
+case $host in
+ *-apple-*)
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
#include <sys/types.h>