p.s.: Re: [sane-devel] make errors with 1.07
john meshkoff
johnm at sivakalpa.org
Sat Mar 9 19:34:06 GMT 2002
abel deuring wrote:
>
> <SNIP> The problem is that I am not very familiar with configure
> -- is it possible to include a test like the following in configure?
>
> - try to compile the test program:
>
> #include <sys/types.h>
> #include <scsi/sg.h>
> int main(int argc, char **argv)
> {
> struct sg_header hdr;
> hdr.target_status = 1;
> return 0;
> }
>
> - if the succeeds, define HAVE_SG_TARGET_STATUS ; enclose the lines
> above (and a preceding DBG statement) in #ifdef HAVE_SG_TARGET_STATUS .
I went ahead and tried 'gcc -o test test.c' on that and got:
ivan:~/bin$ gcc -o test test.c
test.c: In function `main':
test.c:6: structure has no member named `target_status'
ivan:~/bin$
John
--
John Meshkoff johnm at sivakalpa dot org
http://www.sivakalpa.org/
"I do not know that I know the self fully;
neither do I know that I know him not" ... from the Upanishads
More information about the sane-devel
mailing list