mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-17 19:25:57 +02:00
build: Conditionalize bsd_getopt() on macOS
The system library provides a getopt() with BSD semantics.
This commit is contained in:
@@ -309,6 +309,7 @@ AC_CHECK_FUNCS([\
|
||||
])
|
||||
|
||||
need_arc4random=yes
|
||||
need_bsd_getopt=yes
|
||||
need_md5=yes
|
||||
need_nlist=yes
|
||||
need_strl=yes
|
||||
@@ -330,6 +331,7 @@ AS_CASE([$host_os],
|
||||
# On macOS these are provided by the system, and libbsd has never built
|
||||
# there, so we can avoid providing these with no ABI breakage.
|
||||
need_arc4random=no
|
||||
need_bsd_getopt=no
|
||||
need_transparent_libmd=no
|
||||
need_md5=no
|
||||
need_nlist=no
|
||||
@@ -345,6 +347,7 @@ AS_CASE([$host_os],
|
||||
AM_CONDITIONAL([HAVE_GETENTROPY], [test "x$ac_cv_func_getentropy" = "xyes"])
|
||||
|
||||
AM_CONDITIONAL([NEED_ARC4RANDOM], [test "x$need_arc4random" = "xyes"])
|
||||
AM_CONDITIONAL([NEED_BSD_GETOPT], [test "x$need_bsd_getopt" = "xyes"])
|
||||
AM_CONDITIONAL([NEED_TRANSPARENT_LIBMD], [test "x$need_transparent_libmd" = "xyes"])
|
||||
AM_CONDITIONAL([NEED_MD5], [test "x$need_md5" = "xyes"])
|
||||
AM_CONDITIONAL([NEED_NLIST], [test "x$need_nlist" = "xyes"])
|
||||
|
Reference in New Issue
Block a user