annotate autogen.sh @ 9794:0d4613a736e9

convert build system to use automake and libtool
author John W. Eaton <jwe@octave.org>
date Tue, 10 Nov 2009 15:02:25 -0500
parents 4531741e5236
children 55061c7c8d6e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3298
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
1 #! /bin/sh
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
2 # autogen.sh
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
3 # Run this to generate all the initial makefiles, etc.
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
4
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
5 set -e
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
6
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
7 # Originally copied from the accelerated glx project.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
8
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
9 acincludeflags="-I m4"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
10
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
11 echo "calling libtoolize..."
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
12
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
13 (libtoolize --version) < /dev/null > /dev/null 2>&1 || {
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
14 echo
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
15 echo "You must have libtoolize (part of the libtool package)"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
16 echo "installed to build Octave. Download the appropriate"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
17 echo "package for your distribution, or get the source"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
18 echo "tarball at ftp://ftp.gnu.org/pub/gnu/"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
19 exit 1
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
20 }
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
21
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
22 libtoolize
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
23
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
24 echo "calling aclocal..."
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
25
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
26 (aclocal --version) < /dev/null > /dev/null 2>&1 || {
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
27 echo
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
28 echo "You must have aclocal (part of the automake package)"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
29 echo "installed to build Octave. Download the appropriate"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
30 echo "package for your distribution, or get the source"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
31 echo "tarball at ftp://ftp.gnu.org/pub/gnu/"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
32 exit 1
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
33 }
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
34
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
35 aclocal $acincludeflags
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
36
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
37 echo "generating source lists for liboctave/Makefile..."
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
38
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
39 (cd liboctave; ./config-ops.sh)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
40
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
41 echo "generating doc/interpreter/images.mk..."
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
42
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
43 (cd doc/interpreter; ./config-images.sh)
3298
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
44
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
45 echo "generating src/DLD-FUNCTIONS/module.mk..."
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
46
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
47 (cd src/DLD-FUNCTIONS; ./config-module.sh)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
48
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
49 echo "calling autoheader..."
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
50
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
51 (autoheader --version) < /dev/null > /dev/null 2>&1 || {
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
52 echo
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
53 echo "You must have autoheader (part of the autoconf package)"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
54 echo "installed to build Octave. Download the appropriate"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
55 echo "package for your distribution, or get the source"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
56 echo "tarball at ftp://ftp.gnu.org/pub/gnu/"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
57 exit 1
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
58 }
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
59
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
60 autoheader $acincludeflags --force
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
61
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
62 echo "calling automake..."
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
63
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
64 (automake --version) < /dev/null > /dev/null 2>&1 || {
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
65 echo
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
66 echo "You must have automake installed to build Octave."
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
67 echo "Download the appropriate package for your distribution,"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
68 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
69 exit 1
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
70 }
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
71
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
72 automake --warnings=no-portability --add-missing \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
73 Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
74 doc/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
75 doc/faq/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
76 doc/interpreter/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
77 doc/liboctave/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
78 doc/refcard/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
79 examples/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
80 libcruft/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
81 liboctave/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
82 scripts/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
83 src/Makefile \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
84 test/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
85
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
86 echo "calling autoconf..."
3298
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
87
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
88 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
89 echo
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
90 echo "You must have autoconf installed to build Octave."
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
91 echo "Download the appropriate package for your distribution,"
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
92 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
93 exit 1
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
94 }
aaf82ff88c82 [project @ 1999-10-19 17:58:31 by jwe]
jwe
parents:
diff changeset
95
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
96 autoconf $acincludeflags --force