From: Rafael L. <lab...@ps...> - 2003-02-28 14:04:59
|
* Christophe TROESTLER <deb...@ti...> [2003-02-28 13:49]: > Wouldn't the better solution be that the author of libnn agrees to > merge the patch in his sources? Has this been asked? Probably, but there will be still the problem of asking the users to build and install libnn in their system. I think that this is the most important concern. If we integrate libnn in our source tree, I can quickly generate a Makefile.am with Libtool support for it. Actually, it is already done. Here is the Makefile.am: lib_LTLIBRARIES = libnn.la libnn_la_SOURCES = delaunay.c hash.c istack.c linear.c minell.c \ nnai.c nnpi.c nncommon.c triangle.c libnn_la_LDFLAGS = -version 0:0:0 -lm AM_CPPFLAGS = -I. -DME_UTIL -DTRILIBRARY And here is the configure.ac: AC_INIT(nn.h) AC_CONFIG_HEADERS(nnconfig.h) AM_INIT_AUTOMAKE(nn, 1.23) AM_PROG_CC_STDC AM_PROG_LIBTOOL AC_OUTPUT(Makefile) This will produce the libraries libnn.a and libnn.so.0.0.0 -- Rafael |