Mercurial > octave
comparison acinclude.m4 @ 10012:2441327485a3
use m4 quating in aclocal.m4 autoconf macros with variable expansion
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sun, 20 Dec 2009 20:07:43 -0800 |
parents | 411325ce32d7 |
children | 0f312e11957e |
comparison
equal
deleted
inserted
replaced
10011:411325ce32d7 | 10012:2441327485a3 |
---|---|
140 dnl Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment. | 140 dnl Some BSD putenv's, e.g., FreeBSD, do malloc/free's on the environment. |
141 dnl This test program is due to Mike Hibler <mike@cs.utah.edu>. | 141 dnl This test program is due to Mike Hibler <mike@cs.utah.edu>. |
142 dnl We don't actually need to run this if we don't have putenv, but it | 142 dnl We don't actually need to run this if we don't have putenv, but it |
143 dnl doesn't hurt. | 143 dnl doesn't hurt. |
144 AC_DEFUN([OCTAVE_SMART_PUTENV], | 144 AC_DEFUN([OCTAVE_SMART_PUTENV], |
145 [AC_MSG_CHECKING(whether putenv uses malloc) | 145 [AC_MSG_CHECKING([whether putenv uses malloc]) |
146 AC_CACHE_VAL(octave_cv_func_putenv_malloc, | 146 AC_CACHE_VAL(octave_cv_func_putenv_malloc, |
147 [AC_RUN_IFELSE([AC_LANG_SOURCE([[ | 147 [AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
148 #define VAR "YOW_VAR" | 148 #define VAR "YOW_VAR" |
149 #define STRING1 "GabbaGabbaHey" | 149 #define STRING1 "GabbaGabbaHey" |
150 #define STRING2 "Yow!!" /* should be shorter than STRING1 */ | 150 #define STRING2 "Yow!!" /* should be shorter than STRING1 */ |
193 printf ("#undef SMART_PUTENV\n"); | 193 printf ("#undef SMART_PUTENV\n"); |
194 #endif | 194 #endif |
195 exit (rstr1 == rstr2 ? 0 : 1); | 195 exit (rstr1 == rstr2 ? 0 : 1); |
196 }]])], octave_cv_func_putenv_malloc=yes, octave_cv_func_putenv_malloc=no, | 196 }]])], octave_cv_func_putenv_malloc=yes, octave_cv_func_putenv_malloc=no, |
197 octave_cv_func_putenv_malloc=no)])dnl | 197 octave_cv_func_putenv_malloc=no)])dnl |
198 AC_MSG_RESULT($octave_cv_func_putenv_malloc) | 198 AC_MSG_RESULT([$octave_cv_func_putenv_malloc]) |
199 if test $octave_cv_func_putenv_malloc = yes; then | 199 if test $octave_cv_func_putenv_malloc = yes; then |
200 AC_DEFINE(SMART_PUTENV,1,[To quiet autoheader.]) | 200 AC_DEFINE(SMART_PUTENV,1,[To quiet autoheader.]) |
201 fi]) | 201 fi]) |
202 dnl | 202 dnl |
203 dnl These two checks for signal functions were originally part of the | 203 dnl These two checks for signal functions were originally part of the |
204 dnl aclocal.m4 file distributed with bash 2.0. | 204 dnl aclocal.m4 file distributed with bash 2.0. |
205 dnl | 205 dnl |
206 dnl Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7) | 206 dnl Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7) |
207 AC_DEFUN([OCTAVE_SIGNAL_CHECK], | 207 AC_DEFUN([OCTAVE_SIGNAL_CHECK], |
208 [AC_REQUIRE([AC_TYPE_SIGNAL]) | 208 [AC_REQUIRE([AC_TYPE_SIGNAL]) |
209 AC_MSG_CHECKING(for type of signal functions) | 209 AC_MSG_CHECKING([for type of signal functions]) |
210 AC_CACHE_VAL(octave_cv_signal_vintage, | 210 AC_CACHE_VAL(octave_cv_signal_vintage, |
211 [ | 211 [ |
212 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>]], | 212 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>]], |
213 [[sigset_t ss; | 213 [[sigset_t ss; |
214 struct sigaction sa; | 214 struct sigaction sa; |
230 sigrelse (SIGINT); | 230 sigrelse (SIGINT); |
231 sighold (SIGINT); | 231 sighold (SIGINT); |
232 sigpause (SIGINT);]])], | 232 sigpause (SIGINT);]])], |
233 [octave_cv_signal_vintage=svr3], | 233 [octave_cv_signal_vintage=svr3], |
234 [octave_cv_signal_vintage=v7])])])]) | 234 [octave_cv_signal_vintage=v7])])])]) |
235 AC_MSG_RESULT($octave_cv_signal_vintage) | 235 AC_MSG_RESULT([$octave_cv_signal_vintage]) |
236 if test "$octave_cv_signal_vintage" = posix; then | 236 if test "$octave_cv_signal_vintage" = posix; then |
237 AC_DEFINE(HAVE_POSIX_SIGNALS, 1, [Define if you have POSIX style signals.]) | 237 AC_DEFINE(HAVE_POSIX_SIGNALS, 1, [Define if you have POSIX style signals.]) |
238 elif test "$octave_cv_signal_vintage" = "4.2bsd"; then | 238 elif test "$octave_cv_signal_vintage" = "4.2bsd"; then |
239 AC_DEFINE(HAVE_BSD_SIGNALS, 1, [Define if you have BSD style signals.]) | 239 AC_DEFINE(HAVE_BSD_SIGNALS, 1, [Define if you have BSD style signals.]) |
240 elif test "$octave_cv_signal_vintage" = svr3; then | 240 elif test "$octave_cv_signal_vintage" = svr3; then |
294 octave_cv_must_reinstall_sighandlers=no | 294 octave_cv_must_reinstall_sighandlers=no |
295 fi)]) | 295 fi)]) |
296 if test "$cross_compiling" = yes; then | 296 if test "$cross_compiling" = yes; then |
297 AC_MSG_RESULT([$octave_cv_must_reinstall_sighandlers assumed for cross compilation]) | 297 AC_MSG_RESULT([$octave_cv_must_reinstall_sighandlers assumed for cross compilation]) |
298 else | 298 else |
299 AC_MSG_RESULT($octave_cv_must_reinstall_sighandlers) | 299 AC_MSG_RESULT([$octave_cv_must_reinstall_sighandlers]) |
300 fi | 300 fi |
301 if test "$octave_cv_must_reinstall_sighandlers" = yes; then | 301 if test "$octave_cv_must_reinstall_sighandlers" = yes; then |
302 AC_DEFINE(MUST_REINSTALL_SIGHANDLERS,1,[Define if signal handlers must be reinstalled after they are called.]) | 302 AC_DEFINE(MUST_REINSTALL_SIGHANDLERS,1,[Define if signal handlers must be reinstalled after they are called.]) |
303 fi | 303 fi |
304 ]) | 304 ]) |
330 return a == A(1);]])], | 330 return a == A(1);]])], |
331 [octave_cv_cxx_new_friend_template_decl=no], | 331 [octave_cv_cxx_new_friend_template_decl=no], |
332 [octave_cv_cxx_new_friend_template_decl=yes]) | 332 [octave_cv_cxx_new_friend_template_decl=yes]) |
333 AC_LANG_POP(C++) | 333 AC_LANG_POP(C++) |
334 ]) | 334 ]) |
335 AC_MSG_RESULT($octave_cv_cxx_new_friend_template_decl) | 335 AC_MSG_RESULT([$octave_cv_cxx_new_friend_template_decl]) |
336 if test $octave_cv_cxx_new_friend_template_decl = yes; then | 336 if test $octave_cv_cxx_new_friend_template_decl = yes; then |
337 AC_DEFINE(CXX_NEW_FRIEND_TEMPLATE_DECL,1,[Define if your compiler supports `<>' stuff for template friends.]) | 337 AC_DEFINE(CXX_NEW_FRIEND_TEMPLATE_DECL,1,[Define if your compiler supports `<>' stuff for template friends.]) |
338 fi | 338 fi |
339 ]) | 339 ]) |
340 dnl | 340 dnl |
344 dnl the flag. | 344 dnl the flag. |
345 dnl | 345 dnl |
346 dnl OCTAVE_CC_FLAG | 346 dnl OCTAVE_CC_FLAG |
347 AC_DEFUN([OCTAVE_CC_FLAG], [ | 347 AC_DEFUN([OCTAVE_CC_FLAG], [ |
348 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'` | 348 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'` |
349 AC_MSG_CHECKING(whether ${CC-cc} accepts $1) | 349 AC_MSG_CHECKING([whether ${CC-cc} accepts $1]) |
350 AC_CACHE_VAL(octave_cv_cc_flag_$ac_safe, [ | 350 AC_CACHE_VAL(octave_cv_cc_flag_$ac_safe, [ |
351 AC_LANG_PUSH(C) | 351 AC_LANG_PUSH(C) |
352 XCFLAGS="$CFLAGS" | 352 XCFLAGS="$CFLAGS" |
353 CFLAGS="$CFLAGS $1" | 353 CFLAGS="$CFLAGS $1" |
354 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], | 354 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], |
374 dnl the flag. | 374 dnl the flag. |
375 dnl | 375 dnl |
376 dnl OCTAVE_CXX_FLAG | 376 dnl OCTAVE_CXX_FLAG |
377 AC_DEFUN([OCTAVE_CXX_FLAG], [ | 377 AC_DEFUN([OCTAVE_CXX_FLAG], [ |
378 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'` | 378 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'` |
379 AC_MSG_CHECKING(whether ${CXX-g++} accepts $1) | 379 AC_MSG_CHECKING([whether ${CXX-g++} accepts $1]) |
380 AC_CACHE_VAL(octave_cv_cxx_flag_$ac_safe, [ | 380 AC_CACHE_VAL(octave_cv_cxx_flag_$ac_safe, [ |
381 AC_LANG_PUSH(C++) | 381 AC_LANG_PUSH(C++) |
382 XCXXFLAGS="$CXXFLAGS" | 382 XCXXFLAGS="$CXXFLAGS" |
383 CXXFLAGS="$CXXFLAGS $1" | 383 CXXFLAGS="$CXXFLAGS $1" |
384 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], | 384 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], |
404 dnl the flag. | 404 dnl the flag. |
405 dnl | 405 dnl |
406 dnl OCTAVE_F77_FLAG | 406 dnl OCTAVE_F77_FLAG |
407 AC_DEFUN([OCTAVE_F77_FLAG], [ | 407 AC_DEFUN([OCTAVE_F77_FLAG], [ |
408 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'` | 408 ac_safe=`echo "$1" | sed 'y%./+-:=%__p___%'` |
409 AC_MSG_CHECKING(whether ${F77-g77} accepts $1) | 409 AC_MSG_CHECKING([whether ${F77-g77} accepts $1]) |
410 AC_CACHE_VAL(octave_cv_f77_flag_$ac_safe, [ | 410 AC_CACHE_VAL(octave_cv_f77_flag_$ac_safe, [ |
411 AC_LANG_PUSH(Fortran 77) | 411 AC_LANG_PUSH(Fortran 77) |
412 XFFLAGS="$FFLAGS" | 412 XFFLAGS="$FFLAGS" |
413 FFLAGS="$FFLAGS $1" | 413 FFLAGS="$FFLAGS $1" |
414 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], | 414 AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], |
534 LIBS="$m4_toupper([$1])_LIBS $LIBS" | 534 LIBS="$m4_toupper([$1])_LIBS $LIBS" |
535 octave_$1_ok=no | 535 octave_$1_ok=no |
536 AC_MSG_CHECKING([for $5 in $m4_toupper([$1])_LIBS]) | 536 AC_MSG_CHECKING([for $5 in $m4_toupper([$1])_LIBS]) |
537 AC_LINK_IFELSE([AC_LANG_CALL([], [$5])], | 537 AC_LINK_IFELSE([AC_LANG_CALL([], [$5])], |
538 [octave_$1_ok=yes]) | 538 [octave_$1_ok=yes]) |
539 AC_MSG_RESULT($octave_$1_ok) | 539 AC_MSG_RESULT([$octave_$1_ok]) |
540 if test $octave_$1_ok = yes; then | 540 if test $octave_$1_ok = yes; then |
541 m4_ifblank([$8], [ | 541 m4_ifblank([$8], [ |
542 warn_$1= | 542 warn_$1= |
543 AC_DEFINE([HAVE_]m4_toupper([$1]), 1, | 543 AC_DEFINE([HAVE_]m4_toupper([$1]), 1, |
544 [Define if $2 is available.]) | 544 [Define if $2 is available.]) |
551 CPPFLAGS="$octave_check_library_save_CPPFLAGS" | 551 CPPFLAGS="$octave_check_library_save_CPPFLAGS" |
552 fi | 552 fi |
553 AC_SUBST(m4_toupper([$1])_LIBS) | 553 AC_SUBST(m4_toupper([$1])_LIBS) |
554 AC_SUBST([TEXINFO_]m4_toupper([$1])) | 554 AC_SUBST([TEXINFO_]m4_toupper([$1])) |
555 if test -n "$warn_$1"; then | 555 if test -n "$warn_$1"; then |
556 AC_MSG_WARN($warn_$1) | 556 AC_MSG_WARN([$warn_$1]) |
557 m4_toupper([$1])_LIBS= | 557 m4_toupper([$1])_LIBS= |
558 fi | 558 fi |
559 ]) | 559 ]) |
560 dnl | 560 dnl |
561 dnl Check for flex | 561 dnl Check for flex |
574 LEXLIB= | 574 LEXLIB= |
575 ;; | 575 ;; |
576 *) | 576 *) |
577 LEX='$(top_srcdir)/missing flex' | 577 LEX='$(top_srcdir)/missing flex' |
578 warn_flex="I didn't find flex, but it's only a problem if you need to reconstruct lex.cc" | 578 warn_flex="I didn't find flex, but it's only a problem if you need to reconstruct lex.cc" |
579 AC_MSG_WARN($warn_flex) | 579 AC_MSG_WARN([$warn_flex]) |
580 ;; | 580 ;; |
581 esac | 581 esac |
582 AC_SUBST(LFLAGS) | 582 AC_SUBST(LFLAGS) |
583 ]) | 583 ]) |
584 dnl | 584 dnl |
590 bison*) | 590 bison*) |
591 ;; | 591 ;; |
592 *) | 592 *) |
593 YACC='$(top_srcdir)/missing bison' | 593 YACC='$(top_srcdir)/missing bison' |
594 warn_bison="I didn't find bison, but it's only a problem if you need to reconstruct parse.cc" | 594 warn_bison="I didn't find bison, but it's only a problem if you need to reconstruct parse.cc" |
595 AC_MSG_WARN($warn_bison) | 595 AC_MSG_WARN([$warn_bison]) |
596 ;; | 596 ;; |
597 esac | 597 esac |
598 ]) | 598 ]) |
599 dnl | 599 dnl |
600 dnl What pager should we use? | 600 dnl What pager should we use? |
601 dnl | 601 dnl |
602 AC_DEFUN([OCTAVE_PROG_PAGER], | 602 AC_DEFUN([OCTAVE_PROG_PAGER], |
603 [if test "$cross_compiling" = yes; then | 603 [if test "$cross_compiling" = yes; then |
604 DEFAULT_PAGER=less | 604 DEFAULT_PAGER=less |
605 AC_MSG_RESULT(assuming $DEFAULT_PAGER exists on $canonical_host_type host) | 605 AC_MSG_RESULT([assuming $DEFAULT_PAGER exists on $canonical_host_type host]) |
606 AC_SUBST(DEFAULT_PAGER) | 606 AC_SUBST(DEFAULT_PAGER) |
607 else | 607 else |
608 octave_possible_pagers="less more page pg" | 608 octave_possible_pagers="less more page pg" |
609 case "$canonical_host_type" in | 609 case "$canonical_host_type" in |
610 *-*-cygwin* | *-*-mingw32* | *-*-msdosmsvc) | 610 *-*-cygwin* | *-*-mingw32* | *-*-msdosmsvc) |
613 esac | 613 esac |
614 | 614 |
615 AC_CHECK_PROGS(DEFAULT_PAGER, $octave_possible_pagers, []) | 615 AC_CHECK_PROGS(DEFAULT_PAGER, $octave_possible_pagers, []) |
616 if test -z "$DEFAULT_PAGER"; then | 616 if test -z "$DEFAULT_PAGER"; then |
617 warn_less="I couldn't find \`less', \`more', \`page', or \`pg'" | 617 warn_less="I couldn't find \`less', \`more', \`page', or \`pg'" |
618 AC_MSG_WARN($warn_less) | 618 AC_MSG_WARN([$warn_less]) |
619 fi | 619 fi |
620 fi | 620 fi |
621 ]) | 621 ]) |
622 dnl | 622 dnl |
623 dnl Does gnuplot exist? | 623 dnl Does gnuplot exist? |
625 AC_DEFUN([OCTAVE_PROG_GNUPLOT], [ | 625 AC_DEFUN([OCTAVE_PROG_GNUPLOT], [ |
626 gp_names="gnuplot" | 626 gp_names="gnuplot" |
627 gp_default="gnuplot" | 627 gp_default="gnuplot" |
628 if test "$cross_compiling" = yes; then | 628 if test "$cross_compiling" = yes; then |
629 GNUPLOT="$gp_default" | 629 GNUPLOT="$gp_default" |
630 AC_MSG_RESULT(assuming $GNUPLOT exists on $canonical_host_type host) | 630 AC_MSG_RESULT([assuming $GNUPLOT exists on $canonical_host_type host]) |
631 else | 631 else |
632 AC_CHECK_PROGS(GNUPLOT, $gp_names) | 632 AC_CHECK_PROGS(GNUPLOT, [$gp_names]) |
633 if test -z "$GNUPLOT"; then | 633 if test -z "$GNUPLOT"; then |
634 warn_gnuplot=yes | 634 warn_gnuplot=yes |
635 | 635 |
636 GNUPLOT="$gp_default" | 636 GNUPLOT="$gp_default" |
637 | 637 |
649 AC_DEFUN([OCTAVE_PROG_GPERF], [ | 649 AC_DEFUN([OCTAVE_PROG_GPERF], [ |
650 AC_CHECK_PROG(GPERF, gperf, gperf, []) | 650 AC_CHECK_PROG(GPERF, gperf, gperf, []) |
651 if test -z "$GPERF"; then | 651 if test -z "$GPERF"; then |
652 GPERF='$(top_srcdir)/missing gperf' | 652 GPERF='$(top_srcdir)/missing gperf' |
653 warn_gperf="I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h" | 653 warn_gperf="I didn't find gperf, but it's only a problem if you need to reconstruct oct-gperf.h" |
654 AC_MSG_WARN($warn_gperf) | 654 AC_MSG_WARN([$warn_gperf]) |
655 fi | 655 fi |
656 AC_SUBST(GPERF) | 656 AC_SUBST(GPERF) |
657 ]) | 657 ]) |
658 dnl | 658 dnl |
659 dnl Is ghostscript installed? | 659 dnl Is ghostscript installed? |
666 ;; | 666 ;; |
667 *) | 667 *) |
668 gs_names="gs" | 668 gs_names="gs" |
669 ;; | 669 ;; |
670 esac | 670 esac |
671 AC_CHECK_PROGS(GHOSTSCRIPT, $gs_names) | 671 AC_CHECK_PROGS(GHOSTSCRIPT, [$gs_names]) |
672 if test -z "$GHOSTSCRIPT"; then | 672 if test -z "$GHOSTSCRIPT"; then |
673 GHOSTSCRIPT='$(top_srcdir)/missing gs' | 673 GHOSTSCRIPT='$(top_srcdir)/missing gs' |
674 warn_ghostscript="I didn't find ghostscript, but it's only a problem if you need to reconstruct figures for the manual" | 674 warn_ghostscript="I didn't find ghostscript, but it's only a problem if you need to reconstruct figures for the manual" |
675 AC_MSG_WARN($warn_ghostscript) | 675 AC_MSG_WARN([$warn_ghostscript]) |
676 fi | 676 fi |
677 AC_SUBST(GHOSTSCRIPT) | 677 AC_SUBST(GHOSTSCRIPT) |
678 ]) | 678 ]) |
679 dnl | 679 dnl |
680 dnl Is makeinfo installed? | 680 dnl Is makeinfo installed? |
683 AC_DEFUN([OCTAVE_PROG_MAKEINFO], [ | 683 AC_DEFUN([OCTAVE_PROG_MAKEINFO], [ |
684 AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, []) | 684 AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, []) |
685 if test -z "$MAKEINFO"; then | 685 if test -z "$MAKEINFO"; then |
686 MAKEINFO='$(top_srcdir)/missing makeinfo' | 686 MAKEINFO='$(top_srcdir)/missing makeinfo' |
687 warn_makeinfo="I didn't find makeinfo, but it's only a problem if you need to reconstruct the Info version of the manual" | 687 warn_makeinfo="I didn't find makeinfo, but it's only a problem if you need to reconstruct the Info version of the manual" |
688 AC_MSG_WARN($warn_makeinfo) | 688 AC_MSG_WARN([$warn_makeinfo]) |
689 fi | 689 fi |
690 AC_SUBST(MAKEINFO) | 690 AC_SUBST(MAKEINFO) |
691 ]) | 691 ]) |
692 dnl | 692 dnl |
693 dnl Is texi2dvi installed? | 693 dnl Is texi2dvi installed? |
696 AC_DEFUN([OCTAVE_PROG_TEXI2DVI], [ | 696 AC_DEFUN([OCTAVE_PROG_TEXI2DVI], [ |
697 AC_CHECK_PROG(TEXI2DVI, texi2dvi, texi2dvi, []) | 697 AC_CHECK_PROG(TEXI2DVI, texi2dvi, texi2dvi, []) |
698 if test -z "$TEXI2DVI"; then | 698 if test -z "$TEXI2DVI"; then |
699 TEXI2DVI='$(top_srcdir)/missing texi2dvi' | 699 TEXI2DVI='$(top_srcdir)/missing texi2dvi' |
700 warn_texi2dvi="I didn't find texi2dvi, but it's only a problem if you need to reconstruct the DVI version of the manual" | 700 warn_texi2dvi="I didn't find texi2dvi, but it's only a problem if you need to reconstruct the DVI version of the manual" |
701 AC_MSG_WARN($warn_texi2dvi) | 701 AC_MSG_WARN([$warn_texi2dvi]) |
702 fi | 702 fi |
703 AC_SUBST(TEXI2DVI) | 703 AC_SUBST(TEXI2DVI) |
704 ]) | 704 ]) |
705 dnl | 705 dnl |
706 dnl Is texi2pdf installed? | 706 dnl Is texi2pdf installed? |
719 missing=false; | 719 missing=false; |
720 fi | 720 fi |
721 if $missing; then | 721 if $missing; then |
722 TEXI2PDF='$(top_srcdir)/missing texi2pdf' | 722 TEXI2PDF='$(top_srcdir)/missing texi2pdf' |
723 warn_texi2pdf="I didn't find texi2pdf, but it's only a problem if you need to reconstruct the PDF version of the manual" | 723 warn_texi2pdf="I didn't find texi2pdf, but it's only a problem if you need to reconstruct the PDF version of the manual" |
724 AC_MSG_WARN($warn_texi2pdf) | 724 AC_MSG_WARN([$warn_texi2pdf]) |
725 fi | 725 fi |
726 AC_SUBST(TEXI2PDF) | 726 AC_SUBST(TEXI2PDF) |
727 ]) | 727 ]) |
728 dnl | 728 dnl |
729 dnl See if the C++ library is ISO compliant. | 729 dnl See if the C++ library is ISO compliant. |
754 digits = 0;]])], | 754 digits = 0;]])], |
755 [octave_cv_cxx_iso_compliant_library=yes], | 755 [octave_cv_cxx_iso_compliant_library=yes], |
756 [octave_cv_cxx_iso_compliant_library=no]) | 756 [octave_cv_cxx_iso_compliant_library=no]) |
757 AC_LANG_POP(C++) | 757 AC_LANG_POP(C++) |
758 ]) | 758 ]) |
759 AC_MSG_RESULT($octave_cv_cxx_iso_compliant_library) | 759 AC_MSG_RESULT([$octave_cv_cxx_iso_compliant_library]) |
760 if test $octave_cv_cxx_iso_compliant_library = yes; then | 760 if test $octave_cv_cxx_iso_compliant_library = yes; then |
761 AC_DEFINE(CXX_ISO_COMPLIANT_LIBRARY, 1, [Define if your C++ runtime library is ISO compliant.]) | 761 AC_DEFINE(CXX_ISO_COMPLIANT_LIBRARY, 1, [Define if your C++ runtime library is ISO compliant.]) |
762 fi | 762 fi |
763 ]) | 763 ]) |
764 dnl | 764 dnl |
952 octave_cv_ieee754_data_format=no, | 952 octave_cv_ieee754_data_format=no, |
953 octave_cv_ieee754_data_format=no)]) | 953 octave_cv_ieee754_data_format=no)]) |
954 if test "$cross_compiling" = yes; then | 954 if test "$cross_compiling" = yes; then |
955 AC_MSG_RESULT([$octave_cv_ieee754_data_format assumed for cross compilation]) | 955 AC_MSG_RESULT([$octave_cv_ieee754_data_format assumed for cross compilation]) |
956 else | 956 else |
957 AC_MSG_RESULT($octave_cv_ieee754_data_format) | 957 AC_MSG_RESULT([$octave_cv_ieee754_data_format]) |
958 fi | 958 fi |
959 if test "$octave_cv_ieee754_data_format" = yes; then | 959 if test "$octave_cv_ieee754_data_format" = yes; then |
960 AC_DEFINE(HAVE_IEEE754_DATA_FORMAT, 1, [Define if your system uses IEEE 754 data format.]) | 960 AC_DEFINE(HAVE_IEEE754_DATA_FORMAT, 1, [Define if your system uses IEEE 754 data format.]) |
961 else | 961 else |
962 ## If the format is unknown, then you will probably not have a | 962 ## If the format is unknown, then you will probably not have a |
1015 octave_cv_umfpack_seperate_split=no, | 1015 octave_cv_umfpack_seperate_split=no, |
1016 octave_cv_umfpack_seperate_split=no)]) | 1016 octave_cv_umfpack_seperate_split=no)]) |
1017 if test "$cross_compiling" = yes; then | 1017 if test "$cross_compiling" = yes; then |
1018 AC_MSG_RESULT([$octave_cv_umfpack_seperate_split assumed for cross compilation]) | 1018 AC_MSG_RESULT([$octave_cv_umfpack_seperate_split assumed for cross compilation]) |
1019 else | 1019 else |
1020 AC_MSG_RESULT($octave_cv_umfpack_seperate_split) | 1020 AC_MSG_RESULT([$octave_cv_umfpack_seperate_split]) |
1021 fi | 1021 fi |
1022 if test "$octave_cv_umfpack_seperate_split" = yes; then | 1022 if test "$octave_cv_umfpack_seperate_split" = yes; then |
1023 AC_DEFINE(UMFPACK_SEPARATE_SPLIT, 1, [Define if the UMFPACK Complex solver allow matrix and RHS to be split independently]) | 1023 AC_DEFINE(UMFPACK_SEPARATE_SPLIT, 1, [Define if the UMFPACK Complex solver allow matrix and RHS to be split independently]) |
1024 fi | 1024 fi |
1025 ]) | 1025 ]) |
1495 dnl "--without-framework-$1". If this test is successful then perform | 1495 dnl "--without-framework-$1". If this test is successful then perform |
1496 dnl $4, otherwise do $5. | 1496 dnl $4, otherwise do $5. |
1497 dnl | 1497 dnl |
1498 dnl OCTAVE_HAVE_FRAMEWORK | 1498 dnl OCTAVE_HAVE_FRAMEWORK |
1499 AC_DEFUN([OCTAVE_HAVE_FRAMEWORK], [ | 1499 AC_DEFUN([OCTAVE_HAVE_FRAMEWORK], [ |
1500 AC_MSG_CHECKING(whether ${LD-ld} accepts -framework $1) | 1500 AC_MSG_CHECKING([whether ${LD-ld} accepts -framework $1]) |
1501 AC_CACHE_VAL(octave_cv_framework_$1, [ | 1501 AC_CACHE_VAL(octave_cv_framework_$1, [ |
1502 XLDFLAGS="$LDFLAGS" | 1502 XLDFLAGS="$LDFLAGS" |
1503 LDFLAGS="$LDFLAGS -framework $1" | 1503 LDFLAGS="$LDFLAGS -framework $1" |
1504 AC_LANG_PUSH(C++) | 1504 AC_LANG_PUSH(C++) |
1505 AC_LINK_IFELSE([AC_LANG_PROGRAM([$2], [$3])], | 1505 AC_LINK_IFELSE([AC_LANG_PROGRAM([$2], [$3])], |