Fixes to catch missing GNU tools
This commit is contained in:
+25
@@ -2,5 +2,30 @@
|
|||||||
|
|
||||||
|
|
||||||
/bin/rm -f configure config.h config.h.in src/lib/Makefile.in
|
/bin/rm -f configure config.h config.h.in src/lib/Makefile.in
|
||||||
|
|
||||||
|
AUTOCONF=$(which autoconf)
|
||||||
|
AUTOMAKE=$(which automake)
|
||||||
|
LIBTOOL=$(which libtool)
|
||||||
|
|
||||||
|
if test -z $AUTOCONF; then
|
||||||
|
echo "autoconf is missing: please install it and try again"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z $AUTOMAKE; then
|
||||||
|
echo "automake is missing: please install it and try again"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z $LIBTOOL; then
|
||||||
|
echo "libtool is missing: please install it and try again"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -z $AUTORECONF; then
|
||||||
|
echo "autoreconf is missing: please install it and try again"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
autoreconf -ivf
|
autoreconf -ivf
|
||||||
./configure
|
./configure
|
||||||
|
|||||||
+6
-2
@@ -57,12 +57,16 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PKG_CONFIG=$(which pkg-config)
|
||||||
|
|
||||||
if test -d /usr/local/include/json-c/; then :
|
if test -d /usr/local/include/json-c/; then :
|
||||||
CFLAGS="$CFLAGS -I/usr/local/include/json-c/"
|
CFLAGS="$CFLAGS -I/usr/local/include/json-c/"
|
||||||
LDFLAGS="$LDFLAGS -L/usr/local/lib -ljson-c"
|
LDFLAGS="$LDFLAGS -L/usr/local/lib -ljson-c"
|
||||||
else
|
else
|
||||||
CFLAGS="$CFLAGS $(pkg-config --cflags json-c)"
|
if ! test -z "$PKG_CONFIG"; then :
|
||||||
LDFLAGS="$LDFLAGS $(pkg-config --libs json-c)"
|
CFLAGS="$CFLAGS $(pkg-config --cflags json-c)"
|
||||||
|
LDFLAGS="$LDFLAGS $(pkg-config --libs json-c)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OLD_LIBS=$LIBS
|
OLD_LIBS=$LIBS
|
||||||
|
|||||||
Reference in New Issue
Block a user