[Pkg-shadow-devel] How to define cmacro from configure
Necktwi Ozfguah
necktwi at ferryfair.com
Mon Feb 11 09:29:26 GMT 2019
never mind, I figured it out.
> On 10-Feb-2019, at 9:20 PM, Necktwi Ozfguah <necktwi at ferryfair.com> wrote:
>
> Hi,
>
> I want to define cmacro #define CASESAFE from configure. Please find the patch that I've made, attached. I have put the following in configure
>
> +enable_casesafe
>
> + --enable-casesafe enables case safe usernames
>
> +# Check whether --enable-casesafe was given.
> +if test "${enable_casesafe+set}" = set; then :
> + enableval=$enable_casesafe; $as_echo "#define CASESAFE 1" >>confdefs.h
> +fi
>
> though i run configure --enable-casesafe, CASESAFE is not being defined
>
> should i add '#define CASESAFE 1' to config.h instead of confdefs.h? If so what are the equivalent changes to configure.ac?
>
> In general how to properly define a cmacro from configure or configure.ac?
>
> I may submit the patch but it can always be rejected. I use it on my LFS. I am also doing appropriate changes for musl
>
>
> <shadow-4.1.3-casesafe.patch>
>
> ... Necktwi
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-shadow-devel/attachments/20190211/c22f829e/attachment.html>
More information about the Pkg-shadow-devel
mailing list