Skip to content

Commit

Permalink
meson: Don't attempt to detect shadow passwords on *BSD and macOS, Gi…
Browse files Browse the repository at this point in the history
…tHub #1777
  • Loading branch information
rdmark committed Nov 24, 2024
1 parent 4d75489 commit 0def4f3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1739,19 +1739,26 @@ endif

enable_shadow = get_option('with-shadow')

if not enable_shadow
if host_os in ['darwin', 'dragonfly', 'freebsd', 'netbsd', 'openbsd']
have_shadow = false
elif not enable_shadow
have_shadow = false
else
have_shadow = (cc.has_header('shadow.h'))
if have_shadow
cdata.set('SHADOWPW', 1)
uams_options += 'shadow'
else
have_shadow = false
warning('Shadow password support requested but required header not found')
endif
endif

if have_shadow
uams_options += 'shadow'
else
uams_options += 'passwd'
endif

#
# Netatalk lockfile path
#
Expand Down

0 comments on commit 0def4f3

Please sign in to comment.