commit c92a699bf1a391005ffbfdbcbe3e3b43bb0876f2
parent 0ae2861a8775dbb53b279e40122b8830dd458ff4
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Sun, 4 May 2025 18:39:27 +0200
configure: fixed Haiku support
Can be backported
Diffstat:
1 file changed, 23 insertions(+), 17 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -1581,22 +1581,28 @@ AS_CASE(["$host_os"],
AC_SUBST([lt_cv_objdir])
os_is_windows="yes"
os_is_native_w32="yes"
- ],
- [*openedition*],
- [AC_DEFINE([OS390],[1],[This is a OS/390 system])
- mhd_host_os='OS/390'
- AC_MSG_RESULT([[$mhd_host_os]])],
- [gnu*],
- [AC_DEFINE([[GNU_HURD]], [[1]], [Define to `1' if host machine runs on GNU Hurd.])
- mhd_host_os='GNU Hurd'
- AC_MSG_RESULT([[$mhd_host_os]])
- ],
- [
- AC_MSG_RESULT([unrecognised OS])
- mhd_host_os="${host_os}"
- AC_MSG_WARN([Unrecognised OS $host_os])
- AC_DEFINE([OTHEROS],1,[Some strange OS])
- ])
+ ],
+ [*openedition*],
+ [AC_DEFINE([OS390],[1],[This is a OS/390 system])
+ mhd_host_os='OS/390'
+ AC_MSG_RESULT([[$mhd_host_os]])],
+ [gnu*],
+ [AC_DEFINE([[GNU_HURD]], [[1]], [Define to `1' if host machine runs on GNU Hurd.])
+ mhd_host_os='GNU Hurd'
+ AC_MSG_RESULT([[$mhd_host_os]])
+ ],
+ [haiku],
+ [AC_DEFINE([[mhd_OS_IS_HAIKU]], [[1]], [Define to '1' if the library is hosted on Haiku.])
+ mhd_host_os='Haiku'
+ AC_MSG_RESULT([[$mhd_host_os]])
+ ],
+ [
+ AC_MSG_RESULT([unrecognised OS])
+ mhd_host_os="${host_os}"
+ AC_MSG_WARN([Unrecognised OS $host_os])
+ AC_DEFINE([OTHEROS],1,[Some strange OS])
+ ]
+)
AM_CONDITIONAL([CYGWIN_TARGET], [[test "x$os_is_windows" = "xyes" && \
test "x${os_is_native_w32}" != "xyes"]])
@@ -2173,7 +2179,7 @@ MHD_FIND_LIB([socket],
#endif
]],
[(void)socket(0, 0, 0);],
- [socket ws2_32 xnet],
+ [socket ws2_32 xnet network],
[
AS_VAR_IF([[mhd_cv_find_lib_socket]],[["none required"]], [],
[