comparison configure.in @ 764:0e146d12d46a

[project @ 1994-10-03 04:14:58 by jwe]
author jwe
date Mon, 03 Oct 1994 04:14:58 +0000
parents 3fc1ccd5a9db
children 29a7b5b6f0dc
comparison
equal deleted inserted replaced
763:b7a29e2ee1ae 764:0e146d12d46a
19 dnl 19 dnl
20 dnl You should have received a copy of the GNU General Public License 20 dnl You should have received a copy of the GNU General Public License
21 dnl along with Octave; see the file COPYING. If not, write to the Free 21 dnl along with Octave; see the file COPYING. If not, write to the Free
22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 dnl 23 dnl
24 AC_REVISION($Revision: 1.51 $)dnl 24 AC_REVISION($Revision: 1.52 $)dnl
25 AC_PREREQ(1.8)dnl 25 AC_PREREQ(1.8)dnl
26 AC_INIT(src/octave.cc) 26 AC_INIT(src/octave.cc)
27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h) 27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h)
28 dnl 28 dnl
29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl 29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl
550 dnl 550 dnl
551 AC_HAVE_LIBRARY(-lm)dnl 551 AC_HAVE_LIBRARY(-lm)dnl
552 dnl 552 dnl
553 XCFLAGS="$CFLAGS" 553 XCFLAGS="$CFLAGS"
554 CFLAGS="$CFLAGS $GCC_IEEE_FP_FLAG" 554 CFLAGS="$CFLAGS $GCC_IEEE_FP_FLAG"
555 for func in finite isnan isinf 555 dnl
556 do 556 case "$canonical_host_type" in
557 trfunc=`echo $func | tr '[a-z]' '[A-Z]'` 557 alpha-dec-osf*)
558 AC_FUNC_CHECK([$func], 558 ;;
559 AC_DEFINE(HAVE_[$trfunc], 1), 559 *)
560 AC_COMPILE_CHECK([$func], [#include <math.h>], [ 560 for func in finite isnan isinf
561 do
562 trfunc=`echo $func | tr '[a-z]' '[A-Z]'`
563 AC_FUNC_CHECK([$func],
564 AC_DEFINE(HAVE_[$trfunc], 1),
565 AC_COMPILE_CHECK([$func], [#include <math.h>], [
561 /* The GNU C library defines this for functions which it implements 566 /* The GNU C library defines this for functions which it implements
562 to always fail with ENOSYS. Some functions are actually named 567 to always fail with ENOSYS. Some functions are actually named
563 something starting with __ and the normal name is an alias. */ 568 something starting with __ and the normal name is an alias. */
564 #if defined (__stub_$func) || defined (__stub___$func) 569 #if defined (__stub_$func) || defined (__stub___$func)
565 choke me 570 choke me
566 #else 571 #else
567 /* Override any gcc2 internal prototype to avoid an error. */ 572 /* Override any gcc2 internal prototype to avoid an error. */
568 $func (1.0); 573 $func (1.0);
569 #endif 574 #endif
570 ], 575 ], AC_DEFINE(HAVE_[$trfunc], 1), []))dnl
571 AC_DEFINE(HAVE_[$trfunc], 1), []))dnl 576 done
572 done 577 ;;
578 esac
573 dnl 579 dnl
574 AC_HAVE_FUNCS(infinity quiet_nan)dnl 580 AC_HAVE_FUNCS(infinity quiet_nan)dnl
575 AC_HAVE_FUNCS(erf erfc lgamma)dnl 581 AC_HAVE_FUNCS(erf erfc lgamma)dnl
576 dnl 582 dnl
577 AC_COMPILE_CHECK([signgam declaration in math.h], 583 AC_COMPILE_CHECK([signgam declaration in math.h],