On 09/19/2012 11:03 AM, Jan Engelhardt wrote:
Would placing AC_CHECK_HEADERS into the AC_ARG_ENABLE's 3rd arg not suffice? AC_ARG_ENABLE([pam-passthru], [...], [AC_CHECK_HEADERS([security/pam_appl.h], [], [AC_MSG_ERROR([bla])]) ]) Or one can probably also unconditionally check and only error out when pam-passthru is chosen. AC_CHECK_HEADERS([security/pam_appl.h]) AC_ARG_ENABLE([pam-passthru], [help text], [if test "$ac_cv_header_security_pam_appl_h" = no"; then AC_MSG_ERROR([bla]) ])
https://fedorahosted.org/389/ticket/468 -- 389-devel mailing list 389-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-devel