I perform some checks during configure, which i set up with autoconf using the AC_CACHE_CHECK macro. Some checks are critical, so if they donÄt pass, I want configure to fail. How can I achieve this?
Thanks, Steffen
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure what you mean. Do you want to abort if the result is not cached? Or, if the result is not cached, do you want to attempt to assign a value but abort if unsuccesful? For the latter, just do:
If you want to abort merely because the variable is not cached, you could put an
exitin the 3rd argument toAC_CACHE_CHECK. The commands in that option are used to assign the cache variable, and are not supposed to have side effects. Exiting the configure script is definitely a side effect, but that may be the behavior you want.