[PATCH ocserv 5/5] Allow linking with system libopts if installed

Mike Miller mtmiller at ieee.org
Tue Jul 23 08:24:14 EDT 2013


On Tue, Jul 23, 2013 at 12:47:01 +0200, Nikos Mavrogiannopoulos wrote:
> Hello Mike and thank you for the patches. I've not had time to check
> them yet, so only a comment about this one. Unfortunately using the
> system libopts may cause the programs not to work, since libopts
> refuses to work if a different library version is present from the one
> that was used to generate the files. So for such a patch to work, the
> presence of autogen must be checked and the generation of the
> intermediate files must be forced.

Ok, that makes sense, thanks for clarifying.

So now, notice this, built from ocserv-0.1.5:

$ ./src/ocserv --version | sed 1q
ocserv 0.1.5
$ ./src/ocpasswd --version | sed 1q
ocpasswd 0.1.1

There is no make dependency on version.def in the autogen rules,
because, well, that would force autogen to be a hard requirement and
run every time configure is run. But what you have now instead is
generated ocserv-args and ocpasswd-args files that could have an
outdated version string in them, as in this case.

-- 
mike



More information about the openconnect-devel mailing list