2010-11-25 00:31:12 +00:00
|
|
|
#!/bin/sh
|
2012-07-29 11:54:23 +00:00
|
|
|
bs_dir="$(dirname $(readlink -f $0))"
|
|
|
|
rm -rf "${bs_dir}"/autom4te.cache
|
|
|
|
rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh
|
2010-11-25 00:31:12 +00:00
|
|
|
|
2013-08-30 04:38:12 +00:00
|
|
|
libusb_dir="${bs_dir}"/compat/libusb-1.0/
|
|
|
|
rm -rf "${libusb_dir}"/autom4te.cache
|
|
|
|
rm -rf "${libusb_dir}"/aclocal.m4 "${libusb_dir}"/ltmain.sh
|
|
|
|
|
2012-07-29 11:54:23 +00:00
|
|
|
echo 'Running autoreconf -if...'
|
2013-08-28 13:02:07 +00:00
|
|
|
aclocal --force -I m4
|
|
|
|
libtoolize --install --copy --force
|
|
|
|
autoheader --force
|
|
|
|
automake --add-missing --copy --force-missing
|
2013-08-30 04:38:12 +00:00
|
|
|
autoconf --force
|
2013-08-29 02:23:07 +00:00
|
|
|
|
2013-08-30 04:47:53 +00:00
|
|
|
autoreconf -fi "${libusb_dir}"
|
|
|
|
|
2012-07-29 11:54:23 +00:00
|
|
|
if test -z "$NOCONFIGURE" ; then
|
|
|
|
echo 'Configuring...'
|
2013-04-16 02:27:10 +00:00
|
|
|
"$bs_dir"/configure "$@"
|
2012-07-29 11:54:23 +00:00
|
|
|
fi
|