- if test x$libusbok = xyes; then
- if test x$have_libusb1 = xyes; then
- AC_DEFINE(HAVE_LIBUSB_1, [1], [Define if libusb-1.0 found])
- fi
- AC_OUTPUT_COMMANDS([
- case "$CONFIG_OTHER" in
- usrp*)
- outfile=usrp/host/include/usrp/$CONFIG_OTHER
- tmpfile=${outfile}T
- dirname="sed s,^.*/,,g"
-
- echo creating $outfile
- cat > $tmpfile << _EOF_
- /* -*- Mode: C++ -*-
- * --------------------------------------------------------------------
- * DO NOT EDIT THIS FILE! It has been automatically generated
- * from: configure.in and `echo $outfile|$dirname`.in
- * on host: `(hostname || uname -n) 2>/dev/null | sed 1q`
- * --------------------------------------------------------------------
- *
- * Copyright 2005 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- *
- * GNU Radio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-
-_EOF_
- echo "#ifndef _`echo $outfile | $dirname | tr a-z. A-Z_`_" >> $tmpfile
- echo "#define _`echo $outfile | $dirname | tr a-z. A-Z_`_" >> $tmpfile
- echo >> $tmpfile
-
- case "$CONFIG_OTHER" in
- usrp_prims*)
- echo '#include <usrp/usrp_slots.h>' >> $tmpfile
- echo '#include <string>' >> $tmpfile
- echo >> $tmpfile
- ;;
- usrp_basic*)
- echo '#include <usrp/db_base.h>' >> $tmpfile
- echo '#include <usrp/usrp_slots.h>' >> $tmpfile
- echo '#include <string>' >> $tmpfile
- echo '#include <vector>' >> $tmpfile
- echo '#include <boost/utility.hpp>' >> $tmpfile
- echo '#include <usrp/usrp_subdev_spec.h>' >> $tmpfile
- echo >> $tmpfile
- ;;