| 1 |
ht://Dig 3.2.0b4 README.developer |
| 2 |
Copyright (c) 2002-2004 The ht://Dig Group |
| 3 |
|
| 4 |
-- |
| 5 |
This README file is for newbie developers like myself. As I learn stuff, |
| 6 |
I'm putting it here. If anyone wants to write a better guide, please do! |
| 7 |
|
| 8 |
Lachlan [email protected] |
| 9 |
|
| 10 |
-- |
| 11 |
I follow Lachlan's initiative, and post some new things here as well. :-) |
| 12 |
|
| 13 |
Gabriele [email protected] |
| 14 |
|
| 15 |
|
| 16 |
AUTOMATICALLY GENERATED FILES |
| 17 |
============================= |
| 18 |
Many files, such as attrs.html, are automatically generated from a "master" |
| 19 |
documents, such as defaults.cc. The procedure for generating these files |
| 20 |
is as follows. |
| 21 |
|
| 22 |
To generate From Use |
| 23 |
=========== ==== === |
| 24 |
htdoc/attrs.html, htcommon/defaults.cc, htdoc/cf_generate.pl |
| 25 |
htdoc/cf_byprog.html, htdoc/attrs_head.html, |
| 26 |
htdoc/cf_byname.html htdoc/attrs_tail.html, |
| 27 |
htdoc/cf_byprog_head.html |
| 28 |
htdoc/cf_byprog_tail.html |
| 29 |
htdoc/cf_byname_head.html |
| 30 |
htdoc/cf_byname_tail.html |
| 31 |
|
| 32 |
Many files are automatically overwritten by the configuration process from |
| 33 |
their "*.in" variants. These include: |
| 34 |
*/Makefile |
| 35 |
db/db.h |
| 36 |
db/configure |
| 37 |
db/db_config.h |
| 38 |
db/stamp-h |
| 39 |
include/config.h |
| 40 |
include/stamp.h |
| 41 |
test/test_functions |
| 42 |
test/conf/access.conf |
| 43 |
test/conf/htdig.conf |
| 44 |
test/conf/htdig.conf2 |
| 45 |
test/conf/htdig.conf3 |
| 46 |
test/conf/httpd.conf |
| 47 |
test/conf/mime.types.in |
| 48 |
test/conf/srm.conf.in |
| 49 |
|
| 50 |
AUTO{CONF,MAKE} |
| 51 |
=============== |
| 52 |
First, I suggest you to give a look at the 'GNU autoconf, automake and libtool' book |
| 53 |
by Gary V. Vaughan, Ben Elliston, Tom Tromey and Ian Lance Taylor. It is freely |
| 54 |
downloadable from the net at http://sources.redhat.com/autobook/ - if you have a |
| 55 |
Debian Linux station, just type 'apt-get install autobook'. It is a great source |
| 56 |
of information. |
| 57 |
|
| 58 |
Don't change the Makefiles or configure directly. They are generated |
| 59 |
automatically by a 'bootstrapping application' from the Makefile.in and |
| 60 |
configure.in files. |
| 61 |
Although the book above suggest to use a specific bootstrapping script (see |
| 62 |
chapter 8 'Bootstrapping'), we just use the latest autoconf version. |
| 63 |
|
| 64 |
The Makefile.in files are in turn generated from Makefile.am and configure.in |
| 65 |
is manually modified (initial suggestion came from autoscan). |
| 66 |
|
| 67 |
The file called aclocal.m4 is generated by aclocal according to the macros that |
| 68 |
are present on the developer's machine and to the contents of the acinclude.m4 file: |
| 69 |
if you want to add some specific macros (you can get some from the 'autoconf archive' |
| 70 |
project by GNU) you have to do it here not in aclocal. |
| 71 |
|
| 72 |
According to configure.in and aclocal.m4, configure script is then generated, by autoconf. |
| 73 |
|
| 74 |
The dependencies seem to be: |
| 75 |
configure <-- configure.in |
| 76 |
| |
| 77 |
|- aclocal.m4 <-- *** acinclude.m4 (change this) *** |
| 78 |
|
| 79 |
Make changes to Makefile.am or acinclude.m4 and then type: |
| 80 |
autoreconf -if |
| 81 |
|
| 82 |
Current source files have been generated by using: autoconf 2.57, |
| 83 |
libtool 1.5.0a and automake 1.7.6 |
| 84 |
|
| 85 |
See <http://www.murrayc.com/learning/linux/automake/automake.shtml>. |
| 86 |
|
| 87 |
|
| 88 |
THINGS TO DO WHEN MAKING A CHANGE: |
| 89 |
================================== |
| 90 |
|
| 91 |
- Add any new attributes to defaults.cc and run cf_generate.pl |
| 92 |
- Add any new dependencies to */Makefile.am and run aclocal etc., as above. |
| 93 |
- Add new tests in test/ to test the new functionality |
| 94 |
- Test by (at least!) "./configure --enable-tests" then "make check" |
| 95 |
- Write a Changelog entry. |
| 96 |
- Update STATUS if appropriate |