Testing the value of a variable defined with m4_define (configure.ac)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I've got a shell script which is called from within configure.ac --
with m4_esyscmd_s -- and this shell script echos out a few m4_define
lines to set some values.

Previously, these checks resided in configure.ac and set these
variables as shell variables.  Here's an example of what was
previously defined:

if test x"$ISRELEASED" = "xyes"; then
    VAR="somevalue"
    VAR2="somevalue2"
fi

Now, though, the shell script I mentioned is instead setting ISRELEAED
like this:

m4_define([ISRELEASED], [$VALUE_OF_RELEASE_STATUS])

So my question is, how can I change the if test above to now test the
value of ISRELEASED, to then set VAR and VAR2?  I know I can't just
expand ISRELEASED at the shell-level because it being defined via
m4_define no longer makes it a shell variable.

Any help is greatly appreciated!

Kindly,

-- Thomas Adam

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux