mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-02-16 22:05:23 -05:00
sb16_csp/gitcompile improve automake directory detection
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
d2492966a9
commit
2a8feeba76
1 changed files with 5 additions and 2 deletions
|
|
@ -1,12 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if test "x$AUTOMAKE_DIR" = "x"; then
|
if test -z "$AUTOMAKE_DIR"; then
|
||||||
if test -d /usr/local/share/automake; then
|
if test -d /usr/local/share/automake; then
|
||||||
AUTOMAKE_DIR=/usr/local/share/automake
|
AUTOMAKE_DIR=/usr/local/share/automake
|
||||||
fi
|
fi
|
||||||
if test -d /usr/share/automake; then
|
if test -d /usr/share/automake; then
|
||||||
AUTOMAKE_DIR="/usr/share/automake"
|
AUTOMAKE_DIR="/usr/share/automake"
|
||||||
fi
|
fi
|
||||||
|
if test -z "$AUTOMAKE_DIR"; then
|
||||||
|
AUTOMAKE_DIR=/usr/share/`ls /usr/share | grep automake | tail -n 1`
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in install-sh mkinstalldirs missing; do
|
for f in install-sh mkinstalldirs missing; do
|
||||||
|
|
@ -22,6 +25,6 @@ echo "CFLAGS=$CFLAGS"
|
||||||
echo "./configure $@"
|
echo "./configure $@"
|
||||||
./configure $@ || exit 1
|
./configure $@ || exit 1
|
||||||
unset CFLAGS
|
unset CFLAGS
|
||||||
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
|
if -z "$GITCOMPILE_NO_MAKE"; then
|
||||||
make || exit 1
|
make || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue