diff options
author | Johnathan Corgan <jcorgan@corganenterprises.com> | 2009-09-29 18:29:44 -0700 |
---|---|---|
committer | Johnathan Corgan <jcorgan@corganenterprises.com> | 2009-09-29 18:29:44 -0700 |
commit | df4edacd55663aecee58a9b3f95cbc08bceaab81 (patch) | |
tree | 5e9440fc7a89dfa8d201f670d37f2244935ae098 /config/usrp_fusb_tech.m4 | |
parent | 962a57badaa349da12ca552f4752329aabd4ac6f (diff) |
Consolidate conditional headers into libusb_types.h, use automake
Diffstat (limited to 'config/usrp_fusb_tech.m4')
-rw-r--r-- | config/usrp_fusb_tech.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/usrp_fusb_tech.m4 b/config/usrp_fusb_tech.m4 index 200cb36af3..cd08e18e59 100644 --- a/config/usrp_fusb_tech.m4 +++ b/config/usrp_fusb_tech.m4 @@ -26,6 +26,7 @@ dnl AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[ req_libusb1=no + USE_LIBUSB1=0 AC_ARG_WITH([fusb-tech], AC_HELP_STRING([--with-fusb-tech=OS], [Set fast USB technique (default=auto)]), @@ -36,6 +37,7 @@ AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[ libusb1*) FUSB_TECH=libusb1 req_libusb1=yes + USE_LIBUSB1=1 ;; linux*) AC_CHECK_HEADER([linux/usbdevice_fs.h], @@ -77,4 +79,9 @@ AC_DEFUN([USRP_SET_FUSB_TECHNIQUE],[ AM_CONDITIONAL(FUSB_TECH_linux, test x$FUSB_TECH = xlinux) AM_CONDITIONAL(FUSB_TECH_libusb1, test x$FUSB_TECH = xlibusb1) AM_CONDITIONAL(FUSB_TECH_ra_wb, test x$FUSB_TECH = xra_wb) + + AC_SUBST(USE_LIBUSB1) + AC_CONFIG_FILES([\ + usrp/host/include/usrp/libusb_types.h \ + ]) ]) |