[389-devel] Should check for pam_appl.h

Rich Megginson rmeggins at redhat.com
Wed Sep 19 17:19:30 UTC 2012


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


More information about the 389-devel mailing list