> I don't think that the test for existence of libftdi is correct in the
> configure.in file. On my Ubuntu system, there is no ftdi_new()
> function, so the test fails.
>
> Attached is a patch against svn-1293 which allows my run of configure
> to pass again.
>
Let's try it again. This patch doesn't have a syntax error that the
previous one had. D'oh!
Ted Roth
PS: BTW, my system has libftdi version 0.10.
Index: configure.in
===================================================================
--- configure.in (revision 1293)
+++ configure.in (working copy)
@@ -611,12 +611,11 @@
int
main( int argc, char **argv )
{
- struct ftdi_context *p;
- p = ftdi_new();
- if( p != NULL ){
+ struct ftdi_context p;
+ if( ftdi_init(&p) == 0 ) {
return 0;
} else {
- fprintf( stderr, "calling ftdi_new() failed\n");
+ fprintf( stderr, "calling ftdi_init() failed\n");
return 1;
}
}
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development