Petre Pircalabu
2016-03-18 11:39:50 UTC
Please disregard this question. The m4 preprocessing is done before
"configure", so the m4 preprocessor has no way of knowing about the
variable.
Many thanks,
Petre
"configure", so the m4 preprocessor has no way of knowing about the
variable.
Many thanks,
Petre
Hello,
I'm getting a false negative when trying to test if a set contains a key.
The key is specified as a variable in configure.ac.
Can you please take a look at the following code snippet?
m4_set_add([food], [fish])
m4_set_add([food], [steak])
m4_set_add([food], [junk])
meal=junk
AC_MSG_CHECKING([whether we have junk food for dinner])
m4_set_contains([food], [$meal], [VAL="yes"], [VAL="no"])
AC_MSG_RESULT([${VAL}])
Unfortunately is says that I will be eating healthy food tonight and I
really don't know why.
Many thanks,
Petre
I'm getting a false negative when trying to test if a set contains a key.
The key is specified as a variable in configure.ac.
Can you please take a look at the following code snippet?
m4_set_add([food], [fish])
m4_set_add([food], [steak])
m4_set_add([food], [junk])
meal=junk
AC_MSG_CHECKING([whether we have junk food for dinner])
m4_set_contains([food], [$meal], [VAL="yes"], [VAL="no"])
AC_MSG_RESULT([${VAL}])
Unfortunately is says that I will be eating healthy food tonight and I
really don't know why.
Many thanks,
Petre