Browse Source

Fix libusb subdirectory builds.

nfactor-troky
ckolivas 11 years ago committed by Con Kolivas
parent
commit
4c9d9fd61a
  1. 9
      autogen.sh
  2. 4
      compat/libusb-1.0/Makefile.am
  3. 3
      compat/libusb-1.0/configure.ac

9
autogen.sh

@ -2,9 +2,6 @@
bs_dir="$(dirname $(readlink -f $0))" bs_dir="$(dirname $(readlink -f $0))"
rm -rf "${bs_dir}"/autom4te.cache rm -rf "${bs_dir}"/autom4te.cache
rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh rm -f "${bs_dir}"/aclocal.m4 "${bs_dir}"/ltmain.sh
libusb_dir="${bs_dir}"/libusb-1.0/
rm -rf "${libusb_dir}"/autom4te.cache
rm -rf "${libusb_dir}"/aclocal.m4 "${libusb_dir}"/ltmain.sh
echo 'Running autoreconf -if...' echo 'Running autoreconf -if...'
aclocal --force -I m4 aclocal --force -I m4
@ -13,6 +10,12 @@ autoconf --force
autoheader --force autoheader --force
automake --add-missing --copy --force-missing automake --add-missing --copy --force-missing
libusb_dir="${bs_dir}"/compat/libusb-1.0/
rm -rf "${libusb_dir}"/autom4te.cache
rm -rf "${libusb_dir}"/aclocal.m4 "${libusb_dir}"/ltmain.sh
autoreconf -fi "${libusb_dir}"
if test -z "$NOCONFIGURE" ; then if test -z "$NOCONFIGURE" ; then
echo 'Configuring...' echo 'Configuring...'
"$bs_dir"/configure "$@" "$bs_dir"/configure "$@"

4
compat/libusb-1.0/Makefile.am

@ -2,8 +2,8 @@ AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
DISTCLEANFILES = libusb-1.0.pc DISTCLEANFILES = libusb-1.0.pc
MAINTAINERCLEANFILES = ChangeLog MAINTAINERCLEANFILES = ChangeLog
EXTRA_DIST = TODO PORTING msvc EXTRA_DIST = TODO PORTING
SUBDIRS = libusb doc SUBDIRS = libusb
if BUILD_EXAMPLES if BUILD_EXAMPLES
SUBDIRS += examples SUBDIRS += examples

3
compat/libusb-1.0/configure.ac

@ -226,7 +226,4 @@ AC_SUBST(LTLDFLAGS)
AC_CONFIG_FILES([libusb-1.0.pc]) AC_CONFIG_FILES([libusb-1.0.pc])
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([libusb/Makefile]) AC_CONFIG_FILES([libusb/Makefile])
AC_CONFIG_FILES([examples/Makefile])
AC_CONFIG_FILES([doc/Makefile])
AC_CONFIG_FILES([doc/doxygen.cfg])
AC_OUTPUT AC_OUTPUT

Loading…
Cancel
Save