Commit 4f8cf634e5543b7ed0157aca17e4654fe3bbdccc
1 parent
391d94f4
Exists in
master
and in
2 other branches
Adjustments in autogen.sh
Showing
1 changed file
with
11 additions
and
2 deletions
Show diff stats
autogen.sh
... | ... | @@ -8,7 +8,16 @@ cd "$srcdir" |
8 | 8 | mkdir -p scripts |
9 | 9 | mkdir -p m4 |
10 | 10 | |
11 | -libtoolize --force | |
11 | +LIBTOOLIZE=$(which libtoolize) | |
12 | +if [ -z ${LIBTOOLIZE} ]; then | |
13 | + LIBTOOLIZE=$(which glibtoolize) | |
14 | +fi | |
15 | +if [ -z ${LIBTOOLIZE} ]; then | |
16 | + echo "Can't find libtoolize" | |
17 | + exit -1 | |
18 | +fi | |
19 | + | |
20 | +${LIBTOOLIZE} --force | |
12 | 21 | if test $? != 0 ; then |
13 | 22 | echo "libtoolize failed." |
14 | 23 | exit -1 |
... | ... | @@ -36,7 +45,7 @@ automake --add-missing 2> /dev/null | true |
36 | 45 | |
37 | 46 | autopoint |
38 | 47 | |
39 | -test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" | |
48 | +test -n "$NOCONFIGURE" || "$srcdir/configure" $@ | |
40 | 49 | |
41 | 50 | |
42 | 51 | ... | ... |