Autotools build system does not set OS_ defines #422

Closed
opened 2026-01-29 20:43:36 +00:00 by claunia · 2 comments
Owner

Originally created by @ryandesign on GitHub (May 7, 2022).

The cmake build system sets some custom defines for various OS types in CMakeLists.txt

if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
  add_definitions(-DOS_LINUX)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
  add_definitions(-DOS_FREEBSD)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  add_definitions(-DOS_MACOSX)
endif()

The undocumented autotools build system does not. Perhaps it should?

Originally created by @ryandesign on GitHub (May 7, 2022). The cmake build system sets some custom defines for various OS types in CMakeLists.txt ``` if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") add_definitions(-DOS_LINUX) elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") add_definitions(-DOS_FREEBSD) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") add_definitions(-DOS_MACOSX) endif() ``` The undocumented autotools build system does not. Perhaps it should?
claunia added the release-v1.1.1enhancement labels 2026-01-29 20:43:36 +00:00
Author
Owner

@eustas commented on GitHub (Jan 6, 2023):

TODO: add the following definitions to Bazel / naked make / autotools:

  • OS_LINUX
  • OS_FREEBSD
  • OS_MACOSX
  • BROTLI_HAVE_LOG2
@eustas commented on GitHub (Jan 6, 2023): TODO: add the following definitions to Bazel / naked make / autotools: - [x] `OS_LINUX` - [x] `OS_FREEBSD` - [x] `OS_MACOSX` - [x] `BROTLI_HAVE_LOG2`
Author
Owner

@eustas commented on GitHub (Jul 10, 2023):

Only Bazel left.

@eustas commented on GitHub (Jul 10, 2023): Only Bazel left.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#422