3298
|
1 #! /bin/sh |
|
2 # autogen.sh |
|
3 # Run this to generate all the initial makefiles, etc. |
|
4 |
|
5 # copied from the accelerated glx project |
|
6 |
|
7 echo "calling autoconf and autoheader..." |
|
8 |
|
9 (autoconf --version) < /dev/null > /dev/null 2>&1 || { |
|
10 echo |
|
11 echo "You must have autoconf installed to build Octave." |
|
12 echo "Download the appropriate package for your distribution," |
|
13 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" |
|
14 exit 1 |
|
15 } |
|
16 |
|
17 (autoheader --version) < /dev/null > /dev/null 2>&1 || { |
|
18 echo |
|
19 echo "You must have autoheader installed to build Octave." |
|
20 echo "Download the appropriate package for your distribution," |
|
21 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" |
|
22 exit 1 |
|
23 } |
|
24 |
|
25 for i in `find . -name configure.in -print`; do ( |
3785
|
26 dir=`dirname $i` |
|
27 cd $dir |
3298
|
28 pwd |
3785
|
29 if [ -f skip-autoconf ]; then |
|
30 echo "skipping autoconf in $dir" |
|
31 else |
|
32 autoconf |
|
33 fi |
|
34 if [ -f skip-autoheader ]; then |
|
35 echo "skipping autoheader in $dir" |
|
36 else |
|
37 autoheader |
|
38 fi |
3298
|
39 ); done |
|
40 |
3726
|
41 echo done |
3298
|
42 |
|
43 if [ -f cvs.motd ]; then |
|
44 echo "ATTENTION CVS Users!" |
|
45 echo "" |
|
46 cat cvs.motd |
|
47 echo "" |
|
48 fi |