This basically allows configure to complete and set up a configuration suitable for building the BSD port for supported platforms (FreeBSD, OpenBSD and NetBSD.)
The flag `_BSDONLY_SOURCE` is defined for all the BSD's _except_ for Apple MacOS, while the existing `_ALLBSD_SOURCE` _includes_ Apple MacOS.
For the BSD's we set the `OPENJDK_TARGET_OS_ENV` variable to distinct values reflecting the BSD variant being built. This is used to distinguish build flags, library locations and what libraries and modules to include for the various builds.
As an example, FreeBSD includes the ALSA library, and should build the Serviceability Agent, while the other BSD's do not.
This work was sponsored by: The FreeBSD Foundation
-------------
Commit messages:
- Add BSD to autoconf scrips
Changes: https://git.openjdk.org/bsd-port/pull/3/files
Webrev: https://webrevs.openjdk.org/?repo=bsd-port&pr=3&range=00
Stats: 74 lines in 10 files changed: 62 ins; 0 del; 12 mod
Patch: https://git.openjdk.org/bsd-port/pull/3.diff
Fetch: git fetch https://git.openjdk.org/bsd-port.git pull/3/head:pull/3
PR: https://git.openjdk.org/bsd-port/pull/3
Merge with the master branch to get an up to date starting point for the port.
-------------
Commit messages:
- 8378563: ConnectionRefusedMessage::testFinishConnect fails when jdk.includeInExceptions contains hostInfo
- 8378823: AIX build fails after zlib updated by JDK-8378631
- 8377895: Create sizeof_auto to reduce narrowing conversions
- 8378379: Remove reference to obsolete jdk.net.usePlainSocketImpl property from SSLSocketReset test
- 8078744: Right half of system menu icon on title bar does not activate when clicked in Metal L&F
- 8373367: interp-only mechanism fails to work for carrier threads in a corner case
- 8268675: RTE from "Printable.print" propagates through "PrinterJob.print"
- 8378561: Mark gc/shenandoah/compiler/TestLinkToNativeRBP.java as /native
- 8377845: Restore regtest for JDK-8324881 with DiagnoseSyncOnValueBasedClasses=2
- 8376253: [macOS] FileSystemView may not report system icons when -Xcheck:jni is enabled
- ... and 1453 more: https://git.openjdk.org/bsd-port/compare/e34a8318...56060367
The webrev contains the conflicts with bsd-port:
- merge conflicts: https://webrevs.openjdk.org/?repo=bsd-port&pr=1&range=00.conflicts
Changes: https://git.openjdk.org/bsd-port/pull/1/files
Stats: 1043270 lines in 7620 files changed: 580047 ins; 374161 del; 89062 mod
Patch: https://git.openjdk.org/bsd-port/pull/1.diff
Fetch: git fetch https://git.openjdk.org/bsd-port.git pull/1/head:pull/1
PR: https://git.openjdk.org/bsd-port/pull/1
Changeset: d7a75388
Branch: configure-for-bsd
Author: Harald Eilertsen <haraldei(a)anduin.net>
Date: 2026-03-02 15:39:35 +0000
URL: https://git.openjdk.org/bsd-port/commit/d7a753881505eb76f5fc54910918172b7b6…
Break too long lines
This work was sponsored by: The FreeBSD Foundation
! make/autoconf/libraries.m4
! make/autoconf/platform.m4