avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] Compiler warnings


From: Joerg Wunsch
Subject: Re: [avrdude-dev] Compiler warnings
Date: Fri, 26 Aug 2011 06:47:10 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

As Jason Hecker wrote:

> I just grabbed SVN-982 and did the usual:
> 
> autoreconf --force --install

(btw., there's also a ./bootstrap script)

> configure: creating ./config.status
> .in'ig.status: error: cannot find input file: `

Strange.  Not many things did change in configure.ac lately:

address@hidden 688% svn diff -r'{2011-08-01}' configure.ac
Index: configure.ac
===================================================================
--- configure.ac        (revision 962)
+++ configure.ac        (working copy)
@@ -82,8 +82,35 @@
    AC_CHECK_HEADERS([libusb-1.0/libusb.h])
    AC_CHECK_HEADERS([libusb.h])
 fi
+AH_TEMPLATE([HAVE_LIBUSB_1_0],
+            [Define if USB support is enabled via a libusb-1.0 compatible 
libusb])
+AC_CHECK_LIB([usb], [libusb_init], [have_libusb_1_0=yes])
+if test x$have_libusb_1_0 = xyes; then
+   case $target in
+       *-*-freebsd*)
+               # FreeBSD 8+ has a native libusb-1.0 API compatible
+               # library offered by -lusb (which is also libusb-0.1
+               # compatible).  FreeBSD <8 does not have a libusb-1.0
+               # at all so probing will fail but we do not have to
+               # special-case that.
+               LIBUSB_1_0="-lusb"
+               ;;
+       *)
+               LIBUSB_1_0="-lusb-1.0"
+               ;;
+   esac
+   AC_DEFINE([HAVE_LIBUSB_1_0])
+   AC_CHECK_HEADERS([libusb.h])
+fi
 AC_SUBST(LIBUSB_1_0, $LIBUSB_1_0)
-
+AH_TEMPLATE([HAVE_LIBFTDI],
+            [Define if FTDI support is enabled via libftdi])
+AC_CHECK_LIB([ftdi], [ftdi_init], [have_libftdi=yes])
+if test x$have_libftdi = xyes; then
+   LIBFTDI="-lftdi"
+   AC_DEFINE([HAVE_LIBFTDI])
+fi
+AC_SUBST(LIBFTDI, $LIBFTDI)
 # Checks for header files.
 AC_CHECK_HEADERS([limits.h stdlib.h string.h])
 AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/time.h termios.h unistd.h])

The first part is basically a copy&paste from the already
existing libusb-1.0 check, just using a different library
name, and the check for libftdi is pretty straightforward.

I just uploaded an avrdude-5.10svn.tar.gz to savannah, could
you please test that one?  If the configure script there is
working, something must be wrong with your autotools, if it
fails the same way, I'll inspect the script again.
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]