File: AUTOTOOL.README

package info (click to toggle)
gnugo 2.4-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,816 kB
  • ctags: 1,828
  • sloc: ansic: 22,091; tcl: 401; sh: 376; makefile: 202
file content (62 lines) | stat: -rw-r--r-- 2,218 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
-------------------------------------------------------------------------
-- AUTOTOOL.README
-------------------------------------------------------------------------

Just a quick autotool guide that I had to piece together to make this work.
I'll add more comments as needed.


- start with the files configure.in acconfig.h Makefile.am

- run 'aclocal' -- omit flags if not needed...
..aclocal only needs configure.in to run
  ACLOCAL_FLAGS="-I /usr/local/share/aclocal" aclocal


- run 'autoconf' to create ./configure 
..needs gawk (available from ftp://ftp.gnu.org/pub)


- run 'autoheader' to create config.h.in
.. needs acconfig.h to define all possible variables that it can set


- run 'automake'
.. needs Makefile.am (and probably more)
.. creates Makefile.in
.. creates files: missing install.sh, mkinstalldirs (with --add-missing option)
   These may just be symlinks, use the --copy flag to make copies instead
.. Don't FORGET to add output files to AC_OUTPUT if you add new dirs!!!
   --verbose is a helpful option to see which Makefiles are being generated


- run './configure'
.. this guy needs all files created by the previous commands
   (or maybe just Makefile.in, but to generate that you need the rest)
.. a useful option is --prefix=/this/is/where/I/want/it/installed/


If there are dependency errors or something does not work, here 
are some things to try:
make distclean  // this should be the pristine sources

If there are macro errors, or other errors that may be coming from the 
autoconf stuff, then just regenerate everything:
aclocal; autoconf; autoheader; automake -a

If there is an error in the Makefiles (there should not be) be sure that 
you are using GNU make- esp. errors along the followinf lines:
make: Fatal error in reader: Makefile, line 207: = missing from
replacement macro reference


NOTE:
  Before packaging up the files, please run a 'make distclean'.  This will 
also get rid of any stray configuration files left around.  This also
removes the .deps directories which get created when running the make.
  Also, don't forget to modify the version in configure.in.

use diff to generate patches:
diff -ruN gnugo-2.1.11 gnugo-2.1.11-mod > gnugo-2.1.11-mod.patch