libftdi Archives

Subject: Re: libftdi-config patch

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Lehmann Alexander <lehmanna@xxxxxxxxx>
Date: Mon, 10 May 2010 10:32:21 +0200
Hello Alexander,

On Wednesday, 5. May 2010 08:14:57 Lehmann Alexander wrote:
> I just learned that the configure script that comes with libftdi
> doesn't fully honour any given CFLAGS or CPPFLAGS. The problem arises
> from the fact that configure also creates the libftdi-config script
> which in turn doesn't output the corresponding flags correctly.
> The following patch for libftdi-config.in fixes the problem:
> 
> 53c53
> <       if test "@includedir@" != "/usr/include" ; then
> ---
> 
>  >       if test "@includedir@" != /usr/include ; then
> 
> 75c75
> <     echo $includes @CFLAGS@
> ---
> 
>  >    echo $includes
> 

Thanks for your patch. To increase readability, please send
the patch as "unified diff (diff -u)" next time.

The vanilla "libftdi-config.in" code looks like this:

    --cflags)
      if test "@includedir@" != /usr/include ; then
        includes="-I@includedir@"
      fi

This looks ok to me. Are you using a prepackaged libftdi version?

Cheers,
Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread