How to test if preprocessor defines foobar in macro?

2009-10-13 Thread Dr. David Kirkby
I'm trying to modify this macro http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_count_cpus.m4 which attempt to get the number of CPUs in a system. I'd like to extend it to cover Solaris, AIX and HP-UX. It seems sensible to me to only do a test on a platform it

Re: How to test if preprocessor defines foobar in macro?

2009-10-13 Thread Ralf Wildenhues
* Dr. David Kirkby wrote on Wed, Oct 14, 2009 at 06:36:36AM CEST: http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_count_cpus.m4 This macro does not look well-designed. It does the wrong thing when cross-compiling, or even only compiling for a different system

Re: How to test if preprocessor defines foobar in macro?

2009-10-13 Thread Noah Misch
On Wed, Oct 14, 2009 at 05:36:36AM +0100, Dr. David Kirkby wrote: I'm trying to modify this macro http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_count_cpus.m4 which attempt to get the number of CPUs in a system. I'd like to extend it to cover Solaris, AIX

Re: How to test if preprocessor defines foobar in macro?

2009-10-13 Thread Mike Frysinger
On Wednesday 14 October 2009 00:36:36 Dr. David Kirkby wrote: I'm trying to modify this macro http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m 4/ax_count_cpus.m4 which attempt to get the number of CPUs in a system. I'd like to extend it to cover Solaris, AIX and