Menu

#1 incorrect AC_ARG_WITH() handling with debug/python/doxygen

v1.0 (example)
closed
nobody
None
5
2023-08-13
2010-01-24
No

the third/fourth arguments to AC_ARG_WITH() are not enable/disable, but user-specified-a-choice/user-did-not-specify-a-choice

so the third argument has to process $withval to see if the user specified --without-python or --with-python or --with-python=...

usually this is done like so:
if test "x$withval" = "xyes" ; then
AM_PATH_PYTHON(2.3)
AM_CHECK_PYTHON_HEADERS(HAVE_PYTHON=yes,[HAVE_PYTHON=no;AC_MSG_WARN([python headers not found, disabling python binding])])
fi

Discussion

  • Vitaly Lipatov

    Vitaly Lipatov - 2023-08-13

    Thank you very much, Mike.
    I just in fixed the issue in the actual repo https://github.com/Etersoft/libnatspec

     
  • Vitaly Lipatov

    Vitaly Lipatov - 2023-08-13
    • status: open --> closed
    • Group: --> v1.0 (example)
     

Log in to post a comment.