#423 configure does not find header files

v1.0 (example)
closed-out-of-date
nobody
None
5
2014-07-01
2011-08-23
No

The AC_CHECK_HEADERS does by default use the CPPFLAGS and not the INCLUDES variable to check for headers. So, if you define all header paths in INCLUDES, they will not be found by AC_CHECK_HEADERS, and thus headers like udunits2.h, gshhs.h located in private locations will not be found even if --with-xyz=/location is given.

I have successfully replaced all INCLUDES with CPPFLAGS (including the PYTHON_INCLUDES to PYTHON CPPFLAGS) in the configure.in and could configure and compile gdl. I also recommend to replace the udunits2/udunits2.h with simply udunits2.h or allow both header locations since both are common.

Discussion

  • giloo

    giloo - 2014-07-01
    • status: open --> closed-out-of-date
    • Group: --> v1.0 (example)
     
  • giloo

    giloo - 2014-07-01

    We have switched to cmake for one year hence. closing this ticket.

     

Log in to post a comment.