1 | #!/bin/sh |
1 | #!/bin/sh |
2 | |
2 | |
3 | # |
3 | # |
4 | # run autoheader |
4 | # run autoheader |
5 | # |
5 | # |
6 | newah=0 |
|
|
7 | autoheader --version | grep -q autoheader && newah=1 |
|
|
8 | |
6 | |
9 | if test $newah = 1; then |
|
|
10 | cmd="autoheader --include=autoconf autoconf/configure.in" |
7 | autoheader2.50 --include=autoconf autoconf/configure.in |
11 | else |
|
|
12 | cmd="autoheader --localdir=autoconf autoconf/configure.in > autoconf/config.h.in" |
|
|
13 | fi |
|
|
14 | echo $cmd |
|
|
15 | eval $cmd |
|
|
16 | chmod 644 autoconf/config.h.in |
8 | chmod 644 autoconf/config.h.in |
17 | |
9 | |
18 | # |
10 | # |
19 | # run autoconf |
11 | # run autoconf |
20 | # |
12 | # |
21 | newac=0 |
|
|
22 | autoconf --version | grep -q autoconf && newac=1 |
|
|
23 | |
13 | |
24 | if test $newac = 1; then |
|
|
25 | cmd="autoconf --include=autoconf autoconf/configure.in > configure" |
14 | autoconf2.50 --include=autoconf autoconf/configure.in > configure |
26 | else |
|
|
27 | cmd="autoconf --localdir=autoconf autoconf/configure.in > configure" |
|
|
28 | fi |
|
|
29 | echo $cmd |
|
|
30 | eval $cmd |
|
|
31 | chmod 755 configure |
15 | chmod 755 configure |