diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-03-20 18:53:15 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2018-03-22 12:18:03 +0900 |
commit | 2a0f90dab3c1a1ab24b47bb2af28075c734ce431 (patch) | |
tree | d0138584a06591622a57c470ec0521e4990fff2e | |
parent | 3bdcb7a0c2d804f7c08e6cd973b0ef731544d3d1 (diff) | |
download | enlightenment-2a0f90dab3c1a1ab24b47bb2af28075c734ce431.tar.gz |
build - make pam a requirement on non-bsd unless disabled
this shou,ld provide a compile failure for when no pam headers are
found and thus pam not enabled if we need pam for auth (i.e. linux).
so it'll be harder to foot-shoot now.also an add-on fix to T6779
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 7e940328ce..32a0cbe49d 100644 --- a/meson.build +++ b/meson.build @@ -191,6 +191,10 @@ if get_option('pam') == true if cc.has_header('security/pam_appl.h') config_h.set('HAVE_PAM', '1') dep_pam = cc.find_library('pam', required: true) + else + if openbsd == false and freebsd == false + error('PAM is not disabled and not found on non-free+open BSD platforms') + endif endif endif |