Re: Testing for GCC-like attributes and compiler switches

2010-10-16 Thread Peter Rosin
Den 2010-10-16 10:39 skrev Ralf Wildenhues: > Hello Václav, > > * Václav Haisman wrote on Fri, Oct 15, 2010 at 08:56:51PM CEST: >> I am having difficulty testing for compiler features like >> __declspec(dllimport) and switches like -Wall or -Werror. >> >> The problem has started like this. I wante

Re: Testing for GCC-like attributes and compiler switches

2010-10-16 Thread Ralf Wildenhues
Hello Václav, * Václav Haisman wrote on Fri, Oct 15, 2010 at 08:56:51PM CEST: > I am having difficulty testing for compiler features like > __declspec(dllimport) and switches like -Wall or -Werror. > > The problem has started like this. I wanted to test compiler for > __declspec(dllimport) (for W

Re: Testing for GCC-like attributes and compiler switches

2010-10-15 Thread Václav Haisman
Andrew W. Nosenko wrote, On 16.10.2010 2:50: > 2010/10/16 Andrew W. Nosenko : >> 2010/10/15 Václav Haisman : >>> Hi. >>> >>> I am having difficulty testing for compiler features like >>> __declspec(dllimport) and switches like -Wall or -Werror. >>> >>> The problem has started like this. I wanted to

Re: Testing for GCC-like attributes and compiler switches

2010-10-15 Thread Andrew W. Nosenko
2010/10/16 Andrew W. Nosenko : > 2010/10/15 Václav Haisman : >> Hi. >> >> I am having difficulty testing for compiler features like >> __declspec(dllimport) and switches like -Wall or -Werror. >> >> The problem has started like this. I wanted to test compiler for >> __declspec(dllimport) (for Windo

Re: Testing for GCC-like attributes and compiler switches

2010-10-15 Thread Andrew W. Nosenko
2010/10/15 Václav Haisman : > Hi. > > I am having difficulty testing for compiler features like > __declspec(dllimport) and switches like -Wall or -Werror. > > The problem has started like this. I wanted to test compiler for > __declspec(dllimport) (for Windows) and if that fails for > __attribute_

Re: Testing for GCC-like attributes and compiler switches

2010-10-15 Thread Mike Frysinger
On Friday, October 15, 2010 14:56:51 Václav Haisman wrote: > I am having difficulty testing for compiler features like > __declspec(dllimport) and switches like -Wall or -Werror. look at the autoconf-archive package. it has macros to help with testing for compiler switches and compiler attribute