8 |
rm -f mlgnut mlnap mlbt mldonkey mlslsk mldonkey_gui* |
rm -f mlgnut mlnap mlbt mldonkey mlslsk mldonkey_gui* |
9 |
rm -f build/*.cma build/*.cmxa build/*.a |
rm -f build/*.cma build/*.cmxa build/*.a |
10 |
touch .depend |
touch .depend |
11 |
|
|
12 |
|
case "`uname -s`" in |
13 |
|
*FreeBSD*) |
14 |
|
CPPFLAGS="${CPPFLAGS} -I/usr/local/include" |
15 |
|
export CPPFLAGS |
16 |
|
LDFLAGS="${LDFLAGS} -L/usr/local/lib" |
17 |
|
export LDFLAGS |
18 |
|
;; |
19 |
|
*) |
20 |
|
;; |
21 |
|
esac |
22 |
|
|
23 |
if test ! -d config; then |
if test ! -d config; then |
24 |
echo "Missing ./config/ directory. Re-download mldonkey" |
echo "Missing ./config/ directory. Re-download mldonkey" |
25 |
else |
else |
29 |
ac="autoconf259" |
ac="autoconf259" |
30 |
else if which autoconf-2.59; then |
else if which autoconf-2.59; then |
31 |
ac="autoconf-2.59" |
ac="autoconf-2.59" |
32 |
|
else if which autoconf-2.5x; then |
33 |
|
ac="autoconf-2.5x" |
34 |
else |
else |
35 |
ac="autoconf" |
ac="autoconf" |
36 |
fi; fi |
fi; fi; fi |
37 |
echo "Running Autoconf ($ac)..." |
echo "Running Autoconf ($ac)..." |
38 |
$ac |
$ac |
39 |
fi \ |
fi \ |