Files
RedBear-OS/recipes/tools/gettext/source/gettext-tools/m4/hostname.m4
T
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

29 lines
970 B
Plaintext

# hostname.m4 serial 2 (gettext-0.21.1)
dnl Copyright (C) 2001-2002, 2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
# Prerequisites of the hostname.c program.
AC_DEFUN([gt_PREREQ_HOSTNAME],
[
AC_CHECK_HEADERS([arpa/inet.h])
AC_CHECK_FUNCS([gethostname gethostbyname inet_ntop])
AC_CACHE_CHECK([for IPv6 sockets],
[gt_cv_socket_ipv6],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
]],
[[int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;]])],
[gt_cv_socket_ipv6=yes],
[gt_cv_socket_ipv6=no])
])
if test $gt_cv_socket_ipv6 = yes; then
AC_DEFINE([HAVE_IPV6], [1], [Define if <sys/socket.h> defines AF_INET6.])
fi
])