[OPEN-ILS-DEV] OpenSRF autotools support

Kevin Beswick kevinbeswick00 at gmail.com
Fri May 30 11:08:50 EDT 2008


This patch adds GNU autotools support to the OpenSRF project.

By having autotools support, one can generate the appropriate
configure script and Makefiles for OpenSRF by running automake and
autoconf. They can then configure, compile and install OpenSRF by
running the generated files. The configure script checks dependencies,
sets install locations, compiler flags, install options, etc, and
transfers those settings to the Makefiles.

To prepare the package (add missing files etc), generate makefiles and
configure script, run the following commands:
aclocal
libtoolize --force
automake -a
automake
autoconf

To configure, compile, and install, run the following commands:
./configure
make
make install


Custom options included in configure script:

--enable-install-java    #enable building and installing the java libraries
--disable-legacy-json    #disable the legacy json headers and .so file
for backwards compatibility
--disable-install-python  #disable building and installing python modules
--with-tmp_dir=path              #location for the tmp dir for openSRF
(/tmp/ilstemp by default)
--with-apxs_dir=path             #location of apxs2 (default is /usr/bin/apxs2)
--with-apache_headers=path       #location of the apache2 headers
(default is /usr/include/apache2)
--with-apr_headers=path           #location of the apr headers
(default is /usr/include/apr-1.0/)
--with-libxml_headers=path         #location of the libxml headers
(default is /usr/include/libxml2/)

--------------------------
Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Signed-off-by:  Kevin Beswick (kevinbeswick00 at gmail.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autotoolssrf.patch
Type: text/x-patch
Size: 41418 bytes
Desc: not available
Url : http://list.georgialibraries.org/pipermail/open-ils-dev/attachments/20080530/757ba603/autotoolssrf-0001.bin


More information about the Open-ils-dev mailing list