help-octave
[Top][All Lists]
Advanced

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

Re: have headers & libs, but cannot configure/make


From: John W. Eaton
Subject: Re: have headers & libs, but cannot configure/make
Date: Fri, 6 Jan 2017 11:56:31 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0

On 01/06/2017 11:19 AM, Mike Miller wrote:

Ah right, forgot about required vs optional dependencies.

So an extra argument to mark the library as required, which will impact
both the usage AS_HELP_STRINGs and the error/warning if the library is
disabled or not found or fails to pass the test? Seems good to me.

Yes, I checked in a couple of changes.  Now the configure script has

  OCTAVE_CHECK_LIB(pcre, PCRE,
    [], [pcre.h pcre/pcre.h], [pcre_compile], [], [], [],
    [libpcre], [REQUIRED])

the help text is

  --with-pcre-includedir=DIR
                          look for PCRE include files in DIR
  --with-pcre-libdir=DIR  look for PCRE libraries in DIR
  --with-pcre=<lib>       use PCRE library <lib>

and configure fails with an error message if the PCRE library is not found or if you try to use --without-pcre.

I hope this is fixed now.

jwe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]