autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Confirmation my method is right.


From: Dr. David Kirkby
Subject: Confirmation my method is right.
Date: Tue, 28 Sep 2010 15:22:47 +0100
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.7) Gecko/20100214 Thunderbird/3.0.1

I have a header file (it's /usr/include/float.h) of an AIX system, which should contain:

typedef unsigned short fprnd_t;

but for some reason this, and a few other things seem to be undefined when gcc gets around to parsing it (I think it might be a gcc bug).

This problem comes from compiling the GNU Scientific Library on AIX, where the GSL developers say that gcc's float.h is being used in preference to the IBM's float.h, and whilst the system's float.h has this declaration, the gcc one does not.

typedef unsigned short fprnd_t;


To check if fprnd_t is defined or not, can you confirm.


1) I need to add to configure.ac

AC_CHECK_DECLS(fprnd_t,,,[#include <float.h>])


2) I need to add in a C file which will need this declaration.

#infdef HAVE_DECL_FPRND_T
typedef unsigned short fprnd_t;
#endif



Dave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]