This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems compiling GSL on a Mac OS X


Daniel T Konkle writes:
 > I'm in the process of trying to get the GSL libraries to compile & run on 
 > an PowerMac G4 running Mac OS X 10.2.6
 > During compilation, I get this error message & I was hoping someone could 
 > tell me what to do to fix this warning message.
 > /usr/include/architecture/ppc/math.h:106: warning: redefinition of macro isinf
 > ../config.h:192: warning: this is the location of the previous definition
 > /usr/include/architecture/ppc/math.h:111: warning: redefinition of macro isnan
 > ../config.h:196: warning: this is the location of the previous definition

The configure script looks for isinf().  If it doesn't find it, it can
get confused and tries to #define isinf(x) gsl_isinf(x).  Here is what
is currently in configure.in:

AC_TRY_COMPILE([#define isinf /* */
#include <math.h>],[{}],[],[ 
        AC_CHECK_FUNCS(isinf, ,[
            AC_MSG_CHECKING([for isinf with <math.h>])
            AC_TRY_LINK([#include <math.h>], [float f = 0.0; isinf(f)],[
                AC_MSG_RESULT(yes)
                AC_DEFINE(HAVE_ISINF)],
                AC_MSG_RESULT(no))])])

-- 
Brian 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]