autoconf
[Top][All Lists]
Advanced

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

autoheader: warning: missing template: __IREG_FLOAT_RETURN__


From: Sam Steingold
Subject: autoheader: warning: missing template: __IREG_FLOAT_RETURN__
Date: Sun, 05 Oct 2008 00:41:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

I get this error:

autoheader: warning: missing template: __IREG_FLOAT_RETURN__
autoheader: Use AC_DEFINE([__IREG_FLOAT_RETURN__], [], [Description])

(even though it is claimed to be a warning, autoheader fails)

the AC function is:

AC_DEFUN([FFCALL_IREG_FLOAT_RETURN],
[AC_CACHE_CHECK([whether floats are returned in integer registers],
ffcall_cv_c_float_return_ireg, [AC_TRY_RUN(GL_NOCRASH[
float x = (float)1.2;
float y = (float)1.3;
float fun () { return x*y; }
int main()
{ nocrash_init();
 {int val = (* (int (*) ()) fun) ();
  return !(val == 0x3FC7AE15 || val == 0x15AEC73F);
}}], ffcall_cv_c_float_return_ireg=yes, ffcall_cv_c_float_return_ireg=no,
dnl When cross-compiling, assume no, because that's how it comes out on
dnl most platforms with floating-point unit, including m68k-linux.
ffcall_cv_c_float_return_ireg="guessing no")
])
case "$ffcall_cv_c_float_return_ireg" in
  *yes) AC_DEFINE(__IREG_FLOAT_RETURN__) ;;
  *no) ;;
esac
])

putting [] around __IREG_FLOAT_RETURN__ has no effect (same error)

FFCALL_IREG_FLOAT_RETURN is invoked in configure.in without arguments,
like this:

FFCALL_IREG_FLOAT_RETURN

what am I doing wrong?

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 8.04 (hardy)
http://memri.org http://truepeace.org http://jihadwatch.org
http://pmw.org.il http://dhimmi.com http://israelunderattack.slide.com
usually: can't pay ==> don't buy. software: can't buy ==> don't pay





reply via email to

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