mirror of https://github.com/Icinga/icinga2.git
Fix autogen.sh on Mac OS X.
This commit is contained in:
parent
7c46bb4f7d
commit
aaccee69b8
18
autogen.sh
18
autogen.sh
|
@ -72,8 +72,16 @@ fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LIBTOOL=libtool
|
||||||
|
LIBTOOLIZE=libtoolize
|
||||||
|
|
||||||
|
if glibtool --version < /dev/null > /dev/null 2>&1; then
|
||||||
|
LIBTOOL=glibtool
|
||||||
|
LIBTOOLIZE=glibtoolize
|
||||||
|
fi
|
||||||
|
|
||||||
(grep "^LT_INIT" $srcdir/configure.ac >/dev/null) && {
|
(grep "^LT_INIT" $srcdir/configure.ac >/dev/null) && {
|
||||||
(libtool --version) < /dev/null > /dev/null 2>&1 || {
|
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
echo
|
echo
|
||||||
echo "**Error**: You must have \`libtool' installed."
|
echo "**Error**: You must have \`libtool' installed."
|
||||||
echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
|
echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
@ -133,9 +141,9 @@ esac
|
||||||
|
|
||||||
# verify that libtool-ltdl-devel is installed
|
# verify that libtool-ltdl-devel is installed
|
||||||
echo "Running libtoolize dry-run..."
|
echo "Running libtoolize dry-run..."
|
||||||
if ! libtoolize --quiet --copy --force ; then
|
if ! $LIBTOOLIZE --quiet --copy --force ; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "**Error**: libtoolize cannot detect necessary files."
|
echo "**Error**: $LIBTOOLIZE cannot detect necessary files."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Make sure libtool-ltdl-devel (RHEL) / libltdl-dev (Debian) or an"
|
echo "Make sure libtool-ltdl-devel (RHEL) / libltdl-dev (Debian) or an"
|
||||||
echo "appropriate package for your distribution is installed."
|
echo "appropriate package for your distribution is installed."
|
||||||
|
@ -171,8 +179,8 @@ do
|
||||||
fi
|
fi
|
||||||
if grep "^LT_INIT" configure.ac >/dev/null; then
|
if grep "^LT_INIT" configure.ac >/dev/null; then
|
||||||
if test -z "$NO_LIBTOOLIZE" ; then
|
if test -z "$NO_LIBTOOLIZE" ; then
|
||||||
echo "Running libtoolize..."
|
echo "Running $LIBTOOLIZE..."
|
||||||
libtoolize --force --copy
|
$LIBTOOLIZE --force --copy
|
||||||
find third-party/ltdl \! -perm u=w -exec chmod u+w '{}' ';'
|
find third-party/ltdl \! -perm u=w -exec chmod u+w '{}' ';'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue